/* Phone layout (prototype). Every rule is scoped to body.m-on, which mobile.js sets only at phone width. */
.m-top,.m-pane,.m-tabs{display:none}
html body.m-on #workspace aside,html body.m-on #workspace main .mobileNav,html body.m-on #workspace main #masterWorkflow,html body.m-on .gp-update-notice{display:none!important}
body.m-on #workspace main{padding:0 12px 84px}
body.m-on .m-top{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:20;background:var(--bg,#f6f8f8);padding:8px 0;border-bottom:1px solid #e3e8ea;margin-bottom:6px}
body.m-on .m-logo{height:26px;width:auto}
body.m-on .m-date{flex:1;text-align:center;font-size:14px;color:#52606b}
body.m-on .m-icon{min-width:40px;min-height:40px;font-size:18px;padding:0;border-radius:10px}
body.m-on .m-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid #dfe5e8;padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
body.m-on .m-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;border:0;background:none;min-height:52px;font-size:12px;color:#5d6b75;position:relative;padding:4px 0;box-shadow:none}
body.m-on .m-tab-icon{font-size:19px;line-height:1.1}
body.m-on .m-tab.on{color:#16705a;font-weight:600}
body.m-on .m-badge{position:absolute;top:2px;right:calc(50% - 22px);background:#c4322b;color:#fff;border-radius:9px;font-size:11px;min-width:18px;padding:0 5px;line-height:18px}
body.m-on.m-panemode main>section.view{display:none!important}
body.m-on.m-panemode .m-pane{display:block}
body.m-on .m-wrap{display:flex;flex-direction:column;gap:6px}
body.m-on .m-title{font-size:22px;margin:4px 0 2px}
body.m-on .m-sec{font-size:15px;margin:14px 0 2px;scroll-margin-top:64px}
body.m-on .m-sec.m-past{color:#7a868e}
body.m-on .m-mut{color:#66737c;font-size:14px}
body.m-on .m-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
body.m-on .m-metrics:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
body.m-on .m-metric{background:#fff;border:1px solid #e3e8ea;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column}
body.m-on .m-metric b{font-size:22px}
body.m-on .m-warn-text{color:#b3261e}
body.m-on .m-row{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;text-align:left;background:#fff;border:1px solid #e3e8ea;border-radius:12px;padding:12px;font-size:15px;min-height:48px}
body.m-on .m-row b{font-size:17px}
body.m-on .m-row.m-static{min-height:0;padding:10px 12px}
body.m-on .m-card{background:#fff;border:1px solid #e3e8ea;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px}
body.m-on .m-card-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
body.m-on .m-card-title{font-size:17px;font-weight:600}
body.m-on .m-status{font-size:12px;color:#52606b}
body.m-on .m-approved{background:#e4f3ea;border-color:#b9dfc8}
body.m-on .m-confirmed{background:#e6f0fb;border-color:#bcd5f1}
body.m-on .m-hold{background:#f4f1ea;border-color:#ddd6c6}
body.m-on .m-off{background:#f1f1f1}
body.m-on .m-warn{background:#fdf4e2;border-color:#f0d9a6}
body.m-on .m-danger{background:#fdecea;border-color:#f3b9b4;color:#8c1d18}
body.m-on .m-danger-text{color:#b3261e}
body.m-on .m-kv{display:grid;grid-template-columns:22px 1fr;gap:4px 6px;font-size:15px;margin-top:4px}
body.m-on .m-note-text{border-top:1px solid rgba(0,0,0,.08);padding-top:6px;margin-top:4px;font-size:14px;white-space:pre-wrap}
body.m-on .m-line{font-size:14px}
body.m-on .m-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#66737c;font-size:14px;padding:6px 2px}
body.m-on .m-link{border:0;background:none;color:#16705a;font-size:14px;padding:6px 4px;min-height:36px;box-shadow:none}
body.m-on .m-center{align-self:center}
body.m-on .m-actions{display:flex;gap:8px;margin-top:6px}
body.m-on .m-actions button{flex:1;min-height:40px}
body.m-on .m-quick{display:flex;gap:8px;margin-top:10px}
body.m-on .m-quick button{flex:1;min-height:46px;font-size:15px;font-weight:600}
body.m-on .m-week{display:flex;justify-content:space-between;gap:2px;position:sticky;top:57px;z-index:10;background:var(--bg,#f6f8f8);padding:4px 0 6px}
body.m-on .m-day{flex:1;display:flex;flex-direction:column;align-items:center;border:0;background:none;border-radius:10px;padding:4px 0;font-size:12px;min-height:54px;box-shadow:none;color:#3d4a53}
body.m-on .m-day b{font-size:16px}
body.m-on .m-day.on{background:#16705a;color:#fff}
body.m-on .m-dot{font-style:normal;font-size:8px;color:#16705a;line-height:1}
body.m-on .m-day.on .m-dot{color:#fff}
body.m-on .m-empty{color:#8a959c;font-size:13px;padding:8px 4px;border-top:1px dashed #dfe5e8}
body.m-on .m-sheet{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.35);display:flex;align-items:flex-end}
body.m-on .m-sheet-box{background:#fff;width:100%;border-radius:18px 18px 0 0;padding:14px 14px calc(16px + env(safe-area-inset-bottom));max-height:80vh;overflow:auto;display:flex;flex-direction:column;gap:4px}
body.m-on .m-sheet-name{font-weight:600;font-size:16px;padding:4px 4px 8px}
body.m-on .m-sheet-item{display:flex;justify-content:space-between;align-items:center;text-align:left;border:0;border-bottom:1px solid #eef1f2;background:none;border-radius:0;min-height:48px;font-size:16px;padding:0 4px;box-shadow:none}
body.m-on .m-sheet-label{font-size:12px;color:#7a868e;padding:12px 4px 2px}
body.m-on .m-desk::after{content:'🖥';font-size:14px}
body.m-on .m-sheet-sep{height:8px}
body.m-on .m-card.m-danger{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 10px}
body.m-on .m-card.m-danger>span{flex-basis:100%;font-weight:600}
body.m-on .m-tap{cursor:pointer}
body.m-on .m-tap:active{filter:brightness(.97)}

body.m-on .agent-invoice .tablewrap table{min-width:0}body.m-on .agent-invoice .tablewrap th:first-child{min-width:0}body.m-on .agent-invoice .tablewrap th:not(:first-child){width:auto}
