/* Ultimate-POS-style "modern" skin for Filament (no build step). White sidebar, royal-blue accents, rounded cards. */
:root {
    --pos-bg: #eef1f7;
    --pos-blue: #0b4fd1;
    --pos-blue-dark: #063aa6;
    --pos-blue-soft: #e8efff;
    --pos-ink: #1d2b4f;
    --pos-muted: #6b7690;
    --pos-border: #e3e8f2;
}
body, .fi-body { background: var(--pos-bg) !important; }

/* ---------- Top bar & sidebar ---------- */
.fi-topbar, .fi-topbar > nav, .fi-topbar nav { background: #fff !important; box-shadow: 0 1px 0 var(--pos-border) !important; }
.fi-logo { color: var(--pos-ink); font-weight: 800; letter-spacing: .2px; font-size: 1.3rem; }
.fi-topbar .fi-logo, .fi-simple-main .fi-logo { color: var(--pos-ink) !important; }
.fi-sidebar { background: #fff !important; box-shadow: 1px 0 0 var(--pos-border); }
.fi-sidebar-nav { scrollbar-color: #c4cbe0 transparent; }
.fi-sidebar-group-label { color: var(--pos-muted) !important; text-transform: uppercase; font-size: 11px !important; letter-spacing: .08em; font-weight: 700 !important; }
.fi-sidebar-item-btn { border-radius: 10px !important; padding-block: .6rem !important; }
.fi-sidebar-item-btn .fi-sidebar-item-label { color: var(--pos-ink) !important; font-weight: 500; }
.fi-sidebar-item-btn .fi-icon { color: #55607c !important; }
.fi-sidebar-item-btn:hover { background: #f3f6fd !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--pos-blue-soft) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label, .fi-sidebar-item.fi-active .fi-icon { color: var(--pos-blue) !important; font-weight: 700; }

/* ---------- Page header / cards / tables ---------- */
.fi-header-heading { font-weight: 800 !important; color: var(--pos-ink); font-size: 1.6rem !important; }
.fi-section, .fi-ta-ctn, .fi-wi-chart, .fi-ta-content-ctn { border-radius: 14px !important; border: 0 !important; background: #fff !important; box-shadow: 0 1px 2px rgba(20,40,100,.06), 0 4px 14px rgba(20,40,100,.05) !important; }
.fi-section-header-heading { font-weight: 700 !important; color: var(--pos-ink); }
.fi-ta-header-cell { background: #f6f8fd !important; color: #4a5676 !important; font-weight: 700 !important; }
.fi-ta-row:hover { background: #f4f7ff !important; }
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--pos-blue) !important; border-radius: 10px !important; font-weight: 600; }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: var(--pos-blue-dark) !important; }
.fi-input-wrp { border-radius: 10px !important; }

/* ---------- Login ---------- */
.fi-simple-layout { background: radial-gradient(1200px 600px at 10% 0%, #1b6cff 0%, transparent 60%), linear-gradient(135deg, #04163f 0%, #0b2f7a 55%, #0b4fd1 100%) !important; min-height: 100vh; }
.fi-simple-main { background: #fff !important; border-radius: 20px !important; padding: 2.4rem 2.4rem 2.1rem !important; box-shadow: 0 30px 70px rgba(2,10,40,.45) !important; border: 0 !important; max-width: 27rem !important; position: relative; overflow: hidden; }
.fi-simple-main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #0b4fd1, #12b5cb, #22c55e); }
.fi-simple-header-heading { color: var(--pos-ink) !important; font-weight: 800 !important; }
.fi-simple-main .fi-btn.fi-color-primary { width: 100%; padding-block: .75rem !important; font-weight: 700; }
.fi-simple-main a { color: var(--pos-blue); }

/* ---------- Dashboard: welcome band ---------- */
.l4n-band { background: linear-gradient(120deg, #0a3fb0 0%, #0b4fd1 60%, #1a62e8 100%); color: #fff; border-radius: 16px; padding: 26px 28px 70px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; }
.l4n-band h2 { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.15; }
.l4n-band p { margin: 4px 0 0; opacity: .85; }
.l4n-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.l4n-filters select { background: #fff; color: var(--pos-ink); border: 0; border-radius: 10px; padding: 11px 36px 11px 14px; font-weight: 600; min-width: 190px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ---------- Dashboard: stat cards (rounded, coloured icon circle) ---------- */
.l4n-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: -52px; padding: 0 14px; position: relative; }
.l4n-card { background: #fff; border-radius: 16px; padding: 18px 18px; display: flex; align-items: center; gap: 16px; box-shadow: 0 6px 20px rgba(20,40,100,.12); min-height: 96px; }
.l4n-card .ic { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; }
.l4n-card .ic svg { width: 26px; height: 26px; }
.l4n-card .lbl { color: var(--pos-muted); font-size: .92rem; }
.l4n-card .val { color: var(--pos-ink); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.l4n-card .sub { color: var(--pos-muted); font-size: .72rem; }
.l4n-card a.lnk { text-decoration: none; display: contents; }
.ic-blue { background: #e3f1ff; color: #1b8ef2; } .ic-green { background: #dcf7e8; color: #17a35a; } .ic-yellow { background: #fff2d1; color: #e9a100; }
.ic-red { background: #fde4e4; color: #e5484d; } .ic-purple { background: #ece6ff; color: #6e49e8; } .ic-teal { background: #d9f6f2; color: #0e9f8e; } .ic-gray { background: #e9ecf3; color: #55607c; }

.l4n-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 14px 0; }
.l4n-quick a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pos-ink); padding: 10px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 8px rgba(20,40,100,.08); }
.l4n-quick a:hover { background: var(--pos-blue-soft); color: var(--pos-blue); }
.l4n-quick svg { width: 18px; height: 18px; }

/* ================= POS terminal (Ultimate-POS layout) ================= */
.pos { display: flex; flex-direction: column; gap: 14px; padding-bottom: 96px; }
.pos svg { width: 18px; height: 18px; flex: none; }
.pos button { cursor: pointer; }
.pos button:disabled { opacity: .45; cursor: not-allowed; }
.pos-top { background: #fff; border-radius: 14px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(20,40,100,.06), 0 4px 14px rgba(20,40,100,.05); }
.pos-loc { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pos-ink); }
.pos-loc select, .pos-sel, .pos-sum select { border: 1px solid var(--pos-blue); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--pos-ink); }
.pos-date { background: var(--pos-blue); color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.pos-top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pos-ico { position: relative; width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--pos-border); display: grid; place-items: center; color: var(--pos-blue); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pos-ico.red { color: #e5484d; } .pos-ico b { position: absolute; top: -6px; right: -6px; background: #e5484d; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 6px; }
.pos-btn-light { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--pos-border); font-weight: 700; color: var(--pos-ink); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.pos-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .pos-body { grid-template-columns: 1fr; } }
.pos-left, .pos-right { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(20,40,100,.06), 0 4px 14px rgba(20,40,100,.05); }
.pos-row { display: flex; gap: 10px; margin-bottom: 10px; }
.pos-cust { position: relative; flex: 1; }
.pos-cust input, .pos-scan input, .pos-search { width: 100%; border: 1px solid var(--pos-border); border-radius: 10px; padding: 11px 12px; font-size: 14px; outline: none; background: #fff; }
.pos-cust input:focus, .pos-scan input:focus, .pos-search:focus { border-color: var(--pos-blue); box-shadow: 0 0 0 3px rgba(11,79,209,.12); }
.pos-chip { display: flex; gap: 8px; align-items: center; border: 1px solid var(--pos-border); border-radius: 10px; padding: 9px 12px; background: var(--pos-blue-soft); }
.pos-chip button { margin-left: auto; color: #e5484d; font-weight: 700; }
.pos-drop { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; }
.pos-drop button { display: flex; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border-bottom: 1px solid #f0f2f8; }
.pos-drop button:hover { background: var(--pos-blue-soft); }
.pos-scan { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; position: relative; }
.pos-scan svg { position: absolute; left: 12px; color: var(--pos-muted); } .pos-scan input { padding-left: 38px; }

.pos-cart { border: 1px solid var(--pos-border); border-radius: 10px; overflow: hidden; min-height: 240px; max-height: 46vh; overflow-y: auto; }
.pos-cart table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pos-cart th { background: #f6f8fd; padding: 10px 8px; font-weight: 800; color: var(--pos-ink); text-align: center; position: sticky; top: 0; }
.pos-cart td { padding: 8px; text-align: center; border-top: 1px solid #eef1f8; vertical-align: middle; }
.pos-cart .imei { font: 11px ui-monospace, Menlo, Consolas, monospace; color: var(--pos-muted); }
.pos-cart .empty { padding: 50px 10px; color: var(--pos-muted); } .pos-cart .empty svg { width: 40px; height: 40px; margin: 0 auto 8px; opacity: .4; }
.pos-cart .qty { display: inline-flex; align-items: center; border: 1px solid var(--pos-border); border-radius: 8px; overflow: hidden; }
.pos-cart .qty button { width: 30px; height: 30px; font-size: 18px; background: #f6f8fd; } .pos-cart .qty span { min-width: 36px; font-weight: 700; }
.pos-cart .qty-fixed { display: inline-block; min-width: 36px; font-weight: 700; }
.pos-cart .price { width: 110px; border: 1px solid var(--pos-border); border-radius: 8px; padding: 6px 8px; text-align: right; }
.pos-cart .rm { color: #e5484d; font-weight: 800; }
.pos-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin-top: 12px; font-size: 15px; }
.pos-sum > div { grid-column: span 1; } .pos-sum > div:nth-child(2) { grid-column: span 2; }
.pos-sum strong { font-size: 18px; color: var(--pos-ink); }
.pos-sum label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--pos-ink); font-size: 13px; }
.pos-sum input { border: 1px solid var(--pos-border); border-radius: 8px; padding: 7px 9px; font-weight: 600; }

.pos-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.pos-f { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; color: #fff; font-size: 1.1rem; font-weight: 800; background: linear-gradient(120deg, #5b3df0, #2f7bf2); box-shadow: 0 4px 12px rgba(60,80,240,.35); }
.pos-f.on { box-shadow: 0 0 0 3px rgba(11,79,209,.25), 0 4px 12px rgba(60,80,240,.35); }
.pos-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pos-pills button { padding: 6px 14px; border-radius: 99px; background: var(--pos-blue-soft); color: var(--pos-blue); font-weight: 700; font-size: 13px; }
.pos-search { margin-bottom: 10px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.pos-card { background: #fff; border: 1px solid var(--pos-border); border-radius: 12px; padding: 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; transition: .12s; }
.pos-card:hover { border-color: var(--pos-blue); box-shadow: 0 6px 16px rgba(11,79,209,.18); transform: translateY(-1px); }
.pos-card .pic { height: 74px; background: #f0f2f8; border-radius: 8px; display: grid; place-items: center; color: #b2b9cc; overflow: hidden; margin-bottom: 4px; }
.pos-card .pic svg { width: 34px; height: 34px; } .pos-card .pic img { width: 100%; height: 100%; object-fit: contain; }
.pos-card .nm { font-weight: 700; color: var(--pos-ink); font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pos-card .sk { font-size: 11px; color: var(--pos-muted); } .pos-card .pr { font-weight: 800; color: var(--pos-blue); font-size: 13px; } .pos-card .st { font-size: 11px; color: #17a35a; }
.pos-none { grid-column: 1/-1; text-align: center; color: var(--pos-muted); padding: 30px; }
.pos-more { margin-top: 10px; width: 100%; padding: 9px; border-radius: 10px; background: var(--pos-blue-soft); color: var(--pos-blue); font-weight: 700; }

.pos-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; box-shadow: 0 -6px 24px rgba(20,40,100,.15); padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .pos-bar { left: var(--sidebar-width, 20rem); } .fi-sidebar:not(.fi-sidebar-open) ~ * .pos-bar { left: 0; } }
.pos-bar-l { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pos-tool { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 12px; font-weight: 700; color: var(--pos-blue); font-size: 13px; }
.pos-pay { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.pos-pay.navy { background: #04163f; } .pos-pay.green { background: #22b573; } .pos-pay.red { background: #dc2f2f; }
.pos-total { margin-left: auto; font-size: 1.5rem; font-weight: 800; color: var(--pos-ink); display: flex; align-items: baseline; gap: 12px; }
.pos-total strong { color: #16813f; font-size: 2rem; font-variant-numeric: tabular-nums; }
.pos-recent { background: #5b5bd6; color: #fff; padding: 13px 22px; border-radius: 99px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }

.pos-modal { position: fixed; inset: 0; z-index: 60; background: rgba(8,16,40,.55); display: grid; place-items: center; padding: 16px; }
.pos-modal .box { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.pos-modal .hd { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--pos-border); }
.pos-modal .list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.pos-modal .list button { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pos-modal .list button:hover { background: var(--pos-blue-soft); } .pos-modal small { color: var(--pos-muted); font-family: system-ui; } .pos-modal .empty { padding: 24px; text-align: center; color: var(--pos-muted); }
