/* Mobile dashboard and planning workspace. Desktop layout remains governed by its existing styles. */
@media(max-width:760px){
 .staff-app :is(.szm-dashboard-workspace,.szm-tour-workspace){width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 .staff-app :is(.szm-dashboard-panel,.revenue-dashboard,.szm-revenue-annual,.szm-tour-main-panel,.szm-tour-map-panel,.szm-tour-customer-panel,.szm-tour-proposals-panel){min-width:0;max-width:100%}
 .staff-app :is(.szm-dashboard-workspace,.szm-tour-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px!important;max-width:100%;min-width:0;box-sizing:border-box}
 .staff-app .szm-dashboard-heading{margin:0 0 12px;padding:0}.staff-app .szm-dashboard-heading h1{font-size:24px;line-height:1.2;margin:0 0 5px}.staff-app .szm-dashboard-heading p{font-size:13px;line-height:1.4;margin:0;color:#64748b}
 .staff-app .szm-dashboard-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;margin:0 0 16px;min-width:0}.staff-app .szm-dashboard-tabs>button{width:100%;min-width:0;min-height:46px;padding:10px 8px;font-size:14px;justify-content:center;box-sizing:border-box}
 .staff-app .szm-dashboard-workspace .revenue-heading{display:grid;gap:8px;align-items:start;margin-bottom:10px}.staff-app .szm-dashboard-workspace .revenue-heading .staff-kicker{display:none}.staff-app .szm-dashboard-workspace .revenue-heading h1{font-size:22px;line-height:1.2;margin:0 0 5px}.staff-app .szm-dashboard-workspace .revenue-heading p{font-size:13px;margin:0;line-height:1.4}
 .staff-app .szm-dashboard-workspace .revenue-actions{display:flex;gap:7px;flex-wrap:wrap;width:100%;align-items:center}.staff-app .szm-dashboard-workspace .revenue-actions :is(button,a){min-height:44px;min-width:44px;margin:0;padding:9px 11px;box-sizing:border-box;font-size:13px}
 .staff-app .szm-dashboard-workspace .szm-revenue-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.staff-app .szm-dashboard-workspace .szm-revenue-periods button{min-width:0;min-height:44px;padding:9px 7px;font-size:13px;margin:0}
 .staff-app .szm-dashboard-workspace .revenue-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px;margin:12px 0}.staff-app .szm-dashboard-workspace .revenue-toolbar>label{flex:1 1 140px;min-width:0}.staff-app .szm-dashboard-workspace .revenue-toolbar :is(input,select){width:100%;min-height:44px}.staff-app .szm-dashboard-workspace .revenue-asof{font-size:12px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
 .staff-app .szm-dashboard-workspace :is(.revenue-kpis,.revenue-metrics,.staff-metrics){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.staff-app .szm-dashboard-workspace :is(.revenue-kpis,.revenue-metrics,.staff-metrics)>*{min-width:0;padding:12px}
 .staff-app .szm-dashboard-workspace .szm-dashboard-panel-board{grid-template-columns:minmax(0,1fr);gap:12px}.staff-app .szm-dashboard-workspace .szm-dashboard-widget{grid-column:1!important;border-radius:11px}.staff-app .szm-dashboard-workspace .szm-dashboard-widget-tools{padding:5px 8px;gap:5px;flex-wrap:wrap}.staff-app .szm-dashboard-workspace .szm-dashboard-widget-tools button{min-height:44px;min-width:44px;padding:8px;font-size:12px}.staff-app .szm-dashboard-workspace .szm-dashboard-widget-tools .szm-dashboard-drag-handle{margin-right:auto}
 .staff-app .szm-dashboard-workspace :is(.staff-panel,.revenue-chart){padding:14px;min-width:0;max-width:100%;box-sizing:border-box}.staff-app .szm-dashboard-workspace :is(.staff-panel,.revenue-chart) h2{font-size:17px;line-height:1.35}.staff-app .szm-dashboard-workspace .szm-annual-heading{gap:10px}.staff-app .szm-dashboard-workspace .szm-annual-heading .szm-salary-settings-button{min-height:44px;width:100%;font-size:13px}.staff-app .szm-dashboard-workspace .szm-revenue-annual{gap:12px;margin-top:12px}
 .staff-app :is(.szm-dashboard-workspace,.szm-tour-workspace) :is(.revenue-table-scroll,.szm-tour-table-scroll){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.staff-app .szm-dashboard-workspace .revenue-table-scroll table{font-size:12px}.staff-app .szm-dashboard-workspace .revenue-table-scroll :is(th,td){padding:9px 8px;white-space:nowrap}
 .staff-app .szm-tour-workspace .szm-tour-toprow{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px;min-width:0}.staff-app .szm-tour-workspace .szm-tour-primary-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(48px,auto);gap:7px!important;width:100%;max-width:100%;margin:0 0 2px;box-sizing:border-box}
 .staff-app .szm-tour-workspace .szm-tour-primary-tabs>button[data-tour-tab]{flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:48px!important;max-height:none!important;white-space:normal!important;padding:8px 10px!important;font-size:12px!important;line-height:16px!important;justify-content:flex-start;box-sizing:border-box!important;text-align:left}
 .staff-app .szm-tour-workspace .szm-tour-primary-tabs>button[data-tour-tab]>span{white-space:normal!important;overflow-wrap:anywhere}.staff-app .szm-tour-workspace .szm-tour-subtabs{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}.staff-app .szm-tour-workspace .szm-tour-subtabs>button{flex:1 1 130px;min-height:44px;min-width:0;padding:9px;font-size:13px;white-space:normal}
 .staff-app .szm-tour-workspace .szm-tour-map-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px;align-items:start;min-width:0;height:auto!important}.staff-app .szm-tour-workspace .szm-tour-left-column{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.staff-app .szm-tour-workspace .szm-app-plan-options{border:1px solid #d7e1ee;border-radius:10px;background:#fff;margin:0;padding:0}.staff-app .szm-tour-workspace .szm-app-plan-options>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:10px 12px;box-sizing:border-box;cursor:pointer;color:#203b5b;list-style:none}.staff-app .szm-tour-workspace .szm-app-plan-options>summary:after{content:'⌄';font-size:20px;margin-left:4px}.staff-app .szm-tour-workspace .szm-app-plan-options[open]>summary{border-bottom:1px solid #e0e7ef}.staff-app .szm-tour-workspace .szm-app-plan-options[open]>summary:after{transform:rotate(180deg)}.staff-app .szm-tour-workspace .szm-app-plan-options>summary strong{font-size:14px}.staff-app .szm-tour-workspace .szm-app-plan-options>summary span{font-size:12px;color:#60758c}.staff-app .szm-tour-workspace .szm-tour-left-content{min-width:0;max-width:100%;padding:8px;box-sizing:border-box}
 .staff-app .szm-tour-workspace .szm-tour-date-controls{display:flex;flex-wrap:wrap;align-items:center;gap:5px;width:100%;min-width:0;box-sizing:border-box;padding:6px}.staff-app .szm-tour-workspace .szm-tour-date-controls>label{flex:1 1 140px;min-width:0}.staff-app .szm-tour-workspace .szm-tour-date-controls :is(button,input){min-height:44px;box-sizing:border-box}.staff-app .szm-tour-workspace .szm-tour-date-controls>input{flex:1 1 140px;width:140px;min-width:0}.staff-app .szm-tour-workspace .szm-tour-date-controls button{min-width:38px;padding:8px}
 .staff-app .szm-tour-workspace .szm-tour-map-column{min-width:0;max-width:100%;height:clamp(320px,55svh,480px)!important;min-height:320px;position:relative}.staff-app .szm-tour-workspace .szm-tour-map-column>div:first-child{height:100%!important;min-height:0!important;max-width:100%}.staff-app .szm-tour-workspace .szm-tour-map-column .leaflet-container{height:100%!important;min-height:0!important}
 .staff-app .szm-tour-workspace .szm-map-size-controls{flex-wrap:wrap;gap:8px;max-width:100%;padding:6px 0}.staff-app .szm-tour-workspace .szm-map-size-controls label{min-width:85px;flex:1 1 85px}.staff-app .szm-tour-workspace .szm-map-size-controls input[type=range]{min-height:28px}
 .staff-app .szm-tour-workspace .szm-tour-status-strip{display:flex;flex-wrap:wrap;gap:7px;min-width:0;font-size:12px}.staff-app .szm-tour-workspace .szm-tour-status-strip button{min-height:44px}.staff-app .szm-tour-workspace .szm-tour-main-panel{padding:12px}.staff-app .szm-tour-workspace :is(.szm-tour-customer-panel,.szm-tour-proposals-panel){width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 .staff-app .szm-tour-workspace .szm-tour-driver-card{min-width:0}.staff-app .szm-tour-workspace .szm-tour-driver-select{min-height:44px}.szm-tour-wide-dialog{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:90svh!important;padding:14px!important;box-sizing:border-box}
}

@media(max-width:760px){.staff-app .szm-dashboard-workspace .revenue-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 44px;align-items:center}.staff-app .szm-dashboard-workspace .revenue-toolbar>label{grid-column:1/-1;width:100%}.staff-app .szm-dashboard-workspace .revenue-asof{grid-column:1;min-width:0;width:auto!important;display:flex;gap:8px;align-items:center;overflow-wrap:normal}.staff-app .szm-dashboard-workspace .revenue-asof svg{flex-shrink:0}.staff-app .szm-dashboard-workspace .revenue-toolbar>button{grid-column:2;min-height:44px;min-width:44px}.staff-app .szm-dashboard-workspace .revenue-toolbar .revenue-asof :is(strong,span,div){max-width:100%;overflow-wrap:normal;word-break:normal}.staff-app .szm-tour-workspace .szm-tour-toprow{height:auto!important;min-height:0;grid-auto-rows:auto}.staff-app .szm-tour-workspace .szm-tour-toprow>*{flex:0 0 auto!important}}

@media(max-width:760px){.staff-app .szm-dashboard-workspace .office-actions{display:flex;flex-wrap:wrap;gap:8px}.staff-app .szm-dashboard-workspace .office-actions :is(button,a){min-height:44px;min-width:44px;font-size:13px}.staff-app .szm-dashboard-workspace .office-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-app .szm-dashboard-workspace .office-filters label{min-width:0;width:100%}.staff-app .szm-dashboard-workspace .office-filters :is(input,select){width:100%;min-height:44px}.staff-app .szm-dashboard-workspace .office-search{grid-column:1/-1}.staff-app .szm-dashboard-workspace .office-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.staff-app .szm-dashboard-workspace .office-metrics>*{min-width:0;padding:12px}.staff-app .szm-dashboard-workspace .office-source-grid{grid-template-columns:minmax(0,1fr)}.staff-app .szm-dashboard-workspace .office-table-scroll{overflow-x:auto;max-width:100%;min-width:0;overscroll-behavior-x:contain}.staff-app .szm-dashboard-workspace .office-table-scroll table{font-size:12px}.staff-app .szm-dashboard-workspace .szm-dashboard-order-help{font-size:12px;line-height:1.4;margin:0 0 5px}}


@media(max-width:760px){.staff-app .szm-tour-workspace .szm-tour-balance-control>span{font-size:11px;line-height:1.3}.staff-app .szm-tour-workspace .szm-tour-balance-control input[type=range]{min-height:28px}.staff-app .szm-tour-workspace .szm-tour-balance-wrap>button{min-width:36px;min-height:40px}}

