/* ============================================================
   Lycée D'orient — Modern Responsive Design System
   All pages inherit from Site.Master + this stylesheet
   ============================================================ */

:root {
    --lo-navy: #2B579A;
    --lo-navy-dark: #1e3d6e;
    --lo-navy-light: #3359A1;
    --lo-gold: #C5A040;
    --lo-gold-light: #D4AF37;
    --lo-orange: #D4922A;
    --lo-orange-light: #E8A84A;
    --lo-burgundy: #C5A040;
    --lo-burgundy-light: #D4AF37;
    --lo-danger: #9b1c1c;
    --lo-danger-light: #c62828;
    --lo-green: #2D6A4F;
    --lo-white: #FFFFFF;
    --lo-bg: #f0f2f8;
    --lo-bg-accent: linear-gradient(160deg, #eef2fa 0%, #f8f6f0 45%, #f0f2f8 100%);
    --lo-surface: #ffffff;
    --lo-border: #e2e6f0;
    --lo-text: #141428;
    --lo-muted: #6b7089;
    --lo-shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.04), 0 2px 8px rgba(43, 87, 154, 0.06);
    --lo-shadow-md: 0 4px 6px rgba(20, 20, 40, 0.04), 0 12px 32px rgba(43, 87, 154, 0.1);
    --lo-shadow-lg: 0 8px 24px rgba(20, 20, 40, 0.08), 0 24px 48px rgba(43, 87, 154, 0.12);
    --lo-radius-sm: 8px;
    --lo-radius-md: 12px;
    --lo-radius-lg: 16px;
    --lo-radius-full: 9999px;
    --lo-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --lo-header-h: 72px;
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-script: "Brush Script MT", "Segoe Script", cursive;
    --lo-container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--lo-text);
    background: var(--lo-bg);
    background-image: var(--lo-bg-accent);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.lo-app { display: flex; flex-direction: column; min-height: 100vh; }

.lo-main {
    flex: 1;
    width: 100%;
    max-width: var(--lo-container);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
}

.lo-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lo-border);
    box-shadow: var(--lo-shadow-sm);
}

.lo-header-inner {
    max-width: var(--lo-container);
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--lo-header-h);
}

.lo-header-start { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }

.lo-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.lo-brand img {
    height: 52px;
    width: auto;
    filter: none;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    box-sizing: content-box;
}

.lo-brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }

.lo-brand-lycee {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.lo-brand-orient {
    font-family: var(--font-script);
    font-size: 1.55rem;
    color: var(--lo-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lo-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lo-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(46, 49, 146, 0.04);
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-full);
    padding: 0.3rem 0.65rem 0.3rem 0.75rem;
}

.lo-toolbar label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lo-muted);
    white-space: nowrap;
}

.lo-toolbar select {
    border: none;
    background: transparent;
    color: var(--lo-navy);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.2rem 0.35rem;
    cursor: pointer;
    outline: none;
    max-width: 110px;
}

.lo-toolbar select option { color: var(--lo-text); background: var(--lo-white); }

.lo-lang-pills { display: flex; gap: 0.25rem; }

.lo-lang-btn {
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--lo-radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--lo-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: var(--lo-transition);
}

.lo-lang-btn:hover { background: rgba(46, 49, 146, 0.06); color: var(--lo-navy); }

.lo-lang-btn.active {
    background: var(--lo-orange);
    color: var(--lo-white);
    border-color: var(--lo-orange);
    box-shadow: 0 2px 8px rgba(212, 146, 42, 0.35);
}

.lo-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-sm);
    background: rgba(46, 49, 146, 0.04);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 350;
    -webkit-tap-highlight-color: transparent;
}

.lo-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--lo-navy);
    border-radius: 2px;
    margin: 0 auto;
    transition: var(--lo-transition);
}

.lo-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lo-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.lo-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lo-nav {
    background: rgba(26, 29, 92, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(26, 29, 92, 0.2);
    position: sticky;
    top: var(--lo-header-h);
    z-index: 150;
}

.lo-nav-inner {
    max-width: var(--lo-container);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.lo-nav-inner::-webkit-scrollbar { display: none; }

.lo-nav a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--lo-transition);
}

.lo-nav a:hover { color: var(--lo-white); background: rgba(255, 255, 255, 0.08); }

.lo-nav a.active {
    color: var(--lo-white);
    border-bottom-color: var(--lo-orange-light);
    background: rgba(212, 146, 42, 0.42);
}

.lo-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.lo-page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lo-page-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lo-page-header-row .lo-page-title {
    margin: 0;
}

.lo-page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--lo-navy);
    margin: 0;
    line-height: 1.2;
}

.lo-page-title-link,
.lo-page-title-link:visited {
    color: inherit;
    text-decoration: none;
}

.lo-page-title-link:hover {
    text-decoration: underline;
}

.lo-page-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lo-muted);
    margin-top: 0.35rem;
}

.lo-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.lo-card {
    background: var(--lo-surface);
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-lg);
    padding: clamp(1.15rem, 3vw, 1.75rem);
    box-shadow: var(--lo-shadow-sm);
    transition: box-shadow var(--lo-transition);
}

.lo-card:hover { box-shadow: var(--lo-shadow-md); }
.lo-card.lo-mb { margin-bottom: 1.25rem; }

.lo-section-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lo-navy);
    margin: 0 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--lo-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lo-section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    background: var(--lo-burgundy);
    border-radius: 2px;
    flex-shrink: 0;
}

.lo-panel-add {
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.03) 0%, rgba(128, 0, 0, 0.02) 100%);
    border: 1px dashed rgba(46, 49, 146, 0.2);
    border-radius: var(--lo-radius-lg);
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.25rem;
}

