:root {
    --brand: #0f766e;
    --brand-dark: #0f4f4a;
    --muted: #64748b;
    --bg: #f6f8fb;
    --card: #ffffff;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #0f172a; font-family: Arial, Helvetica, sans-serif; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 260px; background: #092c2a; color: #fff; padding: 18px; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.brand-block { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px; }
.brand-icon { width: 44px; height: 44px; background: #14b8a6; color: #fff; border-radius: 14px; display: grid; place-items: center; font-size: 25px; font-weight: 800; }
.brand-title { font-weight: 800; letter-spacing: .06em; }
.brand-subtitle { color: #b6d9d6; font-size: 13px; }
.sidebar .nav-link { color: #c9e5e1; display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin: 4px 0; border-radius: 12px; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: #0f766e; color: #fff; }
.main-content { margin-left: 260px; width: calc(100% - 260px); }
.topbar { min-height: 84px; display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.page-title { font-size: 22px; margin: 0; font-weight: 800; }
.page-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.user-box { display: flex; align-items: center; }
.content-section { padding: 24px; }
.card { border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 30px rgba(15, 23, 42, .04); }
.stat-card { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); min-height: 116px; }
.stat-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 800; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #ecfeff; color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.table > :not(caption) > * > * { vertical-align: middle; }
.badge-soft { background: #ecfeff; color: #0f766e; border: 1px solid #99f6e4; }
.badge-danger-soft { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-warning-soft { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top left, #ccfbf1, #f8fafc 40%, #e2e8f0); }
.login-card { width: min(430px, 92vw); padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 80px rgba(15, 23, 42, .12); }
.print-label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.product-label { border: 1px dashed #111827; padding: 10px; background: #fff; text-align: center; border-radius: 8px; min-height: 118px; }
.product-label img { max-width: 100%; height: 58px; object-fit: contain; }
.receipt { width: 310px; background: #fff; padding: 18px; border: 1px solid var(--border); font-family: 'Courier New', monospace; }
@media (max-width: 900px) {
    .sidebar { position: static; width: 100%; min-height: auto; }
    .main-content { margin-left: 0; width: 100%; }
    .app-shell { display: block; }
    .topbar { position: static; align-items: flex-start; gap: 12px; flex-direction: column; }
}
@media print {
    .sidebar, .topbar, .no-print, .alert { display: none !important; }
    .main-content { margin: 0; width: 100%; }
    .content-section { padding: 0; }
    .card { border: none; box-shadow: none; }
    body { background: #fff; }
    .print-label-grid { grid-template-columns: repeat(3, 1fr); }
}
.sidebar{overflow-y:auto;}
.nav-link{gap:.5rem;}
.badge-success-soft{background:#e6f6ec;color:#16713a;border:1px solid #c7ebd4;}
.badge-info-soft{background:#e8f2ff;color:#0d5aa7;border:1px solid #cbe1ff;}
.form-help{font-size:.82rem;color:#6c757d;}
.import-box{border:1px dashed #b9c3d0;border-radius:14px;padding:18px;background:#fbfcff;}
@media print{.sidebar,.topbar,.no-print{display:none!important}.main-content{margin:0!important;padding:0!important}.content-section{padding:0!important}.card{border:0!important;box-shadow:none!important}}
