/* css/sales-reps-calendar.css — Sales Reps: Bookings, the manager's calendar (js/sales-reps-calendar.js).
   Calendly's Scheduled events list and Google Calendar's week, in the app's own tokens. After sales-reps-manager.css.
   Since 24 Nov 2026 also the booking row's "i" and its toggletip (srcal-info, srcal-tip) and what is happening (srx-). */

.srcal-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.srcal-filter { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.srcal-filter .select { min-width: 0; }
.srcal-warn { margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--warn); }

/* The rep's colour, the same six the cover grid uses. s0: no rep. */
.srcal-tint.s0 { background: var(--surface-2); }
.srcal-tint.s1 { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); }
.srcal-tint.s2 { background: color-mix(in srgb, var(--good) 36%, var(--surface)); }
.srcal-tint.s3 { background: color-mix(in srgb, var(--warn) 40%, var(--surface)); }
.srcal-tint.s4 { background: color-mix(in srgb, var(--plum) 34%, var(--surface)); }
.srcal-tint.s5 { background: color-mix(in srgb, var(--rose) 32%, var(--surface)); }
.srcal-tint.s6 { background: color-mix(in srgb, var(--accent-deep) 30%, var(--surface)); }
.srcal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* Upcoming and Past: one card per day, a row per booking (js/sales-reps-calendar.js rowHtml, 24 Nov 2026). Calendly's
   scheduled events and HubSpot's meetings list: the time, the person and ONE status chip on the line you scan; the call,
   where it came from, the rep and the fit quieter under it; the facts about them a third muted line. */
