/* Flexbox styling for alignment */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Align buttons vertically with the text */
}

.button-group {
  display: flex;
  gap: 10px; /* Space between buttons */
}

#expand-all,
#collapse-all {
  margin: 5px;
  padding: 10px 20px;
  background-color: #135e96;
  color: white;
  font-size: 15px;
  border-radius: 5px;
  border-style: none;
  cursor: pointer;
}

#expand-all:hover,
#collapse-all:hover {
  background-color: #012a56;
}

.wpcc_config_input_h_10 {
  width: 10%;
}

.wpcc_config_input_h_30 {
  width: 30%;
}

.wpcc_config_input_h_50 {
  width: 50%;
}

.wpcc_config_input_300_50 {
  height: 300px;
  width: 50%;
}

.wpcc_config_input_300_70 {
  height: 300px;
  width: 70%;
}

.wpcc_config_container {
  display: flex;
  align-items: center; /* Aligns items vertically in the center */
}

.cc-mono {
  font-family: monospace;
}

.cc-hidden {
  display: none;
}

.report-a-bug-message {
  display: none;
  margin-top: 1em;
}

.report-a-bug-response {
  background-color: var(--wp--preset--color--primary);
  margin-top: 1em;
}

figure.cc-specs > table tr {
  border-top: 1px solid !important;
  border-bottom: 1px solid !important;
}

figure.cc-specs > table tr td:first-child {
  font-weight: 600;
}

/*figure.cc-specs > table td {
    border-top: 1px solid gray !important;
    border-bottom: 1px solid gray !important;
}*/

table.cc-webform {
  border: none;
  border-collapse: collapse;
}
table.cc-webform tr {
}
table.cc-webform td {
  border: none;
}
table.cc-webform input {
  width: 97%;
}

div.cc-webform > div {
  /* border:1px solid gray; */
  /* border-radius:5px; */
  margin: 1em;
  /* padding:1em; */
}

#cc-webform-terms {
  text-align: left;
  width: 72%;
  margin: 1em;
}

div.cc-webform > div > div:nth-child(1) {
  display: inline-block;
  width: 350px;
  margin-top: -5px;
}
div.cc-webform > div > div:nth-child(2) {
  display: inline-block;
  min-width: 400px;
  height: 40px;
}

div.cc-webform > div > div:nth-child(2) > input {
  display: inline-block;
  width: 100%;
  height: 100%;
  font-size: medium;
  padding-left: 20px;
  box-sizing: border-box;
  border-style: solid;
  border-width: 1px;
  border-radius: 0px;
  border-color: var(--wp--preset--color--primary);
}

div.cc-webform > div > div:nth-child(2) > select {
  display: inline-block;
  width: 100%;
  height: 100%;
  border-style: solid;
  border-width: 1px;
  border-color: var(--wp--preset--color--primary);
  border-radius: 0px;
  font-size: 12px;
  padding: 8px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

div.cc-webform > div > div:nth-child(2) > textarea {
  display: inline-block;
  width: 100%;
  font-size: medium;
  box-sizing: border-box;
  padding-left: 20px;
  margin-bottom: -5px;
  border-style: solid;
  border-width: 1px;
  border-radius: 0px;
  border-color: var(--wp--preset--color--primary);
}

div.cc-webform > div > div:nth-child(2) > input[type='checkbox'] {
  display: inline;
  width: 1em;
  margin: 0.5em;
}

div.cc-dynamic-notice {
  border: 1px solid gray;
  background-color: #eee;
  padding: 1em;
  margin: 1em;
}

div.ccform_msg,
div.error_msg,
div.ccform_msg p,
div.error_msg p,
div.ccform_msg a,
div.error_msg a {
  color: white;
  font-weight: bold;
}

div.ccform_msg {
  background-color: var(--wp--preset--color--primary);
}

span.error_msg,
div.error_msg {
  background-color: #f00000;
}

div.ccform_msg,
div.error_msg {
  width: 70%;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 1em;
  padding-right: 1em;
  margin-bottom: 5%;
  line-height: 2em;
}

div.ccform_msg a,
div.error_msg a {
  text-decoration: underline;
}

div.ccform_msg {
  background-color: var(--wp--preset--color--primary);
  color: white;
  font-weight: bold;
  width: 70%;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 1em;
  padding-right: 1em;
  line-height: 2em;
}

#cc_ssh_key {
  width: 99%;
  height: 150px;
}

