﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f7f7fb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.card {
  border-radius: 0.65rem;
}

.inventory-screen {
  display: grid;
  gap: 0.8rem;
}

.inventory-top {
  display: grid;
  grid-template-columns: 2fr 1.25fr;
  gap: 0.75rem;
}

.inventory-banner {
  background: #232436;
  color: #fff;
  border-radius: 0.85rem;
  min-height: 92px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.inventory-banner h1 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
}

.inventory-banner-arrow {
  border: none;
  background: transparent;
  color: #d8d9e3;
  font-size: 1.5rem;
  line-height: 1;
}

.inventory-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eceff9, #8c93c1 55%, #4d3f70);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.inventory-module-head {
  display: grid;
  gap: 0.55rem;
}

.inventory-module-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.inventory-icon-btn {
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 0.6rem;
  min-height: 42px;
  color: #111;
  background: #ececf0;
  border: 1px solid #d8dae3;
  font-size: 1.15rem;
}

.inventory-icon-btn.is-active {
  background: #cfe2ff;
  border-color: #b5cef7;
}

.inventory-module-label {
  background: #ececf0;
  border-radius: 0.55rem;
  min-height: 40px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.inventory-mid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 58px minmax(280px, 1fr);
  gap: 0.75rem;
}

.inventory-grid-panel {
  border: 1px solid #d5d7de;
  border-radius: 0.8rem;
  background: #fff;
  overflow: hidden;
}

.inventory-table thead th {
  background: #f3f4f8;
  border-bottom: 1px solid #d5d7de;
  font-weight: 700;
}

.inventory-table .inventory-item-name {
  font-weight: 600;
}

.inventory-table .inventory-item-meta {
  color: #6c757d;
  font-size: 0.82rem;
}

.inventory-table tbody tr.is-selected {
  background: #eaf2ff;
}

.inventory-actions-col {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.inventory-action-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 0.55rem;
  border: 1px solid #d6d8e1;
  background: #ececf0;
  color: #111;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.inventory-action-btn:disabled {
  opacity: 0.5;
}

.inventory-action-btn.strong {
  font-size: 1.35rem;
  font-weight: 700;
}

.inventory-detail-card {
  border: 1px solid #d5d7de;
  border-radius: 0.8rem;
  padding: 0.85rem;
  background: #fcfcf7;
}

.inventory-detail-card h2 {
  margin: 0 0 0.2rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.inventory-price {
  color: #177a43;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.inventory-detail-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.inventory-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 0.55rem;
  border: 1px solid #b3c0cc;
  background: #dbe7f4;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
}

.inventory-detail-card h3 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5f6473;
}

.inventory-detail-card p {
  margin: 0.3rem 0 0 0;
  font-size: 0.92rem;
}

.inventory-detail-meta {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.87rem;
}

.inventory-bottom-panel {
  border: 1px solid #d5d7de;
  border-radius: 0.8rem;
  background: #eef0f4;
  padding: 0.7rem;
}

.inventory-bottom-head {
  display: grid;
  grid-template-columns: 42px auto 1fr;
  align-items: center;
  gap: 0.45rem;
}

.inventory-bottom-head button {
  border: none;
  border-radius: 0.45rem;
  background: #dfe2e9;
  min-height: 34px;
  font-size: 1.1rem;
}

.inventory-bottom-head span {
  font-weight: 700;
}

.inventory-bottom-head input {
  border: 1px solid #d3d6df;
  border-radius: 0.5rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
}

.inventory-category-row {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.inventory-category-pill {
  background: #fff;
  border: 1px solid #d2d5df;
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.84rem;
}

@media (max-width: 992px) {
  .inventory-top,
  .inventory-mid {
    grid-template-columns: 1fr;
  }

  .inventory-actions-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .inventory-detail-body {
    grid-template-columns: 1fr;
  }

  .inventory-photo-placeholder {
    width: 100%;
    max-width: 120px;
  }

  .inventory-bottom-head {
    grid-template-columns: 42px 1fr;
  }

  .inventory-bottom-head input {
    grid-column: 1 / -1;
  }
}

.pos-command-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.4rem;
}

.pos-command-form {
  margin: 0;
}

.pos-command-btn {
  display: grid;
  place-items: center;
  grid-template-rows: auto auto;
  text-decoration: none;
  border-radius: 0.6rem;
  min-height: 56px;
  color: #111;
  background: #ececf0;
  border: 1px solid #d8dae3;
  padding: 0.3rem 0.25rem;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.pos-command-btn.is-active {
  background: #d6f0df;
  border-color: #9fd2b0;
  box-shadow: inset 0 0 0 1px rgba(23, 122, 67, 0.2);
}

.pos-command-btn-logout {
  background: #fff3f3;
  border-color: #f0c9c9;
}

.pos-command-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.pos-command-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.pos-module-panel {
  background: #fff;
  border: 1px solid #d3d7df;
  border-radius: 0.8rem;
  padding: 0.85rem;
}

.pos-bottom-strip {
  border: 1px solid #d5d7de;
  border-radius: 0.8rem;
  background: #eef0f4;
  padding: 0.65rem;
}

.pos-bottom-head {
  display: grid;
  grid-template-columns: 42px auto 1fr;
  align-items: center;
  gap: 0.45rem;
}

.pos-bottom-head a {
  display: grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid #d3d6df;
  border-radius: 0.5rem;
  min-height: 34px;
  background: #dfe2e9;
  color: #111;
}

.pos-bottom-head span {
  font-weight: 700;
}

.pos-bottom-head input {
  border: 1px solid #d3d6df;
  border-radius: 0.5rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
}

.pos-chip-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pos-chip {
  background: #fff;
  border: 1px solid #d2d5df;
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.84rem;
}

.live-pos-shell {
  --pos-green: #177a43;
  --pos-green-light: #dff4e7;
  --pos-border: #dce2ea;
  --pos-bg: #f5f7fb;
  --pos-text: #182031;
  --pos-muted: #6a7282;
}

.live-pos-shell .pos-note-display {
  margin-top: .35rem;
  padding: .35rem .5rem;
  background: #fff9c4;
  border: 1px solid #e6dc82;
  border-radius: .25rem;
  font-size: .85rem;
  white-space: pre-wrap;
}

.live-pos-shell .pos-note-editor {
  margin-top: .35rem;
}

.live-pos-shell .is-hidden {
  display: none !important;
}

.live-pos-shell .demo-mid {
  grid-template-columns: minmax(0, 2fr) 84px minmax(400px, 1.05fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.live-pos-shell .product-panel.pos-checkout-panel {
  background: #fff;
  border-color: var(--pos-border);
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.live-pos-shell .pos-product-summary {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.live-pos-shell .pos-product-summary .product-panel-header {
  margin-bottom: 6px;
}

.live-pos-shell .pos-product-summary .product-panel-header h2 {
  font-size: clamp(22px, 2.2vw, 42px);
}

.live-pos-shell .pos-product-summary .photo-placeholder {
  width: clamp(84px, 8vw, 108px);
  height: clamp(84px, 8vw, 108px);
}

.live-pos-shell .pos-product-summary .product-detail p {
  font-size: clamp(14px, 1.2vw, 18px);
}

.live-pos-shell .pos-product-summary .product-price {
  font-size: clamp(24px, 2.5vw, 46px);
}

.live-pos-shell .pos-amount-due {
  border: 1px solid #9fdab3;
  border-radius: 10px;
  background: var(--pos-green-light);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(23, 122, 67, 0.18);
}

.live-pos-shell .pos-amount-due span {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
}

.live-pos-shell .pos-amount-due strong {
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1;
  color: var(--pos-green);
  font-weight: 800;
}

.live-pos-shell .pos-checkout-sections {
  display: grid;
  gap: 10px;
}

.live-pos-shell .pos-checkout-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.live-pos-shell .pos-checkout-mode-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--pos-text);
}

.live-pos-shell .pos-checkout-mode-btn.is-active {
  background: var(--pos-green-light);
  border-color: #b9dfbf;
  color: #135728;
}

.live-pos-shell .pos-checkout-flow-section {
  display: grid;
  gap: 8px;
}

.live-pos-shell .pos-row-card {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.live-pos-shell .pos-row-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pos-text);
}

.live-pos-shell .pos-row-value {
  margin-top: 2px;
  font-size: 14px;
  color: var(--pos-muted);
}

.live-pos-shell .pos-row-action {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pos-text);
  min-height: 42px;
  padding: 0 14px;
  font-weight: 600;
}

.live-pos-shell .pos-detail-panel {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.live-pos-shell .pos-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-pos-shell .pos-field-grid label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pos-text);
}