.lo-steps { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.lo-step {
    flex: 1;
    min-width: min(100%, 220px);
    padding: 0.85rem 1.15rem;
    border-radius: var(--lo-radius-md);
    background: var(--lo-surface);
    border: 1px solid var(--lo-border);
    color: var(--lo-muted);
    font-weight: 600;
    font-size: 0.8125rem;
    box-shadow: var(--lo-shadow-sm);
    position: relative;
    overflow: hidden;
}

.lo-step::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--lo-border);
}

.lo-step.active {
    background: var(--lo-navy);
    color: var(--lo-white);
    border-color: var(--lo-navy);
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.3);
}

.lo-step.active::before { background: var(--lo-burgundy); }

.lo-step.done {
    background: rgba(45, 106, 79, 0.06);
    color: var(--lo-green);
    border-color: rgba(45, 106, 79, 0.25);
}

.lo-step.done::before { background: var(--lo-green); }

.lo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
}

.lo-form-grid .lo-form-group.full-width { grid-column: 1 / -1; }

.lo-form-group { margin-bottom: 1.15rem; }

.lo-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--lo-navy);
    margin-bottom: 0.4rem;
}

.lo-form-group input,
.lo-form-group select,
.lo-form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--lo-border);
    border-radius: var(--lo-radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--lo-text);
    background: var(--lo-surface);
    transition: border-color var(--lo-transition), box-shadow var(--lo-transition);
}

.lo-form-group input:focus,
.lo-form-group select:focus,
.lo-form-group textarea:focus {
    outline: none;
    border-color: var(--lo-navy);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
}

.lo-form-group textarea { resize: vertical; min-height: 88px; }

.lo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.35rem;
    border: none;
    border-radius: var(--lo-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: none;
    transition: var(--lo-transition);
    white-space: nowrap;
}

.lo-btn-primary {
    background: linear-gradient(135deg, var(--lo-navy) 0%, var(--lo-navy-dark) 100%);
    color: var(--lo-white);
    box-shadow: 0 2px 8px rgba(46, 49, 146, 0.3);
}

.lo-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(46, 49, 146, 0.35);
}

.lo-btn-accent {
    background: linear-gradient(135deg, var(--lo-burgundy) 0%, var(--lo-burgundy-light) 100%);
    color: var(--lo-white);
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.25);
}

.lo-btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.35);
}

.lo-btn-outline {
    background: var(--lo-surface);
    color: var(--lo-navy);
    border: 1.5px solid var(--lo-border);
}

.lo-btn-outline:hover {
    border-color: var(--lo-navy);
    background: rgba(46, 49, 146, 0.04);
}

.lo-btn-muted {
    opacity: 0.55;
}

.lo-btn-muted:hover {
    border-color: var(--lo-border);
    background: var(--lo-surface);
    transform: none;
}

.lo-btn-danger {
    background: linear-gradient(135deg, var(--lo-danger-light) 0%, var(--lo-danger) 100%);
    color: var(--lo-white);
    border: none;
}

.lo-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.35);
}

.lo-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
}

.lo-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lo-border);
}

.lo-alert {
    padding: 0.9rem 1.15rem;
    border-radius: var(--lo-radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lo-alert-success { background: rgba(45, 106, 79, 0.08); color: var(--lo-green); border: 1px solid rgba(45, 106, 79, 0.2); }
.lo-alert-error { background: rgba(155, 28, 28, 0.06); color: var(--lo-danger); border: 1px solid rgba(155, 28, 28, 0.15); }
.lo-alert-info { background: rgba(46, 49, 146, 0.06); color: var(--lo-navy); border: 1px solid rgba(46, 49, 146, 0.15); }
.lo-alert-warning { background: rgba(180, 120, 0, 0.08); color: #8a5a00; border: 1px solid rgba(180, 120, 0, 0.25); }

.lo-placeholder { color: var(--lo-muted); font-style: italic; }

.lo-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--lo-radius-md);
    border: 1px solid var(--lo-border);
}

.lo-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 520px; }

.lo-table th, .lo-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--lo-border);
    text-align: left;
}

.lo-table th {
    background: rgba(46, 49, 146, 0.05);
    color: var(--lo-navy);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lo-table-sortable th a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.lo-table-sortable th a:hover {
    color: var(--lo-burgundy);
}

.lo-table-sortable th.lo-sort-asc a::after,
.lo-table-sortable th.lo-sort-desc a::after {
    display: inline-block;
    margin-inline-start: 0.35rem;
    vertical-align: middle;
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.lo-table-sortable th.lo-sort-asc a::after {
    border-bottom: 5px solid var(--lo-navy);
}

.lo-table-sortable th.lo-sort-desc a::after {
    border-top: 5px solid var(--lo-navy);
}

.lo-table tbody tr:hover { background: rgba(46, 49, 146, 0.03); }
.lo-table tbody tr:last-child td { border-bottom: none; }
.lo-table tfoot td,
.lo-table .lo-table-footer-row td {
    font-weight: 700;
    color: var(--lo-navy);
    border-top: 2px solid var(--lo-border);
    background: rgba(46, 49, 146, 0.04);
}

.lo-filterable-table {
    min-width: 1180px;
}

.lo-filterable-table th {
    min-width: 7.5rem;
    vertical-align: bottom;
    white-space: normal;
}

.lo-filterable-table th:nth-child(2),
.lo-filterable-table th:nth-child(4),
.lo-filterable-table th:nth-child(6),
.lo-filterable-table th:nth-child(7) {
    min-width: 9.5rem;
}

.lo-filterable-table th:nth-child(1),
.lo-filterable-table th:nth-child(3),
.lo-filterable-table th:nth-child(5),
.lo-filterable-table th:nth-child(8),
.lo-filterable-table th:nth-child(9),
.lo-filterable-table th:nth-child(10),
.lo-filterable-table th:nth-child(11) {
    min-width: 6.5rem;
}

.lo-hod-column-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 5.75rem;
}

.lo-hod-column-headline {
    display: flex;
    align-items: center;
    min-width: 0;
}

.lo-hod-column-label {
    color: inherit;
    font: inherit;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.lo-hod-column-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex: 0 0 auto;
}

.lo-hod-sort-btn,
.lo-hod-search-btn,
.lo-hod-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--lo-navy);
    background: transparent;
    cursor: pointer;
    transition: var(--lo-transition);
}

