:root {
 --ink: #20242b;
 --muted: #6b7280;
 --line: #e5e7eb;
 --surface: #ffffff;
 --page: #f5f7fa;
 --yellow: #f3c51b;
 --yellow-dark: #d49f00;
 --green: #169447;
 --blue: #2463a5;
 --red: #c44343;
 --shadow: 0 8px 24px rgba(25, 35, 45, .07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 76px; padding: 14px clamp(16px, 4vw, 60px); background: #fff; border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap: 20px; }
.brand { display:flex; align-items:center; gap: 11px; color: var(--ink); text-decoration:none; }
.brand:hover { text-decoration:none; }
.brand-mark { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background: var(--yellow); color:#151515; font-weight:900; letter-spacing:-1px; }
.brand-logo { display:block; width:52px; height:52px; object-fit:contain; border-radius:50%; background:#fff; }
.brand strong, .brand small { display:block; }
.brand small { margin-top:2px; color:var(--muted); font-size:.77rem; }
.topbar-actions { display:flex; align-items:center; gap:12px; }
.user-name { color:var(--muted); font-size:.9rem; }
.main-nav { padding: 0 clamp(16px, 4vw, 60px); background:#fff; display:flex; gap:24px; border-bottom:1px solid var(--line); overflow-x:auto; }
.main-nav a { padding:14px 2px 12px; color:var(--muted); font-weight:700; font-size:.9rem; border-bottom:3px solid transparent; white-space:nowrap; }
.main-nav a.active, .main-nav a:hover { color:var(--ink); border-color:var(--yellow); text-decoration:none; }
.page-container { width:min(1120px, calc(100% - 32px)); margin: 28px auto 48px; flex:1; }
.page-title { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:22px; }
h1, h2, h3 { margin:0 0 8px; line-height:1.2; }
h1 { font-size:clamp(1.55rem, 3vw, 2.1rem); }
h2 { font-size:1.25rem; }
h3 { font-size:1.05rem; }
.subtitle, .muted { color:var(--muted); }
.subtitle { margin:0; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:22px; }
.grid { display:grid; gap:18px; }
.grid-4 { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.stats-card { padding:18px; }
.stats-card .stat-label { color:var(--muted); font-size:.82rem; font-weight:700; }
.stats-card .stat-number { display:block; font-size:2rem; font-weight:800; margin-top:4px; }
.stats-card.yellow { border-top:4px solid var(--yellow); }
.stats-card.blue { border-top:4px solid var(--blue); }
.stats-card.green { border-top:4px solid var(--green); }
.stats-card.red { border-top:4px solid var(--red); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:0; border-radius:9px; padding:11px 16px; background:var(--yellow); color:#1d1d1d; font-weight:800; cursor:pointer; font-size:.9rem; text-decoration:none; }
.btn:hover { background:var(--yellow-dark); text-decoration:none; }
.btn-light { background:#f1f3f5; color:var(--ink); }
.btn-light:hover { background:#e3e7eb; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary:hover { background:#1b4f87; }
.btn-danger { background:#fde8e8; color:#a32929; }
.btn-danger:hover { background:#f6cccc; color:#7f1d1d; }
.btn-small { padding:8px 11px; font-size:.8rem; }
.inline-form { display:inline; margin:0; }
.checkbox-label { display:flex; align-items:center; gap:8px; margin-top:10px; font-weight:600; }
.checkbox-label input { width:auto; }
.image-preview { margin-top:12px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fafbfc; }
.product-image { display:block; width:100%; max-height:340px; object-fit:contain; border-radius:12px; background:#f5f7fa; border:1px solid var(--line); }
.product-image-card { max-height:180px; margin-bottom:16px; }
.image-caption { margin-top:7px; }
.product-cell { display:flex; align-items:center; gap:10px; min-width:190px; }
.thumb { width:42px; height:42px; flex:0 0 42px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:#f5f7fa; }
.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.updates-list { display:grid; gap:14px; }
.update-card { padding:16px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.update-card h3 { margin:10px 0 8px; font-size:1rem; }
.update-card p { margin:0; color:var(--muted); white-space:pre-line; line-height:1.6; }
.update-meta { display:flex; justify-content:space-between; gap:10px; align-items:center; color:var(--muted); font-size:.78rem; }
.update-type { display:inline-flex; padding:5px 8px; border-radius:99px; background:#fff4d6; color:#7b5b12; font-weight:700; }
.update-image { display:block; width:100%; max-height:260px; object-fit:contain; margin-top:14px; border:1px solid var(--line); border-radius:10px; background:#f5f7fa; }
.ack-box { display:grid; gap:8px; margin-top:15px; padding:12px; border-radius:10px; font-size:.86rem; }
.ack-box span { color:var(--muted); line-height:1.45; }
.ack-pending { background:#fff8e6; border:1px solid #ecd58b; }
.ack-done { background:#edf9f0; border:1px solid #b9dfc1; color:#216b31; }
.ack-info { background:#f5f7fa; color:var(--muted); }
.ack-status { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); font-size:.8rem; font-weight:700; }
.ack-pending { color:#8a6510; }
.ack-done { color:#216b31; }
.update-form-card { max-width:800px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:720px; }
th, td { border-bottom:1px solid var(--line); padding:13px 10px; text-align:left; vertical-align:middle; }
th { color:var(--muted); font-size:.76rem; text-transform:uppercase; letter-spacing:.04em; }
tr:last-child td { border-bottom:0; }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:17px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group.full { grid-column:1 / -1; }
label { font-weight:700; font-size:.88rem; }
input, select, textarea { width:100%; border:1px solid #cfd5dc; border-radius:9px; padding:11px 12px; background:#fff; color:var(--ink); font:inherit; }
textarea { min-height:110px; resize:vertical; }
input:focus, select:focus, textarea:focus { outline:3px solid rgba(36,99,165,.15); border-color:var(--blue); }
.help { color:var(--muted); font-size:.78rem; }
.alert { margin:0 0 18px; padding:13px 15px; border-radius:10px; font-weight:600; }
.alert-success { background:#e7f7ed; color:#176e37; }
.alert-error { background:#fdecec; color:#9b2929; }
.alert-info { background:#e8f1fb; color:#1d558e; }
.status-pill { display:inline-flex; align-items:center; border-radius:999px; padding:5px 10px; font-size:.76rem; font-weight:800; white-space:nowrap; }
.status-received { background:#eef2f7; color:#536272; }
.status-production { background:#fff4d2; color:#956c00; }
.status-ready { background:#e7f7ed; color:#176e37; }
.status-shipped { background:#e8f1fb; color:#1d558e; }
.progress { display:flex; align-items:flex-start; gap:0; margin:22px 0 14px; }
.progress-step { flex:1; position:relative; text-align:center; color:#99a1ab; font-size:.73rem; font-weight:700; }
.progress-step:not(:last-child)::after { content:""; position:absolute; top:14px; left:50%; width:100%; height:3px; background:#e3e7ec; z-index:0; }
.progress-step.done:not(:last-child)::after { background:var(--green); }
.progress-dot { position:relative; z-index:1; display:grid; place-items:center; margin:0 auto 7px; width:29px; height:29px; border:3px solid #e3e7ec; border-radius:50%; background:#fff; color:#9aa3ae; font-size:.7rem; }
.progress-step.done { color:var(--green); }
.progress-step.done .progress-dot { border-color:var(--green); background:var(--green); color:#fff; }
.progress-step.current .progress-dot { border-color:var(--yellow-dark); background:var(--yellow); color:#333; }
.order-grid { display:grid; grid-template-columns:1.4fr .9fr; gap:20px; }
.info-list { margin:0; display:grid; gap:12px; }
.info-row { display:flex; justify-content:space-between; gap:15px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.info-row:last-child { border-bottom:0; padding-bottom:0; }
.info-row dt { color:var(--muted); font-size:.86rem; }
.info-row dd { margin:0; text-align:right; font-weight:700; }
.timeline { margin:0; padding:0; list-style:none; }
.timeline li { position:relative; padding:0 0 18px 24px; border-left:2px solid #dde3e9; }
.timeline li:last-child { border-left-color:transparent; }
.timeline li::before { content:""; position:absolute; left:-7px; top:1px; width:12px; height:12px; border-radius:50%; background:var(--yellow); border:2px solid #fff; box-shadow:0 0 0 1px var(--yellow-dark); }
.timeline strong, .timeline small { display:block; }
.timeline small { color:var(--muted); margin-top:3px; }
.login-page { min-height:100vh; display:grid; place-items:center; padding:22px; background:linear-gradient(135deg,#161a1f,#252b32); }
.login-card { width:min(440px,100%); background:#fff; border-radius:20px; padding:32px; box-shadow:0 20px 60px rgba(0,0,0,.22); }
.login-card .brand { margin-bottom:26px; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:12px; }
.login-card .brand-mark { background:var(--yellow); }
.login-card .brand-logo { display:block; width:96px !important; height:96px !important; max-width:100%; max-height:96px; object-fit:contain; }
.login-card .form-group { margin-bottom:16px; }
.login-card .btn { width:100%; margin-top:6px; }
.empty { text-align:center; padding:30px; color:var(--muted); }
.footer { text-align:center; padding:22px 16px; color:var(--muted); font-size:.77rem; border-top:1px solid var(--line); background:#fff; }
@media (max-width: 820px) {
 .grid-4 { grid-template-columns:repeat(2, minmax(0,1fr)); }
 .order-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
 .topbar { align-items:flex-start; }
 .brand-logo { width:44px; height:44px; }
 .brand small { font-size:.7rem; }
 .section-heading { display:block; }
 .section-heading .btn { margin-top:12px; }
 .user-name { display:none; }
 .page-container { width:min(100% - 22px, 1120px); margin-top:20px; }
 .page-title { display:block; }
 .page-title .actions { margin-top:14px; }
 .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns:1fr; }
 .card { padding:17px; border-radius:13px; }
 .progress-step { font-size:.64rem; }
 .info-row { display:block; }
 .info-row dd { text-align:left; margin-top:3px; }
 .login-card { padding:24px; }
 .login-card .brand-logo { width:84px !important; height:84px !important; max-height:84px; }
}
