.pos-body { margin:0; background:#f4f6f5; color:#203734; font:16px/1.5 system-ui,sans-serif; }
.pos-body * { box-sizing:border-box; }
.pos-body [hidden] { display:none !important; }
.pos-header { display:flex; align-items:center; gap:24px; padding:16px 28px; background:#fff; border-bottom:1px solid #dce4e1; }
.pos-header strong { font-size:22px; margin-right:18px; }
.pos-back,.pos-link { color:#426860; cursor:pointer; text-decoration:none; }
.pos-profile-form { margin-left:auto; max-width:100%; }
.pos-profile { display:flex; align-items:center; gap:12px; min-height:58px; max-width:100%; padding:10px 16px; border:1px solid #31504d; border-radius:12px; background:#31504d; color:#fff; cursor:pointer; text-align:left; box-shadow:0 2px 4px #31504d24; }
.pos-profile:hover { background:#243e3b; }
.pos-profile:focus-visible { outline:3px solid #699b92; outline-offset:3px; }
.pos-profile-icon { width:26px; height:26px; flex-shrink:0; }
.pos-profile-switch { width:22px; height:22px; flex-shrink:0; }
.pos-profile-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pos-user { font-size:18px; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.pos-profile-hint { font-size:12px; line-height:1.25; color:#e0eeea; }
.pos-main { padding:24px; max-width:1800px; margin:auto; }
.pos-workspace { display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:24px; align-items:start; }
.pos-search { display:block; font-size:14px; font-weight:600; }
.pos-search input { display:block; width:100%; background:white; border:1px solid #bdcec7; border-radius:12px; padding:14px 16px; margin-top:6px; font:inherit; font-size:16px; }
.pos-categories { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.pos-chip { background:#fff; border:1px solid #dce4e1; border-radius:24px; padding:10px 16px; cursor:pointer; font-size:14px; text-decoration:none; color:inherit; }
.pos-chip[aria-pressed=true] { background:#31504d; border-color:#31504d; color:white; }
.pos-products { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:14px; }
.pos-product { display:flex; flex-direction:column; text-align:left; padding:12px; border:1px solid #dce4e1; border-radius:16px; background:#fff; cursor:pointer; gap:6px; }
.pos-product:hover { border-color:#426860; box-shadow:0 4px 16px #20373412; }
.pos-product-image { display:flex; align-items:center; justify-content:center; width:100%; height:112px; border-radius:10px; background:#eaf0ec; color:#739186; font-size:30px; font-weight:700; overflow:hidden; }
.pos-product-image img { width:100%; height:100%; object-fit:cover; }
.pos-product-name { font-weight:600; line-height:1.3; }
.pos-product strong { margin-top:auto; padding-top:8px; }
.pos-product small { font-weight:400; font-size:12px; }
.pos-muted { color:#6b7e78; }
.pos-small { font-size:12px; }
.pos-order { position:sticky; top:20px; border-radius:18px; border:1px solid #dce4e1; background:white; overflow:hidden; }
.pos-order-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px; }
.pos-body h1,.pos-body h2 { margin:0; font-size:20px; font-weight:700; }
.pos-lines { padding:0 20px; max-height:55vh; overflow-y:auto; min-height:220px; }
.pos-line { padding:16px 0; border-bottom:1px solid #e9eeeb; }
.pos-line-top,.pos-line-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pos-line-bottom { margin-top:12px; }
.pos-quantity { display:flex; align-items:center; border:1px solid #dce4e1; border-radius:10px; overflow:hidden; }
.pos-quantity button { width:36px; height:42px; background:#f4f6f5; cursor:pointer; font-size:20px; }
.pos-quantity input { width:70px; border:0; text-align:center; padding:6px 0; font:inherit; }
.pos-order-footer { padding:20px; background:#fafbf9; }
.pos-total { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:12px 0 20px; font-size:20px; }
.pos-total strong { font-size:26px; }
.pos-button { display:inline-flex; align-items:center; justify-content:center; padding:15px 22px; border-radius:12px; border:1px solid #bdcec7; text-decoration:none; font-weight:600; cursor:pointer; }
.pos-primary { background:#31504d; color:white; border-color:#31504d; width:100%; }
.pos-primary:hover { background:#233e3b; }
.pos-primary:disabled { opacity:.45; cursor:default; }
.pos-empty { text-align:center; padding:48px 12px; color:#6b7e78; }
.pos-recent { margin-top:32px; }
.pos-dialog { margin:auto; width:min(480px,calc(100% - 32px)); max-height:90vh; overflow:auto; border:0; border-radius:20px; padding:24px; color:#203734; }
.pos-dialog::backdrop { background:#142b27aa; }
.pos-dialog .pos-order-heading { padding:0 0 16px; }
.pos-payment-methods { border:0; padding:0; margin:20px 0; display:flex; gap:20px; }
.pos-payment-methods legend { margin-bottom:10px; font-weight:600; }
.pos-payment-methods label { border:1px solid #bdcec7; border-radius:10px; padding:12px 18px; cursor:pointer; }
.pos-payment-note { background:#f5f1e6; border-radius:10px; padding:14px; font-size:13px; line-height:1.6; margin:20px 0; }
.pos-error { background:#fff0ed; color:#9d3429; padding:14px; border-radius:10px; margin-bottom:14px; }
.pos-paper { background:#fff; border:1px solid #dce4e1; border-radius:18px; padding:28px; }
.pos-receipt { max-width:640px; margin:auto; }
.pos-body button:focus-visible,.pos-body a:focus-visible,.pos-body input:focus-visible { outline:3px solid #b39759; outline-offset:3px; }
@media(max-width:1000px) { .pos-workspace { grid-template-columns:minmax(0,1fr) 340px; gap:16px; } .pos-main { padding:16px; } }
@media(max-width:700px) { .pos-workspace { grid-template-columns:1fr; } .pos-order { position:static; } .pos-header { gap:12px; padding:12px 16px; flex-wrap:wrap; } .pos-header strong { font-size:18px; } .pos-profile { gap:8px; padding:8px 12px; min-height:54px; } .pos-user { font-size:16px; } .pos-lines { min-height:100px; max-height:none; } .pos-products { grid-template-columns:repeat(2,minmax(0,1fr)); } .pos-product-image { height:90px; } }

/* Orders and receipt workspace keep the existing RMS palette and typography. */
.pos-main { padding:0; max-width:none; }
.pos-main > .pos-paper { margin:24px auto; }
.pos-main > [data-controller=cashier] > .pos-error { margin:16px; }
.pos-tabs { display:flex; align-items:center; gap:8px; padding:10px 24px 0; background:#eaf0ec; border-bottom:1px solid #dce4e1; }
.pos-tabs a { padding:14px 22px; border-radius:12px 12px 0 0; color:#426860; cursor:pointer; }
.pos-tabs a[aria-current=page] { background:#fff; color:#203734; font-weight:700; }
.pos-tab-caption { margin:auto; font-weight:700; }
.pos-list-toolbar { display:flex; align-items:center; gap:24px; padding:18px 24px; }
.pos-list-toolbar .pos-primary { width:auto; }
.pos-list-head { display:grid; grid-template-columns:100px minmax(0,1fr) 160px; gap:24px; padding:12px 24px; color:#6b7e78; background:white; border-block:1px solid #dce4e1; font-size:14px; }
.pos-list-head > :last-child { text-align:right; }
.pos-day-group > summary { padding:12px 24px; background:#edf2ef; color:#426860; font-size:14px; font-weight:600; cursor:pointer; border-bottom:1px solid #dce4e1; }
.pos-open-row,.pos-sale-row { display:grid; grid-template-columns:100px minmax(0,1fr) 240px 160px; gap:24px; align-items:center; padding:20px 24px; border-bottom:1px solid #e5ebe7; background:white; }
.pos-open-row > time,.pos-sale-row > time { font-size:22px; font-weight:600; }
.pos-open-row > :last-child,.pos-sale-row > :last-child { text-align:right; white-space:nowrap; }
.pos-order-link { text-align:left; cursor:pointer; overflow:hidden; }
.pos-order-link p,.pos-sale-row p { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; max-width:100%; }
.pos-order-link strong { color:#31504d; }
.pos-sale-row { grid-template-columns:100px minmax(0,1fr) 160px; text-decoration:none; color:inherit; }
.pos-sale-row:hover { background:#fafbf9; }
.pos-pagination { display:flex; gap:12px; padding:24px; }
.pos-editor-toolbar { display:flex; align-items:center; gap:30px; padding:12px 24px; background:#fff; border-bottom:1px solid #dce4e1; }
.pos-editor-toolbar > :last-child { margin-left:auto; }
.pos-workspace { grid-template-columns:minmax(500px,42%) minmax(0,1fr); gap:0; align-items:stretch; min-height:calc(100dvh - 188px); }
.pos-order { position:static; border:0; border-right:1px solid #dce4e1; border-radius:0; display:flex; flex-direction:column; }
.pos-lines { min-height:250px; max-height:calc(100dvh - 385px); flex:1; padding:0 20px; overflow:auto; }
.pos-check-head,.pos-check-line { display:grid; grid-template-columns:minmax(0,1fr) 116px 70px 80px 16px; gap:10px; align-items:center; font-size:13px; }
.pos-check-head { padding:20px; border-bottom:1px solid #e5ebe7; font-weight:600; }
.pos-check-line .pos-quantity button { width:28px; }
.pos-check-line .pos-quantity input { width:56px; font-size:13px; }
.pos-check-line [data-field=amount] { text-align:right; }
.pos-check-line > strong { overflow-wrap:anywhere; }
.pos-order-footer { margin-top:auto; border-top:1px solid #e5ebe7; }
.pos-check-actions { display:flex; gap:16px; }
.pos-check-actions .pos-primary { margin-left:auto; width:60%; }
.pos-catalog { padding:24px; background:#edf2ef; }
.pos-catalog-toolbar { display:flex; gap:22px; align-items:center; margin:20px 0; }
.pos-category-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.pos-category .pos-product-image { height:140px; }
.pos-category .pos-product-name { padding:6px 2px; }
@media(min-width:1450px) { .pos-check-head,.pos-check-line { grid-template-columns:minmax(100px,1fr) 132px 95px 105px 20px; font-size:14px; } .pos-check-line .pos-quantity input { width:72px; } }
@media(max-width:1100px) { .pos-workspace { grid-template-columns:50% 50%; } .pos-check-head,.pos-check-line { grid-template-columns:minmax(0,1fr) 100px 65px 70px 16px; gap:6px; font-size:12px; } .pos-check-line .pos-quantity input { width:44px; } .pos-catalog { padding:16px; } .pos-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .pos-open-row { grid-template-columns:70px minmax(0,1fr) 190px 120px; gap:16px; } }
@media(max-width:760px) {
  .pos-workspace { display:flex; flex-direction:column; }
  .pos-order { order:1; border-right:0; }
  .pos-catalog { order:2; }
  .pos-lines { min-height:140px; max-height:300px; }
  .pos-check-head,.pos-check-line { grid-template-columns:minmax(0,1fr) 94px 55px 68px 16px; gap:5px; }
  .pos-check-head { padding:14px 10px; } .pos-lines { padding:0 10px; }
  .pos-check-line .pos-quantity button { width:24px; } .pos-check-line .pos-quantity input { width:44px; }
  .pos-list-toolbar { flex-wrap:wrap; gap:10px; padding:16px; }
  .pos-list-head { grid-template-columns:60px minmax(0,1fr) 110px; gap:12px; padding:12px 16px; }
  .pos-open-row { grid-template-columns:60px minmax(0,1fr) 110px; gap:12px; padding:16px; }
  .pos-open-row > .pos-primary { grid-row:2; grid-column:2 / 4; font-size:14px; padding:12px; }
  .pos-open-row > :last-child { grid-column:3; grid-row:1; }
  .pos-open-row > time,.pos-sale-row > time { font-size:18px; }
  .pos-sale-row { grid-template-columns:60px minmax(0,1fr) 110px; gap:12px; padding:16px; font-size:14px; }
  .pos-tabs { padding:8px 12px 0; gap:0; flex-wrap:wrap; } .pos-tabs a { padding:12px; }
  .pos-tab-caption { font-size:13px; }
  .pos-editor-toolbar { padding:12px 16px; gap:16px; font-size:14px; }
}
@media(max-width:760px) {
  .pos-check-head,.pos-check-line { grid-template-columns:minmax(0,1fr) 86px 80px 85px 14px; gap:4px; }
  .pos-check-line .pos-quantity button { width:20px; }
  .pos-check-line .pos-quantity input { width:42px; }
  .pos-check-line [data-field=price] { font-size:11px; overflow-wrap:anywhere; }
}