.live-pos-shell .pos-adjustments {
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.live-pos-shell .pos-adjustments summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.live-pos-shell .pos-adjustments summary::-webkit-details-marker {
  display: none;
}

.live-pos-shell .pos-adjustments small {
  color: var(--pos-muted);
  font-size: 13px;
  font-weight: 600;
}

.live-pos-shell .pos-adjustments .pos-field-grid {
  margin-top: 10px;
}

.live-pos-shell .pos-payment h3 {
  margin: 0;
  font-size: 18px;
}

.live-pos-shell .pos-payment-methods {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.live-pos-shell .pos-payment-method-btn {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--pos-text);
}

.live-pos-shell .pos-payment-method-btn.is-selected {
  background: var(--pos-green);
  color: #fff;
  border-color: #1d6d35;
}

.live-pos-shell .pos-payment-panel {
  margin-top: 10px;
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.live-pos-shell .pos-payment-panel label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.live-pos-shell .pos-quick-cash {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.live-pos-shell .pos-quick-cash-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--pos-border);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.live-pos-shell .pos-quick-cash-btn:disabled {
  opacity: 0.45;
}

.live-pos-shell .pos-payment-metric {
  margin-top: 10px;
  border: 1px solid #d6ecd9;
  border-radius: 10px;
  background: #f8fffa;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-pos-shell .pos-payment-metric span {
  font-weight: 700;
}

.live-pos-shell .pos-payment-metric strong {
  color: var(--pos-green);
  font-size: 30px;
  line-height: 1;
}

.live-pos-shell .pos-complete-sale-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 56px;
  border: 1px solid #1d6d35;
  border-radius: 10px;
  background: var(--pos-green);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.live-pos-shell .pos-complete-sale-btn:disabled {
  opacity: 0.55;
}

.live-pos-shell .sale-message {
  margin-top: 8px;
  min-height: 20px;
  font-size: 14px;
}

.live-pos-shell .cart-footer #liveTotalLabel {
  color: var(--pos-green);
}

@media (max-width: 1260px) {
  .live-pos-shell .demo-mid {
    grid-template-columns: 1fr;
  }

  .live-pos-shell .actions-col {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .live-pos-shell .pos-field-grid {
    grid-template-columns: 1fr;
  }

  .live-pos-shell .pos-quick-cash {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-pos-shell .pos-row-card {
    grid-template-columns: 1fr;
  }

  .live-pos-shell .pos-row-action,
  .live-pos-shell .pos-complete-sale-btn,
  .live-pos-shell .pos-payment-method-btn,
  .live-pos-shell .pos-quick-cash-btn {
    min-height: 44px;
  }
}

.pos-modern-body {
  margin: 0;
  background: #edf2f8;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.pos-modern-body .demo-shell.live-pos-shell {
  width: min(1500px, calc(100vw - 24px));
  margin: 12px auto;
  border-radius: 26px;
  background: #f7f9fc;
  border: 1px solid #dbe4ef;
  min-height: calc(100vh - 24px);
  padding: 14px;
  gap: 12px;
}

.live-pos-shell .panel {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(35, 58, 92, 0.05);
}

.live-pos-shell .pos-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(620px, 2fr);
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  position: relative;
  overflow: visible;
}

.live-pos-shell .pos-brand-title {
  font-size: 36px;
  line-height: 1.05;
  font-weight: 800;
  color: #111f33;
}

.live-pos-shell .pos-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.live-pos-shell .pos-brand {
  align-self: flex-start;
  justify-self: flex-start;
}

.live-pos-shell .pos-brand-logo {
  display: block;
  max-height: 52px;
  max-width: min(100%, 260px);
  width: auto;
  object-fit: contain;
}

.live-pos-shell .pos-brand-link:hover {
  text-decoration: none;
}

.live-pos-shell .pos-brand-subtitle {
  margin-top: 2px;
  font-size: 22px;
  color: #5c6a7d;
}

.live-pos-shell .pos-toolbar-nav {
  min-width: 0;
}

.live-pos-shell .pos-toolbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ee;
  background: #f4f7fb;
  color: #111f33;
  font-weight: 700;
  font-size: 14px;
}

.live-pos-shell .pos-command-row {
  gap: 10px;
}

.live-pos-shell .pos-command-btn {
  min-height: 74px;
  background: #f4f7fb;
  border: 1px solid #dbe3ee;
}

.live-pos-shell .pos-command-btn.is-active {
  background: #d6f0df;
  border-color: #9fd2b0;
  box-shadow: inset 0 0 0 1px rgba(23, 122, 67, 0.2);
}

.live-pos-shell .pos-command-icon {
  font-size: 1.45rem;
}

.live-pos-shell .pos-command-label {
  font-size: 0.83rem;
}

.live-pos-shell .demo-mid {
  grid-template-columns: minmax(0, 1.9fr) 90px minmax(460px, 1fr);
  align-items: stretch;
}

.live-pos-shell .cart-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 14px 16px;
  overflow: hidden;
}

.live-pos-shell .cart-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.live-pos-shell .cart-table {
  width: 100%;
}

.live-pos-shell .pos-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.live-pos-shell .pos-cart-header h3 {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  color: #0f1d31;
}

.live-pos-shell .pos-cart-header h3 span {
  color: #4e5e72;
  font-size: 32px;
  font-weight: 600;
}

.live-pos-shell .pos-clear-cart-btn {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #f1cdcd;
  background: #fff4f4;
  color: #bf2727;
  font-size: 28px;
  font-weight: 700;
}

.live-pos-shell .pos-cart-header #livePrintLabelsBtn {
  margin-left: auto;
  margin-right: 8px;
  border-color: #c5ced9;
  background: #f4f7fb;
  color: #0f1d31;
}

.live-pos-shell .cart-table th,
.live-pos-shell .cart-table td {
  font-size: clamp(20px, 1.2vw, 30px);
  border-color: #e4eaf2;
}

.live-pos-shell .cart-table th {
  background: #f3f6fa;
}

.live-pos-shell .cart-table tbody {
  display: table-row-group;
  max-height: none;
  height: auto;
  overflow: visible;
}

.live-pos-shell .pos-cart-item-name {
  font-weight: 700;
  color: #10203a;
}

.live-pos-shell .pos-cart-item-sub {
  margin-top: 2px;
  color: #5f6f86;
  font-size: 0.82em;
}

.live-pos-shell .pos-qty-pill {
  display: inline-grid;
  grid-template-columns: 36px 44px 36px;
  align-items: center;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #f5f8fc;
  overflow: hidden;
}

.live-pos-shell .pos-qty-btn {
  border: none;
  background: transparent;
  min-height: 36px;
  font-size: 26px;
  line-height: 1;
  color: #233a5d;
}

.live-pos-shell .pos-qty-value {
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
}

.live-pos-shell .cart-footer {
  justify-content: flex-end;
  gap: 18px;
  font-size: clamp(22px, 1.3vw, 34px);
  border-top-color: #dfe6f0;
}

.live-pos-shell .cart-footer #liveTotalLabel {
  font-size: 1.15em;
  font-weight: 800;
}

.live-pos-shell .actions-col {
  gap: 10px;
}

.live-pos-shell .action-btn {
  border-radius: 14px;
  min-height: 64px;
  background: #edf2f8;
  border: 1px solid #d9e3f0;
  color: #11203a;
  font-size: 40px;
}

.live-pos-shell .action-btn.void {
  font-size: 40px;
  letter-spacing: 0.02em;
}

.live-pos-shell .pos-checkout-panel {
  padding: 12px;
}

.live-pos-shell .pos-product-summary .product-price {
  color: var(--pos-green);
}

.live-pos-shell .pos-row-title {
  font-size: 20px;
}

.live-pos-shell .pos-row-value {
  font-size: 16px;
}

.live-pos-shell .pos-row-action {
  font-size: 16px;
}

.live-pos-shell .pos-adjustments summary {
  font-size: 20px;
}

.live-pos-shell .pos-adjustments small {
  font-size: 16px;
}

.live-pos-shell .pos-payment h3 {
  font-size: 22px;
  font-weight: 800;
}

.live-pos-shell .pos-payment-method-btn {
  min-height: 56px;
  font-size: 20px;
}

.live-pos-shell .pos-checkout-mode-btn {
  min-height: 50px;
  font-size: 18px;
}

.live-pos-shell .pos-payment-panel .form-control,
.live-pos-shell .pos-payment-panel .form-select,
.live-pos-shell .pos-detail-panel .form-control,
.live-pos-shell .pos-detail-panel .form-select,
.live-pos-shell .pos-adjustments .form-control,
.live-pos-shell .pos-adjustments .form-select {
  min-height: 52px;
  font-size: 30px;
  border-radius: 12px;
}

