/* Customer file and invoice: fixed controls outside the scrolling document. */
.ch159Modal{position:fixed!important;inset:0!important;z-index:100500!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:#0b244766!important;backdrop-filter:blur(5px)}
.ch159Sheet{width:min(830px,100%);max-height:94dvh;background:#f4f7fb;border-radius:24px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 25px 90px #0b244735}
.ch159Header{display:flex;align-items:center;gap:12px;padding:18px 20px;background:#fff;border-bottom:1px solid #e6edf5;flex:0 0 auto;z-index:5}.ch159Header h2{font-size:19px;margin:0;line-height:1.3}.ch159Header small{color:#73849a}.ch159Header>div{flex:1;min-width:0}.ch159Back,.ch159Close{border:1px solid #e3eaf3;background:#f7f9fc;color:#153e70;padding:0;width:42px;height:42px;min-width:42px;font-size:27px;border-radius:50%}.ch159Body{padding:20px;overflow:auto;min-height:0;overscroll-behavior:contain}.ch159Body h3{font-size:16px;margin:24px 0 10px}.ch159Contact{display:flex;gap:10px;flex-wrap:wrap;color:#52677d;font-size:14px;overflow-wrap:anywhere}.ch159Contact a{color:#245d9b;text-decoration:none}.ch159Contact small{flex-basis:100%}.ch159Tabs{display:flex;gap:5px;padding:5px;background:#e9eef5;border-radius:13px;margin:20px 0;overflow-x:auto}.ch159Tabs button{flex:1;min-width:max-content;background:transparent;font-size:13px;padding:10px 13px;color:#617289;border-radius:10px}.ch159Tabs .on{background:#fff;box-shadow:0 2px 5px #0b24470b;color:#153e70}.ch159Counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 18px}.ch159Counts>div{background:#fff;border:1px solid #e4ebf3;border-radius:15px;padding:15px}.ch159Counts b{display:block;font-size:25px}.ch159Counts small,.ch159Muted{color:#75869c}.ch159Doc{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e5ecf4;padding:14px;border-radius:13px;margin:8px 0;width:100%;text-align:left;color:#163451}.ch159Doc small,.ch159ReportHead small{display:block;font-weight:400;font-size:12px;color:#76869a;margin-top:4px}.ch159Report{background:#fff;border:1px solid #e2eaf3;border-radius:19px;padding:18px;margin:14px 0}.ch159ReportHead{display:flex;gap:11px;align-items:center}.ch159ReportHead>div{min-width:0}.ch159Check{display:grid;place-items:center;background:#e5f5ed;color:#14744d;border-radius:13px;width:39px;height:39px;flex:none}.ch159By{font-size:13px;color:#6b7d92;margin:14px 0}.ch159By b{color:#183b60}.ch159By span{display:inline-block;border-radius:8px;background:#eef2f9;padding:3px 7px;font-size:11px}.ch159Note{white-space:pre-wrap;font-size:14px;line-height:1.6;background:#f5f8fb;padding:12px;border-radius:11px}.ch159Photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.ch159Photos a{position:relative;border-radius:12px;overflow:hidden;aspect-ratio:1;display:block;background:#eef3f8}.ch159Photos img{width:100%;height:100%;object-fit:cover}.ch159Photos span{position:absolute;bottom:5px;left:5px;max-width:95%;font-size:10px;background:#102b48b5;color:white;padding:3px 7px;border-radius:6px}.ch159Empty{padding:36px 22px;text-align:center;background:#fff;border:1px dashed #dbe5f0;border-radius:18px;color:#64798f;margin:14px 0}.ch159Empty>b{display:block;color:#24496f}.ch159CompletedList{max-width:960px}.ch159CompletedSearch{max-width:650px}.ch159Result{overflow-wrap:anywhere;margin-top:14px}.ch159Result input{font-size:12px}.ch159Invoice{z-index:100700!important}.ch159Invoice .ch159Sheet{height:96dvh;max-height:96dvh;width:min(1000px,100%)}.ch159Invoice .ch159Body{padding:0;display:flex;flex-direction:column;flex:1;overflow:hidden}.ch159Invoice iframe{border:0;width:100%;flex:1;min-height:0;background:#e6ecf3}.ch159Invoice footer{display:flex;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;flex:none;border-top:1px solid #e6edf5}.ch159Invoice footer button{flex:1}
/* Swipe cards are clipped to their own rounded shell; no offscreen panels. */
.ch159Swipe[hidden],.ch159SwipeRow[hidden]{display:none!important}.ch159Swipe{position:relative;overflow:hidden;border-radius:16px;margin:8px 0;background:#edf3f8;isolation:isolate;min-width:0}.ch159SwipeRow{position:relative;z-index:1;transform:translateX(0);transition:transform .25s cubic-bezier(.22,.7,.2,1);touch-action:pan-y;background:#fff!important;margin:0!important;border-radius:inherit!important;padding-right:40px!important;box-shadow:none!important}.ch159Swipe.dragging>.ch159SwipeRow{transition:none}.ch159SwipeSide{position:absolute;inset:0;display:flex;justify-content:center;flex-direction:column;gap:7px;padding:18px;color:#fff;font-size:11px;visibility:hidden}.ch159SwipeSide svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.ch159SwipeFolder{background:#207960;align-items:flex-start}.ch159SwipeTrash{background:#d74556;align-items:flex-end}.ch159Swipe.folder .ch159SwipeFolder,.ch159Swipe.trash .ch159SwipeTrash{visibility:visible}.ch159SwipeMore{position:absolute;right:6px;top:7px;width:30px;min-height:30px!important;height:30px!important;display:grid;place-items:center;background:#f0f4f9;color:#8798aa;border-radius:50%;padding:0!important;z-index:2;font-size:15px;line-height:1}.ch159SwipeMore:hover{background:#e2ebf5;color:#123b70}.ch159FolderDialog{width:min(420px,94vw);max-height:90dvh;overflow:auto;padding:24px;border:0;border-radius:24px;color:#163451;box-shadow:0 25px 90px #102b4830}.ch159FolderDialog::backdrop{background:#102b4866;backdrop-filter:blur(4px)}.ch159FolderDialog header{display:flex;gap:12px;align-items:center}.ch159FolderDialog h3{margin:0;font-size:19px}.ch159FolderDialog p{font-size:13px;color:#8291a5;margin:5px 0}.ch159FolderChoices{display:grid;gap:5px;margin:20px 0}.ch159FolderChoices button{display:flex;align-items:center;gap:12px;text-align:left;background:#f5f8fc;border-radius:14px;min-height:59px;padding:12px;color:#1e4168}.ch159FolderChoices button>b{flex:1}.ch159FolderChoices>button>svg{width:24px;fill:none;stroke:currentColor;stroke-width:1.8}.ch159FolderIcon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#edf3fa;color:#376dad;flex:none}.ch159FolderIcon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.ch159FolderIcon.amber{background:#fff2d9;color:#a77924}.ch159FolderIcon.purple{background:#f1eafd;color:#8b6db9}.ch159FolderIcon.green{background:#e4f4ed;color:#258360}.ch159FolderDialog .ch159Cancel{width:100%;min-height:44px}.ch159FolderGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ch159FolderGrid button{display:flex;align-items:center;gap:10px;min-height:76px;background:#fff;border:1px solid #e0e8f2;color:#24496f;text-align:left;border-radius:16px}.ch159FolderGrid button.on{border-color:#5489bf;box-shadow:0 0 0 2px #5489bf15}.ch159FolderGrid small{margin-left:auto;color:#8c9db0}.ch159FolderItem{display:flex;align-items:center;gap:10px;padding:17px}.ch159FolderItem>div{flex:1;min-width:0}.ch159FolderItem small{display:block;color:#8192a6;font-size:12px;margin-top:3px}.ch159FolderAvatar{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:#edf3fa;color:#376dad;font-weight:800}.ch159DeliveredLink{margin-top:16px}#ch159Toast{position:fixed;z-index:100900;bottom:calc(95px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;display:flex;gap:18px;align-items:center;background:#102b48;color:#fff;border-radius:15px;padding:13px 15px;box-shadow:0 10px 35px #102b4830;font-size:13px;max-width:94vw;transition:.2s}#ch159Toast.on{opacity:1;pointer-events:auto;transform:translate(-50%,0)}#ch159Toast button{background:#ffffff1a;color:#b5e4d3;white-space:nowrap;font-size:12px;min-height:35px}.ch159Empty>.ch159FolderIcon{margin:0 auto 15px}
@media(max-width:760px){.ch159Modal{padding:0!important;align-items:stretch!important}.ch159Sheet{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.ch159Header{padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px}.ch159Header h2{font-size:17px}.ch159Body{padding:18px 16px calc(90px + env(safe-area-inset-bottom,0px))}.ch159Invoice .ch159Sheet{height:100dvh;max-height:100dvh}.ch159Invoice .ch159Body{padding:0}.ch159FolderGrid{grid-template-columns:1fr 1fr;gap:9px}.ch159FolderGrid button{padding:13px 11px;font-size:12px;gap:7px}.ch159FolderGrid .ch159FolderIcon{width:30px;height:33px}.ch159FolderItem{flex-wrap:wrap}.ch159FolderItem .ghost{font-size:12px;min-height:35px}.ch159FolderChoices button{min-height:61px}.ch159Swipe .ch159SwipeRow{padding-right:43px!important}.ch159Photos{grid-template-columns:repeat(2,minmax(0,1fr))}.ch159Tabs{margin-left:-2px;margin-right:-2px}.ch159Invoice footer button{font-size:12px}.ch159Report .ch159OpenCustomer{font-size:12px}}
/* Mobile home: a single visual hierarchy, with a dedicated follow-up tab. */
#ch159Home{display:none}
@media(max-width:760px){#dashboard.active{display:block!important}#dashboard>*:not(#ch159Home):not(#qsFuDash){display:none!important}#dashboard>#ch159Home{display:block!important}#dashboard:not(.ch159Following)>#qsFuDash{display:none!important}#dashboard.ch159Following .ch159Daily{display:none!important}#dashboard #qsFuDash{margin:14px 0 95px!important;border:0!important;box-shadow:none!important;padding:16px!important;border-radius:21px!important}#dashboard #qsFuDash .qsFuHead>span{display:none}
.ch159Hello{display:flex;justify-content:space-between;align-items:center;padding:8px 2px 17px}.ch159Hello small{display:block;color:#7c8da3;font-size:11px;text-transform:uppercase;letter-spacing:.1em}.ch159Hello h2{font-size:25px;letter-spacing:-.05em;margin:3px 0;color:#123452}.ch159HomeAvatar{display:grid;place-items:center;width:43px;height:43px;border-radius:15px;background:#e3edea;color:#29745d;font-weight:800;border:3px solid #fff;box-shadow:0 4px 10px #123b7009}.ch159Hero{position:relative;overflow:hidden;padding:24px 21px 20px;border-radius:23px;background:linear-gradient(125deg,#133c64,#0c2846);color:#fff;box-shadow:0 12px 27px #123b7018}.ch159Hero:after{content:'';position:absolute;width:180px;height:180px;border:1px solid #ffffff0b;border-radius:50%;right:-60px;top:-70px;box-shadow:0 0 0 26px #ffffff03,0 0 0 55px #ffffff02;pointer-events:none}.ch159HeroLabel{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#b1c9dd}.ch159HeroLabel i{width:6px;height:6px;background:#87cdb4;border-radius:50%}.ch159Hero h3{font-size:24px;line-height:1.25;letter-spacing:-.04em;margin:12px 0 7px;color:white}.ch159Hero p{font-size:12px;line-height:1.7;color:#b5c9da;margin:0;max-width:240px}.ch159HeroFooter{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff16;margin-top:20px;padding-top:14px;color:#d4e3ed;font-size:11px}.ch159HeroFooter button{background:#ffffff12;color:#fff;font-size:11px;min-height:32px;padding:6px 10px}.ch159HomeTabs{display:flex;gap:6px;margin:20px 0 17px;padding:4px;background:#e7edf4;border-radius:13px}.ch159HomeTabs button{flex:1;background:transparent;color:#7a8ba1;font-size:12px;border-radius:10px;min-height:38px}.ch159HomeTabs button.on{background:#fff;color:#1f456d;box-shadow:0 3px 8px #14345408}.ch159ActionTiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:21px}.ch159ActionTiles button{padding:14px 11px;background:#fff;border-radius:17px;border:1px solid #e5ecf4;text-align:left;min-height:121px;box-shadow:0 4px 10px #123b7003}.ch159TileIcon{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#edf3fa;color:#5682ac;font-size:13px;margin-bottom:8px}.ch159ActionTiles button:nth-child(2) .ch159TileIcon{background:#fff1de;color:#bf9558}.ch159ActionTiles button:nth-child(3) .ch159TileIcon{background:#e6f4ee;color:#629e83}.ch159ActionTiles b{font-size:24px;font-weight:750;line-height:1.2;display:block;color:#163a5e;letter-spacing:-.06em}.ch159ActionTiles small{display:block;font-weight:500;font-size:10px;color:#8191a5;margin-top:3px}.ch159HomeSection{background:#fff;border:1px solid #e5ecf4;border-radius:20px;padding:18px;margin-bottom:14px}.ch159HomeSection h3{font-size:14px;letter-spacing:-.02em;margin:0 0 14px;color:#193d60;display:flex;justify-content:space-between;align-items:center}.ch159HomeSection h3>button{background:transparent;color:#8b9db0;font-weight:600;padding:0;min-height:24px;font-size:10px}.ch159HomeRow{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #f0f3f7;text-align:left;background:transparent;width:100%;border-radius:0}.ch159HomeRow:first-of-type{border:0}.ch159HomeRow>div{flex:1;min-width:0}.ch159HomeRow b{font-size:12px;color:#25496b;display:block}.ch159HomeRow small{display:block;font-size:10px;color:#8b9bb0;font-weight:400;line-height:1.5;margin-top:3px}.ch159HomeRow>span{font-size:11px;color:#8ba1b7}.ch159HomeTime{color:#2e5b86!important;font-weight:700;font-size:11px!important;width:35px;flex:none}.ch159HomeDot{width:8px;height:8px;border-radius:50%;background:#d7e9de;flex:none}.ch159HomeFooter{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:90px}.ch159HomeFooter button{display:flex;align-items:center;gap:8px;text-align:left;font-size:11px;color:#52728f;border:1px solid #e1e9f2;background:#edf3f8;padding:14px;border-radius:15px}.ch159HomeFooter svg{width:19px;height:19px;fill:none;stroke:#7398b6;stroke-width:1.7}.ch159HomeEmpty{font-size:12px;color:#8a9cb0;line-height:1.7;margin:4px 0}#dashboard .ch159Swipe{border:1px solid #e9eef5;margin:9px 0}#dashboard .ch159SwipeRow.qsFuRow{padding:14px 40px 14px 12px!important}#dashboard .qsFuActs{padding-top:8px}#dashboard .qsFuRow b{font-size:14px}#dashboard .qsFuRow .m{font-size:11px}#dashboard .qsFuRow>.qsAv{width:36px;height:36px;font-size:12px}.ch159HomeNotes{font-size:12px;color:#526f88;line-height:1.6}
}
@media(max-width:760px){body:has(#dashboard.active) #appFab,body:has(#dashboard.active) #chvFab{display:none!important}body:has(#dashboard.active) #appTitle{font-size:23px!important}.ch159Hero h3{font-size:25px}.ch159HomeQuick{display:flex;gap:7px}.ch159HomeQuick button{width:36px;height:36px;min-height:36px;background:#e8f1ee;color:#397b64;border:1px solid #fff;border-radius:12px;display:grid;place-items:center;padding:0;font-size:24px}.ch159HomeQuick svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.ch159HomeQuick button+button{background:#e6edf5;color:#3d658f}.ch159ActionTiles button{min-width:0}#qsFuDash .qsFuActs .ic{box-shadow:none!important;font-size:12px!important}#qsFuDash .qsFuActs .wa{background:#eaf5ee!important;color:#2b7b54!important}#qsFuDash .qsFuActs .open{background:#e9f0f8!important;color:#2b567f!important}#qsFuDash .qsFuActs .call{background:#eef4fb!important;color:#3c6fa3!important}.ch159HomeTabs button{min-width:0}}
#ch159Toast{width:min(360px,92vw)}#ch159Toast>span{flex:1}
@media(max-width:760px){.ch159FolderItem{display:grid!important;grid-template-columns:39px minmax(0,1fr) auto;gap:9px 10px}.ch159FolderItem>.ch159FolderAvatar{grid-column:1;grid-row:1}.ch159FolderItem>div{grid-column:2/4;grid-row:1;padding-right:15px;overflow-wrap:anywhere}.ch159FolderItem>[data-item-open]{grid-column:2;justify-self:start}.ch159FolderItem>[data-item-restore]{grid-column:3}.ch159Tabs button{font-size:12px;padding:10px 9px}}

/* v164: actions are siblings of clickable cards, avoiding nested buttons. */
.ch159Swipe[hidden],.ch159SwipeRow[hidden]{display:none!important}.ch159Swipe{min-width:0;max-width:100%}.ch159Swipe>.ch159SwipeMore{position:absolute;right:4px;top:8px;z-index:4;min-width:36px;min-height:36px}.ch159SwipeRow{touch-action:pan-y}.ch159SwipeRow.ch163Opportunity{margin:0}.ch159Swipe:has(>.ch163Opportunity){margin:12px 0}.ch159SwipeSide{pointer-events:none}
.calDay .ch159Swipe{border-radius:6px;margin:3px 0;font-size:11px}.calDay .ch159SwipeRow{display:block;padding-right:27px!important}.calDay .ch159SwipeMore{width:22px;min-width:22px;min-height:22px!important;height:22px!important;top:0;right:0;font-size:11px}
/* v174: tijdelijke monteurslink */
.ch159Body textarea{width:100%;box-sizing:border-box;font:inherit;border:1px solid #dbe3ed;border-radius:12px;padding:11px 12px;margin-top:6px;resize:vertical}
.ch159Body .ch174Check{display:flex;align-items:flex-start;gap:10px;font-weight:600;margin:14px 0 4px;cursor:pointer}
.ch159Body .ch174Check input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:#11a356}
.ch159Body .ch174Wa{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid #b8dcc6;background:#f2fbf5;color:#156b38;font-weight:750;text-decoration:none;margin-top:8px}