.lo-hod-sort-btn:hover,
.lo-hod-search-btn:hover,
.lo-hod-filter-clear:hover,
.lo-hod-column-header.is-filter-open .lo-hod-search-btn,
.lo-hod-column-header.has-filter .lo-hod-search-btn {
    color: var(--lo-burgundy);
    background: #fff;
    border-color: rgba(46, 49, 146, 0.18);
    box-shadow: 0 8px 18px rgba(46, 49, 146, 0.12);
}

.lo-hod-sort-btn svg,
.lo-hod-search-btn svg,
.lo-hod-filter-clear svg {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.lo-hod-sort-btn[data-sort-dir="asc"] svg .lo-hod-sort-down,
.lo-hod-sort-btn[data-sort-dir="desc"] svg .lo-hod-sort-up {
    opacity: 0.25;
}

.lo-hod-column-filter-shell {
    position: absolute;
    z-index: 8;
    top: calc(100% + 0.45rem);
    left: 0;
    display: none;
    align-items: center;
    gap: 0.35rem;
    width: min(16rem, 72vw);
    padding: 0.35rem;
    border: 1px solid rgba(46, 49, 146, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(21, 31, 62, 0.18);
    backdrop-filter: blur(10px);
}

.lo-hod-column-header.is-filter-open .lo-hod-column-filter-shell {
    display: flex;
}

.lo-hod-column-filter {
    width: 100%;
    min-width: 5.5rem;
    height: 2rem;
    padding: 0.3rem 0.55rem;
    border: 0;
    border-radius: 9px;
    background: rgba(46, 49, 146, 0.06);
    color: var(--lo-text);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.lo-hod-column-filter:focus {
    outline: 2px solid rgba(43, 87, 154, 0.16);
    background: #fff;
}

.lo-hod-filter-clear {
    width: 2rem;
    height: 2rem;
    color: var(--lo-muted);
}

.lo-hod-table-empty-filter td {
    color: var(--lo-muted);
    font-style: italic;
}

.lo-class-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--lo-border);
    flex-wrap: wrap;
}

.lo-class-row:last-child { border-bottom: none; }

.lo-class-names { font-weight: 700; font-size: 1rem; color: var(--lo-navy); margin-bottom: 0.5rem; }

.lo-section-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.lo-section-checklist { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.35rem; }
.lo-section-checklist label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; }
.lo-classes-filters { align-items: end; }

.lo-classes-roster-wrap { overflow-x: auto; }

/* Class accordion panels */
.lo-class-panels {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.lo-export-hint { margin-top: 0.35rem; font-size: 0.84rem; }

.lo-class-panel {
    overflow: hidden;
    margin-bottom: 0;
}
.lo-class-panel-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    flex-wrap: wrap;
}
.lo-class-panel-toggle::-webkit-details-marker { display: none; }
.lo-class-export-check {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--lo-navy);
}
.lo-class-panel-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lo-navy);
    flex: 1;
    min-width: 8rem;
}
.lo-class-panel-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lo-muted);
    min-width: 2rem;
}
.lo-class-panel-chevron {
    margin-inline-start: auto;
}

.lo-section-dropdown {
    position: relative;
    flex-shrink: 0;
}
.lo-section-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--lo-border, #dde3ef);
    border-radius: var(--lo-radius-full, 999px);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lo-navy);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lo-section-dropdown-btn:hover,
.lo-section-dropdown-btn[aria-expanded="true"] {
    border-color: var(--lo-navy);
    box-shadow: 0 0 0 2px rgba(26, 29, 92, 0.08);
}
.lo-section-dropdown-label { color: var(--lo-muted); font-weight: 600; }
.lo-section-dropdown-summary { color: var(--lo-navy); font-weight: 700; }
.lo-section-dropdown-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--lo-navy);
    border-bottom: 2px solid var(--lo-navy);
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.15s;
}
.lo-section-dropdown-btn[aria-expanded="true"] .lo-section-dropdown-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.lo-section-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline-end: 0;
    z-index: 40;
    min-width: 10rem;
    padding: 0.5rem;
    border: 1px solid var(--lo-border, #dde3ef);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 29, 92, 0.12);
}
.lo-section-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.lo-section-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--lo-navy);
    cursor: pointer;
    transition: background 0.12s;
}
.lo-section-dropdown-item:hover { background: #f1f5f9; }
.lo-section-dropdown-item input {
    margin: 0;
    accent-color: var(--lo-navy);
    flex-shrink: 0;
}

.lo-class-panel-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--lo-border, #e8edf5);
}
.lo-class-panel[open] .lo-class-panel-chevron { transform: rotate(-135deg); }
.lo-class-panel .lo-class-panel-body .lo-placeholder { margin-top: 0.75rem; }

.lo-sortable-th {
    cursor: pointer;
    user-select: none;
}
.lo-sortable-th:hover { color: var(--lo-navy); }
.lo-sortable-th.lo-sort-asc::after,
.lo-sortable-th.lo-sort-desc::after {
    content: '';
    display: inline-block;
    margin-inline-start: 0.35rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    vertical-align: middle;
}
.lo-sortable-th.lo-sort-asc::after { border-bottom: 5px solid var(--lo-navy); }
.lo-sortable-th.lo-sort-desc::after { border-top: 5px solid var(--lo-navy); }

