/* The dashboard: the day first, then what is waiting, then the screens. v1256
   Laid out the way a working dashboard is: one line that says who and when, a
   row of figures that each open the screen they came from, the panels chosen
   for this page, and the tiles last. */
.dash{ max-width:1380px; margin:0 auto; padding:18px 16px 48px; }
.dash-day{ margin:0 0 18px; }
.dash-hi{ font-size:30px; font-weight:900; color:var(--navy); margin:0; letter-spacing:-.02em; }
.dash-date{ font-size:13.5px; font-weight:700; color:var(--muted); margin:4px 0 14px; }
.dash-nums{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; }
.dash-num{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; background:#fff;
  border:1px solid var(--line); border-left:4px solid var(--royal); border-radius:13px; padding:12px 14px;
  font:inherit; cursor:pointer; text-align:left; transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.dash-num:hover{ border-color:#c8d4f0; box-shadow:0 6px 18px rgba(22,36,107,.08); transform:translateY(-1px); }
.dash-num b{ font-size:28px; font-weight:900; color:var(--navy); line-height:1.1; }
.dash-num span{ font-size:12px; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.dash-num.late{ border-left-color:var(--orange); }
.dash-num.late b{ color:#a35a12; }
.dash-clear{ background:#f2f9ef; border:1px solid #cfe8c2; color:#2f7d1d; border-radius:12px;
  padding:11px 14px; font-size:13px; font-weight:700; margin:0; }
.dash-sec{ display:flex; align-items:center; gap:10px; margin:22px 0 10px; }
.dash-sec h2{ font-size:12.5px; font-weight:900; color:var(--muted); text-transform:uppercase;
  letter-spacing:.05em; margin:0; }
.dash-sec i{ flex:1; height:1px; background:var(--line); display:block; }
.dash-tools{ margin-top:24px; }

/* the picker sits quietly under the panels heading, not shouting above it */
.pf-dashpick{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 12px; }
.pf-dashpick .pf-chip{ height:30px; padding:0 12px; border-radius:9px; border:1px solid var(--line);
  background:#fff; color:var(--muted); font-weight:700; font-size:11.5px; }
.pf-dashpick .pf-chip.on{ background:#eef2ff; border-color:#c8d4f0; color:var(--royal); font-weight:800; }
.pf-hint{ font-size:11.5px; color:var(--muted); font-weight:600; }
.pf-panel{ border-radius:16px; padding:14px 16px; }
.pf-ph{ font-size:11.5px; letter-spacing:.05em; color:var(--royal); }
.pf-nums b{ font-size:28px; }
.pf-row{ padding:7px 0; }
@media(max-width:760px){
  .dash{ padding:12px 12px 40px; }
  .dash-hi{ font-size:24px; }
  .dash-nums{ grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; }
  .dash-num b{ font-size:23px; }
}

/* Reviews: stars a customer left, shown on the worker's card and, office side
   only, on the customer's. Adam, 23 Sep 2026. v1317. */
.rv-stars{ color:#e8862e; letter-spacing:2px; font-size:15px; }
.rv-head{ display:flex; align-items:center; gap:10px; margin:2px 0 10px; font-size:14px; color:#16246b; }
.rv-head b{ font-weight:900; }
.rv-list{ display:block; }
.rv-row{ display:block; width:100%; box-sizing:border-box; border:1px solid #e6e9f2; border-radius:12px; padding:10px 12px; margin-bottom:8px; background:#fff; }
.rv-top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:14px; color:#16246b; }
.rv-top b{ font-weight:800; }
.rv-when{ color:#6b7488; font-size:12.5px; font-weight:700; }
.rv-open{ border:1.5px solid #cdd7f5; background:#eef2ff; color:#2547d6; border-radius:9px;
  height:36px; padding:0 14px; font:inherit; font-weight:800; font-size:12.5px; cursor:pointer; }
/* the buttons get their own line under who and when. v1370 */
.rv-acts{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; }
@media (max-width:640px){ .rv-acts > *{ flex:1 1 100%; justify-content:center; text-align:center; } .rv-top{ gap:4px 10px; } .rv-when{ flex:1 1 100%; } }
.rv-words{ margin-top:6px; color:#1e2433; font-size:14px; line-height:1.5; }
.rv-given{ margin-top:6px; }
.rv-sum{ display:flex; align-items:center; gap:12px; font-size:18px; color:#16246b; margin-bottom:12px; }
.rv-sum b{ font-weight:900; }
.rv-people{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.rv-person{ display:flex; align-items:center; gap:8px; border:1px solid #e6e9f2; border-radius:999px; padding:6px 12px; background:#fff; font-size:13px; color:#16246b; }
.rv-done{ border:1.5px solid #cdd7f5; background:#fff; color:#2547d6; border-radius:9px; height:36px; padding:0 14px;
  font:inherit; font-weight:800; font-size:12.5px; cursor:pointer; }
.rv-done.on{ background:#e9f7df; border-color:#bfe3aa; color:#3a6b22; }
.rv-goog{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:800; color:#6b7488;
  border:1.5px solid #e6e9f2; border-radius:9px; padding:0 12px; height:36px; box-sizing:border-box; cursor:pointer; }
.rv-goog.on{ color:#3a6b22; background:#e9f7df; border-color:#bfe3aa; }
.rv-custset{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-bottom:10px; }
.rv-custset .rv-ask{ margin-bottom:0; }
.rv-ask{ display:inline-flex; align-items:center; gap:8px; font-weight:800; color:#16246b; font-size:13.5px; margin-bottom:10px; }
/* the Google review block on the customer card: when we asked, whether they
   left one, and the never-ask switch, in one tidy box. Adam, 4 Nov 2026. v1923 */
.gr-block{ border:1px solid #e6e9f2; border-radius:12px; background:#fff; padding:12px 14px 4px; margin:0 0 14px; }
.gr-h{ font-size:14px; font-weight:900; color:#16246b; margin:0 0 6px; }
.gr-row{ display:grid; grid-template-columns:170px 1fr; gap:4px 14px; align-items:start; padding:9px 0; border-top:1px solid #edf0f7; }
.gr-h + .gr-row{ border-top:0; }
.gr-lab{ font-size:11.5px; font-weight:900; letter-spacing:.4px; text-transform:uppercase; color:#6b7590; line-height:36px; }
.gr-val{ min-width:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-height:36px; }
.gr-date{ font-weight:800; color:#16246b; font-size:13.5px; line-height:1.5; padding:2px 0; }
.gr-none{ font-weight:700; color:#6b7590; font-size:13px; line-height:36px; }
.gr-ask{ margin:0; min-height:36px; }
.gr-ask.off{ color:#b5342f; }
.gr-note{ font-size:12px; font-weight:700; color:#b5342f; margin:2px 0 4px; }
/* the card's review switch reads the same as the job screen's: green ON, red OFF,
   and says what a tap does. The send button beside it, with the same "already
   sent" check. Adam, 4 Nov 2026. v1927 */
.gr-revtog{ height:36px; padding:0 16px; border-radius:10px; border:1.5px solid #57bd34; background:#f2fbee; color:#2f7d18; font:inherit; font-weight:900; font-size:13.5px; cursor:pointer; max-width:100%; }
.gr-revtog.off{ border-color:#b5342f; background:#fdf0ef; color:#b5342f; }
.gr-revtog:disabled{ opacity:.6; cursor:default; }
.gr-send{ height:36px; padding:0 16px; border:0; border-radius:10px; background:#2547d6; color:#fff; font:inherit; font-weight:900; font-size:13.5px; cursor:pointer; max-width:100%; }
.gr-send:hover{ background:#1f3fc4; }
.gr-send:disabled{ background:#e8edf7; color:#8b93a7; cursor:default; }
.gr-confirm{ margin-top:8px; padding:10px 12px; border-radius:10px; background:#eef2ff; border:1px solid #c9d4fb; border-left:4px solid #2547d6; font-weight:800; color:#16246b; font-size:13.5px; align-self:stretch; }
.gr-cbtns{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.gr-yes, .gr-no{ height:36px; padding:0 14px; border-radius:10px; font:inherit; font-weight:800; font-size:13px; cursor:pointer; }
.gr-yes{ border:0; background:#2547d6; color:#fff; }
.gr-no{ border:1px solid #cfd6e8; background:#fff; color:#16246b; }
.gr-msg{ margin-top:6px; font-size:12.5px; font-weight:800; color:#2f7d18; }
.gr-msg.bad{ color:#b5342f; }
@media (max-width:640px){ .gr-row{ grid-template-columns:1fr; } .gr-lab{ line-height:1.4; } }
/* + Customer and + Callback beside the name. v1386 */
.dash-hirow{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.dash-adds{ display:inline-flex; gap:8px; flex-wrap:wrap; }
.dash-add{ height:36px; padding:0 14px; border:none; border-radius:10px; background:var(--royal); color:#fff; font:inherit; font-size:13.5px; font-weight:800; cursor:pointer; box-shadow:0 4px 12px rgba(37,71,214,.22); white-space:nowrap; }
.dash-add:hover{ background:var(--navy); }
@media (max-width:760px){ .dash-adds{ width:100%; } .dash-add{ flex:1 1 0; } }
/* The photo in the open spot after the numbers - all of it shows. v1387 */
.dash-photo{ grid-row:span 2; border-radius:14px; overflow:hidden; background:#fff; border:1px solid var(--line,#e6e9f2); display:flex; align-items:center; justify-content:center; min-height:0; }
.dash-photo img{ width:100%; height:100%; max-height:220px; object-fit:contain; display:block; }
/* Jen and Cody, cropped by Adam to the shape of one tile, sitting in the grid
   exactly like a number tile. Adam, 2 Oct 2026. v1427 */
.dash-photo{ grid-row:auto; position:relative; min-height:74px; display:block; }
.dash-photo img{ position:absolute; inset:0; width:100%; height:100%; max-height:none; object-fit:cover; object-position:50% 45%; }
/* The day's quote after + Customer and + Callback. v1388 */
.dash-quote{ flex:1 1 260px; min-width:0; font-size:14px; font-style:italic; color:var(--muted,#6b7488); font-weight:600; line-height:1.4; }
.dash-quote b{ font-style:normal; font-weight:800; color:var(--navy,#16246b); white-space:nowrap; }
@media (max-width:760px){ .dash-quote{ flex-basis:100%; font-size:13px; } }

/* the photo tile is a button: tap it to change the photos. v1845 */
button.dash-photo{ width:100%; background:#fff; color:inherit; text-align:left; }
button.dash-photo:focus-visible{ outline:3px solid var(--royal,#2547d6); outline-offset:2px; }
/* Reviews on a phone: stars, name, day and service on one row, the review words
   on one line; tap the top line for Job screen, Google review and Dealt with.
   Adam, 5 Nov 2026. v1931 */
@media (max-width:640px){
  .rv-row{ padding:8px 12px; margin-bottom:6px; }
  .rv-row > .rv-top{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 8px; white-space:nowrap; cursor:pointer; position:relative; padding-right:22px; min-height:24px; }
  .rv-row > .rv-top b{ overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .rv-row > .rv-top .rv-when{ grid-column:1 / -1; min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:12.5px; }
  .rv-row > .rv-top::after{ content:'\203A'; position:absolute; right:2px; top:50%; transform:translateY(-50%); color:#8a94a6; font-size:22px; font-weight:700; transition:transform .15s; }
  .rv-row.mr-on > .rv-top::after{ transform:translateY(-50%) rotate(90deg); color:#2547d6; }
  .rv-row:not(.mr-on) > .rv-acts{ display:none; }
  .rv-row.mr-on > .rv-acts{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .rv-row.mr-on > .rv-acts > *{ flex:none; min-width:0; }
  .rv-row:not(.mr-on) > .rv-words{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
}
/* the average on one line on a phone, and an opened review's three buttons one
   above the other, full width, each label on one line. v1931 */
@media (max-width:640px){
  .rv-sum{ flex-wrap:nowrap; white-space:nowrap; gap:8px; font-size:15px; }
  .rv-sum b{ white-space:nowrap; }
  .rv-sum .rv-when{ flex:none; }
  .rv-row.mr-on > .rv-acts{ grid-template-columns:1fr; }
  .rv-row.mr-on > .rv-acts > *{ white-space:nowrap; height:36px; min-height:36px; display:flex; align-items:center; justify-content:center; }
}
