/* width */
::-webkit-scrollbar {
  width: 5px;
}

[x-cloak] {
  display: none !important;
}

/* Track */
::-webkit-scrollbar-track {
  background: #d4d4d4;
  border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #666666;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #1f1f1f;
}

.bg-cyan-50, .hover\:bg-cyan-50:hover {
    background-color: #fafafa;
}
.bg-cyan-100, .hover\:bg-cyan-100:hover {
    background-color: #f0f0f0;
}
.bg-cyan-200, .hover\:bg-cyan-200:hover {
    background-color: #d9d9d9;
}
.bg-cyan-300, .hover\:bg-cyan-300:hover {
    background-color: #bdbdbd;
}
.bg-cyan-400, .hover\:bg-cyan-400:hover {
    background-color: #8c8c8c;
}
.bg-cyan-500, .hover\:bg-cyan-500:hover {
    background-color: #111111;
}
.bg-cyan-600, .hover\:bg-cyan-600:hover {
    background-color: #1f1f1f;
}
.bg-cyan-700, .hover\:bg-cyan-700:hover {
    background-color: #2d2d2d;
}
.bg-cyan-800, .hover\:bg-cyan-800:hover {
    background-color: #3a3a3a;
}
.bg-cyan-900, .hover\:bg-cyan-900:hover {
    background-color: #000000;
}


.text-cyan-50, .hover\:text-cyan-50:hover {
    color: #fafafa;
}
.text-cyan-100, .hover\:text-cyan-100:hover {
    color: #f0f0f0;
}
.text-cyan-200, .hover\:text-cyan-200:hover {
    color: #d9d9d9;
}
.text-cyan-300, .hover\:text-cyan-300:hover {
    color: #bdbdbd;
}
.text-cyan-400, .hover\:text-cyan-400:hover {
    color: #8c8c8c;
}
.text-cyan-500, .hover\:text-cyan-500:hover {
    color: #111111;
}
.text-cyan-600, .hover\:text-cyan-600:hover {
    color: #1f1f1f;
}
.text-cyan-700, .hover\:text-cyan-700:hover {
    color: #2d2d2d;
}
.text-cyan-800, .hover\:text-cyan-800:hover {
    color: #3a3a3a;
}
.text-cyan-900, .hover\:text-cyan-900:hover {
    color: #000000;
}

.bg-blue-gray-50, .hover\:bg-blue-gray-50:hover {
    background-color: #f5f5f5;
}
.bg-blue-gray-100, .hover\:bg-blue-gray-100:hover {
    background-color: #e5e5e5;
}
.bg-blue-gray-200, .hover\:bg-blue-gray-200:hover {
    background-color: #d4d4d4;
}
.bg-blue-gray-300, .hover\:bg-blue-gray-300:hover {
    background-color: #a3a3a3;
}
.bg-blue-gray-400, .hover\:bg-blue-gray-400:hover {
    background-color: #737373;
}
.bg-blue-gray-500, .hover\:bg-blue-gray-500:hover {
    background-color: #525252;
}
.bg-blue-gray-600, .hover\:bg-blue-gray-600:hover {
    background-color: #404040;
}
.bg-blue-gray-700, .hover\:bg-blue-gray-700:hover {
    background-color: #262626;
}
.bg-blue-gray-800, .hover\:bg-blue-gray-800:hover {
    background-color: #171717;
}
.bg-blue-gray-900, .hover\:bg-blue-gray-900:hover {
    background-color: #000000;
}

