/* crew-dash-1031: Team view (crew) + owner Crew tab. Mobile-first (390px). */
#pv-crew [hidden],#crew-admin [hidden]{display:none!important}
.cw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 14px}
.cw-head h2{margin:2px 0 0;font-size:clamp(26px,6.5vw,34px)}.cw-eyebrow{margin:0;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#1f5f60}
.cw-date{margin:2px 0 0;color:#5f6a64;font-size:15px}
.cw-tabs{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:#f7f3ec;padding:8px;border-radius:16px;margin:0 0 16px;box-shadow:0 4px 14px rgba(22,61,92,.06)}
.cw-tabs button{font-family:inherit;font-weight:700;font-size:15px;line-height:1.1;min-height:46px;border-radius:12px;border:0;background:transparent;color:#22302b;cursor:pointer}
.cw-tabs button[aria-pressed="true"]{background:#163d5c;color:#fff}
.cw-tabs button:focus-visible,.cw-big:focus-visible{outline:3px solid #f2c14e;outline-offset:2px}
.cw-clock{display:grid;gap:12px;text-align:center}
.cw-state{margin:0;font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#5f6a64}.cw-state.on{color:#1d5b34}
.cw-run{margin:0;font:600 44px/1 var(--serif,Georgia,serif);color:#163d5c}
.cw-big{width:100%;min-height:72px;font-size:22px!important;border-radius:18px!important}
.cw-clock .f{text-align:left}.cw-clock input,.cw-clock select,#pv-crew input:not([type=file]),#pv-crew select,#pv-crew textarea,#crew-admin input:not([type=file]),#crew-admin select,#crew-admin textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:11px 12px;border:1px solid #d8cfbf;border-radius:10px;min-height:46px;background:#fff}
#pv-crew input[type=file],#crew-admin input[type=file]{font-size:15px;max-width:100%}
.cw-warn{margin:0;background:#fde3e0;color:#8a1f11;border-radius:10px;padding:10px 12px;font-size:15px;text-align:left}
.cw-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cw-shift,.cw-note,.cw-job,.cw-doc,.cw-period{list-style:none;border:1px solid #e3dacb;border-radius:14px;padding:12px 14px;display:grid;gap:4px;background:#fff}
.cw-shift-t{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.cw-dur{font-weight:700;color:#163d5c;white-space:nowrap}
.cw-flag{justify-self:start;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:#fff4dc;color:#7a5200;border-radius:999px;padding:4px 10px}
.cw-edit{display:grid;gap:10px;background:#f7f3ec;border-radius:12px;padding:12px;margin-top:6px}
.cw-period.cur{border:2px solid #1f5f60;padding:16px}.cw-k,.ca-k{margin:0;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#1f5f60}
.cw-big-n{margin:2px 0 0;font:600 40px/1.05 var(--serif,Georgia,serif);color:#163d5c}
.cw-pay{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 2px}
.cw-pay div{background:#f7f3ec;border-radius:12px;padding:8px 10px;display:grid;gap:2px}.cw-pay span{font-size:12.5px;color:#5f6a64}.cw-pay strong{font-size:17px}
.cw-doc{gap:8px}.cw-doc-t{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.cw-doc-on{margin:0;font-size:14px;color:#1d5b34;font-weight:600}
.cw-doc .btn,.cw-sec .btn{min-height:48px}
.cw-map{font-weight:600;color:#1f5f60;overflow-wrap:anywhere}.cw-map::before{content:"📍 "}
.cw-access{margin:0;background:#eef6f0;border-radius:10px;padding:8px 10px;font-size:15px;white-space:pre-wrap}
.cw-sec{display:grid;gap:12px}.cw-sec h3{margin:0}
#crew-admin h4{margin:18px 0 8px}
.ca-row{border:1px solid #e3dacb;border-radius:14px;padding:12px 14px;display:grid;gap:6px;margin:0 0 10px;list-style:none}
.ca-row-t{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.ca-row-t h4{margin:0}
.ca-acts{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}.ca-acts .f{flex:1 1 140px;margin:0}.ca-acts .btn{min-height:46px}
.ca-period{border:2px solid #1f5f60;border-radius:16px;padding:14px;display:grid;gap:12px}
.ca-person{background:#fbf9f4;border:1px solid #e3dacb;border-radius:14px;padding:12px;display:grid;gap:8px}.ca-name{font-size:18px}
.ca-det summary{cursor:pointer;font-weight:700;color:#163d5c;min-height:40px;display:flex;align-items:center}
.ca-det[open]{display:grid;gap:10px}.ca-log{font-size:13px;color:#5f6a64}
.ca-sug{display:block;width:100%;text-align:left;border:1px dashed #1f5f60;background:#eef6f0;border-radius:10px;padding:10px 12px;font-family:inherit;font-weight:600;font-size:15px;line-height:1.3;color:#163d5c;cursor:pointer}
.ca-newp{display:grid;gap:10px;margin:0 0 12px}.ca-pay{list-style:none;border:1px solid #e3dacb;border-radius:12px;padding:10px 12px;display:grid}
#ca-tabs{max-width:420px}
.ca-period>.ca-row-t h4{margin:0;font-size:18px}.ca-newp{margin:12px 0 0}#ca-tabs button{font-family:inherit;font-weight:700}
/* timesheet-1103: daily time sheet + owner sections */
.cw-tabs{grid-template-columns:repeat(2,1fr)}
#pv-admin.ca-other>:not(.pbar):not(#ca-tabs):not(.ca-own){display:none!important}
.ca-sections{max-width:none!important;display:flex;flex-wrap:wrap;gap:6px}.ca-sections button{flex:1 1 auto;min-height:44px}
.cw-alt{text-align:left}.cw-alt summary{cursor:pointer;font-weight:600;color:#1f5f60;min-height:40px;display:flex;align-items:center}.cw-alt[open]{display:grid;gap:10px}
.cw-off{min-height:48px}
.cw-day{border:1px solid #e3dacb;border-radius:14px;padding:12px 14px;display:grid;gap:8px;background:#fff;margin:0 0 10px}
.cw-day.big{border:2px solid #1f5f60;padding:16px}.cw-day.miss{border-color:#e7a29a;background:#fff7f6}.cw-day.off{background:#f7f3ec}
.cw-day-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.cw-inout{display:flex;gap:14px;align-items:center;font-size:17px;font-weight:600;color:#163d5c}.cw-inout .plink{margin-left:auto}
.cw-chips{display:flex;flex-wrap:wrap;gap:8px}
.cw-chip,.cw-chip-sel{font:inherit;font-weight:700;font-size:15px;min-height:46px;padding:0 14px;border-radius:999px;border:1px solid #d8cfbf;background:#fff;color:#22302b;cursor:pointer}
#pv-crew .cw-chip-sel{width:auto;min-width:120px;border-radius:999px}
.cw-chip[aria-pressed="true"],.cw-chip-sel.on{background:#163d5c;color:#fff;border-color:#163d5c}
.cw-tot{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;background:#f7f3ec;border-radius:12px;padding:10px 12px}.cw-tot>span{flex:1 1 10rem;min-width:0;line-height:1.35;overflow-wrap:anywhere}.cw-tot strong{font:600 26px/1 var(--serif,Georgia,serif);color:#163d5c;flex:0 0 auto}.ca-late{background:#fff4dc!important;color:#7a5200!important}
.cw-send{margin-top:2px}.cw-acts{display:flex;gap:8px;flex-wrap:wrap}.cw-acts .btn{flex:1 1 140px;min-height:48px}
.cw-note-pay{margin:6px 0 0;background:#eef6f0;border-radius:10px;padding:10px 12px;font-size:15px;color:#1d5b34}
#cw-msg{margin:0 0 12px}
.ca-missing{border:1px solid #e7a29a;background:#fff7f6;border-radius:12px;padding:10px 12px;display:grid;gap:8px}.ca-miss-k{color:#8a1f11!important}
.ca-miss{display:grid;gap:6px;border-top:1px solid #f1d2cd;padding-top:8px}.ca-miss:first-of-type{border-top:0;padding-top:0}
/* ride-1103: time sheet screens hide the floating Ask Oasis / Call / Text / newsletter so they never cover day cards */
body.ts-screen .ao-fab,body.ts-screen .ao-panel,body.ts-screen .mbar,body.ts-screen .nl-pop{display:none!important}
body.ts-screen{padding-bottom:0!important}
.cw-chiprow{display:grid;gap:8px}.cw-ride{background:#eef6f0}.cw-ride strong{font-size:22px}

/* ts1106b: always-visible Team hours entry on owner Clients home */
#ca-owner-home{border:2px solid #163d5c;background:#f7fafc;margin:12px 0}
#ca-owner-home h3{margin:0 0 6px}
#ca-owner-home .ca-home-emp{padding:10px 0;border-top:1px solid #e5ddd0;display:grid;gap:6px}
#ca-owner-home .ca-home-emp:first-of-type{border-top:0;margin-top:6px}
#crew-admin .cw-edit{margin-top:10px;padding:12px;border:1px solid #d8cfbf;border-radius:12px;background:#fffdf8}

/* ts1106c: distinct owner admin home */
#oa-admin-home, .oa-admin-home{border:2px solid #163d5c;background:linear-gradient(180deg,#f3f8fc,#fff);margin:12px 0 18px;padding:18px}
#oa-admin-home h2{margin:0 0 4px;font-size:1.45rem}
#oa-admin-home h3{margin:16px 0 8px}
.oa-emp-card{border:1px solid #d8cfbf;border-radius:14px;padding:12px;margin:10px 0;background:#fff}
.oa-emp-tot{font-weight:700;margin:6px 0;font-size:1.05rem}
.oa-day-row{display:grid;gap:4px;padding:10px 0;border-top:1px solid #eee}
.oa-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.oa-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px;border-radius:14px;border:1px solid #d8cfbf;background:#fff;cursor:pointer;font:inherit}
.oa-tile strong{font-size:1rem}
html.oa-owner-home #pv-admin > .pcard:not(#oa-admin-home):not(.ca-own){display:none!important}
#pv-admin.oa-home-on > .pcard:not(#oa-admin-home):not(.ca-own){display:none!important}