/* Buttons */
input.cc-button {
  display: inline-block;
  min-width: 140px;
  padding: 10px 20px;
  margin-left: 35%;
  margin-top: 5px;
  text-align: center;
  background: var(--wp--preset--color--primary);
  cursor: pointer;
  color: var(--wp--preset--color--base);
  font-size: 100%;
  height: 50px;
  border: 0px solid var(--wp--preset--color--base);
  border-radius: 10px;
}

input.cc-button:hover {
  background-color: var(--wp--preset--color--cfx--hover--button);
}

div.cc-button > input {
  height: 100%;
  width: 100%;
}

div.cc-button {
  display: inline-block;
  min-width: 140px;
  height: 46px;
  text-align: center;
  line-height: 46px;
  background: var(--wp--preset--color--primary);
  margin: 2px;
  padding-left: 1em;
  padding-right: 1em;
}

div.cc-button a {
  color: white;
  font-size: 100%;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.custom-table-input {
  width: 100%;
  box-sizing: border-box;
}

/* For SSH key interface */
div.cc-accordion-container {
  display: flex;
}

button.cc-accordion {
  flex-grow: 1;
  background-color: var(--wp--preset--color--tertiary);
  color: var(--wp--preset--color--base);
  cursor: pointer;
  padding: 18px;
  width: 80%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

.cc-active,
.cc-accordion:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--cfx--hover--font);
}

.cc-delete:hover {
  background-color: var(--wp--preset--color--cfx--hover--button);
  color: var(--wp--preset--color--cfx--hover--font);
}

.cc-accordion:after {
  content: 'Show';
  color: var(--wp--preset--color--cfx-font);
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.cc-accordion:hover:after {
  color: var(--wp--preset--color--cfx--hover--font); /* Change color */
}

.cc-active:after {
  content: 'Hide';
}

.cc-key-panel {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  width: 100%;
  font-family: monospace;
}

.cc-key-panel > p {
  overflow-wrap: break-word;
  padding-right: 10px;
  padding-left: 10px;
}

.cc-delete {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--cfx--hover--font);
  cursor: pointer;
  padding: 18px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

/* API response text span */
.request_action_success,
.action_success,
.access_end_action_success,
.seat_action_success,
.access_action_success,
.reservation_delete_action_success,
.reservation_reprovision_action_success,
.action_success {
  /* padding: 5px; */
  background: #9cffb7;
  font-size: 14px;
}

.request_action_failure,
.action_failure,
.access_end_action_failure,
.access_action_failure,
.seat_action_failure,
.reservation_delete_action_failure,
.reservation_reprovision_action_failure,
.action_failure {
  /* padding: 5px; */
  line-height: 1.5;
  background: #ffabab;
  font-size: 14px;
}

.request_action_reject {
  padding: 5px;
  background: #b9b9b9;
  font-size: 14px;
}

.meta_key {
  display: inline-block;
  height: 15px;
  /* width: 80px; */
  font-size: 14px;
  font-weight: bolder;
}

.meta_value {
  margin-top: 5px;
  font-size: 14px;
  padding: 10px;
}

.quick_review_request_wrap_close,
.more_info_access_code_wrap_close,
.api_log_inspect_wrap_close {
  margin-left: 0;
  margin-top: 10px;
  font-size: 14px;
  padding: 5px;
}

.email_test {
  cursor: pointer;
  margin-left: 10px;
  vertical-align: text-bottom;
  padding: 10px;
  background-color: #135e96;
  color: white;
  font-size: 15px;
  border-radius: 5px;
  border-style: none;
}

.email_test:disabled {
  background-color: #a5a8ab;
  cursor: default;
}

.request_quick_edit,
.access_quick_edit,
.seat_quick_edit,
.reservation_quick_edit,
.seat_connected_system_quick_edit {
  margin: 0;
  padding-left: 0;
  padding-top: 10px;
  display: flex;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #2271b1;
}

.request_quick_edit_wrap {
  margin: 0;
  padding: 0;
}

.quick_edit_title {
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 15px;
  display: block;
}

.request_column_name {
  margin: 0;
  padding-top: 10px;
  white-space: nowrap;
  display: inline-block;
  /* vertical-align: top; */
  height: 25px;
  width: 13%;
  font-size: 14px;
}

.connected_system_edit_table,
.connected_system_add_table {
  width: 100%;
}

.request_column_value {
  margin: 0;
  margin-right: 20px;
  padding: 0;
  white-space: nowrap;
  padding-top: 10px;
  display: inline-block;
  height: 25px;
  width: 35%;
  font-size: 14px;
}

.reservation_input_name,
.access_code_input_name {
  margin-top: 10px;
  display: inline-block;
  height: 25px;
  width: 15%;
  font-size: 16px;
}

.connected_system_input_name {
  margin-top: 5px;
  display: inline-block;
  height: 25px;
  width: 10%;
  font-size: 15px;
}

.user_registration_input_name,
.user_registration_input_value,
.connected_system_input_value {
  margin-top: 10px;
  display: inline-block;
  height: 25px;
  width: 20%;
  font-size: 16px !important;
  vertical-align: baseline !important;
}

.reservation_input_value,
.access_code_input_value {
  margin-top: 10px;
  padding: 0;
  white-space: nowrap;
  padding-top: 10px;
  display: inline-block;
  height: 25px;
  width: 30% !important;
  font-size: 14px;
}

.required_input {
  margin-left: 5px;
  font-size: 14px;
}

.request_quick_edit_save_button,
.access_quick_edit_update_button,
.reservation_save_button,
.seat_edit_update_button,
.user_registration_save_button,
.reservation_edit_save_button,
.connected_system_edit_save_button,
.connected_system_save_button,
.multiple_connected_system_analyze_button,
.multiple_connected_system_submit_button,
.access_code_save_button {
  margin-top: 10px;
  padding: 10px;

  display: inline-block;
  background-color: #2271b1;
  font-size: 13px;
  border-color: #2271b1;
  border: solid;
  border-width: 1px;
  box-shadow: none;
  cursor: pointer;
  color: white;
}

.request_quick_edit_cancel_button,
.access_quick_edit_cancel_button,
.reservation_cancel_button,
.seat_edit_cancel_button,
.user_registration_cancel_button,
.reservation_edit_cancel_button,
.connected_system_edit_cancel_button,
.connected_system_cancel_button,
.multiple_connected_system_cancel_button,
.access_code_cancel_button {
  margin-top: 10px;
  margin-left: 10px;
  padding: 10px;
  display: inline-block;
  background-color: white;
  font-size: 13px;
  border-color: #2271b1;
  border: solid;
  border-width: 1px;
  box-shadow: none;
  cursor: pointer;
  color: #2271b1;
}

.multiple_connected_system_submit_button:disabled {
  background-color: #a5a8ab;
}

#email_test_response_msg {
  vertical-align: super;
  margin-left: 10px;
  padding: 5px;
  font-size: 14px;
}

