/* Calendarios con la vista de Softmax (web/cal_vista.js). Solo usa los tokens de la plataforma; claro y oscuro. */
.clv, .clv-lista, .clv-conf { --cv-lin: var(--border-3); --cv-lin2: var(--border-2); }
.clv { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--surface-2); }
.clv-barra { display: flex; align-items: center; gap: 8px; padding: 10px 16px; flex-wrap: wrap; }
.clv-barra .hueco { flex: 1; }
.clv-rango { display: inline-flex; align-items: center; border: 1px solid var(--border-1); border-radius: 6px; background: var(--surface-2); height: 36px; }
.clv-rango b { min-width: 150px; text-align: center; font-weight: 500; font-size: 13.5px; padding: 0 6px; white-space: nowrap; text-transform: none; }
.clv-rango button { border: 0; background: none; font-size: 20px; line-height: 1; padding: 0 10px; height: 100%; cursor: pointer; color: var(--text-2); }
.clv-rango button:hover { background: var(--surface-3); }
.clv-sel { width: auto; height: 36px; padding: 0 10px; border-radius: 6px; font-size: 13.5px; }
.clv-filtro svg { width: 14px; height: 14px; }
.clv-mas { padding: 8px 12px; font-size: 16px; line-height: 1; }
.clv-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--cv-lin2); }
.clv-cuerpo.con-panel { grid-template-columns: 1fr 300px; }
.clv-rej { min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-2); }
.clv-vivo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* panel «Gestionar la vista» */
.clv-panel { border-left: 1px solid var(--cv-lin2); background: var(--surface-2); padding: 12px 16px; overflow: auto; min-height: 0; }
.clv-pan-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clv-pan-cab h3 { font-size: 14px; font-weight: 600; margin: 0; }
.clv-x { border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--text-2); padding: 4px 6px; border-radius: 6px; }
.clv-x:hover { background: var(--surface-3); }
.clv-tipo { background: var(--surface-3); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.clv-tipo b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.clv-rad, .clv-chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; cursor: pointer; }
.clv-chk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clv-chk input { flex: none; }
.clv-borrar { border: 0; background: none; color: var(--electric-text); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.clv-busca { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border-1); border-radius: 6px; padding: 0 10px; height: 36px; background: var(--surface-2); margin: 8px 0 6px; }
.clv-busca svg { width: 14px; height: 14px; color: var(--text-3); }
.clv-busca input { border: 0; padding: 0; background: none; font-size: 12.5px; outline: none; }
.clv-busca:focus-within { outline: 2px solid var(--electric); outline-offset: 1px; }
.clv-sec { border-top: 1px solid var(--cv-lin2); margin-top: 6px; }
.clv-sec-t { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 10px 0 8px; text-align: left; color: var(--text-1); }
.clv-fl { color: var(--text-3); font-size: 12px; width: 14px; }
.clv-cuenta { background: none; color: var(--electric-text); font-size: 11px; font-weight: 700; padding: 0 4px; }
.clv-sec-c { padding-bottom: 8px; max-height: 260px; overflow: auto; }

