/* Normal-size controls and traditional bordered registers, like student.zip. */
.school-app .btn,
.login-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    min-height: 36px;
    padding: 7px 11px;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
}
.school-app .btn i {
    font-size: 18px;
}
.school-app .btn-sm {
    font-size: 13px;
    padding: 4px 8px;
    min-height: 29px;
}
.school-app .btn-primary,
.login-body .btn-primary {
    background: var(--school-primary);
    border-color: var(--school-primary);
    color: white;
}
.school-app .btn-primary:hover,
.login-body .btn-primary:hover {
    background: var(--school-primary-hover);
}
.school-app .btn-success {
    background: #239469;
    border-color: #239469;
    color: white;
}
.school-app .btn-light {
    background: #fff;
    border: 1px solid #ccd5df;
    color: #344759;
}
.school-app .btn-light:hover {
    background: #eaf0f5;
}
.school-app .btn-outline-primary {
    background: white;
    border-color: #b5cede;
    color: #0876b4;
}
.school-app .btn-outline-danger {
    background: #fff;
    border-color: #e1bfc5;
    color: #ab3549;
}
.school-app .btn-outline-danger:hover {
    background: #fbeff1;
}
.school-app .section-card {
    background: white;
    border: 1px solid #d4dce5;
    border-radius: 5px;
    box-shadow: none;
    margin-bottom: 18px;
    min-width: 0;
    overflow: hidden;
}
.school-app .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #dce3ea;
}
.school-app .card-header h2 {
    font-size: 16px;
    font-weight: 550;
    letter-spacing: 0;
}
.school-app .card-header p {
    font-size: 13px;
    color: #617283;
    margin-top: 4px;
}
.school-app .card-body {
    padding: 16px;
}
.school-app .list-card > .card-header {
    display: none;
}
.school-app .list-card > .card-body {
    padding: 0;
}
.school-app .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.school-app .table {
    display: table;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    color: #263746;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}
.school-app .table thead {
    display: table-header-group;
    position: static;
    clip-path: none;
    height: auto;
    width: auto;
}
.school-app .table tbody {
    display: table-row-group;
}
.school-app .table tr {
    display: table-row;
}
.school-app .table th,
.school-app .table td {
    display: table-cell;
    padding: 9px 11px;
    border: 1px solid #d7dfe7;
    vertical-align: middle;
}
.school-app .table thead th {
    background: #dcebfa;
    color: #254a6b;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    white-space: nowrap;
}
.school-app .table tbody tr:nth-child(even) {
    background: #f3f6f9;
}
.school-app .table tbody tr:hover {
    background: #eaf4fc;
}
.school-app .table td:before {
    display: none;
}
.school-app .table td strong {
    font-size: 14px;
    font-weight: 550;
}
.school-app .table small {
    display: block;
    font-size: 13px;
    color: #5f7384;
    margin-top: 2px;
}
.school-app .table a:not(.btn) {
    font-size: 14px;
    color: #0876b4;
}
.school-app .table .field {
    margin: 0;
    min-width: 160px;
}
.school-app .table .field > .form-label {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.school-app .number-cell {
    text-align: right !important;
    white-space: nowrap;
}
.person-cell {
    display: block;
    min-width: 155px;
}
.person-avatar {
    display: none;
}
.inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.table .inline-actions {
    min-width: 165px;
}
.inline-form,
.table td form {
    display: inline-flex;
    margin: 0;
}
.inline-form .form-actions {
    margin: 0;
    padding: 0;
}
.school-app .badge {
    padding: 4px 7px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
.school-app .text-bg-success {
    background: #e1f2e9 !important;
    color: #226443 !important;
}
.school-app .text-bg-primary,
.school-app .text-bg-info {
    background: #e3f0fb !important;
    color: #215f8e !important;
}
.school-app .text-bg-warning {
    background: #fff0cb !important;
    color: #805e0a !important;
}
.school-app .text-bg-danger {
    background: #fbe7eb !important;
    color: #98374a !important;
}
.school-app .text-bg-secondary {
    background: #e9edf1 !important;
    color: #536678 !important;
}
.empty-state {
    text-align: center !important;
    padding: 30px !important;
}
.empty-icon {
    display: none;
}
.empty-state strong {
    display: block;
}
.empty-state .muted {
    display: block;
    margin-top: 5px;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.metric {
    background: white;
    border: 1px solid #d4dce5;
    border-radius: 5px;
    padding: 16px;
    min-width: 0;
}
.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #4d6476;
    font-size: 14px;
}
.metric-icon {
    font-size: 23px;
    color: #4095c5;
}
.metric > strong {
    display: block;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 550;
    color: #263d50;
    overflow-wrap: anywhere;
    margin-top: 8px;
}
.metric-note {
    font-size: 13px;
    color: #617283;
    margin-top: 6px;
}
.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.school-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 14px;
    border-bottom: 1px solid #cdd8e2;
}
.school-tab {
    display: block;
    padding: 8px 14px;
    border-bottom: 2px solid transparent;
    color: #526777;
    white-space: nowrap;
    font-size: 14px;
}
.school-tab.active {
    border-color: #0c83c6;
    color: #0876b4;
    background: #e9f3fb;
    font-weight: 550;
}
.school-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}
.school-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.list-toolbar {
    padding: 11px 14px;
    border-bottom: 1px solid #d7dfe7;
    margin: 0;
    background: white;
}
.quick-list-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 370px;
    width: 100%;
    border: 1px solid #cbd5df;
    border-radius: 4px;
    padding: 0 9px;
    background: white;
}
.quick-list-search > i {
    color: #687f91;
    font-size: 18px;
}
.quick-list-search input {
    font-size: 15px;
    min-width: 0;
    width: 100%;
    padding: 7px 0;
    border: 0;
    outline: 0;
    color: #273444;
    background: transparent;
}
.quick-list-search > button {
    display: grid;
    place-items: center;
    border: 0;
    background: #eff4f8;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    flex: none;
    color: #526d80;
}
.filter-launch-actions {
    flex: none;
}
.filter-count {
    padding: 0 5px;
    border-radius: 3px;
    background: #e4edf5;
    font-size: 12px;
}
.pager {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #536b7c;
    border-top: 1px solid #d7dfe7;
}
.pager > span {
    margin-right: auto;
}
.notice {
    padding: 13px 16px;
    border: 1px solid #e6d496;
    border-radius: 4px;
    background: #fff8e2;
    color: #715b15;
    font-size: 14px;
    margin-bottom: 16px;
}
.school-app .alert {
    font-size: 14px;
    border-radius: 4px;
}
.invoice-preview {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
    margin-top: 10px;
}
.invoice-document {
    display: block;
    width: 280px;
    height: auto;
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
    margin: 14px 0;
}
.setup-secret {
    background: #f3f6f9;
    padding: 14px;
    border: 1px solid #d4dce5;
    overflow-wrap: anywhere;
}
.recovery-codes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}
.recovery-codes code {
    padding: 6px 8px;
    background: white;
}
.progress-track {
    height: 8px;
    background: #e9eef2;
    border-radius: 4px;
    overflow: hidden;
}
.progress-track > span {
    display: block;
    height: 100%;
    background: #299b83;
}
@media (max-width: 800px) {
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .two-column {
        grid-template-columns: 1fr;
    }
    .recovery-codes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .school-app .table {
        min-width: 680px;
    }
    .school-app .table th,
    .school-app .table td {
        padding: 8px 10px;
    }
    .school-tabs {
        max-width: 100%;
    }
    .metric {
        padding: 13px;
    }
    .metric-top {
        font-size: 14px;
    }
}
@media (max-width: 450px) {
    .metrics {
        gap: 9px;
    }
    .metric > strong {
        font-size: 25px;
    }
    .metric-note {
        font-size: 12px;
    }
    .filter-launch {
        gap: 8px;
    }
    .list-toolbar {
        padding: 10px;
    }
    .quick-list-search {
        min-width: 0;
    }
    .filter-launch .btn {
        padding: 7px 9px;
    }
    .school-tab {
        padding: 8px 12px;
    }
}

/* Compact student-level results status; actions stay out of exports. */
.parent-access-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 132px; }
.parent-access-cell small { color: var(--text-muted, #66788a); white-space: normal; }
.parent-access-cell .btn { padding: 3px 9px; }