.live-pos-shell .pos-payment-panel label,
.live-pos-shell .pos-field-grid label {
  font-size: 18px;
}

.live-pos-shell .pos-quick-cash-btn {
  min-height: 48px;
  font-size: 20px;
}

.live-pos-shell .pos-payment-metric strong {
  font-size: 54px;
}

.live-pos-shell .pos-complete-sale-btn {
  min-height: 70px;
  font-size: 40px;
}

.live-pos-shell .demo-bottom {
  padding: 12px;
}

.live-pos-shell .bottom-head {
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

.live-pos-shell .pos-search-wrap {
  display: grid;
  grid-template-columns: 54px 1fr 58px;
  align-items: center;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #fff;
  min-height: 64px;
  overflow: hidden;
}

.live-pos-shell .pos-search-icon {
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #546480;
}

.live-pos-shell #liveSearchInput {
  border: none;
  border-radius: 0;
  font-size: 30px;
  min-height: 62px;
  padding: 0 6px;
}

.live-pos-shell #liveSearchInput:focus {
  outline: none;
}

.live-pos-shell .pos-scan-btn {
  border: none;
  background: #f5f8fc;
  min-height: 62px;
  font-size: 30px;
}

.live-pos-shell .category-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.live-pos-shell .category-btn {
  min-height: 66px;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 700;
}

.live-pos-shell .category-btn.active {
  background: #d6f0df;
  border-color: #9fd2b0;
}

.live-pos-shell .product-grid {
  max-height: 230px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.live-pos-shell .product-tile {
  padding: 8px;
  border-radius: 14px;
  border-color: #dce4ef;
}

.live-pos-shell .product-tile button {
  border-radius: 12px;
  min-height: 170px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  place-items: center;
  background: #fff;
}

.live-pos-shell .pos-tile-image {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, #f6f9fd, #e4ecf6);
  border: 1px solid #d5dfed;
}

.live-pos-shell .pos-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-pos-shell .pos-tile-name {
  font-size: 20px;
  line-height: 1.2;
  color: #18243a;
  font-weight: 700;
}

.live-pos-shell .demo-login,
.live-pos-shell .sales-history {
  display: none;
}

@media (max-width: 1260px) {
  .live-pos-shell .pos-toolbar {
    grid-template-columns: 1fr;
  }

  .live-pos-shell .actions-col {
    display: none;
  }

  .live-pos-shell .demo-mid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "checkout"
      "cart";
  }

  .live-pos-shell .pos-brand-title {
    font-size: 28px;
  }

  .live-pos-shell .pos-brand-subtitle {
    font-size: 18px;
  }

  .live-pos-shell .pos-cart-header h3 {
    font-size: 28px;
  }

  .live-pos-shell .pos-cart-header h3 span {
    font-size: 20px;
  }

  .live-pos-shell #liveSearchInput {
    font-size: 20px;
  }
}

@media (max-width: 860px) {
  .pos-modern-body .demo-shell.live-pos-shell {
    width: calc(100vw - 10px);
    margin: 5px auto;
    padding: 8px;
  }

  .live-pos-shell .category-row,
  .live-pos-shell .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-pos-shell .pos-payment-panel .form-control,
  .live-pos-shell .pos-payment-panel .form-select,
  .live-pos-shell #liveSearchInput {
    font-size: 16px;
  }

  .live-pos-shell .pos-complete-sale-btn {
    font-size: 26px;
  }

  .live-pos-shell .cart-table th,
  .live-pos-shell .cart-table td {
    font-size: 14px;
  }
}

/* Viewport-fit pass: keep the full POS on screen without page scroll. */
.pos-modern-body {
  overflow: hidden;
}

.pos-modern-body .demo-shell.live-pos-shell {
  height: calc(100vh - 16px);
  min-height: 0;
  max-height: calc(100vh - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  gap: 10px;
}

.live-pos-shell .pos-toolbar {
  padding: 10px 14px;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(540px, 2fr);
}

.live-pos-shell .pos-brand-title {
  font-size: clamp(20px, 1.7vw, 30px);
}

.live-pos-shell .pos-brand-subtitle {
  font-size: clamp(12px, 0.95vw, 16px);
}

.live-pos-shell .pos-command-btn {
  min-height: 56px;
}

.live-pos-shell .demo-mid {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1.75fr) 76px minmax(360px, 1fr);
  gap: 10px;
  overflow: auto;
}

.live-pos-shell .cart-panel,
.live-pos-shell .pos-checkout-panel {
  min-height: 0;
}

.live-pos-shell .cart-panel {
  overflow: hidden;
}

.live-pos-shell .pos-checkout-panel {
  overflow: auto;
}

.live-pos-shell .cart-panel {
  padding: 10px 12px;
}

.live-pos-shell .pos-cart-header {
  margin-bottom: 8px;
}

.live-pos-shell .pos-cart-header h3 {
  font-size: clamp(20px, 1.75vw, 30px);
}

.live-pos-shell .pos-cart-header h3 span {
  font-size: clamp(14px, 1.2vw, 20px);
}

.live-pos-shell .pos-clear-cart-btn {
  min-height: 40px;
  font-size: clamp(13px, 1vw, 16px);
  padding: 0 12px;
}

.live-pos-shell .cart-table th,
.live-pos-shell .cart-table td {
  font-size: clamp(13px, 0.95vw, 17px);
  padding: 6px 8px;
}

.live-pos-shell .cart-table tbody {
  max-height: none;
}

.live-pos-shell .pos-qty-pill {
  grid-template-columns: 24px 28px 24px;
}

.live-pos-shell .pos-qty-btn {
  min-height: 24px;
  font-size: 16px;
}

.live-pos-shell .pos-qty-value {
  font-size: 14px;
}

.live-pos-shell .cart-footer {
  font-size: clamp(16px, 1.15vw, 22px);
  gap: 10px;
  padding: 8px 6px;
}

.live-pos-shell .actions-col {
  gap: 8px;
}

.live-pos-shell .action-btn {
  min-height: 52px;
  font-size: 30px;
}

.live-pos-shell .action-btn.void {
  font-size: 18px;
}

.live-pos-shell.hide-side-actions .actions-col {
  display: none;
}

.live-pos-shell.hide-side-actions .demo-mid {
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr);
}

@media (max-width: 1260px) {
  .live-pos-shell.hide-side-actions .demo-mid {
    grid-template-columns: 1fr;
  }
}

.live-pos-shell .pos-checkout-panel {
  padding: 10px;
  gap: 8px;
}

.live-pos-shell .pos-product-summary .product-panel-header h2 {
  font-size: clamp(20px, 1.75vw, 30px);
}

.live-pos-shell .pos-product-summary .photo-placeholder {
  width: clamp(66px, 6vw, 84px);
  height: clamp(66px, 6vw, 84px);
}

.live-pos-shell .pos-product-summary .product-price {
  font-size: clamp(21px, 1.9vw, 32px);
}

.live-pos-shell .pos-amount-due {
  padding: 8px 10px;
}

.live-pos-shell .pos-amount-due span {
  font-size: clamp(15px, 1.2vw, 20px);
}

.live-pos-shell .pos-amount-due strong {
  font-size: clamp(28px, 2.4vw, 42px);
}

.live-pos-shell .pos-checkout-sections {
  gap: 8px;
}

.live-pos-shell .pos-checkout-mode-switch {
  gap: 6px;
}

.live-pos-shell .pos-row-card,
.live-pos-shell .pos-detail-panel,
.live-pos-shell .pos-adjustments,
.live-pos-shell .pos-payment-panel {
  padding: 8px;
}

.live-pos-shell .pos-row-title,
.live-pos-shell .pos-adjustments summary,
.live-pos-shell .pos-payment h3 {
  font-size: clamp(14px, 1vw, 18px);
}

.live-pos-shell .pos-row-value,
.live-pos-shell .pos-row-action,
.live-pos-shell .pos-adjustments small,
.live-pos-shell .pos-payment-panel label,
.live-pos-shell .pos-field-grid label {
  font-size: clamp(12px, 0.88vw, 15px);
}

.live-pos-shell .pos-payment-method-btn {
  min-height: 42px;
  font-size: clamp(14px, 1vw, 17px);
}

.live-pos-shell .pos-checkout-mode-btn {
  min-height: 38px;
  font-size: clamp(13px, 0.95vw, 16px);
}

