/* ==================================================================
   PANTALLAS v10 — rediseños puntuales sobre la capa suave
   ------------------------------------------------------------------
   Lo que soft.css no alcanza con reglas generales: piezas que cambian
   de forma, no sólo de color. Cada bloque dice qué pantalla toca.
   ================================================================== */

/* ==================================================================
   FICHA DE RESERVA (.bkc) — js/app/06-modal-viewbooking.js
   ================================================================== */
.modal-box.bkc-box{ max-width: 940px; padding: 0; overflow: hidden auto; }
.bkc{ display: flex; flex-direction: column; }
.bkc-head{
  display: flex; align-items: center; gap: 14px; padding: 22px 26px 16px;
  position: sticky; top: 0; z-index: 3; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
}
.bkc-ava, .bkc-ava.ar-avatar{ width: 48px; height: 48px; border-radius: 16px; font-size: 16px; flex-shrink: 0; }
.bkc-ava.block{ display: grid; place-items: center; background: var(--tone-slate-bg); color: var(--tone-slate-ink); }
.bkc-ava.block .ico{ width: 20px; height: 20px; }
.bkc-id{ flex: 1; min-width: 0; }
.bkc-id h3{ margin: 0 !important; padding: 0 !important; font: 700 21px/1.15 var(--font-display) !important; letter-spacing: -.025em !important; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkc-flag{ font-size: 17px; vertical-align: 1px; }
.bkc-sub{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; font-size: 12.5px; color: var(--color-text-muted); }
.bkc-sub i{ width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-subtle); }
.bkc-ch{ display: inline-flex; align-items: center; gap: 6px; }
.bkc-ch .bkp-chan{ width: 16px; height: 16px; font-size: 9px; }
.bkc-state{
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 7px 13px 7px 11px; border-radius: 999px; font: 650 12.5px/1 var(--font-body);
  background: var(--sb); color: var(--st);
}
.bkc-state i{ width: 8px; height: 8px; border-radius: 50%; background: var(--sd); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd) 22%, transparent); }
.bkc-ari{ width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--color-surface-2); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.bkc-ari:hover{ background: #e8effd; }
.bkc-ari .ari-orb{ --s: 24px; }

/* La estadía de un vistazo */
.bkc-stay{
  display: grid; grid-template-columns: 1fr auto 1fr 1.3fr; align-items: center; gap: 0;
  margin: 0 26px; border: 1px solid var(--hairline); border-radius: 18px; background: #fbfbfa;
}
.bkc-date{ padding: 13px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bkc-date span, .bkc-where em{ font: 650 10.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle); }
.bkc-date b{ font: 700 17px/1.2 var(--font-body); letter-spacing: -.02em; color: var(--color-text); margin-top: 3px; }
.bkc-date em{ font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--color-accent); min-height: 14px; }
.bkc-date em .bk-late-tag{ font-size: 10.5px; }
.bkc-arrow{ display: flex; flex-direction: column; align-items: center; padding: 0 10px; position: relative; }
.bkc-arrow::before{ content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 1px; background: var(--hairline-strong); z-index: 0; }
.bkc-arrow b, .bkc-arrow span{ position: relative; z-index: 1; background: #fbfbfa; padding: 0 6px; }
.bkc-arrow b{ font: 700 16px/1 var(--font-body); color: var(--color-text); }
.bkc-arrow span{ font-size: 10.5px; color: var(--color-text-muted); }
.bkc-where{ display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-left: 1px solid var(--hairline); min-width: 0; }
.bkc-where > span{ width: 34px; height: 34px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--hairline); display: grid; place-items: center; color: var(--color-text-secondary); flex-shrink: 0; }
.bkc-where > span .ico{ width: 16px; height: 16px; }
.bkc-where div{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bkc-where b{ font-size: 13.5px; font-weight: 650; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Vencimiento de la pre-reserva */
.bkc-expiry{ display: flex; align-items: center; gap: 10px; margin: 12px 26px 0; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.bkc-expiry > span:nth-child(2){ flex: 1; }
.bkc-expiry-ic{ width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.7); flex-shrink: 0; }
.bkc-expiry-ic .ico{ width: 15px; height: 15px; }
.bkc-expiry.ok{ background: var(--tone-green-bg); color: var(--tone-green-ink); }
.bkc-expiry.near{ background: var(--tone-amber-bg); color: var(--tone-amber-ink); }
.bkc-expiry.over{ background: var(--tone-red-bg); color: var(--tone-red-ink); }
.bkc-expiry .bkc-link{ color: inherit; }

/* Qué hacer ahora */
.bkc-now{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 26px 4px; }
.bkc-now-main{ display: flex; gap: 8px; flex-wrap: wrap; }
.bkc-now-main .mb{ min-height: 40px; padding: 0 18px; }
.bkc-now-side{ display: flex; gap: 6px; }
.bkc-ib{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border-strong); background: #fff; color: var(--color-text-secondary); display: grid; place-items: center; cursor: pointer; }
.bkc-ib .ico{ width: 17px; height: 17px; }
.bkc-ib:hover:not(:disabled){ background: var(--color-surface-2); color: var(--color-text); }
.bkc-ib.wa{ color: #128c4a; border-color: #bfe8cf; background: #f2fbf6; }
.bkc-ib.wa:hover{ background: #e2f6ea; color: #0b6d39; }
.bkc-ib:disabled{ opacity: .4; cursor: not-allowed; }
.bkc-done{ display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.bkc-done .ico{ width: 15px; height: 15px; }

/* Cuerpo en dos columnas */
.bkc .bk-2col{ padding: 6px 26px 4px; gap: 30px; }
.bkc-sec{ padding: 14px 0 6px; border-top: 1px solid var(--hairline); margin-top: 8px; }
.bk-col > .bkc-sec:first-child{ border-top: 0; margin-top: 0; }
.bkc-h{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font: 650 11px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--color-text-muted); }
.bkc-sec .section-label{ margin-top: 0 !important; }
.bkc-link{ display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; padding: 3px 6px; margin: -3px -6px; border-radius: 8px; font: 600 12px/1 var(--font-body); color: var(--color-accent); text-transform: none; letter-spacing: 0; }
.bkc-link .ico{ width: 13px; height: 13px; }
.bkc-link:hover{ background: var(--tone-blue-bg); }
.bkc-link.danger{ color: var(--tone-red-ink); }
.bkc-link.danger:hover{ background: var(--tone-red-bg); }

.bkc-fields{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.bkc-fields label, .bkc-fields input{ min-width: 0; }
.bkc-fields input{ width: 100%; box-sizing: border-box; }
.bkc-fields label{ display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.bkc-fields label.wide{ grid-column: 1 / -1; }
.bkc-fields input{ min-height: 38px !important; padding: 7px 12px !important; border-radius: 11px !important; font-size: 13.5px !important; background: #fff !important; }
.bkc-save{ display: flex; justify-content: flex-end; margin-top: 10px; }
.bkc-save .mb{ min-height: 32px; font-size: 12.5px; }

.bkc-steps{ display: flex; flex-wrap: wrap; gap: 8px; }
.bkc-stepper{ display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 12px; border-radius: 999px; background: var(--color-surface-2); font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.bkc-stepper span{ margin-right: 6px; }
.bkc-step{ min-width: 30px; height: 28px; border-radius: 999px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--hairline); cursor: pointer; font: 700 12.5px/1 var(--font-body); color: var(--color-text); }
.bkc-step:hover{ background: var(--tone-blue-bg); color: var(--tone-blue-ink); }
.bkc-note{ margin: 0; font-size: 13px; line-height: 1.55; color: var(--color-text-secondary); white-space: pre-wrap; }

.bkc-group{ border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.bkc-grow{ display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 12.5px; border-top: 1px solid var(--hairline); }
.bkc-grow:first-child{ border-top: 0; }
.bkc-grow-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong); flex-shrink: 0; }
.bkc-grow-dot.on{ background: var(--color-accent); }
.bkc-grow-txt{ flex: 1; min-width: 0; }
.bkc-grow-txt em{ font-style: normal; color: var(--color-text-muted); margin-left: 4px; }

/* La plata */
.bkc-money{ border-radius: 16px; padding: 14px 16px 12px; background: var(--color-surface-2); margin-bottom: 8px; }
.bkc-money.owes{ background: #fff6f5; box-shadow: inset 0 0 0 1px #f6d4d1; }
.bkc-money.ok{ background: #f2fbf6; box-shadow: inset 0 0 0 1px #cdeedb; }
.bkc-money-top{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bkc-money-top div{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bkc-money-top span{ font: 650 10.5px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-muted); }
.bkc-money-top b{ font: 700 17px/1.15 var(--font-body); letter-spacing: -.02em; color: var(--color-text); font-variant-numeric: tabular-nums; }
.bkc-money.owes .bal b{ color: var(--tone-red-ink); }
.bkc-money.ok .bal b{ color: var(--tone-green-ink); }
.bkc-bar{ height: 6px; border-radius: 999px; background: rgba(14,33,72,.08); margin-top: 12px; overflow: hidden; }
.bkc-bar i{ display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22b07d, #0f9d68); transition: width .6s var(--ease-out); }
.bkc-money.owes .bkc-bar i{ background: linear-gradient(90deg, #f59e0b, #e6a100); }
.bkc-cur{ font-size: 10px; font-weight: 650; color: var(--color-text-muted); }
.bkc-kv{ display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px; font-size: 13px; color: var(--color-text-secondary); }
.bkc-kv b{ font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; text-align: right; }
.bkc-kv b.muted{ color: var(--color-text-muted); }
.bkc-list{ border: 1px solid var(--hairline); border-radius: 12px; margin: 6px 0; overflow: hidden; }
.bkc-li{ display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; font-size: 12.5px; border-top: 1px solid var(--hairline); }
.bkc-li:first-child{ border-top: 0; }
.bkc-li span{ display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--color-text); }
.bkc-li em{ font-style: normal; font-size: 11px; color: var(--color-text-muted); }
.bkc-li b{ font-variant-numeric: tabular-nums; flex-shrink: 0; }
.bkc-li.pay b{ color: var(--tone-green-ink); }
.bkc-row-acts{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bkc-threads{ font-size: 12.5px; color: var(--color-text-muted); }

/* Notas del staff dentro de la ficha (vienen de notesLogHTML con estilos en línea) */
.bkc-sec .section-label{ font: 650 11px/1 var(--font-body) !important; letter-spacing: .09em !important; color: var(--color-text-muted) !important; margin: 0 0 10px !important; }
.bkc-sec textarea#bm-newnote{ border-radius: 12px !important; min-height: 40px; }
.bkc-sec [style*="background:#fffdf5"]{ background: #fffcf3 !important; }

/* Pie: lo menos frecuente, en silencio */
.bkc-foot{ display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 26px 22px; margin-top: 10px; border-top: 1px solid var(--hairline); background: #fcfcfb; position: sticky; bottom: 0; }
.bkc-foot-l, .bkc-foot-r{ display: flex; gap: 6px; flex-wrap: wrap; }
.bkc-foot .mb.sec{ border-color: transparent; background: transparent; padding: 0 11px; color: var(--color-text-secondary); }
.bkc-foot .mb.sec:hover{ background: var(--color-surface-2); }
.bkc-foot .mb.sec.is-on{ background: var(--tone-violet-bg); color: var(--tone-violet-ink); }
.bkc-foot .mb.danger{ border-color: transparent; }

.bkc.is-block .bkc-stay{ grid-template-columns: 1fr auto 1fr; }
.bkc.is-block .bkc-where{ display: none; }

@media (max-width: 760px){
  .modal-box.bkc-box{ max-width: 100%; }
  .bkc-head{ padding: 18px 18px 12px; }
  .bkc-id h3{ font-size: 18px !important; }
  .bkc-state{ display: none; }
  .bkc-stay{ grid-template-columns: 1fr auto 1fr; margin: 0 18px; }
  .bkc-where{ grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--hairline); }
  .bkc-expiry{ margin: 12px 18px 0; }
  .bkc-now{ padding: 14px 18px 4px; }
  .bkc .bk-2col{ padding: 6px 18px 4px; }
  .bkc-fields{ grid-template-columns: 1fr; }
  .bkc-foot{ padding: 14px 18px 18px; }
  .bkc-money-top b{ font-size: 15px; }
}

/* El pie entra en una sola línea: lo frecuente a la izquierda, cerrar a la derecha */
.modal-overlay .modal-box.bkc-box{ max-width: 980px !important; }
.bkc-foot{ flex-wrap: nowrap; }
.bkc-foot-l{ flex: 1; min-width: 0; }
.bkc-foot .mb{ min-height: 34px; font-size: 12.5px; gap: 6px; }
.bkc-foot .mb .ico{ width: 14px; height: 14px; }
.bkc-foot-r{ flex-shrink: 0; }
@media (max-width: 760px){ .bkc-foot{ flex-wrap: wrap; } .bkc-foot-r{ width: 100%; justify-content: space-between; } }
@media (max-width: 760px){ .bkc-foot{ position: static; } .bkc-head{ position: static; } }

/* ==================================================================
   VISTA DE HOY — js/app/04-rooms-today-legend.js (renderTodayView)
   ================================================================== */
.tv-head{ padding: 20px 26px; }
.tv-head p{ font-size: 13px; max-width: 54ch; }
.tv-ring{ width: 72px; height: 72px; }
.tv-stats{ grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tv-stat{ padding: 14px 16px; gap: 0 12px; }
.tv-stat b{ font-size: 21px; }
.tv-row{ cursor: pointer; outline: none; }
.tv-row:focus-visible{ box-shadow: 0 0 0 2px rgba(37,99,235,.45); }
.tv-row-acts{ display: inline-flex; gap: 5px; flex-shrink: 0; opacity: .0; transform: translateX(4px); transition: opacity var(--dur-base), transform var(--dur-base); }
.tv-row:hover .tv-row-acts, .tv-row:focus-within .tv-row-acts{ opacity: 1; transform: none; }
.tv-act{ display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer; font: 650 11.5px/1 var(--font-body); background: var(--color-primary); color: #fff; white-space: nowrap; }
.tv-act .ico{ width: 13px; height: 13px; }
.tv-act:hover{ background: #16305f; }
.tv-act.warn{ background: var(--tone-amber-bg); color: var(--tone-amber-ink); }
.tv-act.warn:hover{ background: #fbe9c6; }
.tv-act.ic{ width: 28px; padding: 0; justify-content: center; background: #f2fbf6; color: #128c4a; }
.tv-act.ic:hover{ background: #e2f6ea; }
@media (hover: none){ .tv-row-acts{ opacity: 1; transform: none; } }
.tv-tmr{ display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); }
.tv-tmr-ic{ width: 36px; height: 36px; border-radius: 12px; background: var(--tone-blue-bg); color: var(--tone-blue-ink); display: grid; place-items: center; flex-shrink: 0; }
.tv-tmr-ic .ico{ width: 17px; height: 17px; }
.tv-tmr-txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--color-text-secondary); }
.tv-tmr-txt b{ font-size: 13.5px; color: var(--color-text); }
.tv-tmr-txt strong{ color: var(--color-text); }
.tv-tmr-go{ display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font: 600 12.5px var(--font-body); color: var(--color-accent); padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.tv-tmr-go .ico{ width: 14px; height: 14px; }
.tv-tmr-go:hover{ background: var(--tone-blue-bg); }
@media (max-width: 760px){ .tv-tmr{ flex-wrap: wrap; } }
/* Las acciones de la fila aparecen ENCIMA de los datos al pasar el mouse: no
   ocupan lugar en reposo, así el nombre nunca se achica. */
.tv-row{ position: relative; }
.tv-row-acts{ position: absolute; right: 32px; top: 50%; transform: translate(4px, -50%); padding-left: 28px; background: linear-gradient(90deg, rgba(243,243,239,0), var(--color-surface-2) 26px); pointer-events: none; }
.tv-row:hover .tv-row-acts, .tv-row:focus-within .tv-row-acts{ transform: translate(0, -50%); pointer-events: auto; }
.tv-row-acts:empty{ display: none; }
@media (hover: none){ .tv-row-acts{ position: static; transform: none; background: none; padding: 0; pointer-events: auto; } }

/* ==================================================================
   FICHA RÁPIDA DE LA GRILLA — js/ui/03-grid-hover.js
   ================================================================== */
.ghov{
  position: fixed; z-index: 400; width: 280px; padding: 14px 15px 11px; border-radius: 16px;
  background: #fff; border: 1px solid var(--hairline); box-shadow: 0 18px 44px rgba(14,33,72,.18), 0 3px 10px rgba(14,33,72,.06);
  font-size: 12.5px; color: var(--color-text-secondary); pointer-events: auto;
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top center;
  transition: opacity .14s ease, transform .16s var(--ease-out), visibility 0s linear .16s;
}
.ghov.up{ transform-origin: bottom center; transform: translateY(4px) scale(.98); }
.ghov.on{ opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ghov-h{ display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ghov-h b{ font: 700 14.5px/1.25 var(--font-body); color: var(--color-text); letter-spacing: -.01em; }
.ghov-flag{ margin-right: 5px; }
.ghov-state{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--sb); color: var(--st); font-size: 11px; font-weight: 650; white-space: nowrap; flex-shrink: 0; }
.ghov-state i{ width: 6px; height: 6px; border-radius: 50%; background: var(--sd); }
.ghov-dates{ display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 6px; border-radius: 11px; background: var(--color-surface-2); color: var(--color-text); font-weight: 650; }
.ghov-dates i{ font-style: normal; color: var(--color-text-subtle); }
.ghov-dates em{ font-style: normal; font-weight: 500; color: var(--color-text-muted); margin-left: auto; font-size: 11.5px; }
.ghov-kv{ display: flex; justify-content: space-between; gap: 10px; padding: 4px 2px; }
.ghov-kv b{ font-weight: 600; color: var(--color-text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.ghov-tag{ display: inline-block; margin: 4px 0 2px; padding: 3px 8px; border-radius: 999px; background: var(--tone-violet-bg); color: var(--tone-violet-ink); font-size: 11px; font-weight: 650; }
.ghov-money{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 7px; padding: 8px 10px; border-radius: 11px; background: var(--color-surface-2); }
.ghov-money span{ font-weight: 650; }
.ghov-money b{ font-variant-numeric: tabular-nums; color: var(--color-text); }
.ghov-money em{ flex-basis: 100%; font-style: normal; font-size: 11px; color: var(--color-text-muted); }
.ghov-money.owes{ background: var(--tone-red-bg); } .ghov-money.owes span, .ghov-money.owes b{ color: var(--tone-red-ink); }
.ghov-money.ok{ background: var(--tone-green-bg); } .ghov-money.ok span, .ghov-money.ok b{ color: var(--tone-green-ink); }
.ghov-note{ margin-top: 7px; padding: 8px 10px; border-radius: 11px; background: #fffaeb; color: #6b4e00; line-height: 1.45; }
.ghov-note b{ font-weight: 650; }
.ghov-note em{ font-style: normal; opacity: .7; }
.ghov-foot{ margin-top: 8px; font-size: 10.5px; color: var(--color-text-subtle); text-align: center; }
@media (prefers-reduced-motion: reduce){ .ghov{ transition: none; } }
.ghov{ width: 300px; } .ghov-kv b{ white-space: normal; max-width: 190px; }

/* ==================================================================
   NUEVA RESERVA · SELECTOR VISUAL — js/app/08b-room-picker.js
   ================================================================== */
.modal-box:has(#wz-rooms){ max-width: 760px; }
.wz-has-picker:not(.wz-list-mode) > .form-row{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0 !important; }
.wz-has-picker > .section-label{ display: none; }
.wzr-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; font-size: 13px; color: var(--color-text-secondary); }
.wzr-head b{ color: var(--color-text); }
.wzr-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.wzr{
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left;
  padding: 13px 14px 12px; border-radius: 16px; border: 1px solid var(--color-border-strong); background: #fff; cursor: pointer;
  font-family: var(--font-body); transition: border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base) !important;
}
.wzr:hover:not(:disabled){ border-color: rgba(37,99,235,.45); box-shadow: 0 6px 18px -8px rgba(37,99,235,.35); }
.wzr.on{ border-color: var(--color-accent); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.wzr:disabled{ cursor: not-allowed; background: var(--color-surface-2); opacity: .62; }
.wzr.small:not(.on){ border-style: dashed; }
.wzr-top{ display: flex; align-items: center; gap: 8px; width: 100%; }
.wzr-ic{ width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.wzr-ic .ico{ width: 15px; height: 15px; }
.wzr-ic.shared{ background: var(--tone-green-bg); color: var(--tone-green-ink); }
.wzr-ic.priv{ background: var(--tone-amber-bg); color: var(--tone-amber-ink); }
.wzr-kind{ font: 650 10.5px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-subtle); }
.wzr-check{ margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); color: #fff; display: grid; place-items: center; }
.wzr-check .ico{ width: 13px; height: 13px; }
.wzr-name{ font: 700 14px/1.25 var(--font-body); color: var(--color-text); margin-top: 2px; }
.wzr-free{ font-size: 12px; color: var(--color-text-muted); }
.wzr.full .wzr-free{ color: var(--tone-red-ink); font-weight: 600; }
.wzr-price{ font-size: 12px; color: var(--color-text-muted); margin-top: 3px; }
.wzr-price b{ font-size: 14px; color: var(--color-text); font-variant-numeric: tabular-nums; }
.wzr-total{ font-size: 11.5px; font-weight: 600; color: var(--color-accent); }
.wzr-warn{ font-size: 11px; color: var(--tone-amber-ink); font-weight: 600; }
.wzb{ margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--color-surface-2); }
.wzb-t{ display: block; font: 650 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 10px; }
.wzb-list{ display: flex; flex-wrap: wrap; gap: 7px; }
.wzb-bed{ display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 12px; border: 1px solid var(--color-border-strong); background: #fff; cursor: pointer; font: 600 12.5px var(--font-body); color: var(--color-text); }
.wzb-bed .st-bed{ width: 24px; height: 16px; }
.wzb-bed .st-bed .f{ fill: var(--tone-green-bg); stroke: var(--tone-green-ink); } .wzb-bed .st-bed .l{ stroke: var(--tone-green-ink); } .wzb-bed .st-bed .p{ fill: var(--tone-green-ink); opacity: .5; }
.wzb-bed em{ font-style: normal; font-weight: 500; color: var(--color-text-muted); }
.wzb-bed:hover:not(:disabled){ border-color: rgba(37,99,235,.45); }
.wzb-bed.on{ border-color: var(--color-accent); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.wzb-bed:disabled{ opacity: .45; cursor: not-allowed; background: transparent; }
.wzb-bed:disabled .st-bed .f{ fill: #eceff3; stroke: #9aa4b2; } .wzb-bed:disabled .st-bed .l, .wzb-bed:disabled .st-bed .p{ stroke: #9aa4b2; fill: #9aa4b2; }
@media (max-width: 600px){ .wzr-grid{ grid-template-columns: 1fr 1fr; } }

/* Analytics: sin período anterior para comparar */
.an-delta.new{ color: var(--color-text-muted); background: var(--color-surface-2); font-weight: 700; text-transform: lowercase; }

/* ------------------------------------------------------------------
   AVISO DE PRE-RESERVAS VENCIDAS / POR VENCER (grilla y vista de hoy)
   ------------------------------------------------------------------ */
.pa-strip{
  --pa: #be123c; --pa-bg: #fff6f7; --pa-bd: #f7d4da;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0; padding: 8px 10px 8px 12px; border-radius: 14px;
  background: var(--pa-bg); border: 1px solid var(--pa-bd);
}
.pa-strip.near{ --pa: #b45309; --pa-bg: #fffaf2; --pa-bd: #f5e1bf; }
.pa-ic{ width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--pa) 12%, #fff); color: var(--pa); }
.pa-ic .ico{ width: 14px; height: 14px; }
.pa-t{ display: flex; flex-direction: column; font-size: 12.5px; font-weight: 650; color: var(--pa); line-height: 1.25; margin-right: 4px; }
.pa-t em{ font-style: normal; font-weight: 500; font-size: 11px; color: var(--color-text-muted); }
.pa-chips{ display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.pa-chip{
  display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer; font-family: inherit;
  padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--pa-bd);
  font-size: 11.5px; color: var(--color-text-secondary); transition: border-color .15s, background .15s;
}
.pa-chip b{ font-weight: 650; color: var(--color-primary); }
.pa-chip span{ font-size: 11px; color: var(--pa); }
.pa-chip.near span{ color: #b45309; }
.pa-chip:hover{ border-color: color-mix(in srgb, var(--pa) 45%, transparent); background: color-mix(in srgb, var(--pa) 4%, #fff); }
.pa-chip:focus-visible{ outline: 2px solid color-mix(in srgb, var(--pa) 50%, transparent); outline-offset: 2px; }
.pa-x{ margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--color-text-subtle); cursor: pointer; display: grid; place-items: center; }
.pa-x:hover{ background: color-mix(in srgb, var(--pa) 8%, transparent); color: var(--pa); }
.pa-x .ico{ width: 14px; height: 14px; }

/* ------------------------------------------------------------------
   AVISOS (campanita): icono por tipo, agrupados por día, punto sin leer
   ------------------------------------------------------------------ */
#notif-panel{ width: 360px; max-height: 480px; padding-bottom: 4px; }
#notif-panel .nt-head{ padding: 13px 16px 11px; border-bottom: 1px solid var(--hairline); background: var(--color-surface); border-radius: 18px 18px 0 0; }
#notif-panel .nt-head b{ font-size: 14px; font-weight: 700; }
.nt-clear, .nt-viewall{ font-size: 12px !important; font-weight: 600 !important; text-decoration: none !important; border-radius: 8px; padding: 4px 8px !important; }
.nt-clear{ color: var(--color-text-muted) !important; }
.nt-viewall{ color: var(--color-accent, #1d4ed8) !important; }
.nt-clear:hover, .nt-viewall:hover{ background: var(--color-surface-2, #f3f4f6) !important; text-decoration: none !important; }
.nt-group{ padding: 10px 16px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle); }
.nt-item, .nt-modal-item{
  display: flex !important; align-items: flex-start; gap: 11px; width: 100%;
  padding: 10px 16px !important; border: 0 !important; background: none; text-align: left; cursor: pointer;
  box-shadow: none !important; border-radius: 0;
}
.nt-item:hover, .nt-modal-item:hover{ background: var(--color-surface-2, #f6f7f9) !important; }
.nt-ic{
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; margin-top: 0 !important;
  background: #eef3fd; color: #2563eb !important;
}
.nt-ic .ico{ width: 15px !important; height: 15px !important; }
.lv-action .nt-ic{ background: #fff4e5; color: #b45309 !important; }
.lv-urgent .nt-ic{ background: #fdecef; color: #be123c !important; }
.lv-success .nt-ic{ background: #e9f7f0; color: #047857 !important; }
.nt-item:not(.unread) .nt-ic, .nt-modal-item:not(.unread) .nt-ic{ background: var(--color-surface-2, #f3f4f6); color: var(--color-text-subtle) !important; }
.nt-body{ flex: 1; }
.nt-body b{ font-size: 13px !important; color: var(--color-primary) !important; }
.nt-item:not(.unread) .nt-body b{ font-weight: 550 !important; color: var(--color-text-secondary) !important; }
.nt-body em{ opacity: 1 !important; color: var(--color-text-subtle) !important; }
.nt-need{ font-style: normal; color: #b45309; font-weight: 600; }
.nt-dot{ width: 8px; height: 8px; border-radius: 50%; background: #2563eb; flex-shrink: 0; margin-top: 6px; }
.lv-action .nt-dot{ background: #d97706; }
.lv-urgent .nt-dot{ background: #e11d48; }
.nt-more{ margin: 4px 10px 6px; width: calc(100% - 20px); border-radius: 10px !important; }
.nt-void{ display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 22px !important; font-size: 12px; color: var(--color-text-muted); line-height: 1.5; text-align: center; }
.nt-void b{ font-size: 13.5px; color: var(--color-primary); }
.nt-void-ic{ width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e9f7f0; color: #047857; margin-bottom: 4px; }
.nt-void-ic .ico{ width: 17px; height: 17px; }
@media (max-width: 760px){ #notif-panel{ width: auto; } }
.pa-chip.more{ font-weight: 650; color: var(--pa); background: transparent; border-style: dashed; }
.bkc-nat{ text-transform: capitalize; }

/* Ficha: menú "Más" del pie (acciones poco usadas) */
.bkc-more{ position: relative; }
.bkc-more > summary{ list-style: none; cursor: pointer; }
.bkc-more > summary::-webkit-details-marker{ display: none; }
.bkc-more-menu{
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; min-width: 220px;
  background: var(--color-surface); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(14,33,72,.14); padding: 6px; display: flex; flex-direction: column;
}
.bkc-more-menu button{ display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 0; background: none; border-radius: 9px; font: inherit; font-size: 13px; color: var(--color-text-secondary); cursor: pointer; text-align: left; }
.bkc-more-menu button:hover{ background: var(--color-surface-2, #f4f5f7); color: var(--color-primary); }
.bkc-more-menu button .ico{ width: 15px; height: 15px; }
.bkc-more-menu button.danger{ color: #be123c; }
.bkc-more-menu button.danger:hover{ background: #fdecef; }
.bkc-more-menu hr{ border: 0; border-top: 1px solid var(--hairline); margin: 4px 6px; }
.bkc-cancel{ color: #be123c !important; }
.bkc-cancel:hover{ background: #fdecef !important; border-color: #f7c6d0 !important; }
.ui-dlg-f.many{ flex-wrap: wrap; }

/* Archivos de la reserva */
.bf-list{ border: 1px solid var(--hairline); border-radius: 14px; max-height: 360px; overflow: auto; }
.bf-row{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.bf-row:last-child{ border-bottom: 0; }
.bf-thumb{ width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--color-surface-2, #f3f4f6) center/cover no-repeat; color: var(--color-text-subtle); }
.bf-thumb .ico{ width: 18px; height: 18px; }
.bf-thumb.has-img .ico{ display: none; }
.bf-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bf-main b{ font-size: 13px; color: var(--color-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-main span{ font-size: 11px; color: var(--color-text-muted); }
.bf-ib{ width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--color-surface); color: var(--color-text-secondary); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.bf-ib .ico{ width: 16px; height: 16px; }
.bf-ib.danger{ color: #be123c; }
.bf-ib:hover{ background: var(--color-surface-2, #f4f5f7); }
.bf-empty{ display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 18px; text-align: center; font-size: 12.5px; color: var(--color-text-muted); }
.bf-empty .ico{ width: 22px; height: 22px; color: var(--color-text-subtle); }
.bf-empty b{ color: var(--color-primary); font-size: 14px; }

/* Selector de fecha de la grilla: saltos de a semana adentro (antes eran dos botones sueltos en la barra) */
.dp-weeks{ display: flex; gap: 6px; }
.dp-weeks .nbtn{ flex: 1; font-size: 11.5px; white-space: nowrap; }