/* rejilla semanal y diaria */
.clv-cab, .clv-todo { display: grid; grid-template-columns: 58px repeat(var(--n), minmax(0, 1fr)); flex: none; border-bottom: 1px solid var(--cv-lin2); background: var(--surface-2); }
.clv-gmt { font-size: 10px; color: var(--text-3); padding: 14px 4px 0; text-align: center; line-height: 1.1; }
.clv-dn { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-1); padding: 12px 4px; border-left: 1px solid var(--cv-lin2); text-transform: lowercase; }
.clv-dn.pasado { color: var(--text-4); font-weight: 500; }
.clv-dn.hoy { color: var(--electric-text); }
.clv-dn:hover { background: var(--surface-3); }
.clv-et { font-size: 11px; color: var(--text-3); padding: 6px 4px; text-align: center; }
.clv-td { border-left: 1px solid var(--cv-lin2); min-height: 28px; padding: 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clv-chipb, .clv-chipx { border: 0; font-size: 11px; padding: 2px 6px; border-radius: 4px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clv-chipb { background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.clv-chipx { background: var(--border-2); color: var(--text-2); }
.clv-cuerpo-h { flex: 1; min-height: 0; overflow-y: scroll; overflow-x: hidden; scrollbar-width: thin; }
.clv-hs { display: grid; grid-template-columns: 58px 1fr; position: relative; }
.clv-hr > div { position: relative; }
.clv-hr span { position: absolute; top: -8px; right: 8px; font-size: 11px; color: var(--text-3); background: var(--surface-2); padding: 0 2px; }
.clv-hr > div:first-child span { display: none; }
.clv-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); user-select: none; -webkit-user-select: none; }
.clv-col { position: relative; border-left: 1px solid var(--cv-lin2); background-image: linear-gradient(var(--cv-lin2) 1px, transparent 1px), linear-gradient(var(--cv-lin) 1px, transparent 1px); background-size: 100% 48px, 100% 24px; cursor: cell; touch-action: pan-y; }
.clv-col.hoy { background-color: var(--electric-dim); }
.clv-cita { position: absolute; z-index: 2; border-left: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, var(--surface-2)); color: var(--text-1); font-size: 12px; line-height: 1.25;
  padding: 3px 6px 3px 6px; overflow: hidden; cursor: grab; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); touch-action: pan-y; }
.clv-cita b { font-weight: 600; }
.clv-cita small { display: block; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clv-cita.cancelada { text-decoration: line-through; opacity: .6; }
.clv-cita.nueva { border-left-style: dashed; }
.clv-cita:focus-visible { outline: 2px solid var(--electric); outline-offset: 1px; z-index: 5; }
.clv-cita.arrastrando, .clv-cita.listo { z-index: 6; box-shadow: var(--shadow-md); opacity: .92; cursor: grabbing; }
.clv-asa { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; touch-action: none; }
.clv-asa::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: currentColor; opacity: 0; }
.clv-cita:hover .clv-asa::after, .clv-cita:focus .clv-asa::after { opacity: .35; }
.clv-bloq { position: absolute; left: 0; right: 0; z-index: 1; border: 0; text-align: left; padding: 3px 6px; font-size: 11.5px; color: var(--text-2); cursor: pointer;
  background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 6px, var(--surface) 6px, var(--surface) 12px); overflow: hidden; }
.clv-ext { position: absolute; left: 2px; right: 2px; z-index: 1; background: var(--border-2); color: var(--text-2); border-left: 3px solid var(--text-4); border-radius: 4px; font-size: 11.5px; padding: 2px 6px; overflow: hidden; pointer-events: none; }
.clv-ahora { position: absolute; left: 0; right: 0; border-top: 1px solid var(--danger); z-index: 4; pointer-events: none; }
.clv-ahora::before { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.clv-fant { position: absolute; left: 3px; right: 3px; z-index: 3; border-radius: 6px; background: var(--electric-dim); border: 2px dashed var(--electric); font-size: 11.5px; padding: 2px 6px; color: var(--electric-text); font-weight: 600; pointer-events: none; }

/* vista mensual */
.clv-mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(96px, 1fr); overflow: auto; flex: 1; }
.clv-dn2 { padding: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: lowercase; border-bottom: 1px solid var(--cv-lin2); position: sticky; top: 0; background: var(--surface-2); z-index: 2; height: 32px; }
.clv-celda { border-right: 1px solid var(--cv-lin2); border-bottom: 1px solid var(--cv-lin2); padding: 4px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clv-celda:hover { background: var(--electric-dim); }
.clv-celda.fuera { background: var(--surface); }
.clv-celda.fuera .clv-num { color: var(--text-4); }
.clv-celda.hoy .clv-num { background: var(--electric); color: #fff; border-radius: 50%; }
.clv-num { font-size: 12px; font-weight: 600; width: 22px; height: 22px; display: grid; place-items: center; }
.clv-mini { font-size: 11px; border-radius: 4px; padding: 1px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.clv-mini.cita { border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); }
.clv-mini.cita.cancelada { text-decoration: line-through; opacity: .6; }
.clv-mini.bloq { background: var(--surface-3); color: var(--text-2); }
.clv-mini.ext { background: var(--border-2); color: var(--text-2); }
.clv-mas-n { font-size: 11px; color: var(--electric-text); font-weight: 600; cursor: pointer; }

/* menús flotantes y estado */
.clv-flota { position: fixed; z-index: 95; min-width: 190px; max-width: min(92vw, 360px); padding: 4px; box-shadow: var(--shadow-lg); }
.clv-it { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; font-size: 13px; border-radius: 6px; cursor: pointer; color: var(--text-1); text-decoration: none; white-space: nowrap; }
.clv-it:hover, .clv-it.sel { background: var(--surface-3); }
.clv-it.peligro { color: var(--danger); }
.clv-it.chk { cursor: pointer; }
.clv-it.chk input { width: auto; }
.clv-pto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text-3); flex: none; vertical-align: -1px; }
.clv-e-confirmada { border-color: var(--success); background: var(--success-light); }
.clv-e-nueva { border-color: var(--warning); background: var(--warning-light); }
.clv-e-cancelada { border-color: var(--danger); background: var(--danger-light); }
.clv-e-asistio { border-color: var(--electric); background: var(--electric-light); }
.clv-e-no_asistio { border-color: var(--text-4); background: var(--surface-3); }
.clv-e-invalida { border-color: var(--text-4); border-style: dashed; }