.live-pos-shell .pos-payment-panel .form-control,
.live-pos-shell .pos-payment-panel .form-select,
.live-pos-shell .pos-detail-panel .form-control,
.live-pos-shell .pos-detail-panel .form-select,
.live-pos-shell .pos-adjustments .form-control,
.live-pos-shell .pos-adjustments .form-select {
  min-height: 38px;
  font-size: clamp(13px, 0.95vw, 16px);
}

.live-pos-shell .pos-quick-cash {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.live-pos-shell .pos-quick-cash-btn {
  min-height: 34px;
  font-size: clamp(12px, 0.85vw, 14px);
}

.live-pos-shell .pos-payment-metric {
  margin-top: 8px;
  padding: 6px 8px;
}

.live-pos-shell .pos-payment-metric strong {
  font-size: clamp(22px, 1.9vw, 30px);
}

.live-pos-shell .pos-complete-sale-btn {
  min-height: 50px;
  font-size: clamp(18px, 1.45vw, 26px);
  margin-top: 8px;
}

.live-pos-shell .sale-message {
  margin-top: 4px;
  min-height: 16px;
  font-size: 12px;
}

.live-pos-shell .demo-bottom {
  flex: 0 0 auto;
  padding: 8px 10px;
  position: sticky;
  bottom: 0;
  z-index: 4;
}

.live-pos-shell .pos-search-wrap {
  min-height: 46px;
  grid-template-columns: 40px 1fr 42px;
}

.live-pos-shell .pos-search-icon,
.live-pos-shell .pos-scan-btn {
  font-size: 20px;
}

.live-pos-shell #liveSearchInput {
  min-height: 44px;
  font-size: clamp(13px, 0.95vw, 16px);
}

.live-pos-shell .category-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  min-height: 44px;
}

.live-pos-shell .category-btn {
  min-height: 42px;
  font-size: clamp(13px, 0.95vw, 16px);
  padding: 6px;
}

.live-pos-shell .product-grid {
  min-height: 120px;
  max-height: min(24vh, 220px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
}

.live-pos-shell .product-tile button {
  min-height: 100px;
}

.live-pos-shell .pos-tile-image {
  width: 52px;
  height: 52px;
}

.live-pos-shell .pos-tile-name {
  font-size: clamp(11px, 0.82vw, 13px);
}

@media (max-height: 800px) {
  .pos-modern-body .demo-shell.live-pos-shell {
    height: calc(100vh - 10px);
    max-height: calc(100vh - 10px);
    margin: 5px auto;
    padding: 8px;
    gap: 8px;
  }

  .live-pos-shell .pos-command-btn {
    min-height: 48px;
  }

  .live-pos-shell .cart-table tbody {
    max-height: none;
  }

  .live-pos-shell .product-grid {
    min-height: 96px;
    max-height: min(20vh, 140px);
  }
}

/* Demo POS responsive layout: prioritize checkout and inventory controls. */
.live-pos-shell .demo-mid {
  grid-template-areas: "cart actions checkout";
}

.live-pos-shell .cart-panel {
  grid-area: cart;
}

.live-pos-shell .actions-col {
  grid-area: actions;
}

.live-pos-shell .pos-checkout-panel {
  grid-area: checkout;
}

@media (min-width: 1600px) {
  .live-pos-shell .demo-mid {
    grid-template-columns: minmax(0, 1.9fr) 76px minmax(460px, 1.1fr);
  }

  .live-pos-shell .category-row,
  .live-pos-shell .product-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .live-pos-shell .product-grid {
    max-height: min(28vh, 280px);
  }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  .live-pos-shell .demo-mid {
    grid-template-columns: minmax(0, 1.6fr) 68px minmax(360px, 1fr);
  }

  .live-pos-shell .category-row,
  .live-pos-shell .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .live-pos-shell .pos-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .live-pos-shell .pos-toolbar-menu-btn {
    display: inline-flex;
  }

  .live-pos-shell .pos-toolbar-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    display: none;
    z-index: 30;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(17, 31, 51, 0.14);
  }

  .live-pos-shell.menu-expanded .pos-toolbar-nav {
    display: block;
    max-height: 46vh;
    overflow-y: auto;
  }

  .live-pos-shell .demo-mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "checkout checkout"
      "cart cart";
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
  }

  .live-pos-shell .actions-col {
    display: none;
  }

  .live-pos-shell .demo-bottom {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex: 0 0 clamp(220px, 38vh, 340px);
    min-height: 220px;
    display: grid;
    grid-template-rows: auto auto minmax(96px, 1fr);
    align-content: stretch;
    overflow: hidden;
  }

  .live-pos-shell .category-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .live-pos-shell .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}

@media (max-width: 767px) {
  .pos-modern-body {
    overflow: hidden;
  }

  .pos-modern-body .demo-shell.live-pos-shell {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    min-height: 0;
    max-height: calc(100vh - 10px);
    margin: 5px auto;
    padding: 8px;
    overflow-y: auto;
  }

  .live-pos-shell .pos-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px;
  }

  .live-pos-shell .pos-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .live-pos-shell .pos-toolbar-menu-btn {
    display: inline-flex;
  }

  .live-pos-shell .pos-toolbar-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    display: none;
    z-index: 30;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(17, 31, 51, 0.14);
  }

  .live-pos-shell.menu-expanded .pos-toolbar-nav {
    display: block;
    max-height: 50vh;
    overflow-y: auto;
  }

  .live-pos-shell .demo-mid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "checkout"
      "cart";
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
  }

  .live-pos-shell .actions-col {
    display: none;
  }

  .live-pos-shell .pos-checkout-mode-switch,
  .live-pos-shell .pos-payment-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-pos-shell .pos-field-grid {
    grid-template-columns: 1fr;
  }

  @media (hover: none) and (pointer: coarse) and (max-width: 1100px) {
    .live-pos-shell .pos-checkout-panel {
      padding: 8px;
      gap: 6px;
    }

    .live-pos-shell .pos-product-summary {
      padding: 8px;
    }

    .live-pos-shell .pos-product-summary .product-panel-header {
      margin-bottom: 0;
    }

    .live-pos-shell .pos-product-summary .product-panel-header h2 {
      font-size: clamp(16px, 2.8vw, 28px);
    }

    .live-pos-shell .pos-product-summary .product-detail,
    .live-pos-shell .pos-product-summary .product-price {
      display: none !important;
    }

    .live-pos-shell #liveDetailToggleBtn {
      display: none;
    }

    .live-pos-shell .pos-amount-due {
      padding: 6px 8px;
    }

    .live-pos-shell .pos-amount-due span {
      font-size: clamp(13px, 2vw, 18px);
    }

    .live-pos-shell .pos-amount-due strong {
      font-size: clamp(24px, 5vw, 38px);
    }

    .live-pos-shell .pos-checkout-sections {
      gap: 6px;
    }

    .live-pos-shell .pos-checkout-mode-switch {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4px;
    }

    .live-pos-shell .pos-checkout-mode-btn {
      min-height: 32px;
      padding: 2px 4px;
      font-size: clamp(11px, 1.8vw, 13px);
    }

    .live-pos-shell .pos-row-card,
    .live-pos-shell .pos-detail-panel,
    .live-pos-shell .pos-adjustments,
    .live-pos-shell .pos-payment-panel {
      padding: 6px;
    }

    .live-pos-shell .pos-payment h3,
    .live-pos-shell .pos-row-title,
    .live-pos-shell .pos-adjustments summary {
      font-size: clamp(12px, 1.9vw, 15px);
    }

    .live-pos-shell .pos-row-value,
    .live-pos-shell .pos-row-action,
    .live-pos-shell .pos-adjustments small,
    .live-pos-shell .pos-payment-panel label,
    .live-pos-shell .pos-field-grid label {
      font-size: clamp(11px, 1.6vw, 13px);
    }

    .live-pos-shell .pos-row-action,
    .live-pos-shell .pos-payment-method-btn,
    .live-pos-shell .pos-quick-cash-btn,
    .live-pos-shell .pos-complete-sale-btn {
      min-height: 34px;
    }

    .live-pos-shell .pos-payment-methods {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4px;
    }

    .live-pos-shell .pos-payment-method-btn {
      font-size: clamp(11px, 1.8vw, 13px);
      padding: 2px;
    }

    .live-pos-shell .pos-payment-panel .form-control,
    .live-pos-shell .pos-payment-panel .form-select,
    .live-pos-shell .pos-detail-panel .form-control,
    .live-pos-shell .pos-detail-panel .form-select,
    .live-pos-shell .pos-adjustments .form-control,
    .live-pos-shell .pos-adjustments .form-select {
      min-height: 32px;
      font-size: 13px;
      padding: 2px 6px;
    }

    .live-pos-shell .pos-quick-cash {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4px;
    }

    .live-pos-shell .pos-payment-metric {
      margin-top: 6px;
      padding: 5px 7px;
    }

    .live-pos-shell .pos-payment-metric strong {
      font-size: clamp(18px, 3.8vw, 26px);
    }

    .live-pos-shell .pos-complete-sale-btn {
      font-size: clamp(14px, 2.8vw, 18px);
      margin-top: 6px;
    }

    .live-pos-shell .demo-bottom {
      padding: 6px;
      flex-basis: clamp(170px, 32vh, 250px);
      min-height: 170px;
      grid-template-rows: auto auto minmax(70px, 1fr);
    }

    .live-pos-shell .pos-search-wrap {
      min-height: 38px;
      grid-template-columns: 30px 1fr 32px;
      border-radius: 10px;
    }

    .live-pos-shell .pos-search-icon,
    .live-pos-shell .pos-scan-btn {
      font-size: 16px;
    }

    .live-pos-shell #liveSearchInput {
      min-height: 36px;
      font-size: 14px;
      padding: 0 4px;
    }
  }

  .live-pos-shell .pos-quick-cash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-pos-shell .demo-bottom {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 8px;
    flex: 0 0 clamp(200px, 40vh, 320px);
    min-height: 200px;
    display: grid;
    grid-template-rows: auto auto minmax(88px, 1fr);
    align-content: stretch;
    overflow: hidden;
  }

  .live-pos-shell .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .live-pos-shell .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}

