@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap";:root{font-family:Inter,Noto Sans Lao,sans-serif;color:#17233d;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{display:flex;min-height:100vh;background:#f5f7fb}.sidebar{width:248px;flex:0 0 248px;background:#fff;border-right:1px solid #e7ebf2;padding:24px 16px 18px;display:flex;flex-direction:column;z-index:20}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 10px 28px}.brand{display:flex;align-items:center;gap:10px;color:#17233d;font-size:20px;font-weight:800;letter-spacing:-.6px}.brand>span:last-child>span{color:#2563eb}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(145deg,#2563eb,#60a5fa);box-shadow:0 7px 16px #2563eb38}.brand-centered{justify-content:center;margin-bottom:25px}.workspace{border:1px solid #e8edf5;border-radius:12px;padding:10px;display:flex;align-items:center;gap:9px;margin-bottom:29px}.workspace-avatar,.user-pill>span{display:grid;place-items:center;background:#e0edff;color:#2563eb;font-weight:800;border-radius:9px;width:31px;height:31px}.workspace div{flex:1;display:flex;flex-direction:column;gap:2px}.workspace strong{font-size:12px}.workspace small{font-size:10px;color:#94a3b8}.nav-label,.eyebrow{color:#94a3b8;font-size:10px;letter-spacing:1.2px;font-weight:700;margin:0 11px 9px}.side-nav{display:grid;gap:5px}.side-nav a{display:flex;align-items:center;gap:13px;color:#8490a3;padding:12px;border-radius:9px;font-size:13px;font-weight:600;transition:.18s ease}.side-nav a:hover{background:#f3f7ff;color:#2563eb}.side-nav a.active{background:#eaf2ff;color:#2563eb}.sidebar-bottom{margin-top:auto}.tip-card{display:flex;gap:10px;border-radius:12px;padding:13px 10px;background:#f4f8ff;color:#2563eb}.tip-card strong{color:#30466e;font-size:11px}.tip-card p{color:#8190a8;font-size:10px;margin:4px 0 0;line-height:1.4}.logout-button{width:100%;background:transparent;border:0;display:flex;gap:9px;align-items:center;color:#94a3b8;font-size:12px;padding:20px 10px 2px}.logout-button:hover{color:#ef4444}.main-area{min-width:0;flex:1}.topbar{height:76px;padding:0 40px;background:#fff;border-bottom:1px solid #e7ebf2;display:flex;align-items:center;justify-content:space-between}.breadcrumb{color:#94a3b8;font-size:12px;margin:0}.breadcrumb strong{color:#334155;font-weight:600}.topbar-actions{display:flex;align-items:center;gap:22px}.topbar-search{width:200px;display:flex;align-items:center;gap:8px;background:#f7f9fc;border:1px solid #edf1f6;border-radius:8px;padding:8px 10px;color:#a2adbd}.topbar-search input,.table-search input{width:100%;border:0;outline:0;background:transparent;font-size:11px}.user-pill{display:flex;align-items:center;gap:8px;font-size:12px}.user-pill>span{width:32px;height:32px;border-radius:50%}.menu-toggle,.mobile-close,.backdrop{display:none}.content{max-width:1440px;margin:auto;padding:36px 40px 60px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.page-heading h1{margin:4px 0 5px;font-size:27px;letter-spacing:-.7px}.muted{color:#94a3b8;font-size:12px;margin:0}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:#2563eb;color:#fff;padding:11px 16px;font-size:12px;font-weight:700;box-shadow:0 7px 15px #2563eb24}.primary-button:hover{background:#1d4ed8}.full-width{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:20px}.stat-card,.panel{background:#fff;border:1px solid #e8edf4;border-radius:13px;box-shadow:0 5px 20px #1e3a8a05}.stat-card{padding:18px;display:flex;gap:13px;align-items:flex-start}.stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px}.stat-icon.blue{background:#e9f2ff;color:#2563eb}.stat-icon.orange{background:#fff5df;color:#f59e0b}.stat-icon.green{background:#e7f8f0;color:#10b981}.stat-icon.purple{background:#f1eaff;color:#8b5cf6}.stat-copy p{color:#94a3b8;font-size:11px;margin:1px 0 5px}.stat-copy h3{margin:0 0 5px;font-size:21px;letter-spacing:-.5px}.stat-copy small{font-size:10px}.positive{color:#10b981}.neutral{color:#f59e0b}.charts-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:20px;margin-bottom:20px}.panel{padding:22px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel h2{font-size:14px;margin:0 0 5px}.period-chip,.count-badge{color:#2563eb;background:#eef5ff;padding:6px 9px;border-radius:6px;font-size:10px}.chart-wrap{height:255px;margin-top:18px}.donut-wrap{position:relative;height:210px;margin:10px auto 0;max-width:270px}.donut-center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}.donut-center strong{font-size:26px}.donut-center span{color:#94a3b8;font-size:10px}.legend{display:grid;gap:8px;margin-top:2px}.legend span{color:#64748b;font-size:11px;display:flex;align-items:center;gap:7px}.legend i{width:8px;height:8px;border-radius:50%}.legend b{margin-left:auto;color:#334155}.alert-panel{padding-bottom:12px}.alert-list{margin-top:15px}.alert-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #f0f3f7}.alert-dot{display:grid;place-items:center;color:#f59e0b;background:#fff5df;border-radius:50%;width:33px;height:33px}.alert-row div{flex:1}.alert-row strong{font-size:12px}.alert-row p{color:#94a3b8;font-size:10px;margin:3px 0 0}.alert-row a{color:#2563eb;font-size:10px;font-weight:600}.empty-state{padding:35px 10px;text-align:center;color:#94a3b8;font-size:12px}.add-panel{margin-bottom:20px}.add-form{display:flex;align-items:end;gap:13px}.add-form>div{flex:1}.add-form label,.auth-form label{display:block;color:#64748b;font-size:11px;font-weight:600;margin-bottom:7px}.add-form input,.auth-form input{width:100%;border:1px solid #dfe6ef;border-radius:7px;outline:0;padding:10px 12px;color:#334155;font-size:12px;background:#fff}.add-form input:focus,.auth-form input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}.table-panel{padding:0;overflow:hidden}.table-toolbar{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:15px}.table-toolbar h2{margin:0}.count-badge{margin-left:5px}.table-search{width:210px;display:flex;align-items:center;gap:7px;border:1px solid #e5eaf1;border-radius:7px;color:#9aa6b7;padding:8px 10px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:690px}th{color:#94a3b8;font-size:10px;font-weight:600;text-align:left;padding:12px 22px;background:#fafbfd}td{padding:14px 22px;border-top:1px solid #f0f3f7;font-size:12px}.product-cell{display:flex;align-items:center;gap:10px}.product-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:#2563eb;background:#eef5ff}.quantity-control{display:inline-flex;align-items:center;gap:10px;border:1px solid #e5eaf1;border-radius:7px;padding:3px}.quantity-control button{border:0;background:transparent;color:#2563eb;width:23px;height:23px;border-radius:5px;font-size:17px}.quantity-control button:hover{background:#eef5ff}.quantity-control b{min-width:23px;text-align:center}.status-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;padding:6px 9px;border-radius:20px}.status-badge i{width:6px;height:6px;border-radius:50%}.status-badge.success{color:#059669;background:#e8f8f0}.status-badge.success i{background:#10b981}.status-badge.warning{color:#d97706;background:#fff6df}.status-badge.warning i{background:#f59e0b}.status-badge.danger{color:#dc2626;background:#fff0f0}.status-badge.danger i{background:#ef4444}.icon-button{border:0;background:transparent;padding:7px;border-radius:6px}.danger-icon{color:#94a3b8}.danger-icon:hover{background:#fff0f0;color:#ef4444}.placeholder-page{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#2563eb}.placeholder-page h2{margin:17px 0 5px}.loading-screen{min-height:100vh;display:grid;place-items:center;color:#2563eb;font-family:Noto Sans Lao,sans-serif}.auth-page{min-height:100vh;background:linear-gradient(135deg,#f5f9ff,#eef5ff);display:grid;place-items:center;padding:20px}.auth-card{width:100%;max-width:400px;background:#fff;border:1px solid #e4ebf5;border-radius:17px;padding:34px;box-shadow:0 18px 45px #1e3a8a12;text-align:center}.auth-card h1{margin:6px 0;font-size:23px}.auth-form{text-align:left;display:grid;gap:14px;margin-top:24px}.form-error{background:#fff0f0;color:#dc2626;padding:9px;border-radius:7px;font-size:11px;text-align:center}.text-button{border:0;background:transparent;color:#2563eb;font-size:11px;margin-top:17px}.text-button:hover{text-decoration:underline}.passcode-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#223a5e;background-image:radial-gradient(circle at 15% 20%,#c99a3d33,transparent 32%),radial-gradient(circle at 85% 80%,#fff1 0,transparent 35%);animation:passcode-fade .45s ease both}.passcode-card{width:min(100%,420px);padding:34px;border-radius:18px;text-align:center;color:#223a5e;background:#fff;box-shadow:0 22px 65px #101c2f55}.welcome-card{color:#fff;background:#1d3454;border:1px solid #c99a3d66}.passcode-logo{width:76px;height:76px;margin:0 auto 20px;display:grid;place-items:center;border-radius:24px;color:#223a5e;background:#c99a3d;box-shadow:0 10px 26px #c99a3d55}.passcode-logo.small{width:58px;height:58px;border-radius:18px;margin-bottom:16px}.passcode-card h1{margin:8px 0;font-size:24px;line-height:1.55}.passcode-subtitle{color:#aebdd0;font-size:13px;line-height:1.7;margin:0 0 26px}.passcode-card:not(.welcome-card) .passcode-subtitle{color:#94a3b8}.gold-button{border:0;border-radius:9px;padding:13px 22px;color:#223a5e;background:#c99a3d;font-weight:800;font-size:13px}.gold-button:hover{background:#e2bb68}.passcode-form{display:grid;gap:14px;text-align:left}.passcode-form label{color:#64748b;font-size:11px;font-weight:700}.passcode-form input{display:block;width:100%;margin-top:7px;border:1px solid #dfe6ef;border-radius:8px;padding:12px;outline:0}.passcode-form input:focus{border-color:#c99a3d;box-shadow:0 0 0 3px #c99a3d33}.welcome-card .eyebrow{color:#c99a3d;margin-left:0;margin-right:0}.lang-switch{display:flex;gap:5px}.lang-switch button{border:1px solid #dce5f0;background:#fff;color:#64748b;border-radius:6px;padding:5px 8px;font-size:10px}.lang-switch button.active{color:#2563eb;background:#eef5ff}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-card{padding:25px}.settings-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:#2563eb;background:#eaf2ff}.settings-icon.danger{color:#ef4444;background:#fff0f0}.settings-card h2{margin:16px 0 6px;font-size:16px}.settings-card .secondary-button,.settings-card .danger-button{margin-top:20px}.danger-button{border:0;border-radius:8px;color:#fff;background:#dc2626;padding:10px 14px;font-size:11px;font-weight:700}.danger-button:hover{background:#b91c1c}.settings-form-panel{margin-top:20px;max-width:620px}.settings-form-panel h2{margin-top:0;font-size:16px}.settings-form{display:grid;gap:14px;max-width:400px}.settings-form label{color:#64748b;font-size:11px;font-weight:700}.settings-form input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #dfe6ef;border-radius:7px}.success-message{padding:9px;border-radius:7px;color:#047857;background:#e8f8f0;font-size:11px}@keyframes passcode-fade{0%{opacity:0}to{opacity:1}}@media (max-width: 1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.content{padding:28px 25px 50px}.topbar{padding:0 25px}}@media (max-width: 760px){.sidebar{position:fixed;left:-270px;top:0;bottom:0;transition:left .2s ease;box-shadow:8px 0 24px #1e3a8a15}.sidebar.open{left:0}.backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a66;border:0;z-index:10}.menu-toggle,.mobile-close{display:grid;place-items:center;border:0;background:transparent;color:#64748b}.topbar{height:66px;gap:15px;justify-content:flex-start}.topbar-actions{margin-left:auto}.topbar-search{display:none}.content{padding:25px 16px 45px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .primary-button{width:100%}.charts-grid{grid-template-columns:1fr}.add-form{flex-wrap:wrap}.add-form>div{min-width:calc(50% - 7px)}.add-form .primary-button{width:100%}.table-toolbar{align-items:flex-start;flex-direction:column}.table-search{width:100%}}@media (max-width: 480px){.stats-grid{grid-template-columns:1fr}.stat-card{padding:15px}.panel{padding:16px}.page-heading h1{font-size:23px}.auth-card{padding:27px 20px}}.form-section-title{margin:0 0 16px;font-size:14px}.inventory-form{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px}.inventory-form label{color:#64748b;font-size:11px;font-weight:600}.inventory-form input{display:block;width:100%;margin-top:7px;border:1px solid #dfe6ef;border-radius:7px;outline:0;padding:10px 12px;color:#334155;font-size:12px;background:#fff}.inventory-form input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}.inventory-form .wide-field{grid-column:span 2}.table-actions{display:flex;gap:9px;align-items:center}.secondary-button{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfe0fb;border-radius:7px;background:#f5f9ff;color:#2563eb;padding:8px 11px;font-size:11px;font-weight:700;white-space:nowrap}.secondary-button:hover{background:#eaf2ff}.remaining-number{display:block;font-size:14px;color:#17233d;margin-bottom:5px}.note-cell{max-width:160px;white-space:normal;color:#64748b}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:20px;background:#0f172a99}.scanner-modal{width:min(100%,470px);background:#fff;border-radius:15px;padding:20px;box-shadow:0 20px 60px #0f172a40}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.modal-heading h2{margin:0;font-size:16px}.barcode-reader{min-height:260px;overflow:hidden;border-radius:10px;background:#0f172a}.scanner-modal .muted{margin-top:12px;line-height:1.6}@media (max-width: 760px){.inventory-form{grid-template-columns:repeat(2,1fr)}.inventory-form .wide-field{grid-column:span 2}.table-actions{width:100%;flex-direction:column;align-items:stretch}.table-actions .table-search{width:100%}.secondary-button{justify-content:center}.settings-grid{grid-template-columns:1fr}}
