/* styles for provider-ui.js, and for the parts of admin.js that share its pieces
   (hours, areas, time off, the integrations and users screens). Every class starts
   with pv- so it cannot collide with another screen's. Colours are the theme's variables only. */

/* ---------- shared: a sentence, a padded strip, a column of cards ---------- */
.pv-say{font-size:12.5px;color:var(--ink-2);line-height:1.55;margin:0;text-wrap:pretty}
.pv-say b{color:var(--ink);font-weight:600}
.pv-pad{padding:12px 14px}
p.pv-pad{margin:0}
.pv-col{display:flex;flex-direction:column;gap:var(--gap);max-width:640px}
.pv-gap{height:var(--gap)}
.pv-lead{font-family:var(--display);font-size:16px;font-weight:600;letter-spacing:-.02em;margin:0 0 6px;text-wrap:pretty}

/* ---------- "when and where they work": the block in the provider drawer ---------- */
.pv-sec{padding:11px 13px;border-top:1px solid var(--line)}
.pv-work h4+.pv-sec{border-top:0}
.pv-sech{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.pv-sech b{font-size:12.5px;font-weight:600;flex:1;min-width:0}
.pv-sec .banner{background:var(--s1)}
.pv-sec .banner.warn{background:var(--warn-soft)}
.pv-sec .banner.crit{background:var(--crit-soft)}
.pv-week{list-style:none;margin:0;padding:0;font-size:12.5px;max-width:340px}
.pv-week li{display:flex;justify-content:space-between;gap:14px;padding:3px 0}
.pv-week li span{color:var(--ink-2)}
.pv-week li b{font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.pv-week li[data-off="1"] b{font-weight:400;color:var(--ink-3)}
.pv-chips{display:flex;flex-wrap:wrap;gap:6px}
.pv-chips .chip{white-space:normal}
.pv-reach{flex-wrap:wrap;margin-bottom:8px;background:var(--s1)}
.pv-reach button:disabled{cursor:default}
.pv-toff{margin:0 0 8px}
.pv-toff .li{padding:9px 0}
.pv-toff .li:hover{background:none}
.pv-toff .li .ac{align-items:center}

/* ---------- the week, to change: one row a day ---------- */
.pv-hours{display:flex;flex-direction:column;gap:7px;margin:10px 0 4px}
.pv-hrow{display:grid;grid-template-columns:6.4em minmax(0,1fr) auto minmax(0,1fr) auto;gap:6px 8px;align-items:center}
.pv-hd{font-size:12.5px;font-weight:600;color:var(--ink)}
.pv-to{font-size:11.5px;color:var(--ink-3)}
.pv-hrow .inp{font-variant-numeric:tabular-nums}
.pv-hours .acts{margin-top:4px}
@media(max-width:560px){
  /* on a phone the day and its "Day off" button sit above the two times, so each time is wide enough to tap */
  .pv-hrow{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"d d x" "s t e";padding-bottom:7px;border-bottom:1px solid var(--line)}
  .pv-hrow .pv-hd{grid-area:d}
  .pv-hrow .btn{grid-area:x;justify-self:end}
  .pv-hrow [data-k="start"]{grid-area:s}
  .pv-hrow .pv-to{grid-area:t}
  .pv-hrow [data-k="end"]{grid-area:e}
  .pv-hrow .inp{font-size:16px;padding:9px 10px}
}
.pv-ticks{display:flex;flex-direction:column;gap:6px}
.pv-ticks .fchk{padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--s2);font-size:13px;color:var(--ink);cursor:pointer;align-items:flex-start}
.pv-ticks .fchk input{margin-top:2px;flex:none}
.pv-ticks .fchk small{display:block;font-size:11px;color:var(--ink-3);margin-top:2px;overflow-wrap:anywhere}
.pv-save{padding:10px 18px;font-size:13.5px}

/* ---------- job offers ---------- */
.pv-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
.pv-facts>div{border:1px solid var(--line);background:var(--s2);border-radius:10px;padding:9px 11px;min-width:0}
.pv-facts dt{font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:600;color:var(--ink-3)}
.pv-facts dd{margin:2px 0 0;font-family:var(--display);font-size:19px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.2}
.pv-facts small{display:block;font-size:11px;color:var(--ink-3);margin-top:2px}
.pv-facts [data-soon="1"] dd{color:var(--warn)}
.pv-facts .pv-for{font-size:13px;font-weight:600;letter-spacing:0;color:var(--ink-2)}
.pv-two{display:flex;gap:8px}
.pv-two .btn{flex:1;text-align:center;padding:12px 10px;font-size:14px;border-radius:11px}
.pv-offer .hint{margin:9px 0 0}

/* ---------- earnings ---------- */
.pv-earn{max-width:900px}
.pv-wk{padding:11px 14px;border-bottom:1px solid var(--line)}
.pv-wkh{display:flex;gap:4px 10px;align-items:baseline;flex-wrap:wrap;margin-bottom:5px}
.pv-wkh b{font-size:13px;font-weight:600}
.pv-ln{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"w a" "w s";gap:3px 12px;padding:5px 0;align-items:start}
.pv-what{grid-area:w;font-size:12.5px;color:var(--ink-2)}
.pv-what small{display:block;font-size:11.5px;color:var(--ink-3);margin-top:2px;line-height:1.45}
.pv-amt{grid-area:a;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;text-align:right;white-space:nowrap}
.pv-st{grid-area:s;text-align:right}
.pv-why{display:block;margin-top:3px}
@media(max-width:980px){
  /* phone: the figure that matters across the top, the rest two to a row, each one stacked so nothing is squeezed */
  .pv-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pv-tiles .tile{flex-direction:column;align-items:flex-start;gap:2px}
  .pv-tiles .tile .s{margin-left:0;text-align:left}
  .pv-tiles .tile:first-child{grid-column:1/-1}
}

/* ---------- integrations: your own AI, and what each outside system is doing ---------- */
.pv-ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:var(--gap);margin-top:13px}
.pv-way{border:1px solid var(--line);background:var(--s2);border-radius:11px;padding:13px 14px;min-width:0}
.pv-way h3{font-family:var(--display);font-size:14px;font-weight:600;letter-spacing:-.02em;margin:0 0 5px}
.pv-way p{font-size:12.5px;color:var(--ink-2);line-height:1.55;margin:0 0 8px}
.pv-way ul{margin:0 0 4px;padding-left:18px;font-size:12.5px;color:var(--ink-2);line-height:1.55}
.pv-way li{margin:2px 0}
.pv-way .hint{margin:8px 0 0}
.pv-grp{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);font-weight:700;padding:12px 14px 2px;margin:0;border-top:1px solid var(--line)}
.li .pv-state{color:var(--ink-2)}
.li .de .mono{font-size:11px;overflow-wrap:anywhere}