/* Inventory visibility guard on compact/standard laptop viewports. */
@media (max-width: 1400px) {
  .live-pos-shell .demo-mid {
    min-height: 0;
    overflow: auto;
    flex: 1 1 auto;
  }

  .live-pos-shell .demo-bottom {
    position: sticky;
    bottom: 0;
    z-index: 6;
    flex: 0 0 clamp(220px, 34vh, 340px);
    min-height: 220px;
    display: grid;
    grid-template-rows: auto auto minmax(96px, 1fr);
    align-content: stretch;
    overflow: hidden;
  }

  .live-pos-shell .bottom-head,
  .live-pos-shell .category-row {
    margin-bottom: 8px;
  }

  .live-pos-shell .product-grid {
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}

/* Shared modern styling for non-POS module pages. */
.pos-shared-body {
  margin: 0;
  background: #edf2f8;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.pos-shared-shell {
  width: min(1500px, calc(100vw - 24px));
  margin: 12px auto;
  border-radius: 24px;
  background: #f7f9fc;
  border: 1px solid #dbe4ef;
  min-height: calc(100vh - 24px);
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pos-shared-shell .panel {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(35, 58, 92, 0.05);
}

.pos-shared-shell .pos-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(620px, 2fr);
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}

.pos-shared-shell .pos-brand-title {
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.05;
  font-weight: 800;
  color: #111f33;
}

.pos-shared-shell .pos-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.pos-shared-shell .pos-brand {
  align-self: flex-start;
  justify-self: flex-start;
}

.pos-shared-shell .pos-brand-logo {
  display: block;
  max-height: 52px;
  max-width: min(100%, 260px);
  width: auto;
  object-fit: contain;
}

.pos-shared-shell .pos-brand-link:hover {
  text-decoration: none;
}

.pos-shared-shell .pos-brand-subtitle {
  margin-top: 2px;
  font-size: clamp(13px, 1.05vw, 22px);
  color: #5c6a7d;
}

.pos-shared-shell .pos-command-row {
  gap: 10px;
}

.pos-shared-shell .pos-command-btn {
  min-height: 66px;
  background: #f4f7fb;
  border: 1px solid #dbe3ee;
}

.pos-shared-shell .pos-command-btn.is-active {
  background: #d6f0df;
  border-color: #9fd2b0;
  box-shadow: inset 0 0 0 1px rgba(23, 122, 67, 0.2);
}

.pos-shared-title {
  margin-top: 10px;
  min-height: 74px;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 3vw, 54px);
  font-weight: 800;
  color: #111f33;
}

.pos-shared-shell .pos-module-panel,
.pos-shared-shell .pos-bottom-strip,
.pos-shared-shell .inventory-grid-panel,
.pos-shared-shell .inventory-detail-card,
.pos-shared-shell .inventory-bottom-panel {
  border-color: #dde5ef;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(35, 58, 92, 0.05);
}

@media (max-width: 1260px) {
  .pos-shared-shell .pos-toolbar {
    grid-template-columns: 1fr;
  }

  .pos-shared-title {
    min-height: 62px;
    font-size: 36px;
  }
}

.identity-pos-shell .pos-toolbar {
  grid-template-columns: 1fr;
}

.identity-pos-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.identity-pos-content {
  width: min(760px, 100%);
}

.identity-pos-content h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 2.6vw, 44px);
}

.dashboard-panel {
  padding: 16px;
}

.dashboard-store-name {
  margin-bottom: 14px;
  color: #56657a;
  font-size: clamp(15px, 1.05vw, 18px);
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat-card {
  padding: 14px 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.dashboard-stat-label {
  color: #5f7086;
  font-size: clamp(13px, 0.95vw, 17px);
  font-weight: 600;
}

.dashboard-stat-value {
  color: #10203a;
  font-size: clamp(28px, 2.2vw, 44px);
  font-weight: 800;
  line-height: 1.05;
}

@media (max-width: 1260px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
  font-weight: 800;
  color: #10203a;
}

.identity-pos-content .row {
  margin: 0;
}

.identity-pos-content .col-md-4,
.identity-pos-content .col-md-6,
.identity-pos-content .col-md-8,
.identity-pos-content .col-lg-4,
.identity-pos-content .col-lg-6,
.identity-pos-content .col-lg-8 {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
}

.settings-panel-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr);
  gap: 12px;
  min-height: 500px;
}

.settings-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-nav-item {
  border: 1px solid #d5dde9;
  border-radius: 8px;
  background: #f4f7fb;
  color: #1c2a40;
  text-decoration: none;
  padding: 7px 10px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.settings-nav-item:hover {
  text-decoration: none;
  color: #1c2a40;
  background: #ebf1f8;
}

.settings-nav-item.is-active {
  background: #d6f0df;
  border-color: #9fd2b0;
}

.settings-content {
  padding: 14px;
}

.settings-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #13223a;
}

.settings-form-grid {
  display: grid;
  gap: 10px;
  max-width: 540px;
}

.settings-form-grid label,
.settings-api-grid label {
  display: grid;
  gap: 5px;
  color: #1a2a41;
  font-weight: 600;
}

.settings-form-grid small {
  color: #5f6d80;
  font-size: 0.78rem;
}

.settings-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  max-width: 900px;
}

@media (max-width: 760px) {
  .settings-api-grid { grid-template-columns: 1fr; }
}

.settings-api-grid .settings-card {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.settings-logo-preview {
  margin-top: 12px;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  padding: 10px;
  max-width: 360px;
  background: #f8fbff;
}

.settings-logo-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.branding-form { max-width: 820px; }
.logo-row { display: grid; grid-template-columns: 1fr 220px; gap: 1rem; align-items: start; }
.logo-row-fields { display: grid; gap: 10px; }
.logo-preview-box { border: 1.5px dashed #6c8ebf; border-radius: .4rem; background: #f8fbff; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .5rem; text-align: center; }
.logo-preview-box img { max-width: 100%; max-height: 150px; object-fit: contain; }
.logo-preview-box .logo-preview-empty { color: #5f6d80; font-size: .85rem; }
@media (max-width: 700px) { .logo-row { grid-template-columns: 1fr; } }

.settings-icon-btn {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #efbcc3;
  background: #fde8ea;
  color: #8e2734;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.settings-icon-btn:hover {
  filter: brightness(0.96);
}

.settings-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-pill {
  border: 1px solid #d5dde8;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f6f9fd;
}

.settings-actions {
  margin-top: 12px;
}

.settings-inline-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 700px;
}

.settings-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 600;
}

.settings-inline-input {
  min-width: 220px;
}

.settings-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-vendor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.settings-vendor-grid label {
  display: grid;
  gap: 5px;
  color: #1a2a41;
  font-weight: 600;
}

.settings-vendor-row {
  padding: 10px;
  border: 1px solid #e0e7f0;
  border-radius: 10px;
  background: #f9fbff;
}

.settings-vendor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.settings-vendor-search {
  max-width: 320px;
}

.settings-vendor-table-wrap {
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #fff;
}

.settings-vendor-table-wrap table thead th {
  background: #f3f7fd;
  color: #13223a;
  border-bottom-width: 1px;
}

.settings-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-status-pill.is-active {
  background: #d6f4df;
  color: #0f6b33;
}

.settings-status-pill.is-inactive {
  background: #f1f3f7;
  color: #556379;
}

.settings-btn {
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid transparent;
  padding: 0.32rem 0.7rem;
}

.settings-btn-primary {
  background: #1f7df7;
  border-color: #1f7df7;
  color: #fff;
}

.settings-btn-secondary {
  background: #eff3f8;
  border-color: #d5deea;
  color: #223656;
}

.settings-btn-edit {
  background: #eef5ff;
  border-color: #cbdaf2;
  color: #234271;
}

.settings-btn-warn {
  background: #fff4de;
  border-color: #f6cf8a;
  color: #8d5a00;
}

.settings-btn-success {
  background: #e1f6e7;
  border-color: #abd9bb;
  color: #0c6b33;
}

.settings-btn-danger {
  background: #fde8ea;
  border-color: #efbcc3;
  color: #8e2734;
}

.settings-btn:hover {
  filter: brightness(0.97);
}

.cd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cd-row-targets {
  align-items: flex-start;
}

.cd-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e1e7f0;
}

