/* #guest-manage input {
  background: white;
  border: 1px solid #d1cbcb;
  padding: 5px 5px 5px 5px;
  width: 90px;
  text-align: center;
} */
/* .highlight-error {
  background-color: #ffe6e6 !important; 
} */

tr.duplicate {
  background: #e1dfdf !important;
}
#guest-checkout-form input {

  background: white;
  border: 1px solid #d1cbcb;
  padding: 5px 5px 5px 5px;
  width: 90px;
  text-align: center;
}

.export-filter input {
  height: 26px;
}

input.guest-input.commission,
input.guest-input.lodging-total {
  margin-left: 15px;
}

/*Save button for listings*/
div#form-section-submit {
  position: fixed !important;
  bottom: 100px !important;
  right: 16px !important;
  max-width: 150px;
}

button#export-csv {
  margin: 0 !important;
}

.edit-listing-form button.preview-btn.buttons.button-5 {
  background: #0a0a0a;
  color: #ffffff;
  font-size: 14px;
  padding: 10px;
  font-family: sans-serif;
  border: black !important;
  border: 1px solid;
  max-width: 150px;
  margin-bottom: 38px;
  /* box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgb(6 24 44 / 31%) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset; */
}
.export-filter label,
.filter-forms label,
.form-check-label {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 25px;
}

#filter_post {
  margin-top: 0px;
  margin-bottom: -37px;
  margin-left: 15px;
}

#task-manage .elementor-container,
#guest-manage .elementor-container {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  border-radius: 14px !important;
  overflow: auto;
  background: white;
}

.page-id-11290 .elementor-widget-wrap.elementor-element-populated {
  border-radius: 8px;
  padding: 7px 7px 12px 7px;
}

table.wp-list-table.widefat.striped.guest-tasks,
table.wp-list-table.widefat.striped.guest-check-in {
  overflow: scroll;
  margin-bottom: 10px;
  width: -webkit-fill-available;
}

/* Styling for the guest tasks and guest check-in forms */
.guest-tasks-filter-form,
.guest-check-in-filter-form {
  padding: 0 10px 0 10px;
}

form#filter-form {
  padding: 0 10px 0 10px;
  margin-bottom: 12px;
}

#guest-checkout-form {
  margin-bottom: 10px;
}

.elementor-shortcode {
  margin-bottom: -10px;
}

#guest-checkout-form .table-responsive,
.guest-tasks-form .table-responsive {
  /* margin-bottom: 20px; */
  clear: both;
}

.guest-tasks-form .table-responsive {
  padding-top: 5px;
  top: -10px;
  position: relative;
}

/*.guest-tasks-form th:nth-child(1) { width: 5%; } /* Select */
.guest-tasks-form th:nth-child(2) {
  width: 8%;
} /* Category */
.guest-tasks-form th:nth-child(3) {
  width: 5%;
} /* Category */
.guest-tasks-form th:nth-child(4) {
  width: 4%;
} /* Room */
.guest-tasks-form th:nth-child(10) {
  width: 4%;
} /* User */
.guest-tasks-form th:nth-child(11) {
  width: 8%;
} /* User */
.guest-tasks-form th:nth-child(15) {
  width: 9%; /* Timestamp */
}
.guest-tasks-form td:nth-child(2) {
  text-align: left;
}

.page-id-11290 div#c27-site-wrapper {
  padding-bottom: 120px;
}
/* ELementor css Management Dashboard */

.elementor-11290 .elementor-element.elementor-element-9355458 .elementor-heading-title {
  color: #181818;
  font-family: "RocknRoll One", Sans-serif;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-top: 25px;
}

.elementor-11290 .elementor-element.elementor-element-efe675e .elementor-heading-title {
  color: #000000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px !important;
}

.elementor-11290 .elementor-element.elementor-element-12e43ab .elementor-heading-title {
  color: #000000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px !important;
}

section#task-manage {
  margin-top: 3px;
  margin-bottom: 60px;
}

.elementor-column.elementor-col-100.elementor-top-column.elementor-element.elementor-element-6737ccd,
.elementor-column.elementor-col-100.elementor-top-column.elementor-element.elementor-element-c7531b2 {
  background: white;
  border-radius: 12px;
}