@media (max-width: 720px) {
    .lo-class-panel-toggle { gap: 0.55rem; }
    .lo-section-dropdown { width: 100%; order: 4; }
    .lo-section-dropdown-btn { width: 100%; justify-content: space-between; }
    .lo-section-dropdown-menu { inset-inline: 0; }
}
.lo-classes-roster th { white-space: nowrap; position: relative; padding-right: 1.75rem; }
.lo-col-hide-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.25rem;
    border: none;
    background: transparent;
    color: var(--lo-muted);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.1rem 0.25rem;
}
.lo-col-hide-btn:hover { color: var(--lo-danger, #c0392b); }
.lo-offered-classes-list { margin-top: 1rem; }

.lo-section-tag {
    padding: 0.25rem 0.65rem;
    background: rgba(46, 49, 146, 0.08);
    color: var(--lo-navy);
    border-radius: var(--lo-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.lo-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--lo-radius-full);
    border: none;
    background: linear-gradient(135deg, var(--lo-burgundy) 0%, var(--lo-burgundy-light) 100%);
    color: var(--lo-white);
    font-size: 1.35rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.25);
    transition: var(--lo-transition);
    flex-shrink: 0;
}

.lo-icon-btn:hover { transform: scale(1.06); }

.lo-footer {
    text-align: center;
    padding: 1.25rem;
    color: var(--lo-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--lo-border);
    background: rgba(255, 255, 255, 0.6);
}

/* Sign-in page styles live in Content/Login.css */

.lo-mt { margin-top: 0.75rem; }
.lo-mb { margin-bottom: 1.25rem; }
.lo-text-muted { color: var(--lo-muted); }

@media (max-width: 1024px) {
    .lo-form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) {
    :root { --lo-header-h: 64px; }
    .lo-header-inner { padding: 0.5rem 1rem; flex-wrap: wrap; }
    .lo-nav-toggle { display: flex; }
    .lo-header-start { position: relative; z-index: 350; }
    .lo-brand img { height: 44px; }
    .lo-toolbar {
        width: 100%;
        order: 3;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.35rem;
        border-top: 1px solid var(--lo-border);
    }
    .lo-toolbar label { display: none; }
    .lo-lang-btn { min-width: 3.5rem; font-size: 0.75rem; }
    .lo-nav {
        position: fixed;
        inset: 0;
        z-index: 300;
        background: rgba(20, 20, 40, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--lo-transition), visibility var(--lo-transition);
        border: none;
    }
    .lo-nav.is-open { opacity: 1; visibility: visible; }
    .lo-nav-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: min(300px, 85vw);
        height: 100%;
        flex-direction: column;
        padding: 4.5rem 0 1.5rem;
        background: var(--lo-navy-dark);
        box-shadow: var(--lo-shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    html[dir="rtl"] .lo-nav-inner { left: auto; right: 0; transform: translateX(100%); }
    .lo-nav.is-open .lo-nav-inner { transform: translateX(0); }
    .lo-nav a { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9375rem; }
    .lo-main { padding: 1rem 1rem 2rem; }
    .lo-page-header, .lo-toolbar-row { flex-direction: column; align-items: stretch; }
    .lo-page-header .lo-btn, .lo-toolbar-row .lo-btn { width: 100%; }
    .lo-actions { flex-direction: column; }
    .lo-actions .lo-btn { width: 100%; }
    .lo-steps { flex-direction: column; }
    .lo-class-row { flex-direction: column; align-items: flex-start; }
}

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .lo-header-inner,
html[dir="rtl"] .lo-toolbar,
html[dir="rtl"] .lo-page-header,
html[dir="rtl"] .lo-toolbar-row,
html[dir="rtl"] .lo-class-row { flex-direction: row-reverse; }
html[dir="rtl"] .lo-table th, html[dir="rtl"] .lo-table td { text-align: right; }

/* Admin */
.lo-admin-panels { display: flex; flex-direction: column; gap: 1rem; }

.lo-admin-panel { overflow: hidden; }

.lo-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lo-panel-toggle::-webkit-details-marker { display: none; }

.lo-panel-toggle-text {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lo-navy);
}

.lo-panel-year {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lo-burgundy);
    background: rgba(128, 0, 0, 0.08);
    padding: 0.2rem 0.65rem;
    border-radius: var(--lo-radius-full);
}

.lo-panel-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--lo-navy);
    border-bottom: 2px solid var(--lo-navy);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lo-admin-panel[open] .lo-panel-chevron { transform: rotate(-135deg); }

.lo-panel-body { padding: 0 1.25rem 1.25rem; }

.lo-grade-matrix-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-md);
}

.lo-grade-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 520px;
}

.lo-grade-matrix th,
.lo-grade-matrix td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--lo-border);
    vertical-align: middle;
}

