:root {
    --bg: #f2f5f9;
    --surface: #ffffff;
    --surface-soft: #edf3f9;
    --surface-muted: #f7f9fc;
    --text: #132235;
    --muted: #637287;
    --primary: #155a9c;
    --primary-dark: #0c3f70;
    --primary-soft: #e9f2fb;
    --sidebar: #102c4c;
    --sidebar-deep: #0a2038;
    --sidebar-text: #dce9f5;
    --sidebar-muted: #93abc2;
    --border: #d8e1eb;
    --danger: #aa3440;
    --warning: #a36b18;
    --success: #28734b;
    --shadow: 0 10px 30px rgba(23, 43, 67, .08);
    --shadow-soft: 0 4px 15px rgba(23, 43, 67, .06);
    --sidebar-width: 278px;
}

* { box-sizing: border-box; }
html { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }

/* Estructura principal con menú lateral */
.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: var(--sidebar-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(49, 111, 163, .22), transparent 34%),
        linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
    border-right: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 12px 0 35px rgba(9, 31, 52, .14);
}
.sidebar-brand { min-height: 112px; display: flex; align-items: center; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar-brand-link { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.sidebar-brand-link:hover { text-decoration: none; }
.sidebar-logo { width: 82px; height: 48px; flex: 0 0 82px; padding: 3px 5px; border-radius: 9px; background: #fff; border: 1px solid rgba(255, 255, 255, .42); box-shadow: 0 7px 18px rgba(0, 0, 0, .18); object-fit: contain; }
.sidebar-brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sidebar-brand-copy strong { color: #fff; font-size: 1rem; letter-spacing: .01em; }
.sidebar-brand-copy > span:last-child { color: #b6c9dc; font-size: .79rem; margin-top: 4px; }
.sidebar-eyebrow { color: #8fb3d2; font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 5px; }
.sidebar-close { display: none; margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.09); cursor: pointer; }
.sidebar-close svg { width: 21px; height: 21px; fill: currentColor; margin: auto; }
.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.sidebar-section-label { padding: 0 12px; margin: 16px 0 7px; color: var(--sidebar-muted); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-section-label:first-child { margin-top: 0; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 10px 12px; border-radius: 10px; color: var(--sidebar-text); font-size: .91rem; font-weight: 650; transition: background .16s ease, color .16s ease, transform .16s ease; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.075); text-decoration: none; transform: translateX(2px); }
.sidebar-link.active { color: #fff; background: linear-gradient(90deg, rgba(53, 132, 198, .38), rgba(53, 132, 198, .14)); box-shadow: inset 3px 0 0 #63a8df; }
.sidebar-icon { display: inline-flex; flex: 0 0 auto; width: 20px; height: 20px; color: currentColor; }
.sidebar-icon svg { width: 100%; height: 100%; fill: currentColor; }
.sidebar-footer { padding: 14px 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.055); }
.sidebar-user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #2874af; font-weight: 800; }
.sidebar-user-copy { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: .86rem; }
.sidebar-user-copy span { color: var(--sidebar-muted); font-size: .73rem; margin-top: 2px; }
.sidebar-logout { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 11px; border-radius: 9px; color: #c7d8e8; font-size: .83rem; }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.065); text-decoration: none; }
.sidebar-overlay { display: none; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.mobile-topbar { display: none; }
.container { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 60px; }
.container-narrow { width: min(460px, calc(100% - 32px)); margin: 9vh auto 40px; padding: 0; }
.auth-body { background: radial-gradient(circle at top, #e7f0f9 0, #f4f7fa 48%, #eef2f7 100%); }

/* Tipografía y contenedores */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
h1, h2, h3 { margin-top: 0; line-height: 1.2; }
h1 { font-size: clamp(1.62rem, 2vw, 2.18rem); margin-bottom: 7px; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; margin-bottom: 7px; }
h3 { font-size: 1.02rem; }
p { line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; color: var(--muted); font-weight: 820; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.card-tight { padding: 14px; }
.card h2:last-child, .card p:last-child { margin-bottom: 0; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 15px; }
.card-title-row h2 { margin-bottom: 0; }
.card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.card-icon.subtle { color: #526c86; background: #eef3f7; }
.text-link { font-size: .85rem; font-weight: 750; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* Encabezado institucional del dashboard */
.institution-hero { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 188px; margin-bottom: 26px; padding: 24px 26px; overflow: hidden; color: #fff; border-radius: 20px; background: linear-gradient(112deg, #0d3a65 0%, #155a90 58%, #1e6fa6 100%); box-shadow: 0 16px 35px rgba(15, 62, 101, .18); }
.institution-hero::before { content: ""; position: absolute; width: 360px; height: 360px; right: -145px; top: -210px; border: 52px solid rgba(255,255,255,.055); border-radius: 50%; }
.institution-hero::after { content: ""; position: absolute; width: 210px; height: 210px; right: 160px; bottom: -175px; border: 34px solid rgba(255,255,255,.045); border-radius: 50%; }
.institution-hero > * { position: relative; z-index: 1; }
.institution-hero-logo { display: grid; place-items: center; width: 150px; height: 92px; padding: 7px 10px; border-radius: 15px; background: rgba(255,255,255,.98); border: 3px solid rgba(255,255,255,.32); box-shadow: 0 12px 28px rgba(4, 25, 45, .25); }
.institution-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.institution-hero .kicker { color: #a8cbe8; }
.institution-hero h1 { margin: 5px 0 8px; color: #fff; font-size: clamp(1.65rem, 2.5vw, 2.55rem); }
.institution-hero-copy > p { margin: 0; }
.institution-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px !important; color: #dcebf6; font-size: .87rem; font-weight: 700; }
.institution-hero .muted { color: #c2d8e9; }
.institution-hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 190px; }
.institution-hero-actions .btn { color: #0d4778; background: #fff; border-color: #fff; }
.institution-hero-actions .btn:hover { background: #eaf4fb; }
.institution-hero-actions .btn svg { width: 18px; height: 18px; fill: currentColor; }
.academic-year-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.1); backdrop-filter: blur(4px); }
.academic-year-card span { color: #c9ddeb; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.academic-year-card strong { color: #fff; font-size: 1.5rem; }
.academic-year-card.empty-year strong { font-size: 1rem; }
.dashboard-heading { align-items: flex-end; }
.dashboard-heading h2 { margin: 4px 0 4px; font-size: 1.52rem; }
.dashboard-heading p { margin: 0; }
.dashboard-date { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* Tarjetas estadísticas */
.stats { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; display: flex; align-items: center; gap: 13px; min-height: 112px; padding: 17px; overflow: hidden; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-soft); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.stat::after { content: ""; position: absolute; width: 70px; height: 70px; right: -38px; top: -38px; border-radius: 50%; background: currentColor; opacity: .045; }
.stat:hover { border-color: #9fbad2; box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.stat-icon { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; color: var(--primary); background: #e9f2fb; }
.stat-icon svg { width: 23px; height: 23px; fill: currentColor; }
.stat-content { display: flex; flex-direction: column; min-width: 0; }
.stat-label { color: var(--muted); font-size: .79rem; font-weight: 720; }
.stat-value { display: block; margin-top: 1px; font-size: 1.72rem; line-height: 1.1; font-weight: 820; letter-spacing: -.02em; }
.stat-detail { margin-top: 5px; color: #77879a; font-size: .73rem; }
.stat-blue .stat-icon { color: #1766a8; background: #e6f1fb; }
.stat-slate .stat-icon { color: #50677e; background: #edf1f5; }
.stat-success { border-left: 4px solid #2f7d55; }
.stat-success .stat-icon { color: #267048; background: #e6f4ec; }
.stat-warning { border-left: 4px solid #d49a2e; }
.stat-warning .stat-icon { color: #9b671a; background: #fbf0d7; }
.stat-danger { border-left: 4px solid #b94b56; }
.stat-danger .stat-icon { color: #a43843; background: #fae9eb; }

/* Progreso */
.progress-card { padding: 18px 20px; }
.progress-card-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.progress-card-head > div { display: flex; align-items: center; gap: 12px; }
.progress-card-head h2 { margin: 0 0 3px; }
.progress-card-head p { margin: 0; }
.progress-card-head > strong { font-size: 1.65rem; color: var(--primary); }
.progress-track { display: block; width: 100%; height: 7px; margin-top: 8px; overflow: hidden; background: #dfe8f0; border-radius: 999px; }
.progress-track-large { height: 10px; margin-top: 16px; }
.progress-fill { display: block; height: 100%; background: linear-gradient(90deg, #1763a0, #3b8ac6); border-radius: inherit; transition: width .25s ease; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 11px; color: var(--muted); font-size: .78rem; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.legend-dot.completed { background: #2f7d55; }
.legend-dot.pending { background: #d49a2e; }

/* Grillas y formularios */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: span 2; }
label { color: #34465a; font-size: .88rem; font-weight: 700; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 9px 10px; color: var(--text); background: #fff; border: 1px solid #bfcddd; border-radius: 8px; }
textarea { min-height: 94px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(21,90,156,.14); border-color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 740; text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { text-decoration: none; }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { color: #2f445a; background: #fff; border-color: #aebed0; }
.btn-secondary:hover { background: #f4f7fa; }
.btn-danger { color: var(--danger); background: #fff0f1; border-color: #e6aab0; }
.btn-small { padding: 6px 9px; font-size: .85rem; }

/* Tablas y etiquetas */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 11px; border-bottom: 1px solid #e5ebf2; text-align: left; vertical-align: top; }
th { color: #3a5065; background: #eef4f9; font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
tbody tr:hover td { background-color: #f8fafc; }
tr:last-child td { border-bottom: 0; }
tr.observed td { background: #fff5f5; }
tr.observed:hover td { background: #ffeded; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; color: #32495e; background: #e6eef6; border-radius: 999px; font-size: .76rem; font-weight: 760; }
.badge-danger { color: #8e2630; background: #f9dfe1; }
.badge-success { color: #236844; background: #dff1e8; }
.badge-warning { color: #7a5211; background: #f8ebcc; }

/* Alertas y elementos generales */
.alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: 10px; }
.alert-success { color: #1e633d; background: #e7f5ed; border-color: #a8d3ba; }
.alert-danger { color: #8d2932; background: #fff0f1; border-color: #e5adb2; }
.alert-warning { color: #765013; background: #fff7e6; border-color: #e4c98f; }
.alert-info { color: #245b87; background: #eaf4fd; border-color: #afd0ed; }
.login-logo { text-align: center; margin-bottom: 20px; }
.login-logo img { display: block; width: min(230px, 72%); height: auto; margin: 0 auto 16px; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.login-logo strong { display: block; font-size: 1.65rem; }
.login-logo span { display: block; color: #33485d; margin-top: 5px; font-weight: 750; }
.login-logo small { display: block; color: var(--muted); margin-top: 5px; }
.definition-list { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
.definition-list dt { color: var(--muted); font-weight: 700; }
.definition-list dd { margin: 0; }
.accordion { overflow: hidden; margin-bottom: 12px; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.accordion summary { padding: 13px 15px; background: #edf4fb; cursor: pointer; font-weight: 750; }
.accordion-body { padding: 15px; }
.preview-item td { padding: 6px; }
.preview-item input { min-width: 100px; }
.empty { padding: 32px; color: var(--muted); text-align: center; }
.empty-positive { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--success); }
.empty-positive span { display: inline-flex; width: 23px; height: 23px; }
.empty-positive svg { width: 100%; height: 100%; fill: currentColor; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pagination a, .pagination span { padding: 7px 10px; background: #fff; border: 1px solid var(--border); border-radius: 7px; }
.pagination .active { color: #fff; background: var(--primary); }

/* Módulo Visado de Libretas */
.visado-detail { padding: 14px; }
.visado-layout { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 18px; align-items: start; }
.visado-groups { position: sticky; top: 22px; max-height: calc(100vh - 44px); overflow: hidden; }
.compact-head { margin-bottom: 10px; }
.group-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 175px); padding-right: 3px; overflow-y: auto; }
.group-progress { display: block; padding: 10px 11px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.group-progress:hover, .group-progress.active { background: #edf5fc; border-color: #78a5ce; text-decoration: none; }
.group-progress-title { display: block; font-size: .92rem; font-weight: 750; }
.group-progress-meta, .group-progress-numbers { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }
.group-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; }
.group-summary span { padding: 5px 9px; color: var(--muted); background: #f7fafc; border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; }
.visado-table { font-size: .82rem; }
.visado-table th, .visado-table td { padding: 4px 6px; line-height: 1.18; }
.visado-table td { vertical-align: middle; }
.visado-table tr.row-visada td { background: #edf5fc; }
.visado-table tr.row-visada td:first-child { box-shadow: inset 4px 0 0 #2f6da5; }
.check-cell { width: 66px; text-align: center; }
.state-check { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.state-check:disabled { cursor: not-allowed; opacity: .6; }
.observed-check { accent-color: var(--danger); }
.note-cell { min-width: 260px; }
.note-editor { display: flex; align-items: center; gap: 5px; }
.note-cell textarea { min-height: 32px; height: 32px; margin: 0; padding: 5px 7px; font-size: .79rem; line-height: 1.15; resize: vertical; }
.note-editor .btn { flex: 0 0 auto; padding: 5px 7px; font-size: .75rem; }
.save-cell { width: 88px; }
.save-status { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.save-status.saving { color: var(--warning); }
.save-status.saved { color: var(--primary); font-weight: 700; }
.save-status.error { color: var(--danger); font-weight: 700; }
.item-meta { margin-top: 1px; font-size: .67rem; line-height: 1.1; }
.item-meta:empty { display: none; }
.inline-form { display: inline-flex; margin: 0; }
.import-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.import-mode-option { display: block; padding: 14px; background: #fff; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; }
.import-mode-option:has(input:checked) { background: #edf5fc; border-color: var(--primary); }
.import-mode-option input { width: auto; margin-right: 7px; }
.import-mode-option strong { display: inline; }
.import-mode-option span { display: block; margin: 6px 0 0 25px; color: var(--muted); font-size: .85rem; }
.danger-zone { background: #fffafb; border-color: #e3b2b7; }
.duplicate-group { border-color: #e4c98f; }
.duplicate-group summary { background: #fff7e6; }

/* Adaptación */
@media (max-width: 1220px) {
    .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .institution-hero { grid-template-columns: 136px minmax(0, 1fr) auto; }
    .institution-hero-logo { width: 130px; height: 78px; }
}

@media (max-width: 1050px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .visado-layout { grid-template-columns: 1fr; }
    .visado-groups { position: static; max-height: none; }
    .group-list { max-height: 310px; }
    .institution-hero { grid-template-columns: 136px minmax(0, 1fr); }
    .institution-hero-actions { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
    .institution-hero-actions > * { flex: 1; }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close { display: inline-grid; place-items: center; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: block; visibility: hidden; opacity: 0; background: rgba(5, 20, 34, .54); border: 0; transition: opacity .2s ease, visibility .2s ease; }
    body.sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; }
    .app-main { margin-left: 0; }
    .mobile-topbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 8px 16px; color: #fff; background: #102c4c; box-shadow: 0 4px 15px rgba(9, 32, 55, .18); }
    .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #fff; background: rgba(255,255,255,.09); border: 0; border-radius: 10px; cursor: pointer; }
    .nav-toggle svg { width: 23px; height: 23px; fill: currentColor; }
    .mobile-brand { display: flex; align-items: center; gap: 9px; color: #fff; }
    .mobile-brand:hover { text-decoration: none; }
    .mobile-brand img { width: 62px; height: 36px; padding: 2px 4px; object-fit: contain; background: #fff; border-radius: 7px; }
    .mobile-brand span { display: flex; flex-direction: column; line-height: 1.15; }
    .mobile-brand strong { font-size: .92rem; }
    .mobile-brand small { margin-top: 3px; color: #aac1d5; font-size: .7rem; }
    .container { width: min(100% - 28px, 1480px); padding-top: 22px; }
}

@media (max-width: 760px) {
    .stats, .dashboard-stats, .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .page-head, .card-title-row { flex-direction: column; }
    .definition-list { grid-template-columns: 1fr; }
    .definition-list dd { margin-bottom: 8px; }
    .import-mode-options { grid-template-columns: 1fr; }
    .note-cell { min-width: 220px; }
    .institution-hero { grid-template-columns: 120px minmax(0, 1fr); gap: 15px; min-height: auto; padding: 20px; }
    .institution-hero-logo { width: 112px; height: 68px; padding: 4px 7px; border-width: 2px; }
    .institution-hero h1 { font-size: 1.45rem; }
    .institution-meta { flex-direction: column; gap: 3px; }
    .institution-hero-copy .muted { display: none; }
    .institution-hero-actions { flex-direction: column; }
    .dashboard-date { white-space: normal; }
    .stat { min-height: 96px; }
    .progress-card-head { align-items: flex-start; }
}

@media (max-width: 480px) {
    .sidebar { width: min(88vw, 310px); }
    .sidebar-brand { min-height: 96px; padding: 16px 14px; }
    .sidebar-logo { width: 76px; height: 44px; flex-basis: 76px; }
    .container { width: min(100% - 18px, 1480px); padding-top: 16px; }
    .institution-hero { grid-template-columns: 1fr; text-align: center; }
    .institution-hero-logo { margin: auto; }
    .institution-meta { align-items: center; }
    .institution-hero-actions .btn { width: 100%; }
}

@media print {
    .sidebar, .mobile-topbar, .actions, .filters, .no-print, .alert { display: none !important; }
    .app-main { margin-left: 0; }
    body, html { background: #fff; }
    .container { width: 100%; margin: 0; padding: 0; }
    .institution-hero { color: #000; background: #fff; border: 1px solid #999; box-shadow: none; }
    .institution-hero h1, .institution-hero .kicker, .institution-hero .muted, .institution-meta { color: #000; }
    .institution-hero-actions { display: none; }
    .card, .stat, .table-wrap { box-shadow: none; border-color: #999; }
    a { color: #000; text-decoration: none; }
}

/* Ajustes de densidad visual y centrado institucional */
.login-logo { display: flex; flex-direction: column; align-items: center; width: 100%; }
.login-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(250px, 78%);
    min-height: 108px;
    margin: 0 auto 14px;
    padding: 9px 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}
.login-logo-frame img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    object-position: center;
}
/* Neutraliza la regla anterior del logo para que el marco controle el centrado. */
.login-logo > img { display: none; }

.compact-data-page .compact-page-head,
.compact-data-page > .page-head { margin-bottom: 10px; }
.compact-data-page .compact-page-head h1,
.compact-data-page .compact-page-head h2 { margin-bottom: 3px; }
.compact-data-page .compact-page-head p { margin: 0; line-height: 1.25; }
.compact-data-page .compact-card { padding: 11px 12px; margin-bottom: 10px; border-radius: 12px; }
.compact-data-page .compact-card > h2 { margin-bottom: 8px; font-size: 1.08rem; }
.compact-data-page .grid-2 { gap: 10px; }
.compact-data-page .definition-list { grid-template-columns: 145px 1fr; gap: 4px 11px; font-size: .84rem; line-height: 1.2; }
.compact-data-page .definition-list dt,
.compact-data-page .definition-list dd { padding: 1px 0; }
.compact-data-page .group-summary { gap: 5px; margin: -1px 0 8px; }
.compact-data-page .group-summary span { padding: 3px 7px; font-size: .74rem; }
.compact-data-page .table-wrap { border-radius: 8px; }
.compact-data-page .ultra-compact-table { table-layout: auto; font-size: .75rem; }
.compact-data-page .ultra-compact-table th,
.compact-data-page .ultra-compact-table td { padding: 2px 4px; line-height: 1.08; }
.compact-data-page .ultra-compact-table th { font-size: .68rem; letter-spacing: .02em; }
.compact-data-page .ultra-compact-table td:nth-child(1) { width: 54px; }
.compact-data-page .ultra-compact-table td:nth-child(3) { width: 52px; }
.compact-data-page .ultra-compact-table .check-cell { width: 48px; }
.compact-data-page .ultra-compact-table .state-check { width: 15px; height: 15px; }
.compact-data-page .ultra-compact-table .note-cell { min-width: 210px; }
.compact-data-page .ultra-compact-table .note-editor { gap: 3px; }
.compact-data-page .ultra-compact-table .note-cell textarea {
    min-height: 25px;
    height: 25px;
    padding: 3px 5px;
    font-size: .72rem;
    line-height: 1.05;
    border-radius: 6px;
}
.compact-data-page .ultra-compact-table .note-editor .btn {
    min-height: 25px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: .68rem;
}
.compact-data-page .ultra-compact-table .save-cell { width: 72px; }
.compact-data-page .ultra-compact-table .save-status { font-size: .68rem; }
.compact-data-page .ultra-compact-table .item-meta { margin-top: 0; font-size: .6rem; line-height: 1; }
.compact-data-page .assignment-list-card .page-head { margin-bottom: 7px; }
.compact-data-page .assignment-list-card h2 { margin-bottom: 2px; }
.compact-data-page .assignment-list-card p { margin: 0; }

.visado-page .visado-stats { gap: 8px; margin-bottom: 10px; }
.visado-page .visado-stats .stat { min-height: 72px; padding: 9px 11px; border-radius: 11px; }
.visado-page .visado-stats .stat-label { font-size: .71rem; }
.visado-page .visado-stats .stat-value { font-size: 1.35rem; }
.visado-page .filters h2 { margin-bottom: 7px; }
.visado-page .filters .form-grid { gap: 8px 10px; }
.visado-page .filters .field label { margin-bottom: 3px; font-size: .73rem; }
.visado-page .filters input,
.visado-page .filters select { min-height: 34px; padding: 6px 8px; font-size: .8rem; }
.visado-page .filters .actions { margin-top: 9px; }
.visado-page .visado-layout { grid-template-columns: minmax(235px, 290px) minmax(0, 1fr); gap: 10px; }
.visado-page .visado-groups { top: 12px; max-height: calc(100vh - 24px); }
.visado-page .group-list { gap: 4px; max-height: calc(100vh - 145px); }
.visado-page .group-progress { padding: 6px 8px; border-radius: 7px; }
.visado-page .group-progress-title { font-size: .8rem; line-height: 1.1; }
.visado-page .group-progress-meta,
.visado-page .group-progress-numbers { margin-top: 1px; font-size: .68rem; line-height: 1.08; }
.visado-page .progress-track { margin-top: 4px; height: 4px; }
.visado-page .visado-detail > .page-head { margin-bottom: 7px; }
.visado-page .visado-detail > .page-head h2 { margin-bottom: 2px; }
.visado-page .visado-detail > .page-head p { margin: 0; }

.group-detail-page .history-card table { font-size: .76rem; }
.group-detail-page .history-card th,
.group-detail-page .history-card td { padding: 4px 6px; line-height: 1.15; }

@media (max-width: 1050px) {
    .visado-page .visado-layout { grid-template-columns: 1fr; }
    .visado-page .group-list { max-height: 230px; }
}

@media (max-width: 760px) {
    .compact-data-page .definition-list { grid-template-columns: 115px 1fr; }
    .compact-data-page .ultra-compact-table { font-size: .72rem; }
    .compact-data-page .ultra-compact-table .note-cell { min-width: 185px; }
}

/* Ajuste fino solicitado: más registros por pantalla y un poco más de ancho útil */
.wide-density-page {
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
}

/* Login: centrar mejor el logo y estabilizar el marco */
.container-narrow .login-logo {
    margin-inline: auto;
}
.container-narrow .login-logo-frame {
    display: grid;
    place-items: center;
    width: min(255px, 100%);
    min-height: 104px;
    margin: 0 auto 12px;
    padding: 10px 14px;
}
.container-narrow .login-logo-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 82px;
    margin: 0 auto;
}

/* Densidad extra para visado y ficha de grupo */
.compact-data-page.wide-density-page .page-head,
.compact-data-page.wide-density-page .compact-page-head,
.compact-data-page.wide-density-page > .page-head {
    margin-bottom: 8px;
}
.compact-data-page.wide-density-page .compact-card {
    padding: 9px 10px;
    margin-bottom: 8px;
}
.compact-data-page.wide-density-page .compact-card > h2 {
    margin-bottom: 6px;
    font-size: 1rem;
}
.compact-data-page.wide-density-page .definition-list {
    grid-template-columns: 136px 1fr;
    gap: 2px 9px;
    font-size: .81rem;
    line-height: 1.12;
}
.compact-data-page.wide-density-page .group-summary {
    gap: 4px;
    margin: -1px 0 6px;
}
.compact-data-page.wide-density-page .group-summary span {
    padding: 2px 6px;
    font-size: .71rem;
}

.compact-data-page.wide-density-page .dense-assignment-table {
    table-layout: auto;
    font-size: .73rem;
}
.compact-data-page.wide-density-page .dense-assignment-table th,
.compact-data-page.wide-density-page .dense-assignment-table td {
    padding: 1px 4px;
    line-height: 1.02;
    vertical-align: middle;
}
.compact-data-page.wide-density-page .dense-assignment-table th {
    font-size: .66rem;
    letter-spacing: .02em;
}
.compact-data-page.wide-density-page .dense-assignment-table td:nth-child(1) {
    width: 48px;
    white-space: nowrap;
}
.compact-data-page.wide-density-page .dense-assignment-table td:nth-child(3) {
    width: 46px;
    white-space: nowrap;
}
.compact-data-page.wide-density-page .dense-assignment-table .check-cell {
    width: 38px;
    text-align: center;
}
.compact-data-page.wide-density-page .dense-assignment-table .state-check {
    width: 14px;
    height: 14px;
    margin: 0;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-cell {
    min-width: 185px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-editor {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 4px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-cell textarea {
    min-height: 22px;
    height: 22px;
    padding: 2px 5px;
    font-size: .69rem;
    line-height: 1;
    resize: none;
    overflow-y: auto;
    border-radius: 5px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-editor .btn {
    min-height: 22px;
    padding: 2px 6px;
    font-size: .65rem;
    line-height: 1;
    border-radius: 5px;
    white-space: nowrap;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-cell {
    width: 60px;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-status {
    font-size: .62rem;
    white-space: nowrap;
}
.compact-data-page.wide-density-page .dense-assignment-table .item-meta {
    display: none;
}
.compact-data-page.wide-density-page .dense-assignment-table td strong {
    font-size: .73rem;
    line-height: 1.02;
}
.compact-data-page.wide-density-page .assignment-list-card .page-head {
    margin-bottom: 6px;
}
.compact-data-page.wide-density-page .assignment-list-card .muted.small {
    font-size: .76rem;
}

.visado-page.wide-density-page .visado-stats {
    gap: 7px;
    margin-bottom: 8px;
}
.visado-page.wide-density-page .visado-stats .stat {
    min-height: 66px;
    padding: 8px 10px;
}
.visado-page.wide-density-page .filters .form-grid {
    gap: 7px 8px;
}
.visado-page.wide-density-page .filters input,
.visado-page.wide-density-page .filters select {
    min-height: 31px;
    padding: 5px 7px;
    font-size: .78rem;
}
.visado-page.wide-density-page .visado-layout {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 8px;
}
.visado-page.wide-density-page .visado-groups {
    top: 10px;
    max-height: calc(100vh - 20px);
}
.visado-page.wide-density-page .group-list {
    gap: 3px;
    max-height: calc(100vh - 132px);
}
.visado-page.wide-density-page .group-progress {
    padding: 5px 7px;
}
.visado-page.wide-density-page .group-progress-title {
    font-size: .76rem;
}
.visado-page.wide-density-page .group-progress-meta,
.visado-page.wide-density-page .group-progress-numbers {
    font-size: .66rem;
    line-height: 1.04;
}

.group-detail-page.wide-density-page .history-card table {
    font-size: .72rem;
}
.group-detail-page.wide-density-page .history-card th,
.group-detail-page.wide-density-page .history-card td {
    padding: 3px 5px;
    line-height: 1.08;
}

@media (max-width: 1050px) {
    .wide-density-page {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .visado-page.wide-density-page .visado-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .compact-data-page.wide-density-page .definition-list {
        grid-template-columns: 108px 1fr;
    }
    .compact-data-page.wide-density-page .dense-assignment-table {
        font-size: .71rem;
    }
    .compact-data-page.wide-density-page .dense-assignment-table .note-cell {
        min-width: 170px;
    }
}

/* Filtros rápidos del módulo Visado */
.visado-page .stat-filter {
    cursor: pointer;
    user-select: none;
}
.visado-page .stat-filter:hover {
    text-decoration: none;
}
.visado-page .stat-filter.filter-active {
    border-color: #5f93bf;
    box-shadow: 0 0 0 2px rgba(21,90,156,.15), var(--shadow-soft);
    transform: translateY(-1px);
}
.visado-page .stat-filter.filter-active::before {
    content: "Filtro activo";
    position: absolute;
    right: 8px;
    bottom: 5px;
    color: var(--primary);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.visado-page .progress-filter {
    cursor: pointer;
}

/* Mayor aprovechamiento horizontal en Visado y ficha del grupo */
.wide-density-page {
    width: calc(100% + 64px);
    margin-left: -32px;
    margin-right: -32px;
}

/* Filas todavía más compactas */
.compact-data-page.wide-density-page .assignment-list-card {
    padding: 7px 8px;
}
.compact-data-page.wide-density-page .assignment-list-card .page-head {
    margin-bottom: 4px;
}
.compact-data-page.wide-density-page .dense-assignment-table {
    font-size: .7rem;
}
.compact-data-page.wide-density-page .dense-assignment-table thead tr {
    height: 22px;
}
.compact-data-page.wide-density-page .dense-assignment-table tbody tr {
    height: 24px;
}
.compact-data-page.wide-density-page .dense-assignment-table th,
.compact-data-page.wide-density-page .dense-assignment-table td {
    padding: 0 3px;
    line-height: 1;
}
.compact-data-page.wide-density-page .dense-assignment-table th {
    font-size: .63rem;
}
.compact-data-page.wide-density-page .dense-assignment-table td strong {
    display: block;
    overflow: hidden;
    font-size: .7rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compact-data-page.wide-density-page .dense-assignment-table td:nth-child(1) {
    width: 44px;
}
.compact-data-page.wide-density-page .dense-assignment-table td:nth-child(3) {
    width: 42px;
}
.compact-data-page.wide-density-page .dense-assignment-table .check-cell {
    width: 34px;
    padding-inline: 1px;
}
.compact-data-page.wide-density-page .dense-assignment-table .state-check {
    width: 13px;
    height: 13px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-cell {
    min-width: 170px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-editor {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 3px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-input {
    width: 100%;
    min-height: 19px;
    height: 19px;
    margin: 0;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: .66rem;
    line-height: 1;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-editor .btn {
    min-height: 19px;
    height: 19px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .61rem;
    line-height: 1;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-cell {
    width: 54px;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-status {
    font-size: .58rem;
}

/* Ajuste del lateral de grupos para entregar más ancho a la tabla */
.visado-page.wide-density-page .visado-layout {
    grid-template-columns: minmax(195px, 225px) minmax(0, 1fr);
    gap: 7px;
}
.visado-page.wide-density-page .group-progress {
    padding: 4px 6px;
}
.visado-page.wide-density-page .group-progress-title {
    font-size: .73rem;
}
.visado-page.wide-density-page .group-progress-meta,
.visado-page.wide-density-page .group-progress-numbers {
    font-size: .63rem;
}

@media (max-width: 1050px) {
    .wide-density-page {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Autoguardado: ya no existe botón Guardar */
.compact-data-page.wide-density-page .dense-assignment-table .note-editor {
    display: block;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-input {
    width: 100%;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-cell {
    width: 58px;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-status {
    font-size: .61rem;
}

/* Login institucional inspirado en el sistema de Exámenes */
.auth-body {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #123b66 0%, #165487 45%, #1d65a2 100%);
}
.auth-body::before {
    content: "";
    position: fixed;
    z-index: 0;
    right: -7vw;
    bottom: -24vh;
    width: 62vw;
    height: 118vh;
    background: #f2f5f9;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: -20px -20px 55px rgba(8, 38, 68, .08);
}
.auth-body::after {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 42% 38%, rgba(255,255,255,.07), transparent 30%),
        linear-gradient(115deg, rgba(0,0,0,.08), transparent 42%);
}
.auth-body .container-narrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 30px 20px;
}
.login-reference-card {
    width: min(455px, 100%);
    padding: 36px 36px 34px;
    border: 1px solid rgba(218, 226, 236, .95);
    border-radius: 26px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 28px 70px rgba(4, 33, 61, .28);
    backdrop-filter: blur(8px);
}
.login-reference-logo {
    display: grid;
    place-items: center;
    width: 184px;
    height: 120px;
    margin: 0 auto 26px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e7ebf1;
    box-shadow: 0 12px 28px rgba(13, 49, 82, .15);
}
.login-reference-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.login-reference-heading {
    text-align: center;
    margin-bottom: 26px;
}
.login-reference-heading h1 {
    margin: 0;
    color: #081d36;
    font-size: clamp(1.5rem, 2.4vw, 1.82rem);
    line-height: 1.25;
    letter-spacing: -.025em;
}
.login-reference-heading p {
    margin: 15px 0 0;
    color: #49627d;
    font-size: .92rem;
    line-height: 1.4;
}
.login-reference-form {
    display: grid;
    gap: 18px;
}
.login-reference-form .field label {
    display: block;
    margin-bottom: 7px;
    color: #173657;
    font-size: .82rem;
    font-weight: 700;
}
.login-reference-form input {
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #c6d3e2;
    border-radius: 12px;
    background: #fff;
    font-size: .95rem;
    box-shadow: inset 0 1px 2px rgba(13, 45, 76, .035);
}
.login-reference-form input:focus {
    outline: none;
    border-color: #1b73d2;
    box-shadow: 0 0 0 4px rgba(27, 115, 210, .16);
}
.login-reference-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border-radius: 12px;
    border-color: #1163c5;
    background: linear-gradient(180deg, #1c73df 0%, #0d5cc3 100%);
    box-shadow: 0 9px 20px rgba(16, 94, 191, .2);
    font-weight: 800;
}
.login-reference-submit:hover {
    background: linear-gradient(180deg, #176bd2 0%, #0a52b2 100%);
    text-decoration: none;
}
.login-reference-alert {
    margin: -5px 0 20px;
    border-radius: 10px;
    font-size: .85rem;
}

@media (max-width: 720px) {
    .auth-body {
        overflow-y: auto;
    }
    .auth-body::before {
        right: -45vw;
        bottom: -42vh;
        width: 115vw;
        height: 105vh;
    }
    .auth-body .container-narrow {
        padding: 20px 14px;
    }
    .login-reference-card {
        padding: 28px 22px 26px;
        border-radius: 21px;
    }
    .login-reference-logo {
        width: 165px;
        height: 106px;
        margin-bottom: 22px;
    }
}

@media (max-height: 700px) and (min-width: 721px) {
    .auth-body .container-narrow {
        padding-block: 16px;
    }
    .login-reference-card {
        padding-block: 24px;
    }
    .login-reference-logo {
        width: 155px;
        height: 96px;
        margin-bottom: 18px;
    }
    .login-reference-heading {
        margin-bottom: 18px;
    }
    .login-reference-form {
        gap: 13px;
    }
}

/* Ajuste final de legibilidad: filas de asignaturas menos apretadas */
.compact-data-page.wide-density-page .dense-assignment-table {
    font-size: .78rem;
}
.compact-data-page.wide-density-page .dense-assignment-table thead tr {
    height: 29px;
}
.compact-data-page.wide-density-page .dense-assignment-table tbody tr {
    height: 35px;
}
.compact-data-page.wide-density-page .dense-assignment-table th,
.compact-data-page.wide-density-page .dense-assignment-table td {
    padding: 4px 5px;
    line-height: 1.18;
}
.compact-data-page.wide-density-page .dense-assignment-table th {
    font-size: .7rem;
}
.compact-data-page.wide-density-page .dense-assignment-table td strong {
    display: block;
    overflow: visible;
    font-size: .78rem;
    line-height: 1.16;
    text-overflow: clip;
    white-space: normal;
}
.compact-data-page.wide-density-page .dense-assignment-table .state-check {
    width: 15px;
    height: 15px;
}
.compact-data-page.wide-density-page .dense-assignment-table .note-input {
    min-height: 26px;
    height: 26px;
    padding: 3px 6px;
    font-size: .73rem;
    line-height: 1.15;
    border-radius: 5px;
}
.compact-data-page.wide-density-page .dense-assignment-table .save-status {
    font-size: .65rem;
}

@media (max-width: 760px) {
    .compact-data-page.wide-density-page .dense-assignment-table {
        font-size: .75rem;
    }
    .compact-data-page.wide-density-page .dense-assignment-table td strong {
        font-size: .75rem;
    }
}

/* Acción masiva de visado para el grupo abierto */
.group-summary .bulk-visado-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    margin-left: auto;
    padding: 4px 9px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid #b8d1e8;
    border-radius: 9px;
    cursor: pointer;
    user-select: none;
}
.group-summary .bulk-visado-toggle:hover {
    border-color: #7fa9cd;
    background: #deedf9;
}
.group-summary .bulk-visado-toggle .state-check {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
}
.group-summary .bulk-visado-toggle strong {
    font-size: .76rem;
    white-space: nowrap;
}
.group-summary .bulk-visado-toggle small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 650;
    white-space: nowrap;
}
.group-summary .bulk-visado-toggle .bulk-visado-status.saving {
    color: var(--warning);
}
.group-summary .bulk-visado-toggle .bulk-visado-status.saved {
    color: var(--success);
}
.group-summary .bulk-visado-toggle .bulk-visado-status.error {
    color: var(--danger);
}
.group-summary .bulk-visado-toggle:has(input:disabled) {
    cursor: wait;
    opacity: .72;
}

@media (max-width: 760px) {
    .group-summary .bulk-visado-toggle {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}
