:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f7f6;color:#243f44;--teal:#075b62;--line:#d5e3e1;--muted:#60797c}*{box-sizing:border-box}body{margin:0}header{height:79px;background:white;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between}.brand{color:var(--teal);text-decoration:none;font-weight:850;font-size:25px;letter-spacing:-1px}.brand>span{color:#639c8d}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:3px;color:var(--muted)}main{max-width:1000px;margin:auto;padding:32px 24px 60px}button,input,a.button{font:inherit}button,.button{border:1px solid transparent;border-radius:12px;background:var(--teal);color:white;font-weight:650;min-height:49px;padding:13px 19px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus{outline:3px solid #88bcb1;outline-offset:3px}.secondary{background:white;color:var(--teal);border-color:var(--line)}.text{background:none;color:var(--teal);padding:9px 12px;font-size:13px}.login{max-width:410px;margin:9vh auto 0}.login .card{padding:32px}.eyebrow{color:var(--teal);font-size:11px;font-weight:750;letter-spacing:1.6px}.login h1{font-size:29px;margin:14px 0 9px;letter-spacing:-.6px}p{line-height:1.6}.muted,small{color:var(--muted)}.login p{font-size:14px;color:var(--muted)}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:23px;margin:18px 0}.field{display:grid;gap:9px;margin:24px 0 18px;font-size:14px;font-weight:600}.field input{min-height:54px;width:100%;border:1px solid #b8ccca;border-radius:10px;padding:12px 15px;font-size:22px;letter-spacing:5px;text-align:center;color:var(--teal)}.full{width:100%}.lock{width:54px;height:54px;background:#eaf4f0;border-radius:15px;display:grid;place-items:center;color:var(--teal)}svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.6}.error{background:#fff0ed;color:#a13a2c;padding:12px;border-radius:9px;font-size:14px;margin:12px 0}.test{font-size:11px;color:var(--muted);text-align:center;margin-top:20px}.profiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:25px}.profile{background:white;border:1px solid var(--line);color:var(--teal);padding:23px;display:flex;flex-direction:column;gap:12px}.avatar{width:48px;height:48px;border-radius:50%;background:#e6f1ec;display:grid;place-items:center;font-size:18px;color:#256e63;flex:none}.profile small{font-weight:400;font-size:11px}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:27px}.pagehead h1{font-size:30px;margin:7px 0;letter-spacing:-.6px}.identity{display:flex;gap:13px;align-items:center}.identity strong{display:block;font-size:16px}.identity small{font-size:12px}.datebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}.datebar input{border:1px solid var(--line);border-radius:10px;padding:12px;background:white;font-size:16px;min-width:0;color:var(--teal)}.datebar button{padding:10px 14px;min-width:46px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.section-title h2{font-size:18px;margin:0}.section-title small{font-size:12px}.visit{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:18px;align-items:start}.visit .time{font-size:23px;font-weight:750;letter-spacing:-.7px}.visit .time small{display:block;font-size:11px;letter-spacing:0;font-weight:400;margin-top:5px}.visit h3{font-size:20px;margin:10px 0 6px;overflow-wrap:anywhere}.visit .city{font-size:17px;color:var(--teal);font-weight:650;margin:0 0 5px}.visit .address{font-size:13px;color:var(--muted);margin:0;line-height:1.6}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-block;background:#edf5f1;color:#2c6c5f;padding:5px 8px;border-radius:5px;font-size:11px}.tag.blue{background:#edf3f8;color:#476a87}.tag.gray{background:#f0f3f3;color:#617679}.visit .open{align-self:center}.empty{padding:28px 20px;text-align:center}.empty h2{font-size:19px}.empty p{font-size:14px;color:var(--muted)}.loading{padding:55px 12px;text-align:center;color:var(--muted)}.detail-title h1{margin:8px 0;font-size:29px}.detail-title .city{font-size:18px}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.detail-actions a{flex:1}.request{white-space:pre-wrap;font-size:15px;line-height:1.8;overflow-wrap:anywhere}.documents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.document{display:flex;flex-direction:column;text-decoration:none;color:var(--teal);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f7faf8}.document img{width:100%;height:130px;object-fit:cover}.document .pdf{height:100px;display:grid;place-items:center;background:#e8f1ee;font-weight:750;font-size:23px}.document span:last-child{font-size:12px;padding:12px;overflow-wrap:anywhere}.back{margin-left:-12px;margin-bottom:10px}#message{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#193e42;color:white;border-radius:9px;padding:14px;max-width:90%;font-size:13px}.note{font-size:12px;line-height:1.7;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:650px){header{height:67px;padding:0 18px}.brand{font-size:22px}main{padding:24px 16px 40px}.login{margin:5vh auto 0}.login .card{padding:25px}.profiles{grid-template-columns:1fr 1fr;gap:10px}.profile{padding:18px 9px;font-size:13px}.pagehead{align-items:flex-start}.pagehead h1{font-size:26px}.identity .avatar{width:39px;height:39px;font-size:15px}.identity strong{font-size:14px}.identity small{font-size:10px}.card{padding:19px 16px;border-radius:14px}.visit{grid-template-columns:55px minmax(0,1fr);gap:12px}.visit .time{font-size:21px}.visit h3{font-size:18px}.visit .open{grid-column:2;width:100%;min-height:45px;margin-top:5px}.visit .city{font-size:16px}.datebar{gap:6px}.datebar input{width:152px;font-size:14px}.datebar button{padding:10px;min-width:42px}.datebar .today{font-size:12px}.documents{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-title h1{font-size:25px}.section-title small{font-size:10px}}
.pv-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.pv-page{width:100%;height:auto;margin-top:16px}.pv-layout fieldset{border:1px solid #b8d0d0;border-radius:12px;margin:18px 0;padding:14px}.pv-layout fieldset label{display:flex;align-items:center;gap:12px;min-height:52px}.pv-layout input[type=radio],.pv-layout input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.pv-layout textarea,#pv-report{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid #9ab7bb;border-radius:10px}.pv-confirm{display:flex;align-items:center;gap:12px;margin:20px 0}#pv-sign{width:100%;height:140px;background:white;border:2px dashed #7a9fa3;border-radius:12px;touch-action:none}#pv-result{color:#176341;font-weight:600}@media(max-width:760px){.pv-layout{grid-template-columns:1fr}.pv-document{max-height:440px;overflow:auto}.pv-layout .card{padding:18px}}
.visit-actions{display:flex;flex-direction:column;gap:8px;align-self:center}.visit-actions .open{min-height:48px;text-align:center}.visit-actions .text{font-size:12px}@media(max-width:650px){.visit-actions{grid-column:2}.visit .visit-actions .open{margin:0}}
.profile.universe-profile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;min-height:140px}.universe-profile img{display:block;width:150px;max-width:100%;height:90px;object-fit:contain}.universe-profile span{font-weight:700}@media(max-width:600px){.profile.universe-profile{min-height:116px;padding:12px}.universe-profile img{width:120px;height:70px}}
.portal-nav{display:flex;gap:4px;overflow:auto;margin:-8px 0 24px;padding:4px 0;border-bottom:1px solid var(--line)}.portal-nav button{white-space:nowrap;flex:1;min-width:max-content}.portal-nav [aria-current=page]{background:#e0eee9;color:#075b62}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dashboard-tile{position:relative;display:flex;align-items:flex-start;flex-direction:column;text-align:left;background:white;color:var(--teal);border-color:var(--line);padding:24px;min-height:168px}.tile-number{font-size:30px;font-weight:800;line-height:1.2}.dashboard-tile strong{font-size:18px}.dashboard-tile small{font-weight:400}.tile-arrow{position:absolute;right:20px;top:22px;font-size:22px}.day-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0 28px}.day-strip button{flex-direction:column;gap:4px;padding:12px 8px}.day-strip span{font-size:12px;text-transform:uppercase;font-weight:500}.day-strip strong{font-size:20px}.day-strip [aria-pressed=true]{background:var(--teal);color:white;border-color:var(--teal)}.tour-stop{display:grid;grid-template-columns:65px minmax(0,1fr);gap:16px;margin:18px 0;position:relative}.tour-time{padding-top:18px;display:flex;flex-direction:column;gap:8px;align-items:center}.tour-time strong{font-size:19px}.tour-time small{font-size:12px}.tour-card{margin:0;padding:20px}.tour-card h3{font-size:19px;margin:14px 0 8px;overflow-wrap:anywhere;white-space:pre-line}.tour-client{margin:0 0 12px}.tour-address,.tour-team{font-size:14px;color:var(--muted);margin:10px 0}.tour-phone{font-size:14px;color:var(--teal);text-decoration:none}.tour-state{font-size:11px;margin-left:auto;color:var(--muted);padding-top:5px}.type-tag{font-weight:750;background:#dceee8;color:#075b62}.tour-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.tour-actions button,.tour-actions .button{font-size:13px;min-height:44px;padding:10px 12px;flex:1;white-space:nowrap}.task-card h2,.dossier-card h2{font-size:20px}.task-card>button{display:flex;margin-top:16px}.dossier-card{display:flex;justify-content:space-between;align-items:center;gap:15px}.dossier-card p{font-size:14px;margin:6px 0}#dossier-search{display:block;width:100%;font:inherit;padding:14px;border:1px solid #a8c5c2;border-radius:10px;background:white;color:inherit;margin:10px 0 20px}.search-label{font-size:14px}#reply-text{display:block;width:100%;font:inherit;padding:12px;border:1px solid #a8c5c2;border-radius:10px;margin-top:12px;resize:vertical}.task-card .request{max-height:150px;overflow:auto}@media(max-width:650px){.dashboard-grid{gap:10px}.dashboard-tile{padding:16px;min-height:160px}.dashboard-tile strong{font-size:15px}.dashboard-tile small{font-size:11px}.tile-number{font-size:26px}.tile-arrow{right:12px;top:16px}.tour-stop{grid-template-columns:46px minmax(0,1fr);gap:8px}.tour-time strong{font-size:15px}.tour-time small{font-size:10px}.tour-card{padding:14px 12px}.tour-card h3{font-size:17px}.tour-address,.tour-team,.tour-client{font-size:12px}.tour-actions{gap:6px}.tour-actions button,.tour-actions .button{font-size:11px;padding:10px 8px}.portal-nav .text{padding:9px 8px;font-size:12px}.dossier-card{display:block}.dossier-card button{width:100%;margin-top:12px}.day-strip{gap:6px}.day-strip strong{font-size:19px}}
@media(max-width:650px){.portal-nav{gap:0}.portal-nav .text{min-width:0;padding:10px 6px;font-size:11px}.datebar{display:grid;grid-template-columns:32px minmax(104px,1fr) 32px auto 28px;gap:4px}.datebar input{width:100%;padding:10px 5px;font-size:12px}.datebar button{min-width:0;padding:10px 5px}.datebar .today{font-size:11px}.day-strip{margin-top:16px}.tile-number{max-width:100%;overflow-wrap:anywhere}}

.planning-panel{max-width:520px;margin:0 auto;border:1px solid #cedfdb;border-radius:24px;background:#f6faf8;overflow:hidden}.planning-heading{padding:22px 22px 16px;background:#e8f1ee;border-bottom:1px solid #d5e3de}.planning-title{display:flex;align-items:center;justify-content:space-between}.planning-title h1{font-size:23px;font-weight:600;margin:10px 0 4px;letter-spacing:-.4px}.planning-heading>p{font-size:12px;color:var(--muted);margin:0 0 12px}.planning-date-actions{display:flex;justify-content:space-between;align-items:center;gap:6px}.planning-date-actions .text{font-size:11px;min-height:32px;padding:4px 7px}.planning-pick-date{position:relative;font-size:11px;color:var(--teal);cursor:pointer;overflow:hidden}.planning-pick-date input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.planning-panel .day-strip{margin:8px 0 0;gap:7px}.planning-panel .day-strip button{min-height:52px;border:0;border-radius:10px;background:#dbe8e3;padding:8px 5px}.planning-panel .day-strip [aria-pressed=true]{background:var(--teal);color:white}.planning-panel .day-strip span{font-size:10px}.planning-panel .day-strip strong{font-size:17px;font-weight:500}.planning-body{padding:18px 18px 22px}.tour-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin:0 0 14px}.tour-section-title small{font-size:10px}.planning-panel .tour-stop{grid-template-columns:43px minmax(0,1fr);gap:12px;margin:0 0 12px}.planning-panel .tour-time{padding-top:12px;gap:5px}.planning-panel .tour-time strong{font-size:13px;font-weight:500}.planning-panel .tour-time small{font-size:10px}.planning-panel .tour-card{padding:13px;border-radius:15px;background:#fff}.planning-panel .tour-card h3{font-size:15px;font-weight:600;line-height:1.4;margin:10px 0 4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.planning-panel .tour-client{font-size:12px;margin:0 0 12px;line-height:1.4}.planning-panel .tag{font-size:9px;padding:5px 6px}.planning-panel .tour-state{font-size:9px}.planning-panel .tour-address,.planning-panel .tour-team{font-size:11px;line-height:1.4;margin:10px 0}.planning-panel .tour-phone{font-size:11px}.planning-panel .tour-card>small{font-size:10px}.planning-panel .tour-actions{margin-top:10px;padding-top:10px;gap:6px}.planning-panel .tour-actions button,.planning-panel .tour-actions .button{min-height:36px;font-size:10px;flex:0 1 auto;padding:8px 10px}.planning-panel [data-visit]{background:var(--teal);color:white;border-color:var(--teal)}@media(max-width:560px){.planning-panel{border-radius:18px}.planning-heading{padding:16px 14px 12px}.planning-body{padding:16px 10px}.planning-panel .tour-stop{gap:7px;grid-template-columns:39px minmax(0,1fr)}.planning-panel .tour-card{padding:11px}.planning-panel .tour-actions button,.planning-panel .tour-actions .button{font-size:10px;padding:8px 7px}}

.portal-nav .text{display:flex;align-items:center;justify-content:center;gap:7px;position:relative;padding:13px 14px}.portal-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nav-count{display:grid;place-items:center;min-width:18px;height:18px;border-radius:10px;padding:0 4px;font-size:10px;font-weight:700;color:#fff;background:#2a8173;line-height:1}.day-summary{display:flex;gap:22px;padding:30px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0;align-items:flex-start}.day-summary-icon{width:60px;height:60px;display:grid;place-items:center;background:#e4f0eb;border-radius:18px;color:#26786d;flex:none}.day-summary-icon svg{width:34px;height:34px}.day-summary h2{font-size:23px;margin:0 0 16px;font-weight:600}.day-summary p{margin:12px 0;font-size:16px}.day-team{display:flex;gap:10px;align-items:center}.day-team svg{width:19px;height:19px;color:#397c73}.day-summary #day-progress{font-size:13px}@media(max-width:650px){.portal-nav .text{flex-direction:column;gap:5px;font-size:10px;padding:10px 6px}.nav-count{position:absolute;top:4px;right:5px;font-size:9px;min-width:15px;height:15px}.portal-icon{width:19px;height:19px}.day-summary{gap:14px;padding:24px 0}.day-summary-icon{width:44px;height:44px;border-radius:13px}.day-summary-icon svg{width:26px;height:26px}.day-summary h2{font-size:20px}.day-summary p{font-size:14px}}

/* Technician mobile shell: shared by all portal routes. */
:root{color-scheme:dark;background:#0b171b;color:#e5eeed;--teal:#8ad0ca;--line:#3c5558;--muted:#b2c6c5}body{max-width:460px;min-height:100dvh;margin:0 auto;background:#102126;border-inline:1px solid #30494b}body>header{height:62px;padding:0 18px;background:#203e3e;border-color:#345251}.brand{font-size:19px;color:#e5eeed}.brand>span{color:#91c9bf}.brand small{font-size:8px;letter-spacing:1.5px}.signed-in>header{height:44px;background:#203e3e}.signed-in>header .brand{font-size:12px;letter-spacing:1px}.signed-in>header .brand small{display:none}#logout{font-size:11px;min-height:44px;padding:8px}main{padding:18px 12px calc(100px + env(safe-area-inset-bottom));width:100%;min-width:0}button,.button{background:#348e90;color:#fff;border-radius:9px;min-height:44px;font-size:13px;padding:11px 13px}.secondary{background:#273f43;color:#e0eeec;border-color:var(--line)}.text{background:transparent;color:#aad9d2}.card{background:#1d3338;border-color:var(--line);border-radius:13px;padding:16px;margin:14px 0}.eyebrow{color:#aedcd5;font-size:9px;letter-spacing:1.6px}.avatar,.lock{background:#365b58;color:#bde4dc}.profile{background:#1d3338;color:#e5eeed;border-color:var(--line)}.profiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field input,#dossier-search,#reply-text{background:#fff;color:#163b50;border-color:#c6d7e8}.pagehead{margin:5px 0 18px;gap:10px}.pagehead h1,.detail-title h1{font-size:24px}.pagehead .text{font-size:11px;padding:8px}.tag,.tag.gray,.tag.blue,.type-tag{background:#2b4b4d;color:#c2dfdb;font-size:9px;font-weight:500}.request{font-size:14px}.document,.document .pdf{background:#284044;color:#e5eeed}.error{background:#532d2b;color:#ffdad0}.dossier-card{display:block}.dossier-card button{width:100%;margin-top:10px}.task-card h2,.dossier-card h2{font-size:18px}.login{margin:3vh auto}.login .card{padding:24px 18px}.login h1{font-size:25px}
.portal-nav{position:fixed;z-index:50;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,460px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:7px 7px calc(7px + env(safe-area-inset-bottom));gap:2px;overflow:visible;background:#1b3337;border:1px solid #3c5558;border-bottom:0;box-shadow:0 -8px 24px #07151944}.portal-nav .text{min-width:0;min-height:57px;padding:7px 2px;display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:500;color:#abc0be;border-radius:10px}.portal-nav [aria-current=page]{background:#294b4a;color:#b7eee3}.portal-nav .portal-icon{width:20px;height:20px}.nav-count{position:absolute;top:2px;right:9px;min-width:15px;height:15px;font-size:9px;border:1px solid #1b3337;color:#102126;background:#a2d6cb}#message{bottom:calc(86px + env(safe-area-inset-bottom));z-index:60}.home-welcome{background:#203e3e;margin:-18px -12px 15px;padding:5px 18px 20px}.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.welcome-top .avatar{width:32px;height:32px;min-height:44px;min-width:44px;font-size:12px;padding:0}.home-welcome h1{font-size:26px;letter-spacing:-.9px;margin:19px 0 5px}.home-welcome>p{font-size:11px;margin:0;color:#c3d8d4}.next-card{padding:16px;margin-top:0}.next-time{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 9px}.next-time strong{font-size:21px;font-weight:650;letter-spacing:-.5px}.next-time>span{font-size:11px;color:var(--muted)}.next-card h2{font-size:15px;line-height:1.4;margin:13px 0 5px;overflow-wrap:anywhere}.next-client{font-size:12px;margin:0;color:#cbd9d7}.next-info{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.next-info p{font-size:11px;line-height:1.5;margin:5px 0;color:#c2d3d1;overflow-wrap:anywhere}.next-info .portal-icon{width:15px;height:15px;vertical-align:middle;margin-right:6px}.next-info a{color:#bee3dc;text-decoration:none}.next-actions{display:flex;gap:7px;margin-top:14px}.next-actions>*{flex:1;font-size:11px;min-height:44px;padding:10px 7px}.day-summary{background:#1d3338;border:1px solid var(--line);border-radius:13px;padding:16px;gap:12px;margin:14px 0}.day-summary-icon{background:#2b4b4b;width:32px;height:32px;border-radius:9px;color:#9ed3c9}.day-summary-icon svg{width:20px;height:20px}.day-summary h2{font-size:14px;margin:0 0 8px}.day-summary p{font-size:12px;margin:7px 0}.day-summary #day-progress{font-size:11px}.day-team svg{display:none}.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.home-shortcuts button{font-size:11px;font-weight:400;justify-content:flex-start;padding:12px 9px}.home-shortcuts strong{font-size:15px;color:#b7e2d7;margin-right:3px}.home-shortcuts .portal-icon{width:17px;height:17px}
.planning-panel{max-width:none;border:0;border-radius:0;background:transparent;margin:-18px -12px 0}.planning-heading{background:#203e3e;border-color:#345251;padding:18px 16px 14px}.planning-body{padding:16px 12px}.planning-panel .day-strip button{background:#2b4548;color:#c6d9d6;min-height:55px}.planning-panel .day-strip [aria-pressed=true]{background:#348e90;color:white}.planning-panel .tour-card{background:#1d3338;border-color:#3c5558}.planning-panel .tour-stop{grid-template-columns:39px minmax(0,1fr);gap:8px}.planning-panel [data-visit]{background:#348e90;border-color:#348e90;color:white}.planning-panel .tour-actions button,.planning-panel .tour-actions .button{min-height:44px}.planning-panel .tour-phone{color:#b7e2d7}.planning-date-actions .text{min-height:44px}.planning-pick-date{min-height:44px;display:flex;align-items:center}.tour-team,.tour-address{color:#b8ccca}.tour-card .tour-client{color:#e0e9e6}.tour-time strong{color:#e0e9e6}button:focus-visible,a:focus-visible{outline:2px solid #b9ede2;outline-offset:3px}@media(min-width:600px){body{margin:24px auto;min-height:calc(100dvh - 48px);border:1px solid #30494b;border-radius:24px}body>header{border-radius:24px 24px 0 0}.portal-nav{bottom:16px;border:1px solid #3c5558;border-radius:0 0 22px 22px}}@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s ease}}@media(max-width:360px){.next-time strong{font-size:18px}.home-shortcuts button{font-size:10px;gap:4px}.nav-count{right:4px}}
/* Timed Apogée tasks sit between visits in a compact, distinct card. */
.planning-panel .task-stop{margin-bottom:12px}.planning-task{display:flex;align-items:center;gap:10px;width:100%;min-width:0;text-align:left;justify-content:flex-start;padding:11px 12px;background:#263e40;border:1px solid #527370;border-left:3px solid #9ac9ba;border-radius:11px;color:#e5eeed}.planning-task>span{display:grid;gap:4px;min-width:0}.planning-task small{font-size:9px;letter-spacing:.7px;color:#a8d7cc}.planning-task strong{font-size:13px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.planning-task>span>span{font-size:10px;font-weight:400;color:#b4ccca}.planning-task .portal-icon{width:18px;height:18px;color:#a8d7cc}
.apogee-picto{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;border-radius:5px;font-size:15px;font-style:normal;font-weight:normal;line-height:1}.universe-tag{display:inline-flex;gap:5px;align-items:center}.material-badge{min-height:30px;padding:4px 8px!important;border:1px solid #79aaa0!important;font-size:11px!important;flex:none!important}.compact-dossier.card{display:block;padding:12px;margin:10px 0}.compact-dossier .dossier-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.compact-dossier h2{font-size:15px;margin:0;line-height:1.25}.dossier-heading>span{font-size:11px;color:#adc8c3;flex:none;max-width:40%}.compact-dossier .tags{gap:5px;margin:8px 0 5px}.compact-dossier .tag{font-size:10px;padding:3px 6px}.compact-dossier .dossier-address{font-size:11px;margin:4px 0;color:#b8ccca;line-height:1.4}.dossier-appointment{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;font-size:12px}.compact-dossier .dossier-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.compact-dossier .dossier-footer button{width:auto;margin:0;min-height:36px;font-size:12px;padding:4px 8px}.compact-dossier small{font-size:10px}.dossier-instructions,.tour-instructions{font-size:11px!important;padding:6px 8px;background:#3b4033;color:#f1deb1;border-radius:6px;line-height:1.4!important;white-space:pre-wrap}.materials-dialog{width:min(94vw,520px);max-height:85dvh;padding:0;border:1px solid #52736d;border-radius:16px;background:#183035;color:#e5eeed}.materials-dialog::backdrop{background:#0009}.materials-dialog>header{height:auto;padding:12px;gap:12px;background:#203e3e;position:sticky;top:0}.materials-dialog h2{font-size:18px;margin:0}.materials-dialog header button{min-height:40px;padding:6px 10px;font-size:12px}.materials-body{padding:12px}.materials-body h3{font-size:14px}.materials-body ul{padding-left:18px}.materials-body li{margin:10px 0;font-size:13px}.materials-body li span{display:block;font-size:12px;color:#b8ccca}
.profiles:has(.universe-profile){grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.profile.universe-profile{padding:7px 3px;min-height:86px;gap:5px}.universe-profile img{width:62px;height:50px}.universe-profile span{font-size:10px;line-height:1.2;overflow-wrap:anywhere}
.compact-dossier .material-badge{width:auto;margin:0;display:inline-flex}.compact-dossier .dossier-appointment{flex-wrap:wrap}
/* Align appointment badges, with or without an icon or button. */
.tags{align-items:center}
.tags>.tag,.dossier-appointment>.tag{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;line-height:1.2;box-sizing:border-box;margin-block:0}
.tags>.material-badge,.dossier-appointment>.material-badge{font-size:inherit!important}
.tags>.material-badge{font-size:9px!important}
.compact-dossier .tags>.material-badge{font-size:10px!important}
.tags .apogee-picto{width:18px;height:18px;font-size:13px}

.tags>.universe-icon,.compact-dossier .tags>.universe-icon,.planning-panel .tags>.universe-icon{padding:0;background:transparent;width:30px;height:30px;min-height:30px;flex:none;border-radius:50%}.universe-icon img{display:block;width:30px;height:30px;object-fit:contain}

.tags>.intervention-icon,.dossier-appointment>.intervention-icon,.compact-dossier .tags>.intervention-icon,.planning-panel .tags>.intervention-icon{width:30px;height:30px;min-height:30px;padding:4px;flex:none;border-radius:50%;background:var(--icon-color);color:#fff;border:1px solid #ffffffb3}.intervention-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.tags>.material-badge,.compact-dossier .material-badge,.dossier-appointment>.material-badge{width:30px;height:30px;min-height:30px;padding:3px!important;border-radius:50%;background:#ac7b47;border-color:#e8c8a4!important;color:#fff}.material-badge svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}

.material-slash{display:none}.material-empty .material-slash{display:block;stroke:#fff;stroke-width:2.5;filter:drop-shadow(0 1px 0 #596467)}.tags>.material-empty,.compact-dossier .material-empty,.dossier-appointment>.material-empty{background:#596467;border-color:#a9b5b5!important}[data-material-state="loading"]{opacity:.6}

.quote-dialog{width:min(96vw,760px)}.quote-sheet{margin-bottom:24px}.quote-sheet table{width:100%;border-collapse:collapse;font-size:12px}.quote-sheet th,.quote-sheet td{padding:9px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.quote-sheet th:first-child{width:75%}.quote-sheet .request{font-size:12px;line-height:1.5;margin-top:5px}.quote-sheet td:first-child{overflow-wrap:anywhere}

.planning-pick-date input{pointer-events:none;width:1px;height:1px;inset:auto;bottom:0;left:0}.planning-pick-date.date-fallback{flex-direction:column;overflow:visible}.planning-pick-date.date-fallback input{position:static;opacity:1;pointer-events:auto;width:140px;height:36px;background:#203e3e;color:#163b50;border:1px solid var(--line);border-radius:6px}.planning-pick-date.date-fallback #choose-day{display:none}

.address-link,.client-phone{color:#b7e2d7;text-decoration:underline;text-underline-offset:3px}.client-phone{display:block;font-size:12px;line-height:1.6;margin:5px 0}.address-link:focus-visible,.client-phone:focus-visible{outline:2px solid #b9ede2;outline-offset:3px}

.portal-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.stats-heading h2,#home-stats h2{font-size:15px;margin:0}.stats-heading button{font-size:11px;padding:5px}.stats-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.stats-kpis>div{display:flex;flex-direction:column;gap:5px;background:#284346;border-radius:9px;padding:12px 8px}.stats-kpis strong{font-size:21px;color:#b7e2d7}.stats-kpis span{font-size:10px}.stats-period{display:flex;gap:6px}.stats-period button{flex:1;font-size:12px}.stats-period [aria-pressed=true]{background:#348e90}.stats-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0;font-size:13px}#stats-content h2{font-size:16px}#stats-content .stats-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}

.card-copy{margin:10px 0 6px}.card-copy .card-copy-text{font-size:12px;font-weight:500;line-height:1.5;white-space:pre-line;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-copy.expanded .card-copy-text{display:block;-webkit-line-clamp:unset}.card-copy .card-copy-more{min-height:28px;padding:2px 6px;font-size:12px}

.stats-ca{display:flex;flex-direction:column;gap:5px;margin:12px 0}.stats-ca>span{font-size:12px;color:#c2d7d4}.stats-ca>strong{font-size:27px;color:#b7e2d7}.stats-ca>small{font-size:10px}.stats-leaders p{display:flex;flex-direction:column;gap:3px;margin:9px 0;font-size:12px}.stats-leaders span{font-size:10px;color:var(--muted)}

/* Personal statistics: compact charts and provider identities. */
.stats-pie-layout{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:16px 0}.stats-pie{width:150px;height:150px;flex-shrink:0}.stats-legend{flex:1;min-width:160px;font-size:12px}.stats-legend>div{display:flex;align-items:center;gap:7px;margin:9px 0}.stats-legend strong{margin-left:auto;white-space:nowrap}.stats-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.stats-bars{display:grid;gap:16px}.stats-bar-label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:6px}.stats-bar-track{height:16px;background:#ffffff0b;border-radius:4px;overflow:hidden}.stats-bar-track>div{height:100%;border-radius:4px}.stats-provider{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #ffffff16;font-size:13px}.stats-provider:last-child{border:0}.stats-provider img{object-fit:contain;background:white;border-radius:6px;padding:4px;flex-shrink:0}.stats-provider strong{margin-left:auto;white-space:nowrap}.stats-provider-placeholder{width:80px;text-align:center;color:var(--muted);flex-shrink:0}

svg.stats-bar-track{display:block;width:100%;height:18px}.stats-measure{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin:14px 0;font-size:13px}.stats-measure input{width:20px;height:20px;accent-color:#65bcb5}

fieldset.stats-measure{border:0;padding:0;gap:0}fieldset.stats-measure label{position:relative;cursor:pointer}fieldset.stats-measure input{position:absolute;opacity:0;width:1px;height:1px}fieldset.stats-measure span{display:block;padding:10px 22px;border:1px solid var(--line);background:#1b3438}fieldset.stats-measure label:first-of-type span{border-radius:9px 0 0 9px}fieldset.stats-measure label:last-of-type span{border-radius:0 9px 9px 0}fieldset.stats-measure input:checked+span{background:#348e90;color:white}fieldset.stats-measure input:focus-visible+span{outline:2px solid #b7e2d7;outline-offset:3px}.stats-measure legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.stats-provider strong small{display:block;font-weight:400;font-size:11px;margin-top:4px;color:var(--muted)}

.stats-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.stats-topline .stats-ca{min-width:0}.stats-topline .stats-ca>span{font-size:11px}.stats-topline fieldset.stats-measure{margin:0;flex-shrink:0}.stats-topline fieldset.stats-measure span{padding:8px 10px;font-size:12px}

/* A bounded app frame: only the page scrolls; navigation is a separate bottom row. */
html{height:100%;overflow:hidden}body{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}body>header{flex-shrink:0}main#app{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;margin:0;overflow:hidden}.portal-page{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:18px 12px 20px;scroll-padding-bottom:16px;-webkit-overflow-scrolling:touch}#app>.portal-nav{position:static;transform:none;left:auto;bottom:auto;width:100%;flex-shrink:0;border-radius:0;box-shadow:none;margin:0}#app>.portal-nav:last-child{border-bottom:0}@media(min-width:600px){body{height:calc(100dvh - 48px);min-height:0}#app>.portal-nav{border-radius:0 0 22px 22px}}

.material-supply-photo{display:block;max-width:100%;max-height:260px;object-fit:contain}

/* Apogée glyph styling in the stylesheet: allowed by the portal CSP. */
[data-picto-kind="univers"][data-picto-key="ame_logement"]{color:#2B15E0;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="menuiserie"]{color:#FF7018;background:#FFF;font-family:apogee-sharp-regular-400}
[data-picto-kind="univers"][data-picto-key="plomberie"]{color:#3BA6FF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="renovation"]{color:#A38D77;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="serrurerie"]{color:#FF12BD;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="vitrerie"]{color:#7FFE2E;background:#FFF;font-family:apogee-regular-400}
[data-picto-kind="univers"][data-picto-key="volets"]{color:#9817F0;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="electricite"]{color:#FD9A2C;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="CAPBRETON"]{color:#FFC107;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="DAX"]{color:#24BE36;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="EN ATTENTE"]{color:#FFF;background:#007BFF;font-family:apogee-sharp-regular-400}
[data-picto-kind="pictoInterv"][data-picto-key="GESTION DE CLES"]{color:#ED0404;background:#FF0;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="HAGETMAU"]{color:#F230DA;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="MIMIZAN"]{color:#FF0;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="MONT DE MARSAN"]{color:#007BFF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="NRP"]{color:#000;background:#0F0;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="PAYS BASQUE"]{color:#DB1515;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="PEYREHORADE"]{color:#6C757D;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="POINT CLIENT"]{color:#E3342F;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="PROSPECTION"]{color:#007BFF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="SAV"]{color:#F90700;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="SELON M\u00c9T\u00c9O"]{color:#007BFF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="TEL AVANT D ARRIVER"]{color:#FF0;background:#067EE9;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="TH"]{color:#007BFF;background:#D7D9DA;font-family:apogee-sharp-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="URGENT"]{color:#ED1302;background:#FFF;font-family:apogee-solid-900}

.provider-badge{width:64px;height:30px;object-fit:contain;background:white;border-radius:5px;padding:3px}

/* Home: an overview of the next visit and work waiting for the technician. */
.home-dashboard{display:grid;gap:12px}.home-dashboard .card{margin:0;padding:12px;border-radius:14px}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-heading h1{font-size:23px;margin:0}.home-heading p{font-size:12px;margin:4px 0 0;color:var(--muted)}.home-heading .avatar{width:36px;height:36px;min-height:36px;font-size:14px;padding:0}.home-dashboard .home-day{display:flex;align-items:center;gap:8px;text-align:left;margin:0;padding:8px 10px;background:#ffffff08;border-radius:9px;font-size:12px;min-height:36px}.home-day svg{width:18px;height:18px;flex-shrink:0}.home-day>span:last-child{margin-left:auto}.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-section-head h2{font-size:14px;margin:0}.home-section-head>span{font-size:11px;color:var(--muted);white-space:nowrap}.home-section-head .text{font-size:11px;padding:4px 0;min-height:32px;white-space:nowrap}.home-section-head h2 small{font-size:11px;font-weight:500;color:var(--muted);margin-left:4px}.home-visit-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}.home-visit-title>strong{font-size:14px;overflow-wrap:anywhere}.home-visit-title .tags{margin:0;gap:4px;flex-shrink:0}.home-dashboard .next-card .tags img,.home-dashboard .next-card .tags .type-icon,.home-dashboard .next-card .tags .material-icon{width:26px;height:26px}.home-dashboard .next-card .card-copy{margin:6px 0}.home-dashboard .next-card .card-copy-text{-webkit-line-clamp:2;font-size:12px;line-height:1.4}.home-dashboard .next-card .card-copy.expanded .card-copy-text{-webkit-line-clamp:unset}.home-visit-contact{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px;line-height:1.4}.home-visit-contact>a:first-child{flex-basis:100%;overflow-wrap:anywhere}.home-visit-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;font-size:11px;color:var(--muted)}.home-visit-footer>div{display:flex;gap:8px;align-items:center}.home-visit-footer button{font-size:12px;min-height:32px;padding:4px 7px}.home-visit-footer svg{width:18px;height:18px}.home-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;min-height:48px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left;color:inherit;text-decoration:none}.home-row>span:first-child{min-width:0}.home-row strong{display:block;font-size:12px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.home-row small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}.home-row:hover{background:#ffffff07}.home-work .note{margin:8px 0 2px;font-size:12px}.home-row:focus-visible{outline:2px solid #b7e2d7;outline-offset:2px}@media(max-height:780px){#home-tasks .home-row:nth-child(3){display:none}.home-dashboard{gap:9px}.home-dashboard .card{padding:10px}}
.bi-time{border-top:1px solid var(--line);padding:10px 0}.bi-time>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bi-time input{min-width:0;width:100%}.bi-person{display:flex;align-items:center;gap:8px}.bi-person input,.bi-choices input{width:18px;height:18px;flex:none}.bi-choices{display:grid;gap:8px}.bi-choices label{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px;margin:0}.bi-history{padding:10px 0;border-top:1px solid var(--line);font-size:12px}.bi-history p{white-space:pre-line;margin:5px 0}.bi-history small{color:var(--muted)}#bi-form fieldset{border:0;padding:0;margin:0;min-width:0}#bi-form label{font-size:12px}#bi-form select{width:100%;min-height:42px}#bi-form [hidden]{display:none!important}
#bi-form fieldset>label{display:block;margin:16px 0;font-weight:600}#bi-form textarea,#bi-form select,#bi-form input:not([type=checkbox]):not([type=radio]){display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:7px;padding:10px 8px;min-height:44px;font:inherit;background:#fff;color:#163b50;border:1px solid #c6d7e8;border-radius:8px}#bi-form textarea{resize:vertical;line-height:1.5}#bi-form .bi-time>div{margin-top:8px}#bi-form .bi-person{min-height:36px;font-weight:600}#bi-form input[type=checkbox],#bi-form input[type=radio]{accent-color:#348e90}#bi-form :disabled{opacity:.65}#bi-form h2{font-size:20px;margin:22px 0 10px}#bi-form input:focus-visible,#bi-form textarea:focus-visible,#bi-form select:focus-visible{outline:2px solid #aad9d2;outline-offset:2px}
.bi-history [data-sign-bi]{display:block;margin:10px 0}.bi-pdf{width:100%;height:380px;display:block;margin:14px 0;background:white;border:1px solid var(--line);border-radius:8px}#bi-sign-form fieldset{border:0;padding:0;margin:0;min-width:0}#bi-sign-form label{display:block;margin:14px 0;font-size:13px}#bi-sign-form input:not([type=checkbox]),#bi-sign-form textarea,#bi-sign-form select{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:10px;min-height:44px;font:inherit;background:#fff;color:#163b50;border:1px solid #c6d7e8;border-radius:8px}#bi-sign-canvas{display:block;margin-top:8px;background:#fff;width:100%;height:150px;border:2px dashed #7a9fa3;border-radius:8px;touch-action:none}#bi-sign-form label.bi-sign-confirm{display:flex;gap:10px;align-items:flex-start;margin:20px 0}#sign-confirm{width:22px;height:22px;flex:none}#bi-sign-form p{font-size:13px;line-height:1.6}#sign-result{white-space:pre-line}
.intervention-consultation{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.card-section-label{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px}.address-link,.client-phone{display:inline-flex;align-items:center;gap:7px}.address-link .portal-icon,.client-phone .portal-icon{width:17px;height:17px;flex:none}.consultation-buttons{display:flex;gap:6px;margin:12px 0;flex-wrap:wrap}.planning-panel .consultation-buttons button{display:inline-flex;align-items:center;gap:5px;flex:1;justify-content:center;background:transparent;color:#bad6d3;border:1px solid var(--line);font-size:11px;min-height:40px;padding:8px 6px}.consultation-buttons .portal-icon{width:17px;height:17px}.intervention-actions{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.intervention-main-actions{display:flex;gap:8px}.planning-panel .intervention-primary{display:flex;gap:10px;align-items:center;justify-content:center;flex:1;min-width:0;min-height:60px;padding:10px;background:#348e90;color:white}.intervention-primary strong,.intervention-primary small{display:block;text-align:left}.intervention-primary small{font-size:10px;font-weight:400;margin-top:4px}.intervention-primary .portal-icon{width:24px;height:24px;flex:none}.planning-panel .intervention-unavailable{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:transparent;color:#e9b7aa;border:0;font-size:11px;margin-top:8px;min-height:38px}.intervention-unavailable .portal-icon{width:17px;height:17px}#unavailable-form fieldset{border:0;padding:0;margin:0;min-width:0}#unavailable-form label{display:block;font-size:13px;margin:14px 0}#unavailable-form label.unable-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:12px;min-height:44px}#unavailable-form textarea,#unavailable-form select{width:100%;display:block;box-sizing:border-box;background:#fff;color:#163b50;border:1px solid #c6d7e8;border-radius:8px;font:inherit;padding:10px;margin-top:8px;min-height:44px}#unavailable-form input[type=radio]{width:20px;height:20px;accent-color:#348e90;flex:none}

.environment-warning{flex-shrink:0;padding:9px 14px;background:#514126;color:#fff0c8;font-size:12px;line-height:1.4;border-bottom:1px solid #94773f}.rt-only .portal-nav{grid-template-columns:repeat(4,1fr)}

/* Operia Suivi V2 — navy hero, cyan accents, white working cards. */
:root{color-scheme:light;--teal:#075985;--line:#dce7ef;--muted:#64748b;background:#eaf1f6;color:#0c4a6e}
body{background:#f8fafc;color:#0f172a;border-color:#dce7ef;box-shadow:0 20px 70px #082f4920}
body>header{background:#fff;border-color:#e2e8f0;height:66px}.brand{color:#082f49}.brand>span{color:#0891b2}.brand small{color:#64748b}
button,.button{background:#075985;color:#fff;border-color:#075985;border-radius:14px}button:hover,.button:hover{background:#0369a1}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #22d3ee;outline-offset:3px}
button.text,.text,.secondary{background:transparent;color:#075985;border-color:#dce7ef}.text:hover,.secondary:hover{background:#e0f2fe}.card,.profile{background:#fff;border-color:#e2e8f0;color:#0f172a;border-radius:24px;box-shadow:0 3px 12px #0c4a6e06}
h1,h2,h3,.tour-card .tour-client,.tour-time strong{color:#082f49}small,.muted,.note,.tour-team,.tour-address,.dossier-heading>span,.compact-dossier .dossier-address{color:#64748b}.eyebrow,.card-section-label{color:#0e7490}
input,textarea,select{background:#f8fafc;color:#0f172a;border-color:#cbd5e1;border-radius:12px}input::placeholder,textarea::placeholder{color:#64748b}input[type=checkbox],input[type=radio]{accent-color:#0284c7}
.avatar,.lock,.nav-count{background:#e0f2fe;color:#075985}.portal-page{padding:20px 14px}.portal-nav,#app>.portal-nav{background:#fff;border-color:#e2e8f0}.portal-nav .text{color:#64748b}.portal-nav [aria-current]{background:#e0f2fe;color:#0369a1;border-radius:16px}
.home-heading,.pagehead,.planning-heading{background:radial-gradient(ellipse at 100% 0%,#22d3ee22,transparent 55%),linear-gradient(135deg,#020617,#082f49 55%,#0369a1);color:white;border:0;border-radius:28px;padding:22px;box-shadow:0 12px 30px #082f491a;margin-bottom:20px}.home-heading h1,.pagehead h1,.planning-heading h1{color:#fff;letter-spacing:-.7px}.home-heading p,.planning-heading p{color:#cbe8f5}.home-heading .avatar,.pagehead .text,.planning-heading .text{background:#ffffff12;color:#e0f2fe;border-color:#ffffff25}.planning-heading .eyebrow{color:#67e8f9}
.home-day{color:#075985;background:#e0f2fe;border-color:#bae6fd}.home-row{background:#f8fafc;color:#0f172a;border-color:#e2e8f0}.home-row small{color:#64748b}.home-section-head h2,.home-visit-title strong{color:#082f49}.home-visit-contact a,.client-phone,.address-link,.next-card a{color:#0369a1}.home-visit-footer{border-color:#e2e8f0;color:#64748b}.next-card{border-top:3px solid #22d3ee}.next-card .home-section-head span{color:#075985}
.planning-panel{margin:0;background:transparent}.planning-heading{margin:0}.planning-body{padding:16px 0}.planning-panel .tour-card{background:#fff;border-color:#e2e8f0;border-radius:24px}.planning-panel .day-strip button{background:#ffffff12;color:#dff5ff;border-color:#ffffff15;border-radius:14px}.planning-panel .day-strip [aria-pressed=true]{background:#fff;color:#075985}.tour-state{color:#64748b}.tour-card .card-copy-text{color:#334155}.tour-instructions,.dossier-instructions{background:#fffbeb;color:#92400e}.intervention-consultation,.intervention-actions{border-color:#e2e8f0}.intervention-primary{background:#075985;border-color:#075985}.intervention-primary small{color:#bae6fd}.intervention-unavailable{color:#9a3412;background:transparent}.consultation-buttons .secondary{background:#f0f9ff;border-color:#dbeafe;color:#075985}
.compact-dossier h2,.dossier-appointment{color:#082f49}.tag.gray,.tag{background:#e0f2fe;color:#075985}.material-badge{border-color:#cbd5e1!important}.planning-task{background:#f0f9ff;border-color:#bae6fd;color:#082f49}.planning-task small,.planning-task>span>span,.planning-task .portal-icon{color:#0369a1}
.materials-dialog,.materials-dialog>header{background:#fff;color:#0f172a;border-color:#cbd5e1}.materials-dialog>header{background:#f0f9ff}.materials-body li span{color:#64748b}.error{background:#fff1f2;color:#9f1239}.environment-warning{background:#fff7ed;color:#9a3412;border-color:#fed7aa;font-size:11px;padding:8px 14px}.stats-ca strong,.stats-kpis strong{color:#075985}.stats-kpis>div{background:#e0f2fe}.stats-ca span,.stats-legend,.stats-provider{color:#334155}
@media(min-width:600px){body{border-radius:28px}body>header{border-radius:28px 28px 0 0}}
.signed-in>header{height:58px;background:#fff;border-color:#e2e8f0}.signed-in>header .text{color:#075985}.portal-nav button.text{border-color:transparent}.portal-nav button.text[aria-current]{border-color:#bae6fd}.record h2{font-size:20px;line-height:1.3}

/* Compact planning: native disclosure keeps keyboard and touch operation. */
.tour-stop .tour-fold{padding:0;overflow:hidden;margin:0;min-width:0;border-radius:18px}.tour-summary{display:grid;grid-template-columns:auto minmax(0,1fr) 16px;grid-template-rows:22px 20px;column-gap:8px;align-items:center;padding:12px;cursor:pointer;list-style:none}.tour-summary::-webkit-details-marker{display:none}.tour-summary-icons{grid-column:1;grid-row:1 / 3;display:flex;gap:3px;align-items:center;max-width:112px;flex-wrap:wrap}.tour-summary-icons .tag{margin:0;padding:0;flex:none;width:25px;height:25px;min-width:25px;min-height:25px}.tour-summary-icons img,.tour-summary-icons svg{width:23px;height:23px}.tour-summary-client{grid-column:2;grid-row:1;font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tour-summary-city{grid-column:2;grid-row:2;font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tour-chevron{grid-column:3;grid-row:1 / 3;color:#075985;transition:transform .15s}.tour-fold[open]>.tour-summary .tour-chevron{transform:rotate(180deg)}.tour-summary:focus-visible{outline:3px solid #0284c7;outline-offset:-3px}.tour-expanded{padding:14px;border-top:1px solid #e2e8f0}.tour-stop:has(.tour-fold){gap:8px;margin:10px 0;grid-template-columns:46px minmax(0,1fr)}.tour-stop:has(.tour-fold) .tour-time{padding-top:12px;gap:4px}.tour-summary-icons .type-tag{font-size:8px;overflow:hidden}

/* Explicit state selectors override the legacy teal navigation and actions. */
.portal-nav button.text[aria-current=page],.portal-nav [aria-current=page]{background:#e0f2fe;color:#0369a1}.stats-period [aria-pressed=true]{background:#075985;color:#fff}.planning-panel .consultation-buttons button{background:#f0f9ff;color:#075985;border-color:#dbeafe}.planning-panel .intervention-primary,.intervention-primary{background:#075985;color:#fff;border-color:#075985}.intervention-primary:hover{background:#0369a1}.home-row:focus-visible{outline-color:#22d3ee}

body.editing-rt #app{overflow:hidden;display:flex;flex-direction:column;min-height:0}body.editing-rt .portal-page{padding:0;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}#portal-rt-frame{display:block;border:0;width:100%;flex:1;min-height:0;background:#f8fafc}body.editing-rt #error{flex:none;margin:8px;font-size:12px}

/* Planning: actual intervention progress, independent of the scheduled hour. */
.tour-card.status-done,.planning-legend .status-done{background:#e8f5ec;border-color:#a5d6b3}
.tour-card.status-progress,.planning-legend .status-progress{background:#fff1df;border-color:#edbf83}
.tour-card.status-upcoming,.planning-legend .status-upcoming{background:#eaf4ff;border-color:#b5d6f3}
.planning-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 14px;padding:12px 4px;color:#475569;font-size:11px}
.planning-legend span{display:inline-flex;align-items:center;gap:6px}
.planning-legend i{width:12px;height:12px;border-radius:4px;border:1px solid;display:inline-block;box-sizing:border-box}



/* Compact pictograms: fill two rows before starting another column. */
.tour-summary-icons{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,25px);grid-auto-columns:25px;gap:3px;max-width:none}
.tour-summary-icons:has(>:only-child){grid-template-rows:25px}
.tour-summary{grid-template-rows:minmax(26px,auto) minmax(26px,auto)}

.tour-card.status-reprogram,.planning-legend .status-reprogram{background:#fdebec;border-color:#e7a5ab}


.rt-overdue{display:inline-block;background:#fdebec;color:#a12332;border-radius:12px;padding:5px 9px;font-size:12px;margin:4px}
/* Keep the home grid inside the phone frame, even with long dossier labels. */
main#app,.portal-page{min-width:0;max-width:100%}
.home-dashboard{grid-template-columns:minmax(0,1fr);min-width:0;width:100%}
.home-dashboard>*{min-width:0;max-width:100%}
.home-heading>div,.home-section-head>h2,.home-visit-title>strong,.home-visit-footer>span{min-width:0;overflow-wrap:anywhere}
.home-section-head,.home-visit-title,.home-visit-footer{flex-wrap:wrap}
.home-visit-title .tags{max-width:100%;flex-shrink:1;flex-wrap:wrap}
.home-row{min-width:0;max-width:100%}
.home-row>span:first-child{flex:1;overflow-wrap:anywhere}
.home-row>span:last-child{flex:none}
.home-row small{overflow-wrap:anywhere}
/* Light HELP CONFORT headers; blue is reserved for emphasis and selection. */
.home-heading,.pagehead,.planning-heading{background:#fff;color:#123c59;border:1px solid #dce8f0;border-radius:18px;padding:16px;box-shadow:0 3px 12px #004f9008}
.home-heading h1,.pagehead h1,.planning-heading h1{color:#004f90;font-size:22px;letter-spacing:-.5px}
.home-heading p,.pagehead p,.planning-heading p{color:#60758a}
.home-heading .eyebrow,.pagehead .eyebrow,.planning-heading .eyebrow{color:#168bb7;font-size:9px;letter-spacing:1.5px}
.home-heading .avatar,.pagehead .text,.planning-heading .text{background:#f2f8fc;color:#075985;border:1px solid #deebf3}
.planning-title h1{margin:5px 0}.planning-heading>p{margin:3px 0 12px;font-size:11px}
.planning-heading #refresh{width:38px;min-height:38px;padding:6px;border-radius:12px;font-size:18px}
.planning-date-actions{display:grid;grid-template-columns:38px 1fr 1.3fr 38px;gap:6px;align-items:center}
.planning-date-actions .text{width:100%;min-height:38px;padding:6px;font-size:11px;border-radius:10px}
.planning-pick-date{min-width:0}.planning-panel .day-strip{gap:6px;margin-top:10px}
.planning-panel .day-strip button{background:#f3f7fa;color:#60758a;border:1px solid transparent;border-radius:12px;min-height:50px;padding:6px 4px}
.planning-panel .day-strip strong{color:#284a62;font-size:17px;font-weight:650}
.planning-panel .day-strip [aria-pressed=true]{background:#0079b9;color:#fff;border-color:#0079b9;box-shadow:0 3px 8px #0079b926}
.planning-panel .day-strip [aria-pressed=true] strong{color:#fff}

/* BI : une question par étape, avec conservation de la saisie. */
#bi-form.bi-wizard{padding:16px;margin-top:14px}
#bi-form .bi-wizard-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:18px}
#bi-form .bi-wizard-progress button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:8px 2px;background:#f1f5f9;border-color:transparent;color:#536c80;font-size:10px;border-radius:10px}
#bi-form .bi-wizard-progress button span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700}
#bi-form .bi-wizard-progress [aria-current=step]{background:#e0f2fe;color:#075985;font-weight:700}
#bi-form .bi-wizard-progress [aria-current=step] span{background:#075985;color:#fff}
#bi-form #bi-step-title{margin:6px 0 20px;font-size:22px;line-height:1.25}
#bi-form #bi-step-position{font-size:12px;margin:0;color:#64748b}
#bi-form .bi-wizard-step>label{display:block;margin:14px 0;font-size:14px;font-weight:600}
#bi-form input:not([type=checkbox]):not([type=radio]),#bi-form textarea,#bi-form select{background:#fff;color:#0f172a;border-color:#cbd5e1;border-radius:12px;font-size:16px}
#bi-form textarea{min-height:112px}
#bi-form input:focus-visible,#bi-form textarea:focus-visible{outline-color:#0284c7}
#bi-form .bi-choices label{min-height:56px;background:#fff;border-color:#cbd5e1;border-radius:12px;padding:12px;font-size:14px;cursor:pointer}
#bi-form .bi-choices label:has(input:checked){background:#e0f2fe;border-color:#0284c7;color:#075985;font-weight:700}
#bi-form .bi-time{margin:12px 0;padding:12px;border:1px solid #dce6ee;border-radius:12px}
#bi-form .bi-time>div{gap:6px}#bi-form .bi-time label{font-size:12px}
#bi-form .bi-person{font-size:14px}
#bi-form .bi-wizard-controls{display:flex;gap:10px;margin-top:20px}
#bi-form .bi-wizard-controls>button{flex:1;min-width:0;min-height:48px;white-space:normal}
.bi-date-details{font-size:13px;color:#536c80;margin-bottom:18px}.bi-date-details summary{cursor:pointer}.bi-date-details label{display:block;margin-top:12px}
.bi-recap-item{padding:12px 0;border-bottom:1px solid #e2e8f0}.bi-recap-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.bi-recap-item strong{font-size:14px}.bi-recap-item p{font-size:14px;line-height:1.5;white-space:pre-line;margin:6px 0}.bi-recap-item button{font-size:12px;padding:7px;min-height:40px}
.bi-past-passages{font-size:13px;margin:14px 0;color:#536c80}.bi-past-passages>summary{cursor:pointer;padding:10px 0}.bi-past-passages .bi-history{padding:14px;background:#fff;border:1px solid #dce6ee;border-radius:12px;margin:8px 0}
#bi-form #bi-result:empty{display:none}#bi-form #bi-result{font-size:13px;color:#b42336}
#bi-form .bi-time>div{grid-template-columns:1fr}#bi-form.bi-wizard-end .bi-person input{display:none}
.bi-extra-photos,.bi-recap{font-size:13px;margin:18px 0;color:#536c80}.bi-extra-photos>summary,.bi-recap>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.bi-visit-picker{display:grid;gap:8px}.bi-visit-picker [aria-pressed=true]{background:#e0f2fe;border-color:#0284c7;color:#075985}

/* Navigation du BI et fiche dossier compacte. */
#bi-form .bi-wizard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:40px}
#bi-form .bi-wizard-toolbar button{min-height:40px;padding:8px 12px;font-size:13px}
#bi-form .bi-wizard-toolbar #bi-step-position{margin-left:auto}
#bi-form .bi-wizard-progress{gap:4px;margin-bottom:18px}
#bi-form .bi-wizard-progress button{background:transparent;border-radius:0;border-bottom:3px solid #e2e8f0;font-size:11px;padding:6px 0 9px}
#bi-form .bi-wizard-progress .is-previous{color:#075985;border-bottom-color:#7dc7e9}
#bi-form .bi-wizard-progress [aria-current=step]{background:transparent;border-bottom-color:#075985}
#bi-form .bi-wizard-controls{position:sticky;bottom:-20px;z-index:2;padding:12px 0;background:#fff;border-top:1px solid #e2e8f0}
#bi-form #bi-step-title{font-size:20px;margin:6px 0 16px}
#bi-form #bi-readonly{padding:10px;background:#f0f9ff;border-radius:10px}
.dossier-compact{font-size:14px;color:#15374b}
.dossier-compact .detail-title h1{font-size:20px;line-height:1.3;margin:6px 0 10px;overflow-wrap:anywhere}
.dossier-compact .eyebrow{font-size:10px;letter-spacing:1.2px}
.dossier-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:#536c80;font-size:13px;margin-bottom:16px}
.dossier-meta .tag{font-size:10px;padding:4px 7px}
.dossier-compact h2{font-size:15px;margin:0 0 10px;line-height:1.4}
.dossier-visit{padding:14px;border:1px solid #dce6ee;background:white;border-radius:14px}
.dossier-slots{display:flex;flex-wrap:wrap;gap:6px}
.dossier-slots span{font-size:13px;color:#075985;background:#f0f9ff;border-radius:6px;padding:4px 7px;font-weight:600}
.dossier-compact .dossier-address,.dossier-compact .dossier-phone{font-size:13px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
.dossier-compact .detail-actions{gap:7px;margin-top:12px}
.dossier-compact .detail-actions .button,.dossier-compact .detail-actions button{min-height:40px;padding:8px 10px;font-size:12px;flex:1}
.dossier-compact .detail-actions svg{width:18px;height:18px}
.dossier-start{display:grid;gap:8px;margin:14px 0 18px}
.dossier-start:empty{display:none}
.dossier-start button{min-height:46px;font-size:14px}
.dossier-request{padding:0 2px 16px}
.dossier-compact .request{font-size:13px;line-height:1.6;margin:0}
.dossier-documents{border-top:1px solid #dce6ee;padding:4px 0}
.dossier-documents>summary{display:flex;align-items:center;gap:8px;min-height:48px;cursor:pointer;font-size:14px;font-weight:650;list-style:none}
.dossier-documents>summary::-webkit-details-marker{display:none}
.dossier-documents>summary:after{content:'⌄';margin-left:auto}
.dossier-documents[open]>summary:after{content:'⌃'}
.dossier-documents>summary>span{font-size:11px;padding:2px 7px;border-radius:12px;background:#e0f2fe;color:#075985}
.dossier-documents .documents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dossier-documents .document{display:flex;flex-direction:column;min-width:0;background:white;border-color:#dce6ee;color:#075985}
.dossier-documents .dossier-thumbnail{display:grid;place-items:center;position:relative;width:100%;height:88px;background:#edf3f8;overflow:hidden}
.dossier-documents .dossier-file-type{color:#536c80;font-size:12px;font-weight:600}
.dossier-documents .document img{position:absolute;inset:0;width:100%;height:88px;object-fit:contain;margin:0;background:white}
.dossier-documents .document>span:last-child{font-size:10px;line-height:1.4;padding:7px;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}

/* Le contenu défile dans le cadre ; les actions gardent leur place. */
.portal-page.bi-wizard-page{display:flex;flex-direction:column;overflow:hidden;padding:10px 14px;gap:0}
.bi-wizard-page>#bi-back{align-self:flex-start;flex-shrink:0;min-height:36px;padding:6px 10px;font-size:12px}
.bi-wizard-page>h1{font-size:20px;margin:6px 0;line-height:1.3;flex-shrink:0}
.bi-wizard-page>#bi-content{display:flex;flex-direction:column;flex:1;min-height:0}
.bi-wizard-page #bi-content>.note{margin:3px 0 8px;line-height:1.4;font-size:11px;flex-shrink:0}
.bi-wizard-page .bi-past-passages{flex-shrink:0;max-height:25%;overflow:auto;margin:0 0 6px}
.bi-wizard-page #bi-form{display:flex;flex-direction:column;flex:1;min-height:0;padding:12px;margin:0;overflow:hidden;border-radius:16px}
.bi-wizard-page #bi-form .bi-wizard-heading{flex-shrink:0}
.bi-wizard-page #bi-form .bi-wizard-toolbar{margin-bottom:4px;min-height:32px}
.bi-wizard-page #bi-form .bi-wizard-toolbar button{min-height:32px;padding:4px 8px;font-size:12px}
.bi-wizard-page #bi-form .bi-wizard-progress{margin-bottom:10px}
.bi-wizard-page #bi-form #bi-step-title{font-size:18px;margin:4px 0 12px;outline:none}
.bi-wizard-page #bi-form>fieldset{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;margin:0;padding:0 3px 12px;border:0}
.bi-wizard-page #bi-form .bi-wizard-step>label{margin:8px 0;font-size:13px}
.bi-wizard-page #bi-form textarea{min-height:84px}
.bi-wizard-page #bi-form .bi-date-details{margin-bottom:10px}
.bi-wizard-page #bi-form .bi-wizard-controls{position:static;flex:0 0 64px;height:64px;margin:0;padding:12px 0 0;align-items:stretch}
.bi-wizard-page #bi-form .bi-wizard-controls>button{flex:1;min-height:46px;font-size:13px;padding:8px;width:0}
.bi-wizard-page #bi-form #bi-result{flex-shrink:0;max-height:64px;overflow:auto;margin:6px 0;font-size:12px}
.bi-wizard-page #bi-form #bi-readonly{margin:4px 0 8px;font-size:11px}
@media(max-height:650px){.bi-wizard-page>h1{font-size:17px;margin:3px 0}.bi-wizard-page #bi-form .bi-wizard-toolbar{display:none}.bi-wizard-page #bi-form .bi-wizard-progress{margin-bottom:6px}.bi-wizard-page #bi-form #bi-step-title{font-size:16px;margin-bottom:8px}}

/* Actions du wizard en haut, à portée immédiate. */
.bi-wizard-page #bi-form .bi-wizard-controls{display:grid;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);gap:8px;position:static;height:56px;min-height:56px;margin:0 0 14px;padding:0;border:0;align-items:stretch}
.bi-wizard-page #bi-form .bi-wizard-controls>button{width:100%;min-width:0;min-height:44px;height:56px;margin:0;padding:6px;font-size:12px;line-height:1.25}
.bi-wizard-page #bi-form .bi-wizard-controls #bi-step-position{align-self:center;margin:0;text-align:center;font-size:11px;line-height:1.35;color:#536c80}
.bi-wizard-page #bi-form .bi-wizard-controls #bi-next,.bi-wizard-page #bi-form .bi-wizard-controls>[type=submit]{grid-column:3;grid-row:1}
.bi-wizard-page #bi-form .bi-wizard-progress{margin-bottom:14px}

/* Accès aux documents : commandes discrètes, sans liens bruts. */
.document-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;padding:9px;border:1px solid #dce6ee;border-radius:11px;background:#f8fbfd;color:#075985;text-decoration:none}
.document-icon-button:visited{color:#075985}
.document-icon-button:hover{background:#e0f2fe;border-color:#7dc7e9}
.document-icon-button svg{width:20px;height:20px}
.bi-past-passages .bi-history{padding:12px;margin:8px 0;border-radius:12px}
.bi-history-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bi-history-heading strong{font-size:13px;color:#15374b}
.bi-history-author{display:block;font-size:11px;color:#64748b;margin-top:3px}
.bi-history>p{font-size:13px;line-height:1.5;white-space:pre-line;margin:10px 0;color:#334155}
.bi-history-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bi-history-status{font-size:11px;color:#536c80;background:#f1f5f9;border-radius:20px;padding:4px 8px}
.bi-history-status.is-signed{color:#166534;background:#dcfce7}
.bi-history-footer button{font-size:12px;min-height:38px;padding:7px 10px}
.document-action,.bi-flow-dialog #sign-content a.button{font-size:13px;min-height:42px;padding:9px 12px}
.document-action svg,.bi-flow-dialog #sign-content a.button svg{width:19px;height:19px}
.address-link,.client-phone,.address-link:visited,.client-phone:visited{color:#075985;text-decoration:none}
.address-link:hover span,.client-phone:hover span{text-decoration:underline}
.bi-flow-dialog #bi-flow-content>.portal-page>h1{font-size:20px;line-height:1.3;margin:8px 0 12px}

.bi-offline-page{display:block;width:100%;height:auto;margin:12px 0;border:1px solid #d5e3ea}

/* BI reception: readable fields and document pages inside the shared wizard. */
#bi-sign-page input:not([type=checkbox]),#bi-sign-page select,#bi-sign-page textarea{background:#fff;color:#102c41;border:1px solid #c6d8e5;color-scheme:light}
#bi-sign-page .card{padding:16px;margin:12px 0;border-radius:16px}
#bi-sign-page h2{font-size:20px;margin:0 0 12px}
#bi-sign-page .bi-offline-page{display:block;width:100%;height:auto;background:white;margin:12px 0;border:1px solid #dce5ec;border-radius:6px}
#bi-sign-page .button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}

/* Read-only summary for completed visits. */
.dossier-summary-dialog{width:min(520px,calc(100vw - 24px));border-radius:20px;background:#fff;color:#12364b}
.dossier-summary-dialog .materials-body{padding:18px}
.dossier-summary-dialog header{background:#fff}
.dossier-summary-dialog header button{background:#f5f9fc;color:#075985;border:1px solid #d9e5ee}
.dossier-summary-title h2{font-size:20px;line-height:1.25;margin:8px 0 12px}
.dossier-summary-dialog h3{font-size:15px;margin:16px 0 10px}
.dossier-summary-dialog .dossier-address{font-size:14px}
.dossier-summary-work article{padding:10px 0;border-bottom:1px solid #edf2f6}
.dossier-summary-work small{font-size:12px;color:#526d81}
.dossier-summary-work p{font-size:14px;margin:6px 0;white-space:pre-line}
.dossier-summary-docs{display:grid;gap:8px}
.dossier-summary-doc{display:flex;gap:12px;align-items:center;border:1px solid #dce6ee;border-radius:12px;padding:8px;color:#12364b;background:#fff;text-decoration:none;font-size:14px;font-weight:600}
.dossier-summary-doc>span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere}.dossier-summary-doc small{display:block;font-size:11px;color:#5e7689;font-weight:400;margin-top:4px}
.dossier-summary-doc svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
.summary-preview{position:relative;width:42px;height:54px;flex-shrink:0;background:#f0f6fa;border-radius:5px;display:grid;place-items:center;overflow:hidden}
.summary-preview img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:top;background:#fff}

/* Unified work queue */
.portal-nav.portal-nav-full{grid-template-columns:repeat(5,minmax(0,1fr))}
#home-overdue:has([data-overdue]){border-color:#e2ae62;background:#fff9ee}
#todo-overdue h2,#todo-reports h2,#todo-tasks h2{font-size:18px}

/* Discreet device synchronization status */
.device-status{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 14px;color:#526778;background:#f3f8fb;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.device-status[hidden],.device-status [hidden]{display:none!important}
.device-status{box-sizing:border-box;min-height:38px;flex-wrap:wrap}.device-status>span{min-width:0;flex:1 1 240px;white-space:normal;overflow-wrap:anywhere}.device-status>a,.device-status>button{flex-shrink:0;font-size:11px}.device-status>button{padding:4px 7px;min-height:28px}
.device-status-alert{background:#fff4e5;color:#8b4209}
#device-outbox-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:8px;min-width:36px;min-height:36px}
#device-outbox-button.has-pending:after{content:"";position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:#007ba5}

/* Light fields throughout the technician portal. */
:root{color-scheme:light}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body textarea,body select{background:#fff;color:#163b50;border-color:#c6d7e8;color-scheme:light}
body input::placeholder,body textarea::placeholder{color:#687e94;opacity:1}
body input:disabled,body textarea:disabled,body select:disabled{background:#eef3f7;color:#53697c;opacity:1}
body select option{background:#fff;color:#163b50}
body input:focus-visible,body textarea:focus-visible,body select:focus-visible{outline:2px solid #009bd4;outline-offset:2px}
.home-row[hidden]{display:none!important}

/* TH: short measurement wizard with stable upper navigation. */
.th-dialog{width:min(600px,calc(100vw - 24px));background:#fff;color:#163b50}
.th-dialog[open]{display:flex;flex-direction:column;height:min(620px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box}.th-dialog>header{flex:none}.th-dialog .materials-body{padding:18px;flex:1;min-height:0;overflow:auto}.th-dialog h2{font-size:20px}
.th-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;position:sticky;top:0;background:#fff;padding:8px 0;z-index:1}
.th-nav>span{font-size:12px;color:#526880;text-align:center}.th-nav button{min-width:0;font-size:13px;padding:10px}
.th-steps{display:flex;gap:5px;margin:12px 0 20px}.th-steps span{flex:1;font-size:12px;text-align:center;padding:8px 0;border-bottom:3px solid #e2eaf2;color:#60758a}.th-steps [aria-current]{color:#075985;border-color:#075985;font-weight:700}
.th-stage{min-height:220px}.th-stage label{display:block;font-weight:600}.th-stage input{display:block;width:100%;box-sizing:border-box;margin-top:10px;padding:13px;border-radius:12px;border:1px solid #c6d7e8;background:#fff;color:#163b50;font-size:17px}
.th-measures{display:grid;gap:8px;margin-bottom:18px}.th-measures article{display:flex;gap:12px;align-items:center;padding:13px;border:1px solid #dce8f0;border-radius:12px}.th-measures article>div{flex:1;min-width:0;overflow-wrap:anywhere}.th-measures small{display:block;margin-top:4px;color:#526880}.th-number{background:#e0f2fe;color:#075985;border-radius:50%;padding:5px 10px}.th-measures b{white-space:nowrap}.th-edit{margin:0 6px 12px 0;font-size:12px}

.th-dialog>header h2{font-size:18px;letter-spacing:normal;line-height:1.3}.th-dialog>header button{flex:0 0 38px;width:38px;min-width:38px;min-height:38px;padding:0;font-size:22px}

#th-error:empty{display:none}

#device-outbox-button[hidden]{display:none!important}

/* Color cues for the three work queues. */
#todo-overdue{--todo-accent:#a6540b;--todo-pale:#fff3e4;--todo-border:#f5d6ac}#todo-reports{--todo-accent:#086eac;--todo-pale:#eaf6ff;--todo-border:#c4e3f8}#todo-tasks{--todo-accent:#7550b6;--todo-pale:#f4edff;--todo-border:#e0d1f5}
:is(#todo-overdue,#todo-reports,#todo-tasks).card{padding:16px;border-color:var(--todo-border);box-shadow:0 4px 16px #14375304;background:linear-gradient(150deg,var(--todo-pale) 0,white 140px);margin-bottom:16px}
.todo-heading{display:flex;align-items:center;gap:10px;margin:0 0 14px!important;font-size:17px!important;line-height:1.2;letter-spacing:-.25px}.todo-heading>span:nth-child(2){flex:1}.todo-heading-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:12px;color:var(--todo-accent,#a6540b);background:var(--todo-pale,#fff3e4);border:1px solid var(--todo-border,#f5d6ac)}.todo-heading-icon .portal-icon{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.65}.todo-heading .todo-count{display:grid;place-items:center;min-width:26px;height:26px;border-radius:9px;background:var(--todo-pale,#fff3e4);color:var(--todo-accent,#a6540b);font-size:12px;font-weight:700;padding:0 5px;box-sizing:border-box}
:is(#todo-overdue,#todo-reports,#todo-tasks) .home-section-head{display:block}:is(#todo-overdue,#todo-reports,#todo-tasks) .home-row{background:#fff;border:1px solid #e8edf2;border-radius:11px;margin:6px 0;padding:10px;gap:9px;min-height:58px;text-decoration:none}:is(#todo-overdue,#todo-reports,#todo-tasks) .home-row strong{font-size:12px;line-height:1.3}:is(#todo-overdue,#todo-reports,#todo-tasks) .home-row small{font-size:11px;margin-top:4px}:is(#todo-overdue,#todo-reports,#todo-tasks) .home-row>span:last-child{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:var(--todo-pale);color:var(--todo-accent)}:is(#todo-overdue,#todo-reports,#todo-tasks) .home-row:hover{border-color:var(--todo-border);background:var(--todo-pale)}:is(#todo-overdue,#todo-reports,#todo-tasks) [data-card-more]{margin-top:9px;color:var(--todo-accent);border-color:var(--todo-border);background:var(--todo-pale);min-height:39px}

.address-link .waze-icon{width:32px;height:32px;flex:0 0 32px;margin-left:2px}.dossier-compact .detail-actions:empty{display:none}

.pagehead.todo-pagehead{padding:0 2px;margin:8px 0 18px;background:none;border:0;box-shadow:none;min-height:0}.pagehead.todo-pagehead h1{font-size:21px;line-height:1.3;margin:0}

/* Direct contact actions stay on the city line, including collapsed visits. */
.tour-summary{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:minmax(26px,auto) minmax(36px,auto);column-gap:8px}.tour-summary-client{grid-column:2 / 4;padding-right:20px}.tour-chevron{grid-column:3;grid-row:1;justify-self:end}.tour-quick-actions{grid-column:3;grid-row:2;display:flex;align-items:center;gap:4px}.tour-quick-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:#fff;border:1px solid #c6deeb;color:#075985;text-decoration:none;touch-action:manipulation}.tour-quick-action .waze-icon{width:29px;height:29px}.tour-quick-action>svg:not(.waze-icon){width:19px;height:19px}.tour-quick-action:hover{background:#e0f2fe;border-color:#38bdf8}.tour-quick-action:focus-visible{outline:3px solid #0284c7;outline-offset:2px}.tour-quick-action.unavailable{opacity:.35;background:transparent;cursor:default}

/* The mandatory photo step is part of the same intervention wizard. */
#bi-form .bi-wizard-progress{grid-template-columns:repeat(var(--bi-step-count,5),minmax(0,1fr))}#bi-form .bi-wizard-progress [hidden]{display:none}#bi-form .bi-photo-picker{display:block;padding:14px;border:1px solid #b9d9ec;border-radius:14px;background:#f0f9ff;color:#075985;font-weight:650}#bi-form .bi-photo-picker input{margin-top:10px;background:white;color:#123448;width:100%;max-width:100%;font-size:13px}#bi-form .bi-photo-picker input::file-selector-button{padding:10px 12px;border:0;border-radius:8px;background:#075985;color:white;cursor:pointer}
#bi-form .bi-wizard-progress button{font-size:11px;white-space:nowrap}@media(max-width:360px){#bi-form .bi-wizard-progress button{font-size:10px}}

/* Complements to an already validated passage. */
.amendment-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.amendment-photos figure{margin:0}.amendment-photos img{width:100%;height:150px;object-fit:contain;background:#eff7fb;border-radius:12px}.amendment-photos button{width:100%;margin-top:6px}.amendment-text{white-space:pre-wrap;overflow-wrap:anywhere}.amendment-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px}.amendment-confirm input{width:22px;height:22px;flex-shrink:0}.bi-amendment-dialog .sav-stage input[type=file]{max-width:100%;font-size:14px}.bi-amendment-dialog .error[hidden]{display:none}.dossier-summary-work [data-amend]{margin:8px 0 16px}.amendment-entry{margin-top:8px;display:flex;gap:8px;align-items:center}

/* Shared dossier library: associated documents and media, grouped for mobile. */
.dossier-library{display:grid;gap:22px}.document-group>h3{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:16px;color:#123c54}.document-group>h3>.portal-icon{width:22px;height:22px;padding:7px;border-radius:10px;box-sizing:content-box;background:#e6f4ff;color:#0879aa}.document-group[data-document-group=orders]>h3>.portal-icon{background:#fff1df;color:#a15b15}.document-group[data-document-group=reports]>h3>.portal-icon{background:#e8f6ef;color:#247957}.document-group[data-document-group=photos]>h3>.portal-icon{background:#f0ebff;color:#7252b3}.document-group>h3 small,.document-total{font-size:12px;font-weight:600;background:#edf3f8;color:#546c82;padding:3px 8px;border-radius:20px}.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.document-tile{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #dbe6ef;border-radius:15px;background:#fff!important;color:#153c52!important;text-decoration:none!important;box-shadow:0 3px 9px #12466a06}.document-tile-preview{position:relative;display:flex;align-items:center;justify-content:center;height:158px;background:#edf4f8;overflow:hidden}.document-tile-preview>.portal-icon{width:38px;height:38px;color:#809aab}.document-tile-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;box-sizing:border-box;background:#f0f5f9}.document-tile-format{position:absolute;bottom:7px;left:7px;z-index:1;background:#fffffff0;border:1px solid #dce6ee;border-radius:7px;padding:2px 6px;font-size:10px;font-weight:700;color:#4f6c80}.document-tile-title{padding:10px 10px 5px;font-size:13px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.document-tile>small{padding:0 10px 8px;font-size:11px;color:#687e91}.document-tile-open{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 10px;margin-top:auto;border-top:1px solid #e9f0f5;font-size:12px;color:#006994}.document-tile-open .portal-icon{width:17px;height:17px}.document-tile:focus-visible{outline:3px solid #12b8ec;outline-offset:2px}.document-tile:hover{border-color:#77badb}.dossier-documents>h2{display:flex;align-items:center;gap:8px;margin-bottom:18px}.dossier-summary-dialog{width:min(780px,calc(100vw - 16px));max-height:calc(100dvh - 16px);padding:0}.dossier-summary-dialog>.materials-body{max-height:calc(100dvh - 100px);overflow-y:auto;padding:18px}.dossier-summary-dialog>header{position:sticky;top:0;z-index:2}.dossier-summary-dialog .document-tile-preview{height:170px}@media(min-width:620px){.dossier-summary-dialog .document-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:380px){.document-grid{gap:8px}.document-tile-preview{height:135px}.document-tile-title{font-size:12px}}

.document-grid.single-document{grid-template-columns:minmax(0,1fr)}.single-document .document-tile{display:grid;grid-template-columns:105px minmax(0,1fr);grid-template-rows:1fr auto auto;column-gap:0}.single-document .document-tile-preview,.dossier-summary-dialog .single-document .document-tile-preview{grid-row:1 / 4;height:145px;border-right:1px solid #e4edf4}.single-document .document-tile-title{align-self:center}.single-document .document-tile-open{grid-column:2;margin:0}.single-document .document-tile>small{grid-column:2}.single-document .document-tile-title{grid-column:2}@media(max-width:380px){.single-document .document-tile{grid-template-columns:90px minmax(0,1fr)}}

#portal-rt-frame.rt-frame-pending{visibility:hidden}

/* A shared empty state after all three work lists have been confirmed. */
.caught-up-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 18px;border-color:#a7e4d0;background:linear-gradient(145deg,#f0fdf4,#ecfeff);box-shadow:0 5px 18px #04785708}
.caught-up-card[hidden]{display:none!important}
.caught-up-icon{display:block;width:68px;height:68px;margin:0 0 10px}.caught-up-icon svg{display:block;width:100%;height:100%}
.caught-up-card h2{margin:0;color:#065f46;font-size:20px;line-height:1.3}.caught-up-card p{margin:10px 0 0;max-width:300px;font-size:13px;line-height:1.6;color:#426b65}
.home-dashboard .caught-up-card{padding:24px 18px}

.completion-checklist{margin:12px 0}.completion-checklist:empty{display:none}.completion-checklist ul{padding:0;list-style:none}.completion-checklist button{text-align:left;white-space:normal;width:100%;margin:5px 0}.completion-checklist section{padding:12px;border:1px solid #efbaba;border-radius:12px;background:#fff7f7}.completion-checklist details{margin:10px 0}.completion-missing{outline:2px solid #e8aaaa!important;background:#fff7f7!important}