#request_action,
#access_code_action {
  margin-top: 10px;
  display: inline-block;
  border-radius: 10px;
}

div.cc-radio-option {
  margin: 1em 0 1em 0;
}

div.cc-radio-option > input {
  display: none;
}

div.cc-radio-option > label {
  display: block;
  background-color: lightgrey;
  padding: 1em;
  cursor: pointer;
}

div.cc-radio-option > input:checked + label {
  background-color: var(--wp--preset--color--primary);
  color: white;
}

form.cc-radio-form > input[type='button'] {
  display: block;
  margin: auto;
  font-size: 100%;
  padding: 10px 20px;
  border: 0px solid var(--wp--preset--color--base);
  border-radius: 10px;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  height: 50px;
  cursor: pointer;
}

form.cc-radio-form > input[type='button']:hover {
  background-color: var(--wp--preset--color--cfx--hover--button);
}

form.cc-radio-form > input[type='button']:disabled {
  background-color: lightgrey;
  color: grey;
  cursor: not-allowed;
}

p.cc-reservation {
  display: block;
  margin: auto;
  padding: 1em;
  background-color: var(--wp--preset--color--primary);
  color: white;
  text-align: center;
}

p.cc-reservation > span.cc-reservation-status {
  display: block;
  background-color: var(--wp--preset--color--secondary);
}

.table-title-div {
  display: flex;
  justify-content: left;
  position: relative;
}

.table-title-header {
  margin-right: 10px;
  font-size: 23px;
  font-weight: 400;
  text-align: center;
}

.table-title-add {
  margin-top: 1.8em;
  height: fit-content;
  width: fit-content;
}

/* #connected_system_table table {
	border-collapse: collapse;
  width: 100%;

  /* font-family: Tahoma, Geneva, sans-serif; */
/* }

#connected_system_table table thead tr {
	background-color: #e5fff7;
	font-weight: bold;
	font-size: 16px;
  height:  40px;
} */

