:root{--dept-navy:#16383e;--dept-green:#08766c;--dept-soft:#f0f6f3;--dept-line:#dfe8e3}
body{background:#f5f7f5;font-size:14px}header{height:72px;padding:16px 28px}header strong{letter-spacing:-.8px}#workspace{grid-template-columns:218px minmax(0,1fr);min-height:calc(100vh - 72px)}aside{padding:24px 15px}#content{max-width:none;padding:30px 32px}h1{font-size:30px;letter-spacing:-1px}.nav-section{font-size:10px;color:#829791;text-transform:uppercase;letter-spacing:1.5px;margin:23px 12px 8px}.nav-aux{margin:15px 0}.nav-aux summary{font-size:12px;padding:9px 10px}.nav-aux button{padding:9px 11px}nav button{font-size:12px;padding:11px 12px;border-radius:8px;margin:4px 0}nav button.active{background:#dfeee7;color:#165b4d;box-shadow:inset 3px 0 #16816b}nav .nav-symbol{display:inline-block;width:24px;color:#76948c;font-size:13px}aside>label{padding:0 5px}aside select{font-size:12px}.dept-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.dept-heading h1{margin:7px 0 9px}.dept-heading p{color:#627a75;font-size:13px}.dept-heading>button{flex-shrink:0}.dept-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 26px}.dept-kpi{background:white;color:var(--dept-navy);border:1px solid var(--dept-line);padding:16px 18px;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:12px}.dept-kpi span{font-size:12px;max-width:130px;color:#5a766e}.dept-kpi b{font-size:29px;font-weight:650;letter-spacing:-1px}.dept-kpi.emphasis{background:var(--dept-navy);color:white;border-color:var(--dept-navy)}.dept-kpi.emphasis span{color:#c5dcd4}.dept-controls{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:18px}.dept-controls form{display:flex;align-items:center;gap:8px;flex:1;max-width:520px}.dept-controls input{margin:0;font-size:12px;height:41px}.dept-controls button{font-size:12px;white-space:nowrap}.dept-lead{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:11px}.dept-lead select{font-size:12px;margin:0;padding:9px;width:100px}.dept-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px}.dept-filters button{background:transparent;border:1px solid transparent;color:#657c75;border-radius:20px;font-size:11px;padding:7px 12px}.dept-filters button span{font-weight:750;margin-left:6px;font-size:10px}.dept-filters button.selected{background:#e1eee7;color:#19624f;border-color:#cbded3}.dept-explanation{font-size:11px;color:#697e76;margin:8px 2px 14px;max-width:1100px}.dept-grid{overflow:auto;max-height:calc(100vh - 370px);min-height:235px;border:1px solid var(--dept-line);border-radius:12px;background:white;scrollbar-color:#bed1c6 #f1f5f2}.dept-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px}.dept-table th{position:sticky;top:0;z-index:2;white-space:nowrap;background:#edf3ef;color:#668074;font-size:9px;font-weight:700;text-transform:uppercase;padding:15px 12px;border-bottom:1px solid #d6e3da;letter-spacing:.65px}.dept-table td{padding:12px 11px;vertical-align:middle;border-bottom:1px solid #e9efea;min-width:90px;max-width:290px;overflow-wrap:normal}.dept-table tr:last-child td{border-bottom:0}.dept-table tbody tr:hover td{background:#f7faf7}.dept-table .dept-anchor{position:sticky;left:0;z-index:1;background:white;min-width:205px;width:225px;border-right:1px solid #e5ede7;padding-left:17px}.dept-table th.dept-anchor{z-index:3;background:#edf3ef}.dept-table .dept-anchor:after{content:'';position:absolute;right:-5px;top:0;bottom:0;width:4px;background:linear-gradient(to right,#153f3210,transparent)}.dept-reference{padding:0;background:none;color:#176856;text-align:left;font-size:13px;font-weight:750;letter-spacing:.2px;text-decoration:none}.dept-reference:hover{text-decoration:underline}.dept-client{display:block;color:#344e43;margin-top:3px;font-size:11px;max-width:220px}.dept-project{color:#7a8b82;max-width:200px}.dept-origin{color:#9aa99f;font-size:9px;margin-top:3px}.dept-date{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#405f50}.dept-date.late{color:#a44c3d}.dept-muted{font-size:10px;color:#8c9d93}.dept-stage{font-size:10px;padding:7px 9px;background:#f1f4f1;color:#718677;border-radius:6px;text-align:left;display:flex;align-items:center;gap:7px;min-width:70px;white-space:nowrap;border:1px solid transparent}.dept-stage span{opacity:.45;font-size:10px}.dept-stage:hover{border-color:#a5bdb0;box-shadow:0 2px 5px #163c2b0a}.dept-stage.done,.dept-pill.done{background:#e5f3e9;color:#297649}.dept-stage.todo,.dept-pill.todo{background:#f3f2ee;color:#8b805a}.dept-stage.progress,.dept-pill.progress{background:#e5f0f8;color:#316d93}.dept-stage.na{background:#f4f4f3;color:#929991}.dept-pill{display:inline-block;font-size:10px;line-height:1.4;border-radius:5px;padding:5px 7px;background:#f0f3ef;color:#778778}.dept-pill.missing,.dept-material.missing{background:#fdf0e6;color:#a1612c}.dept-pill.conflict,.dept-material.conflict{background:#fbeeea;color:#a45a50}.dept-materials{display:flex;gap:4px}.dept-material{background:#f1f4f0;color:#71836b;text-align:left;font-size:10px;border-radius:6px;padding:6px 8px;line-height:1.4}.dept-material span{display:block;font-size:10px}.dept-material.ordered,.dept-material.received{background:#e8f2e8;color:#487940}.dept-material:hover{outline:1px solid currentColor}.dept-materials.compact{display:grid;grid-template-columns:repeat(4,25px);gap:3px;min-width:110px}.dept-materials.compact button{width:25px;min-height:38px;text-align:center;padding:4px 0;font-size:9px}.dept-materials.compact button span{font-weight:700}.dept-material.single{min-width:120px;max-width:165px}.dept-material small{font-size:9px;color:inherit;margin-top:4px}.dept-actions button{display:block;white-space:nowrap;font-size:10px;margin:2px 0;padding:6px 9px}.dept-actions .ghost{background:none;color:#346552}.dept-edit-button{background:#edf3ee;color:#426e56}.dept-table.atelier td{min-width:84px}.dept-table.transport td{min-width:100px}.dept-table.transport td:nth-child(6){min-width:240px}.dept-table.achats td{min-width:110px}.dept-table.be td:nth-child(6){min-width:240px}.dept-table.devis td:nth-child(6){min-width:180px}.dept-table details{font-size:10px}.dept-footer{display:flex;justify-content:space-between;align-items:center;margin:13px 0;font-size:11px;color:#7b8b81}.dept-footer button{font-size:11px;padding:7px 12px;margin-left:7px}.dept-empty{padding:70px 25px;text-align:center;color:#819184}.dept-empty b{color:#466452;font-weight:600;font-size:16px}.dept-empty p{font-size:12px}.dept-home{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}.dept-home-card{text-align:left;background:white;color:var(--dept-navy);border:1px solid var(--dept-line);border-radius:14px;padding:25px;transition:transform .15s,border .15s}.dept-home-card:hover{transform:translateY(-2px);border-color:#7fad97}.dept-home-card h2{font-size:19px;margin:13px 0 7px}.dept-home-card p{color:#768a7d;font-size:12px;min-height:40px}.dept-home-number{font:12px ui-monospace,monospace;color:#879b8b}.dept-home-card>div{display:flex;align-items:center;gap:10px;border-top:1px solid #edf1ec;margin-top:24px;padding-top:16px}.dept-home-card b{font-size:28px;font-weight:600}.dept-home-card>div span{font-size:10px;color:#8b9a8f;max-width:110px}.dept-home-card>div span:last-child{margin-left:auto;font-size:18px;color:#397458}.dept-dialog{position:fixed;border:0;border-radius:15px;padding:0;width:min(1240px,94vw);max-height:92vh;color:var(--ink);box-shadow:0 20px 90px #0a251f44}.dept-dialog::backdrop{background:#0b292b66;backdrop-filter:blur(3px)}.dept-dialog-bar{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:#edf4ef;border-bottom:1px solid #dce6dd;position:sticky;top:0;z-index:5}.dept-dialog-bar button{padding:7px 12px;font-size:12px}.dept-dialog-body{padding:20px 26px;overflow:auto}.dept-dialog h2{font-size:22px}.dept-dialog .toolbar{flex-wrap:wrap}.dept-dialog .table-wrap{max-width:100%}#dept-edit{max-width:650px}#dept-edit fieldset{border:0;padding:0;margin:0}#dept-edit input,#dept-edit select,#dept-edit textarea{font-size:13px}#dept-edit .loading{padding:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button:focus-visible,a:focus-visible,dialog:focus-visible{outline:3px solid #d8ae5c;outline-offset:2px}
@media(min-width:1700px){#content{padding:35px 42px}.dept-table.atelier{table-layout:fixed}.dept-table.atelier .dept-anchor{width:230px}.dept-table.atelier th:nth-last-child(3){width:125px}}
@media(max-width:1100px){#workspace{grid-template-columns:185px minmax(0,1fr)}#content{padding:25px 22px}.dept-kpi{padding:13px}.dept-kpi b{font-size:24px}.dept-kpi span{font-size:11px}.dept-home{grid-template-columns:repeat(2,minmax(0,1fr))}.dept-controls{flex-wrap:wrap}}
@media(max-width:650px){#workspace{display:block}#content{padding:22px 14px}aside{padding:12px}.nav-section{display:none}nav{display:flex;gap:4px}.nav-aux{display:none}nav button{min-width:130px}.dept-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dept-kpi b{font-size:23px}.dept-heading{align-items:flex-start}.dept-heading h1{font-size:24px}.dept-heading p{font-size:12px}.dept-heading>button{font-size:10px;padding:8px}.dept-grid{max-height:65vh}.dept-table .dept-anchor{min-width:150px;width:150px}.dept-client{max-width:125px}.dept-home{grid-template-columns:1fr;gap:12px}.dept-home-card{padding:20px}.dept-home-card p{min-height:0}.dept-dialog{width:97vw;max-height:95vh}.dept-dialog-body{padding:16px}.dept-controls form{max-width:100%;min-width:0}.dept-controls input{min-width:0}.dept-footer button{padding:6px 8px}.dept-filters{flex-wrap:nowrap;overflow:auto}.dept-filters button{white-space:nowrap}.dept-home-card>div{margin-top:14px}.aside-footer{margin-top:10px}}