.cd-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.cd-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.cd-heading-row .cd-heading {
  margin-bottom: 0;
}

.cd-section:not(.cd-collapsed):not(.cd-viewing) .js-cd-edit,
.cd-viewing .js-cd-save {
  display: none;
}

.cd-collapsed .cd-panel,
.cd-collapsed .cd-checks,
.cd-collapsed .js-cd-save,
.cd-collapsed [data-cd-toggle],
.cd-viewing [data-cd-toggle] {
  display: none !important;
}

.cd-panel {
  margin-top: 1rem;
}

.cd-panel[hidden] {
  display: none;
}

.cd-targets:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}

.cd-checks {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.cd-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.cd-time-label {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cd-step {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid #223656;
  border-radius: 12px;
  font-weight: 600;
  background: #fff;
}

.cd-step-wrap {
  display: flex;
  flex-direction: column;
}



.cd-money {
  width: 9rem;
}

.cd-days {
  display: flex;
  gap: 0.6rem;
}

.cd-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.cd-check {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
}

.cd-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cd-time .form-select {
  width: 4.5rem;
}

.cd-target-group {
  min-width: 9rem;
}

.cd-target-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.3rem;
}

.cd-target-line {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.cd-target-total output.form-control {
  border-color: #2e9d5b;
}

.cd-grand {
  min-width: 10rem;
}

.cd-save {
  min-width: 6rem;
  margin-top: 0.75rem;
  background-color: #0b2a5b;
  border-color: #0b2a5b;
}

.cd-status {
  margin-left: 0.75rem;
  font-size: 0.9rem;
  color: #b45309;
}
  background-color: #9aa3b0;
  border-color: #9aa3b0;
  opacity: 1;
  cursor: default;
}

.cd-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cd-create .form-control {
  width: 16rem;
}

.cd-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cd-drawer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cd-drawer-name {
  min-width: 16rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #ced8e6;
  border-radius: 10px;
  background: #fff;
}

#createVendorModal .modal-content,
#editVendorModal .modal-content {
  border-radius: 14px;
  border-color: #d6e0ee;
}

