*{box-sizing:border-box}
:root{
  --bg:#f4f7fb;--card:#fff;--text:#111827;--muted:#6b7280;--border:#e5e7eb;
  --green:#075437;--green2:#0f8054;--gold:#d6a84c;--blue:#0d6efd;--red:#dc3545;
  --yellow:#ffc107;--cyan:#05b6d6;--dark:#0b1220;
}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
.hidden{display:none!important}
.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:900;cursor:pointer;font-size:14px}
.btn.primary{background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;box-shadow:0 10px 22px rgba(7,84,55,.20)}
.btn.blue{background:var(--blue);color:#fff}
.btn.warning{background:var(--yellow);color:#1f2937}
.btn.danger{background:var(--red);color:#fff}
.btn.light{background:#fff;border:1px solid var(--border);color:#111}
.btn.ghost{background:#f3f4f6;color:#111}
.btn.danger-soft{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.btn.small,.small{padding:8px 11px;font-size:12px}
input,select,textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:11px 12px;font-size:14px;background:#fff}
textarea{min-height:250px;font-family:Consolas,monospace;line-height:1.55}
label{display:block;font-weight:900;margin:10px 0 6px}
.login-screen{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:
  radial-gradient(circle at 15% 15%,rgba(46,179,255,.25),transparent 34%),
  linear-gradient(135deg,#06131f 0%,#073e2b 48%,#f8fafc 48%,#fff 100%)}
.login-panel.hero{color:#fff;padding:58px 7vw}
.brand-line{display:flex;gap:14px;align-items:center;margin-bottom:70px}
.brand-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#007bff,#05d6ff 45%,#d6a84c);display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:1000;color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.28)}
.brand-mark.small{width:42px;height:42px;border-radius:14px;font-size:23px}
.brand-name{font-size:25px;font-weight:1000;letter-spacing:.04em}
.brand-sub{font-size:12px;color:#c5f5ff;letter-spacing:.18em}
.hero h1{font-size:64px;line-height:1.02;margin:0 0 18px;font-weight:1000}
.hero h1 span{color:var(--gold)}
.hero p{max-width:690px;font-size:18px;line-height:1.65;color:#e8fff5}
.hero-tags{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:720px;margin-top:30px}
.hero-tags span{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);border-radius:15px;padding:14px;font-weight:900;backdrop-filter:blur(6px)}
.hero-note{display:inline-block;margin-top:24px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.20);padding:13px 16px;border-radius:16px}
.card-login{align-self:center;max-width:440px;margin:34px 7vw 34px 0;background:#fff;border-radius:26px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.20)}
.demo-pill{display:inline-block;background:#fff3cd;color:#7c5800;border:1px solid #ffe29a;padding:8px 12px;border-radius:999px;font-weight:1000;font-size:12px}
.card-login h2{font-size:34px;margin:16px 0 7px}
.card-login p{color:var(--muted);margin-bottom:22px}
.card-login .primary{width:100%;margin-top:14px}
.quick-login{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.quick-login button{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:10px;font-weight:900}
.login-help{margin-top:16px;padding:13px;border-radius:13px;background:#f8fafc;color:#64748b}
.app{display:flex;min-height:100vh}
.sidebar{width:298px;background:#fff;border-right:1px solid var(--border);position:fixed;left:0;top:0;bottom:0;z-index:20;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(16,24,40,.05)}
.side-head{display:flex;gap:12px;align-items:center;padding:18px;border-bottom:1px solid var(--border)}
.side-head span{display:block;color:var(--muted);font-size:12px}
.close-side{margin-left:auto;display:none;background:transparent;border:0;font-size:25px}
.user-box{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--border);background:#f8fafc}
.avatar{width:44px;height:44px;border-radius:15px;background:#dcfce7;color:var(--green);display:flex;align-items:center;justify-content:center;font-weight:1000}
.user-box span{display:inline-block;background:#e0f2fe;color:#075985;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900;margin-top:5px}
nav{padding:14px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.nav-group{font-size:11px;text-transform:uppercase;color:#6b7280;font-weight:1000;letter-spacing:.08em;margin:13px 9px 4px}
.nav{display:flex;align-items:center;gap:10px;background:#fff;border:0;color:#111;padding:11px 12px;border-radius:12px;text-align:left;font-weight:900;cursor:pointer}
.nav:hover,.nav.active{background:#eef8f2;color:var(--green)}
.side-bottom{margin-top:auto;padding:14px;border-top:1px solid var(--border);display:grid;gap:8px}
.main{margin-left:298px;width:calc(100% - 298px);padding:22px}
.topbar{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:20px}
.topbar h2{font-size:31px;margin:0}
.topbar p{margin:3px 0 0;color:var(--muted)}
.hamb{display:none;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 13px;font-weight:900}
.topbar-actions{display:flex;align-items:center;gap:10px}
.date-pill{background:#fff;border:1px solid var(--border);border-radius:999px;padding:9px 13px;color:#6b7280;font-weight:800}
.page{display:none}
.page.active{display:block}
.card{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:18px;box-shadow:0 8px 24px rgba(16,24,40,.05)}
.card h3{margin:0 0 14px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:15px}
.stat{border-left:5px solid var(--green)}
.stat span{display:block;color:#6b7280;font-size:13px;font-weight:800}
.stat b{display:block;font-size:27px;margin:7px 0}
.stat small{color:#6b7280}
.stat.green{border-left-color:#198754}.stat.green b{color:#198754}
.stat.blue{border-left-color:#0d6efd}.stat.blue b{color:#0d6efd}
.stat.yellow{border-left-color:#ffc107}.stat.yellow b{color:#a37100}
.stat.red{border-left-color:#dc3545}.stat.red b{color:#dc3545}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:15px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:15px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-title h3{margin:0}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{border-bottom:1px solid var(--border);padding:12px;text-align:left;vertical-align:top}
th{background:#f8fafc;text-transform:uppercase;font-size:12px;letter-spacing:.05em}
.right{text-align:right}.center{text-align:center}
.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-weight:1000;font-size:11px}
.badge.green{background:#dcfce7;color:#166534}.badge.red{background:#fee2e2;color:#991b1b}.badge.yellow{background:#fef3c7;color:#92400e}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.dark{background:#e5e7eb;color:#111827}
.pos-layout{display:grid;grid-template-columns:1fr 390px;gap:15px}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.product{border:1px solid var(--border);border-radius:17px;padding:14px;background:#fff;cursor:pointer;transition:.15s ease}
.product:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,0,0,.08)}
.product .emoji{font-size:32px;margin-bottom:7px}
.product b{display:block}.product span{color:var(--green);font-weight:1000}
.cart{position:sticky;top:15px;height:max-content}
.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;border-bottom:1px solid var(--border);padding:10px 0}
.qty{display:flex;align-items:center;gap:6px}.qty button{border:0;background:#f3f4f6;border-radius:9px;padding:5px 9px;font-weight:900}
.total-line{display:flex;justify-content:space-between;font-size:20px;border-top:2px solid #111;margin-top:12px;padding-top:12px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.form-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.row-list .item{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:12px 0}
.row-list .item:last-child{border-bottom:0}
.notice{background:#fff7df;border:1px solid #ffe3a4;color:#694d00;padding:14px;border-radius:15px}
.info{background:#e8f7ff;border:1px solid #a8e6ff;color:#075985;padding:14px;border-radius:15px}
.danger-zone{background:#fff1f2;border:1px solid #fecdd3;padding:14px;border-radius:15px}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}
.modal-box{background:#fff;border-radius:22px;max-width:780px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 30px 90px rgba(0,0,0,.25)}
.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding:16px 18px}
.modal-head h3{margin:0}.modal-head button{border:0;background:#f3f4f6;border-radius:10px;padding:7px 11px;font-size:20px}
#modalBody{padding:18px}
.toast{position:fixed;right:22px;bottom:22px;background:#111827;color:white;padding:13px 17px;border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.25);z-index:90}
.print-card{background:linear-gradient(135deg,#06131f,#073e2b);color:white;border-radius:22px;padding:25px}
.print-card b{color:#fff}.print-card .muted{color:#c7fff1}
.banner-img{width:100%;border-radius:20px;border:1px solid var(--border);display:block}
@media(max-width:1180px){.cards{grid-template-columns:repeat(2,1fr)}.grid-2,.pos-layout{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.cart{position:static}}
@media(max-width:820px){
  .login-screen{grid-template-columns:1fr;background:#06131f}.login-panel.hero{padding:32px}.hero h1{font-size:42px}.hero-tags{grid-template-columns:1fr 1fr}.card-login{margin:0 20px 30px;max-width:none}
  .sidebar{transform:translateX(-105%);transition:.2s ease}.sidebar.open{transform:translateX(0)}.close-side{display:block}
  .main{margin-left:0;width:100%;padding:15px}.hamb{display:block}.topbar-actions{display:none}.cards,.grid-3,.form-grid,.form-grid-3{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr}
}