.text-blue-gray-50, .hover\:text-blue-gray-50:hover {
    color: #f5f5f5;
}
.text-blue-gray-100, .hover\:text-blue-gray-100:hover {
    color: #e5e5e5;
}
.text-blue-gray-200, .hover\:text-blue-gray-200:hover {
    color: #d4d4d4;
}
.text-blue-gray-300, .hover\:text-blue-gray-300:hover {
    color: #a3a3a3;
}
.text-blue-gray-400, .hover\:text-blue-gray-400:hover {
    color: #737373;
}
.text-blue-gray-500, .hover\:text-blue-gray-500:hover {
    color: #525252;
}
.text-blue-gray-600, .hover\:text-blue-gray-600:hover {
    color: #404040;
}
.text-blue-gray-700, .hover\:text-blue-gray-700:hover {
    color: #262626;
}
.text-blue-gray-800, .hover\:text-blue-gray-800:hover {
    color: #171717;
}
.text-blue-gray-900, .hover\:text-blue-gray-900:hover {
    color: #000000;
}
.bg-teal-50, .hover\:bg-teal-50:hover {
    background-color: #fafafa;
}
.bg-teal-100, .hover\:bg-teal-100:hover {
    background-color: #ededed;
}
.bg-teal-200, .hover\:bg-teal-200:hover {
    background-color: #d4d4d4;
}
.bg-teal-300, .hover\:bg-teal-300:hover {
    background-color: #b5b5b5;
}
.bg-teal-400, .hover\:bg-teal-400:hover {
    background-color: #8a8a8a;
}
.bg-teal-500, .hover\:bg-teal-500:hover {
    background-color: #1a1a1a;
}
.bg-teal-600, .hover\:bg-teal-600:hover {
    background-color: #2a2a2a;
}
.bg-teal-700, .hover\:bg-teal-700:hover {
    background-color: #383838;
}
.bg-teal-800, .hover\:bg-teal-800:hover {
    background-color: #111111;
}
.bg-teal-900, .hover\:bg-teal-900:hover {
    background-color: #000000;
}

.text-teal-50, .hover\:text-teal-50:hover {
    color: #fafafa;
}
.text-teal-100, .hover\:text-teal-100:hover {
    color: #ededed;
}
.text-teal-200, .hover\:text-teal-200:hover {
    color: #d4d4d4;
}
.text-teal-300, .hover\:text-teal-300:hover {
    color: #b5b5b5;
}
.text-teal-400, .hover\:text-teal-400:hover {
    color: #8a8a8a;
}
.text-teal-500, .hover\:text-teal-500:hover {
    color: #1a1a1a;
}
.text-teal-600, .hover\:text-teal-600:hover {
    color: #2a2a2a;
}
.text-teal-700, .hover\:text-teal-700:hover {
    color: #383838;
}
.text-teal-800, .hover\:text-teal-800:hover {
    color: #111111;
}
.text-teal-900, .hover\:text-teal-900:hover {
    color: #000000;
}

.nowrap {
  white-space: nowrap;
}

.glass {
  background-color: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
}

.print-area {
  display: none;
}

table td {
  vertical-align: top;
}

#receipt-content {
  max-height: 70vh;
}

html,
body {
  height: 100%;
}

.h-screen {
  height: 100vh;
  height: 100dvh;
}

.pos-app-shell,
.pos-sale-screen,
.pos-catalog-pane,
.pos-cart-pane {
  min-width: 0;
}

.pos-cart-pane {
  flex: 0 0 21rem;
  width: 21rem;
}

.pos-sidebar-logo-link {
  background: transparent;
  box-shadow: none;
}

.pos-sidebar-logo {
  width: 5.5rem;
  height: 3.5rem;
}

.pos-catalog-pane {
  flex: 1 1 auto;
  width: auto;
}

.pos-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
}

.pos-product-card {
  align-self: start;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 13rem;
}

.pos-product-card-image {
  flex: 0 0 auto;
}

.pos-product-card-body {
  flex: 0 0 auto;
  min-width: 0;
}