.lo-grade-matrix th {
    background: rgba(46, 49, 146, 0.05);
    color: var(--lo-navy);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lo-grade-matrix-grade {
    width: 140px;
    font-weight: 600;
    color: var(--lo-navy);
    white-space: nowrap;
}

.lo-grade-matrix-cell { min-width: 180px; }

.lo-grade-cell-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lo-grade-check { flex-shrink: 0; width: 18px; height: 18px; cursor: pointer; }
.lo-grade-check-locked { cursor: not-allowed; opacity: 0.65; }
.lo-fee-input { max-width: 120px; }

.lo-account-table .lo-money-col { text-align: right; white-space: nowrap; }
.lo-money-input { width: 110px; text-align: right; padding: 0.45rem 0.6rem; }
.lo-money-input-inline { display: inline-block; }
.lo-percent-input { display: inline-flex; align-items: center; gap: 0.25rem; }
.lo-discount-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    justify-content: flex-end;
}
.lo-discount-mode-list {
    margin: 0;
}
.lo-discount-mode-list td {
    padding: 0 0.35rem 0 0;
    white-space: nowrap;
}
.lo-student-discount-amount,
.lo-parent-discount-amount {
    max-width: 7rem;
}
/* Default to percent mode until JS applies .is-amount-mode from the selected radio. */
.lo-discount-controls:not(.is-amount-mode) .lo-student-discount-amount,
.lo-discount-controls:not(.is-amount-mode) .lo-parent-discount-amount {
    display: none;
}
.lo-discount-controls.is-amount-mode .lo-discount-pct-wrap {
    display: none;
}
html[dir="rtl"] .lo-discount-controls {
    justify-content: flex-start;
}
html[dir="rtl"] .lo-discount-mode-list td {
    padding: 0 0 0 0.35rem;
}
.lo-percent-field { width: 72px; text-align: right; padding: 0.45rem 0.5rem; }
.lo-percent-suffix { color: var(--lo-muted); font-weight: 600; }
.lo-btn-icon { min-width: 44px; font-size: 1.35rem; line-height: 1; padding: 0.45rem 0.75rem; }
.lo-ancillary-add { align-items: end; }
.lo-ancillary-charge-fields { display: contents; }

.lo-ancillary-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lo-actions-col {
    white-space: nowrap;
    text-align: right;
}

.lo-actions-col .lo-btn {
    margin-inline-start: 0.35rem;
}

html[dir="rtl"] .lo-actions-col {
    text-align: left;
}

.lo-account-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.lo-account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    position: sticky;
    top: 1rem;
}

.lo-account-nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: 1px solid transparent;
    border-radius: var(--lo-radius-md);
    background: transparent;
    color: var(--lo-navy);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lo-account-nav-btn:hover {
    background: rgba(26, 29, 92, 0.06);
    border-color: var(--lo-border);
}

.lo-account-nav-btn.is-active {
    background: rgba(128, 0, 0, 0.08);
    border-color: rgba(128, 0, 0, 0.2);
    color: var(--lo-burgundy);
}

.lo-account-nav-btn-archive {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--lo-border);
}

.lo-account-panels .lo-account-panel {
    scroll-margin-top: 1rem;
}

.lo-account-panel-archive .lo-panel-toggle-text {
    color: var(--lo-burgundy);
}

.lo-account-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.lo-account-summary-strip-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lo-account-summary-strip-item span {
    font-size: 0.78rem;
    color: var(--lo-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lo-account-summary-strip-item strong {
    font-size: 1.05rem;
    color: var(--lo-navy);
}

html[dir="rtl"] .lo-account-nav-btn {
    text-align: right;
}

@media (max-width: 960px) {
    .lo-account-layout {
        grid-template-columns: 1fr;
    }

    .lo-account-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lo-account-nav-btn {
        width: auto;
        flex: 1 1 calc(50% - 0.35rem);
    }

    .lo-account-nav-btn-archive {
        margin-top: 0;
        padding-top: 0.65rem;
        border-top: none;
        flex-basis: 100%;
    }

    .lo-account-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.lo-money-due { color: var(--lo-danger); font-weight: 600; }

/* Module dashboard summary cards */
.lo-module-summary { margin-bottom: 1.25rem; }
.lo-module-summary .lo-section-title { margin-bottom: 1rem; }
.lo-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 0.85rem;
}
.lo-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1.1rem;
    border-radius: var(--lo-radius-md);
    background: linear-gradient(145deg, rgba(46, 49, 146, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid var(--lo-border);
    border-inline-start: 3px solid var(--lo-navy);
    min-height: 4.5rem;
}
.lo-stat-card.lo-stat-accent { border-inline-start-color: var(--lo-burgundy); }
.lo-stat-card.lo-stat-success { border-inline-start-color: var(--lo-green); }
.lo-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lo-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}
.lo-stat-value {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 700;
    color: var(--lo-navy);
    line-height: 1.15;
    word-break: break-word;
}
.lo-stat-value.lo-money-due { font-family: var(--font-sans); font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.lo-stat-subvalue {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lo-muted);
    line-height: 1.3;
}
.lo-stat-subvalue:empty { display: none; }
.lo-stat-card-link,
.lo-stat-card-link:hover,
.lo-stat-card-link:focus,
.lo-stat-card-link:visited,
.lo-stat-card-link:active {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--lo-radius-md);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.lo-stat-card-link .lo-stat-label,
.lo-stat-card-link .lo-stat-value,
.lo-stat-card-link .lo-stat-subvalue {
    text-decoration: none;
}
.lo-stat-card-link:hover .lo-stat-card {
    box-shadow: 0 4px 14px rgba(46, 49, 146, 0.12);
    transform: translateY(-1px);
}
.lo-employee-profile { scroll-margin-top: 7rem; }
.lo-summary-breakdown-panel { margin-top: 0.75rem; border: 1px solid var(--lo-border); border-radius: var(--lo-radius-md); }
.lo-summary-breakdown-panel .lo-panel-body { padding-top: 0; }
.lo-form-group-checkbox { display: flex; align-items: flex-end; padding-bottom: 0.35rem; }
.lo-form-group-checkbox label { font-weight: 600; color: var(--lo-navy); }

.lo-hr-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
    padding: 0;
    background: rgba(46, 49, 146, 0.035);
    border: 0;
    border-radius: 0;
}

.lo-hr-checks .lo-hr-check {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-height: 3.15rem;
    padding: 0.78rem 0.95rem;
    background: #fff;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-sm);
    box-shadow: 0 1px 2px rgba(33, 37, 41, 0.03);
    gap: 0.55rem;
}

.lo-hr-checks .lo-hr-check:hover {
    border-color: rgba(46, 49, 146, 0.28);
    background: rgba(46, 49, 146, 0.025);
}

.lo-hr-checks input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--lo-navy);
}

