:root{
  --brand:#7f1d3f;
  --brand-strong:#5f1630;
  --gold:#d6a44f;
  --gold-soft:#fff2d6;
  --ink:#151922;
  --muted:#6f7785;
  --surface:#ffffff;
  --surface-2:#f7f4ee;
  --canvas:#f4f6f8;
  --line:#e6e9ef;
  --success:#157347;
  --danger:#c92a47;
  --warning:#b7791f;
  --info:#175cd3;
  --shadow:0 18px 45px rgba(17,24,39,.08);
  --shadow-soft:0 10px 30px rgba(17,24,39,.055);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  background:
    radial-gradient(circle at 85% 0%,rgba(214,164,79,.13),transparent 28rem),
    linear-gradient(180deg,#fbfbfc 0%,var(--canvas) 32rem);
  color:var(--ink);
  letter-spacing:0;
}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brand-strong)}
.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:282px;
  color:#fff;
  z-index:1040;
  overflow-y:auto;
  transition:.25s ease;
  background:
    linear-gradient(180deg,rgba(20,22,29,.94),rgba(30,24,29,.98)),
    radial-gradient(circle at 20% 0%,rgba(214,164,79,.18),transparent 18rem);
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:18px 0 45px rgba(15,23,42,.14);
}
.sidebar-brand{
  min-height:84px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:0 22px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--brand),var(--gold));
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 24px rgba(214,164,79,.25);
}
.sidebar small{color:#abb2bf}
.nav-section{
  padding:20px 18px 8px;
  color:#8f98a7;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:700;
}
.sidebar .nav-link{
  min-height:42px;
  color:#d4d8e1;
  border-radius:12px;
  padding:10px 13px;
  margin:4px 12px;
  display:flex;
  align-items:center;
  gap:12px;
  transition:.18s ease;
}
.sidebar .nav-link i{font-size:17px;color:#aeb6c4}
.sidebar .nav-link:hover,.sidebar .nav-link.active{
  background:rgba(255,255,255,.075);
  color:#fff;
  transform:translateX(2px);
}
.sidebar .nav-link.active{
  background:linear-gradient(90deg,rgba(214,164,79,.24),rgba(255,255,255,.07));
  box-shadow:inset 3px 0 0 var(--gold);
}
.sidebar .nav-link.active i{color:var(--gold)}
.main{min-height:100vh}
.top-nav-main{margin-left:0}
.topbar{
  min-height:78px;
  background:
    linear-gradient(135deg,rgba(17,24,39,.98),rgba(39,24,34,.98)),
    radial-gradient(circle at 12% 0%,rgba(214,164,79,.22),transparent 20rem);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(214,164,79,.2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 26px;
  position:sticky;
  top:0;
  z-index:1030;
}
.app-topbar{
  align-items:center;
  flex-wrap:wrap;
  padding:12px 22px;
}
.topbar-brand,
.topbar-user,
.top-main-nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar-brand{
  flex:0 0 auto;
  color:#fff;
}
.topbar-brand small{color:#bac3d3}
.top-main-nav{
  flex:1 1 auto;
  justify-content:center;
  flex-wrap:wrap;
}
.topbar-user{
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.top-nav-link{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.075);
  color:#e8edf5;
  padding:0 13px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.top-nav-link:hover,
.top-nav-link.active{
  background:rgba(214,164,79,.18);
  border-color:rgba(214,164,79,.48);
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.top-nav-link.active i{color:var(--gold)}
.settings-dropdown-toggle{
  border:1px solid rgba(255,255,255,.12);
}
.settings-menu{
  min-width:240px;
}
.settings-menu .dropdown-item.active{
  background:#151922;
  color:#fff;
}
.page-wrap{padding:28px}
.page-wrap:has(#pos-form){
  height:calc(100vh - 78px);
  overflow:hidden;
  padding:20px 28px;
}
#pos-form{
  height:calc(100vh - 118px);
  min-height:0;
  overflow:hidden;
}
.page-title{font-size:28px;font-weight:800;margin:0;letter-spacing:0}
.page-subtitle{color:var(--muted);font-size:14px;margin:6px 0 0}
.card{
  border:1px solid rgba(230,233,239,.9);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-soft);
}
.card-header{
  border-color:var(--line);
  border-radius:16px 16px 0 0!important;
}
.metric-card{overflow:hidden;position:relative}
.metric-card:after{
  content:"";
  position:absolute;
  right:-34px;
  top:-38px;
  width:112px;
  height:112px;
  border-radius:50%;
  background:rgba(214,164,79,.13);
}
.metric-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#fff8eb,#f5e1bd);
  color:var(--brand);
  font-size:22px;
  flex:0 0 auto;
}
.metric-value{font-size:28px;font-weight:800;line-height:1.15}
.btn{
  border-radius:11px;
  font-weight:700;
}
.btn-brand{
  background:linear-gradient(135deg,var(--brand),#a52a52);
  border:0;
  color:#fff;
  box-shadow:0 10px 22px rgba(127,29,63,.22);
}
.btn-brand:hover,.btn-brand:focus{color:#fff;filter:brightness(.97)}
.btn-gold{background:var(--gold);border:0;color:#22180b}
.btn-light{
  background:#fff;
  border-color:var(--line);
  color:#303846;
}
.badge{
  border-radius:999px;
  padding:.42rem .62rem;
  font-weight:700;
}
.badge-soft-success{background:#e9f8ef;color:#137a45}
.badge-soft-warning{background:#fff5dd;color:#9c6b05}
.badge-soft-danger{background:#fdecef;color:#b4233f}
.badge-soft-info{background:#eaf3ff;color:#175cd3}
.table{--bs-table-bg:transparent}
.table>:not(caption)>*>*{padding:.95rem .9rem;border-bottom-color:#edf0f4;vertical-align:middle}
.table thead th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#667085;
  background:#fbfcfd;
  font-weight:800;
}
.table tbody tr:hover{background:#fffaf0}
.catalog-shell{
  display:grid;
  gap:18px;
}
.catalog-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px;
  border:1px solid rgba(230,233,239,.92);
  border-radius:18px;
  background:
    radial-gradient(circle at 96% 0%,rgba(214,164,79,.18),transparent 20rem),
    linear-gradient(135deg,#fff,#fbfcff);
  box-shadow:var(--shadow-soft);
}
.catalog-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  color:var(--brand);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.catalog-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.catalog-stats>div{
  min-height:92px;
  padding:16px;
  border:1px solid rgba(230,233,239,.92);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.catalog-stats span,
.catalog-card-head span,
.catalog-filter label>span,
.catalog-item-cell small{
  color:var(--muted);
  font-size:12px;
}
.catalog-stats strong{
  display:block;
  margin-top:6px;
  font-size:25px;
  line-height:1.1;
}
.catalog-filter{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(160px,.8fr) minmax(140px,.7fr) minmax(140px,.7fr) auto;
  gap:12px;
  align-items:end;
  padding:14px;
  border:1px solid rgba(230,233,239,.92);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.catalog-filter label{
  display:grid;
  gap:6px;
  margin:0;
  font-weight:800;
}
.catalog-filter-actions{
  display:flex;
  gap:8px;
}
.catalog-card{
  border:1px solid rgba(230,233,239,.92);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.catalog-card-head{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfcfd);
}
.catalog-card-head strong,
.catalog-card-head span{display:block}
.catalog-table-wrap{
  max-height:calc(100vh - 390px);
  min-height:360px;
}
.catalog-table{
  min-width:980px;
  margin:0;
}
.catalog-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  box-shadow:0 1px 0 #edf0f4;
}
.catalog-table tbody tr:hover{
  background:#fff9ee;
}
.catalog-item-cell{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:280px;
}
.catalog-item-cell strong,
.catalog-item-cell small{
  display:block;
}
.catalog-item-cell strong{
  max-width:360px;
  color:#141923;
  line-height:1.25;
}
.catalog-item-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:var(--brand);
  background:#fff4df;
  border:1px solid #f2dfba;
  flex:0 0 auto;
}
.catalog-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f4f6f8;
  color:#384152;
  font-size:12px;
  font-weight:800;
}
.catalog-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
.catalog-actions form{margin:0}
.catalog-pagination{
  padding:14px 18px;
  border-top:1px solid var(--line);
  background:#fbfcfd;
}
.catalog-pagination nav{
  margin:0;
}
.form-label{font-weight:700;color:#384152;font-size:13px}
.form-control,.form-select{
  border-radius:11px;
  border-color:#dde2e8;
  padding:.76rem .9rem;
  background-color:#fff;
}
.form-control:focus,.form-select:focus{
  border-color:#d9b16f;
  box-shadow:0 0 0 .22rem rgba(214,164,79,.18);
}
.pos-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:18px;
  align-items:start;
  height:100%;
  min-height:0;
}
.pos-catalog-panel,
.pos-order-card{
  border:1px solid rgba(230,233,239,.94);
  background:rgba(255,255,255,.97);
  border-radius:18px;
  box-shadow:var(--shadow-soft);
}
.pos-catalog-panel{
  padding:18px;
  min-width:0;
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.pos-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.pos-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pos-control-bar{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px;
  gap:10px;
  margin-bottom:12px;
}
.pos-search-box{
  position:relative;
}
.pos-search-box i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#8b95a5;
  z-index:2;
}
.pos-search-box .form-control{
  padding-left:42px;
}
.pos-order-type{
  font-weight:800;
}
.pos-category-strip{
  display:flex;
  gap:8px;
  overflow:auto;
  padding:2px 0 10px;
  margin-bottom:10px;
  flex:0 0 auto;
  scrollbar-width:none;
}
.pos-category-strip::-webkit-scrollbar{display:none}
.pos-category-strip button{
  min-height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#3e4654;
  padding:0 13px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.pos-category-strip button.active,
.pos-category-strip button:hover{
  background:#151922;
  border-color:#151922;
  color:#fff;
}
.pos-product-board{
  flex:1 1 auto;
  min-height:0;
  max-height:100%;
  overflow-y:scroll;
  overflow-x:hidden;
  padding:0 8px 4px 0;
  scrollbar-gutter:stable;
}
.pos-product-board::-webkit-scrollbar,
.pos-lines::-webkit-scrollbar{width:8px}
.pos-product-board::-webkit-scrollbar-track,
.pos-lines::-webkit-scrollbar-track{background:#eef2f6;border-radius:999px}
.pos-product-board::-webkit-scrollbar-thumb,
.pos-lines::-webkit-scrollbar-thumb{background:#aab4c3;border-radius:999px}
.pos-product-board::-webkit-scrollbar-thumb:hover,
.pos-lines::-webkit-scrollbar-thumb:hover{background:#7f8a9b}
.pos-product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:10px;
}
.product-card,
.pos-product-card{
  cursor:pointer;
  transition:.16s ease;
}
.pos-product-card{
  min-height:96px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:8px 10px;
  align-items:center;
  border:1px solid #e7ebf0;
  border-radius:14px;
  background:#fff;
  padding:12px;
  box-shadow:0 8px 20px rgba(17,24,39,.04);
}
.pos-product-card:hover{
  transform:translateY(-2px);
  border-color:#dfc28d;
  box-shadow:0 15px 30px rgba(18,24,40,.09);
}
.pos-product-icon{
  width:44px;
  height:44px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:var(--brand);
  background:#fff4df;
  border:1px solid #f0ddb7;
  font-size:20px;
  grid-row:1 / 3;
}
.pos-product-info{
  min-width:0;
}
.pos-product-info strong{
  display:block;
  color:#151922;
  font-size:13px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pos-product-info span,
.pos-product-meta small{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pos-product-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.pos-product-meta b{
  color:#151922;
  font-size:14px;
}
.pos-product-meta small{
  flex:0 0 auto;
  border-radius:999px;
  background:#e9f8ef;
  color:#137a45;
  padding:3px 7px;
  font-weight:800;
}
.order-panel{position:sticky;top:98px}
.pos-order-panel{
  height:100%;
  min-height:0;
}
.pos-order-card{
  overflow:hidden;
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto auto;
}
.pos-order-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  background:linear-gradient(135deg,#151922,#2a2030);
  color:#fff;
}
.pos-order-head span{
  display:block;
  color:#cbd2df;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.pos-order-head strong{
  font-size:18px;
}
.pos-order-head>i{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(255,255,255,.1);
  color:var(--gold);
  font-size:20px;
}
.pos-order-selects{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:12px 14px;
}
.pos-order-selects label,
.pos-discount-row{
  display:grid;
  gap:6px;
  margin:0;
}
.pos-order-selects span,
.pos-discount-row span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.pos-lines{
  min-height:0;
  overflow-y:scroll;
  overflow-x:hidden;
  padding:4px 14px;
  scrollbar-gutter:stable;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fbfcfd;
}
.pos-empty-cart{
  min-height:170px;
  display:grid;
  place-items:center;
  gap:8px;
  color:#8b95a5;
  text-align:center;
  font-size:13px;
}
.pos-empty-cart i{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  color:var(--brand);
  box-shadow:0 8px 22px rgba(17,24,39,.06);
}
.pos-bill-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #edf0f4;
}
.pos-bill-line:last-child{border-bottom:0}
.pos-bill-line-main{
  min-width:0;
}
.pos-bill-line-main>b{
  display:block;
  color:#151922;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pos-tax-editor{
  display:grid;
  grid-template-columns:auto 78px auto;
  align-items:center;
  gap:7px;
  margin-top:8px;
  padding:6px 8px;
  border-radius:12px;
  background:#fff;
  border:1px solid #edf0f4;
  width:max-content;
  max-width:100%;
}
.pos-tax-editor label{
  margin:0;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.pos-tax-editor .form-control{
  min-height:30px;
  padding:4px 7px;
  font-weight:800;
}
.pos-tax-editor span{
  color:#303846;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.pos-bill-line-actions{
  display:grid;
  grid-template-columns:32px minmax(86px,auto) 32px;
  align-items:center;
  gap:6px;
  text-align:center;
  white-space:nowrap;
}
.pos-bill-line-actions .btn{
  width:32px;
  height:32px;
  padding:0;
  display:grid;
  place-items:center;
}
.pos-bill-line-actions b{
  color:#151922;
  font-size:13px;
}
.pos-summary{
  display:grid;
  gap:6px;
  padding:9px 14px 10px;
}
.pos-summary>div,
.pos-discount-row,
.pos-grand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pos-summary span{
  color:#5d6675;
  font-size:13px;
  font-weight:700;
}
.pos-summary b{
  font-size:14px;
}
.pos-discount-row input{
  width:116px;
  min-height:38px;
  padding:.45rem .75rem;
  text-align:right;
  font-weight:800;
}
.pos-grand-row{
  margin-top:0;
  padding-top:8px;
  border-top:1px solid var(--line);
}
.pos-grand-row span,
.pos-grand-row b{
  color:#111827;
  font-size:18px;
  font-weight:900;
}
.pos-payment-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:0 14px 12px;
}
.pos-payment-grid .form-control,
.pos-payment-grid .form-select{
  min-height:44px;
  padding:.55rem .8rem;
}
.pos-payment-grid button{
  grid-column:1 / -1;
}
.table-tile{
  min-height:176px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  cursor:pointer;
  transition:.2s ease;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.table-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.table-tile.occupied{border-left:5px solid var(--danger)}
.table-tile.available{border-left:5px solid var(--success)}
.table-tile.reserved{border-left:5px solid var(--warning)}
.login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 14% 10%,rgba(214,164,79,.26),transparent 22rem),
    radial-gradient(circle at 86% 86%,rgba(127,29,63,.32),transparent 24rem),
    linear-gradient(135deg,#111318,#242833);
  display:grid;
  place-items:center;
  padding:28px;
}
.login-card{
  width:min(100%,1080px);
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  display:grid;
  grid-template-columns:1.07fr .93fr;
  box-shadow:0 34px 80px rgba(0,0,0,.34);
}
.login-visual{
  position:relative;
  background:
    linear-gradient(145deg,rgba(14,15,20,.7),rgba(127,29,63,.78)),
    url('https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1400&q=80') center/cover;
  padding:54px;
  color:#fff;
  min-height:650px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.login-visual:after{
  content:"";
  position:absolute;
  inset:auto 42px 42px auto;
  width:150px;
  height:150px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:28px;
  transform:rotate(8deg);
}
.login-visual>*{position:relative;z-index:1}
.login-form{padding:58px}
.mobile-menu{display:none}
.chart-placeholder{
  height:286px;
  background:
    linear-gradient(180deg,rgba(127,29,63,.04),transparent),
    repeating-linear-gradient(0deg,#fff,#fff 52px,#f0f2f5 53px);
  border:1px solid #e5e9ef;
  border-radius:15px;
  display:flex;
  align-items:end;
  padding:20px;
  gap:13px;
}
.bar{
  flex:1;
  background:linear-gradient(180deg,var(--gold),var(--brand));
  border-radius:8px 8px 3px 3px;
  min-width:18px;
  box-shadow:0 8px 16px rgba(127,29,63,.15);
}
.progress{background:#f0f2f5;border-radius:999px}
.progress-bar{background:linear-gradient(90deg,var(--brand),var(--gold));border-radius:999px}
.dropdown-menu{
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:8px;
}
.dropdown-item{border-radius:9px;font-weight:600}
.alert-dark{
  border:0;
  border-radius:14px;
  background:#151922;
}
@media(max-width:1200px){
  #pos-form{
    height:auto;
    overflow:visible;
  }
  .pos-workspace{grid-template-columns:1fr}
  .page-wrap:has(#pos-form){
    height:auto;
    overflow:visible;
  }
  .order-panel{position:static}
  .pos-product-board{max-height:none}
  .pos-lines{max-height:none}
  .catalog-filter{grid-template-columns:1fr 1fr}
  .catalog-filter-actions{grid-column:1 / -1}
}
@media(max-width:992px){
  .topbar-brand,
  .topbar-user,
  .top-main-nav{
    width:100%;
    justify-content:center;
  }
  .login-card{grid-template-columns:1fr}
  .login-visual{display:none}
}
@media(max-width:576px){
  .page-wrap{padding:16px}
  .topbar{padding:0 14px}
  .login-body{padding:16px}
  .login-form{padding:34px 24px}
  .page-title{font-size:22px}
  .metric-value{font-size:23px}
  .topbar .dropdown-toggle{max-width:48px;overflow:hidden;white-space:nowrap}
  .pos-catalog-panel{padding:14px}
  .pos-page-head{align-items:flex-start;flex-direction:column}
  .pos-control-bar{grid-template-columns:1fr}
  .pos-product-grid{grid-template-columns:1fr}
  .pos-order-selects,
  .pos-payment-grid{grid-template-columns:1fr}
  .pos-bill-line{grid-template-columns:1fr}
  .pos-bill-line-actions{width:100%;grid-template-columns:38px 1fr 38px}
  .pos-tax-editor{grid-template-columns:auto 1fr; width:100%}
  .pos-tax-editor span{grid-column:1 / -1}
  .catalog-hero{align-items:flex-start;flex-direction:column;padding:16px}
  .catalog-stats{grid-template-columns:1fr 1fr}
  .catalog-stats strong{font-size:20px}
  .catalog-filter{grid-template-columns:1fr}
  .catalog-filter-actions{flex-direction:column}
  .catalog-card-head{align-items:flex-start;flex-direction:column}
  .catalog-table-wrap{max-height:none}
}

/* Compact Menu & Pricing header */
.catalog-shell{gap:12px}.catalog-hero-compact{display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(420px,1.6fr) auto;align-items:center;padding:14px 18px;border-radius:16px}.catalog-hero-compact .catalog-kicker{margin-bottom:4px;font-size:11px}.catalog-hero-compact .page-title{font-size:25px}.catalog-hero-compact .page-subtitle{margin-top:4px}.catalog-mini-stats{display:grid;grid-template-columns:repeat(4,minmax(86px,1fr));gap:8px}.catalog-mini-stats>div{min-height:58px;padding:10px 12px;border:1px solid rgba(230,233,239,.92);border-radius:12px;background:rgba(255,255,255,.82)}.catalog-mini-stats span{display:block;color:var(--muted);font-size:11px;font-weight:800}.catalog-mini-stats strong{display:block;margin-top:3px;color:#111827;font-size:18px;line-height:1.15;white-space:nowrap}.catalog-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.catalog-import-form{margin:0}.catalog-import-form .btn,.catalog-hero-actions .btn{min-height:40px;display:inline-flex;align-items:center;white-space:nowrap}.catalog-filter{grid-template-columns:minmax(240px,1.5fr) minmax(150px,.7fr) minmax(140px,.65fr) minmax(140px,.65fr) auto;padding:10px 14px;border-radius:14px}.catalog-filter label{gap:5px}.catalog-filter .form-control,.catalog-filter .form-select{min-height:40px;padding:.55rem .8rem}.catalog-filter-actions{align-items:end}.catalog-filter-actions .btn{min-height:40px;display:inline-flex;align-items:center}.catalog-table-wrap{max-height:calc(100vh - 280px);min-height:360px}@media(max-width:1200px){.catalog-hero-compact{grid-template-columns:1fr}.catalog-mini-stats{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.catalog-hero-actions{justify-content:flex-start}.catalog-filter{grid-template-columns:1fr 1fr}}@media(max-width:576px){.catalog-hero-compact{padding:14px}.catalog-mini-stats{grid-template-columns:1fr 1fr}.catalog-hero-actions{width:100%;display:grid;grid-template-columns:1fr}.catalog-hero-actions .btn,.catalog-import-form .btn{justify-content:center;width:100%}.catalog-filter{grid-template-columns:1fr}.catalog-filter-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Menu import panel replaces summary space */
.catalog-hero-compact{grid-template-columns:minmax(280px,1fr) minmax(520px,1.35fr) auto;gap:16px}.catalog-import-panel{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:8px;min-width:0;margin:0}.catalog-file-control{min-height:40px;display:flex;align-items:center;gap:9px;min-width:0;margin:0;padding:0 12px;border:1px solid #dde2e8;border-radius:11px;background:#fff;color:#303846;font-weight:800;cursor:pointer}.catalog-file-control i{color:var(--brand);flex:0 0 auto}.catalog-file-control span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-file-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.catalog-import-panel .btn,.catalog-hero-actions .btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.catalog-mini-stats{display:none}@media(max-width:1200px){.catalog-hero-compact{grid-template-columns:1fr}.catalog-import-panel{width:100%;grid-template-columns:auto minmax(180px,1fr) auto}.catalog-hero-actions{justify-content:flex-start}}@media(max-width:576px){.catalog-import-panel{grid-template-columns:1fr}.catalog-import-panel .btn,.catalog-file-control{width:100%;justify-content:center}.catalog-hero-actions{width:100%;display:grid;grid-template-columns:1fr}.catalog-hero-actions .btn{width:100%}}

/* Item image upload and POS thumbnails */
.item-image-preview{width:96px;height:96px;border:1px solid #e7ebf0;border-radius:14px;background:#fbfcfd;display:grid;place-items:center;overflow:hidden}.item-image-preview img{width:100%;height:100%;object-fit:cover}.pos-product-card{grid-template-columns:58px minmax(0,1fr);min-height:108px}.pos-product-image{width:58px;height:58px;grid-row:1 / 3;border:1px solid #f0ddb7;border-radius:14px;background:#fff4df;overflow:hidden;box-shadow:0 8px 18px rgba(17,24,39,.05)}.pos-product-image img{width:100%;height:100%;object-fit:cover;display:block}

/* Hotel food screen loader */
.app-loader{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(214,164,79,.16),transparent 16rem),rgba(251,251,252,.96);backdrop-filter:blur(10px);transition:opacity .24s ease,visibility .24s ease}.app-loader-hidden{opacity:0;visibility:hidden}.app-loader-card{display:grid;place-items:center;gap:10px;padding:18px 20px;border:1px solid rgba(230,233,239,.92);border-radius:18px;background:rgba(255,255,255,.9);box-shadow:var(--shadow)}.beer-loader-bottle{width:78px;height:78px;object-fit:contain;animation:beerPlateSpin 1.05s linear infinite;transform-origin:center center}.app-loader-card span{color:#384152;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}@keyframes beerPlateSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.beer-loader-bottle{animation:none}}

/* Retro Hotel Billing branding */
.brand-logo{padding:0;overflow:hidden;background:#050505;border:1px solid rgba(214,164,79,.45)}.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}.login-brand-logo{width:min(260px,78%);height:auto;display:block;filter:drop-shadow(0 18px 34px rgba(0,0,0,.35))}.receipt-logo{object-fit:contain}

.catalog-item-icon{overflow:hidden}.catalog-item-icon img{width:100%;height:100%;display:block;object-fit:cover}
.low-stock-notification{position:relative}.low-stock-menu{width:min(360px,calc(100vw - 24px));padding:0;border:1px solid #e5e9ef;border-radius:14px;overflow:hidden;box-shadow:0 18px 45px rgba(17,24,39,.16)}.low-stock-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 12px;border-bottom:1px solid #edf0f4;background:#fbfcfd}.low-stock-menu-head strong{display:block;color:#151922;font-size:14px}.low-stock-menu-head span:not(.badge){display:block;color:#667085;font-size:11px;font-weight:800}.low-stock-list{max-height:320px;overflow:auto}.low-stock-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;color:#151922;text-decoration:none;border-bottom:1px solid #edf0f4}.low-stock-item:hover{background:#fff7e8;color:#151922}.low-stock-item span{display:grid;gap:2px;min-width:0}.low-stock-item strong,.low-stock-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.low-stock-item strong{font-size:13px}.low-stock-item small{color:#667085;font-size:11px;font-weight:700}.low-stock-item b{flex:0 0 auto;color:#b42318;font-size:12px;white-space:nowrap}.low-stock-empty{padding:18px 14px;color:#667085;font-size:13px;text-align:center}.low-stock-footer{display:block;padding:11px 14px;background:#151922;color:#fff!important;font-size:12px;font-weight:900;text-align:center;text-decoration:none}.low-stock-footer:hover{background:#2a303d;color:#fff!important}
