@charset "UTF-8";
/*
 * TrilùTable 6.0 · Prenotazioni (prefix rv-), «Scuro premium» (docs/sviluppo/DESIGN-V6.md).
 * Shared components (.page-header, .panel, .kpi-strip, .tabs, .segmented, .pill, .tchip, .tag, .btn, .drawer, .empty,
 * .banner, .search) come from styles.css; the floor plan graphics (.fp-*, .fl-table-*) from floor-live.css.
 * This file adds the agenda, the side drawer and the table picker.
 */

.rv { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rv button { font: inherit; }
.rv h2, .rv h3, .rv p, .rv-drawer h2, .rv-drawer h3, .rv-drawer p { margin: 0; }

/* ---------- Day and service controls ---------- */
.rv-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.rv-day { display: inline-flex; align-items: center; height: 36px; max-width: 100%; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rv-day-step { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-md); background: none; color: var(--text-2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.rv-day-step:hover { color: var(--text-1); background: rgba(255, 255, 255, .05); }
.rv-day-step:focus-visible { outline-offset: -2px; }
.rv-day-field { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--text-3); cursor: pointer; }
.rv-day-field:hover .rv-day-label { color: var(--text-1); }
.rv-day-field:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 2px; }
.rv-day-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--text-1); }
.rv-day-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; color-scheme: dark; }
.rv-day-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rv-today { --btn-h: 36px; }
.rv-services { margin-left: auto; }
.rv-services > button { gap: 8px; }
.rv-service-hours { font-size: 12px; font-weight: 400; color: var(--text-3); }
.rv-services > [aria-pressed="true"] .rv-service-hours { color: var(--text-2); }

/* ---------- KPI band ---------- */
.rv-kpis .kpi-value.is-muted { color: var(--text-3); }
.rv-kpis .kpi-foot .icon { color: var(--text-3); }
.rv-kpis .kpi-foot > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rv-ok { color: var(--green); }
.rv-kpis .rv-ok .icon { color: var(--green); }

/* ---------- Layout ---------- */
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; min-width: 0; }

/* ---------- Agenda ---------- */
.rv-agenda { overflow: visible; }
.rv-agenda-head { flex-wrap: wrap; gap: 8px 12px; min-height: 56px; padding: 10px 12px 6px 16px; border-bottom: 0; }
.rv-agenda-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rv-search { width: 264px; height: 32px; }
.rv-channel-filter .select { width: auto; min-width: 150px; height: 32px; min-height: 32px; }
.rv-tabs { padding: 0 8px; }
.rv-tabs .tab { height: 38px; gap: 7px; }
.rv-tabs .tab .count { height: 18px; min-width: 18px; padding: 0 5px; font-size: 11.5px; line-height: 18px; }
.rv-tabs .tab[aria-selected="true"] .count:not(.is-amber) { color: var(--text-1); background: rgba(255, 255, 255, .09); }
.rv-results { min-height: 132px; }
.rv-rows { display: flex; flex-direction: column; padding: 4px 0 6px; }