/* #connected_system_table table thead tr th {
  width: 30%;
} */
/* 
#connected_system_table table thead td {
	background-color: #e5fff7;
	font-weight: bold;
	font-size: 16px;
  height:  40px;
} */
/* 
.connected_system_table_title_host {
  width: 35%;
}

.connected_system_table_title_bmc {
  width: 50%;

}

#connected_system_table table td {
	padding: 5px;
}


.line-row{
  border-bottom: 1px solid #cbd0ce;
	
} */

#connected_system_table table thead {
  background-color: #e5fff7;
  font-weight: bold;
}

#connected_system_table table {
  border-collapse: collapse;
  width: 100%;
}

#connected_system_table td,
#connected_system_table th {
  border: 1px solid gray;
  font-size: 80%;
}

td {
  padding: 5px;
}

.line-row {
  padding: 1px;
  background-color: #f6f6f6;
}

.apply-dhcp-div {
  width: 100%;
  display: flex;
  align-items: flex-end;
}

button.apply-dhcp {
  margin-left: auto;
  margin-top: 10px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #2271b1;
  color: white;
  border-radius: 5px;
  margin-left: auto;
  border: none;
}

button.apply-dhcp:hover {
  background-color: #005396;
}

/* Styles for the progress circle */
.progress-apply-dhcp-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #3498db;
  border-top-color: transparent;
  animation: spin 1.3s steps(2) 0.2s infinite;
  -webkit-animation: spin 1.3s linear infinite;
}

/* Styles for the popup */
.popup-apply-dhcp {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.popup-apply-dhcp-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Addin style for input textarea of multiple connected system.*/
.multiple_connected_system_input {
  width: 100%;
  height: 150px;
  resize: none;
  overflow-y: auto;
}

#analyze_multiple_connected_system_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid black;
}

#add_multiple_connected_system_status_table {
  width: 70%;
  border-collapse: collapse;
  border: 1px solid black;
}

#analyze_multiple_connected_system_table th,
#analyze_multiple_connected_system_table td,
#add_multiple_connected_system_status_table th,
#add_multiple_connected_system_status_table td {
  border: 1px solid black;
  padding: 10px;
  text-align: left;
}

/* Adding basic accordion */
div.cc-basic-accordion-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.cc-basic-accordion {
  flex-grow: 1;
  background-color: var(--wp--preset--color--tertiary);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  font-size: var(--wp--preset--font-size--small);
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.cc-basic-accordion:hover {
  background-color: var(--wp--preset--color--secondary);
}

.cc-basic-accordion:after {
  content: 'Show';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.cc-basic-accordion.active:after {
  content: 'Hide';
}

/* Style the accordion panel. Note: hidden by default */
.cc-basic-panel {
  padding: 0 18px;
  transition: max-height 0.2s ease-out;
  width: 100%;
  background-color: #eee;
  display: none;
  overflow: hidden;
}

.connected_system_ssh_config {
  display: block;
  font-family: inherit;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

a.cc-active-page {
  font-weight: bold;
}

.cc-offset {
  margin-left: 1em;
  display: block;
}

.access_code_description_input {
  vertical-align: top;
}

.access_code_description_value {
  margin-top: 10px;
  padding: 0;
  height: 100px;
  width: 30%;
  padding-top: 10px;
  display: inline-block;
  font-size: 14px;
}

.group-checkbox {
  margin-right: 5px;
}

.group-checkbox-label {
  font-weight: bold;
  margin-right: 20px;
  vertical-align: middle;
}

.code-box {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  width: 100%;
  box-sizing: border-box;
}

#cc-dynamic-form-submit-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-field-hint {
  width: 76%;
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 50px;
  color: var(--wp--preset--color--tertiary);
}
#exportBtn {
  margin-left: auto;
  background: #2271b1;
  color: white;
}

.export-options {
    display: none;
    position: absolute;
    top: 80%;
    right: 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9999;
}

.export-options a {
    display: block;
    padding: 8px 12px;
    color: #23282d;
    text-decoration: none;
}

.export-options a:hover {
    background: #f1f1f1;
}

#export_reservation_loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.export_reservation_spinner_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-text {
    margin-top: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.export_reservation_spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Style for API Log table colunms */
.wp-list-table .column-timestamp {
  width: 13%;
}
.wp-list-table .column-status_code {
  width: 7%;
}
.wp-list-table .column-method {
  width: 5%;
}
.wp-list-table .column-endpoint {
  width: 17%;
}
.wp-list-table .column-response_data {
  width: 45%;
}
.wp-list-table .status-code-ok {
  color: green;
}
.wp-list-table .status-code-error {
  color: red;
}
