/* PJ · Agenda · Rol de audiencias (1:1255) */
#rol-de-audiencias .t { flex: none; }
#rol-de-audiencias .mateo-burbuja { left: 1368px; top: 828px; }

#rol-de-audiencias .pagina { position: absolute; left: 40px; top: 32px; width: 1304px; display: flex; flex-direction: column; gap: 24px; }

/* Page Header */
#rol-de-audiencias .encabezado { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
#rol-de-audiencias .titulos { flex: 1 0 0; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
#rol-de-audiencias .titulos h2 { margin: 0; font: 500 22px/28px var(--sans); letter-spacing: -0.33px; color: var(--azul-bandera); }
#rol-de-audiencias .titulos p { font: 400 14px/21px var(--sans); color: #546679; }
#rol-de-audiencias .acciones { display: flex; align-items: center; gap: 8px; }
#rol-de-audiencias .boton { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font: 500 13px/20px var(--sans); white-space: nowrap; }
#rol-de-audiencias .boton img { width: 16px; height: 16px; }
#rol-de-audiencias .boton.borde { border: 1px solid #808c99; background: #fff; color: var(--azul-bandera); }
#rol-de-audiencias .boton.lleno { background: var(--azul-bandera); color: #fff; }

/* pestañas */
#rol-de-audiencias .pestanas { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid rgba(0, 45, 98, 0.1); }
#rol-de-audiencias .pestana { display: flex; flex-direction: column; }
#rol-de-audiencias .pestana::after { content: ""; height: 2px; }
#rol-de-audiencias .pestana.on::after { background: var(--azul-bandera); }
#rol-de-audiencias .pestana .fila { display: flex; align-items: center; gap: 6px; padding: 10px 4px; font: 500 13px/20px var(--sans); color: #546679; white-space: nowrap; }
#rol-de-audiencias .pestana.on .fila { font-weight: 600; color: var(--azul-bandera); }
#rol-de-audiencias .pestana .n { min-width: 19px; padding: 0 6px; border-radius: 999px; background: rgba(0, 45, 98, 0.06); font: 500 11px/16px var(--sans); color: #546679; text-align: center; }

#rol-de-audiencias .cuerpo { display: flex; align-items: flex-start; gap: 20px; }
#rol-de-audiencias .calendario { width: 964px; flex: none; display: flex; flex-direction: column; gap: 16px; }

/* Calendario / Barra de filtros */
#rol-de-audiencias .filtros { display: flex; flex-direction: column; gap: 12px; }
#rol-de-audiencias .periodo { display: flex; align-items: center; gap: 8px; }
#rol-de-audiencias .flecha { display: flex; padding: 8px; border-radius: 10px; }
#rol-de-audiencias .flecha img { width: 20px; height: 20px; }
#rol-de-audiencias .rango { font: 500 18px/25px var(--sans); color: var(--azul-bandera); white-space: nowrap; }
#rol-de-audiencias .espacio { flex: 1 0 0; min-width: 1px; }
#rol-de-audiencias .vistas { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: #edf1f6; }
#rol-de-audiencias .vistas > span { display: flex; padding: 6px 12px; border-radius: 8px; font: 500 13px/20px var(--sans); color: #546679; text-align: center; }
#rol-de-audiencias .vistas > .on { background: #fff; color: var(--azul-bandera); filter: drop-shadow(0 4px 8px rgba(0, 45, 98, 0.07)); }
#rol-de-audiencias .capas { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 8px; }
#rol-de-audiencias .capas .etiqueta { font: 500 11px/16px var(--sans); color: #5d6e80; white-space: nowrap; }
#rol-de-audiencias .capa { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid #808c99; border-radius: 999px; background: #fff; font: 500 12px/17px var(--sans); color: var(--azul-bandera); white-space: nowrap; }
#rol-de-audiencias .capa > img { width: 14px; height: 14px; }
#rol-de-audiencias .avatares { display: flex; isolation: isolate; }
#rol-de-audiencias .avatares span { position: relative; width: 24px; height: 24px; margin-right: -4px; border: 2px solid #fff; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 500 11px/16px var(--sans); color: #fff; }
#rol-de-audiencias .avatares span:nth-child(1) { z-index: 3; background: var(--azul-pj); }
#rol-de-audiencias .avatares span:nth-child(2) { z-index: 2; background: var(--azul-bandera); }
#rol-de-audiencias .avatares span:nth-child(3) { z-index: 1; margin-right: 0; background: #f7ecd9; color: #8a5a12; }
/* Not ".divisor": that name belongs to the rail's divider and would restyle it. */
#rol-de-audiencias .separador { width: 1px; height: 20px; background: rgba(0, 45, 98, 0.1); }
#rol-de-audiencias .filtro { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font: 400 12px/17px var(--sans); color: #546679; white-space: nowrap; }
#rol-de-audiencias .filtro img { width: 8px; height: 8px; }
#rol-de-audiencias .filtro.tareas img { width: 12px; height: 12px; }
#rol-de-audiencias .filtro .muestra { width: 10px; height: 10px; border-radius: 2px; background: rgba(196, 148, 84, 0.3); }

