*{box-sizing:border-box}body{margin:0;background:#f0f4f8;color:#152c42;font:16px/1.5 'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cad5df;background:white;border-radius:9px;padding:9px 14px;color:#17334b}button:hover{background:#eaf1f7}button.primary{background:#174b70;border-color:#174b70;color:white}button.danger{color:#a32132}button.small{padding:5px 10px;font-size:14px}header{padding:19px 28px;display:flex;align-items:center;justify-content:space-between;background:#132b42;color:white;gap:12px}header strong{font-size:23px}header small{display:block;color:#bccfde}.layout{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:calc(100vh - 85px)}aside{padding:24px 18px;border-right:1px solid #d7e0e8;background:white}.side-title{font-size:14px;text-transform:uppercase;letter-spacing:.1em;color:#567084;margin:0 0 12px}.client{width:100%;text-align:left;margin:4px 0;border-color:transparent}.client.active{background:#e2edf6;border-color:#9dbacf}.client small{display:block;color:#516b80}.main{padding:28px;max-width:1350px;width:100%}h1{font-size:30px;line-height:1.2;margin:0 0 8px}h2{font-size:20px;margin:0}h3{font-size:17px;margin:0}.muted{color:#597084}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.card{background:white;border:1px solid #dae3eb;border-radius:14px;padding:22px;margin-bottom:18px}.jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:20px 0}.job{text-align:left;padding:20px;border-radius:12px;border-left:5px solid #df9d2d}.job.active{background:#e6f0f8;border-color:#326f9a}.job small{display:block}.badge{font-size:14px;background:#edf2f6;border-radius:30px;padding:4px 10px;display:inline-block}.tabs{display:flex;gap:6px;margin:20px 0;overflow:auto}.tabs button{white-space:nowrap}.tabs .active{background:#173b59;color:white}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.stat{background:#eaf1f7;border-radius:10px;padding:15px}.stat strong{display:block;font-size:27px}.stat span{font-size:14px}.empty{padding:36px;text-align:center;color:#597084}.task{border-top:1px solid #e1e7ed;padding:20px 0}.task:first-child{border:0}.notes{white-space:pre-wrap;margin:8px 0}.materials{margin-top:14px;background:#f4f7fa;border-radius:10px;padding:14px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;margin-top:15px}th,td{text-align:left;padding:11px 9px;border-bottom:1px solid #dde6ed;vertical-align:top}th{font-size:14px;color:#5a7183}.money{white-space:nowrap;font-variant-numeric:tabular-nums}.private{background:#fff5dc;border:1px solid #ebce89;padding:10px 14px;border-radius:9px;font-size:14px}.chart-row{display:grid;grid-template-columns:100px 1fr 105px;gap:12px;align-items:center;margin:14px 0}.bar-track{background:#edf2f6;border-radius:5px;min-height:22px}.bar{background:#2873a6;border-radius:5px;height:22px}.contact{white-space:pre-wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-size:14px;font-weight:600}input,select,textarea{width:100%;display:block;margin-top:5px;border:1px solid #aebfcd;border-radius:7px;background:white;padding:10px;color:#142f45}input[type=checkbox]{display:inline-block;width:20px;height:20px;margin:0 8px 0 0;vertical-align:middle}textarea{min-height:90px}.wide{grid-column:1/-1}dialog{border:0;border-radius:16px;padding:26px;width:min(620px,94vw);max-height:90vh;box-shadow:0 20px 100px #10243766}dialog::backdrop{background:#122c4877}dialog h2{margin-bottom:20px}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.error{color:#b02030;margin-top:10px;min-height:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#163d58;color:white;padding:12px 22px;border-radius:10px;display:none;z-index:10}.login{max-width:420px;margin:10vh auto}.login label{margin-top:15px}a{color:#1e638f}button:focus-visible,a:focus-visible{outline:3px solid #df9d2d;outline-offset:3px}@media(max-width:760px){header{padding:16px}.layout{display:block}aside{border-right:0;border-bottom:1px solid #d7e0e8;padding:12px}.client{width:auto;min-width:140px;margin-right:5px}aside .clients{display:flex;overflow:auto}.main{padding:16px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}h1{font-size:25px}.card{padding:17px}.chart-row{grid-template-columns:70px 1fr 85px;font-size:14px}}

.demo-banner{background:#fff0c2;color:#4c3908;padding:12px 24px;font-weight:600}.demo-banner a{color:#173b59;text-decoration:underline;margin-left:8px}
 .tools-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:18px 0}.tool-item{display:flex;align-items:center;gap:9px;padding:12px 14px;background:#f4f7fa;border:1px solid #dbe4eb;border-radius:9px;font-weight:500}.tool-item input{width:20px;height:20px;margin:0}.tool-item small{margin-left:auto;color:#2873a6;font-size:13px}
html[data-theme='dark'] body{background:#0d1b29;color:#e8f0f6}html[data-theme='dark'] .card,html[data-theme='dark'] aside,html[data-theme='dark'] input,html[data-theme='dark'] select,html[data-theme='dark'] textarea{background:#14283a;color:#e8f0f6;border-color:#355268}html[data-theme='dark'] .stat,html[data-theme='dark'] .materials,html[data-theme='dark'] .tool-item{background:#1b3449}html[data-theme='dark'] th,html[data-theme='dark'] td{border-color:#355268}html[data-theme='dark'] .muted{color:#abc0cf}.floating-theme{position:fixed;right:18px;bottom:18px;z-index:20;box-shadow:0 4px 18px #0004}.urgent-control{margin:4px 0 12px;color:#9b1e2d;border-color:#d58989}
body{background-image:linear-gradient(#f0f4f8e8,#f0f4f8e8),url('provolt-bg.png');background-size:cover;background-attachment:fixed;background-position:center top}html[data-theme='dark'] body{background-image:linear-gradient(#0d1b29dd,#0d1b29dd),url('provolt-bg.png')}
 .floating-calendar{position:fixed;right:18px;bottom:64px;z-index:20;box-shadow:0 4px 18px #0004}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:18px 0}.calendar-grid label{display:flex;flex-direction:column;align-items:center;padding:8px;background:#edf3f7;border-radius:8px}.calendar-grid input{width:20px;height:20px;margin:0 0 5px}.tools-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:18px 0}.tool-item{display:flex;align-items:center;gap:9px;padding:12px 14px;background:#f4f7fa;border:1px solid #dbe4eb;border-radius:9px;font-weight:500}.tool-item input{width:20px;height:20px;margin:0}


/* Identité Pro Volt : noir, jaune et bleu Miami */
:root{--miami:#00c8df;--yellow:#ffe500}body{color:#171717;background-color:#f5f5f2;background-image:linear-gradient(#f5f5f2ed,#f5f5f2ed),url('provolt-bg.png')}header{background:#050505;border-bottom:4px solid var(--yellow)}header .brand{color:var(--yellow);letter-spacing:.12em;font-size:28px}header .slogan{color:var(--miami);font-weight:600}header small{color:#ddd}.header-actions{justify-content:flex-end}button.primary,.tabs .active{background:var(--yellow);color:#050505;border-color:var(--yellow)}button{color:#111}button:hover{background:#dffaff}.client.active,.job.active{background:#ddfaff;border-color:var(--miami)}.job{border-left-color:var(--yellow)}.bar{background:var(--miami)}a{color:#00899b}.urgent-check{padding:8px 14px;border:1px solid var(--yellow);border-radius:8px;background:#fff8bd}.profile-card{display:flex;align-items:center;gap:15px;flex-wrap:wrap;border-bottom:1px solid #ccc;padding:16px 0}.profile-card p{margin:3px 0}.avatar{width:80px;height:80px;object-fit:cover;border-radius:12px;border:2px solid var(--miami)}.placeholder{display:grid;place-items:center;background:#111;color:var(--yellow);font-size:32px}.owed{color:#008a9b}.floating-theme,.floating-calendar{display:none}html[data-theme='dark'] body{background-color:#000;background-image:linear-gradient(#000e,#000e),url('provolt-bg.png');color:#f5f5f5}html[data-theme='dark'] .card,html[data-theme='dark'] aside,html[data-theme='dark'] dialog,html[data-theme='dark'] input,html[data-theme='dark'] select,html[data-theme='dark'] textarea{background:#111;color:#f5f5f5;border-color:#444}html[data-theme='dark'] button{background:#202020;color:#fff;border-color:#555}html[data-theme='dark'] button.primary,html[data-theme='dark'] .tabs .active{background:var(--yellow);color:#000}html[data-theme='dark'] .stat,html[data-theme='dark'] .materials,html[data-theme='dark'] .tool-item,html[data-theme='dark'] .badge,html[data-theme='dark'] .calendar-grid label{background:#222;color:#eee;border-color:#444}html[data-theme='dark'] .job.active,html[data-theme='dark'] .client.active{background:#00353c;border-color:var(--miami)}html[data-theme='dark'] .muted,html[data-theme='dark'] th,html[data-theme='dark'] .client small{color:#bbb}html[data-theme='dark'] .urgent-check{background:#302c00;color:var(--yellow)}html[data-theme='dark'] .private{background:#302c00;color:#fff5ab;border-color:#807500}html[data-theme='dark'] a{color:var(--miami)}@media(max-width:760px){header{flex-direction:column;align-items:flex-start}.header-actions{justify-content:flex-start}.calendar-grid{gap:4px}}
 .wallet{border-left:5px solid #00c8df}.wallet>strong{display:block;margin-bottom:12px;font-size:21px}.wallet .row{padding:8px 0;border-bottom:1px solid #7774}.profit{display:block;margin-top:10px;padding:7px 10px;border-radius:7px;font-weight:700;font-size:14px}.positive{background:#d5f8df;color:#11642b}.low{background:#ffe2b6;color:#894000}.loss{background:#ffd6d6;color:#9c1717}.neutral{background:#eee;color:#555}header .brand{display:inline-flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.08em;line-height:1.1}header .brand:before{content:'ϟ';display:grid;place-items:center;width:48px;height:48px;font-size:42px;color:#050505;background:#ffe500;clip-path:polygon(15% 0,100% 0,85% 100%,0 100%);border-right:5px solid #00c8df}header .slogan{margin-top:7px;font-size:15px;letter-spacing:.02em}
html body .layout{grid-template-columns:230px minmax(0,1fr) 230px}html body .contractor-sidebar{border-left:1px solid #7774;border-right:0;padding:22px 14px}.contractor-tile{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:20px 0;border-bottom:1px solid #7774}.contractor-photo{width:120px;height:120px;object-fit:cover;border-radius:16px;border:3px solid #00c8df}.contractor-tile .owed{font-size:20px;color:#008897}.problem-photos{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.problem-photos img{width:130px;height:110px;object-fit:cover;border-radius:8px}html[data-theme='dark'] .contractor-tile .owed{color:#00c8df}label[hidden]{display:none!important}@media(max-width:1100px){html body .layout{grid-template-columns:190px minmax(0,1fr)}html body .contractor-sidebar{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:25px}html body .contractor-sidebar h2{width:100%}}@media(max-width:760px){html body .layout{display:block}.contractor-tile{min-width:160px}}
html body .contractor-photo{width:64px;height:64px;border-radius:12px;border-width:2px;cursor:pointer}html body .contractor-tile{padding:12px 0;gap:5px}html body .contractor-tile .owed{font-size:16px}html body .photo-button{font-size:12px;padding:3px 7px}.settings-list{display:flex;flex-direction:column;gap:12px;margin:20px 0}.receipt-preview{display:block;max-width:100%;max-height:380px;object-fit:contain;margin:15px 0}.icon-button{min-width:44px;font-size:20px}.header-actions{gap:8px}html body .contractor-sidebar h2{font-size:18px}.contractor-tile span{font-size:13px}

.app-logo{width:175px;max-width:100%;height:75px;object-fit:contain}.day-colors{display:flex;flex-direction:column;gap:3px;width:100%;margin-top:5px}.day-colors span{display:block;border-radius:4px;padding:3px;color:#000;font-size:11px;font-weight:bold;overflow-wrap:anywhere}.calendar-legend{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.calendar-legend span{padding-left:7px}.calendar-grid label{min-width:0}
