/* ── WHERE THE SALES PEOPLE ARE GOING ────────────────────────────────────────
   "Redo this, the design is horrendous" — and it was: seven columns of equal weight
   with no header, two rows of controls above three lines of content, and the least
   important thing on the row holding the first and strongest column.

   ⚠ THIS FILE INVENTS ALMOST NOTHING NOW. The list is the app's own `table.dt` — one
   header row on a 1.5px ink rule, hairline rows, no zebra, the row lifting to --paper
   under the pointer — which is the shape he asked every maintenance list to take. The
   spans are the app's own tabs, with the accent underline. What is left here is the
   handful of things this screen genuinely has and no other screen does: a day heading
   inside the table, a box you type into where it stands, and the state pill. */

/* ⚠ THE SPANS AND THE FILTERS LIVE IN THE PANEL BESIDE THE RAIL — the shell borrows
   them there, the same as every other screen. What is left on the page is the row that
   says which days are showing. These rules are what they wear if the panel is shut, or
   on a phone, where they come back to the page. */
/* ── the head: tabs, then one row of controls ── */
.vs-tabs{margin-bottom:14px}
.vs-tabcount{margin-left:auto;align-self:center;font-family:var(--num);font-variant-numeric:tabular-nums;
  font-size:13px;color:var(--ink-faint);padding-bottom:10px}
.vs-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.vs-when{display:flex;align-items:center;gap:6px}
/* ⚠ THE ARROWS SIT TOGETHER, to the LEFT of the date. Apart, with the date between
   them, they read as belonging to the word rather than to the days — the same
   complaint he made about the attendance month picker. */
.vs-arrow{width:28px;height:28px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);
  color:var(--ink-soft);font-size:16px;line-height:1;cursor:pointer;padding:0}
.vs-arrow:hover{border-color:var(--ink-faint);color:var(--ink)}
.vs-range{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink);margin-left:6px}
.vs-today{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--accent);
  background:none;border:0;padding:4px 2px;margin-left:8px;cursor:pointer}