.srcal-day { margin-bottom: 12px; padding: 4px 0; overflow: hidden; }
.srcal-dayhead { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 8px; font-size: 14px; font-weight: 600; }
.srcal-dayhead .count { margin-left: auto; }
.srcal-row {
  position: relative; display: grid; grid-template-columns: 4px 132px minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
  grid-template-areas: "strip when main status" "strip when main note"; align-items: start; column-gap: 14px; row-gap: 4px;
  padding: 12px 16px; border-top: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.srcal-row:hover { background: var(--surface-2); }
/* The row's one button lies UNDER its content (a stretched link): a click anywhere opens the booking, the keyboard reaches
   it, and the facts keep their hover titles. The "i" sits above both. */
.srcal-open { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.srcal-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 8px; }
.srcal-row > .srcal-strip, .srcal-row > .srcal-when, .srcal-row > .srcal-main, .srcal-row > .srcal-status, .srcal-row > .srcal-note { position: relative; z-index: 1; }
/* No grey flash on a tap: the row and the "i" show their own states. */
.srcal-row, .srcal-open, .srcal-info { -webkit-tap-highlight-color: transparent; }
.srcal-row > .srcal-strip { grid-area: strip; align-self: stretch; border-radius: 2px; min-height: 36px; }
.srcal-when { grid-area: when; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; min-width: 0; }
.srcal-range { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; white-space: nowrap; }
.srcal-theirs { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.srcal-main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }
.srcal-main b, .srcal-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srcal-main b { font-size: 14.5px; font-weight: 600; }
.srcal-main .sr-small { font-size: 13px; }
/* The person's picture and facts line (css/sales-reps-about.css .sra-who): the facts wrap, the face never shrinks. */
.srcal-main .sra-who, .srcal-main .sra-who-text { overflow: visible; white-space: normal; }
.srcal-main .sra-face { flex: 0 0 32px; overflow: hidden; }
.srcal-main .sra-seen { white-space: normal; overflow: visible; color: var(--text-3); margin-top: 2px; }
.srcal-main .sra-seen > span { white-space: normal; overflow: visible; }
.srcal-status { grid-area: status; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.srcal-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.srcal-note { grid-area: note; justify-self: end; font-size: 13px; color: var(--text-3); text-align: right; }
/* Over (released, canceled, missed, a no-show): quiet, never struck through; its chip says what happened. */
.srcal-row.over .srcal-range, .srcal-row.over .srcal-main b { color: var(--text-3); }
.srcal-row.over .sra-face { opacity: .55; }
/* A phone: the time and the state on the first line, the person under them. */
@media (max-width: 640px) {
  .srcal-row { grid-template-columns: 4px minmax(0, 1fr) auto; grid-template-rows: none; grid-template-areas: "strip when status" "strip main main" "strip note note"; column-gap: 10px; padding: 12px; }
  .srcal-status { align-items: flex-end; }
  .srcal-note { justify-self: start; text-align: left; padding-left: 42px; }
  /* The quiet line wraps on a phone rather than cutting off the rep and the fit. */
  .srcal-main .sra-who-text > .sr-small, .srcal-main > .sr-small { white-space: normal; }
  /* The facts move to the booking's sheet (About them) on a phone: the row keeps who, when and the state. */
  .srcal-main .sra-seen { display: none; }
}

/* The "i" beside the status (the app's info bubble, sequences.css .seq-info): opens what is happening (the toggletip). */
.srcal-info {
  position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%;
  background: var(--surface); color: var(--text-2); font: 600 12px/1 Inter, system-ui, sans-serif; font-style: normal; cursor: pointer;
}
.srcal-info:hover, .srcal-info[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.srcal-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A finger needs more than 22px: the hit area grows to 38px (WCAG 2.5.8 asks 24 at least), the circle stays small. */
@media (pointer: coarse) { .srcal-info::before { content: ''; position: absolute; inset: -8px; } }

/* The toggletip: one box on the body (the day cards clip what overflows them), placed by the script beside its "i";
   under every modal (100060) and toast (100090). A bottom sheet on a phone. */
.srcal-tip {
  position: fixed; z-index: 100050; left: 16px; top: 16px; box-sizing: border-box; width: 440px; max-width: calc(100vw - 32px);
  max-height: min(74vh, 640px); overflow: auto; overscroll-behavior: contain; padding: 14px 16px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg, 14px);
  box-shadow: 0 18px 44px rgba(21, 23, 43, .18), 0 2px 6px rgba(21, 23, 43, .08); font-size: 13.5px; line-height: 1.5; text-align: left;
}
.srcal-tip[hidden] { display: none; }
@media (max-width: 640px) {
  .srcal-tip { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-width: none; max-height: 78vh; border-radius: 16px; padding: 14px 14px 12px; }
}

/* What is happening (release-explain.js): the state, the rule, the schedule with a "Now" line. In the toggletip and the
   booking sheet alike. */
.srx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.srx-for { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.srx-close { flex: none; margin-left: auto; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.srx-close:hover { background: var(--surface-2); color: var(--text); }
.srx-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.srx-say { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--text); }
.srx-say b { font-weight: 600; white-space: nowrap; }
.srx-rule { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.srx-rule > span, .srx-h { display: block; margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.srx-h { margin: 0 0 2px; }
.srx-zones { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
.srx-zones b { font-weight: 600; color: var(--text-2); }
.srx-steps { position: relative; list-style: none; margin: 0; padding: 0; }
.srx-steps::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.srx-step { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 10px; padding: 5px 0; }
.srx-dot { position: relative; z-index: 1; box-sizing: border-box; width: 12px; height: 12px; margin-top: 4px; border: 2px solid var(--text-4); border-radius: 50%; background: var(--surface); }
.srx-step.t-good .srx-dot { border-color: var(--good); }
.srx-step.t-warn .srx-dot { border-color: var(--warn); }
.srx-step.t-bad .srx-dot { border-color: var(--danger); }
.srx-step.t-info .srx-dot { border-color: var(--accent); }
.srx-step.past.t-good .srx-dot { background: var(--good); }
.srx-step.past.t-bad .srx-dot { background: var(--danger); }
.srx-step.past.t-warn .srx-dot { background: var(--warn); }
.srx-step.past.t-muted .srx-dot { background: var(--surface-3); }
.srx-body { display: flex; flex-direction: column; min-width: 0; }
.srx-what { font-size: 13px; font-weight: 600; color: var(--text); }
.srx-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-2); }
.srx-tz { white-space: nowrap; }
.srx-status { font-size: 13px; color: var(--text-3); }
.srx-step.t-bad .srx-status { color: var(--danger); }
.srx-step.t-warn .srx-status { color: color-mix(in srgb, var(--warn) 70%, var(--text)); }
.srx-step.past .srx-what { color: var(--text-2); font-weight: 500; }
.srx-step.past.t-muted .srx-what, .srx-step.past.t-muted .srx-time { color: var(--text-3); }
.srx-now { position: relative; display: flex; align-items: center; gap: 8px; margin: 4px 0; padding-left: 22px; font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.srx-now::before { content: ''; position: absolute; left: 1px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); z-index: 1; }
.srx-now::after { content: ''; flex: 1; height: 1px; background: var(--accent); opacity: .45; }
.srx.in-sheet .srx-say { font-size: 13.5px; }

/* Week: seven columns, the hours down the side. Scrolls sideways inside its card on a phone. */
.srcal-week { padding: 0; overflow: hidden; }
.srcal-weeknav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.srcal-weeknav .sr-small { margin-left: auto; }
.srcal-wk-scroll { overflow-x: auto; }
.srcal-wk { --srcal-hour: 52px; min-width: 780px; }   /* tall and wide enough for 13px in a 30-minute block; scrolls sideways on a phone */
.srcal-wk-head, .srcal-wk-body { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
.srcal-wk-head span { padding: 8px 6px; font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; border-bottom: 1px solid var(--border); }
.srcal-wk-head span.today { color: var(--accent-deep); }
.srcal-wk-gutter span { display: block; height: var(--srcal-hour); padding: 0 6px; font-size: 13px; color: var(--text-3); text-align: right; transform: translateY(-6px); }
.srcal-wk-gutter span:first-child { transform: none; }
.srcal-wk-col {
  position: relative; height: calc(var(--srcal-rows) * var(--srcal-hour)); border-left: 1px solid var(--border);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--srcal-hour) - 1px), var(--border) calc(var(--srcal-hour) - 1px), var(--border) var(--srcal-hour));
}
.srcal-wk-col.today { background-color: color-mix(in srgb, var(--accent) 5%, transparent); }
.srcal-block {
  position: absolute; left: 3px; right: 3px; min-height: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 1px;
  padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 6px;
  font: inherit; font-size: 13px; line-height: 1.25; color: var(--text); text-align: left; cursor: pointer;
}
.srcal-block b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srcal-block span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srcal-block.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.srcal-block.short b { flex: 0 1 auto; min-width: 3em; }
.srcal-block.short span { flex: 0 100 auto; min-width: 0; }   /* the time gives way first; the name is what a manager looks for */
.srcal-block.cut { opacity: .55; text-decoration: line-through; }
.srcal-block.warn { box-shadow: inset 3px 0 0 var(--warn); }
.srcal-block:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.srcal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); pointer-events: none; }
.srcal-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.srcal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }

/* One booking's sheet. */
.srcal-detail-when { margin: 0 0 6px; font-size: 15px; line-height: 1.45; }
.srcal-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.srcal-dl.srcal-dl-wide { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.srcal-dl > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .srcal-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.srcal-addr { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-2); user-select: all; }

/* The team's toolbar end: the Rep filter and "Book a call" (26 Nov 2026), on one line where there is room. */
.srcal-bar-end { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
/* My bookings: the calls this rep booked for someone else, apart from their own day. */
.srcal-others { margin-top: 14px; }