/* Calendario / Semana */
#rol-de-audiencias .semana { display: flex; flex-direction: column; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 16px; background: #fff; overflow: hidden; }
#rol-de-audiencias .semana .gutter { width: 56px; flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; font: 400 11px/16px var(--sans); color: #5d6e80; }
#rol-de-audiencias .encab { display: flex; align-items: flex-start; border-bottom: 1px solid rgba(0, 45, 98, 0.1); }
#rol-de-audiencias .encab .gutter { justify-content: flex-end; padding: 0 8px 8px 0; white-space: nowrap; }
#rol-de-audiencias .dia { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; }
#rol-de-audiencias .dia.finde { flex: none; width: 64px; background: #edf1f6; }
#rol-de-audiencias .dia .sem { font: 600 10px/14px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: #5d6e80; white-space: nowrap; }
#rol-de-audiencias .dia .num { width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font: 500 18px/25px var(--sans); color: var(--azul-bandera); }
#rol-de-audiencias .dia.finde .num { color: #5d6e80; }
#rol-de-audiencias .dia.hoy .sem { color: #003a99; }
#rol-de-audiencias .dia.hoy .num { background: #003a99; color: #fff; }

#rol-de-audiencias .todo { display: flex; align-items: flex-start; border-bottom: 1px solid rgba(0, 45, 98, 0.1); }
#rol-de-audiencias .todo .gutter { padding: 8px 8px 8px 0; }
#rol-de-audiencias .todo .gutter span { width: 48px; text-align: right; }
#rol-de-audiencias .celda { flex: 1 0 0; min-width: 1px; align-self: stretch; display: flex; flex-direction: column; padding: 4px; border-left: 1px solid rgba(0, 45, 98, 0.1); overflow: hidden; }
#rol-de-audiencias .celda.finde { flex: none; width: 64px; background: #edf1f6; }
#rol-de-audiencias .tarea { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 8px 4px 6px; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 6px; background: #fff; }
#rol-de-audiencias .casilla { position: relative; width: 24px; height: 24px; flex: none; border-radius: 4px; }
/* 1.5 px stroke drawn as an inset shadow: Chrome floors a 1.5 px border to 1 px. */
#rol-de-audiencias .casilla::before { content: ""; position: absolute; left: 5px; top: 5px; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #808c99; }
#rol-de-audiencias .tarea b { flex: 1 0 0; min-width: 1px; font: 500 12px/17px var(--sans); color: var(--azul-bandera); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#rol-de-audiencias .horario { display: flex; align-items: flex-start; }
#rol-de-audiencias .horas { width: 56px; height: 572px; flex: none; overflow: hidden; }
#rol-de-audiencias .horas span { display: block; height: 52px; padding: 4px 8px 0 0; text-align: right; font: 400 11px/16px var(--sans); color: #5d6e80; }
#rol-de-audiencias .col { position: relative; flex: 1 0 0; min-width: 1px; height: 572px; border-left: 1px solid rgba(0, 45, 98, 0.1); overflow: hidden; }
#rol-de-audiencias .col.finde { flex: none; width: 64px; background: #edf1f6; }
/* linea-hora at 52, 104 … 520: one 1 px line per 52 px tile, starting one hour down. */
#rol-de-audiencias .col::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; bottom: 0; background: linear-gradient(rgba(0, 45, 98, 0.1) 0 1px, transparent 1px) 0 0 / 100% 52px repeat-y; }