.rv-row {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 104px 128px 176px; align-items: center; column-gap: 14px;
  min-height: 60px; padding: 8px 16px; cursor: pointer; transition: background-color var(--t-fast) var(--ease);
}
.rv-row + .rv-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.rv-row:hover { background: rgba(255, 255, 255, .025); }
.rv-row.is-pending { background: linear-gradient(90deg, rgba(232, 182, 90, .055), rgba(232, 182, 90, 0) 70%); }
.rv-row.is-pending:hover { background: linear-gradient(90deg, rgba(232, 182, 90, .08), rgba(255, 255, 255, .02) 70%); }
.rv-row.is-pending::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--amber); }
.rv-row.is-cancelled, .rv-row.is-no_show { opacity: .64; }
.rv-row.is-completed .rv-row-time span { color: var(--text-2); }
.rv-row.is-flash { animation: rv-flash 1.8s var(--ease); }
.rv-row-time { display: flex; flex-direction: column; line-height: 18px; }
.rv-row-time span { font-size: 14px; font-weight: 500; color: var(--text-1); }
.rv-row-time small { font-size: 12px; color: var(--text-3); }
.rv-row-guest { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-row-name {
  align-self: flex-start; max-width: 100%; min-height: 0; padding: 0; border: 0; background: none; color: var(--text-1);
  font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.rv-row-name:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.rv-row-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.rv-row-meta > * { flex: none; }
.rv-row-meta > .rv-note { flex: 0 1 auto; min-width: 0; }
.rv-row-table { min-width: 0; display: flex; }
.rv-row-status { min-width: 0; display: flex; }
.rv-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.rv-row-actions .btn { white-space: nowrap; }
.rv-channel { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.rv-channel .icon { color: var(--text-3); }
.rv-agent { height: 20px; padding: 0 7px 0 6px; font-size: 12px; gap: 5px; }
.rv-agent .icon { margin: 0; }
.rv-note { max-width: 220px; }
.rv-note > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tchip.is-joined { gap: 5px; }
.tchip.is-joined .icon { color: var(--text-3); }
.rv-dash { color: var(--text-4); }

.rv-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 14px 16px 6px; }
.rv-group:first-child { padding-top: 8px; }
.rv-group-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.rv-group-meta { font-size: 12.5px; color: var(--text-3); }
.rv-group + .rv-row::before, .rv-now + .rv-row::before { display: none; }
.rv-now { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 16px; font-size: 12px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.rv-now::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rv-now::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-line), rgba(255, 131, 63, 0)); }

