:root { color-scheme: light; --green:#173f35; --green2:#246b58; --paper:#f5f4ef; --card:#fff; --ink:#18231f; --muted:#64716b; --line:#d8ddd9; --warn:#9b5b00; --danger:#a12828; --tap:56px; }
* { box-sizing: border-box; }
html { overflow-x:hidden; -webkit-text-size-adjust:100%; }
body { margin:0; min-width:0; overflow-x:hidden; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:var(--paper); color:var(--ink); font-size:18px; line-height:1.45; }
header { background:var(--green); color:#fff; padding:calc(18px + env(safe-area-inset-top)) 18px 18px; }
header h1 { margin:0; font-size:28px; letter-spacing:.02em; }
header p { margin:5px 0 0; opacity:.82; }
nav { margin-top:12px; display:flex; gap:10px; }
nav a { color:#fff; font-weight:750; min-height:44px; display:inline-flex; align-items:center; }
main { width:100%; max-width:680px; margin:auto; padding:16px 14px calc(24px + env(safe-area-inset-bottom)); }
h2 { font-size:23px; margin:22px 0 12px; }
h3 { margin:0 0 14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin:12px 0; box-shadow:0 2px 8px #1020190b; }
.department-grid { display:grid; grid-template-columns:1fr; gap:14px; }
button,.button,input,select,textarea { font:inherit; }
button,.button { min-height:var(--tap); border:0; border-radius:12px; padding:13px 17px; background:var(--green); color:#fff; font-weight:800; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; touch-action:manipulation; }
.department-grid button { min-height:68px; font-size:21px; }
button.secondary { background:#e5ebe8; color:var(--green); }
button.ghost { background:transparent; color:var(--green); border:1px solid var(--line); }
button.danger { background:#fff0f0; color:var(--danger); }
button:disabled { opacity:.55; cursor:not-allowed; }
label { display:block; font-size:15px; font-weight:750; color:#4f5d57; margin-bottom:6px; }
input,select,textarea { width:100%; min-width:0; min-height:var(--tap); padding:12px 13px; border:1.5px solid #9eaaa5; border-radius:11px; background:#fff; color:var(--ink); font-size:18px; }
input:focus,select:focus,textarea:focus { outline:3px solid #82b7a6; outline-offset:1px; border-color:var(--green2); }
textarea { min-height:82px; resize:vertical; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.product .fields { grid-template-columns:1fr; gap:13px; }
.full { grid-column:1/-1; }
.product { border-top:2px solid #edf0ee; padding:20px 0; }
.product:first-child { border-top:0; padding-top:0; }
.product-title { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.product-title strong { font-size:20px; }
.unit { color:var(--muted); font-size:14px; }
.order-output { background:#e7f3ee; padding:14px; border-radius:11px; font-size:19px; font-weight:850; color:#123e31; }
.actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.actions button { flex:1; min-width:120px; }
.product .actions button { width:100%; }
.notice { padding:12px; border-radius:10px; background:#fff8e8; color:#6b4700; margin:12px 0; }
.success { background:#e7f5ed; color:#155c39; }
.status { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:850; background:#e8e9e8; }
.status.validat { background:#dff3e8; color:#17613d; }
.status.de-validat { background:#fff0cd; color:#7b4a00; }
.status.de-comandat { background:#fff0cd; color:#7b4a00; }
.reminders { padding-left:20px; line-height:1.8; }
.reminder-buttons { display:grid; grid-template-columns:1fr; gap:10px; margin-top:12px; }
.reminder-buttons .button { width:100%; justify-content:flex-start; text-align:left; background:#e5ebe8; color:var(--green); }
.hidden { display:none !important; }
.sticky { position:sticky; z-index:5; bottom:0; display:flex; gap:10px; background:#f5f4eff2; padding:10px 0 calc(10px + env(safe-area-inset-bottom)); backdrop-filter:blur(8px); }
.sticky button { flex:1; }
.sticky #save { min-height:62px; font-size:19px; box-shadow:0 5px 18px #173f3540; }
.department-bar { position:sticky; z-index:4; top:0; margin:0 -14px 12px; padding:10px 14px; display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center; background:#f5f4eff5; backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.department-bar button { min-height:48px; padding:8px 12px; }
.department-bar h2 { margin:0; font-size:22px; text-align:right; }
.category { margin:12px 0; padding:0; overflow:hidden; }
.category summary { min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 16px; font-size:19px; font-weight:850; cursor:pointer; list-style:none; touch-action:manipulation; }
.category summary::-webkit-details-marker { display:none; }
.category summary::after { content:"+"; font-size:28px; line-height:1; color:var(--green2); }
.category[open] summary::after { content:"−"; }
.category-body { padding:0 16px 16px; }
.category-count { color:var(--muted); font-size:14px; font-weight:700; margin-left:auto; }
.install-card { padding:14px 16px; }
.install-card h2 { margin:0 0 6px; font-size:19px; }
.install-card p { margin:0; color:var(--muted); font-size:15px; }
.install-card button { width:100%; margin-top:12px; }
.admin-tabs { display:flex; gap:8px; overflow:auto; padding-bottom:5px; }
.admin-tabs button { white-space:nowrap; }
.summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0 18px; }
.summary-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:4px; }
.summary-card span { color:var(--muted); font-size:14px; font-weight:750; }
.summary-card strong { color:var(--green); font-size:27px; line-height:1; }
.summary-card.pending { background:#fff6df; border-color:#ecd08d; }
.summary-card.full { grid-column:1/-1; }
.row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; border-top:1px solid var(--line); padding:12px 0; }
.row:first-child { border-top:0; }
.muted { color:var(--muted); font-size:14px; }
.inline-input { max-width:120px; }
pre.order { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.55; background:#f2f5f3; padding:14px; border-radius:10px; }
@media (max-width:560px) { .fields { grid-template-columns:1fr; } .full { grid-column:auto; } .row { grid-template-columns:1fr; } .row>.actions,.row>button { width:100%; } .admin-tabs button { min-width:145px; } }
@media (min-width:700px) { header { padding-left:max(24px,calc((100% - 680px)/2)); padding-right:max(24px,calc((100% - 680px)/2)); } }
