:root { --ink:#132c31; --muted:#60777a; --line:#d9e5e3; --panel:#fff; --canvas:#f3f8f7; --teal:#0f766e; --teal-dark:#0b5a54; --pale:#e6f3f1; --orange:#b45309; --orange-pale:#fff5e5; --shadow:0 8px 25px rgba(28, 72, 70, .08); }
* { box-sizing:border-box; }
body { margin:0; font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--canvas); }
button, input, select, textarea { font:inherit; }
button { cursor:pointer; }
.chart-panel { margin-bottom:18px; overflow:hidden; }.chart-heading { padding-bottom:10px; }.chart-badge { flex:none; padding:6px 9px; border-radius:999px; color:var(--teal-dark); background:var(--pale); font-size:11px; font-weight:800; }.stock-chart { display:grid; gap:13px; padding:0 20px 22px; }.chart-row { display:grid; gap:6px; }.chart-label { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12px; }.chart-label span { overflow:hidden; color:#365458; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.chart-label strong { flex:none; font-variant-numeric:tabular-nums; }.chart-track { height:12px; overflow:hidden; border-radius:999px; background:#eaf1f0; }.chart-bar { display:flex; align-items:center; justify-content:flex-end; min-width:4%; height:100%; padding-right:6px; border-radius:999px; color:#fff; background:linear-gradient(90deg, #0f766e, #24a495); transition:width .35s ease; }.chart-bar span { font-size:9px; font-weight:800; white-space:nowrap; }.chart-empty { padding:7px 0; margin:0; color:var(--muted); font-size:13px; text-align:center; }
.topbar { min-height:72px; padding:12px max(24px, calc((100vw - 1240px) / 2)); display:flex; align-items:center; justify-content:space-between; gap:18px; background:#fff; border-bottom:1px solid var(--line); }
.brand, .topbar-actions, .section-heading, .dialog-heading, .dialog-actions { display:flex; align-items:center; }
.brand { gap:11px; }.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; font-size:19px; font-weight:800; color:#fff; background:var(--teal); }.brand strong, .brand span { display:block; }.brand span, .muted { color:var(--muted); font-size:12px; }.topbar-actions { gap:12px; }
.page { max-width:1240px; padding:38px 24px 60px; margin:auto; }.intro { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 0 27px; }.intro h1 { max-width:700px; margin:4px 0 8px; font-size:clamp(27px, 4vw, 38px); letter-spacing:-.04em; }.intro p { max-width:680px; color:var(--muted); margin:0; line-height:1.55; }.eyebrow { margin:0; color:var(--teal); font-size:11px; font-weight:800; letter-spacing:.11em; }.button { border:1px solid transparent; border-radius:9px; padding:10px 14px; font-weight:700; line-height:1.15; }.button-primary { color:#fff; background:var(--teal); }.button-primary:hover { background:var(--teal-dark); }.button-secondary { color:var(--ink); background:#fff; border-color:var(--line); }.button-secondary:hover { background:var(--pale); }
.summary-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin-bottom:18px; }.summary-card, .panel { background:var(--panel); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }.summary-card { min-height:132px; padding:19px; display:flex; flex-direction:column; }.summary-card span, .summary-card small { color:var(--muted); }.summary-card span { font-size:13px; font-weight:700; }.summary-card strong { font-size:28px; letter-spacing:-.04em; margin:auto 0 2px; }.summary-card small { font-size:12px; }.summary-card.warning { background:var(--orange-pale); border-color:#f4c98d; }.summary-card.warning span, .summary-card.warning strong { color:var(--orange); }
.filters { display:grid; grid-template-columns:1.65fr 1fr; align-items:end; gap:13px; padding:17px; margin-bottom:18px; }.filter-field label, .form-grid label { display:flex; flex-direction:column; gap:6px; color:#3e595d; font-size:12px; font-weight:750; }.filter-field input, .filter-field select, .form-grid input, .form-grid select, .form-grid textarea { min-width:0; width:100%; padding:9px 10px; border:1px solid #c8d7d5; border-radius:8px; color:var(--ink); background:#fff; outline:none; }.filter-field input:focus, .filter-field select:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(15,118,110,.12); }
.table-panel { overflow:hidden; }.section-heading { justify-content:space-between; gap:15px; padding:21px 20px 16px; }.section-heading h2, .dialog h2 { margin:0; font-size:19px; letter-spacing:-.02em; }.section-heading p { margin:4px 0 0; color:var(--muted); font-size:13px; }.table-wrap { overflow:auto; }table { width:100%; min-width:880px; border-collapse:collapse; }th, td { padding:13px 15px; border-top:1px solid var(--line); text-align:left; font-size:13px; vertical-align:middle; }th { color:#547073; background:#f9fbfb; font-size:11px; letter-spacing:.04em; text-transform:uppercase; }.number { text-align:right; }td.number { font-variant-numeric:tabular-nums; font-weight:700; }.material-name { font-weight:750; }.subline { margin-top:3px; color:var(--muted); font-size:11px; }.stock-low { color:var(--orange); }.row-button { padding:7px 9px; font-size:12px; }.empty-state { padding:42px; text-align:center; color:var(--muted); }
.dialog { width:min(620px, calc(100vw - 30px)); padding:0; border:1px solid var(--line); border-radius:15px; color:var(--ink); box-shadow:0 25px 70px rgba(15,45,48,.25); }.dialog::backdrop { background:rgba(8,31,34,.47); }.dialog form, .dialog > div { padding:22px; }.dialog-wide { width:min(1100px, calc(100vw - 30px)); padding:22px; }.dialog-heading { justify-content:space-between; gap:20px; margin-bottom:18px; }.icon-button { display:grid; place-items:center; flex:none; width:32px; height:32px; border:0; border-radius:8px; color:#426066; background:#eef4f3; font-size:24px; line-height:1; }.form-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:13px; }.form-wide { grid-column:1 / -1; }.form-error { min-height:18px; margin:11px 0 0; color:#c2410c; font-size:13px; }.dialog-actions { justify-content:flex-end; gap:9px; margin-top:12px; }.movement-item { padding:11px 12px; margin:0 0 15px; color:#2c5557; background:var(--pale); border-radius:8px; font-size:13px; font-weight:700; }.history-list { max-height:500px; overflow:auto; }.history-item { display:grid; grid-template-columns:auto 1fr auto; align-items:start; gap:12px; padding:14px 0; border-top:1px solid var(--line); }.history-badge { border-radius:999px; padding:4px 7px; color:#0b5a54; background:var(--pale); font-size:11px; font-weight:800; }.history-badge.out { color:#a04405; background:var(--orange-pale); }.history-item strong, .history-item small { display:block; }.history-item small { color:var(--muted); margin-top:3px; }.history-quantity { font-weight:800; }.history-empty { padding:22px 0; color:var(--muted); text-align:center; }
.history-table { min-width:1200px; }.history-table th, .history-table td { padding:11px 12px; }.history-table th, .history-date { white-space:nowrap; }.history-badge { display:inline-block; }.history-incoming { color:#0b5a54; }.history-outgoing { color:#a04405; }
@media (max-width:900px) { .summary-grid { grid-template-columns:repeat(2,1fr); }.filters { grid-template-columns:repeat(2,1fr); }.search-field { grid-column:1/-1; }.check-field { grid-column:1/-1; }.topbar .muted { display:none; } }
@media (max-width:600px) { .topbar, .page { padding-left:16px; padding-right:16px; }.topbar { min-height:64px; }.topbar-actions .button { padding:9px 10px; }.intro { align-items:flex-start; flex-direction:column; }.summary-grid, .filters, .form-grid { grid-template-columns:1fr; }.form-wide { grid-column:auto; }.section-heading { align-items:flex-start; flex-direction:column; }.section-heading .button { width:100%; }.dialog form, .dialog > div { padding:18px; } }

.password-field { position:relative; display:block; width:100%; }
.password-field input { padding-right:43px; }
.password-toggle { position:absolute; top:50%; right:6px; display:grid; place-items:center; width:31px; height:31px; padding:0; border:0; border-radius:7px; color:#426066; background:transparent; transform:translateY(-50%); }
.password-toggle:hover { color:var(--teal-dark); background:var(--pale); }
.password-toggle:focus-visible { outline:2px solid var(--teal); outline-offset:1px; }
.password-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.9; }