.lo-hr-checks label {
    display: inline !important;
    margin: 0 !important;
    color: var(--lo-navy);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

[dir="rtl"] .lo-hr-checks .lo-hr-check {
    direction: rtl;
    justify-content: flex-start;
    text-align: right;
}

@media (max-width: 760px) {
    .lo-hr-checks {
        grid-template-columns: 1fr;
    }
}

.lo-filter-toolbar {
    padding: 1rem 1.25rem;
    background: rgba(46, 49, 146, 0.04);
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius);
}

.lo-filter-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
}

.lo-filter-toolbar .lo-form-group {
    margin-bottom: 0;
    min-width: 10rem;
    flex: 0 1 auto;
}

.lo-filter-toolbar .lo-form-group-grow {
    flex: 1 1 12rem;
    min-width: min(100%, 12rem);
}

.lo-searchable-select {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lo-searchable-select .lo-searchable-select-input {
    margin: 0;
}

.lo-searchable-select .lo-searchable-select-ddl {
    margin: 0;
}

.lo-clothes-catalog-table .lo-clothes-catalog-qty {
    width: 4.5rem;
    max-width: 100%;
    text-align: center;
}

.lo-clothes-catalog-table .lo-clothes-catalog-line-total,
.lo-clothes-catalog-table .lo-clothes-catalog-grand-total {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lo-clothes-catalog-table tfoot td {
    font-weight: 600;
}

.lo-clothes-order-summary {
    cursor: pointer;
}

.lo-clothes-order-summary:hover {
    background: rgba(46, 49, 146, 0.04);
}

.lo-clothes-order-chevron {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--lo-navy, #2e3192);
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.25rem;
    transition: transform 0.15s ease;
}

.lo-clothes-order-chevron.is-open {
    transform: rotate(-180deg);
}

.lo-clothes-order-count {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
}

.lo-clothes-order-details > td {
    padding: 0.5rem 0.75rem 1rem;
    background: rgba(46, 49, 146, 0.03);
}

.lo-clothes-order-lines {
    min-width: 0;
    margin: 0;
}

.lo-clothes-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.lo-clothes-chart-card {
    padding: 1rem 1.1rem;
    background: var(--lo-surface, #fff);
    border: 1px solid var(--lo-border, #e2e5ef);
    border-radius: var(--lo-radius-md, 0.65rem);
}

.lo-clothes-chart-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lo-text, #1f2430);
}

.lo-clothes-chart-wrap {
    position: relative;
    height: 280px;
}

.lo-clothes-chart-empty {
    margin: 0;
    padding: 2rem 0.5rem;
    text-align: center;
    color: var(--lo-muted, #6b7280);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .lo-clothes-charts {
        grid-template-columns: 1fr;
    }
}

.lo-filter-toolbar .lo-form-group-action {
    flex: 0 0 auto;
    min-width: auto;
}

.lo-filter-toolbar .lo-form-group-checkbox {
    align-self: flex-end;
    padding: 0.55rem 0.85rem;
    background: var(--lo-white);
    border: 1.5px solid var(--lo-border);
    border-radius: var(--lo-radius-full);
    min-width: auto;
}

.lo-filter-toolbar .lo-form-group-checkbox label {
    margin: 0;
    white-space: nowrap;
}

.lo-filter-today input:checked + label {
    color: var(--lo-navy);
}

.lo-filter-panel {
    padding: 1rem 1.25rem;
    background: #f8f9fc;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.lo-filter-panel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem 1rem;
}
.lo-filter-panel-bottom {
    align-items: center;
    padding-top: 0.65rem;
    border-top: 1px solid var(--lo-border);
}
.lo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 9rem;
}
.lo-filter-group-grow { flex: 1 1 12rem; min-width: min(100%, 12rem); }
.lo-filter-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #555; }
.lo-filter-label-inline { font-size: 0.8rem; font-weight: 600; color: #555; white-space: nowrap; margin-right: 0.5rem; }
.lo-filter-input {
    height: 2.3rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--lo-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.15s;
}
.lo-filter-input:focus { border-color: var(--lo-navy, #2e3192); outline: none; box-shadow: 0 0 0 2px rgba(46,49,146,0.08); }
.lo-filter-feetype-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.5rem;
}
.lo-pill-checks { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.lo-pill-checks label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    border: 1.5px solid var(--lo-border);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.lo-pill-checks label:hover { border-color: var(--lo-navy, #2e3192); background: rgba(46,49,146,0.04); }
.lo-pill-checks input[type="checkbox"] { width: 0.85rem; height: 0.85rem; margin: 0; accent-color: var(--lo-navy, #2e3192); }
.lo-pill-checks input[type="checkbox"]:checked + label,
.lo-pill-checks label:has(input:checked) { border-color: var(--lo-navy, #2e3192); background: rgba(46,49,146,0.08); color: var(--lo-navy, #2e3192); }
.lo-btn-filter { height: 2.3rem; padding: 0 1.5rem; white-space: nowrap; margin-left: auto; }

@media (max-width: 600px) {
    .lo-filter-panel-row { flex-direction: column; align-items: stretch; }
    .lo-filter-group { min-width: 100%; }
    .lo-filter-feetype-wrap { flex-wrap: wrap; }
    .lo-btn-filter { width: 100%; margin-left: 0; }
}

.lo-library-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 11rem;
}

.lo-library-action .lo-input-sm {
    flex: 1 1 7rem;
    min-width: 6rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .lo-filter-toolbar .lo-form-group,
    .lo-filter-toolbar .lo-form-group-grow {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .lo-filter-toolbar .lo-form-group-action {
        width: 100%;
    }

    .lo-filter-toolbar .lo-form-group-action .lo-btn {
        width: 100%;
    }
}

.lo-summary-breakdown-wrap { margin-top: 0.5rem; }
.lo-summary-breakdown { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.lo-summary-breakdown th,
.lo-summary-breakdown td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--lo-border);
    text-align: start;
}
.lo-summary-breakdown th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lo-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(46, 49, 146, 0.03);
}
.lo-summary-breakdown td:last-child,
.lo-summary-breakdown th:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.lo-summary-breakdown tr:last-child td { border-bottom: none; }
.lo-summary-breakdown .lo-curriculum-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: var(--lo-radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(46, 49, 146, 0.08);
    color: var(--lo-navy);
}

.lo-account-summary-grid { display: grid; gap: 0.65rem; max-width: 420px; margin-left: auto; }
.lo-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--lo-border); }
.lo-summary-row:last-child { border-bottom: none; }
.lo-summary-total strong, .lo-summary-balance strong { color: var(--lo-navy); font-size: 1.05rem; }
.lo-summary-balance strong { color: var(--lo-danger); }

.lo-account-mini-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lo-subsection-title { font-size: 1rem; color: var(--lo-navy); margin: 1.25rem 0 0.65rem; font-weight: 600; }
.lo-agreement-controls { align-items: end; max-width: 640px; }
.lo-form-group-action { display: flex; flex-direction: column; justify-content: flex-end; }
.lo-account-mini-summary div { display: flex; flex-direction: column; gap: 0.25rem; }
.lo-account-mini-summary span { font-size: 0.8125rem; color: var(--lo-muted); }
.lo-account-mini-summary strong { font-size: 1.05rem; color: var(--lo-navy); }

@media (max-width: 768px) {
    .lo-account-mini-summary { grid-template-columns: 1fr; }
    .lo-account-summary-grid { max-width: none; margin-left: 0; }
}

.lo-grade-input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-sm);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}

.lo-search-row .lo-btn-outline { white-space: nowrap; }

/* Registrar */
.lo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lo-filter-tabs table { border: none; border-collapse: separate; border-spacing: 0.25rem; }
.lo-filter-tabs td { border: none; padding: 0; }
.lo-filter-tabs label {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    border-radius: var(--lo-radius-full);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    border: 1.5px solid var(--lo-border);
    color: var(--lo-muted);
    transition: var(--lo-transition);
}
.lo-filter-tabs input { display: none; }
.lo-filter-tabs input:checked + label {
    background: var(--lo-navy);
    color: var(--lo-white);
    border-color: var(--lo-navy);
}

.lo-search-row {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: min(100%, 280px);
    flex-wrap: wrap;
    align-items: center;
}

.lo-export-frame {
    display: none;
    width: 0;
    height: 0;
    border: 0;
    visibility: hidden;
}

.lo-search-row .lo-btn,
.lo-search-row input.lo-btn {
    flex-shrink: 0;
    outline: none;
    box-sizing: border-box;
}

.lo-search-row input.lo-btn-primary {
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

.lo-search-input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--lo-border);
    border-radius: var(--lo-radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.lo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lo-section-header .lo-section-title { margin: 0; }

.lo-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lo-hint {
    font-size: 0.8125rem;
    color: var(--lo-muted);
    margin: 0;
}

.lo-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem 1.5rem;
}

.lo-detail-item { display: flex; flex-direction: column; gap: 0.25rem; }
.lo-detail-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lo-muted); }
.lo-detail-value { font-size: 0.9375rem; font-weight: 500; color: var(--lo-text); }

.lo-back-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lo-navy);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.lo-back-link:hover { color: var(--lo-burgundy); }

.lo-req { color: var(--lo-gold); margin-inline-start: 0.15rem; font-weight: 600; }

.lo-required-fields-note {
    margin: 0 0 0.85rem;
    color: var(--lo-text-muted, #5c6478);
}
.lo-optional-tag { display: block; font-size: 0.7rem; color: var(--lo-muted); margin-bottom: 0.25rem; }
.lo-val-error { display: block; color: var(--lo-danger); font-size: 0.8rem; margin-top: 0.25rem; }

@media (max-width: 768px) {
    .lo-filter-bar { flex-direction: column; align-items: stretch; }
    .lo-search-row { max-width: 100%; }
    .lo-search-row .lo-btn { width: auto; }
}

/* Registrar reception QR card */
.lo-registrar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.25rem;
    align-items: start;
}

.lo-registrar-main {
    min-width: 0;
}

.lo-registrar-qr-card {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--lo-border);
    box-shadow: var(--lo-shadow-sm);
    position: sticky;
    top: 1rem;
}

.lo-registrar-qr-hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lo-navy);
}

