:root{
--bg:#f8f9fa;
--card:#ffffff;
--muted:#6c757d;
--txt:#212529;
--accent:#0d9488;
--accent-2:#14b8a6;
--stroke:#dee2e6;
--shadow:0 10px 20px rgba(0,0,0,0.08);
}


*{ box-sizing:border-box; }
body{ margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial; background:var(--bg); color:var(--txt); }
.container{ max-width:1000px; margin:0 auto; padding:24px; }


.header{ padding:40px 0 10px; background:#fff; border-bottom:1px solid var(--stroke); position:sticky; top:0; z-index:10; backdrop-filter:saturate(150%) blur(8px); }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; color:var(--accent); }
.brand .dot{ width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow:0 0 10px rgba(13,148,136,0.4); }
.header h1{ font-size:28px; margin:8px 0 6px; color:var(--txt); }
.sub{ color:var(--muted); }


.card{ background:var(--card); border:1px solid var(--stroke); border-radius:16px; padding:24px; box-shadow:var(--shadow); }
.section-title{ margin:18px 0 12px; font-size:18px; color:var(--accent); }


.grid{ display:grid; gap:14px; }
.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:840px){ .grid-3{ grid-template-columns:1fr; } }


.field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.field input, .field select{ width:100%; background:#fff; color:var(--txt); border:1px solid var(--stroke); border-radius:12px; padding:12px 14px; transition:border .2s,box-shadow .2s; }
.field input:focus, .field select:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(13,148,136,.2); outline:none; }


.item{ display:grid; grid-template-columns:1.2fr 1.2fr .8fr auto; gap:12px; align-items:end; padding:14px; border:1px dashed var(--stroke); border-radius:12px; background:#fdfdfd; margin-bottom:10px; }
.item .actions{ display:flex; gap:8px; align-items:center; }
.item .price-hint{ font-size:12px; color:var(--muted); margin-top:6px; }
@media(max-width:720px){ .item{ grid-template-columns:1fr; } }


.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px; border-radius:12px; border:1px solid var(--stroke); background:#fff; color:var(--txt); cursor:pointer; font-weight:600; box-shadow:var(--shadow); text-decoration:none; transition:all .2s; }
.btn:hover{ transform:translateY(-1px); background:#f1f3f5; }
.btn.primary{ background:linear-gradient(135deg,var(--accent),var(--accent-2)); border:none; color:#fff; }
.btn.primary:hover{ opacity:0.9; }
.btn.ghost{ background:#f8f9fa; }


.note{ color:var(--muted); font-size:12px; margin-top:12px; }


.totals{ margin-top:16px; border-top:1px solid var(--stroke); padding-top:12px; display:grid; gap:10px; }
.totals>div{ display:flex; align-items:center; justify-content:space-between; }
.totals .divider{ height:1px; background:var(--stroke); }
.totals .grand{ font-size:18px; font-weight:700; color:var(--accent); }


.table{ border:1px solid var(--stroke); border-radius:12px; overflow:hidden; }
.table .thead, .table .trow{ display:grid; grid-template-columns:2fr 2fr .7fr 1fr 1fr 1.2fr; gap:10px; }
.table .thead{ background:#f1f3f5; padding:12px 14px; color:var(--muted); font-size:13px; }
.table .trow{ border-top:1px solid var(--stroke); padding:12px 14px; background:#fff; }


.kv{ background:#fdfdfd; border:1px solid var(--stroke); border-radius:12px; padding:12px 14px; }
.kv span{ font-size:12px; color:var(--muted); display:block; }
.kv strong{ font-size:14px; color:var(--txt); }


.footer{ border-top:1px solid var(--stroke); margin-top:24px; color:var(--muted); padding:24px 0; font-size:13px; text-align:center; background:#fff; }
.mt{ margin-top:16px; }