/* Employee Portal · Phone Room. Tokens from /hq/theme.css, primitives from team.css. */

.pr { display: grid; gap: 20px; }
.pr.is-settled .rise { animation: none; }
/* The calendar gets the full width; the side cards sit under it, or beside it on very wide screens. */
.pr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.pr-stack { display: grid; gap: 20px; }

/* ── Right now ─────────────────────────────────────────── */

.pr-now { margin: 0; display: grid; gap: 18px; }
.pr-now h2 { margin: 0 0 4px; }
.pr-now p { margin: 0; }
.pr-now-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.24); }
.btn-light:hover { background: rgba(255,255,255,.16); }
.pr-room { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 13px; text-align: left;
}
button.pr-chip { cursor: pointer; transition: background .15s, border-color .15s; }
button.pr-chip:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.pr-chip strong { display: block; font-size: 13.5px; line-height: 1.2; }
.pr-chip small { display: block; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.3; }
.pr-chip .pill { margin-left: 2px; }
.pr-face { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c, var(--navy-3)); color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.pr-face::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #9aa3ad; border: 2px solid var(--navy-2); }
.pr-face.is-on::after { background: #3ccf6e; }
.pr-face.is-sick::after { background: #e5484d; }
.pr-face.sm { width: 24px; height: 24px; font-size: 11px; }
.pr-face.sm::after { display: none; }
.pill-next { background: var(--gold); color: var(--heading); }

/* ── Schedule ──────────────────────────────────────────── */

.pr-cal .card-head { flex-wrap: wrap; align-items: center; }
.pr-cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-range { color: var(--heading) !important; font-weight: 700; font-size: 14px !important; }
.pr-nav { display: inline-flex; gap: 4px; }
.pr-nav button { min-width: 36px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--heading); font-weight: 700; cursor: pointer; }
.pr-nav button:hover { background: var(--soft); }

.pr-week { display: grid; grid-template-columns: 116px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); gap: 1px; }
.pr-week > * { background: var(--paper); min-width: 0; }
.pr-dayhead { padding: 9px 6px; text-align: center; background: var(--soft); }
.pr-dayhead b { display: block; color: var(--heading); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pr-dayhead small { display: block; color: var(--muted); font-size: 12px; }
.pr-dayhead.is-today { background: var(--navy); }
.pr-dayhead.is-today b, .pr-dayhead.is-today small { color: #fff; }
.pr-corner { background: var(--soft); }
.pr-rowhead { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--soft); color: var(--heading); font-size: 13.5px; font-weight: 700; }
.pr-rowhead small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.pr-cell {
  display: flex; flex-direction: column; justify-content: center; gap: 7px; min-height: 64px; padding: 10px 9px;
  border: 0; font: inherit; text-align: left; color: var(--ink); cursor: default;
}
button.pr-cell { cursor: pointer; transition: background .15s; }
button.pr-cell:hover { background: #fbf8ef; }
button.pr-cell:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.pr-cell .t { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.pr-cell .k { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.pr-cell .note { color: var(--muted); font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-cell.kind-none .t { color: var(--muted); font-weight: 600; }
.pr-cell.kind-off { background: repeating-linear-gradient(-45deg, #f7f7f5, #f7f7f5 6px, #efefeb 6px, #efefeb 12px); }
.pr-cell.kind-off .t { color: var(--pill-grey-fg); }
.pr-cell.kind-sick { background: var(--pill-red-bg); }
.pr-cell.kind-sick .t { color: var(--pill-red-fg); }
.pr-cell.kind-hours { box-shadow: inset 0 0 0 2px var(--gold); }
.pr-cell.is-today:not(.kind-off):not(.kind-sick) { background: #fffcf3; }
.pr-cell.is-past { opacity: .5; }
.pr-cover { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 9px; background: #fcfcfb; }
.pr-cover small { color: var(--pill-red-fg); font-size: 11px; font-weight: 600; line-height: 1.2; }
.pr-cover small.ok { color: var(--pill-green-fg); }
.pr-bar { position: relative; height: 6px; border-radius: 999px; background: #edf0f2; overflow: hidden; }
.pr-bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--c, var(--navy)); }
.pr-bar i.gap { border-radius: 0; background: repeating-linear-gradient(-45deg, #f1b9bd, #f1b9bd 3px, #fde3e5 3px, #fde3e5 6px); }

.pr-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.pr-legend li { display: inline-flex; align-items: center; gap: 7px; }
.pr-legend i { display: inline-block; width: 16px; height: 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); }
.pr-legend i.custom { box-shadow: inset 0 0 0 2px var(--gold); }
.pr-legend i.off { background: repeating-linear-gradient(-45deg, #f7f7f5, #f7f7f5 3px, #e4e4df 3px, #e4e4df 6px); }
.pr-legend i.sick { background: #fde3e5; }
.pr-legend i.gap { background: repeating-linear-gradient(-45deg, #f1b9bd, #f1b9bd 3px, #fde3e5 3px, #fde3e5 6px); }

/* Agenda: the week on a phone. */
.pr-agenda { list-style: none; margin: 0; padding: 0; }
.pr-agenda > li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pr-agenda > li:first-child { border-top: 0; padding-top: 2px; }
.pr-agenda > li.is-past { opacity: .5; }
.pr-agenda .date { text-align: center; }
.pr-agenda .date b { display: block; color: var(--heading); font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1; }
.pr-agenda .date small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.pr-agenda li.is-today .date b { color: var(--red); }
.pr-agenda .rows { display: grid; gap: 6px; min-width: 0; }
.pr-arow { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; text-align: left; color: var(--ink); }
button.pr-arow { cursor: pointer; }
.pr-arow .t { font-size: 13.5px; font-weight: 700; }
.pr-arow .k { color: var(--muted); font-size: 11.5px; }
.pr-arow .who, .pr-arow .when { display: grid; min-width: 0; line-height: 1.3; }
.pr-arow .when { justify-items: end; text-align: right; }
.pr-arow .who .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-arow.kind-off { background: repeating-linear-gradient(-45deg, #fafaf8, #fafaf8 6px, #f1f1ee 6px, #f1f1ee 12px); }
.pr-arow.kind-sick { background: var(--pill-red-bg); border-color: #f6d3d6; }
.pr-arow.kind-sick .t { color: var(--pill-red-fg); }
.pr-arow.kind-hours { border-color: var(--gold); }
.pr-agap { color: var(--pill-red-fg); font-size: 12px; font-weight: 600; padding-left: 2px; }

/* Month */
.pr-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pr-month .wd { padding: 8px 6px; background: var(--soft); color: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.pr-mday { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; min-height: 96px; padding: 7px; border: 0; background: var(--paper); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.pr-mday:hover { background: #fbf8ef; }
.pr-mday.out { background: #fafaf9; }
.pr-mday.out .n { color: #b3b8be; }
.pr-mday.is-past { opacity: .55; }
.pr-mday .n { align-self: flex-start; padding: 0 6px; border-radius: 999px; color: var(--heading); font-size: 12.5px; font-weight: 800; }
.pr-mday.is-today .n { background: var(--red); color: #fff; }
.pr-mline { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; line-height: 1.3; }
.pr-mline i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.pr-mline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-mline.kind-none { color: var(--muted); }
.pr-mline.kind-none i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.pr-mline.kind-off span { color: var(--muted); text-decoration: line-through; }
.pr-mline.kind-sick span { color: var(--pill-red-fg); font-weight: 700; }
.pr-mline.kind-hours span { color: var(--pill-gold-fg); font-weight: 700; }

/* ── Today's leads ─────────────────────────────────────── */

.pr-next-line { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #f6f2e6; color: var(--heading); font-size: 13.5px; }
.pr-next-line b { font-weight: 800; }
.pr-leads { list-style: none; margin: 0; padding: 0; }
.pr-leads li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.pr-leads li:first-child { border-top: 0; }
.pr-leads .who { min-width: 0; }
.pr-leads .who strong { display: block; color: var(--heading); font-size: 14px; line-height: 1.25; }
.pr-leads .who small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.pr-leads li.is-junk .who strong { color: var(--muted); text-decoration: line-through; }
.pr-lead-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pr-lead-actions { display: flex; gap: 6px; }
.btn-xs { padding: 5px 10px; border-radius: 8px; font-size: 12px; }
.pr-more { margin-top: 12px; }
.pr-rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.pr-rules li { position: relative; padding: 0 0 12px 34px; color: var(--text); font-size: 13.5px; counter-increment: rule; }
.pr-rules li:last-child { padding-bottom: 0; }
.pr-rules li::before { content: counter(rule); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 12px; font-weight: 800; }
.pr-rules strong { color: var(--heading); }

/* Regular hours + changes */
.pr-hours { list-style: none; margin: 0; padding: 0; }
.pr-hours li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.pr-hours li:first-child { border-top: 0; }
.pr-hours strong { display: block; color: var(--heading); font-size: 14px; }
.pr-hours small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pr-log { list-style: none; margin: 0; padding: 0; }
.pr-log li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); }
.pr-log li:first-child { border-top: 0; }
.pr-log b { color: var(--heading); }
.pr-log small { display: block; color: var(--muted); font-size: 11.5px; }

/* ── Sheets ────────────────────────────────────────────── */

.pr-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.pr-seg button { padding: 9px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.pr-seg button small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.pr-seg button.is-active { background: var(--paper); color: var(--heading); box-shadow: 0 1px 3px rgba(16,27,43,.14); }
.pr-seg button.is-active.sick { color: var(--pill-red-fg); }
.pr-blocks { display: grid; gap: 8px; margin: 0 0 10px; }
.pr-block { display: grid; grid-template-columns: minmax(0, 190px) auto minmax(0, 190px) 36px; justify-content: start; align-items: center; gap: 8px; }
.pr-block span { color: var(--muted); font-size: 13px; }
.pr-block select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.pr-block select:focus { outline: 0; border-color: var(--heading); box-shadow: 0 0 0 4px rgba(16,27,43,.08); }
.pr-x { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.pr-x:hover { color: var(--red); border-color: #f3c9cc; }
.pr-link { padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pr-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.pr-presets button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--heading); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pr-presets button:hover { border-color: var(--gold); background: #fbf8ef; }
.pr-say { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--text); font-size: 13.5px; }
.pr-say strong { color: var(--heading); }
.pr-say.sick { background: var(--pill-red-bg); color: var(--pill-red-fg); }
.pr-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0 0 14px; }
.pr-choices button { padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--heading); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pr-choices button small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.pr-choices button:hover { border-color: var(--heading); box-shadow: 0 0 0 3px rgba(16,27,43,.08); }
.pr-weekrows { display: grid; gap: 0; margin: 0 0 14px; }
.pr-weekrow { display: grid; grid-template-columns: 64px 1fr; align-items: start; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.pr-weekrow:first-child { border-top: 0; }
.pr-weekrow .day { display: grid; justify-items: start; gap: 1px; padding-top: 6px; }
.pr-weekrow .day b { color: var(--heading); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.pr-weekrow .day .pr-link { font-size: 12px; }
.pr-weekrow .off { padding-top: 9px; color: var(--muted); font-size: 13.5px; }
.pr-weekrow .pr-blocks { margin: 0; }
.pr-check { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--heading); font-size: 14px; font-weight: 600; }
.pr-check input { width: 18px; height: 18px; accent-color: var(--red); }
.pr-fine { margin: 0; color: var(--muted); font-size: 12.5px; }
.pr-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pr-sheet-foot .btns { display: flex; gap: 8px; margin-left: auto; }

/* ── Setter home card (Today) ──────────────────────────── */

.pr-home-week { list-style: none; margin: 0; padding: 0; }
.pr-home-week li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pr-home-week li:first-child { border-top: 0; }
.pr-home-week li b { color: var(--heading); }
.pr-home-week li span { color: var(--text); text-align: right; }
.pr-home-week li.kind-off span, .pr-home-week li.kind-none span { color: var(--muted); }
.pr-home-week li.kind-sick span { color: var(--pill-red-fg); font-weight: 700; }
.pr-home-week li.is-today b::after { content: "Today"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

/* ── Responsive ────────────────────────────────────────── */

@media (min-width: 1560px) { .pr-layout { grid-template-columns: minmax(0, 1fr) 380px; } .pr-side { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pr-now-top { flex-direction: column; align-items: stretch; }
  .pr-actions .btn { flex: 1 1 auto; }
  .pr-room { display: grid; }
  .pr-mday { min-height: 62px; padding: 5px; gap: 3px; }
  .pr-mline span { display: none; }
  .pr-mline { justify-content: flex-start; }
  .pr-seg { grid-template-columns: 1fr 1fr; }
  .pr-side { grid-template-columns: 1fr; }
}