/* ---------- Rail ---------- */
.rv-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rv-rail .panel-header { min-height: 46px; }
.rv-rail .panel-title { font-size: 14px; }
.rv-rail-empty { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-3); }
.rv-stack { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.rv-stack > span { display: block; height: 100%; min-width: 4px; }
.rv-stack .is-green, .rv-sw.is-green { background: rgba(108, 212, 158, .7); }
.rv-stack .is-amber, .rv-sw.is-amber { background: rgba(232, 182, 90, .75); }
.rv-stack .is-red, .rv-sw.is-red { background: rgba(240, 145, 138, .75); }
.rv-stack .is-grey, .rv-sw.is-grey { background: rgba(138, 144, 153, .5); }
.rv-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.rv-legend li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text-2); }
.rv-legend b { margin-left: auto; font-weight: 600; color: var(--text-1); }
.rv-sw { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.rv-bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rv-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; }
.rv-bars-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-bars-label .icon { color: var(--text-3); }
.rv-bars b { font-size: 13px; font-weight: 600; color: var(--text-1); }
.rv-bars-track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rv-bars-track > span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #8F949B, #C9CCD1); }
.rv-bars-track > span.is-agent { background: linear-gradient(90deg, rgba(179, 163, 247, .55), var(--violet)); }
.rv-feed { margin: 0; padding: 6px 0; list-style: none; }
.rv-feed li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 8px 16px; font-size: 13px; line-height: 18px; }
.rv-feed li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.rv-feed-dot { width: 6px; height: 6px; margin: 6px 0 0 2px; border-radius: 50%; background: var(--text-4); }
.rv-feed li:first-child .rv-feed-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rv-feed-text { color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-feed time { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* ---------- Drawer ---------- */
dialog.rv-drawer { width: min(560px, calc(100vw - 16px)); max-width: none; max-height: none; overflow: hidden; color: var(--text-1); }
.rv-drawer-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rv-dh { align-items: flex-start; padding: 18px 14px 14px 20px; }
.rv-dh-text { flex: 1; min-width: 0; }
.rv-dh h2 { font-size: 18px; line-height: 24px; letter-spacing: -.015em; overflow-wrap: anywhere; outline: none; }
.rv-dh-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; margin-bottom: 4px !important; font-size: 12.5px; line-height: 20px; color: var(--text-3); }
.rv-dh-eyebrow .sep { margin: 0 6px; }
.rv-dh-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px !important; font-size: 13px; line-height: 20px; color: var(--text-2); }
.rv-statusbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); }
.rv-statusbar.is-pending { background: linear-gradient(90deg, rgba(232, 182, 90, .08), rgba(232, 182, 90, .02)); }
.rv-statusbar.is-arrived { background: linear-gradient(90deg, rgba(127, 176, 242, .07), rgba(127, 176, 242, .015)); }
.rv-statusbar-text { flex: 1 1 180px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.rv-statusbar.is-pending .rv-statusbar-text { color: var(--amber); }
.rv-statusbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-statusbar-error { flex-basis: 100%; margin: 0; }
.rv-drawer .drawer-body { padding: 4px 20px 8px; overscroll-behavior: contain; }
.rv-sec { padding: 18px 0 4px; border-top: 1px solid var(--line-soft); }
.rv-sec:first-child { border-top: 0; padding-top: 14px; }
.rv-sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px !important; font-size: 13.5px; line-height: 20px; font-weight: 600; letter-spacing: -.005em; }
.rv-sec-title .icon { color: var(--text-3); }
.rv-sec-hint { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.rv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.rv-field { margin-bottom: 14px; }
.rv-field.is-wide { grid-column: 1 / -1; }
.rv-field .field-error { margin: 0; }
.rv-muted { font-weight: 400; color: var(--text-3); }
.rv-inline { display: flex; align-items: center; gap: 6px; }
.rv-inline .input { flex: 1; }
.rv-inline .icon-btn { width: 36px; height: 36px; }
.rv-stepper { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: stretch; height: var(--control-h); border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rv-stepper:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
.rv-stepper > input { min-height: 0 !important; height: 100% !important; padding: 0 4px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.rv-stepper .input::-webkit-outer-spin-button, .rv-stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rv-step { display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-md); background: none; color: var(--text-2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.rv-step:hover:not(:disabled) { color: var(--text-1); background: rgba(255, 255, 255, .05); }
.rv-step:focus-visible { outline-offset: -2px; }
.rv-initial { margin: 2px 0 14px; padding: 0; border: 0; min-width: 0; }
.rv-initial legend { margin-bottom: 8px; padding: 0; }
.rv-initial .segmented > label { gap: 6px; }
.rv-initial .segmented > label:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.rv-summary { display: grid; gap: 0; margin: 0; }
.rv-summary > div { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.rv-summary > div:first-child { border-top: 0; padding-top: 2px; }
.rv-summary dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.rv-summary dt .icon { color: var(--text-4); }
.rv-summary dd { margin: 0; min-width: 0; font-size: 14px; line-height: 20px; color: var(--text-1); overflow-wrap: anywhere; }
.rv-summary dd b { font-weight: 600; }
.rv-summary-sub { font-size: 13px; color: var(--text-2); }
.rv-meta { display: grid; gap: 8px; padding-bottom: 14px; }
.rv-meta p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; line-height: 18px; color: var(--text-3); }
.rv-meta b { color: var(--amber); font-weight: 500; }
.rv-meta .text-button { margin-left: auto; color: var(--text-1); }
.rv-form-error { margin: 0 20px 10px; }
.rv-df { gap: 8px; }
.rv-df-note { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text-3); }
.rv-df-note .icon { color: var(--green); }

/* ---------- Table picker ---------- */
.rv-picker { min-width: 0; padding-bottom: 12px; }
.rv-pick-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 6px; }
.rv-pick-sum { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.rv-pick-sum .icon { color: var(--accent); }
.rv-pick-sum b { font-weight: 600; color: var(--text-1); }
.rv-pick-sum.is-empty .icon { color: var(--text-3); }
.rv-pick-sum .is-short { color: var(--amber); }
.rv-pick-tools { display: flex; align-items: center; gap: 10px; }
.rv-pick-line { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 0 0 10px !important; font-size: 13px; line-height: 20px; color: var(--text-2); }
.rv-pick-line b { font-weight: 600; color: var(--text-1); }
.rv-pick-line .sep { margin: 0 2px; }
.rv-pick-line .spinner { --spinner-size: 13px; }
.rv-use { min-height: 24px; padding: 0 8px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); }
.rv-use:hover { color: var(--accent-hover); }
.rv-room-tabs { margin-bottom: 10px; }
.rv-room-tabs .count { height: 16px; min-width: 16px; padding: 0 4px; font-size: 11px; line-height: 16px; }
.rv-plan {
  position: relative; padding: 10px; border-radius: var(--r-md); background-color: #0F1114;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px); background-size: 14px 14px;
  box-shadow: inset 0 0 0 1px var(--line-soft); transition: opacity var(--t-fast) var(--ease);
}
.rv-plan.is-loading { opacity: .6; }
.rv-plan .fp-svg { max-height: 52vh; margin: 0 auto; }
.rv-pick { cursor: pointer; outline: none; }
.rv-pick.is-disabled { cursor: not-allowed; }
.rv-pick.is-disabled .fp-table-top, .rv-pick.is-disabled .fp-chairs { opacity: .62; }
.rv-pick.is-selected .fp-table-top { fill: rgba(255, 131, 63, .16); stroke: var(--accent); stroke-width: 2.5px; stroke-dasharray: none; }
.rv-pick.is-selected .fp-table-label { fill: #FFE3D2; }
.rv-pick.is-suggested .fp-table-top { stroke: var(--accent); stroke-width: 2px; stroke-dasharray: 5 4; }
.rv-pick.is-small:not(.is-selected) .fp-table-sub { fill: var(--text-3); }
.rv-pick:focus-visible .fp-table-top { stroke: var(--accent); stroke-width: 3px; }
.rv-join-badge circle { fill: var(--accent); stroke: var(--bg-2); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.rv-join-badge text { fill: var(--accent-ink); font-weight: 700; }
.rv-plan-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.rv-plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rv-plan-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rv-plan-legend .is-free { background: rgba(108, 212, 158, .1); box-shadow: inset 0 0 0 1.5px rgba(108, 212, 158, .8); }
.rv-plan-legend .is-reserved { background: rgba(232, 182, 90, .3); box-shadow: inset 0 0 0 1.5px var(--amber); }
.rv-plan-legend .is-occupied { background: rgba(240, 145, 138, .4); box-shadow: inset 0 0 0 1.5px var(--red); }
.rv-plan-legend .is-unavailable { background: repeating-linear-gradient(135deg, rgba(138, 144, 153, .5) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px rgba(138, 144, 153, .7); }
.rv-plan-legend .is-selected { background: rgba(255, 131, 63, .25); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rv-list { display: grid; gap: 14px; }
.rv-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px !important; font-size: 12.5px; color: var(--text-3); }
.rv-list-head b { font-size: 13px; font-weight: 600; color: var(--text-1); }
.rv-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.rv-tbl {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; min-height: 68px; padding: 8px 10px; border: 0; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-1); text-align: left; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.rv-tbl:hover:not(:disabled) { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rv-tbl:disabled { cursor: not-allowed; opacity: .55; }
.rv-tbl.is-suggested { box-shadow: inset 0 0 0 1px var(--accent-line); }
.rv-tbl.is-selected, .rv-tbl.is-selected:hover:not(:disabled) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rv-tbl-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rv-tbl-top b { font-size: 14px; font-weight: 600; }
.rv-tbl-top .icon { color: var(--accent); }
.rv-tbl-hint { font-size: 11.5px; color: var(--accent); }
.rv-tbl-seats { font-size: 12.5px; color: var(--text-2); }
.rv-tbl-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.rv-tbl-state .dot { width: 5px; height: 5px; box-shadow: none; }
.rv-pick-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0 !important; font-size: 13px; line-height: 19px; color: var(--text-2); }
.rv-pick-note .icon { flex: none; margin-top: 2px; }
.rv-pick-note.is-warn { color: var(--amber); }
.rv-pick-note.is-error { color: #F6B9B3; }
.rv-pick-note.is-error .icon { color: var(--red); }
.rv-pick-note.is-info .icon { color: var(--blue); }
.rv-pick-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-2); }
.rv-pick-empty .icon { color: var(--text-3); }
.rv-pick-empty .btn { margin-left: auto; }
.rv-pick-closed { font-size: 13.5px; color: var(--text-2); }
.rv-pick-closed b { color: var(--text-1); font-weight: 600; }
.rv-skel-plan { height: 220px; border-radius: var(--r-md); }

/* ---------- Responsive ---------- */
/* Next to the rail the agenda is narrower: the channel keeps its icon (with tooltip) and leaves room to the requests. */
@media (min-width: 1281px) and (max-width: 1599px) {
  .rv-row-meta .rv-channel-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1280px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .rv-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .rv-legend li { white-space: nowrap; }
}
@media (max-width: 900px) {
  .rv-services { margin-left: 0; }
  .rv-rail { grid-template-columns: minmax(0, 1fr); }
  .rv-search { width: 220px; }
}
@media (max-width: 768px) {
  .rv-controls { gap: 8px; }
  .rv-day { flex: 1 1 100%; }
  .rv-day-field { flex: 1; }
  .rv-today { order: 2; }
  .rv-services { flex: 1 1 100%; order: 3; }
  .rv-services > button { flex: 1 0 auto; justify-content: center; }
  .rv-service-hours { display: none; }
  .rv-agenda-head { padding: 12px 12px 8px 16px; }
  .rv-agenda-tools { flex: 1 1 100%; margin-left: 0; }
  .rv-search { flex: 1; width: auto; }
  .rv-channel-filter .select { min-width: 0; width: 132px; }
  .rv-row {
    grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "time guest status" "time table table" "actions actions actions";
    row-gap: 6px; align-items: start; min-height: 0; padding: 12px 16px;
  }
  .rv-row-time { grid-area: time; padding-top: 1px; }
  .rv-row-guest { grid-area: guest; }
  .rv-row-status { grid-area: status; justify-content: flex-end; }
  .rv-row-table { grid-area: table; }
  .rv-row-actions { grid-area: actions; justify-content: flex-start; }
  .rv-row-actions:empty { display: none; }
  .rv-row-actions .btn { flex: 1; }
  .rv-row-meta { flex-wrap: wrap; row-gap: 4px; white-space: normal; }
  .rv-note { max-width: 100%; }
  .rv-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  /* The status tabs scroll sideways on phones: fade the edge so the cut tab reads as «more». */
  .rv-tabs { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  dialog.rv-drawer { inset: auto 0 0 0; width: 100%; max-height: 92dvh; height: auto; border-radius: 16px 16px 0 0; }
  dialog.rv-drawer[open] { animation: sheet-in var(--t-med) var(--ease); }
  .rv-drawer-form { height: auto; max-height: 92dvh; }
  .rv-dh { padding: 16px 10px 12px 16px; }
  .rv-statusbar { padding: 10px 12px 10px 16px; }
  .rv-statusbar-actions { width: 100%; }
  .rv-statusbar-actions .btn { flex: 1; }
  .rv-drawer .drawer-body { padding: 0 16px 8px; }
  .rv-summary > div { grid-template-columns: minmax(0, 1fr); }
  .rv-df { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .rv-df-note { display: none; }
  .rv-df .btn { flex: 1; }
  .rv-form-error { margin: 0 16px 10px; }
  .rv-list-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (max-width: 359px) {
  .rv-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .rv-day, .rv-day-step, .rv-day-field { height: 40px; }
  .rv-day-step { width: 40px; }
  .rv-stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; height: 40px; }
  .rv-row-name { min-height: 28px; }
}

@keyframes rv-flash { 0% { background-color: rgba(255, 131, 63, .16); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .rv-row.is-flash { animation: none; }
  .rv-plan, .rv-tbl, .rv-row { transition: none; }
}
