.table-rotate-hint {
  position: absolute;
  right: -18px;
  bottom: 0px;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.table-template-ts1:hover .table-rotate-hint,
.table-template-ts1.table-rotate-hint-active .table-rotate-hint,
.table-rotate-hint:hover {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.table-rotate-hint i {
  font-size: 14px;
  color: #0c2640;
}

#clickedTablePreview .table-bg {
  transition: transform 220ms ease;
  transform-origin: 50% 50%;
}

#clickedTablePreview .preview-rot-0 .table-bg {
  transform: rotate(0deg);
}

#clickedTablePreview .preview-rot-90 .table-bg {
  transform: rotate(90deg);
}

.table-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: #1f1f1f;
}

.vip-badge i {
  color: #f5c542;
  font-size: 12px;
}

.table-blocked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.3em, 6px);
  z-index: 10;
  pointer-events: none;
  text-align: center;
}

.table-blocked-overlay i {
  font-size: clamp(14px, 35%, 22px);
  line-height: 1;
  color: #fff;
}

.table-blocked-text {
  font-size: clamp(9px, 25%, 12px);
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff !important;
  font-size: 10px !important;
  opacity: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.t-area-title {
  font-family: "Poppins";
  font-size: 20px;
  font-weight: 600;
  line-height: 20.12px;
  text-align: left;
  color: #0c2640;
}

.available-sections-container>div,
.overview-informations-container>div {
  border: 1px solid #00b4e5;
  border-radius: 5px;
  padding: 2px;
  gap: 6px;
}

input[type="radio"]:checked+.select-radio-btn-control {
  background: #00b4e5;
  color: #ffffff;
  font-weight: 600;
}

.select-radio-btn-control {
  width: 100%;
  height: 41px;
  cursor: pointer;
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  background-color: #e5f6f9;
  color: #707070;
}

.table-area-container span {
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 600;
  color: #0c2640;
}

.overview-informations-container {
  margin: 30px 0;
}

.overview-informations-container>div {
  padding: 15px;
}

.info-border-r {
  border-right: 1px solid #e5e5e5;
}

.total-statistics p {
  font-family: "Poppins";
  font-size: 12px;
  font-weight: 300;
  text-align: left;
  margin-bottom: 7px;
}

.total-statistics h6 {
  font-family: "Poppins";
  font-size: 28px;
  font-weight: 700;
  text-align: left;
  color: #00b4e5;
  margin-bottom: 0;
}

.table-layout-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.grid-container {
  display: grid;
  gap: 4px;
  overflow: auto;
  max-height: 450px;
  min-height: 300px;
  padding: 0 10px 10px 0;
  margin-right: 5px;
}

.grid-item {
  --color-item: #00b4e5;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-item);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.grid-item.allowed-added-item:not(.occupied):hover::after {
  content: "+";
  position: absolute;
  inset: 0px;
  font-size: 2.5rem;
  color: var(--color-item);
  font-weight: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus {
  font-size: 55px;
  color: #00bfff;
  font-weight: 100;
}

.rows-container,
.columns-container {
  background: #f5f5f5;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaaaaa;
}

.rows-container {
  margin-right: 55px;
}

.rows-container button,
.columns-container button {
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  padding: 0;
  background: unset;
  color: #aaaaaa;
}

.place-table-btn {
  display: none;
  color: #18aee3;
  border: none;
  cursor: pointer;
  background: unset;
  font-size: 35px;
  font-weight: 100;
}

.place-table-btn:focus {
  outline: none;
}

.grid-item:hover .place-table-btn {
  display: block;
}

.columns-container {
  transform: scale(-1) translate(0%, 0%);
  writing-mode: vertical-lr;
}

.grid-container::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
.grid-container::-webkit-scrollbar-track {
  box-shadow: inset 0 0 3px #abc4d1;
  border-radius: 10px;
}

/* Handle */
.grid-container::-webkit-scrollbar-thumb {
  background: #66a4c5;
  border-radius: 5px;
}

/* Handle on hover */
.grid-container::-webkit-scrollbar-thumb:hover {
  background: #66a4c5;
}

.section-available-tables {
  margin-top: 30px;
}

.section-available-tables-container,
#assignedEmployees-container {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.available-table {
  flex: 0 1 auto;
  order: 1;
}

.btn-add-table {
  flex: 0 1 50px;
  order: 2;
  align-self: flex-start;
}

.employee-box,
.assign-new-employee {
  display: flex;
  align-items: center;
  text-align: center;
  /* margin-bottom: 15px; */
}

.assign-new-employee {
  margin-top: auto;
  flex: 0 1 auto;
  order: 1;
  height: 41px;
}

.employee-box:hover .assigned-employee-initials {
  border: 1px solid #f64e60;
  background-color: #ffffff;
  content: url("../img/appointments/remove-employee.svg");
  cursor: pointer;
  padding: 7px;
}

.employee-box:hover .employee-name {
  color: #f64e60;
  font-size: 14px;
}

.grid-item.occupied .place-table-btn {
  display: none;
}

.grid-item.occupied:hover .delete-table-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid red;
  background: #ffffff;
  color: red;
  font-size: 25px;
  font-weight: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.grid-item .scheduled_table {
  background: #28a745 url('data:image/svg+xml,<svg width="22" height="28" viewBox="0 0 22 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.83494 0H19.1668C20.453 0 21.5 1.04636 21.5 2.33315V12.8323C21.5 14.119 20.453 15.1654 19.1668 15.1654H14.5006V16.332C14.5006 16.975 13.9777 17.4985 13.334 17.4985H11.5842V26.8311H16.2504C16.5729 26.8311 16.8338 27.092 16.8338 27.4144C16.8338 27.7368 16.5729 27.9977 16.2504 27.9977H5.75134C5.42893 27.9977 5.16804 27.7368 5.16804 27.4144C5.16804 27.092 5.42893 26.8311 5.75134 26.8311H10.4176V17.4985H8.66774C8.02407 17.4985 7.50119 16.975 7.50119 16.332V15.1654H2.83494C1.54875 15.1654 0.501793 14.1191 0.501793 12.8323V2.33315C0.501793 1.04636 1.54875 0 2.83494 0ZM8.66774 16.9152V16.3319H13.334V12.8322H8.66774V16.3319H8.6666L8.66774 16.9152ZM1.66834 12.8323C1.66834 13.4753 2.19127 13.9988 2.83489 13.9988H7.50119V12.8323C7.50119 12.1892 8.02413 11.6657 8.66774 11.6657H13.334C13.9777 11.6657 14.5005 12.1892 14.5005 12.8323V13.9988H19.1668C19.8105 13.9988 20.3333 13.4753 20.3333 12.8323V2.33315C20.3333 1.69008 19.8104 1.1666 19.1668 1.1666H2.83484C2.19116 1.1666 1.66829 1.69008 1.66829 2.33315V12.8323H1.66834Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.50254 13.9982C1.85892 13.9982 1.33599 13.4747 1.33599 12.8317L1.33594 2.33256C1.33594 1.68949 1.85882 1.16602 2.50249 1.16602H19.2087C19.8523 1.16602 20.3752 1.68949 20.3752 2.33256V12.8317C20.3752 13.4747 19.8524 13.9982 19.2087 13.9982H14.1665V12.8317C14.1665 12.1886 13.6437 11.6651 13 11.6651H8.70963C8.06601 11.6651 7.54308 12.1886 7.54308 12.8317V13.9982H2.50254ZM4.98293 3.99951H17.8151C18.1375 3.99951 18.3984 4.2604 18.3984 4.58281C18.3984 4.90522 18.1375 5.16612 17.8151 5.16612H4.98288C4.66047 5.16612 4.39958 4.90522 4.39958 4.58281C4.39958 4.2604 4.66052 3.99951 4.98293 3.99951ZM16.6511 8.66553H6.15197C5.82956 8.66553 5.56867 8.92642 5.56867 9.24883C5.56867 9.57124 5.82956 9.83213 6.15197 9.83213H16.6511C16.9735 9.83213 17.2344 9.57124 17.2344 9.24883C17.2344 8.92642 16.9735 8.66553 16.6511 8.66553Z" fill="white"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
  width: 100%;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.grid-item:hover .scheduled_table {
  background: #28a745;
}

.grid-item:hover .scheduled_table::before {
  content: "View Details";
  color: white;
  font-size: 0.75rem;
}

/* .grid-item.occupied:hover .available-table{
    background-color: unset;
} */

.delete-table-btn {
  display: none;
}

.available-table {
  width: 50px;
  background-color: #00b4e5;
  border-radius: 10px;
  align-items: center;
  text-align: center;
  color: #ffffff;
  cursor: grab;
  user-select: none;
  margin: 5px;
}

.available-table p {
  margin-bottom: 0;
  font-size: 10px;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 2px;
}

.available-table h5 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.btn-add-table,
.btn-assign-new-employee {
  border: 1px solid #e5e5e5;
  background: unset;
  border-radius: 10px;
  width: 41px;
  height: 41px;
  font-size: 41px;
  font-weight: 100;
  display: flex;
  align-items: center;
  color: #e5e5e5;
  justify-content: center;
  margin: 5px 5px 5px 0px;
}

.grid-item>.available-table {
  margin: 0 !important;
}

.grid-item.can-be-remove-item:hover .available-table {
  display: none;
}

.grid-item.can-be-remove-item:hover {
  --color-item: #ff0000;
}

.grid-item.can-be-remove-item:hover::before {
  content: "X";
  font-size: 1.5rem;
  color: red;
}

.assign-new-employee span {
  display: flex;
  align-items: center;
  font-family: Poppins;
  font-size: 16px;
  font-weight: 600;
  color: #e5e5e5;
  width: fit-content;
  cursor: pointer;
  white-space: nowrap;
}

.assign-new-employee:hover span,
.assign-new-employee:hover .btn-assign-new-employee,
.btn-add-table:hover {
  color: #00b4e5;
}

.assign-new-employee:hover .btn-assign-new-employee,
.btn-add-table:hover {
  border: 1px solid #00b4e5;
}

.employee-box {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.employee-box p {
  margin: 0 0 0 10px;
  font-family: Poppins;
  font-size: 16px;
  font-weight: 600;
  color: #0c2640;
  text-align: start;
}

.assigned-employee-initials {
  background: #0c2640;
  color: #ffffff !important;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
}

.custom-inputs-cal,
.form-control.custom-inputs-cal:focus {
  border: 1px solid #00b4e5;
  border-color: #00b4e5 !important;
  padding: 20px;
  height: 41px;
}

.custom-inputs-cal::placeholder {
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 300;
  color: #aaaaaa;
}

.fs-16 {
  font-size: 16px;
}

.confirm-table-removal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f64e60;
  color: #ffffff;
  width: 100%;
  font-family: Poppins;
  font-size: 14px;
  height: 41px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  margin-top: 30px;
}

.confirm-table-removal-btn:hover {
  background: #fa6776;
}

.confirm-table-save-btn {
  background: #18aee3;
  color: #ffffff;
  width: 100%;
  font-family: Poppins;
  font-size: 14px;
  height: 41px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  margin-top: 30px;
}

.confirm-table-save-btn:disabled {
  background: #18ade37a;
}

.confirm-table-save-btn:hover {
  background: #2dc3fa;
}

.table-name-input-wrapper {
  position: relative;
  width: 100%;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #00b4e5;
  font-size: 15px;
  pointer-events: none;
}

.editing-table-name-input,
.editing-table-min-guest-input,
.editing-table-shape-input,
.editing-table-chairs-input {
  border: 1px solid #00b4e5;
  padding: 11px 14px 11px 42px;
  border-radius: 10px;
  font-family: "Poppins";
  font-size: 14px;
  transition: all 0.25s ease;
  width: 100%;
}

.editing-table-name-input::placeholder,
.editing-table-min-guest-input::placeholder,
.editing-table-shape-input::placeholder,
.editing-table-chairs-input::placeholder {
  color: #aaaaaa;
  font-size: 14px;
}

.editing-table-name-input:focus,
.editing-table-min-guest-input:focus,
.editing-table-shape-input:focus,
.editing-table-chairs-input:focus {
  border-color: #00b4e5 !important;
  box-shadow: 0 0 0 3px rgba(0, 180, 229, 0.15);
}

.rotate-icon:hover {
  color: #00b4e5;
  transition: all 0.15s ease;
}

.clicked-table-preview {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform: scale(1.5);
  margin-bottom: 40px;
  padding: 28px;
  overflow: hidden;
}

.clicked-table-preview .table-template-ts1 {
  max-width: 100%;
  max-height: 140px;
}

@media (max-width: 576px) {
  .cal-view-form {
    margin-bottom: 15px;
  }

  .input-with-icon .input-icon {
    left: 12px;
    font-size: 14px;
  }

  .editing-table-name-input,
  .editing-table-min-guest-input,
  .editing-table-shape-input,
  .editing-table-chairs-input {
    padding-left: 38px;
    font-size: 13px;
  }
}

.htaff-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
}

.htaff-modal.show {
  display: block;
}

.htaff-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #3d3d3d87;
}