@media (max-width: 1260px) {
  .settings-panel-wrap {
    grid-template-columns: 1fr;
  }

  .settings-split-grid {
    grid-template-columns: 1fr;
  }

  .settings-vendor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-vendor-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-vendor-search {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .settings-vendor-grid {
    grid-template-columns: 1fr;
  }
}

.identity-pos-content form {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(35, 58, 92, 0.05);
  padding: 18px;
}

.identity-pos-content .form-floating {
  margin-bottom: 10px;
}

.identity-pos-content .form-control,
.identity-pos-content .form-select {
  min-height: 46px;
  border-radius: 10px;
  border-color: #d6dfeb;
}

.identity-pos-content .btn-primary,
.identity-pos-content button[type="submit"] {
  min-height: 46px;
  border-radius: 10px;
  font-weight: 700;
}
.cd-status.cd-saved {
  color: #1b7a3d;
}

.save-status { color: #198754; font-weight: 600; font-size: .9rem; }
button.save-done:disabled { background-color: #adb5bd; border-color: #adb5bd; color: #fff; opacity: 1; cursor: not-allowed; }

.pos-line-remove {
  background: none;
  border: 0;
  color: #b42318;
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
}
.pos-line-remove:hover { background: #fde8e8; border-radius: 4px; }

.live-pos-shell .cart-table th:nth-child(2),
.live-pos-shell .cart-table td:nth-child(2) {
  min-width: 92px;
  white-space: nowrap;
}
.live-pos-shell .cart-table th:nth-child(7),
.live-pos-shell .cart-table td:nth-child(7) {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.live-pos-shell .cart-table th:nth-child(7) {
  font-size: 12px;
}

.live-pos-shell .cart-table th,
.live-pos-shell .cart-table td {
  font-size: clamp(12px, 0.85vw, 15px);
  padding: 6px 4px;
}
.live-pos-shell .cart-table th:nth-child(2),
.live-pos-shell .cart-table td:nth-child(2) {
  min-width: 84px;
}
.live-pos-shell .cart-table .btn,
.live-pos-shell .cart-table td button:not(.pos-line-remove):not(.pos-qty-btn) {
  padding: 2px 6px;
  font-size: inherit;
}

.live-pos-shell .cart-table {
  table-layout: fixed;
  width: 100%;
}
.live-pos-shell .cart-table th:nth-child(7),
.live-pos-shell .cart-table td:nth-child(7) {
  width: auto;
}
.live-pos-shell .cart-table-wrap {
  overflow-x: auto;
}
.live-pos-shell .cart-table th,
.live-pos-shell .cart-table td {
  overflow-wrap: anywhere;
}

.live-pos-shell .cart-table thead {
  display: table-header-group;
  width: auto;
}
.live-pos-shell .cart-table tr,
.live-pos-shell .cart-table tbody tr {
  display: table-row;
  width: auto;
}
.live-pos-shell .cart-table th,
.live-pos-shell .cart-table td,
.live-pos-shell .cart-table th:first-child,
.live-pos-shell .cart-table td:first-child,
.live-pos-shell .cart-table th:not(:first-child),
.live-pos-shell .cart-table td:not(:first-child) {
  width: auto;
  white-space: normal;
}
.live-pos-shell .cart-table th:nth-child(7),
.live-pos-shell .cart-table td:nth-child(7) {
  text-align: center;
}

.live-pos-shell .cart-table th:last-child,
.live-pos-shell .cart-table td:last-child {
  text-align: center;
}
.live-pos-shell .pos-detail-tax {
  font-size: 0.9rem;
  color: #3b4a3b;
}

.inventory-manage-row { margin: 0.5rem 0 0.25rem; }
.inventory-mid { grid-template-columns: minmax(0, 1fr) 58px; }
@media (max-width: 992px) { .inventory-mid { grid-template-columns: 1fr; } }

.inventory-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.inventory-table th.sortable:hover { background: #e6e8f0; }

.inventory-table th.sortable::after { content: "\25B2\25BC"; display: inline-block; margin-left: 0.35rem; font-size: 0.6rem; letter-spacing: -1px; color: #b5b8c4; }
.inventory-table th.sortable[data-dir="asc"]::after { content: "\25B2"; color: #212529; font-size: 0.7rem; }
.inventory-table th.sortable[data-dir="desc"]::after { content: "\25BC"; color: #212529; font-size: 0.7rem; }

.live-pos-shell .category-row {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 4px;
  margin-bottom: 4px;
  min-height: 0;
}

.live-pos-shell .category-btn {
  min-height: 28px;
  height: 28px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.1;
}

.live-pos-shell .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
}

.live-pos-shell .product-tile button {
  font-size: 12px;
  padding: 4px;
}

/* Drawer page workflow */
.drawer-page { padding: 16px; overflow-y: auto; }
.drawer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.drawer-page { text-align: center; }
.drawer-page .drawer-panel { margin-left: auto; margin-right: auto; text-align: left; }
.drawer-action-btn { min-width: 120px; padding: 10px 22px; font-weight: 600; font-size: 18px; background: #fff; color: #198754; border: 2px solid #198754; border-radius: 12px; cursor: pointer; }
.drawer-action-btn:hover, .drawer-action-btn.active { background: #198754; color: #fff; }
.drawer-panel { max-width: 900px; }
.drawer-field { max-width: 420px; }
.drawer-field-sm { max-width: 220px; }
.drawer-status { padding: 8px 0; }
.denom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; max-width: 600px; }
.denom-item { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.drawer-finalize { background: #adb5bd; color: #fff; border: 0; }
.drawer-finalize.enabled:not(:disabled) { background: #0b2a5b; color: #fff; }
.report-table { max-width: 640px; background: #fff; }
.report-table .report-section td { font-weight: 600; background: #f1f3f5; }
.report-table .report-total td { font-weight: 700; border-top: 2px solid #212529; }

.close-count .cd-target-line { grid-template-columns: 3.4rem 1fr; }
.close-count { margin-bottom: 1rem; }
#actualCash { background: #fff8d6; border: 1.5px solid #6c8ebf; font-weight: 600; }
#panel-open select.form-select,
#panel-in .mv-amount, #panel-in .mv-reason, #panel-in .mv-other, #panel-in .mv-vendor, #panel-in .mv-items,
#panel-out .mv-amount, #panel-out .mv-reason, #panel-out .mv-other, #panel-out .mv-vendor, #panel-out .mv-items,
#panel-drop .mv-amount, #panel-drop .denom-amt,
.close-count input.form-control { background-color: #fff8d6; border: 1.5px solid #6c8ebf; font-weight: 600; }
.mv-receipt.form-check-input { background-color: #fff8d6; border: 1.5px solid #6c8ebf; }
.mv-receipt.form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }
#actualCash:focus { background: #fffdf0; border-color: #0b2a5b; box-shadow: 0 0 0 .2rem rgba(11,42,91,.2); }
.cd-grand output.form-control { background: #dce6f5; border: 1.5px solid #0b2a5b; font-weight: 700; }

.field-shade .form-control, .field-shade .form-select, .field-shade textarea,
.settings-content .form-control, .settings-content .form-select, .settings-content textarea {
  background-color: #fff8d6; border: 1.5px solid #6c8ebf; font-weight: 600;
}
.field-shade .form-control:focus, .field-shade .form-select:focus,
.settings-content .form-control:focus, .settings-content .form-select:focus {
  background-color: #fffdf0; border-color: #0b2a5b; box-shadow: 0 0 0 .2rem rgba(11,42,91,.2);
}
.field-shade .form-check-input, .settings-content .form-check-input { background-color: #fff8d6; border: 1.5px solid #6c8ebf; }
.field-shade .form-check-input:checked, .settings-content .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }
.field-shade .card { background: #dce6f5; border: 1.5px solid #6c8ebf; }

/* Global field definition so every form across the POS matches */
.form-control, .form-select, textarea.form-control {
  background-color: #fff8d6; border: 1.5px solid #6c8ebf; font-weight: 600;
}
.form-control:focus, .form-select:focus {
  background-color: #fffdf0; border-color: #0b2a5b; box-shadow: 0 0 0 .2rem rgba(11,42,91,.2);
}
.form-control[readonly], .form-control:disabled, .form-select:disabled { background-color: #eef1f5; border-color: #aeb9c9; }
.form-check-input:not(:checked) { background-color: #fff8d6; border: 1.5px solid #6c8ebf; }
input[type="checkbox"]:not(.form-check-input):not(.btn-check) { accent-color: #0b2a5b; outline: 1.5px solid #6c8ebf; outline-offset: -1px; }
.settings-nav-item { background: #dce6f5; border: 1.5px solid #6c8ebf; font-weight: 600; }
.settings-nav-item:hover { background: #cbd9ee; }
.settings-nav-item.is-active { background: #b9e6c9; border-color: #4f9e6b; }
.settings-content input[type="checkbox"] { accent-color: #0b2a5b; outline: 1.5px solid #6c8ebf; outline-offset: -1px; background-color: #fff8d6; }
.settings-content .cd-ampm .btn { background: #fff8d6; border: 1.5px solid #6c8ebf; color: #1c2a40; font-weight: 600; }
.settings-content .cd-ampm .btn-check:checked + .btn { background: #0b2a5b; border-color: #0b2a5b; color: #fff; }
.settings-content .cd-drawer-name { background: #fff8d6; border: 1.5px solid #6c8ebf; font-weight: 600; }
.settings-content .cd-target-total output.form-control, .settings-content output.form-control { background: #dce6f5; border: 1.5px solid #0b2a5b; font-weight: 700; }

/* Dashboard charts */
.dash-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem;margin-bottom:.75rem}
.dash-controls label{display:flex;flex-direction:column;font-size:.78rem;font-weight:600;gap:2px}
.dash-controls label.dash-check{flex-direction:row;align-items:center;gap:.35rem;font-weight:500}
.dash-controls select{min-width:9rem}
.dash-days{position:relative;font-size:.85rem}
.dash-days summary{cursor:pointer;border:1.5px solid #6c8ebf;background:#fff8d6;border-radius:.25rem;padding:.2rem .6rem;font-weight:600;list-style:none;min-width:9rem}
.dash-days-list{background:#fff;border:1.5px solid #6c8ebf;border-radius:.25rem;padding:.5rem;display:flex;flex-direction:column;align-items:center;gap:.3rem;margin-top:.25rem;min-width:12rem}
.dash-days-quick{display:flex;justify-content:center;gap:.25rem;flex-wrap:wrap}
.dash-heat-cmp{font-size:.62rem;font-weight:600;line-height:1}
.settings-card{border:1.5px solid #6c8ebf;border-radius:.4rem;background:#fff;padding:1rem;margin-bottom:1rem}
.hours-table{border-collapse:separate;border-spacing:0 .15rem}
.hours-table th,.hours-table td{padding:.2rem .9rem;font-size:.9rem;white-space:nowrap;vertical-align:middle}
.hours-table td:first-child,.hours-table th:first-child{padding-left:0}
.hours-table td:nth-child(2),.hours-table td:nth-child(3){border-left:1px solid #dde3ee}
.hours-time{display:flex;justify-content:center;gap:.2rem}
.hours-time select{width:3.6rem;padding:.15rem 1.2rem .15rem .35rem;font-size:.8rem;background-position:right .3rem center}
.hours-time .ht-p{width:3.6rem}
.hours-copy{position:relative}
.hours-copy summary{cursor:pointer;color:#1565c0;font-size:.85rem;white-space:nowrap;text-align:center}
.hours-copy-list{position:absolute;z-index:5;right:.5rem;display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;width:7rem;padding:.5rem .6rem;border:1px solid #6c8ebf;border-radius:.25rem;background:#fff;margin-top:.2rem;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.hours-copy-list label{display:flex;flex-direction:row;align-items:center;gap:.4rem;font-size:.85rem;margin:0}
.hours-copy-list input[type=checkbox]{width:1.1rem;height:1.1rem;margin:0;flex:none}
.hours-copy-list .btn{align-self:center;margin-top:.2rem}
.hours-table .hours-closed{width:1.1rem;height:1.1rem}
.hours-row.hours-off .hours-time{opacity:.45}
.dash-controls .dash-days-list label{flex-direction:row;align-items:center;justify-content:flex-start;gap:.6rem;font-size:.9rem;font-weight:500;width:9rem;margin:0}
.dash-days-list input[type=checkbox]{width:1.1rem;height:1.1rem;flex:none;margin:0}
.dash-legend{display:flex;flex-direction:column;gap:.15rem;font-size:.85rem;margin-bottom:.5rem}
.dash-days-quick{display:flex;gap:.25rem;margin-bottom:.25rem}
.dash-summary{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem}
.dash-tile{flex:1 1 150px;border:1.5px solid #6c8ebf;border-radius:.35rem;background:#eef4fc;padding:.4rem .75rem}
.dash-tile-label{font-size:.75rem;font-weight:600;color:#445}
.dash-tile-value{font-size:1.25rem;font-weight:700}
.dash-chart-wrap{position:relative}
.dash-chart-wrap svg{width:100%;max-width:1000px;height:auto}
.dash-tip{display:none;position:absolute;z-index:30;pointer-events:none;background:#fff;border:1.5px solid #6c8ebf;border-radius:.3rem;padding:.4rem .6rem;font-size:.8rem;box-shadow:0 4px 12px rgba(0,0,0,.2);white-space:nowrap}
.dash-key{display:inline-block;width:14px;height:10px;border-radius:2px;margin-right:4px;vertical-align:middle}
.dash-heat{border-collapse:separate;border-spacing:2px;width:100%;max-width:1000px;font-size:.75rem}
.dash-heat th{font-weight:600;text-align:center;padding:2px 4px;color:#445}
.dash-heat td{text-align:center;padding:6px 2px;border-radius:3px;min-width:32px}
.dash-heat td.dash-heat-top{outline:3px solid #f57c00;outline-offset:-2px;font-weight:700}

/* Blue-bordered tile style shared with the dashboard chart tiles */
.pos-shared-shell .dashboard-stat-card.panel,
.pos-shared-shell .dashboard-panel > .d-flex > .panel,
.pos-shared-shell .pos-command-btn,
.live-pos-shell .pos-command-btn,
.pos-shared-shell .pos-shared-title {
  border: 1.5px solid #6c8ebf;
  background: #eef4fc;
}
.pos-shared-shell .pos-command-btn.is-active,
.live-pos-shell .pos-command-btn.is-active {
  background: #d6f0df;
  border: 1.5px solid #6c8ebf;
}

/* Cart price/tax inputs: keep the full amount visible */
.live-pos-shell .cart-table td input.form-control {
  padding: 2px 4px;
  min-width: 0;
  width: 100%;
  -moz-appearance: textfield;
}
.live-pos-shell .cart-table td input[type=number]::-webkit-outer-spin-button,
.live-pos-shell .cart-table td input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart headers: one size, one line */
.live-pos-shell .cart-table thead th,
.live-pos-shell .cart-table thead th:nth-child(n) {
  font-size: 12px;
  white-space: nowrap;
  overflow-wrap: normal;
  padding-left: 4px;
  padding-right: 4px;
}

/* Cash drawer card: blue tile style */
.pos-module-panel.drawer-page { border: 1.5px solid #6c8ebf; background: #eef4fc; border-radius: 12px; }

/* Sales history filter card */
.sales-filter-card { border: 1.5px solid #6c8ebf; background: #eef4fc; border-radius: 12px; padding: 12px 14px; }

/* Dashboard line graph cards */
#salesCard.panel, #busyCard.panel { border: 1.5px solid #6c8ebf; background: #fff; border-radius: 12px; }

.pos-shared-shell .dashboard-panel > .d-flex > .panel { background: #fff; }

/* Refund mode: cash back only, no payment method choices */
.pos-payment.refund-mode .pos-payment-methods,
.pos-payment.refund-mode .pos-payment-panel:not(#liveRefundPanel) { display: none !important; }

/* POS: taller cart and order panel, compact product menu below */
.live-pos-shell .demo-mid { min-height: max(390px, calc((100vh - 330px) * 0.75)); max-height: max(390px, calc((100vh - 330px) * 0.75)); }
.live-pos-shell .demo-bottom { padding: 6px 10px; }
.live-pos-shell .pos-search-wrap { min-height: 34px; }
.live-pos-shell #liveSearchInput { min-height: 32px; font-size: 13px; }
.live-pos-shell .pos-search-icon, .live-pos-shell .pos-scan-btn { font-size: 16px; }
.live-pos-shell .category-btn { min-height: 24px; height: 24px; font-size: 11px; }
.live-pos-shell .product-grid { min-height: 64px; max-height: 96px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.live-pos-shell .product-tile button { min-height: 44px; padding: 2px; font-size: 11px; }
.live-pos-shell .pos-tile-image { width: 24px; height: 24px; }
.live-pos-shell .pos-tile-name { font-size: 10px; line-height: 1.1; }

/* POS cards: blue border, light (white) interior */
.live-pos-shell .pos-toolbar,
.live-pos-shell .cart-panel,
.live-pos-shell .pos-checkout-panel,
.live-pos-shell .demo-bottom,
.live-pos-shell .pos-shared-title,
.live-pos-shell .pos-command-btn,
.live-pos-shell section.panel {
  border: 1.5px solid #6c8ebf;
  background: #fff;
}
.live-pos-shell .pos-command-btn.is-active { background: #d6f0df; }

/* Order panel inner cards: blue borders */
.live-pos-shell .pos-product-summary,
.live-pos-shell .pos-amount-due,
.live-pos-shell .pos-row-card,
.live-pos-shell .pos-detail-panel,
.live-pos-shell .pos-adjustments,
.live-pos-shell .pos-payment-panel,
.live-pos-shell .pos-payment-metric,
.live-pos-shell .pos-checkout-mode-btn,
.live-pos-shell .pos-payment-method-btn,
.live-pos-shell .pos-quick-cash-btn,
.live-pos-shell .pos-row-action {
  border: 1.5px solid #6c8ebf;
}
.live-pos-shell .pos-checkout-mode-btn.is-active { background: var(--pos-green-light); }
.live-pos-shell .pos-payment-method-btn.is-selected { background: var(--pos-green); }

.settings-nav-item { background: #fff8d6; }
.settings-nav-item:hover { background: #fffdf0; }

/* Style rule: view-only = blue shade; editable = yellow (#fff8d6) */
.drawer-action-btn { background: #dce6f5; color: #1c2a40; border: 1.5px solid #6c8ebf; }
.drawer-action-btn:hover { background: #cbd9ee; color: #1c2a40; }
.drawer-action-btn.active { background: #6c8ebf; color: #fff; border-color: #0b2a5b; }

.live-pos-shell .demo-mid.details-collapsed .pos-order-heading { display: none; }

/* Products hidden: give the freed space to the cart and order panel */
.live-pos-shell.products-collapsed .demo-mid { min-height: max(390px, calc(100vh - 330px)); max-height: max(390px, calc(100vh - 330px)); }

.live-pos-shell .cart-table.demo-cart-table th:nth-child(1),
.live-pos-shell .cart-table.demo-cart-table td:nth-child(1) { width: 26%; }
.live-pos-shell .cart-table.demo-cart-table th:nth-child(2),
.live-pos-shell .cart-table.demo-cart-table td:nth-child(2) { width: 22%; min-width: 112px; }
.live-pos-shell .cart-table.demo-cart-table th:nth-child(n+3),
.live-pos-shell .cart-table.demo-cart-table td:nth-child(n+3) { width: 13%; }

/* POS cart: wider panel, full column names, one row per line item */
@media (min-width: 1261px) {
  .live-pos-shell .demo-mid {
    grid-template-columns: minmax(680px, 2.6fr) 76px minmax(340px, 1fr);
  }
}
.live-pos-shell .cart-table-wrap { overflow-x: auto; }
.live-pos-shell .cart-table { min-width: 720px; table-layout: fixed; width: 100%; }
.live-pos-shell .cart-table thead th { white-space: nowrap; overflow: visible; text-overflow: clip; }
.live-pos-shell .cart-table tbody td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  vertical-align: middle;
}
.live-pos-shell .cart-table tbody td:nth-child(2) { overflow: visible; }

/* POS: fixed column widths so the cart never resizes during checkout */
@media (min-width: 1261px) {
  .live-pos-shell .demo-mid,
  .live-pos-shell .demo-mid.details-collapsed {
    grid-template-columns: minmax(0, 1fr) 76px 400px !important;
  }
  .live-pos-shell .demo-mid > .cart-panel,
  .live-pos-shell .demo-mid > .pos-checkout-panel { min-width: 0; }
}

/* POS: no horizontal scrolling in cart or order panel */
@media (min-width: 1261px) {
  .live-pos-shell .demo-mid,
  .live-pos-shell .demo-mid.details-collapsed {
    grid-template-columns: minmax(0, 1fr) 70px 380px !important;
    overflow-x: hidden;
  }
}
.live-pos-shell .cart-table-wrap { overflow-x: hidden; }
.live-pos-shell .cart-table { min-width: 0; width: 100%; }
.live-pos-shell .cart-table th, .live-pos-shell .cart-table td { padding-left: 3px; padding-right: 3px; }
.live-pos-shell .cart-table thead th { font-size: 11px; }
.live-pos-shell .pos-checkout-panel { overflow-x: hidden; }
.live-pos-shell .pos-checkout-panel * { max-width: 100%; box-sizing: border-box; }

/* POS: wider order panel so product details fit inside their card */
@media (min-width: 1261px) {
  .live-pos-shell .demo-mid,
  .live-pos-shell .demo-mid.details-collapsed {
    grid-template-columns: minmax(0, 1fr) 70px 470px !important;
  }
}
.live-pos-shell .pos-checkout-panel * { min-width: 0; overflow-wrap: anywhere; }

.table > tbody > tr.inv-row-off > * { color: #9aa0a6 !important; background-color: #f1f3f5 !important; }
.table > tbody > tr.inv-row-off .btn { opacity: .75; }

.product-tile.needs-unit-weight button { opacity: .55; cursor: not-allowed; position: relative; }
.product-tile .needs-uw-badge { position: absolute; top: 4px; left: 4px; z-index: 2; font-size: 10px; }

.table > tbody > tr.inv-row-variance > * { background-color: #fde2e2 !important; box-shadow: inset 0 0 0 9999px transparent; }
.table > tbody > tr.inv-row-variance > td:first-child { border-left: 4px solid #dc3545; }
