/* r37: clear customer workspace and daily actions, on the existing business UI. */
.r37-ready{--r37-orange:#ee7b23;--r37-ink:#202a35;--r37-muted:#7e8790;--r37-line:#e9edf1;background:#f5f6f8;color:var(--r37-ink)}
.r37-ready .main{background:#f5f6f8}.r37-ready .topline{background:#fff;border-color:var(--r37-line)}
.r37-ready #page{max-width:1200px;margin:0 auto}.r37-ready h1,.r37-ready h2,.r37-ready h3{color:var(--r37-ink)}
.r37-ready .panel,.r37-ready .merchant,.r37-ready .record-card,.r37-ready .route-card{background:#fff;border-color:var(--r37-line);border-radius:12px;box-shadow:none}
.r37-ready .btn{border-radius:8px}.r37-ready .btn:not(.secondary):not(.light):not(.danger){background:var(--r37-orange);color:#fff}
.r37-ready input,.r37-ready select,.r37-ready textarea{background:#fff;border-color:#e1e6eb;border-radius:8px}
.r37-ready .r33-home-head{padding:16px 18px;border-radius:12px;background:#fff;border:1px solid var(--r37-line)}
.r37-ready .r33-home-head h1{font-size:22px;margin:6px 0 0}.r37-ready .r33-home-head p{color:var(--r37-muted)}
.r37-home-tabs,.r37-tabs{display:flex;background:#fff;border-bottom:1px solid var(--r37-line);margin:14px 0;gap:0}
.r37-home-tabs>button,.r37-tabs>button{flex:1;position:relative;min-height:48px;background:transparent;border:0;color:#747d86;font-size:14px;font-weight:500;cursor:pointer}
.r37-home-tabs>button.is-active,.r37-tabs>button.is-active{color:var(--r37-orange);font-weight:700}
.r37-home-tabs>button.is-active:after,.r37-tabs>button.is-active:after{content:'';position:absolute;bottom:0;left:35%;right:35%;height:3px;background:var(--r37-orange);border-radius:3px}
.r37-ready [data-r37-pane][hidden],.r37-ready [data-r37-home-pane][hidden]{display:none!important}
.r37-work-entry{padding:22px;background:#fff;border:1px solid var(--r37-line);border-radius:12px;margin:14px 0}
.r37-kicker{font-size:12px;color:var(--r37-orange);margin:0 0 8px}.r37-work-entry h2{font-size:24px;margin:0 0 8px;line-height:1.4}
.r37-entry-note{color:var(--r37-muted);font-size:13px;line-height:1.6;margin:0 0 18px}
.r37-entry-main>button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;font-size:16px;border:0;border-radius:8px;background:var(--r37-orange);color:white;font-weight:600;cursor:pointer}
.r37-entry-main svg,.r37-entry-main img.icon{width:22px;height:22px}.r37-flow{display:flex;gap:10px;align-items:center;justify-content:center;margin:14px 0 0;font-size:12px;color:#929aa2}.r37-flow i{font-style:normal;color:#c7cbd0}
.r37-pending{display:grid;grid-template-columns:1fr 1fr;margin-top:20px;border-top:1px solid var(--r37-line)}
.r37-pending>button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 10px 0;background:transparent;border:0;color:#69727c;min-height:40px;cursor:pointer;font-size:12px}
.r37-pending>button:first-child{padding-left:0}.r37-pending>button+button{border-left:1px solid var(--r37-line);padding-left:18px;margin-top:15px;padding-top:0}
.r37-pending strong{font-size:24px;color:var(--r37-ink);font-weight:650}.r37-pending svg{width:18px;height:18px}
.r37-ready .r33-shortcuts{background:#fff;border:1px solid var(--r37-line);border-radius:12px;gap:0;padding:10px 6px;margin:14px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
.r37-ready .r33-shortcuts>button,.r37-ready .r33-shortcuts>a{border:0;border-radius:0;box-shadow:none!important;background:transparent;padding:15px 5px;min-height:84px;gap:9px;font-size:13px;color:#485461}
.r37-ready .r33-shortcuts svg,.r37-ready .r33-shortcuts img.icon{width:25px;height:25px;stroke:#607080}.r37-ready .r33-shortcuts>button:hover,.r37-ready .r33-shortcuts>a:hover{background:#fff7ee}
.r37-entry-hint{font-size:12px;line-height:1.7;color:var(--r37-muted);padding:0 10px}
.r37-ready .r33-person{border-color:var(--r37-line);border-radius:12px}.r37-ready .r33-total{background:#fff}
.r37-ready .r33-metrics button{background:#f6f7f9}.r37-ready .r33-section-head{flex-wrap:wrap}.r37-ready .r33-metrics strong{font-size:20px}
.r37-ready .drawer{background:#fff}.r37-ready .drawer-header{background:#fff;border-bottom:1px solid var(--r37-line);padding-bottom:12px;margin-bottom:14px}
.r37-ready .drawer .close,.r37-ready .drawer-back{border-color:var(--r37-line);background:#fff}
.r37-ready .r37-customer{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow-y:auto;padding-bottom:0}
.r37-customer>.drawer-header{flex-shrink:0;order:0;position:sticky;top:0;z-index:3}
.r37-customer>.r33-client-actions{flex-shrink:0}.r37-ready .r33-client-head{background:#293746;border-radius:10px;padding:18px;color:#fff}
.r37-ready .r33-client-head strong{display:block;font-size:18px;line-height:1.5;color:#fff}.r37-ready .r33-client-head>p{color:#d3dce5;line-height:1.65;font-size:13px;margin:10px 0}
.r37-ready .r33-client-head>span{display:none}.r37-client-meta p{font-size:12px;line-height:1.6;margin:4px 0;color:#d7dee7;overflow-wrap:anywhere}
.r37-client-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.r37-client-badges span{font-size:11px;line-height:1.5;border-radius:4px;padding:3px 7px;background:#46566a;color:#fff}
.r37-client-badges span:first-child{background:#e77722}.r37-tabs{margin:10px 0 0;flex-shrink:0;position:sticky;top:58px;z-index:2}
.r37-client-pane{flex:1 0 auto;padding:16px 0 22px;min-height:190px}.r37-client-pane .detail-section{margin-top:0;background:#fff}
.r37-work-guide{padding:4px 3px 10px}.r37-work-guide strong{font-size:15px}.r37-work-guide p{color:var(--r37-muted);font-size:12px;line-height:1.7;margin:8px 0}
.r37-ready .r37-client-pane .r33-shortcuts{border:0;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:8px 0}
.r37-primary-action{background:#fff;border-top:1px solid var(--r37-line);padding:12px 0 calc(12px + env(safe-area-inset-bottom));position:sticky;bottom:0;flex-shrink:0;z-index:3}
.r37-primary-action>button{width:100%;min-height:50px;font-size:16px;display:flex;align-items:center;justify-content:center;gap:10px}
.r37-primary-action svg,.r37-primary-action img.icon{width:20px;height:20px}.r37-customer .detail-section h3{font-size:16px}.r37-customer .kv{font-size:13px}
.r37-customer .history{border-color:var(--r37-line);padding:14px 0}.r37-customer .history p{font-size:13px;line-height:1.7}
.r37-secondary-panel,.r37-filter-options{background:#fff;border:1px solid var(--r37-line);border-radius:10px;margin:12px 0;padding:0 14px}
.r37-secondary-panel>summary,.r37-filter-options>summary{min-height:44px;line-height:44px;font-size:13px;color:#627180;cursor:pointer}
.r37-secondary-content{padding:8px 0 14px}.r37-secondary-content>.section-title{margin-top:0}.r37-filter-options .filter-row{padding-bottom:14px}
.r37-ready .group-tracking{padding:0;border:0;background:transparent}.r37-ready .group-tracking .r37-secondary-panel{margin-top:0}
.r37-ready .stats.daily-stats{gap:8px}.r37-ready .daily-stats .stat{border-radius:10px;padding:12px;min-height:74px}.r37-ready .daily-stats .stat-value{font-size:24px}
.r37-ready .page-head h1{font-size:22px}.r37-ready .hero{background:#fff;border:1px solid var(--r37-line)}
.r37-ready .drawer .form-actions{position:static!important;inset:auto!important;transform:none!important}
.r37-ready button:focus-visible,.r37-ready a:focus-visible,.r37-ready summary:focus-visible{outline:2px solid var(--r37-orange);outline-offset:3px}
@media(min-width:900px){.r37-work-entry{max-width:720px}.r37-ready .r33-home-head{padding:20px 24px}.r37-ready .r33-shortcuts{grid-template-columns:repeat(5,minmax(0,1fr))}.r37-home-tabs{max-width:480px}.r37-ready .r37-customer{height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}.r37-client-pane .r33-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.r37-ready #page{padding-top:8px}.r37-work-entry{padding:20px 16px}.r37-work-entry h2{font-size:23px}.r37-ready .r33-home-head{padding:12px 16px}.r37-ready .r33-home-head h1{font-size:20px}.r37-ready .topline{padding-top:10px;padding-bottom:10px}.r37-ready .drawer{padding-left:16px;padding-right:16px}.r37-ready .drawer input,.r37-ready .drawer select,.r37-ready .drawer textarea{font-size:16px}.r37-ready .r37-customer .r33-client-head{padding:16px}.r37-ready .client-facts{font-size:12px}.r37-ready .merchant-grid{gap:12px}.r37-ready .r33-section-head h2{font-size:18px}.r37-ready .r33-controls{gap:8px}.r37-ready .nav{background:#fff}.r37-home-tabs>button,.r37-tabs>button{min-height:46px}.r37-ready .r33-client-head strong{font-size:17px}}