/* ---------- users: a group that opens on request ---------- */
button.pv-fold{width:100%;cursor:pointer}
.pv-fold h2::before{content:"";display:inline-block;width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
  transform:rotate(-45deg);margin-right:9px;vertical-align:1px;transition:transform var(--t-2) var(--e-out)}
.pv-fold[aria-expanded="true"] h2::before{transform:rotate(45deg)}
.pv-fold:hover h2{color:var(--ink)}
/* the same columns in every table on the users screen, so the three groups line up */
/* wide enough that a name and an email stay on their own lines; on a phone the table scrolls inside its card, like every other table */
.pv-utbl{table-layout:fixed;min-width:900px}
.pv-utbl th.c-role{width:150px}
.pv-utbl th.c-st{width:170px}
.pv-utbl th.c-last{width:130px}
.pv-utbl th.c-act{width:230px}
.pv-utbl td.num .btn{font-family:var(--ui)}
.pv-utbl .nm-cell>div{min-width:0}
.pv-utbl .nm-cell .hint{overflow-wrap:anywhere}

/* a link inside a sentence */
.lnk.pv-inl{padding:0;font:inherit;font-weight:600;display:inline}
/* a notice with a button: beside the words when there is room, under them on a phone */
.pv-ban .banner{flex-wrap:wrap}
.pv-ban .banner>span:first-of-type{flex:1 1 230px;min-width:0}
.pv-ban .banner .spacer{display:none}
.pv-ban .banner .btn{white-space:nowrap}
@media(max-width:560px){.pv-ban .banner .btn{margin-left:26px}.pv-ban .banner .btn+.btn{margin-left:0}}
.pv-col [hidden]{display:none}