.lo-registrar-qr-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-sm);
    background: var(--lo-white);
}

.lo-registrar-wifi-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
    text-align: start;
}

.lo-registrar-wifi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lo-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lo-registrar-wifi-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lo-text);
    word-break: break-word;
}

.lo-registrar-qr-url {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.7rem;
    color: var(--lo-muted);
    word-break: break-all;
}

.lo-registrar-qr-card .lo-btn {
    width: 100%;
}

.lo-archive-top-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.lo-archive-top-row > .lo-card {
    margin-bottom: 0;
    min-width: 0;
}

.lo-archive-top-row .lo-module-summary {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .lo-archive-top-row {
        grid-template-columns: 1fr;
    }
}

.lo-archive-share-card .lo-share-message {
    width: 100%;
    min-height: 7.5rem;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    background: var(--lo-bg);
}

.lo-share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.lo-copy-feedback {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lo-green);
}

.lo-btn-whatsapp {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--lo-white);
}

.lo-btn-whatsapp:hover {
    background: #0f7669;
    border-color: #0f7669;
    color: var(--lo-white);
}

/* Kiosk public registration */
.lo-kiosk-body { background: var(--lo-bg); }

.lo-kiosk-app .lo-kiosk-main {
    max-width: 760px;
    padding-top: 1rem;
}