/* Mobile-friendly table styling */
.guest-tasks th,
.guest-tasks td,
.guest-check-in th,
.guest-check-in td {
  line-height: 18px;
  padding: 10px 2px;
  text-align: center;
  font-size: 13px;
}

.guest-tasks th,
.guest-check-in th {
  background-color: #f2f7f9;
  text-transform: uppercase;
  font-size: 12px;
  color: #353434;
}

#task-manage .elementor-container {
  overflow-y: hidden;
}

.guest-tasks-filter-form select#filter_post {
  /* width: 120px; */
}

select#guest-hotel-select {
  top: -1px;
  /* width: 120px; */
}

.currency-filter {
  display: ruby;
  padding-top: 6px;
}

.currency-select {
  display: inline;
}

.guest-tasks tr:nth-child(even),
.guest-check-in tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover effect */
.guest-tasks tr:hover,
.guest-check-in tr:hover {
  background-color: #f9f9f9;
}

/* Update button styles */
.guest-tasks button,
.guest-check-in button {
  background-color: #05af00;
  border: 1px solid white;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
}

button.save-guest-checkout {
  border: 1px solid white;
}

button.duplicate-guest {
  background: none;
  color: #21b3cf;
  border: 1px solid;
}

button.delete-guest {
  background: none;
  color: #ff5f5f;
  border: 1px solid;
}

button.reservation-view-btn {
  background: none;
  color: #454545;
  border: 1px solid;
}

button.save-guest-checkout.update-button {
  width: 80px;
  height: 30px;
  color: #208d8f;
  background: #ffffff;
  border: 1px solid #208d8f;
}

button.save-guest-checkout.update-button.edit {
  color: #ffffff;
  background: #21b3cf;
  border: 1px solid #208d8f;
}

/* button.save-guest-checkout.checkout-button {
  width: 80px;
  height: 30px;
  color: #ffffff;
  background: #0073aa;
  border: 1px solid #004a77;
}

button.save-guest-checkout.edit.checkout-button {
  background-color: #11d911;
  color: white;
  border: 1px solid #12a512;
} */

.filter-forms {
  align-items: center;
  gap: 10px;
}

.hotel-filter {
  float: left;
  margin-top: 0px;
  margin-right: 10px;
}

.new-reservation {
  float: left;
  margin-right: 15px;
  top: 1px;
  position: relative;
}

.export-filter {
  display: inline-block;
  gap: 3px;
  float: right;
  /* width: 438px; */
}

.export-filter input {
  display: inline-block;
  width: 69px !important;
}

.filter-forms form {
  margin: 0;
}

.filter-forms div {
  margin-bottom: 10px;
}

.col-form-label.adults {
  margin-left: 5px;
}

.row.space div,
.calculated-fields div,
.form-field.row.adults div, 
.form-field.row.children div,
.form-field.row.adults label, 
.form-field.row.children label,
.form-field.row.currency .col-sm-2,
.form-field.row.currency label {
  padding: 0;
}

.form-field.row.currency label.currency {
  display: contents;
}

.form-field.row.adults, .form-field.row.children {
  display: inline-block;
  margin: 0 auto 0 auto;
  --bs-gutter-x: none;
}

#notes,
#checkin_date,
#checkout_date,
.guest-tasks-form .btn,
.bulk-actions .btn-primary,
.filter-forms .btn-primary,
.filter-forms .btn-outline-primary,
.filter-forms .dropdown-menu,
#reservationForm .btn-primary,
#reservationForm .btn-secondary,
#reservationForm .dropdown-menu,
#reservationForm  label,
.guest-tasks-filter-form .dropdown-menu,
.filter-forms .datepicker,
.export-filter .datepicker {
  font-size: 10px !important;
  height: 30px !important;
  padding: 4px 12px !important;
}

.filter-forms select.dropdown-menu {
  display: inline-block;
  position: relative;
  box-shadow: none;
  border: 1px solid #ccc;
}

.filter-forms .currency-filter select.dropdown-menu {
  min-width: 45px;
  top: -1px;
}

.valid-row {
  background-color: #e6ffe6 !important;
  /* Light green background */
}

.invalid-row {
  background-color: #ffe6e6 !important;
  /* Light red background */
}

.currency-select select,
.currency-select label {
  margin-right: 0px;
}

