
:root{--ink:#1c302a;--muted:#738078;--green:#214f40;--green-light:#e8f2e9;--paper:#f6f7f3;--line:#e3e7df;--red:#a33f3d;--red-light:#fcf0ed;--white:#fff;--gold:#d3df9c;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;min-height:44px;padding:10px 17px;font-weight:600;font-size:14px;transition:background .15s,transform .15s}button:hover{background:#f0f4ed}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:not-allowed}button.primary,.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:#163e30}.danger{color:var(--red);border-color:#eaccca}.wide{width:100%;display:flex;justify-content:space-between}input,select{border:1px solid #d8dfd5;border-radius:8px;background:#fff;color:var(--ink);padding:12px;min-height:46px;max-width:100%}input:focus,select:focus{outline:2px solid #87a68b;outline-offset:2px}button:focus-visible,a:focus-visible{outline:3px solid #87a68b;outline-offset:3px}label{display:grid;gap:8px;font-size:13px;font-weight:600;margin:18px 0}label input,label select{width:100%}a{color:var(--green);text-decoration:none}a.download{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:white;font-size:14px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.3px;font-weight:650;margin-bottom:12px}h2{font-size:25px;letter-spacing:-.7px}h3{font-size:17px;margin-bottom:8px}.muted{color:var(--muted);line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#7c897a;display:block;margin-bottom:14px}.brand{display:flex;align-items:center;font-size:27px;font-weight:750;letter-spacing:-1px;color:inherit}.brand-icon{background:var(--gold);border-radius:10px;color:#274935;font-size:27px;width:38px;height:38px;display:inline-grid;place-content:center;margin-right:10px}.brand-dot{color:#9eaf66}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#fff;border-right:1px solid var(--line);padding:31px 22px;display:flex;flex-direction:column}.side-label{font-size:10px;color:#97a095;letter-spacing:1.6px;margin:50px 15px 17px}.sidebar nav{display:grid;gap:7px}.nav-button{text-align:left;border:0;background:transparent;font-size:19px;font-weight:400;display:flex;gap:13px;align-items:center;padding:13px 14px}.nav-button span{font-size:13px;font-weight:550}.nav-button.active{background:#eaf0e5;color:#264a32}.side-note{margin-top:auto;font-size:11px;padding:20px 12px;color:#547253}.side-note p{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0 0 13px}.status-dot{display:inline-block;background:#8da766;border-radius:50%;width:6px;height:6px;margin-right:5px}.profile{border-top:1px solid var(--line);padding-top:22px;display:flex;align-items:center;gap:10px;font-size:12px}.profile small{display:block;color:var(--muted);margin-top:4px}.avatar{background:#f0f1e9;border:1px solid #e1e5d5;border-radius:50%;width:34px;height:34px;display:grid;place-content:center;font-weight:bold}.icon-button{border:0;background:transparent;font-size:20px;padding:8px;min-width:40px;margin-left:auto}.workspace{margin-left:250px}.topbar{height:84px;border-bottom:1px solid var(--line);background:#ffffffaa;padding:0 44px;display:flex;justify-content:space-between;align-items:center;font-size:13px}.topbar>span{font-weight:600}.section-select{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.section-select select{min-width:130px;min-height:37px;padding:8px 12px;font-size:13px}main{max-width:1320px;margin:auto;padding:42px 44px 70px;min-height:calc(100vh - 146px)}footer{border-top:1px solid var(--line);font-size:11px;color:#949c91;padding:22px 44px;display:flex;justify-content:space-between}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.page-heading p{font-size:14px;margin-bottom:0}.page-heading .eyebrow{margin-bottom:10px}.heading-actions{display:flex;gap:10px;align-items:center}.year{width:105px}.overview{border:1px solid var(--line);background:#fff;border-radius:12px;display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:32px;padding:24px 0}.metric{padding:0 27px;border-right:1px solid var(--line);display:flex;align-items:center;gap:16px}.metric:last-child{border:0}.metric-icon{width:42px;height:42px;border-radius:12px;background:#f2f4ed;color:#70845e;display:grid;place-content:center;font-size:21px}.metric strong{font-size:26px;font-weight:600;display:block;line-height:1.2}.metric small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title h2{font-size:16px;margin:0}.legend{display:flex;gap:16px;font-size:11px;color:var(--muted)}.legend span:before{content:'';width:6px;height:6px;display:inline-block;background:#b5bead;border-radius:50%;margin-right:6px}.legend span:nth-child(2):before{background:#bf9247}.legend span:nth-child(3):before{background:#528361}.months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.month-card{padding:21px;background:#fff;border:1px solid var(--line);border-radius:12px;min-height:167px;display:flex;flex-direction:column;position:relative}.month-card.current{border-color:#8aa27c;box-shadow:0 0 0 1px #8aa27c}.month-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.month-top h3{font-size:16px;margin:0}.month-number{font-size:11px;color:#a3ac9e}.month-card p{font-size:12px;color:#9ba393;margin:16px 0 23px}.month-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:7px}.month-bottom button{border:0;padding:0;min-height:30px;font-size:11px;background:transparent;color:#536b4a}.badge{font-size:10px;font-weight:600;padding:5px 8px;border-radius:5px;white-space:nowrap;display:inline-block;background:#f0f2ed;color:#84907b}.badge.open{background:#fbf3e2;color:#9a782c}.badge.final,.badge.done{background:var(--green-light);color:#367049}.badge.missing{background:var(--red-light);color:var(--red)}.current-label{font-size:9px;color:#68805d;margin-left:8px;text-transform:uppercase;letter-spacing:.5px}.tip{margin-top:25px;padding:16px 18px;display:flex;gap:12px;background:#eef1e7;border-radius:8px;font-size:12px;color:#657453;line-height:1.6}.back{border:0;background:transparent;padding-left:0;color:var(--muted);margin-bottom:12px;font-size:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:22px}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}.search{min-width:230px;flex:1;max-width:420px;padding-left:16px}.filters{display:flex;gap:4px;background:#eaf0e6;padding:4px;border-radius:9px}.filters button{border:0;background:transparent;font-size:12px;min-height:35px;padding:7px 12px}.filters button.active{background:#fff;box-shadow:0 1px 3px #0000000c}.progress-wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;font-size:12px;color:#6b7865}.progress-wrap progress{width:180px;height:8px;accent-color:#5b7b48}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#85907c;font-weight:600;background:#f7f8f4;padding:14px 16px;white-space:nowrap}td{padding:17px 16px;border-bottom:1px solid #edf0e8}tbody tr:last-child td{border:0}.product-row{cursor:pointer}.product-row:hover{background:#f8faf5}.product-name{font-weight:600}.product-name small{font-weight:400;font-size:10px;color:#929c89;display:block;margin-top:5px}.quantity{text-align:right;font-variant-numeric:tabular-nums;font-weight:650}.quantity.missing{color:var(--red)}.inventory-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}.inventory-actions>div{display:flex;gap:8px;flex-wrap:wrap}.empty{text-align:center;padding:45px 20px;color:var(--muted);font-size:14px}.empty strong{display:block;color:var(--ink);font-size:18px;margin-bottom:10px}.error{color:var(--red);font-size:13px;line-height:1.5}.success{color:#34704b}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hint{font-size:12px;color:var(--muted);line-height:1.7}dialog{border:1px solid var(--line);border-radius:16px;padding:30px;width:480px;max-width:calc(100% - 28px);color:var(--ink);box-shadow:0 25px 100px #10281933}dialog::backdrop{background:#0b201b66;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.dialog-head h2{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;flex-wrap:wrap}.total-box{background:#f2f5ed;padding:22px;border-radius:10px;margin:20px 0}.total-box small{font-size:12px;color:var(--muted)}.total-box strong{font-size:34px;display:block;margin-top:5px;font-variant-numeric:tabular-nums}.file-input{padding:28px 20px;border:1px dashed #a8b698;background:#f7faf2;width:100%}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:#1b3d32;color:#fff;padding:50px 65px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-story h1{font-size:52px;line-height:1.16;letter-spacing:-2px;margin-top:20px}.login-story .eyebrow{color:#c2d0a4}.login-story p{color:#bccabe;line-height:1.9;font-size:15px}.login-story small{font-size:11px;color:#9cb09f}.story-grid{display:flex;gap:25px;border-top:1px solid #ffffff22;padding-top:25px;margin-top:40px;font-size:11px;color:#c7d5bb}.login-form{display:flex;align-items:center;justify-content:center;padding:50px}.login-form form{max-width:370px;width:100%}.login-form h2{font-size:33px}.login-form .primary{margin-top:27px}.login-form small{display:block;font-size:11px;margin-top:35px}.initial-loading{padding:60px;text-align:center;color:var(--muted)}#toast{position:fixed;right:25px;bottom:25px;background:#173e31;color:white;box-shadow:0 8px 32px #1b302233;padding:16px 22px;border-radius:10px;z-index:100;font-size:13px;max-width:calc(100% - 40px)}#toast.error{background:#873f37}details{margin-top:25px}summary{font-size:12px;color:var(--muted);cursor:pointer;padding:10px 0}.checkbox{display:flex;align-items:center;gap:8px}.checkbox input{width:18px;min-height:18px}.section-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);gap:12px}[hidden]{display:none!important}@media(min-width:1500px){main{padding-top:55px}.months{gap:20px}.month-card{min-height:190px}}@media(max-width:1150px){.sidebar{width:210px;padding:28px 16px}.workspace{margin-left:210px}main{padding:30px 25px}.topbar{padding:0 25px}.months{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:0 15px;gap:10px}.metric-icon{display:none}.page-heading{align-items:flex-start}.two-columns{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{position:relative;width:100%;padding:15px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:23px}.brand-icon{width:31px;height:31px;font-size:24px}.sidebar nav{display:flex;overflow:auto;margin-top:15px;gap:5px}.nav-button{padding:10px;min-width:max-content;font-size:15px}.nav-button span{font-size:11px}.side-label,.side-note,.profile{display:none}.workspace{margin-left:0}.topbar{height:65px;padding:0 20px}.topbar>span{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{padding:27px 18px 45px}h1{font-size:28px}.page-heading{gap:15px;flex-wrap:wrap;margin-bottom:23px}.page-heading p{font-size:12px}.heading-actions{flex-wrap:wrap}.overview{padding:18px 0;margin-bottom:25px}.metric{padding:0 13px}.metric strong{font-size:23px}.metric small{font-size:10px}.months{gap:10px}.month-card{padding:15px;min-height:159px}.month-top h3{font-size:14px}.month-bottom{align-items:flex-start;flex-direction:column}.month-bottom button{font-size:10px}.month-card p{font-size:10px;margin:12px 0}.current-label{font-size:8px;display:block;margin:5px 0}.legend{gap:8px;font-size:9px}.section-title h2{font-size:13px}.month-number{display:none}.panel{padding:17px}.toolbar{gap:10px}.search{min-width:100%;max-width:none}.filters{width:100%}.filters button{flex:1;font-size:11px}.progress-wrap{font-size:11px}.progress-wrap progress{width:85px}th,td{padding:12px 9px;font-size:12px}th{font-size:9px}.hide-mobile{display:none}.product-name{max-width:145px;overflow-wrap:anywhere}.badge{font-size:9px}.inventory-actions>div{width:100%}.inventory-actions button{flex:1;font-size:12px}.inventory-actions .primary{width:100%}footer{padding:20px;font-size:10px}footer span{display:none}.login-page{grid-template-columns:1fr}.login-story{min-height:auto;padding:26px}.login-story>div:nth-child(2){margin-top:35px}.login-story h1{font-size:35px}.login-story p,.login-story small,.story-grid{display:none}.login-form{padding:35px 26px}.login-form h2{font-size:28px}dialog{padding:23px}.total-box strong{font-size:30px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.material-options{display:grid;gap:12px;margin:22px 0}.material-options button{text-align:left;padding:18px;white-space:normal}.material-options strong{display:block;font-size:16px;margin-bottom:8px}.material-options span{display:block;font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)}

.brand-name{font-size:18px;letter-spacing:-.5px;line-height:1.25}.brand-name small{display:block;font-size:12px;letter-spacing:1.5px;font-weight:500;margin-top:3px}.brand-icon{flex-shrink:0}

/* Inventar pe telefon: denumirea și starea împart zona largă din stânga. */
@media(max-width:760px){
 #items table,#items thead,#items tbody{display:block;width:100%}
 #items tr{display:grid;grid-template-columns:minmax(0,1fr) 76px 32px;column-gap:8px}
 #items thead tr{background:#f7f8f4;align-items:center}
 #items th{padding:13px 4px;letter-spacing:.2px}
 #items th:first-child{grid-column:1;padding-left:8px}
 #items th.quantity{grid-column:2;text-align:right}
 #items th:nth-child(4){display:none}
 #items .product-row{padding:16px 0;border-bottom:1px solid var(--line);row-gap:9px}
 #items .product-row:last-child{border-bottom:0}
 #items td{border:0;padding:0 4px;min-width:0}
 #items .product-name{grid-column:1;grid-row:1;max-width:none;font-size:14px;line-height:1.5;word-break:normal;overflow-wrap:break-word;padding-left:8px}
 #items .product-name small{font-size:11px;line-height:1.6;margin-top:7px}
 #items td.quantity{grid-column:2;grid-row:1 / span 2;align-self:center;font-size:16px;overflow-wrap:anywhere}
 #items td:nth-child(4){grid-column:1;grid-row:2;padding-left:8px}
 #items td:last-child{grid-column:3;grid-row:1 / span 2;align-self:center;padding:0}
 #items .icon-button{min-width:32px;padding:4px;width:32px}
 #items .badge{font-size:10px;padding:5px 8px}
}