/* Events: colours per category (Audiencia, Reunión, Usuarios, Personal, Trámite, Plazo). */
#rol-de-audiencias .evento { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 6px 10px; border: 1px solid; border-radius: 6px; overflow: hidden; }
#rol-de-audiencias .col .evento { position: absolute; left: 3px; right: 3.4px; }
/* Figma's children are shrink-0: a short event clips its last line instead of squashing all of them. */
#rol-de-audiencias .evento > * { flex-shrink: 0; }
#rol-de-audiencias .evento.linea { flex-direction: row; align-items: center; gap: 6px; height: 24px; padding: 3px 6px 3px 10px; }
#rol-de-audiencias .evento.dia-completo { width: 100%; height: 58px; }
#rol-de-audiencias .evento .cab { display: flex; align-items: center; gap: 4px; }
#rol-de-audiencias .evento img { width: 12px; height: 12px; flex: none; }
#rol-de-audiencias .evento .cab span { flex: 1 0 0; min-width: 1px; font: 400 11px/16px var(--sans); color: #546679; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rol-de-audiencias .evento b { font: 500 12px/17px var(--sans); color: var(--azul-bandera); overflow: hidden; text-overflow: ellipsis; }
#rol-de-audiencias .evento.linea b { flex: 1 0 0; min-width: 1px; align-self: stretch; overflow: visible; }
#rol-de-audiencias .evento p { font: 400 11px/16px var(--sans); color: #546679; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rol-de-audiencias .evento .av { width: 16px; height: 16px; flex: none; border-radius: 999px; background: rgba(0, 45, 98, 0.06); display: flex; align-items: center; justify-content: center; font: 500 7.33px/10.67px var(--sans); font-style: normal; color: #546679; }
#rol-de-audiencias .ev-audiencia { background: rgba(0, 45, 98, 0.14); border-color: rgba(0, 45, 98, 0.4); }
#rol-de-audiencias .ev-reunion { background: rgba(0, 71, 186, 0.08); border-color: rgba(0, 71, 186, 0.25); }
#rol-de-audiencias .ev-reunion2 { background: rgba(0, 71, 186, 0.14); border-color: rgba(0, 71, 186, 0.4); }
#rol-de-audiencias .ev-usuarios { background: rgba(196, 148, 84, 0.14); border-color: rgba(196, 148, 84, 0.4); }
#rol-de-audiencias .ev-personal { background: rgba(91, 102, 118, 0.14); border-color: rgba(91, 102, 118, 0.4); }
#rol-de-audiencias .ev-tramite { background: rgba(51, 140, 158, 0.14); border-color: rgba(51, 140, 158, 0.4); }
#rol-de-audiencias .ev-plazo { background: rgba(192, 65, 60, 0.14); border-color: rgba(192, 65, 60, 0.4); }
#rol-de-audiencias .ahora { position: absolute; left: 0; right: 0; top: 123.8px; height: 2px; background: #a82621; }
/* ahora/punto sits mostly left of the column; the column clips it, as in the frame. */
#rol-de-audiencias .ahora-punto { position: absolute; left: -20px; top: 120.8px; width: 21px; height: 8px; transform: scaleY(-1); }

