/* BOBS PLANNER · full-screen mobile week V3.
   Native owner controls remain accessible via daily drill-down and bottom dock. */
.bwv{font:inherit;color:#213d2c;min-width:0;max-width:100%;padding:0 0 18px}
.bwv *{box-sizing:border-box}
.bwv button{cursor:pointer;touch-action:manipulation;font:inherit}
.bwv button:focus-visible,.bwv summary:focus-visible{outline:3px solid #68a3d4;outline-offset:2px}
.bwv-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1e3d2d;color:#fff;padding:12px 14px 7px;border-radius:14px 14px 0 0}
.bwv-head small{display:block;font-size:10px;font-weight:800;letter-spacing:.09em;color:#b9d6c4}
.bwv-head h1{font-size:23px;line-height:1.1;letter-spacing:-.05em;color:#fff;font-weight:850;margin:5px 0}
.bwv-month-button{min-height:42px;border:1px solid #567462;border-radius:10px;background:#315841;color:#fff;padding:9px 11px;font-size:12px;font-weight:800;white-space:nowrap}
.bwv-weeknav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;background:#1e3d2d;padding:7px 10px 13px;gap:4px}
.bwv-weeknav>button:first-child,.bwv-weeknav>button:last-child{border:1px solid #587563;border-radius:10px;background:#315943;color:#fff;min-width:44px;min-height:45px;font-size:24px;font-weight:700;display:grid;place-items:center}
.bwv-weeklabel{border:0;background:none;min-height:45px;color:#fff;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center}
.bwv-weeklabel strong{font-size:14px;font-weight:850;line-height:1.25}
.bwv-weeklabel span{font-size:11px;line-height:1.25;color:#c7dccd}
.bwv-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:3px;background:#1e3d2d;padding:0 8px 14px;min-height:198px;touch-action:pan-y;user-select:none}
.bwv-day{min-height:183px;min-width:0;padding:2px 0 7px;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:4px;border:1px solid transparent;border-radius:9px;background:none;color:#fff}
.bwv-day.selected{background:#386247;border-color:#7db493}
.bwv-day.today:not(.selected){border-color:#5c826a}
.bwv-graph{height:116px;width:100%;display:flex;justify-content:center;align-items:flex-end;padding:0 5px 2px;position:relative}
.bwv-graph:after{content:"";position:absolute;bottom:0;left:10%;right:10%;border-bottom:1px solid #5d7566}
.bwv-graph-stack{width:100%;min-height:0;display:flex;flex-direction:column;justify-content:stretch;border-radius:5px 5px 0 0;overflow:hidden;background:#65877c}
.bwv-graph-stack i{display:block;min-height:3px;width:100%}
.bwv-graph-stack i.due{background:#73a8d5}
.bwv-graph-stack i.done{background:#74ca90}
.bwv-graph-stack i.skipped{background:#e3ae57}
.bwv-graph-stack i.overdue{background:#e97979}
.bwv-graph-stack i.projected{background:#9ab8b8}
.bwv-graph-stack i.review{background:#b4a4c8}
.bwv-day small{font-size:10px;font-weight:750;color:#d0e0d3;line-height:1.2}
.bwv-day strong{font-size:15px;font-weight:850;line-height:1.13}
.bwv-day em{font-size:9px;font-style:normal;color:#d4e1d5;white-space:nowrap}
.bwv-day-value{font-size:9px;line-height:1.25;color:#c6ddca;white-space:nowrap}
.bwv-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#1e3d2d;padding:0 12px 15px;border-radius:0 0 13px 13px}
.bwv-legend span{font-size:10px;font-weight:650;color:#e6eee8;display:flex;align-items:center;gap:4px}
.bwv-legend span:before{content:"";width:7px;height:7px;border-radius:2px;background:#9ab8b8}
.bwv-legend .due:before{background:#73a8d5}
.bwv-legend .done:before{background:#74ca90}
.bwv-legend .skipped:before{background:#e3ae57}
.bwv-legend .overdue:before{background:#e97979}
.bwv-finance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 0}
.bwv-finance>div{border:1px solid #d9e7dd;background:#f9fbf9;border-radius:11px;padding:11px 8px;min-width:0}
.bwv-finance span{display:block;font-size:10px;font-weight:750;color:#5e7867;line-height:1.35}
.bwv-finance strong{display:block;margin:5px 0 0;font-size:17px;font-weight:850;color:#264a34;letter-spacing:-.04em;white-space:nowrap;font-variant-numeric:tabular-nums}
.bwv-finance strong.minus{color:#b16f38}
.bwv-finance .bwv-balance{background:#e8f4eb;border-color:#badbc4}
.bwv-finance .bwv-balance strong{color:#21673d}
.bwv .negative{color:#b24646!important}
.bwv-cost-details{border:1px solid #d9e7dd;border-radius:10px;background:#fff;margin:9px 0 13px}
.bwv-cost-details summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:43px;padding:10px 12px;font-size:11px;font-weight:850;color:#4b6954}
.bwv-cost-details summary:after{content:"⌄";font-size:19px;line-height:1}
.bwv-cost-details[open] summary:after{transform:rotate(180deg)}
.bwv-cost-details p{font-size:11px;color:#677e6a;line-height:1.5;padding:0 12px;margin:7px 0 11px}
.bwv-selected{margin:8px 0 0;background:#fff;border:1px solid #dfebe2;border-radius:13px;min-width:0}
.bwv-selected-head{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 11px 10px;border-bottom:1px solid #e3ece5}
.bwv-selected-head>div{min-width:0}
.bwv-selected-head strong{font-size:15px;font-weight:850;color:#284d35;line-height:1.2}
.bwv-selected-head p{font-size:11px;line-height:1.5;color:#667d6c;margin:6px 0 0}
.bwv-selected-head p b{font-weight:850;color:#2b5d40}
.bwv-selected-head>button{min-height:44px;min-width:75px;padding:8px 11px;border:1px solid #bad9c2;background:#e9f4ec;color:#275b3c;border-radius:9px;font-size:12px;font-weight:850}
.bwv-filters{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:10px 9px 10px;overscroll-behavior-x:contain}
.bwv-filters button{flex:none;min-height:39px;padding:8px 11px;border:1px solid #dde9e0;border-radius:18px;background:#fff;color:#53705c;font-size:11px;font-weight:800}
.bwv-filters button[aria-pressed=true]{background:#295a3e;color:#fff;border-color:#295a3e}
.bwv-job-list{display:grid;gap:7px;padding:0 9px 11px}
.bwv-job{border:1px solid #dce8df;border-left:4px solid #76add6;border-radius:10px;background:#fff;padding:11px;min-width:0}
.bwv-job.done{border-left-color:#5dac76;background:#fbfefb}
.bwv-job.skipped{border-left-color:#dcaa62;background:#fffcf8}
.bwv-job.overdue{border-left-color:#d16d6d;background:#fffafa}
.bwv-job.projected{border-left:4px dashed #92a8a4}
.bwv-job-main{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.bwv-job-copy{display:grid;gap:5px;min-width:0;flex:1}
.bwv-job-copy strong{font-size:14px;line-height:1.28;color:#263f30;font-weight:850}
.bwv-job-copy>span{font-size:11px;line-height:1.35;color:#65796a;overflow-wrap:anywhere}
.bwv-job-copy>small{font-size:10px;color:#829080}
.bwv-job-end{flex:none;display:grid;gap:5px;justify-items:end}
.bwv-job-end>b{font-size:14px;color:#234631;font-weight:850;white-space:nowrap}
.bwv-status{font-size:10px;white-space:nowrap;padding:5px 7px;border-radius:7px;background:#eaf3fb;color:#3a74a5}
.bwv-status.done{background:#e6f5eb;color:#2f8749}
.bwv-status.skipped{background:#fff0df;color:#a57531}
.bwv-status.overdue{background:#faeaea;color:#a34444}
.bwv-status.projected{background:#edf2f1;color:#5b7c74}
.bwv-reason{padding:8px;margin-top:9px;border-radius:7px;background:#fff1ed;color:#8a5247;font-size:11px;line-height:1.45}
.bwv-job-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;border-top:1px solid #ecf1ec;padding-top:9px;margin-top:9px}
.bwv-job-bottom span{font-size:10px;color:#697e70}
.bwv-job-bottom button{min-height:42px;border:1px solid #c8dece;background:#f2f8f3;color:#305a3e;border-radius:8px;padding:8px 12px;font-size:11px;font-weight:850;margin-left:auto}
.bwv-empty{font-size:12px;color:#708575;line-height:1.5;background:#f7faf8;border-radius:10px;padding:16px}
.bwv-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:12px 0;padding:0 3px}
.bwv-footer span{font-size:11px;color:#728273;line-height:1.35}
.bwv-footer button{min-height:43px;flex:none;background:#fff;border:1px solid #cadcca;border-radius:9px;padding:8px 11px;color:#2e6145;font-size:11px;font-weight:800}
.bwv-caveat{font-size:10px;line-height:1.55;color:#7b8c7e;margin:10px 3px}
@media(max-width:767px){
 body.owner-only-page #pure-round-body:has(> #bobs-week-mobile-v3){padding:0!important;border:0!important;background:transparent!important}
 body.owner-only-page #owner-manager-panel:has(#bobs-week-mobile-v3){border:0!important;padding:0!important}
 body.owner-only-page #owner-manager-panel:has(#bobs-week-mobile-v3)>.owner-manager-header{display:none!important}
 body.owner-only-page #pure-owner-touch-context:has(+ #pure-round-body #bobs-week-mobile-v3){display:none}
}
@media(max-width:380px){.bwv-finance strong{font-size:15px}.bwv-weeklabel strong{font-size:12px}.bwv-day{gap:3px}.bwv-graph{padding:0 3px 2px}.bwv-legend{gap:5px}.bwv-legend span{font-size:9px}.bwv-job-main{gap:5px}.bwv-job-copy strong{font-size:13px}}

.bwv-tue-target{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 12px;margin:9px 0 0;border:1px solid #d8e6db;background:#f8fbf9;border-radius:11px}.bwv-tue-target>div{display:grid;gap:4px}.bwv-tue-target small{font-size:10px;color:#6a816e}.bwv-tue-target strong{font-size:12px;color:#345d40;line-height:1.35}.bwv-tue-result{text-align:right;white-space:nowrap}.bwv-tue-result b{font-size:16px;color:#285d3f;line-height:1.1;font-variant-numeric:tabular-nums}.bwv-tue-result small{font-size:10px;white-space:normal;max-width:125px}@media(max-width:365px){.bwv-tue-target{padding:9px}.bwv-tue-target strong{font-size:11px}}


/* Owner phone: clear estimated wage reserve beneath Lewis and swipe-open job actions. */
@media(max-width:767px){
 .bwv-finance{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bwv-finance>div{min-height:78px}
 .bwv-finance>div small{display:block;font-size:10px;line-height:1.3;color:#718473;margin:5px 0 0}
 .bwv-swipe-actions:not([hidden]){display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid #dbe5db;padding:10px 0 2px;margin-top:10px}
 .bwv-swipe-actions[hidden]{display:none!important}
 .bwv-swipe-actions button{min-height:47px;flex:1;min-width:112px;background:#f0f7f1;color:#285d3c;border:1px solid #c8dece;border-radius:9px;font:inherit;font-size:12px;font-weight:800}
 .bwv-swipe-actions button[data-bwv-skip]{background:#fdf2e5;border-color:#e8cfac;color:#986423}
 .bwv-swipe-actions small{display:block;flex-basis:100%;font-size:10px;color:#758675;line-height:1.4}
 .bwv-first-agreement,.bwv-agreement{display:flex;gap:12px;align-items:center}
 .bwv-job.bwv-prepaid-first{border-left-color:#3c9274;background:#f9fcfa}
 .bwv-prepaid-label{background:#e1f3e8;color:#267347;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:800}
 .bwv-job-bottom .bwv-paid-first-button{background:#2e6747;color:#fff;border-color:#2e6747}
 .bwv-adam-settings{padding:11px}
 .bwv-adam-settings label{display:grid;gap:6px;font-size:12px;color:#315941;font-weight:750}
 .bwv-adam-settings input{min-height:45px;max-width:130px;font-size:16px;padding:8px 12px;border:1px solid #cddcce;border-radius:9px}
}
.bwv-first-move-modal{width:calc(100% - 24px);max-width:480px;max-height:min(88dvh,750px);overflow-y:auto;overscroll-behavior:contain;padding:18px;background:#fff;border:1px solid #c6decf;border-radius:16px;color:#274832;box-shadow:0 20px 65px rgba(0,0,0,.23)}
.bwv-first-move-modal::backdrop{background:rgba(12,31,21,.6)}
.bwv-first-move-modal form{display:grid;gap:13px}
.bwv-first-move-modal form>small{font-size:10px;font-weight:850;letter-spacing:.1em;color:#577b5e}
.bwv-first-move-modal h2{font-size:23px;line-height:1.15;margin:0;letter-spacing:-.035em;color:#244c36}
.bwv-first-move-modal p{font-size:12px;color:#6d7b70;line-height:1.5;margin:2px 0 0}
.bwv-current-first{display:grid;gap:5px;padding:12px;background:#f0f7f2;border:1px solid #d2e5d6;border-radius:10px}
.bwv-current-first strong{font-size:16px;color:#28533b}
.bwv-current-first span{font-size:11px;color:#66846e}
.bwv-first-move-modal label:not(.bwv-agreement){display:grid;gap:7px;font-size:12px;font-weight:800;color:#355d43}
.bwv-first-move-modal input[type=date],.bwv-first-move-modal textarea{display:block;width:100%;min-height:49px;padding:11px;border:1px solid #cfdfd3;border-radius:9px;font-size:16px;background:#fff;color:#244630}
.bwv-first-move-modal .bwv-agreement{font-size:12px;font-weight:750;color:#2f5e42}
.bwv-first-move-modal .bwv-agreement input{width:20px;height:20px;flex:none}
.bwv-first-move-modal .bwv-first-error{color:#af4747;background:#fff0ee;border-radius:8px;padding:10px}
.bwv-first-move-modal .bwv-first-error[hidden]{display:none}
.bwv-modal-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:9px}
.bwv-modal-actions button{min-height:50px;border:1px solid #c8decf;border-radius:9px;background:#fff;color:#285e40;font:inherit;font-size:12px;font-weight:850}
.bwv-modal-actions button[type=submit]{background:#296141;color:#fff}
.bwv-modal-actions button:disabled{opacity:.5}
