/* Calendario de camas (30-oct v3). Negro, una tabla que se desliza de lado dentro de su caja (la página no). */
body.rx.cal { max-width: none; padding: 0 12px 60px; }
.cal [hidden] { display: none !important; }
.cal .arriba { position: sticky; top: 0; left: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 120px 10px 0; background: #000; }
.cal .arriba h1 { margin: 0; font-size: 22px; font-weight: 900; }
.cal .peq { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--rx-line);
  color: var(--rx-txt); font: 800 16px var(--rx-letra); text-decoration: none; cursor: pointer; }
body.rx.cal a.peq { color: var(--rx-txt); }
.cal .mandos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.cal .leido { color: var(--rx-muted); font-size: 13px; }
.cal .leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--rx-dim); font-size: 13px; margin-bottom: 10px; }
.cal .leyenda i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.cal .tabla-caja { overflow: auto; max-height: calc(100vh - 170px); border-top: 1px solid var(--rx-line); }
.cal table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.cal th, .cal td { height: 30px; padding: 0; border-bottom: 1px solid #111; border-right: 1px solid #111; }
.cal thead th { position: sticky; top: 0; z-index: 3; background: #000; color: var(--rx-dim); font-weight: 700; min-width: 54px; text-align: center; line-height: 1.1; padding: 4px 2px; }
.cal thead th.hoy { color: var(--rx-brand); }
.cal th.cama { position: sticky; left: 0; z-index: 2; min-width: 64px; padding: 0 8px; background: #000; color: var(--rx-txt); text-align: left; font-weight: 800; white-space: nowrap; }
.cal thead th.cama { z-index: 4; }
.cal tr.hab th { position: sticky; left: 0; background: #000; color: var(--rx-brand); text-align: left; padding: 10px 8px 4px; font-size: 14px; border-bottom: 1px solid var(--rx-line2); }
.cal td.finde { background: #070707; }
.cal td .r { display: block; height: 24px; margin: 3px 0; padding: 0 6px; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: 700; line-height: 24px; cursor: pointer; border: 0; width: 100%; text-align: left; font-family: var(--rx-letra); font-size: 13px; }
.c.checked_in, .cal .r.checked_in { background: var(--rx-brand); color: #04110f; }
.c.confirmed, .cal .r.confirmed { background: #0b3a3e; color: var(--rx-txt); box-shadow: inset 0 0 0 2px var(--rx-brand); }
.c.not_confirmed, .cal .r.not_confirmed { background: #3d2e05; color: var(--rx-aviso); box-shadow: inset 0 0 0 2px var(--rx-aviso); }
.c.checked_out, .cal .r.checked_out { background: #1b1d1f; color: var(--rx-muted); }
.c.bloqueo, .cal .r.bloqueo { background: repeating-linear-gradient(45deg, #1b1d1f, #1b1d1f 4px, #2c3339 4px, #2c3339 8px); color: var(--rx-dim); }
.c.pms { background: transparent; box-shadow: inset 0 0 0 2px var(--rx-dim); border: 1px dashed var(--rx-dim); }
.cal .r.pms { outline: 2px dashed var(--rx-dim); outline-offset: -2px; }
.cal tr.sin th { color: var(--rx-mal); }
.cal tr.sin td { text-align: center; color: var(--rx-mal); font-weight: 800; cursor: pointer; }
.cal .vacio { color: var(--rx-dim); padding: 18px 2px; }
.cal .ficha { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); }
.cal .ficha-in { width: 100%; max-width: 560px; max-height: 80vh; overflow: auto; padding: 16px; background: #000; border-top: 2px solid var(--rx-brand); }
.cal .ficha-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 20px; }
.cal #fDatos { color: var(--rx-dim); line-height: 1.7; margin: 8px 0 12px; }
.cal #fDatos b { color: var(--rx-txt); }
.cal .ficha-bts { display: flex; flex-wrap: wrap; gap: 8px; }
body.cal.incrustada .arriba { padding-right: 0; }
body.cal.incrustada #aInicio { visibility: hidden; }
