:root {
    --pos-primary: #0f766e;
    --pos-primary-dark: #115e59;
    --pos-surface: #f4f6f8;
}

body { background: var(--pos-surface); }

.app-navbar { background: #1f2937; }
.app-navbar .nav-link.active, .app-navbar .nav-link:hover { color: #fff; }

.btn-primary { --bs-btn-bg: var(--pos-primary); --bs-btn-border-color: var(--pos-primary); --bs-btn-hover-bg: var(--pos-primary-dark); --bs-btn-hover-border-color: var(--pos-primary-dark); --bs-btn-active-bg: var(--pos-primary-dark); }
.text-primary { color: var(--pos-primary) !important; }

.stat-card { border: 0; border-left: 4px solid var(--pos-primary); }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 600; }
.stat-card .stat-label { color: #6b7280; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

.table > :not(caption) > * > * { vertical-align: middle; }
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-header h1 { font-size: 1.4rem; margin: 0; }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 400px; }

/* ---------- POS billing screen ---------- */
.pos-body main { padding-top: .75rem !important; padding-bottom: 0 !important; }
.pos-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 1rem; height: calc(100vh - 56px - .75rem - .75rem); }
.pos-left { display: flex; flex-direction: column; min-height: 0; }
.pos-right { display: flex; flex-direction: column; min-height: 0; }
.cat-bar { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; flex-shrink: 0; }
.cat-bar .btn { white-space: nowrap; }
.product-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; align-content: start; padding: 2px 2px 1rem; }
.product-tile { border: 1px solid #e5e7eb; background: #fff; border-radius: .6rem; padding: .65rem; text-align: left; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .05s, box-shadow .1s; }
.product-tile:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); border-color: var(--pos-primary); }
.product-tile:active { transform: scale(.97); }
.product-tile .name { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.product-tile .price { color: var(--pos-primary); font-weight: 600; }
.product-tile .meta { font-size: .72rem; color: #6b7280; }
.product-tile.out { opacity: .55; }
.cart-scroll { flex: 1; overflow-y: auto; min-height: 120px; }
.cart-table td { padding: .35rem .4rem; }
.cart-table .qty-input { width: 64px; text-align: center; }
.cart-row.flash { animation: flash .6s; }
@keyframes flash { from { background: #ccfbf1; } to { background: transparent; } }
.totals-box { background: #f9fafb; border-top: 1px solid #e5e7eb; }
.grand-total { font-size: 1.6rem; font-weight: 700; color: #111827; }
.pay-mode .btn { flex: 1; }
.kbd-hint { font-size: .7rem; color: #9ca3af; }
.print-frame { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }

@media (max-width: 992px) {
    .pos-wrap { grid-template-columns: 1fr; height: auto; }
    .product-grid { max-height: 45vh; }
}

/* ---------- Table board (hotel) ---------- */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.table-tile { display: block; text-decoration: none; border-radius: .75rem; padding: 1rem; color: #111827; border: 2px solid transparent; min-height: 110px; }
.table-tile.free { background: #fff; border-color: #d1d5db; }
.table-tile.free:hover { border-color: var(--pos-primary); }
.table-tile.busy { background: #fef3c7; border-color: #f59e0b; }
.table-tile .tname { font-size: 1.4rem; font-weight: 700; }
.table-tile .tinfo { font-size: .8rem; color: #4b5563; }

/* Hide empty MVC validation summaries (they still render the container). */
.validation-summary-valid { display: none !important; }