.pos-product-card-main {
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.pos-product-card-title,
.pos-product-card-price,
.pos-product-card-category {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.pos-product-card-title {
  flex: 1 1 6rem;
  min-width: 0;
}

.pos-product-card-price {
  flex: 0 1 auto;
  margin-left: auto;
  text-align: right;
}

.pos-product-card-category {
  line-height: 1.25;
}

.product-modal-overlay,
.cash-modal-overlay,
.tip-modal-overlay {
  align-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 2vh;
  padding-bottom: 2vh;
}

.product-modal-panel {
  max-height: 96vh;
  max-height: 96dvh;
  display: flex;
  flex-direction: column;
}

.product-modal-content {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-modal-image {
  height: clamp(8rem, 24vh, 16rem);
}

.product-modal-action {
  position: sticky;
  bottom: 0;
  box-shadow: 0 -12px 18px rgba(255, 255, 255, 0.92);
}

.cash-modal-panel {
  max-height: 96vh;
  max-height: 96dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tip-modal-panel {
  max-height: 96vh;
  max-height: 96dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1190px) {
  .pos-sidebar-wrap {
    padding-left: 0.5rem;
    padding-right: 0.375rem;
  }

  .pos-sidebar-logo {
    width: 5rem;
    height: 3.25rem;
  }

  .pos-cart-pane {
    flex-basis: 18.25rem;
    width: 18.25rem;
    padding-right: 0.5rem;
    padding-left: 0.25rem;
  }

  .pos-product-grid {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(7.4rem, 1fr));
  }

  .pos-product-card {
    min-height: 11.25rem;
  }

  .pos-product-card > div:first-child {
    height: 6.75rem;
  }
}

@media (max-width: 980px) {
  .pos-cart-pane {
    flex-basis: 17.25rem;
    width: 17.25rem;
  }

  .pos-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  }

  .product-modal-overlay,
  .cash-modal-overlay,
  .tip-modal-overlay {
    padding: 1rem;
  }

  .product-modal-content,
  .cash-modal-panel,
  .tip-modal-panel {
    padding: 1.25rem;
  }
}

@media (max-height: 760px) {
  .product-modal-overlay,
  .cash-modal-overlay,
  .tip-modal-overlay {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .product-modal-content,
  .cash-modal-panel,
  .tip-modal-panel {
    padding: 1rem;
  }

  .product-modal-image {
    height: 7.5rem;
  }
}

.floor-plan-scene {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.75), rgba(255,255,255,0) 32%),
    linear-gradient(135deg, #f8f8f8 0%, #e7e7e7 100%);
  border: 1px solid #d4d4d4;
}

.floor-plan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.floor-plan-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.floor-plan-glow-left {
  width: 240px;
  height: 240px;
  left: -60px;
  bottom: -60px;
  background: rgba(255, 255, 255, 0.9);
}

.floor-plan-glow-right {
  width: 280px;
  height: 280px;
  right: -90px;
  top: -90px;
  background: rgba(0, 0, 0, 0.1);
}

.floor-plan-counter {
  position: absolute;
  top: 5%;
  right: 4.5%;
  width: 26%;
  min-height: 18%;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.floor-plan-entry,
.floor-plan-label {
  position: absolute;
  color: #737373;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  pointer-events: none;
}

.floor-plan-entry {
  bottom: 4%;
  left: 5%;
}

.floor-plan-label-top {
  top: 3.5%;
  left: 5%;
}

.floor-plan-label-bottom {
  bottom: 4%;
  right: 5%;
}

.floor-table {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid #8a8a8a;
  color: #111111;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.floor-table:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.floor-table--round {
  border-radius: 999px;
}

.floor-table--square {
  border-radius: 28px;
}

.floor-table--bar {
  border-radius: 20px;
}

.floor-table--free {
  background: linear-gradient(180deg, #ffffff 0%, #efefef 100%);
}

.floor-table--occupied {
  background: linear-gradient(180deg, #bfbfbf 0%, #9e9e9e 100%);
}

.floor-table--selected {
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 18px 30px rgba(0, 0, 0, 0.22);
}

.floor-table--active {
  border-color: #000000;
}

.floor-table__name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.floor-table__status {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.floor-chair {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #9e9e9e;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

@media (max-width: 1280px) {
  .floor-plan-scene {
    min-height: 640px;
  }
}

@media print {
  .hide-print {
    display: none !important;
  }
  .print-area {
    display: block;
  }
}