.vs-tools-r{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.vs-picks{display:flex;align-items:center;gap:10px}
/* on the page the name sits beside the menu; in the panel it sits above it, which is
   the panel's own rule and not this file's business */
.vs-pick{display:flex;align-items:center;gap:7px;font-family:'Inter',sans-serif;font-size:12px;color:var(--ink-faint)}
.vs-pick select{min-height:34px;font-size:13px;padding:0 34px 0 12px;width:auto;min-width:132px;max-width:190px}

/* ── the list ── */
.vs-table{table-layout:fixed}
.vs-table th.vs-th-r{text-align:right}
/* the day, as a heading inside the table rather than a second header row */
/* ⚠ ONE HEAVY LINE ON THE SCREEN, and it is the column header — his instruction was
   one header row above every list, not one above every day. The day headings are
   hairlines, so the eye can tell which of the two is the header. */
.vs-dayrow>td{padding:24px 0 7px;border-bottom:1px solid var(--rule)}
.vs-table tbody tr.vs-dayrow:hover>td{background:none}
.vs-dayname{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;color:var(--ink-faint)}
/* ⚠ EVERY OTHER DAY IN THE ACCENT — "today is grey font, tomorrow is red font, then next
   is another grey font". Four identical grey headings down a week all read as the same
   heading and you have to read the words to find where one day stops and the next
   starts. Alternating them makes the break visible before it is read. The visits under
   the heading are untouched: the colour says "a new day", not "urgent". */
.vs-dayname.alt{color:var(--accent)}
.vs-daycount{float:right;font-family:var(--num);font-variant-numeric:tabular-nums;
  font-size:13px;color:var(--ink-faint)}
.vs-row.is-off{opacity:.5}
.vs-row.is-off .vs-cust{text-decoration:line-through}
.vs-who{font-size:13px;color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ⚠ A BOX YOU TYPE INTO, THAT IS NOT A BOX UNTIL YOU DO. The same behaviour as editing
   a name where it stands anywhere else in the app: no border, no fill, and the field
   only declares itself under the pointer. A row of grey boxes is a form, and this is
   meant to be a list. */
.vs-f{font:inherit;font-size:15px;color:var(--ink);background:none;border:1px solid transparent;
  border-radius:5px;padding:4px 7px;margin:-4px -7px;width:calc(100% + 14px);min-width:0;
  overflow:hidden;text-overflow:ellipsis}
input.vs-f:hover{border-color:var(--rule)}
input.vs-f:focus{outline:none;border-color:var(--accent);background:var(--surface);
  text-overflow:clip;position:relative;z-index:1}
.vs-cust{font-weight:600}
.vs-why,.vs-res{font-size:13px;color:var(--ink-soft)}
/* the report (S1): "Report" on a planned row, and the next step a report wrote, read-only under what came of it */
.vs-row .vs-rep{min-height:32px;padding:0 14px;font-size:13px}
.vs-next{font-size:13px;line-height:1.35;color:var(--ink);margin-top:6px;overflow-wrap:anywhere}
.vs-next-k{font-weight:600;color:var(--ink-soft)}
.vs-next-d{color:var(--ink-soft);white-space:nowrap}
/* an old row's town, kept readable beside the customer and never asked for again */
.vs-was{font-size:12px;color:var(--ink-faint);margin-left:8px;white-space:nowrap}
/* ═══ ADD A VISIT — the form in the panel beside the rail, 22 Sep 2026 ═══════════ */
/* ⚠ TWO IDS ON PURPOSE. The panel lays every borrowed control out with !important,
   so a plain class could not hide this one and the word "Add a visit" stood over a form
   headed "Add a visit". */
#appside .as-end > #vsAdd.vs-gone,.vs-tools #vsAdd.vs-gone,
#appside .as-end > #vsSend.vs-gone,.vs-tools #vsSend.vs-gone{display:none!important}
/* the panel's block is a column as tall as the panel, so its foot can sit on the floor */
#appside #vsPanel{display:flex;flex-direction:column;min-height:100%}
.vs-add{padding:2px 12px 16px;display:flex;flex-direction:column;gap:10px}
.vs-foot{margin-top:auto;padding-top:14px}
/* Who and Office, standing in the foot: label over the box, the width of the panel */
/* ⚠ align-items IS INHERITED FROM THE ROW IT CAME FROM. .vs-picks centres its two
   boxes when it stands in a toolbar; left as it was here, they sat in the middle of the
   panel at half its width while everything above them filled it. */
#vsFoot .vs-picks{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0 12px 12px;width:auto}
#vsFoot .vs-pick{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:12.5px;color:var(--ink-soft)}
#vsFoot .vs-pick.hidden{display:none}
#vsFoot .vs-pick select{width:100%;min-width:0;max-width:none}
#vsFoot .vs-copy{border-top:1px solid var(--rule-soft);padding-top:14px}
/* ⚠ PLAIN CASE, like the labels it stands beside. The panel says 'Who', 'Office',
   'Copy for WhatsApp' — a small uppercase heading in the middle of those is the one
   thing on the panel written in a different voice. */
.vs-add-h{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink);
  padding-top:12px;border-top:1px solid var(--rule-soft)}
.vs-add-f{display:flex;flex-direction:column;gap:4px}
.vs-add-f.hidden{display:none}
.vs-add-f>span{font-family:'Inter',sans-serif;font-size:12.5px;color:var(--ink-soft)}
.vs-add-f .inp{width:100%}
.vs-add-go{width:100%;justify-content:center;margin-top:2px}
.vs-add-say{font-family:'Inter',sans-serif;font-size:12.5px;color:var(--accent);min-height:1px}
.vs-add-say:empty{display:none}
/* the copy block at the foot of the panel */
.vs-copy{padding:0 12px 18px;display:flex;flex-direction:column;gap:8px}
.vs-copy .vs-add-h{border-top:0;padding-top:0}
.vs-copy.hidden{display:none}
.vs-copy .inp{width:100%}
.vs-copy-go{width:100%;justify-content:center}
/* on a phone there is no panel to stand in, and the sheet asks the same questions */
@media (max-width:760px){#vsPanel{display:none}}
.vs-ph{color:var(--ink-ghost)}

/* ── WHOSE VISIT IT IS ───────────────────────────────────────────────────────
   ⚠ IT BEHAVES LIKE THE BOXES BESIDE IT, and that is the only reason it belongs on
   the row: quiet until the pointer is on it, 13px like the rest of the quiet column,
   and no arrow drawn until then. A pull-down with a permanent border and a chevron
   in a list of borderless fields is a form control that wandered in.
   ⚠ THE ARROW IS DRAWN HERE, not left to the browser. A native select's own arrow
   cannot be turned off on its own — appearance:none takes the whole control with it,
   which is what is wanted, and the arrow is put back as a background image so it can
   be hidden until hover. */
/* ⚠⚠ THE CELL CLIPS, AND THIS BOX HANGS OUTSIDE IT. `.vs-who` is overflow:hidden —
   written when it held plain text — and `.vs-f` pulls its box 4px above the line with a
   negative margin so the padding does not push the row apart. Together that leaves the
   top edge of this control 4px into a cell that cuts anything sticking out, with only
   the row's padding for slack. At 1440px there are 11px to spare and nothing shows;
   change the row padding, the font, or the screen's scaling and the top of the box goes.
   He reported exactly that, 21 Sep 2026, and it could not be reproduced here — so the
   cell is simply told not to clip its own control, whatever the slack turns out to be. */
.vs-who:has(select.vs-whopick){overflow:visible}
select.vs-whopick{font-size:13px;color:var(--ink-soft);
  -webkit-appearance:none;appearance:none;cursor:pointer;
  padding-right:18px;width:calc(100% + 14px);
  background-image:none;background-repeat:no-repeat;background-position:right 5px center;
  background-size:9px 6px}
select.vs-whopick:hover{border-color:var(--rule);color:var(--ink);
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%239b9a94' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E")}
select.vs-whopick:focus{outline:none;border-color:var(--accent);background-color:var(--surface);color:var(--ink)}

/* ── the state, and taking a line off ── */
.vs-end{text-align:right;white-space:nowrap}
.vs-state{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;border:0;border-radius:999px;
  padding:4px 10px;cursor:pointer}
.vs-state:disabled{cursor:default}
.vs-del{width:24px;height:24px;margin-left:4px;border:0;border-radius:6px;background:none;
  color:transparent;font-size:12px;cursor:pointer;vertical-align:middle}
.vs-row:hover .vs-del{color:var(--ink-ghost)}
.vs-del:hover{background:var(--alert-bg);color:var(--alert)}

.vs-none{padding:52px 0;text-align:center;font-size:15px;color:var(--ink-soft);line-height:1.9}
.vs-none-sub{display:block;font-size:13px;color:var(--ink-faint)}

/* the text, when the browser will not take it to the clipboard — on the page,
   selected, rather than a message saying it did not work */
.vs-copybox{width:100%;min-height:150px;margin:0 0 18px;padding:12px 14px;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.6;
  color:var(--ink);background:var(--field);border:1px solid var(--rule);border-radius:8px;resize:vertical}

/* ⚠ ON A PHONE EVERY ROW IS A CARD. table.dt already folds this way — each cell takes
   its own line with its name beside it — so the only work here is the two cells that
   should not carry a label and the state, which belongs at the top of the card. */
/* ⚠ ON A PHONE A VISIT IS FOUR LINES, NOT ELEVEN. The app's table folds every cell
   onto its own line with its name beside it, which is right for a customer's order
   history and wrong here: five labelled lines and a pill meant one visit filled the
   screen and a day was a scroll. The labels go, and the row becomes what somebody
   actually reads standing at a gate — the customer and whether it is done, then who
   and where, then what for, then what came of it if there is anything to say. */
@media(max-width:760px){
  .vs-tools{gap:10px}
  .vs-tools-r{margin-left:0;width:100%}
  /* ⚠ TWO MENUS, ONE EACH TO A LINE, THE SAME SIZE — his call, 18 Sep 2026, and
     the third shape this row has had today. Full width was my first attempt and he
     turned it down: the two menus then shouted over the dark button underneath them.
     What makes it right now is that the button has LEFT THE ROW — it floats over
     the list, so nothing on this line competes with it and the menus can take the
     width that makes them readable.
     ⚠ SAME SIZE MEANS SAME GRID CELL, not a guessed width. One column, so the two
     are identical whatever is written inside them — "Everybody" and "Every office"
     are different lengths and a flex basis would have left them different sizes. */
  .vs-picks{display:grid;grid-template-columns:1fr;gap:8px;width:100%}
  .vs-pick{display:block;max-width:none;min-width:0}
  .vs-pick>span{display:none}
  /* ⚠ background-COLOR, not background — the shorthand wipes the chevron, which
     m3.css paints as a background-image on every select in the app. */
  .vs-pick select,.vs-pick .inp{
    width:100%;min-width:0;max-width:none;min-height:46px;
    border:1px solid var(--rule);border-radius:10px;
    background-color:var(--surface);background-position:right 14px center;
    font-size:15px;color:var(--ink);padding:0 40px 0 14px}

  /* ⚠ THE ACTION FLOATS, like Log a job on Maintenance, and for the same reason:
     it is the one thing this screen exists to do and it should be under the thumb
     wherever you have scrolled to. Same size, same corner, same distance up. */
  #vsAdd{
    position:fixed;right:16px;bottom:calc(22px + var(--sab));z-index:60;
    width:auto;margin:0;
    display:inline-flex;align-items:center;justify-content:center;
    min-height:48px;padding:0 22px;border:0;border-radius:24px;
    background:var(--accent);color:var(--on-accent);
    font-family:'Inter',sans-serif;font-size:15px;font-weight:600;
    box-shadow:0 4px 14px rgba(var(--shade-rgb),.2)}
  #vsAdd:active{transform:translateY(1px)}
  /* the list must not end underneath it */
  #view-visits{padding-bottom:96px!important}
  .vs-dayrow>td{padding:18px 0 6px}
  .vs-daycount{float:none;margin-left:8px}

  /* ⚠ WHO AND WHERE SHARE A LINE, side by side — given the same grid area they were
     drawn on top of each other, which is what "Biwi" over "Bandung" was. */
  .vs-table tbody tr.vs-row{display:grid;grid-template-columns:auto 1fr auto;
    grid-template-areas:'cust cust state' 'who who who' 'why why why' 'res res res';
    gap:3px 8px;align-items:center;padding:13px 0;border-bottom:1px solid var(--rule-soft)}
  .vs-table tbody tr.vs-row>td{display:block;padding:0;border:0}
  .vs-table tbody tr.vs-row>td::before{display:none}   /* the label is the line itself now */

  /* ⚠ A CELL THAT HOLDS A FIELD HAS TO HAVE A SIZE. Measured at 375px: all four of
     them were 0 x 0, so every box you type into was drawn at nothing and a new visit
     read as a blank line with a name on it. The field fills its cell and the cell
     fills its area. */
  .vs-table tbody tr.vs-row>td{min-width:0}
  .vs-row .vs-f{display:block;width:100%;min-width:0;box-sizing:border-box}

  /* ⚠ NO BOXES. An empty field was drawn as a dashed box so a new visit looked
     like something you could fill in — and three of them under every row turned a
     day's list into a column of empty boxes: "wtf is this", 18 Sep 2026, the second
     time on this row. The phone does not make an empty visit any more; it asks
     first, in vsNew below. A field you tap to correct is a plain line again. */
  .vs-row .vs-f{min-height:34px;font-size:15px}

  /* the Time cell (D1, 20 Oct 2026) is the 2nd cell now, so the others moved one along;
     it shares the who line, in front of the name */
  .vs-table tbody tr.vs-row{grid-template-areas:'cust cust state' 'time who who' 'why why why' 'res res res'}
  .vs-table tbody tr.vs-row>td.vs-time{grid-area:time}
  .vs-table tbody tr.vs-row>td:nth-child(3){grid-area:cust}
  .vs-table tbody tr.vs-row>td:nth-child(4){grid-area:why}
  .vs-table tbody tr.vs-row>td:nth-child(5){grid-area:res}
  .vs-table tbody tr.vs-row>td.vs-end{grid-area:state;text-align:right}
  /* the name has its own quiet line — and nothing after it: the dot used to join it
     to the town, and with the town gone it would hang off the end of the name */
  .vs-table tbody tr.vs-row>td.vs-who{grid-area:who}
  /* ⚠ ONLY THE RESULT, NOT EVERY EMPTY BOX. The intent was right and the reach was
     too wide: an empty result box under every planned visit was a column of gaps, so
     empty cells were hidden — ALL of them. A brand new visit has every cell empty, so
     the whole row disappeared and left a line with a name on it and nothing to press.
     That is what he was looking at: "what is this?", 18 Sep 2026.
     A result is legitimately empty until somebody has been. A customer, a town and a
     reason are the things you are supposed to write, so they stay and are drawn as
     boxes above. */
  .vs-table tbody tr.vs-row>td:nth-child(5):has(.vs-blank){display:none}
  .vs-f{margin:0;width:100%;padding:3px 0}
  input.vs-f{border-color:transparent}
  input.vs-f:focus{padding:3px 8px;margin:0 -8px;width:calc(100% + 16px)}
  .vs-cust{font-size:15px}
  .vs-del{color:var(--ink-ghost)}
}

/* ── THE ADD-A-VISIT SHEET ──────────────────────────────────────────────────
   Three questions in the app's own bottom sheet, so a visit is real before it is
   on the list. Phone only — the laptop still adds a blank line to type across. */
@media(max-width:760px){
  .vs-askwrap{padding:4px 20px 20px;display:flex;flex-direction:column;gap:14px}
  .vs-ask{display:block}
  /* the label's word only: our own pick list's wrapper (crmPick's span.crm-pk, phase 4) is a span too and must stay unstyled */
  .vs-ask>span:not(.crm-pk){display:block;font-family:'Inter',sans-serif;font-size:13px;
    color:var(--ink-faint);margin-bottom:5px}
  .vs-ask .inp{width:100%;min-height:48px;font-size:16px}
  /* ⚠ 16px, NOT 15. iOS zooms the whole page in on a field whose text is under
     16px, and then leaves it zoomed — which on a sheet means the buttons walk off
     the side of the screen. */
  #vsAskGo{width:100%;min-height:48px;margin-top:2px}
}

/* ── THE TIME (real build plan D1, 20 Oct 2026) ─────────────────────────────────
   Our own button over a hidden time box (see vsTimeBox in visits.js): in the form it wears
   the form's own .inp; on a row it is quiet like the boxes beside it, and the empty "until"
   only shows under the pointer, so a list of visits is not a column of placeholders. */
.vs-add-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vs-tbox{display:block;min-width:0}
.vs-add-f .vs-tbtn,.vs-ask .vs-tbtn{width:100%;text-align:left;cursor:pointer;font-family:inherit;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vs-add-f .vs-tbtn.vs-tph,.vs-ask .vs-tbtn.vs-tph{color:var(--ink-faint)}
.vs-add-f .vs-tbtn.cp-open,.vs-ask .vs-tbtn.cp-open{border-color:var(--accent);background-color:var(--surface)}
.vs-time{white-space:nowrap}
.vs-tm{display:flex;align-items:center;gap:1px;margin-left:-5px}
.vs-tm .vs-tbox{display:inline-block}
.vs-tm .vs-f.vs-tbtn{display:inline-block;width:auto;margin:-4px 0;padding:4px 5px;font-size:13px;
  color:var(--ink-soft);font-variant-numeric:tabular-nums;cursor:pointer;text-align:left}
.vs-tm .vs-tbtn:hover{border-color:var(--rule);color:var(--ink)}
.vs-tm .vs-tbtn.cp-open{border-color:var(--accent);background:var(--surface);color:var(--ink)}
.vs-tm .vs-f.vs-tph{color:var(--ink-faint)}
.vs-tm .vs-tend.vs-tph{opacity:0}
.vs-row:hover .vs-tm .vs-tend.vs-tph,.vs-tm .vs-tend.vs-tph:focus-visible,.vs-tm .vs-tend.cp-open{opacity:1}
.vs-tdash{font-size:13px;color:var(--ink-faint)}
.vs-tsaid{font-size:13px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
@media(max-width:760px){
  .vs-ask2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .vs-row .vs-tm .vs-f.vs-tbtn{min-height:34px;font-size:14px}
  /* no pointer to hover with: an empty "until" would only hold the name off to the right */
  .vs-tm .vs-tend.vs-tph{display:none}
}

/* #4 (review 26 Sep 2026) — a name that is not a customer: the closest customers, then
   "keep as typed". Full-width rows, 44px tall, so they are thumb targets on a phone. */
.vs-add-say .vs-offer-h{color:var(--ink-soft);margin:6px 0 4px}
.vs-add-say .vs-offer{display:block;width:100%;min-height:44px;margin:4px 0 0;text-align:left;
  font-family:'Inter',sans-serif;font-size:14px;color:var(--ink);padding:8px 12px;
  white-space:normal;overflow-wrap:anywhere;line-height:1.3;height:auto;border-radius:10px}
.vs-add-say .vs-offer-keep{color:var(--ink-soft)}

/* #5 (review 26 Sep 2026) — the three states, chosen, not stepped through. Fixed to the page
   so no list or panel can clip it; under the top bar's layer ladder (.ov is 1000). */
.vs-statemenu{position:fixed;z-index:900;display:flex;flex-direction:column;min-width:150px;padding:4px;
  background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.vs-statemenu button{font-family:'Inter',sans-serif;font-size:14px;text-align:left;border:0;background:none;
  color:var(--ink);padding:10px 12px;border-radius:6px;min-height:40px;cursor:pointer}
.vs-statemenu button:hover,.vs-statemenu button:focus-visible{background:var(--field);outline:none}
.vs-statemenu button.on{font-weight:600}
@media(max-width:760px){
  .vs-statemenu button{min-height:44px;font-size:16px}
  .vs-state{min-height:36px;padding:6px 14px}
}

/* ── THE SUPPLIER WHO GOES ALONG (19 Nov 2026) ─────────────────────────────────
   On the row: its own grey line in the Customer cell, wrapping rather than cut. In the add
   sheet: our own suggestion list under the box (in the flow, thumb-tall rows), then the
   supplier's people as the kit's ticks (.kt wraps them, so the kit's look reaches). */
.vs-was.vs-sup{display:block;margin:2px 0 0;white-space:normal;overflow-wrap:anywhere}
.vs-supask{display:grid;gap:6px}
.vs-supsug{margin:0;padding:4px;list-style:none;border:1px solid var(--rule);border-radius:12px;background:var(--surface);max-height:240px;overflow-y:auto}
.vs-supsug[hidden],.vs-supp[hidden]{display:none}
.vs-supo{min-height:44px;padding:10px 12px;border-radius:8px;font-family:'Inter',sans-serif;font-size:15px;line-height:1.35;color:var(--ink);overflow-wrap:anywhere;cursor:pointer;-webkit-tap-highlight-color:transparent}
.vs-supo.is-on,.vs-supo:active{background:var(--field)}
.vs-supb{color:var(--ink-faint);font-size:13px}
.vs-supp{display:flex;flex-wrap:wrap;gap:4px 8px;background:none}
.vs-supp .st-row.vs-spr{min-height:44px;padding:6px 10px 6px 6px;gap:8px}
.vs-supp .st-row.vs-spr .st-name{flex:none}
.vs-supp .st-row.vs-spr .vs-pt{flex:none;margin-left:-2px;color:var(--ink-faint);font-size:13px}
/* a supplier here that day, beside the day's count (phase 2, 22 Nov 2026); the soft note under the sheet's supplier box */
.vs-daysup{float:right;margin-right:8px;font-size:13px;color:var(--ink-soft)}
@media (max-width:760px){.vs-daysup{float:none;margin:0 0 0 6px}}
.vs-supn{margin:0;min-height:18px;font-size:13px;line-height:18px;color:var(--ink-soft)}
.vs-supn[hidden]{display:none}

/* ── the calendar on a phone (phase 3, 22 Nov 2026): home.css's month rules copied under .vs-calh (phones never load
   home.css; on a laptop the lt layer draws its own). Same class names as the Home, same look ── */
.vs-calh{--hm-wash:#f1f1ef;padding:8px 0 4px}
:root[data-theme="dark"] .vs-calh{--hm-wash:#2a2825}
.vs-calh .hm-mh{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 0 8px}
.vs-calh .hm-mh span{padding-left:4px;font-size:13px;font-weight:600;line-height:16px;color:var(--ink-soft)}
.vs-calh .hm-mg{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(var(--wk),64px);gap:4px}
.vs-calh .hm-mc{min-width:0;min-height:0;overflow:hidden;border-radius:7px;padding:2px 4px;background:var(--hm-wash);display:flex;flex-direction:column;gap:4px}
.vs-calh .hm-mc.out{background:transparent}
.vs-calh .hm-mn{align-self:flex-start;font-size:13px;font-weight:600;line-height:16px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.vs-calh .hm-mc.today .hm-mn{background:var(--ink);color:var(--on-ink);border-radius:999px;padding:0 7px}
.vs-calh .hm-dots{display:flex;flex-wrap:wrap;gap:3px;padding-left:2px}
.vs-calh .hm-dots i{display:block;width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--ink-faint)}
.vs-calh button.hm-mc{border:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer;align-items:stretch;-webkit-tap-highlight-color:transparent;transition:transform .12s ease-out}
.vs-calh button.hm-mc:active{transform:scale(.96)}
.vs-calh button.hm-mc:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.vs-calh .vs-calpick{box-shadow:inset 0 0 0 2px var(--ink)}
.vs-calh .vs-calpast>span:not(.vs-calbands){opacity:.45}
.vs-calh .vs-calpast .vs-calbands{opacity:.6}
.vs-calbands{display:grid;gap:2px;position:absolute;left:0;right:0;bottom:2px;min-width:0;pointer-events:none}
/* one unbroken band per stay: each piece reaches over the 4px gap into the next day (22 Nov) */
.vs-calh .vs-cald{overflow:visible;gap:2px;position:relative}
.vs-calband{display:block;position:relative;min-width:0;height:12px;margin-right:-4px;padding:0 3px;font-size:9px;font-weight:600;line-height:12px;color:var(--ink);background:color-mix(in oklab,var(--c) 26%,transparent);white-space:nowrap}
.vs-calband.vs-calgap{background:transparent}
.vs-calband.vs-calwk6,.vs-calband.vs-calgap{margin-right:0}
.vs-calband.vs-calfrom{margin-left:3px;border-top-left-radius:4px;border-bottom-left-radius:4px;box-shadow:inset 2px 0 0 var(--c)}
.vs-calband.vs-calto{margin-right:3px;border-top-right-radius:4px;border-bottom-right-radius:4px}
.vs-callab{position:relative;z-index:1;display:block;width:calc(var(--run) * 100% + (var(--run) - 1) * 4px - 6px);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.vs-calday{padding:12px 0 8px}
.vs-calt{font-size:15px;font-weight:600;color:var(--ink);margin:0 0 8px}
.vs-calsup{margin:0 0 8px;padding:8px 10px;border-radius:10px;font-size:14px;color:var(--ink-soft);background:color-mix(in oklab,var(--c) 16%,var(--surface));box-shadow:inset 3px 0 0 var(--c);overflow-wrap:anywhere}
.vs-calsup b{color:var(--ink);font-weight:600}
.vs-calnone{padding:12px 0}
.vs-caladd{margin-top:12px;min-height:44px}
/* five span tabs on one line at phone width (Calendar is the fifth): tighter tabs, the count steps aside */
@media (max-width:420px){#view-visits #vsTabs{flex-wrap:nowrap;gap:0 2px}#view-visits #vsTabs .tab{padding-left:7px;padding-right:7px;white-space:nowrap;min-width:0}#view-visits #vsTabs .vs-tabcount{display:none}}
/* the Who pick's "Technicians" heading (phase 4, 22 Nov 2026): a heading in our own pick list, laptop and phone; never a pick */
.po-list li.vs-pogrp{padding:12px 10px 4px;font-size:12px;font-weight:600;color:var(--sp-grey);cursor:default;list-style:none;border-top:1px solid var(--sp-line);margin-top:4px}
/* phase 5C (22 Nov 2026): the person's leave on a visit's day, beside the name on the phone row and in the add sheet's note */
.vs-away{color:var(--accent-deep);font-weight:600;font-size:12px;margin-left:6px;white-space:nowrap}
.vs-awayn .vs-away{margin-left:0;font-size:inherit}