.currency-postfix {
  margin-left: 5px;
  cursor: pointer;
  color: #0073aa;
  /* WordPress blue color */
  display: inline-flex;
  align-items: center;
}

.currency-postfix::after {
  content: "▼";
  /* Unicode character for down arrow */
  font-size: 10px;
  margin-left: 3px;
}

.currency-selector {
  width: 60px;
}

.currency-field {
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-field input {
  flex: 1;
}

#filter-form span.accommodation-charge {
  font-size: 14px;
}

.currency-field .currency-postfix {
  margin-left: 5px;
  white-space: nowrap;
}

#end-date-picker,
#apply-filters {
  margin-right: 5px;
}

#start-date-picker,
#end-date-picker {
  font-size: 10px;
  min-width: 75px;
}

/* Ensure action buttons are centered and aligned */
.action-buttons {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

/* Optional: Adjust table responsiveness */
.table-responsive {
  overflow-x: auto;
}

/* Optional: Adjust input field widths for better alignment */
.guest-input {
  width: 100%;
  box-sizing: border-box;
}

.filter-forms .btn-primary {
  margin: 0;
}

.validation-modal .modal-dialog {
  max-width: none;
}

.validation-table,
.guest-tasks-form .wp-list-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.validation-table th,
.validation-table td,
.guest-tasks-form .wp-list-table th,
.guest-tasks-form .wp-list-table td  {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.validation-table th,
.guest-tasks-form .wp-list-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.validation-table td[title],
.guest-tasks-form .wp-list-table td[title] {
  cursor: help; /* Show a tooltip for invalid cells */
}

.validation-table td:hover[title]::after,
.guest-tasks-form .wp-list-table td:hover[title]::after {
  content: attr(title);
  position: absolute;
  background: #f8d7da;
  color: #ff5f5f;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 5px;
  font-size: 12px;
  z-index: 10;
}

/* Make modal scrollable */
.modal-body {
  max-height: 55vh; /* Limit height to 70% of the viewport */
  overflow-y: auto; /* Enable vertical scrolling */
}

/* Style the table for small screens */
.validation-table,
.guest-tasks-form .wp-list-table  {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem; /* Adjust font size for smaller devices */
}

.validation-table th,
.validation-table td,
.guest-tasks-form .wp-list-table th,
.guest-tasks-form .wp-list-table td  {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  word-wrap: break-word; /* Handle long text */
}
.fa-file-export:before {
  content: "\f56e";
  padding-right: 5px;
}
.guest-tasks-form .wp-list-table tr {
  max-height: 40px; 
  overflow: hidden; 
  white-space: nowrap; 
  text-overflow: ellipsis; 
}

.guest-tasks-form tr.completed {
  text-decoration: line-through;
  opacity: 0.3;
}



.guest-tasks-form .wp-list-table tbody td:first-child {
  vertical-align: middle;
  text-align: center; 
}
button.save-guest-checkout.checkout-button.update-button {
  color: #208d8f;
  background: #ffffff;
  border: 1px solid #208d8f;
}
button.save-guest-checkout.update-button:hover, button.save-guest-checkout.update-button:active {
  color: #ffffff;
  background: #21b3cf;
  border: 1px solid #208d8f;
}

.error-count {
  color: #ff5f5f;
  font-weight: 700;
  font-size: 12px;
  margin-top: 5px;
}

.modal-body .text-success {
  margin-top: 8px;
}

#validation-modal {
  background: #000000d9;
  z-index: 10000;
}

.bulk-actions {
  vertical-align: middle;
  padding-left: 22px;
  height: 10px;
  margin-top: 0px;
  float: left;
}

.bulk-actions .form-check-label {
  top: -6px;
  position: relative;
}

input#check_all_tasks_checkbox {
  top: -4px;
  position: relative;
  margin-right: 5px;
}

.guest-tasks-form {
  clear: both;
  top: -15px;
  position: relative;
  margin-bottom: -17px;
}

/* Hide horizontal scrolling if not necessary */
@media (max-width: 576px) {
  .modal-content {
    margin: 5px;
  }

  .validation-table {
    font-size: 0.8rem;
  }

  .error-count {
    font-size: 0.9rem;
  }
}

@media (max-width: 430px) {
  .currency-filter {
    display: none;
  }
  button#export-csv {
    margin-top: 8px !important;
  }
}
