/* Phone layout. Desktop layouts and data handlers remain owned by their existing modules. */
.ch162OpsPicker,.ch162Agenda,.ch162PlanSwitch,.ch162Add{display:none}
@media(max-width:760px){
 html body.appMobile{background:#f3f6fa!important;color:#19314a}
 body.appMobile .shell,body.appMobile .main,body.appMobile .content,body.appMobile .page{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body.appMobile .content{padding:8px 16px calc(96px + env(safe-area-inset-bottom,0px))!important}
 body.appMobile .page{padding-bottom:12px!important}
 body.appMobile header.top{padding:calc(8px + env(safe-area-inset-top,0px)) 16px 9px!important;background:#f3f6fa!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-bottom:1px solid #e4ebf2!important}
 body.appMobile #appBar{min-height:42px;gap:8px}
 body.appMobile #appBar h1,body.appMobile:has(#werkprocessen.active) #appTitle{font-size:23px!important;line-height:1.2!important;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
 body.appMobile #appBar .acts{gap:7px;flex:none}
 body.appMobile #appBar .ib{width:37px;height:37px;background:white;border:1px solid #e1e8f0;box-shadow:none}
 body.appMobile #appBar .ib svg{width:18px;height:18px}
 body.appMobile #appBar .ch162Add{display:grid;background:#143e67;color:white;border-color:#143e67}
 body.appMobile #appFab,body.appMobile #chvFab{display:none!important}
 body.appMobile .mobileAppNav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #e1e8ef!important}
 body.appMobile .mobileAppNav button{min-width:0;min-height:46px!important;font-size:10px!important;gap:4px;color:#788b9d!important}
 body.appMobile .mobileAppNav button svg{width:21px;height:21px}
 body.appMobile .mobileAppNav button.active{color:#176c60!important}
 body.appMobile .page>.title{margin:2px 0 13px!important;justify-content:flex-start!important;min-width:0;flex-wrap:wrap}
 body.appMobile .page>.title>button{min-height:40px!important;height:auto!important;border-radius:12px!important;font-size:12px!important;padding:10px 13px!important;box-shadow:none}
 body.appMobile .primary{background:#154a75;box-shadow:none}
 body.appMobile .ghost{background:white;color:#345571;border:1px solid #dce5ed}
 body.appMobile .card{min-width:0;padding:15px;border:1px solid #e0e8ef!important;box-shadow:none!important;border-radius:18px!important}
 body.appMobile .stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important;margin:0 0 14px!important;padding:0!important;gap:8px!important}
 body.appMobile .stat{min-width:0!important;width:auto!important;padding:13px!important;border:1px solid #e1e9f0!important;box-shadow:none!important}
 body.appMobile .stat b{font-size:21px!important}.appMobile .stat span{font-size:11px!important}
 body.appMobile .toolbar{display:flex!important;flex-wrap:wrap;gap:8px;min-width:0}
 body.appMobile .toolbar input{flex:1 1 170px;min-width:0}
 body.appMobile .toolbar select{flex:1 1 130px;min-width:0}
 body.appMobile .toolbar button{min-height:43px;font-size:12px}
 /* Home: compact context, clear counts, a small speech action below the banner. */
 body.appMobile .ch159Hello{padding:8px 1px 13px}
 body.appMobile .ch159Hello h2{font-size:22px;letter-spacing:-.035em;margin-top:4px}
 body.appMobile .ch159Hello small{font-size:11px;text-transform:none;letter-spacing:0;color:#70859a}
 body.appMobile .ch159Hero{padding:17px 17px 13px;border-radius:18px;box-shadow:none;background:linear-gradient(120deg,#163f65,#16324e)}
 body.appMobile .ch159HeroLabel{display:none}
 body.appMobile .ch159Hero h3{font-size:19px!important;line-height:1.3;margin:0!important;letter-spacing:-.025em}
 body.appMobile .ch159HeroFooter{margin-top:10px;padding-top:9px;font-size:11px}
 body.appMobile .ch159HeroFooter button{font-size:11px;min-height:32px}
 body.appMobile .ch160HomeQuick{margin-top:10px;gap:8px}
 body.appMobile .ch160HomeQuick button{font-size:12px;min-height:42px;border-radius:12px}
 body.appMobile .ch159HomeTabs{margin:14px 0;padding:4px;background:#e4ecf3}
 body.appMobile .ch159HomeTabs button{font-size:13px;min-height:40px}
 body.appMobile .ch159ActionTiles{gap:8px;margin-bottom:16px}
 body.appMobile .ch159ActionTiles button{display:grid;grid-template-columns:24px 1fr;gap:8px 3px;align-items:center;min-height:87px;padding:12px 10px;border-radius:15px;box-shadow:none}
 body.appMobile .ch159TileIcon{width:24px;height:24px;margin:0;border-radius:8px;font-size:12px}
 body.appMobile .ch159ActionTiles b{font-size:25px;text-align:right;letter-spacing:-.04em}
 body.appMobile .ch159ActionTiles small{grid-column:1/-1;font-size:11px;line-height:1.3;margin:0;color:#617a91}
 body.appMobile .ch159HomeSection{padding:15px;border-radius:17px;box-shadow:none;margin-bottom:12px}
 body.appMobile .ch159HomeSection h3,.appMobile .ch161Home h3{font-size:14px;line-height:1.4}
 body.appMobile .ch159HomeRow b{font-size:13px}.appMobile .ch159HomeRow small{font-size:11px;line-height:1.5}
 body.appMobile .ch159HomeFooter{margin-bottom:16px;gap:8px}
 body.appMobile .ch159HomeFooter button{font-size:12px;min-height:60px;line-height:1.45;padding:12px}
 body.appMobile .ch161Home{margin:16px 0}
 body.appMobile .ch161Home>button{padding:13px;border-radius:15px;min-height:72px;box-shadow:none}
 body.appMobile .ch161Home>button b{font-size:13px}.appMobile .ch161Home small{font-size:11px;line-height:1.45}
 /* Work sections: one current section; all others are in a labelled sheet. */
 body.appMobile #werkprocessen>.title{display:none!important}
 body.appMobile #werkprocessen .ch161Tabs{display:none!important}
 body.appMobile .ch162OpsPicker{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:14px 15px;margin:4px 0 16px;background:#fff;border:1px solid #dce6ef;border-radius:16px;text-align:left;color:#173b5b}
 .ch162OpsPicker small{display:block;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#71869b;font-weight:600;margin-bottom:3px}
 .ch162OpsPicker b{display:block;font-size:16px;font-weight:750}.ch162OpsPicker>span:last-child{font-size:20px;color:#66849e}
 body.appMobile .ch161Summary{gap:7px;margin:0 0 15px;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.appMobile .ch161Summary>div{padding:11px 9px;border-radius:14px}
 body.appMobile .ch161Summary small{font-size:10px;line-height:1.5;min-height:29px}.appMobile .ch161Summary b{font-size:17px;line-height:1.5;white-space:nowrap;letter-spacing:-.045em}
 body.appMobile .ch161Top{gap:8px;margin-bottom:13px;display:grid;grid-template-columns:minmax(0,1fr) auto}
 body.appMobile .ch161Top input{width:100%;min-width:0;font-size:16px!important;height:44px;border-radius:12px}
 body.appMobile .ch161Top select{grid-column:1/-1;width:100%;min-height:44px;font-size:16px!important;border-radius:12px}
 body.appMobile .ch161Top button{font-size:12px!important;min-height:44px;padding:10px 12px;border-radius:12px}
 body.appMobile .ch161Top:has(#ch161SlotDate){grid-template-columns:1fr 1fr}
 body.appMobile #ch161SlotCity{grid-column:1/-1;grid-row:2}.appMobile #ch161SlotDuration{max-width:none!important}
 body.appMobile .ch161Rows{gap:10px}
 body.appMobile .ch161Row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:15px;border-radius:16px;align-items:start}
 body.appMobile .ch161Row>div:first-child{grid-column:1/-1;width:100%;min-width:0}
 body.appMobile .ch161Row b{font-size:15px;line-height:1.4}.appMobile .ch161Row small{font-size:12px;line-height:1.5;margin-top:3px;color:#647d94}
 body.appMobile .ch161Row p{font-size:12px;line-height:1.55;margin:7px 0 0}
 body.appMobile .ch161Row>.ghost,.appMobile .ch161Row>.primary{grid-column:2;grid-row:2;font-size:12px;padding:9px 14px;min-height:40px;margin:0;border-radius:11px}
 body.appMobile .ch161Row>.ch161Badge{grid-column:1;grid-row:2;justify-self:start;align-self:center}
 body.appMobile .ch161Badge{font-size:11px;padding:5px 9px;border-radius:8px}
 /* Invoices and customers: full-width cards, without horizontal table scrolling. */
 body.appMobile #invoiceList,body.appMobile #customerList,body.appMobile #planningList{overflow:visible!important;min-width:0!important}
 body.appMobile #facturen>.card,body.appMobile #klanten>.card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.appMobile #invoiceList .qth,body.appMobile #klanten .customerRow.qth{display:none!important}
 body.appMobile #invoiceList .qtr:not(.qth){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;min-width:0!important;width:100%;padding:16px!important;background:#fff;border:1px solid #dfe8ef!important;border-radius:16px!important;margin:0 0 10px!important;align-items:center}
 body.appMobile #invoiceList .qtr>div:nth-child(1){grid-column:1;grid-row:1;font-size:12px;color:#71869a}
 body.appMobile #invoiceList .qtr>div:nth-child(2){grid-column:1/-1;grid-row:2;font-size:16px;color:#153654;overflow-wrap:anywhere}
 body.appMobile #invoiceList .qtr>div:nth-child(3){grid-column:1;grid-row:3;font-size:12px;color:#657f95}
 body.appMobile #invoiceList .qtr>div:nth-child(4){grid-column:2;grid-row:1;justify-self:end}
 body.appMobile #invoiceList .qtr>div:nth-child(5){grid-column:2;grid-row:3;justify-self:end;font-size:18px;color:#163c5d}
 body.appMobile #invoiceList .qtr>div:nth-child(6){display:none}
 body.appMobile #invoiceList .qtr>div:last-child{grid-column:1/-1;grid-row:4;border-top:1px solid #edf2f6;padding-top:10px;margin-top:3px}
 body.appMobile #invoiceList .qtr button{min-height:40px;font-size:12px;padding:9px 13px;border-radius:11px}
 body.appMobile .customerRow:not(.qth){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;min-width:0!important;width:100%;padding:16px!important;background:#fff;border:1px solid #dfe8ef!important;border-radius:16px!important;margin:0 0 10px!important;align-items:start}
 body.appMobile .customerRow>div:first-child{grid-column:1;grid-row:1;font-size:16px}
 body.appMobile .customerRow>div:nth-child(2),body.appMobile .customerRow>div:nth-child(3){grid-column:1/-1;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
 body.appMobile .customerRow>div:nth-child(4){grid-column:2;grid-row:1;justify-self:end}
 body.appMobile .customerRow>div:last-child{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap;padding-top:9px;border-top:1px solid #edf2f6}
 body.appMobile .customerRow .small{font-size:11px;line-height:1.5}
 body.appMobile .customerRow button{min-height:40px!important;font-size:11px!important;border-radius:10px;padding:9px 11px!important}
 /* Leads and quote lists. Keep original nodes, handlers and swipe surfaces. */
 body.appMobile .leadcard{padding:15px!important;border:1px solid #dfe8ef!important;box-shadow:none!important;border-radius:17px!important}
 body.appMobile .leadcard .lcTop>b{font-size:16px}.appMobile .leadcard .lcTop .qsAv{width:37px;height:37px;font-size:13px}
 body.appMobile .leadcard .meta{margin:10px 0 0!important;font-size:12px!important}
 body.appMobile .leadcard .lsc{margin-left:0!important}.appMobile .leadcard .lcQuote{padding:0 11px!important;font-size:12px!important;min-height:36px!important;box-shadow:none!important;border-radius:10px!important}
 body.appMobile .lcActs{gap:6px;margin-top:12px}.appMobile .lcActs a{min-height:40px;border-radius:10px;font-size:12px!important;background:#edf4fa;color:#315c7e;box-shadow:none!important}
 body.appMobile .lcActs a.wa{background:#e8f4ef;color:#27735a;box-shadow:none!important}
 body.appMobile .lcActs a.map{background:#f1f4f8;color:#526e86}
 body.appMobile .aList{box-shadow:none;border:1px solid #e0e8f0;border-radius:16px}
 body.appMobile .aRow{padding:15px 13px;gap:10px;min-height:83px}.appMobile .aMid b{font-size:15px}.appMobile .aMid span{font-size:12px;line-height:1.5}
 body.appMobile .aAv{width:37px;height:37px;font-size:13px}.appMobile .aEnd b{font-size:14px}
 body.appMobile .segs button{font-size:12px!important;min-height:38px!important;height:38px!important;padding:0 12px!important}
 body.appMobile #qsFuDash .qsFuRow,body.appMobile #qsFuQuotes .qsFuRow{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
 body.appMobile .qsFuActs{display:flex;gap:6px;flex-wrap:wrap;max-width:100%}
 body.appMobile .ch160Kpi{min-height:96px;padding:13px;gap:6px;box-shadow:none;border-radius:15px}
 body.appMobile .ch160Kpi>b{font-size:22px;letter-spacing:-.035em}.appMobile .ch160Kpi>small{min-height:28px;font-size:11px}
 body.appMobile .ch160Toolbar nav{gap:4px;border-radius:12px}.appMobile .ch160Toolbar nav button{padding:10px;font-size:11px;min-height:39px}
 body.appMobile .ch160Result h2{font-size:22px}.appMobile .ch160Row{border-radius:14px}
 /* Date-first planning on a phone. Calendar remains available explicitly. */
 body.appMobile .ch162PlanSwitch{display:flex;gap:5px;background:#e5edf4;padding:4px;border-radius:12px;margin-bottom:14px}
 .ch162PlanSwitch button{flex:1;background:transparent;color:#6a8296;border-radius:9px;font-size:13px;min-height:40px}
 .ch162PlanSwitch button.on{background:white;color:#1c4869;box-shadow:0 1px 5px #1b3c5010}
 body.appMobile .ch162Agenda{display:block}
 body.appMobile #planning:not(.ch162CalendarMode) #calPlanning,body.appMobile #planning:not(.ch162CalendarMode)> .card{display:none!important}
 body.appMobile #planning.ch162CalendarMode .ch162Agenda{display:none}
 body.appMobile #planning.ch162CalendarMode .calBox{padding:10px!important;overflow:auto}
 .ch162AgendaDays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0 17px}
 .ch162AgendaDays button{display:grid;gap:7px;justify-items:center;padding:10px 2px;background:#fff;border:1px solid #e0e8ef;border-radius:12px;color:#6b8397;min-height:64px}
 .ch162AgendaDays button small{font-size:10px;font-weight:500}.ch162AgendaDays button b{font-size:17px;color:#1c405e}
 .ch162AgendaDays button.on{background:#184d70;border-color:#184d70;color:#d5e6ed}.ch162AgendaDays button.on b{color:white}
 .ch162AgendaHead{display:flex;align-items:center;gap:8px;justify-content:space-between}.ch162AgendaHead>button{background:white;border:1px solid #dce6ee;color:#426783;padding:10px 13px;font-size:12px;min-height:42px;border-radius:11px}
 .ch162AgendaHead input{min-width:0;flex:1;background:white;border:1px solid #dce6ee;padding:10px;font-size:16px;height:42px;border-radius:11px}
 .ch162AgendaLabel{margin:18px 1px 10px;font-size:12px;color:#6c8398;font-weight:600}
 .ch162Appointment{display:grid;grid-template-columns:45px minmax(0,1fr);gap:12px;background:white;border:1px solid #dfe8ef;border-radius:16px;padding:16px;margin-bottom:10px;cursor:pointer}
 .ch162Appointment>time{font-size:13px;font-weight:750;color:#1a5b79;padding-top:2px}
 .ch162Appointment b{display:block;font-size:15px;color:#183c58}.ch162Appointment small{display:block;font-size:12px;color:#6b8296;line-height:1.55;margin:4px 0}
 .ch162Appointment .ch161Badge{font-size:10px;margin-top:5px}
 /* Long forms fill the phone and keep the close control visible. */
 body.appMobile .modal .boxhead h2{font-size:19px!important;line-height:1.3}.appMobile .modal .boxhead button{flex:none;min-width:40px;min-height:40px}
 body.appMobile .ch159Header{padding-left:15px;padding-right:15px}.appMobile .ch159Header h2{font-size:17px}
 body.appMobile .ch159Body{padding:17px 15px calc(30px + env(safe-area-inset-bottom,0px))}
 body.appMobile .ch161Form{gap:13px}.appMobile .ch161Form label{font-size:12px}.appMobile .ch161Form input,.appMobile .ch161Form select,.appMobile .ch161Form textarea{border-radius:12px;min-height:45px}
 body.appMobile .ch161Form>button.primary{min-height:47px;border-radius:12px;font-size:14px}
 body.appMobile .ch160CustomerTools{display:grid;grid-template-columns:1fr 1fr;gap:7px}.appMobile .ch160CustomerTools button{min-height:43px;white-space:normal;line-height:1.35}
 body.appMobile .mobileMorePanel{max-height:88dvh!important;overflow-y:auto;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important}
 body.appMobile .chMoreRow{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.appMobile .chMoreRow button{min-height:63px!important;display:flex!important;flex-direction:row!important;text-align:left!important;justify-content:flex-start!important;font-size:12px!important;gap:8px!important;padding:10px!important;border:1px solid #e0e8ef!important;border-radius:13px!important;box-shadow:none!important;line-height:1.4}
 body.appMobile .chMoreRow button i{width:30px;height:30px;flex:none;border-radius:9px;font-size:16px}
}
.ch162SectionDialog{width:min(440px,100%);padding:0;border:0;border-radius:22px;max-height:88dvh;background:#f5f8fb;color:#1a3b56;box-shadow:0 25px 80px #102c4b33}
.ch162SectionDialog::backdrop{background:#102c4b66}
.ch162SectionDialog header{display:flex;justify-content:space-between;align-items:center;padding:18px 18px 13px;background:#fff;position:sticky;top:0;border-bottom:1px solid #e0e8ef}
.ch162SectionDialog header h2{font-size:18px;margin:0}.ch162SectionDialog header button{border:0;background:#eef3f8;border-radius:50%;width:36px;height:36px;padding:0;font-size:20px}
.ch162SectionOptions{padding:8px 12px 14px}.ch162SectionOptions button{display:flex;align-items:center;gap:12px;padding:13px 10px;border-radius:12px;width:100%;margin:4px 0;background:#fff;border:1px solid #e1e9ef;color:#284c68;text-align:left;min-height:58px}
.ch162SectionOptions button>i{font-style:normal;width:34px;height:34px;border-radius:10px;background:#edf4f8;color:#316886;display:grid;place-items:center;flex:none;font-size:17px}
.ch162SectionOptions button>b{font-size:13px;flex:1}.ch162SectionOptions button.on{border-color:#297c70;background:#f0f8f4}.ch162SectionOptions button.on>i{background:#dbeee4;color:#23765f}
@media(max-width:760px){.ch162SectionDialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}}
@media(prefers-reduced-motion:reduce){body.appMobile .page.active{animation:none!important}}
@media(max-width:760px){body.appMobile #appBar .ch162Add[hidden]{display:none!important}body.appMobile .ch159Invoice .ch159Body{padding:0!important}body.appMobile #invoiceList .qtr>div:nth-child(4),body.appMobile .customerRow>div:nth-child(4){margin-right:23px}body.appMobile #planningList .qth{display:none!important}body.appMobile #planningList .qtr:not(.qth){display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;gap:9px;background:white;padding:14px;border:1px solid #e0e8ef;border-radius:15px;margin:10px 0}body.appMobile #planningList .qtr>div:nth-child(2),body.appMobile #planningList .qtr>div:nth-child(5),body.appMobile #planningList .qtr>div:nth-child(6){grid-column:1/-1;overflow-wrap:anywhere}body.appMobile #planningList .qtr>div:last-child{grid-column:1/-1}body.appMobile .ch162Appointment:focus-visible{outline:3px solid #2e897b;outline-offset:2px}}
.ch162OpsControls{display:none}@media(max-width:760px){body.appMobile .ch162OpsControls{display:flex;align-items:stretch;gap:8px;margin:4px 0 16px}body.appMobile .ch162OpsControls .ch162OpsPicker{flex:1;min-width:0;width:auto;margin:0}.ch162OpsRefresh{width:44px;flex:none;min-height:44px;background:white;color:#53758f;border:1px solid #dce6ef;border-radius:13px;display:grid;place-items:center;padding:11px}.ch162OpsRefresh svg{width:20px;height:20px}.ch162OpsRefresh:disabled{opacity:.5}}
@media(max-width:760px){body.appMobile #invoiceList .qtr:not(.qth){grid-template-areas:"nr status" "klant klant" "datum total" "act act"!important}body.appMobile #invoiceList .qtr>.rowActions{grid-area:act;grid-row:4;grid-column:1/-1;justify-self:stretch;width:100%;border-top:1px solid #edf2f6;padding-top:10px;margin-top:3px}body.appMobile #invoiceList .qtr>.rowActions button{flex:1;border-radius:11px!important;min-height:40px!important;padding:9px 13px!important}}