.custom-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.custom-dropdown-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #00b4e5;
  font-size: 15px;
  pointer-events: none;
  z-index: 10;
}

.custom-dropdown {
  border: 1px solid #00b4e5;
  border-radius: 10px;
  padding: 8px 14px 8px 42px;
  font-family: "Poppins";
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  position: relative;
  user-select: none;
}

.custom-dropdown::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: solid #00b4e5;
  border-width: 0 2px 2px 0;
  padding: 4px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.custom-dropdown.active::after {
  transform: translateY(-50%) rotate(-135deg);
}

.custom-dropdown .selected {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-dropdown .dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #00b4e5;
  border-radius: 10px;
  background: #fff;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.custom-dropdown .dropdown-option {
  padding: 10px 12px 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-dropdown .dropdown-option:hover {
  background: rgba(0, 180, 229, 0.1);
}

.custom-dropdown.active .dropdown-options {
  display: block;
}

@media (max-width: 576px) {
  .custom-dropdown-wrapper .input-icon {
    left: 12px;
    font-size: 14px;
  }

  .custom-dropdown {
    padding-left: 38px;
    font-size: 13px;
  }

  .custom-dropdown .dropdown-option {
    font-size: 13px;
  }
}

#editSelectedTableModal {
  z-index: 99999;
}