:root{
  --sidebar:#0f172a;--sidebar-deep:#07111f;--sidebar-soft:#1e293b;--accent:#2563eb;--accent-2:#06b6d4;
  --bg:#f3f6fb;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--success:#16a34a;--danger:#dc2626;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);font-size:.94rem}
a{color:var(--accent)}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(180deg,var(--sidebar),var(--sidebar-deep));color:#fff;z-index:1040;overflow-y:auto;box-shadow:12px 0 35px rgba(15,23,42,.12)}
.brand{display:flex;align-items:center;gap:12px;padding:22px 18px;border-bottom:1px solid rgba(255,255,255,.08);min-height:84px}.brand-icon{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#3b82f6,#06b6d4);display:grid;place-items:center;font-size:21px;box-shadow:0 10px 24px rgba(37,99,235,.28);flex:0 0 auto}.brand-copy{min-width:0}.brand strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand small{display:block;color:#94a3b8;font-size:.76rem;margin-top:2px}.sidebar nav{padding-bottom:32px}.sidebar .nav-link{color:#cbd5e1;border-radius:11px;margin:3px 0;padding:10px 12px;display:flex;align-items:center;gap:11px;font-weight:550;transition:.18s}.sidebar .nav-link i{font-size:1.05rem;width:20px;text-align:center}.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(59,130,246,.18);color:#fff;transform:translateX(2px)}.sidebar .nav-link.active{box-shadow:inset 3px 0 0 #60a5fa}.sidebar .nav-link-accent{background:linear-gradient(135deg,rgba(37,99,235,.92),rgba(6,182,212,.75));color:#fff;margin:9px 0 5px}.sidebar .nav-link-accent:hover,.sidebar .nav-link-accent.active{background:linear-gradient(135deg,#2563eb,#0891b2);box-shadow:0 10px 22px rgba(37,99,235,.22)}.nav-section{padding:18px 12px 6px;color:#64748b;font-size:.69rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.sidebar-overlay{display:none}
.main-content{margin-left:270px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;position:sticky;top:0;z-index:1000;gap:14px;box-shadow:0 1px 0 rgba(15,23,42,.03)}.topbar-title h5{font-weight:800}.topbar-title small{font-size:.78rem}.user-chip{display:flex;align-items:center;gap:9px;background:#f8fafc;border:1px solid var(--line);padding:5px 9px 5px 5px;border-radius:999px}.user-chip-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#cffafe);color:#1d4ed8;font-weight:800}.user-chip strong,.user-chip small{display:block;line-height:1.1}.user-chip strong{font-size:.8rem}.user-chip small{font-size:.68rem;color:var(--muted);margin-top:2px}.content-wrap{padding:24px;width:100%;max-width:1700px;margin:0 auto;flex:1}.app-footer{padding:0 24px 18px;text-align:center;color:var(--muted);font-size:.78rem;display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.app-footer a{text-decoration:none}
.card{border:0;border-radius:17px;box-shadow:0 8px 26px rgba(15,23,42,.055)}.card-header{background:#fff;border-bottom:1px solid #edf1f6;border-radius:17px 17px 0 0!important}.soft-card{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #edf2f7}.page-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:22px}.page-heading h2,.page-heading h3{font-weight:800;margin:0}.page-heading p{color:var(--muted);margin:4px 0 0}.stat-card{padding:19px;height:100%;overflow:hidden;position:relative}.stat-card::after{content:"";position:absolute;width:85px;height:85px;border-radius:50%;background:rgba(37,99,235,.045);right:-22px;bottom:-25px}.stat-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:21px;background:#eff6ff;color:#2563eb;flex:0 0 auto}.stat-icon.success{background:#ecfdf3;color:#16a34a}.stat-icon.warning{background:#fff7ed;color:#ea580c}.stat-icon.danger{background:#fef2f2;color:#dc2626}.stat-icon.purple{background:#f5f3ff;color:#7c3aed}.stat-value{font-size:1.55rem;font-weight:850;letter-spacing:-.03em}.muted{color:var(--muted)}
.btn{border-radius:10px;font-weight:650}.btn-primary{box-shadow:0 7px 16px rgba(37,99,235,.15)}.form-control,.form-select{border-radius:10px;min-height:42px;border-color:#dbe3ee}.form-control:focus,.form-select:focus{border-color:#93c5fd;box-shadow:0 0 0 .22rem rgba(37,99,235,.1)}.form-label{font-size:.82rem;font-weight:700;color:#334155}.input-group .form-control{min-height:40px}.table{margin-bottom:0}.table>thead th{font-size:.7rem;text-transform:uppercase;letter-spacing:.055em;color:#64748b;background:#f8fafc;border-bottom:0;padding:12px}.table>tbody td{vertical-align:middle;padding:12px;border-color:#edf1f6}.table-hover tbody tr:hover{background:#fbfdff}.table-responsive{border-radius:12px}.avatar{width:40px;height:40px;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-weight:800;overflow:hidden;flex:0 0 auto}.avatar img{width:100%;height:100%;object-fit:cover}.product-thumb{width:52px;height:52px;border-radius:12px;background:#eff6ff;display:grid;place-items:center;overflow:hidden;color:#2563eb;font-size:20px}.product-thumb img{width:100%;height:100%;object-fit:cover}.badge{font-weight:700}.empty-state{text-align:center;padding:48px 20px;color:var(--muted)}.empty-state i{font-size:2.5rem;color:#94a3b8}.filter-bar{background:#fff;padding:14px;border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.04);display:flex;gap:10px;flex-wrap:wrap;align-items:end}.metric-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.metric-box{padding:15px;border:1px solid var(--line);border-radius:13px;background:#fff}.metric-box span{display:block;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;font-weight:750}.metric-box strong{display:block;font-size:1.22rem;margin-top:5px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.section-title h5{font-weight:800;margin:0}.help-text{font-size:.75rem;color:var(--muted)}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:#fff}.login-hero{background:radial-gradient(circle at top right,rgba(6,182,212,.32),transparent 35%),linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;padding:clamp(40px,7vw,90px);display:flex;flex-direction:column;justify-content:center}.login-box{display:grid;place-items:center;padding:30px}.login-card{max-width:430px;width:100%}.login-logo{width:62px;height:62px;border-radius:19px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;display:grid;place-items:center;font-size:28px;box-shadow:0 14px 28px rgba(37,99,235,.24)}.login-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-weight:650}.login-feature-grid span{display:flex;gap:7px;align-items:center;color:rgba(255,255,255,.85)}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(360px,.78fr);gap:20px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}.catalog-card{cursor:pointer;border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff;transition:.2s;min-height:135px;position:relative;overflow:hidden}.catalog-card:hover{transform:translateY(-3px);border-color:#93c5fd;box-shadow:0 11px 24px rgba(37,99,235,.10)}.catalog-card.out-of-stock{opacity:.58}.catalog-icon{width:46px;height:46px;border-radius:13px;background:#eff6ff;display:grid;place-items:center;color:#2563eb;font-size:21px;overflow:hidden}.catalog-icon img{width:100%;height:100%;object-fit:cover}.catalog-price{font-size:1.05rem;font-weight:850}.cart-panel{position:sticky;top:98px}.cart-row{border:1px solid var(--line);border-radius:13px;padding:11px;margin-bottom:9px;background:#fff}.cart-row.included{background:#f0fdf4;border-color:#bbf7d0}.cart-row.service{background:#f8fbff}.summary-row{display:flex;justify-content:space-between;padding:6px 0}.summary-total{font-size:1.3rem;font-weight:850;border-top:1px dashed #cbd5e1;margin-top:6px;padding-top:12px}.image-drop{border:2px dashed #cbd5e1;border-radius:15px;padding:18px;text-align:center;background:#f8fafc;height:100%}.fifo-tier{font-size:.69rem;background:#f1f5f9;border-radius:999px;padding:3px 7px;display:inline-block;margin:2px}.stock-low{color:#dc2626;font-weight:800}.stock-ok{color:#15803d;font-weight:800}
.control-hero{background:linear-gradient(135deg,#fff,#eef4ff);border:1px solid #e2e8f0;border-radius:20px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.control-kicker{font-size:.76rem;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:#1d4ed8}.control-stat{overflow:hidden;border:1px solid #eef2f7}.control-stat-icon{width:46px;height:46px;border-radius:14px;background:#eef4ff;color:#1d4ed8;display:grid;place-items:center;font-size:21px}.control-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.control-info-grid>div{padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc}.control-info-grid span{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:4px}.control-info-grid strong{display:block;overflow-wrap:anywhere}.audit-mini{display:flex;gap:12px;align-items:flex-start}.audit-dot{width:10px;height:10px;border-radius:50%;background:#2563eb;margin-top:6px;box-shadow:0 0 0 5px #eff6ff;flex:0 0 auto}#company:target .card,#subscription:target .card{outline:2px solid rgba(37,99,235,.18)}
.report-nav{display:flex;gap:8px;flex-wrap:wrap}.report-nav .btn.active{background:#0f172a;color:#fff;border-color:#0f172a}.profit-positive{color:#15803d}.profit-negative{color:#dc2626}.progress-thin{height:7px}.timeline{position:relative;padding-left:22px}.timeline::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:#e2e8f0}.timeline-item{position:relative;padding-bottom:18px}.timeline-item::before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 4px #dbeafe}
@media(max-width:1199px){.pos-layout{grid-template-columns:1fr}.cart-panel{position:static}.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}}
@media(max-width:991px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.show{transform:none}.sidebar-overlay.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:1035}.main-content{margin-left:0}.login-page{grid-template-columns:1fr}.login-hero{display:none}.content-wrap{padding:18px}.control-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:767px){.topbar{height:70px;padding:0 14px}.topbar-title h5{font-size:1rem}.topbar-title small{display:none}.content-wrap{padding:14px}.page-heading{align-items:flex-start}.page-heading .btn-group,.page-heading>.d-flex{width:100%;flex-wrap:wrap}.control-info-grid{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr 1fr}.login-feature-grid{grid-template-columns:1fr}.table>thead th,.table>tbody td{padding:10px}}
@media(max-width:480px){.catalog-grid{grid-template-columns:1fr}.user-chip{display:none}.stat-value{font-size:1.32rem}}
@media print{.sidebar,.topbar,.app-footer,.no-print,.btn,.alert{display:none!important}.main-content{margin:0}.content-wrap{padding:0;max-width:none}.card{box-shadow:none;border:0}.table{font-size:11px}body{background:#fff}}
.job-photo{border:1px solid var(--line);border-radius:14px;background:#fff;padding:8px;height:100%}.job-photo img{width:100%;height:150px;object-fit:cover;border-radius:10px;display:block}.settings-link{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;text-decoration:none;color:var(--text);height:100%;transition:.18s;background:#fff}.settings-link:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 8px 18px rgba(37,99,235,.08)}.settings-link i{width:42px;height:42px;border-radius:12px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:19px}.settings-link span{display:block;min-width:0}.settings-link strong,.settings-link small{display:block}.settings-link small{color:var(--muted);margin-top:2px}.report-tabs{display:flex;gap:9px;overflow-x:auto;padding:3px 2px 10px;scrollbar-width:thin}.report-tab{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:10px 13px;border-radius:11px;background:#fff;border:1px solid var(--line);color:#475569;text-decoration:none;font-weight:700;font-size:.82rem;box-shadow:0 4px 12px rgba(15,23,42,.03)}.report-tab:hover,.report-tab.active{background:#0f172a;color:#fff;border-color:#0f172a}.report-tab i{font-size:1rem}.salary-slip{max-width:1000px;margin:0 auto}.report-table th,.report-table td{white-space:nowrap}.report-table td:nth-child(2){white-space:normal;min-width:130px}