/* lateral */
#rol-de-audiencias .lateral { width: 320px; flex: none; display: flex; flex-direction: column; gap: 16px; }
#rol-de-audiencias .tarjeta { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 16px; background: #fff; }
#rol-de-audiencias .tarjeta h3 { margin: 0; font: 500 16px/22px var(--sans); color: var(--azul-bandera); }
#rol-de-audiencias .mes { display: flex; flex-direction: column; gap: 6px; }
#rol-de-audiencias .mes .cab { display: flex; align-items: center; gap: 4px; }
#rol-de-audiencias .mes .cab b { flex: 1 0 0; font: 600 13px/20px var(--sans); color: var(--azul-bandera); }
#rol-de-audiencias .mes .cab span { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
#rol-de-audiencias .mes .cab img { width: 16px; height: 16px; }
#rol-de-audiencias .mes .letras { display: flex; font: 500 11px/16px var(--sans); color: #5d6e80; text-align: center; }
#rol-de-audiencias .mes .letras span { flex: 1 0 0; }
#rol-de-audiencias .mes .fila { display: flex; align-items: center; }
#rol-de-audiencias .mes .fila.sel { border-radius: 8px; background: rgba(0, 45, 98, 0.08); }
#rol-de-audiencias .mes .d { flex: 1 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0; }
#rol-de-audiencias .mes .d b { width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 400 12px/17px var(--sans); color: var(--azul-bandera); }
#rol-de-audiencias .mes .d.finde b { color: #5d6e80; }
#rol-de-audiencias .mes .d.fuera b { color: #6b7785; }
#rol-de-audiencias .mes .d.hoy b { background: #003a99; font-weight: 500; color: #fff; }
#rol-de-audiencias .mes .d i, #rol-de-audiencias .mes .d img { display: block; width: 4px; height: 4px; }

#rol-de-audiencias .plazos { display: flex; flex-direction: column; gap: 12px; }
#rol-de-audiencias .plazo { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
#rol-de-audiencias .plazo .fecha { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fbe4e3; color: #a82621; display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: nowrap; }
#rol-de-audiencias .plazo .fecha b { font: 500 14px/21px var(--sans); }
#rol-de-audiencias .plazo .fecha span { font: 600 10px/14px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; }
#rol-de-audiencias .plazo .texto { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 2px; }
#rol-de-audiencias .plazo .texto b { font: 500 13px/20px var(--sans); color: var(--azul-bandera); }
/* Figma truncates the two-line title mid-word on its second line. */
#rol-de-audiencias .plazo .texto b span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rol-de-audiencias .plazo .texto > span { font: 400 12px/17px var(--sans); color: #5d6e80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rol-de-audiencias .plazo .estado { width: 97px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; overflow: hidden; }
#rol-de-audiencias .pill { display: flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; font: 600 10px/14px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; white-space: nowrap; }
#rol-de-audiencias .pill.roja { background: #fbe4e3; color: #a82621; }
#rol-de-audiencias .pill.ambar { background: #f7ecd9; color: #8a5a12; }
#rol-de-audiencias .confirma { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
#rol-de-audiencias .confirma img { width: 6px; height: 6px; }
#rol-de-audiencias .confirma b { font: 500 10px/12px var(--sans); color: #003a99; }
#rol-de-audiencias .confirma span { font: 400 10px/12px var(--sans); color: #5b6676; }

#rol-de-audiencias .riesgos { display: flex; flex-direction: column; gap: 12px; }
#rol-de-audiencias .riesgo { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(0, 45, 98, 0.1); }
#rol-de-audiencias .riesgo .tono { min-width: 84px; display: flex; }
#rol-de-audiencias .riesgo p { flex: 1 0 0; min-width: 1px; font: 400 13px/20px var(--sans); color: var(--azul-bandera); }
#rol-de-audiencias .sugerencia { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
#rol-de-audiencias .sugerencia > img { width: 16px; height: 16px; flex: none; }
#rol-de-audiencias .sugerencia > div { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 4px; font: 400 13px/20px var(--sans); color: var(--azul-bandera); }
#rol-de-audiencias .sugerencia b { font-weight: 500; color: #003a99; white-space: nowrap; }