/* ventana «Reservar Cita» */
.modal .caja.clv-caja { max-width: 860px; padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 12px; }
.clv-caja form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.clv-m-cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.clv-m-cab h2 { margin: 0; font-size: 16px; font-weight: 600; }
.clv-tabs { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--cv-lin2); }
.clv-tabs button { border: 0; background: none; padding: 10px 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.clv-tabs button.activo { color: var(--electric-text); border-bottom-color: var(--electric); }
.clv-dos { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; overflow: hidden; flex: 1; min-height: 0; }
.clv-izq { padding: 14px 18px 8px 20px; overflow: auto; max-height: 56vh; border-right: 1px solid var(--cv-lin2); }
.clv-der { padding: 14px 20px 8px 18px; overflow: auto; max-height: 56vh; }
.clv-caja .clv-izq > label, .clv-caja #fBloq > label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 10px; font-weight: 500; }
.clv-caja .clv-izq label > input:not([type=checkbox]), .clv-caja label > select, .clv-caja .clv-izq label > textarea, .clv-caja #fBloq label > input:not([type=checkbox]), .clv-caja #fBloq label > textarea { margin-top: 4px; font-size: 13px; }
.clv-caja select, .clv-caja input:not([type=checkbox]):not([type=radio]) { border-radius: 8px; }
#fBloq { padding: 14px 20px 0; overflow: auto; max-height: 70vh; }
.clv-enlace { border: 0; background: none; color: var(--electric-text); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 0; margin: 0 0 10px; }
.clv-ayuda { font-size: 11.5px; color: var(--text-3); margin: 0 0 6px; }
.clv-cajafh > b { display: block; font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.clv-fh { background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.clv-seg { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 3px; margin: 10px 0; }
.clv-seg button { border: 0; background: none; padding: 6px 12px; font-size: 12.5px; font-weight: 500; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.clv-seg button.activo { background: var(--surface-2); color: var(--electric-text); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.clv-fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.clv-fila2 > label { margin-bottom: 8px !important; }
.clv-par { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; }
.clv-caja-c { background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.clv-caja-c > b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.clv-caja-c b svg { width: 15px; height: 15px; }
.clv-req i { color: var(--danger); font-style: normal; }
.clv-caja-s { margin-bottom: 14px; }
.clv-caja-s > b { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 6px; }
.clv-res { display: flex; flex-direction: column; max-height: 220px; overflow: auto; gap: 2px; }
.clv-r { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.clv-r:hover { background: var(--surface-3); }
.clv-r small { display: block; color: var(--text-3); font-size: 11px; }
.clv-r.crear { color: var(--electric-text); font-weight: 600; }
.clv-nc label { display: block; font-size: 12px; margin-bottom: 8px; }
.clv-av { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.clv-cont { display: flex; align-items: center; gap: 8px; }
.clv-cont-n { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clv-obj { font-size: 12px; margin-bottom: 4px; }
.clv-obj > span:first-child { color: var(--text-3); margin-right: 4px; }
.clv-pie { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--cv-lin2); flex-wrap: wrap; background: var(--surface-2); }
.clv-pie .hueco { flex: 1; }
.clv-est { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.clv-est .btn { font-weight: 500; }
.clv-caja .error { margin: 6px 20px 0; }
.clv-camb { background: var(--surface-3); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7; }
.clv-camb span { display: inline-block; width: 60px; color: var(--text-3); font-size: 12px; }

/* lista de citas */
.clv-lista { padding: 20px 22px 28px; background: var(--surface); min-height: 100%; }
.clv-lcab { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.clv-lcab h2 { font-size: 22px; font-weight: 600; margin: 0; }
.clv-ltabs { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--cv-lin2); margin-bottom: 12px; flex-wrap: wrap; }
.clv-ltabs [role=tablist] { display: flex; gap: 18px; flex-wrap: wrap; }
.clv-ltabs button[role=tab], .clv-mas-l { border: 0; background: none; padding: 8px 0; cursor: pointer; font-size: 12.5px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.clv-ltabs button.activo { color: var(--electric-text); font-weight: 600; border-bottom-color: var(--electric); }
.clv-mas-l { color: var(--text-3) !important; }
.clv-ltabs .clv-enlace { margin: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.clv-ltabs .clv-enlace svg { width: 13px; height: 13px; }
.clv-lbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.clv-lbar .hueco { flex: 1; }
.clv-p { border-radius: 16px; padding: 5px 12px; font-size: 12px; font-weight: 500; }
.clv-p svg { width: 12px; height: 12px; }
.clv-b2 { margin: 0; width: 230px; height: 32px; }
.clv-tabla th { font-size: 11.5px; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.clv-tabla td { vertical-align: middle; font-size: 13px; }
.clv-tit { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.clv-ti svg { width: 16px; height: 16px; color: var(--text-3); }
.clv-tit-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.clv-cp { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-3); border-radius: 12px; padding: 2px 10px 2px 3px; font-size: 12.5px; color: var(--text-1); text-decoration: none; max-width: 220px; }
.clv-cp span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clv-cp .clv-av { width: 18px; height: 18px; font-size: 10px; }
.clv-est-f { width: auto; min-width: 130px; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.clv-hora { white-space: nowrap; color: var(--text-2); }
.clv-acc { text-align: center; width: 40px; }
.clv-pts { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 6px; color: var(--text-2); }
.clv-pts:hover { background: var(--surface-3); }
.clv-filt { width: 280px; padding: 10px; }
.clv-filt label { display: block; font-size: 12px; margin-bottom: 8px; color: var(--text-2); }
.clv-lp { display: flex; gap: 8px; margin-bottom: 8px; }

/* configuración del calendario */
.clv-conf { background: var(--surface); min-height: 100%; }
.clv-conf-top { display: flex; gap: 20px; padding: 0 22px; background: var(--surface-2); border-bottom: 1px solid var(--cv-lin2); overflow-x: auto; }
.clv-conf-top button, .clv-subs button { border: 0; background: none; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.clv-conf-top button.activo, .clv-subs button.activo { color: var(--electric-text); border-bottom-color: var(--electric); }
.clv-conf-c { padding: 4px 22px 28px; }
.clv-subs { display: flex; gap: 22px; border-bottom: 1px solid var(--cv-lin2); margin: 16px 0 18px; overflow-x: auto; }
.clv-cg { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.clv-grupos { display: flex; flex-direction: column; gap: 2px; }
.clv-g { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-1); width: 100%; }
.clv-g:hover { background: var(--surface-3); }
.clv-g.activo { background: var(--electric-light); color: var(--electric-text); font-weight: 500; }
.clv-g .clv-cuenta { background: var(--surface-3); border-radius: 10px; color: var(--text-2); padding: 0 7px; font-weight: 600; }
.clv-g-t { font-size: 14px; font-weight: 600; margin: 14px 10px 4px; }
.clv-g-f { display: flex; align-items: center; }
.clv-g-n { justify-content: center; margin-top: 10px; color: var(--electric-text); }
.clv-cf { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.clv-cf select { width: auto; font-size: 12.5px; padding: 7px 10px; border-radius: 6px; }
.clv-cf .hueco { flex: 1; }
.clv-cf .clv-busca { margin: 0; height: 34px; width: 210px; }
.clv-cn { display: flex; gap: 8px; align-items: flex-start; }
.clv-cn .punto { margin-top: 5px; flex: none; }
.clv-cn b { display: block; font-weight: 500; }
.clv-id { border: 0; background: none; padding: 0; font-size: 11px; color: var(--text-3); cursor: pointer; }
.clv-id:hover { color: var(--electric-text); }
.clv-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 4px; }
.clv-pill.on { background: var(--success-light); color: var(--success-text); }
.clv-pill.off { background: var(--danger-light); color: var(--danger); }
.clv-fa { font-size: 12px; white-space: nowrap; line-height: 1.4; }
.clv-ac { white-space: nowrap; }
.clv-ib { border: 0; background: none; cursor: pointer; padding: 5px 7px; border-radius: 6px; color: var(--text-2); font-size: 15px; line-height: 1; }
.clv-ib svg { width: 16px; height: 16px; }
.clv-ib:hover { background: var(--surface-3); color: var(--electric-text); }
.clv-pag { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--cv-lin2); }
.clv-pn { border: 1px solid var(--electric); color: var(--electric-text); border-radius: 6px; padding: 2px 9px; font-size: 12px; }
.clv-conf-orig .cl-tabs { display: none; }

@media (max-width: 900px) {
  .clv-cuerpo.con-panel { grid-template-columns: 1fr; }
  .clv-panel { position: fixed; inset: auto 0 0 0; z-index: 40; max-height: 70vh; border-top: 1px solid var(--cv-lin2); box-shadow: var(--shadow-lg); border-left: 0; }
  .clv-cg { grid-template-columns: 1fr; }
  .clv-grupos { flex-direction: row; flex-wrap: wrap; }
  .clv-g { width: auto; }
}
@media (max-width: 700px) {
  .clv-barra { padding: 8px 10px; gap: 6px; }
  .clv-barra .hueco { display: none; }
  .clv-rango b { min-width: 0; flex: 1; font-size: 12.5px; }
  .clv-rango { flex: 1 1 100%; justify-content: space-between; order: 5; }
  .clv-filtro span { display: none; }
  .clv-cab, .clv-todo { grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); }
  .clv-hs { grid-template-columns: 44px 1fr; }
  .clv-hr span { right: 4px; font-size: 10px; }
  .clv-gmt { font-size: 9px; }
  .clv-dos { grid-template-columns: 1fr; overflow: auto; }
  .clv-izq, .clv-der { max-height: none; overflow: visible; border-right: 0; padding: 12px 16px; }
  .clv-caja { max-height: 94vh; }
  .modal .caja.clv-caja form { overflow: auto; }
  .clv-lista { padding: 14px 12px 24px; }
  .clv-b2 { width: 100%; flex: 1; }
  .clv-conf-c { padding: 4px 12px 24px; }
  .clv-fila2 { grid-template-columns: 1fr; }
  .clv-par { grid-template-columns: 1fr 1fr; }
  .clv-mes { grid-auto-rows: minmax(70px, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { .clv-cita { transition: box-shadow .12s; } }
.pestanas button svg, .clv svg, .clv-lista svg, .clv-conf svg { width: 15px; height: 15px; vertical-align: -2px; flex: none; }
.pestanas button svg { margin-right: 4px; }
.clv-col.hoy { background-color: color-mix(in srgb, var(--electric) 4%, transparent); }
.clv-cf select { max-width: 185px; }
.clv-cf .btn.primario { flex: none; }
@media (max-width: 700px) {
  .clv-barra .btn { padding: 6px 10px; }
  .clv-sel { max-width: 118px; font-size: 12.5px; padding: 0 6px; }
  .clv-rango { order: 0; flex: 1 1 160px; min-width: 0; }
  .clv-barra { gap: 6px; }
}