.lo-kiosk-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--lo-border);
    box-shadow: var(--lo-shadow-sm);
}

.lo-kiosk-header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lo-kiosk-logo {
    height: 48px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    box-sizing: content-box;
}

.lo-kiosk-page-header {
    margin-bottom: 1rem;
}

.lo-validation-summary {
    padding: 0.85rem 1rem;
}

.lo-validation-summary ul {
    margin: 0;
    padding-inline-start: 1.25rem;
}

.lo-validation-summary li {
    margin: 0.2rem 0;
}

.lo-bus-location-panel .lo-alert-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--lo-burgundy);
}

.lo-kiosk-hint {
    margin: 0.35rem 0 0;
}

.lo-kiosk-parent-bar {
    border: 1px solid var(--lo-border);
    background: var(--lo-surface-alt, #f8f9fc);
}

.lo-kiosk-parent-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
}

.lo-kiosk-parent-summary {
    margin: 0;
    flex: 1 1 auto;
}

.lo-kiosk-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.lo-kiosk-section-header .lo-section-title {
    margin: 0;
}

.lo-kiosk-review {
    border: 1px solid var(--lo-border);
    box-shadow: var(--lo-shadow-md);
}

.lo-review-block {
    background: var(--lo-surface-alt, #f8f9fc);
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius, 12px);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.lo-review-heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lo-navy);
}

.lo-review-list {
    display: grid;
    grid-template-columns: minmax(8rem, 34%) 1fr;
    gap: 0.45rem 1rem;
    margin: 0;
}

.lo-review-list dt {
    margin: 0;
    font-weight: 600;
    color: var(--lo-muted);
    font-size: 0.92rem;
}

.lo-review-list dd {
    margin: 0;
    color: var(--lo-text);
    word-break: break-word;
}

.lo-kiosk-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.lo-kiosk-review-edit {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.lo-kiosk-pending-summary {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--lo-border);
}

.lo-kiosk-summary-table {
    margin-bottom: 0;
}

.lo-kiosk-summary-table th,
.lo-kiosk-summary-table td {
    vertical-align: middle;
}

.lo-kiosk-review-table td.lo-kiosk-review-label {
    width: 34%;
    font-weight: 600;
    color: var(--lo-muted);
}

.lo-kiosk-review-table td.lo-kiosk-review-value {
    word-break: break-word;
}

.lo-kiosk-edit-link {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--lo-border);
    border-radius: var(--lo-radius-sm, 8px);
    color: var(--lo-navy);
    text-decoration: none;
    font-size: 0.92rem;
    background: #fff;
}

.lo-kiosk-edit-link:hover {
    background: var(--lo-surface-alt, #f8f9fc);
    text-decoration: none;
}

.lo-kiosk-btn {
    min-width: 9rem;
    min-height: 2.75rem;
    font-size: 1rem;
}

.lo-kiosk-complete {
    text-align: center;
    padding: 2rem 1.5rem;
}

.lo-kiosk-complete-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(34, 139, 87, 0.12);
    color: var(--lo-green);
    font-size: 2rem;
    line-height: 4rem;
    font-weight: 700;
}

.lo-actions-center {
    justify-content: center;
}

.lo-text-center {
    text-align: center;
}

.lo-bus-location-panel {
    animation: lo-fade-in 0.2s ease;
}

.lo-bus-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.lo-btn-location {
    white-space: nowrap;
}

.lo-bus-location-status {
    margin: 0;
}

.lo-bus-location-status-error {
    color: var(--lo-danger, #dc2626);
}

@media (max-width: 640px) {
    .lo-review-list {
        grid-template-columns: 1fr;
        gap: 0.15rem 0;
    }

    .lo-review-list dt {
        margin-top: 0.5rem;
    }

    .lo-kiosk-review-actions .lo-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 960px) {
    .lo-registrar-layout {
        grid-template-columns: 1fr;
    }

    .lo-registrar-qr-card {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media print {
    .lo-header,
    .lo-nav,
    .lo-footer,
    .lo-page-header,
    .lo-registrar-main,
    .lo-registrar-layout ~ *,
    .lo-no-print {
        display: none !important;
    }

    body,
    .lo-main,
    .lo-app {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .lo-registrar-layout {
        display: block !important;
        margin: 0 !important;
    }

    .lo-registrar-qr-card {
        width: 3.2in;
        margin: 0 auto;
        border: 1px solid #333;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .lo-registrar-qr-image {
        width: 2.4in;
        height: 2.4in;
    }
}

.lo-phone-input {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.lo-phone-input .lo-phone-code {
    flex: 0 0 auto;
    min-width: 11rem;
    max-width: 14rem;
}

.lo-phone-input .lo-phone-number {
    flex: 1 1 auto;
    min-width: 0;
}

.lo-student-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.lo-student-first-name {
    flex: 1 1 8rem;
    min-width: 6rem;
    max-width: 14rem;
}

.lo-student-name-suffix {
    color: var(--lo-primary, #1a1d5c);
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
}

.lo-student-name-hint {
    margin: 0.35rem 0 0;
}
