:root{font-family:Inter,Arial,sans-serif;color:#132d43;background:#f2f5f7;font-size:16px;--navy:#092d4d;--blue:#1263a0;--red:#ba343c;--line:#dbe3e9}*{box-sizing:border-box}body{margin:0}aside{position:fixed;width:246px;background:var(--navy);inset:0 auto 0 0;color:white;padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;color:white;text-decoration:none;font-size:14px;letter-spacing:1.5px;align-items:center}.brand strong{font-size:17px}.brand small{display:block;font-size:12px;letter-spacing:2.5px;color:#a6c4d9;margin-top:10px}.mark{font-size:26px;font-weight:900;border-left:5px solid #e54a50;padding:9px 6px;letter-spacing:-2px}nav{margin-top:56px;display:grid;gap:9px}nav a{color:#c3d3e0;text-decoration:none;padding:15px 16px;border-radius:7px;display:flex;gap:14px;font-weight:600;align-items:center}nav a.active{background:#234a69;color:white;box-shadow:inset 3px 0 #f35359}nav a:hover{background:#1b415e}.navicon{font-size:20px;width:24px;text-align:center}.sidefoot{margin-top:auto;font-size:12px;letter-spacing:1px;color:#abc1d2}.sidefoot span{display:block;font-size:14px;letter-spacing:0;margin-top:10px}main{margin-left:246px;padding:0 42px;max-width:1600px}header{height:90px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.7px;color:#536b7b}button,.button{font:inherit;border:0;border-radius:6px;padding:13px 19px;min-height:48px;background:var(--blue);color:white;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{filter:brightness(.93)}.quiet{background:transparent;color:#466277;font-size:14px;padding:10px}.secondary{background:#eaf0f4;color:var(--navy)}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:32px 0 26px}h1{font-size:34px;letter-spacing:-1px;margin:6px 0 8px}h2{font-size:21px;margin:0 0 20px}h3{font-size:18px;margin:0 0 7px}p{line-height:1.55}.sub{color:#617686;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:22px}.stat strong{font-size:34px;display:block;margin:10px 0}.stat span{font-size:14px;color:#617686}.stat.alert{border-top:3px solid var(--red)}.stat.alert strong{color:var(--red)}.grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:24px;margin-bottom:22px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.sectionhead h2{margin:0}.row{padding:20px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0;padding-bottom:0}.rowtop{display:flex;justify-content:space-between;align-items:start;gap:12px}.row p{margin:7px 0;color:#5e7384}.badge{display:inline-block;font-size:13px;font-weight:700;background:#eaf0f5;color:#315e80;padding:5px 9px;border-radius:4px;white-space:nowrap}.badge.late{background:#fbeaec;color:#aa2833}.badge.today{background:#fff0d8;color:#8b5708}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}.actions button,.actions a{min-height:44px;font-size:14px;padding:10px 13px}.textlink{background:none;color:var(--blue);padding:0;min-height:44px;justify-content:start;text-align:left}.list{display:grid;gap:16px}.customer{width:100%;background:white;color:var(--navy);border:1px solid var(--line);padding:22px;justify-content:space-between;text-align:left}.customer small{display:block;color:#617686;font-weight:400;margin-top:8px;font-size:14px}.avatar{background:#e7eef4;padding:14px;border-radius:7px;font-size:18px}.customer-left{display:flex;gap:18px;align-items:center}.search{max-width:520px;margin-bottom:24px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}label{display:grid;gap:9px;font-size:14px;font-weight:700}input,select,textarea{font:inherit;font-size:16px;width:100%;min-height:49px;padding:12px;border:1px solid #bdcbd6;border-radius:5px;background:white;color:#132d43}textarea{min-height:100px;resize:vertical}.full{grid-column:1/-1}.hint{font-size:14px;color:#617686;font-weight:400}.savebar{display:flex;align-items:center;justify-content:space-between;gap:16px}.filters{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.filters button{background:#e3ebf1;color:#31516a}.filters button.selected{background:var(--navy);color:white}.empty{padding:24px 0;color:#617686}.note{border-left:3px solid #b6cbda;padding-left:14px;white-space:pre-wrap}.detailmeta{display:flex;gap:16px;flex-wrap:wrap;color:#617686}.money{font-size:23px;font-weight:700}.opprow{display:grid;grid-template-columns:1fr 130px 165px;align-items:center;gap:20px}.opprow select{font-size:14px}footer{padding:26px 0;font-size:12px;color:#6d8190}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#123c55;color:white;border-radius:7px;padding:16px 22px;display:none;z-index:10}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;max-width:530px;width:calc(100% - 32px);color:#132d43}dialog::backdrop{background:#092d4d88}dialog button{margin:6px 6px 0 0}a{color:var(--blue)}:focus-visible{outline:3px solid #eaa531;outline-offset:3px}@media(max-width:1050px){aside{width:210px;padding:30px 15px}main{margin-left:210px;padding:0 25px}.grid{grid-template-columns:1fr}.opprow{grid-template-columns:1fr 110px 150px}}@media(max-width:700px){aside{width:auto;inset:auto 0 0;padding:0 0 env(safe-area-inset-bottom);z-index:5;background:var(--navy)}.brand,.sidefoot{display:none}nav{display:flex;justify-content:space-around;margin:0;gap:0}nav a{flex:1;flex-direction:column;gap:5px;padding:10px 2px;font-size:10px;border-radius:0;min-height:66px}nav a.active{box-shadow:inset 0 3px #f35359}.navicon{font-size:22px}main{margin:0;padding:0 18px 85px}header{height:66px}.eyebrow{font-size:10px;letter-spacing:.8px;max-width:155px}.quiet{font-size:12px;padding:6px}h1{font-size:28px}.pagehead{margin:24px 0;gap:10px}.pagehead .button{padding:12px;font-size:14px}.stats{gap:8px}.stat{padding:13px 10px}.stat strong{font-size:28px}.stat span{font-size:12px}.stat b{font-size:13px}.panel{padding:18px}.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.opprow{grid-template-columns:1fr auto;gap:12px}.opprow select{grid-column:1/-1}.savebar{align-items:stretch;flex-direction:column}#toast{bottom:90px;max-width:90%;width:max-content}.rowtop{flex-wrap:wrap}.customer{padding:17px}.detailmeta{gap:8px}}

.badge.qualified{background:#e1f2e8;color:#19683e}.badge.unqualified{background:#fff0d8;color:#8b5708}.customer .badge{margin:7px 0;white-space:normal}.scanlaunch{background:#e4eef6;border:1px solid #bed3e4;border-radius:8px;padding:18px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.scanlaunch p{margin:6px 0 0}.customer-dialog,.scan-dialog{max-width:760px;max-height:90dvh;overflow:auto}.card-preview{display:block;width:100%;max-height:240px;object-fit:contain;margin-top:18px}.card-preview[hidden]{display:none}.camera-label{position:relative;overflow:hidden;display:inline-flex;font-size:16px}.camera-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.camera-label:focus-within{outline:3px solid #eaa531;outline-offset:3px}details{margin:18px 0}summary{cursor:pointer;padding:12px 0;min-height:44px}.customer-dialog .formgrid{margin-top:18px}[data-qualification-preview]{display:flex;flex-wrap:wrap;gap:10px;align-items:center}@media(max-width:700px){.scanlaunch{align-items:stretch;flex-direction:column}.customer-dialog,.scan-dialog{padding:20px}.scan-dialog .actions{align-items:stretch}.scan-dialog .actions label{flex:1}}

.followup-delete-row{display:flex;justify-content:flex-end;margin-top:8px}.followup-delete{background:transparent;color:#a72b35;min-width:48px;min-height:48px;padding:12px}.followup-delete:hover{background:#fbeaec}

.customer-list-row{display:flex;align-items:stretch;gap:8px}.customer-list-row .customer{flex:1;min-width:0}.customer-list-row>.followup-delete{align-self:flex-end;flex-shrink:0}.customer-left{min-width:0}.customer-left>span:last-child{overflow-wrap:anywhere}

.calendar-today-link{margin:-8px 0 24px}.calendar-top{margin-bottom:24px}.outlook-status{display:flex;align-items:center;justify-content:space-between;gap:20px}.outlook-status h2{margin-bottom:12px}.outlook-status .hint{max-width:660px;margin-bottom:0}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,1fr);gap:24px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.calendar-toolbar h2{margin:0;text-align:center}.calendar-toolbar button{font-size:24px;min-width:48px;padding:7px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekday{text-align:center;font-size:13px;color:#526d82;padding:8px 0}.calendar-day{min-height:76px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;background:#f0f4f7;color:#183f5c;border:2px solid transparent;padding:10px 7px;font-size:16px}.calendar-day small{font-size:12px;color:#386782}.calendar-day.current-day{border-color:#1263a0}.calendar-day.chosen{background:#123e5f;color:white}.calendar-day.chosen small{color:white}.calendar-agenda>.textlink{display:inline-flex;margin-top:20px}.calendar-panel .hint{margin-bottom:0}@media(max-width:1100px){.calendar-layout{grid-template-columns:1fr}.outlook-status{align-items:flex-start;flex-direction:column}}@media(max-width:700px){.calendar-grid{gap:3px}.calendar-day{min-height:65px;padding:8px 4px}.calendar-count-label{display:none}.calendar-toolbar h2{font-size:20px}.calendar-weekday{font-size:12px}.outlook-status .badge{white-space:normal}}

.official-logo{display:block;width:100%;height:auto;background:white;padding:10px;border-radius:5px}.header-brand{display:flex;align-items:center;gap:15px;text-decoration:none}.header-brand img{width:220px;height:auto;background:white;padding:7px;border-radius:4px}.header-brand span{font-size:12px;letter-spacing:2px;font-weight:700;color:#536b7b}@media(max-width:700px){.header-brand img{width:160px}.header-brand span{display:none}}

/* Official artwork retains its proportions; the AE app icon remains legible at small sizes. */
.brand{width:100%;min-width:0}.official-logo{width:100%;max-width:230px;object-fit:contain;padding:12px;background:#fff}
.header-brand{min-width:0;flex:1}.header-brand img{width:clamp(130px,24vw,240px);max-width:100%;object-fit:contain}.header-brand span{white-space:nowrap}
header{min-height:90px;height:auto;padding:12px 0}.quiet{flex-shrink:0}
.scan-controls{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;align-items:center}.scan-controls label{display:flex;align-items:center;gap:8px}.scan-controls input[type=checkbox],.scan-field input[type=checkbox]{width:22px;min-height:22px;height:22px;flex-shrink:0}
.scan-field{display:flex;align-items:center;gap:9px;font-weight:700}.scan-review-field{display:grid;gap:8px}.scan-dialog .card-preview{background:#eaf0f4}.scan-dialog [data-scan-status]{min-height:24px}.scan-dialog textarea{white-space:pre-wrap}
@media(max-width:700px){header{min-height:76px}.header-brand img{width:clamp(115px,42vw,185px)}.quiet{max-width:106px}.header-brand{gap:6px}.scan-controls{align-items:stretch}.scan-dialog{max-height:calc(100dvh - 24px)}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}header .quiet{font-size:11px;max-width:90px}}
#team-bar{margin:20px 0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:9px}#team-bar:empty{display:none}#team-bar .actions{margin-top:10px}#team-bar span{display:block;font-size:14px;margin-top:6px;color:#466277}.login-panel{max-width:560px;margin:32px auto}.login-panel form,.customer-dialog [data-password],.customer-dialog [data-create]{display:grid;gap:15px}.customer-dialog [data-users]{margin:26px 0}.customer-dialog .scan-field{margin:16px 0}.customer-dialog .scan-field input[type=checkbox]{width:22px;height:22px;min-height:22px}.login-panel [data-error],[data-error]{color:#a72b35;overflow-wrap:anywhere}

/* Version 9 finishing */
.sidefoot{font-size:12px}.login-panel{max-width:590px;margin:4rem auto}.login-panel input{width:100%;max-width:100%}.login-panel .actions{flex-wrap:wrap}.login-panel [data-message]{min-height:1.5rem}.card-preview{width:100%;max-width:550px;max-height:260px;object-fit:contain;background:#eef2f7;border-radius:8px}

/* FLOW branding and equipment worksheet additions */
.header-brand img{width:58px;height:58px;padding:0;background:transparent;border-radius:12px}.official-logo{max-width:175px;padding:0;background:transparent;border-radius:22px}.header-brand span{white-space:normal;letter-spacing:1px}.inspection-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.inspection-stats strong{font-size:25px}.equipment-row p{overflow-wrap:anywhere}.equipment-dialog .formgrid{margin-top:10px}
@media(max-width:1050px){.inspection-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.header-brand img{width:48px;height:48px}.header-brand span{display:block;font-size:10px}nav a{font-size:9px}.inspection-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.inspection-stats strong{font-size:23px}}
@media print{aside,header,#team-bar,footer,#toast,.actions,button{display:none!important}main{margin:0;padding:0;max-width:none}.panel,.stat{break-inside:avoid;box-shadow:none}.equipment-row{break-inside:avoid}.formgrid input,.formgrid textarea{border:0;padding:0;min-height:0}body{background:white}.pagehead{margin:0 0 20px}}

.customer-opportunities{margin-top:22px}.customer-opportunities .sectionhead{flex-wrap:wrap}.opprow h3{margin-top:8px}.opprow .note{white-space:pre-wrap;overflow-wrap:anywhere}
/* A dedicated continuous portrait print view; plain text never clips in form fields. */
#worksheet-print-view{position:fixed;left:-10000px;top:0;width:190mm;background:white;color:#132d43;font:14px/1.5 Arial,sans-serif;padding:0}
#worksheet-print-view h1{font-size:22px;margin:5px 0 0;letter-spacing:0}
#worksheet-print-view h2{font-size:19px;margin:22px 0 10px}
#worksheet-print-view h3{font-size:16px;margin:0 0 6px}
#worksheet-print-view p{margin:8px 0;line-height:1.5;overflow-wrap:anywhere}
.worksheet-print-brand{display:flex;align-items:center;gap:15px;border-bottom:2px solid #173c61;padding-bottom:15px}
.worksheet-print-brand img{width:58px;height:58px}
.worksheet-print-summary{padding:12px;background:#f2f5f7;border:1px solid #dbe3e9}
.worksheet-print-entry{padding:15px 0;border-bottom:1px solid #dbe3e9}
.worksheet-print-notes{white-space:pre-wrap}
.worksheet-print-footer{font-size:12px;color:#526474;padding-top:18px}
@media print{
 body.worksheet-long-print> :not(#worksheet-print-view){display:none!important}
 body.worksheet-long-print #worksheet-print-view{position:static;display:block;width:100%;margin:0;padding:0}
 #worksheet-print-view,#worksheet-print-view article{break-inside:auto;page-break-inside:auto}
 #worksheet-print-view h2,#worksheet-print-view h3{break-after:avoid}
}
