html {
    font-size: 14px;
    min-height: 100%;
}

body {
    padding-bottom: 70px;
    min-height: 100vh;
    min-height: 100dvh;
}

.mobile-action-button {
    min-height: 48px;
}

@supports (padding: env(safe-area-inset-bottom)) {

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

@media (max-width: 768px) {

    body {
        padding-bottom: 70px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1,
    h2 {
        font-size: 1.5rem;
    }

    .card {
        border-radius: 12px;
    }

    .btn {
        min-height: 44px;
    }

    .form-control,
    .form-select {
        min-height: 46px;
        font-size: 16px;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        min-height: 60px;
        background: #fff;
        border-top: 1px solid #ddd;
        z-index: 1000;
    }

        .mobile-bottom-nav a {
            flex: 1;
            text-align: center;
            padding: 18px 6px;
            text-decoration: none;
            font-weight: 500;
        }

    .login-card {
        width: 100%;
        max-width: 420px;
    }

    @media (max-width: 576px) {

        .login-card {
            border: 0;
            box-shadow: none !important;
        }

        .login-container {
            padding: 16px;
        }
    }

    .sticky-attendance-save {
        position: sticky;
        bottom: 70px;
        background: rgba(255, 255, 255, 0.96);
        padding-top: 12px;
        padding-bottom: 12px;
        z-index: 900;
    }

    .attendance-student {
        min-height: 76px;
    }
}

.mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    background: white;
    border-top: 1px solid #ccc;
    z-index: 99999 !important;
}

    .mobile-bottom-nav a,
    .mobile-nav-button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #212529;
        text-decoration: none;
    }

.mobile-nav-form {
    flex: 1;
    margin: 0;
    display: flex;
}

.mobile-nav-button {
    width: 100%;
}

/* =========================================================
   ADMIN THEME
   ========================================================= */

:root {
    --admin-primary: #273469;
    --admin-secondary: #4056A1;
    --admin-accent: #5B6EE1;
    --admin-bg: #F5F7FB;
    --admin-surface: #FFFFFF;
    --admin-text: #1E293B;
    --admin-muted: #64748B;
    --admin-border: #E2E8F0;
    --admin-success: #16A34A;
    --admin-warning: #D97706;
    --admin-danger: #DC2626;
    --admin-radius: 14px;
}

/* Sayfa */

body.role-admin {
    background: var(--admin-bg);
    color: var(--admin-text);
}

/* Üst Menü */

.role-admin .navbar {
    background: var(--admin-primary) !important;
    border-bottom: 0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12) !important;
}

.role-admin .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.role-admin .navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .role-admin .navbar .nav-link:hover,
    .role-admin .navbar .nav-link:focus {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12);
    }

/* Mobil hamburger */

.role-admin .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.role-admin .navbar-toggler-icon {
    filter: invert(1);
}

/* Dropdown */

.role-admin .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 8px;
    z-index: 1055;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
}

.role-admin .dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
}

    .role-admin .dropdown-item:hover,
    .role-admin .dropdown-item:focus {
        background: #EEF2FF;
        color: var(--admin-primary);
    }

/* Sayfa içeriği */

.role-admin main {
    padding-top: 24px;
}

/* Kartlar */

.role-admin .card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.role-admin .card-header {
    background: transparent;
    border-bottom: 1px solid var(--admin-border);
    font-weight: 600;
    padding: 16px 20px;
}

.role-admin .card-body {
    padding: 20px;
}

/* Başlıklar */

.role-admin h1,
.role-admin h2,
.role-admin h3,
.role-admin h4 {
    color: var(--admin-text);
    font-weight: 700;
}

/* Form elemanları */

.role-admin .form-control,
.role-admin .form-select {
    border-color: #CBD5E1;
    border-radius: 9px;
}

    .role-admin .form-control:focus,
    .role-admin .form-select:focus {
        border-color: var(--admin-accent);
        box-shadow: 0 0 0 0.2rem rgba(91, 110, 225, 0.15);
    }

/* Primary Button */

.role-admin .btn-primary {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    border-radius: 9px;
    font-weight: 500;
}

    .role-admin .btn-primary:hover {
        background: var(--admin-secondary);
        border-color: var(--admin-secondary);
    }

/* Secondary Button */

.role-admin .btn-outline-primary {
    color: var(--admin-primary);
    border-color: var(--admin-primary);
    border-radius: 9px;
}

    .role-admin .btn-outline-primary:hover {
        background: var(--admin-primary);
        color: #fff;
    }

/* Tablolar */

.role-admin .table {
    --bs-table-bg: transparent;
    color: var(--admin-text);
}

    .role-admin .table thead th {
        color: var(--admin-muted);
        font-size: 0.82rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom-width: 1px;
    }

    .role-admin .table tbody tr {
        transition: background-color 0.15s ease;
    }

        .role-admin .table tbody tr:hover {
            background: #F8FAFC;
        }

/* Badge */

.role-admin .badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 500;
}

/* Alert */

.role-admin .alert {
    border: 0;
    border-radius: 12px;
}

/* Footer */

.role-admin .footer {
    background: #fff;
    border-color: var(--admin-border) !important;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    body > .container {
        flex: 1;
    }

.footer {
    margin-top: auto;
    width: 100%;
    background: #fff;
    padding: 18px 0;
}

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard {
    padding-top: 28px;
    padding-bottom: 30px;
}

/* Başlık */

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

    .dashboard-heading h1 {
        margin: 0 0 5px;
        font-size: 1.65rem;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    .dashboard-heading p {
        margin: 0;
        color: var(--admin-muted);
        font-size: 0.95rem;
    }

/* Tarih */

.dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--admin-muted);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* İstatistik kartı */

.dashboard-stat-card {
    height: 100%;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .dashboard-stat-card:hover {
        transform: translateY(-2px);
        border-color: #CBD5E1;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

/* İkon */

.stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.45rem;
}

/* İkon renkleri */

.stat-icon-students {
    color: #4056A1;
    background: #EEF2FF;
}

.stat-icon-teachers {
    color: #7C3AED;
    background: #F3E8FF;
}

.stat-icon-classes {
    color: #0284C7;
    background: #E0F2FE;
}

.stat-icon-attendance {
    color: #059669;
    background: #D1FAE5;
}

.stat-icon-absent {
    color: #D97706;
    background: #FEF3C7;
}

.stat-icon-sms {
    color: #0891B2;
    background: #CFFAFE;
}

.stat-icon-failed {
    color: #DC2626;
    background: #FEE2E2;
}

/* Değer */

.stat-content {
    min-width: 0;
}

.stat-value {
    color: var(--admin-text);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
}

/* Etiket */

.stat-label {
    color: var(--admin-muted);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Mobil */

@media (max-width: 768px) {

    .admin-dashboard {
        padding-top: 20px;
    }

    .dashboard-heading {
        align-items: flex-start;
        margin-bottom: 18px;
    }

        .dashboard-heading h1 {
            font-size: 1.4rem;
        }

        .dashboard-heading p {
            font-size: 0.85rem;
        }

    .dashboard-date {
        display: none;
    }

    .dashboard-stat-card {
        min-height: 105px;
        padding: 15px;
        gap: 12px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 1.2rem;
        border-radius: 11px;
    }

    .stat-value {
        font-size: 1.55rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* =========================================================
   ADMIN SETTINGS
   ========================================================= */

.admin-settings-page {
    padding-top: 28px;
    padding-bottom: 35px;
}

.settings-heading {
    margin-bottom: 24px;
}

    .settings-heading h1 {
        margin: 0 0 5px;
        font-size: 1.65rem;
        font-weight: 700;
    }

    .settings-heading p {
        margin: 0;
        color: var(--admin-muted);
    }

/* Settings Card */

.settings-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-border);
}

    .settings-card-header h2 {
        margin: 0 0 3px;
        font-size: 1.05rem;
    }

    .settings-card-header p {
        margin: 0;
        color: var(--admin-muted);
        font-size: 0.85rem;
    }

.settings-card-body {
    padding: 22px;
}

/* Section icon */

.settings-section-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1.15rem;
}

    .settings-section-icon.academic {
        color: #4056A1;
        background: #EEF2FF;
    }

    .settings-section-icon.sms {
        color: #0891B2;
        background: #CFFAFE;
    }

/* Switch Rows */

.settings-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-option-title {
    color: var(--admin-text);
    font-weight: 600;
}

.settings-option-description {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 0.85rem;
}

.settings-switch {
    width: 2.7rem !important;
    height: 1.4rem;
    cursor: pointer;
}

.role-admin .form-check-input:checked {
    background-color: var(--admin-primary);
    border-color: var(--admin-primary);
}

/* Divider */

.settings-divider {
    margin: 22px 0;
    border-color: var(--admin-border);
    opacity: 1;
}

/* SMS textarea */

.sms-template-textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.55;
}

/* Counter */

.sms-character-counter {
    color: var(--admin-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

    .sms-character-counter.near-limit {
        color: var(--admin-danger);
        font-weight: 600;
    }

/* Token buttons */

.sms-token-title {
    margin-bottom: 8px;
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sms-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sms-token {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    background: #fff;
    color: var(--admin-primary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .sms-token:hover {
        background: #EEF2FF;
        border-color: #A5B4FC;
        transform: translateY(-1px);
    }

/* SMS Preview */

.sms-preview {
    max-width: 760px;
    margin-top: 22px;
    padding: 16px;
    background: #F8FAFC;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
}

.sms-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sms-preview-label {
    padding: 3px 8px;
    background: #E2E8F0;
    border-radius: 999px;
    font-size: 0.68rem;
}

.sms-preview-message {
    color: var(--admin-text);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

/* Save */

.settings-save-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.settings-save-info {
    color: var(--admin-muted);
    font-size: 0.85rem;
}

.settings-save-button {
    min-width: 150px;
}

/* Mobile */

@media (max-width: 768px) {

    .admin-settings-page {
        padding-top: 20px;
    }

    .settings-heading h1 {
        font-size: 1.4rem;
    }

    .settings-card-header,
    .settings-card-body {
        padding: 16px;
    }

    .settings-switch-row {
        align-items: flex-start;
    }

    .settings-save-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-save-button {
        width: 100%;
    }
}

.role-admin .navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.role-admin .navbar .nav-link i {
    font-size: 0.95em;
}

/* =========================================================
   SMS SERVICE
   ========================================================= */

.sms-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.sms-service-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sms-service-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    background: #D1FAE5;
    border-radius: 11px;
    font-size: 1.1rem;
}

.sms-service-title {
    color: var(--admin-text);
    font-weight: 600;
}

.sms-service-description {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

@media (max-width: 576px) {

    .sms-service-card {
        flex-direction: column;
        align-items: stretch;
    }

        .sms-service-card form .btn {
            width: 100%;
        }
}

/* =========================================================
   ADMIN LIST PAGES
   ========================================================= */

.admin-page {
    padding-top: 28px;
    padding-bottom: 35px;
}

/* Page header */

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

    .admin-page-header h1 {
        margin: 0 0 5px;
        font-size: 1.65rem;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    .admin-page-header p {
        margin: 0;
        color: var(--admin-muted);
        font-size: 0.9rem;
    }

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/* Summary */

.admin-list-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
}

.admin-list-summary-icon {
    color: var(--admin-primary);
}

.admin-list-summary-value {
    color: var(--admin-text);
    font-weight: 700;
}

.admin-list-summary-label {
    margin-left: 3px;
    color: var(--admin-muted);
    font-size: 0.85rem;
}

/* Table container */

.admin-table-card {
    overflow: visible;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

    .admin-table-card .dropdown-menu {
        z-index: 2000;
    }

.table-responsive {
    font-size: 0.9rem;
}

@media (min-width: 992px) {

    .admin-table-card .table-responsive {
        overflow-x: visible;
        overflow-y: visible;
    }
}

/* Table */

.admin-table {
    min-width: 1050px;
}

    .admin-table thead th {
        padding: 13px 16px;
        background: #F8FAFC;
        color: var(--admin-muted);
        border-bottom: 1px solid var(--admin-border);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.045em;
        white-space: nowrap;
    }

    .admin-table tbody td {
        padding: 13px 16px;
        border-color: #EEF2F7;
        vertical-align: middle;
    }

    .admin-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-table tbody tr:hover {
        background: #FAFBFD;
    }

/* Student */

.student-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.student-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: #EEF2FF;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.student-number {
    color: var(--admin-text);
    font-weight: 600;
}

.table-secondary-text {
    color: var(--admin-muted);
    font-size: 0.86rem;
}

/* Class badge */

.admin-soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: var(--admin-primary);
    background: #EEF2FF;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Status */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-active {
    color: #15803D;
    background: #DCFCE7;
}

.status-graduated {
    color: #4056A1;
    background: #EEF2FF;
}

.status-inactive {
    color: #64748B;
    background: #F1F5F9;
}

.status-warning {
    color: #B45309;
    background: #FEF3C7;
}

/* Action menu */

.admin-action-menu {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--admin-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
}

    .admin-action-menu:hover,
    .admin-action-menu:focus {
        color: var(--admin-primary);
        background: #EEF2FF;
        border-color: #E0E7FF;
    }

.admin-actions-dropdown {
    min-width: 190px;
}

    .admin-actions-dropdown .dropdown-item {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 0.85rem;
    }

        .admin-actions-dropdown .dropdown-item i {
            width: 16px;
            text-align: center;
        }

/* Empty state */

.admin-empty-state {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--admin-muted);
    text-align: center;
}

    .admin-empty-state > i {
        margin-bottom: 5px;
        color: #94A3B8;
        font-size: 2rem;
    }

    .admin-empty-state strong {
        color: var(--admin-text);
    }

/* Credential alert */

.admin-credential-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #854D0E;
    background: #FEFCE8;
    border: 1px solid #FDE68A !important;
}

.admin-alert-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A16207;
    background: #FEF3C7;
    border-radius: 10px;
}

/* Mobile */

@media (max-width: 768px) {

    .admin-page {
        padding-top: 20px;
    }

    .admin-page-header {
        flex-direction: column;
        gap: 16px;
    }

        .admin-page-header h1 {
            font-size: 1.4rem;
        }

    .admin-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

        .admin-page-actions .btn {
            flex: 1 1 auto;
        }

    .admin-table-card {
        border-radius: 12px;
    }
}

.teacher-table {
    min-width: 850px;
}

/* =========================================================
   ADMIN COMMON ENTITY LISTS
   ========================================================= */

.compact-admin-table {
    min-width: 760px;
}

.admin-entity-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.admin-entity-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: #EEF2FF;
    border-radius: 9px;
    font-size: 0.9rem;
}

.admin-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #475569;
    background: #F1F5F9;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.lesson-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: #EEF2FF;
    border-radius: 8px;
    font-weight: 700;
}

.lesson-time {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #334155;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   ACADEMIC YEARS / ADMIN USERS
   ========================================================= */

.admin-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

    .admin-date i {
        color: #94A3B8;
    }

.admin-person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.admin-avatar-admin {
    color: var(--admin-primary);
    background: #EEF2FF;
}

.admin-person-name {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--admin-text);
    font-weight: 600;
}

.admin-person-subtitle {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.74rem;
}

.current-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    color: #0369A1;
    background: #E0F2FE;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
}

/* =========================================================
   TIMETABLE SELECTION
   ========================================================= */

.timetable-selection-card {
    max-width: 950px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.timetable-selection-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--admin-border);
}

.timetable-header-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: #EEF2FF;
    border-radius: 12px;
    font-size: 1.2rem;
}

.timetable-selection-header h2 {
    margin: 0 0 3px;
    font-size: 1.05rem;
    font-weight: 700;
}

.timetable-selection-header p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.timetable-selection-body {
    padding: 24px 22px;
}

/* Input with icon */

.admin-input-icon {
    position: relative;
}

    .admin-input-icon > i {
        position: absolute;
        left: 14px;
        top: 50%;
        z-index: 2;
        color: #94A3B8;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .admin-input-icon .form-select {
        padding-left: 40px;
    }

/* Timetable footer */

.timetable-selection-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
}

.timetable-help {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

    .timetable-help i {
        color: var(--admin-primary);
    }

.timetable-open-button {
    min-width: 145px;
}

/* Three step information */

.timetable-info-grid {
    max-width: 950px;
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
}

.timetable-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .timetable-info-item > i {
        color: var(--admin-primary);
        font-size: 1.25rem;
    }

    .timetable-info-item div {
        display: flex;
        flex-direction: column;
    }

    .timetable-info-item strong {
        color: var(--admin-text);
        font-size: 0.82rem;
    }

    .timetable-info-item span {
        margin-top: 2px;
        color: var(--admin-muted);
        font-size: 0.72rem;
    }

.timetable-info-arrow {
    padding: 0 16px;
    color: #CBD5E1;
}

/* Mobile */

@media (max-width: 768px) {

    .timetable-selection-header,
    .timetable-selection-body {
        padding: 16px;
    }

    .timetable-selection-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .timetable-open-button {
        width: 100%;
    }

    .timetable-info-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .timetable-info-arrow {
        padding: 0 0 0 4px;
        transform: rotate(90deg);
    }
}

/* =========================================================
   ADMIN FORMS
   ========================================================= */

.admin-form-page {
    max-width: 900px;
    margin: 0 auto;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}

    .admin-back-link:hover {
        color: var(--admin-primary);
    }

.admin-form-heading {
    margin-bottom: 22px;
}

    .admin-form-heading h1 {
        margin: 0 0 5px;
        color: var(--admin-text);
        font-size: 1.55rem;
        font-weight: 700;
    }

    .admin-form-heading p {
        margin: 0;
        color: var(--admin-muted);
        font-size: 0.9rem;
    }

/* CARD */

.admin-form-card {
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.admin-form-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--admin-border);
}

.admin-form-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: #EEF2FF;
    border-radius: 10px;
    font-size: 1rem;
}

.admin-form-card-header h2 {
    margin: 0 0 2px;
    color: var(--admin-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-form-card-header p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.77rem;
}

.admin-form-card-body {
    padding: 22px 20px;
}

/* FORM CONTROLS */

.admin-form-page .form-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-form-page .form-control,
.admin-form-page .form-select {
    min-height: 42px;
    border-color: #DCE3EC;
    border-radius: 9px;
    font-size: 0.88rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .admin-form-page .form-control:focus,
    .admin-form-page .form-select:focus {
        border-color: var(--admin-accent);
        box-shadow: 0 0 0 .2rem rgba(91, 110, 225, .12);
    }

    .admin-form-page .form-control::placeholder {
        color: #A8B1BF;
    }

/* VALIDATION */

.admin-field-validation {
    display: block;
    margin-top: 5px;
    color: #DC2626;
    font-size: 0.75rem;
}

    .admin-field-validation:empty {
        display: none;
    }

.admin-validation-summary {
    margin-bottom: 18px;
}

    .admin-validation-summary:empty,
    .admin-validation-summary.validation-summary-valid {
        display: none;
    }

    .admin-validation-summary.validation-summary-errors {
        padding: 12px 15px;
        color: #991B1B;
        background: #FEF2F2;
        border: 1px solid #FECACA;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .admin-validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

/* HELP */

.admin-field-help {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 0.74rem;
}

    .admin-field-help i {
        color: #94A3B8;
    }

/* SWITCH */

.admin-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .admin-switch-row > div:first-child {
        display: flex;
        flex-direction: column;
    }

    .admin-switch-row strong {
        color: var(--admin-text);
        font-size: 0.86rem;
    }

    .admin-switch-row span {
        margin-top: 3px;
        color: var(--admin-muted);
        font-size: 0.76rem;
    }

    .admin-switch-row .form-check {
        margin: 0;
    }

    .admin-switch-row .form-check-input {
        width: 2.7em;
        height: 1.35em;
        cursor: pointer;
    }

        .admin-switch-row .form-check-input:checked {
            background-color: var(--admin-primary);
            border-color: var(--admin-primary);
        }

/* PASSWORD */

.admin-password-field {
    position: relative;
}

    .admin-password-field .form-control {
        padding-right: 46px;
    }

.admin-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #64748B;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transform: translateY(-50%);
}

    .admin-password-toggle:hover {
        color: var(--admin-primary);
        background: #F1F5F9;
    }

/* ACTION BAR */

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
    padding: 18px 0 4px;
}

    .admin-form-actions .btn {
        min-width: 105px;
    }

/* MOBILE */

@media (max-width: 768px) {

    .admin-form-page {
        max-width: 100%;
    }

    .admin-form-heading h1 {
        font-size: 1.35rem;
    }

    .admin-form-card-header {
        padding: 15px 16px;
    }

    .admin-form-card-body {
        padding: 18px 16px;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .admin-form-actions .btn {
            width: 100%;
        }
}

/* Admin form information note */

.admin-form-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    font-size: 0.78rem;
    line-height: 1.5;
}

    .admin-form-note i {
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--admin-primary);
    }

/* =========================================================
   LOGIN
   ========================================================= */

body.login-page {
    background-color: #f5f6f8;
}

.login-container {
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.admin-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.dashboard-stat-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .dashboard-stat-link:hover {
        color: inherit;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
    }

    .dashboard-stat-link:focus-visible {
        outline: 2px solid var(--admin-primary);
        outline-offset: 2px;
    }

.edit-parent-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .6rem;
    border: 1px solid #d7e4f6;
    border-radius: 9px;
    background: #f3f8ff;
    color: #3267b8;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
}

    .edit-parent-button:hover {
        border-color: #b9d1f2;
        background: #eaf3ff;
        color: #245ba9;
    }

.attendance-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
}

    .attendance-status-grid .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        white-space: nowrap;
    }

@media (min-width: 768px) {

    .attendance-status-grid {
        grid-template-columns: repeat(5, auto);
        width: auto;
    }
}

/* =========================================================
   INTERNAL MESSAGING
   ========================================================= */

.message-page {
    padding: 28px 0 36px;
    max-width: 1040px;
    margin: 0 auto;
}

.message-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.message-page-header-compact {
    margin-bottom: 18px;
}

.message-page-header h1 {
    margin: 3px 0 5px;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.message-page-header p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.message-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.message-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .message-header-actions .btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

.message-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.message-tabs {
    display: flex;
    gap: 5px;
    padding: 4px;
    background: #eef2f7;
    border-radius: 11px;
}

.message-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 8px;
    color: #64748b;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

    .message-tab:hover {
        color: #334155;
    }

    .message-tab.active {
        background: #fff;
        color: var(--admin-primary,#273469);
        box-shadow: 0 1px 4px rgba(15,23,42,.08);
    }

.message-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
}

.message-summary {
    color: #64748b;
    font-size: .8rem;
}

.message-list-card, .message-compose-card, .message-detail-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15,23,42,.045);
}

.message-row {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 78px;
    padding: 14px 16px;
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid #eef2f7;
    transition: background-color .15s ease;
}

    .message-row:last-child {
        border-bottom: 0;
    }

    .message-row:hover {
        background: #f8fafc;
        color: #1e293b;
    }

.message-row-unread {
    background: #f8faff;
}

.message-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--admin-primary,#4056a1);
    font-size: .88rem;
    font-weight: 700;
}

.message-avatar-sent {
    border-radius: 11px;
}

.message-row-content {
    min-width: 0;
    flex: 1;
}

.message-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-row-unread .message-sender, .message-row-unread .message-subject {
    font-weight: 700;
}

.message-row-top time {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: .73rem;
}

.message-subject {
    margin-top: 4px;
    color: #475569;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-meta {
    margin-top: 5px;
    color: #64748b;
    font-size: .78rem;
}

.message-unread-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #2563eb;
}

.message-row-arrow {
    color: #cbd5e1;
}

.message-empty-state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 20px;
    text-align: center;
}

.message-empty-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.45rem;
}

.message-empty-state h2 {
    margin: 0 0 5px;
    font-size: 1.05rem;
}

.message-empty-state p {
    margin: 0 0 17px;
    color: #64748b;
    font-size: .86rem;
}

.message-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

    .message-back-link:hover {
        color: var(--admin-primary,#273469);
    }

.message-form-section {
    padding: 21px 22px;
    border-bottom: 1px solid #eef2f7;
}

.message-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.message-section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--admin-primary,#4056a1);
}

.message-section-heading h2 {
    margin: 0 0 2px;
    font-size: .96rem;
}

.message-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: .76rem;
}

.message-compose-card .form-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
}

.message-compose-card .form-control, .message-compose-card .form-select {
    border-color: #dce3ec;
    border-radius: 9px;
}

.message-recipient-select {
    min-height: 190px;
}

.message-body-input {
    min-height: 190px;
    resize: vertical;
    line-height: 1.6;
}

.message-field-help {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: #64748b;
    font-size: .74rem;
}

.message-field-validation {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: .75rem;
}

.message-validation-summary.validation-summary-valid {
    display: none;
}

.message-validation-summary.validation-summary-errors {
    margin: 18px 22px 0;
    padding: 12px 15px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: .8rem;
}

.message-info-box {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 13px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-size: .78rem;
}

.message-character-count {
    color: #94a3b8;
    font-size: .72rem;
}

.message-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 17px 22px;
    background: #f8fafc;
}

.message-detail-card {
    max-width: 900px;
}

.message-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 21px;
    border-bottom: 1px solid #eef2f7;
}

.message-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-detail-sender {
    font-weight: 700;
}

.message-detail-title time {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: .73rem;
}

.message-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 700;
}

.message-detail-subject {
    padding: 20px 22px 14px;
}

    .message-detail-subject > span {
        color: #94a3b8;
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .message-detail-subject h1 {
        margin: 4px 0 0;
        font-size: 1.25rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

.message-detail-body {
    min-height: 160px;
    padding: 4px 22px 26px;
    color: #334155;
    font-size: .92rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 22px;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
}

/* Push reminder: uses same visual language as messaging */

#pushNotificationAlert .alert {
    border: 1px solid #fde68a !important;
    border-radius: 12px;
    background: #fffbeb;
    color: #78350f;
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

@media (max-width:768px) {

    .message-page {
        padding: 18px 0 92px;
    }

    .message-page-header {
        flex-direction: column;
        gap: 15px;
    }

        .message-page-header h1 {
            font-size: 1.4rem;
        }

    .message-header-actions {
        width: 100%;
    }

        .message-header-actions .btn {
            flex: 1;
            justify-content: center;
        }

    .message-toolbar {
        align-items: flex-end;
    }

    .message-summary {
        display: none;
    }

    .message-tabs {
        width: 100%;
    }

    .message-tab {
        flex: 1;
        justify-content: center;
    }

    .message-list-card, .message-compose-card, .message-detail-card {
        border-radius: 12px;
    }

    .message-row {
        min-height: 82px;
        padding: 13px 12px;
        gap: 10px;
    }

    .message-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .message-row-top {
        align-items: flex-start;
    }

        .message-row-top time {
            font-size: .68rem;
        }

    .message-sender {
        font-size: .86rem;
    }

    .message-subject {
        font-size: .82rem;
    }

    .message-row-arrow {
        display: none;
    }

    .message-form-section {
        padding: 17px 15px;
    }

    .message-form-actions {
        position: sticky;
        bottom: 70px;
        z-index: 20;
        padding: 12px 15px;
        background: rgba(248,250,252,.97);
        box-shadow: 0 -5px 15px rgba(15,23,42,.05);
    }

        .message-form-actions .btn {
            flex: 1;
        }

    .message-detail-header {
        padding: 15px;
    }

    .message-detail-subject {
        padding: 17px 15px 12px;
    }

    .message-detail-body {
        padding: 3px 15px 22px;
    }

    .message-detail-actions {
        padding: 13px 15px;
    }

        .message-detail-actions .btn {
            flex: 1;
        }

    .message-recipient-select {
        min-height: 220px;
    }
}

/* CSP-safe utility classes (avoid inline style attributes). */

.message-body-prewrap {
    white-space: pre-wrap;
}

.col-w-80 {
    width: 80px;
}

.col-w-100 {
    width: 100px;
}

.col-w-140 {
    width: 140px;
}

.col-min-w-260 {
    min-width: 260px;
}

/* =========================================================
   ADMIN DASHBOARD V2 - ANIMATED
   ========================================================= */

.dashboard-v2 .dashboard-panel {
    overflow: hidden;
    height: 100%;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .055);
}

.dashboard-v2 .dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 0;
}

    .dashboard-v2 .dashboard-panel-header h2 {
        margin: 2px 0 4px;
        font-size: 1.08rem;
    }

    .dashboard-v2 .dashboard-panel-header p {
        margin: 0;
        color: var(--admin-muted);
        font-size: .82rem;
    }

.dashboard-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #94A3B8;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.dashboard-chart-card {
    min-height: 340px;
}

.dashboard-chart-layout {
    display: grid;
    grid-template-columns: minmax(210px, .9fr) minmax(250px, 1.1fr);
    align-items: center;
    gap: 26px;
    padding: 22px;
}

.sms-chart-layout {
    grid-template-columns: minmax(175px, .85fr) minmax(190px, 1.15fr);
    gap: 20px;
}

.dashboard-donut {
    position: relative;
    width: min(100%, 230px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.dashboard-donut-sm {
    width: min(100%, 195px);
}

.dashboard-donut-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
    filter: drop-shadow(0 7px 13px rgba(15, 23, 42, .06));
}

.donut-track,
.donut-segment {
    fill: none;
    stroke-width: 13;
}

.donut-track {
    stroke: #EEF2F7;
}

.donut-segment {
    stroke-linecap: round;
    stroke-dasharray: 0 302;
    stroke-dashoffset: 0;
    transition: stroke-dasharray 1.05s cubic-bezier(.2,.8,.2,1), stroke-dashoffset 1.05s cubic-bezier(.2,.8,.2,1), opacity .18s ease, stroke-width .18s ease;
}

.dashboard-donut:hover .donut-segment {
    opacity: .86;
}

.donut-attendance-completed,
.donut-sms-sent {
    stroke: #16A34A;
}

.donut-attendance-pending,
.donut-sms-waiting {
    stroke: #F59E0B;
}

.donut-sms-failed {
    stroke: #DC2626;
}

.dashboard-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .dashboard-donut-center strong {
        color: var(--admin-text);
        font-size: 2rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.04em;
    }

    .dashboard-donut-center span {
        margin-top: 7px;
        color: var(--admin-muted);
        font-size: .75rem;
        font-weight: 600;
    }

.dashboard-chart-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sms-metrics {
    grid-template-columns: 1fr;
}

.chart-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    border-radius: 12px;
}

.chart-metric-link {
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

    .chart-metric-link:hover {
        color: inherit;
        background: #fff;
        border-color: #CBD5E1;
        transform: translateY(-1px);
    }

.chart-metric-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: .95rem;
}

    .chart-metric-icon.planned {
        color: #4056A1;
        background: #EEF2FF;
    }

    .chart-metric-icon.completed {
        color: #15803D;
        background: #DCFCE7;
    }

    .chart-metric-icon.pending {
        color: #B45309;
        background: #FEF3C7;
    }

    .chart-metric-icon.absent,
    .chart-metric-icon.failed {
        color: #B91C1C;
        background: #FEE2E2;
    }

.chart-metric > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-metric span:not(.chart-metric-icon) {
    color: var(--admin-muted);
    font-size: .72rem;
    white-space: nowrap;
}

.chart-metric strong {
    margin-top: 1px;
    color: var(--admin-text);
    font-size: 1.15rem;
    line-height: 1.1;
}

.dashboard-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 22px 20px;
    color: var(--admin-muted);
    font-size: .72rem;
}

    .dashboard-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-completed,
.legend-sent {
    background: #16A34A;
}

.legend-pending,
.legend-waiting {
    background: #F59E0B;
}

.legend-failed {
    background: #DC2626;
}

.dashboard-v2 .dashboard-table-wrap {
    margin-top: 14px;
    border-top: 1px solid #EEF2F7;
}

.dashboard-v2 .dashboard-table {
    min-width: 700px;
}

    .dashboard-v2 .dashboard-table th {
        padding: 11px 16px;
        background: #F8FAFC;
        color: var(--admin-muted);
        border-bottom: 1px solid var(--admin-border);
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .dashboard-v2 .dashboard-table td {
        padding: 12px 16px;
        border-color: #EEF2F7;
        font-size: .82rem;
    }

.dashboard-rate-cell {
    min-width: 170px;
}

.dashboard-table-progress {
    display: inline-flex;
    width: 105px;
    height: 7px;
    margin-right: 8px;
    vertical-align: middle;
    background: #EEF2F7;
}

    .dashboard-table-progress .progress-bar {
        width: 0;
        background: var(--admin-accent);
        transition: width .9s cubic-bezier(.2,.8,.2,1);
    }

.dashboard-rate-cell > span {
    color: var(--admin-muted);
    font-size: .72rem;
    font-weight: 700;
}

.dashboard-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--admin-muted);
}

    .dashboard-empty i {
        color: #94A3B8;
        font-size: 1.8rem;
    }

.dashboard-actions-card .dashboard-panel-header {
    padding-bottom: 14px;
}

.dashboard-quick-grid {
    display: grid;
    gap: 8px;
    padding: 0 16px 16px;
}

.quick-action-tile {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 61px;
    padding: 9px 11px;
    color: var(--admin-text);
    text-decoration: none;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    border-radius: 12px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

    .quick-action-tile:hover {
        color: var(--admin-text);
        background: #fff;
        border-color: #CBD5E1;
        box-shadow: 0 5px 14px rgba(15,23,42,.055);
        transform: translateX(2px);
    }

.quick-action-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1rem;
}

    .quick-action-icon.students {
        color: #4056A1;
        background: #EEF2FF;
    }

    .quick-action-icon.teachers {
        color: #7C3AED;
        background: #F3E8FF;
    }

    .quick-action-icon.timetable {
        color: #0284C7;
        background: #E0F2FE;
    }

    .quick-action-icon.messages {
        color: #059669;
        background: #D1FAE5;
    }

    .quick-action-icon.reports {
        color: #D97706;
        background: #FEF3C7;
    }

.quick-action-tile > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.quick-action-tile strong {
    font-size: .8rem;
    font-weight: 700;
}

.quick-action-tile small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: .68rem;
}

.quick-action-arrow {
    color: #CBD5E1;
    font-size: .75rem;
}

.dashboard-info-strip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 11px;
    font-size: .76rem;
    line-height: 1.45;
}

    .dashboard-info-strip > i {
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--admin-primary);
    }

@media (max-width: 1199.98px) {

    .dashboard-chart-card {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {

    .dashboard-v2 .dashboard-panel-header {
        padding: 16px 16px 0;
    }

        .dashboard-v2 .dashboard-panel-header .btn {
            min-height: 36px;
            padding: 7px 9px;
            font-size: .72rem;
        }

    .dashboard-chart-layout,
    .sms-chart-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 16px;
    }

    .dashboard-donut {
        width: min(72vw, 205px);
    }

    .dashboard-donut-sm {
        width: min(65vw, 185px);
    }

    .dashboard-chart-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sms-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-legend {
        padding: 0 16px 16px;
    }
}

@media (max-width: 420px) {

    .dashboard-chart-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-v2 .dashboard-panel-header {
        gap: 10px;
    }

        .dashboard-v2 .dashboard-panel-header h2 {
            font-size: 1rem;
        }
}

@media (prefers-reduced-motion: reduce) {

    .donut-segment,
    .dashboard-table-progress .progress-bar,
    .quick-action-tile,
    .chart-metric-link {
        transition: none !important;
    }
}

/* Veli paneli - Modern üst navbar */

body.role-parent header .navbar {
    background: linear-gradient( 110deg, #12356b 0%, #2056a3 55%, #3478ce 100% ) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 18px rgba(18, 53, 107, .18) !important;
    min-height: 68px;
}

    body.role-parent header .navbar .navbar-brand {
        color: #ffffff !important;
        font-size: 1.08rem;
        font-weight: 700;
        letter-spacing: .2px;
    }

    body.role-parent header .navbar .nav-link {
        color: rgba(255, 255, 255, .88) !important;
        font-weight: 500;
        border-radius: 8px;
        transition: background-color .2s, color .2s;
    }

        body.role-parent header .navbar .nav-link:hover,
        body.role-parent header .navbar .nav-link:focus-visible {
            color: #ffffff !important;
            background-color: rgba(255, 255, 255, .13);
        }

    body.role-parent header .navbar .navbar-toggler {
        border-color: rgba(255, 255, 255, .45);
    }

    body.role-parent header .navbar .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

@media (max-width: 767.98px) {

    body.role-parent header .navbar .navbar-collapse {
        padding: 12px 0;
    }

    body.role-parent header .navbar .nav-link {
        padding: 11px 13px;
    }
}

/* Öğrenci paneli - Modern üst navbar */

body.role-student header .navbar {
    background: linear-gradient( 110deg, #115e59 0%, #0f766e 55%, #0d9488 100% ) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 18px rgba(15, 118, 110, .20) !important;
    min-height: 68px;
}

    body.role-student header .navbar .navbar-brand {
        color: #ffffff !important;
        font-size: 1.08rem;
        font-weight: 700;
        letter-spacing: .2px;
    }

    body.role-student header .navbar .nav-link {
        color: rgba(255, 255, 255, .88) !important;
        font-weight: 500;
        border-radius: 8px;
        transition: background-color .2s, color .2s;
    }

        body.role-student header .navbar .nav-link:hover,
        body.role-student header .navbar .nav-link:focus-visible {
            color: #ffffff !important;
            background-color: rgba(255, 255, 255, .13);
        }

    body.role-student header .navbar .navbar-toggler {
        border-color: rgba(255, 255, 255, .45);
    }

    body.role-student header .navbar .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

@media (max-width: 767.98px) {

    body.role-student header .navbar .navbar-collapse {
        padding: 12px 0;
    }

    body.role-student header .navbar .nav-link {
        padding: 11px 13px;
    }
}

/* Öğrenci paneli - Yeşil karşılama alanı */

body.role-student .dashboard-hero,
body.role-student .student-hero {
    background: linear-gradient( 110deg, #115e59 0%, #0f766e 55%, #0d9488 100% ) !important;
    box-shadow: 0 12px 30px rgba(15, 118, 110, .15);
}

    /* Başlık ve açıklama */

    body.role-student .dashboard-hero h1,
    body.role-student .student-hero h1,
    body.role-student .dashboard-hero p,
    body.role-student .student-hero p {
        color: #ffffff;
    }

/* =========================================================
   STUDENT CALL - ADMIN DASHBOARD
   ========================================================= */

.student-call-panel {
    overflow: visible !important;
}

.student-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--admin-border);
}

.student-call-title-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
}

    .student-call-title-wrap h2 {
        margin: 1px 0 3px;
        font-size: 1.05rem;
    }

    .student-call-title-wrap p {
        margin: 0;
        color: var(--admin-muted);
        font-size: .8rem;
    }

.student-call-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 1.1rem;
}

.student-call-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: .7rem;
    font-weight: 700;
}

.student-call-body {
    padding: 18px 22px 20px;
}

.student-call-token-form {
    display: none;
}

.student-call-search-wrap {
    position: relative;
    max-width: 720px;
}

    .student-call-search-wrap > i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        z-index: 2;
    }

.student-call-search {
    min-height: 48px;
    padding-left: 42px;
    padding-right: 44px;
    border-radius: 12px !important;
}

.student-call-spinner {
    position: absolute;
    right: 15px;
    top: 16px;
    display: none;
    color: var(--admin-primary);
}

    .student-call-spinner.active {
        display: inline-block;
    }

.student-call-hint {
    margin-top: 6px;
    color: #94a3b8;
    font-size: .7rem;
}

.student-call-feedback {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .78rem;
}

    .student-call-feedback.show {
        display: block;
    }

    .student-call-feedback.success {
        background: #ecfdf5;
        color: #047857;
        border: 1px solid #a7f3d0;
    }

    .student-call-feedback.error {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
    }

.student-call-results {
    max-width: 720px;
    margin-top: 10px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

    .student-call-results.show {
        display: block;
    }

.student-call-result {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

    .student-call-result:last-child {
        border-bottom: 0;
    }

    .student-call-result:hover {
        background: #f8fafc;
    }

.student-call-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--admin-primary);
    font-size: .8rem;
    font-weight: 800;
}

.student-call-student {
    min-width: 0;
}

    .student-call-student strong {
        display: block;
        color: var(--admin-text);
        font-size: .82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .student-call-student small {
        display: block;
        margin-top: 2px;
        color: var(--admin-muted);
        font-size: .7rem;
    }

.student-call-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px !important;
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 700;
}

.student-call-empty {
    padding: 18px;
    text-align: center;
    color: var(--admin-muted);
    font-size: .78rem;
}

@media (max-width:576px) {

    .student-call-header {
        align-items: flex-start;
        padding: 16px;
    }

    .student-call-live-badge {
        display: none;
    }

    .student-call-body {
        padding: 15px 16px;
    }

    .student-call-result {
        grid-template-columns: 38px 1fr;
    }

    .student-call-button {
        grid-column: 1/-1;
        width: 100%;
        justify-content: center;
    }

    .student-call-avatar {
        width: 36px;
        height: 36px;
    }
}

/* Parent & Student portal dashboards — isolated styling */

.portal-home {
    --portal-ink: #172a45;
    --portal-muted: #63748b;
    color: var(--portal-ink);
}

    .portal-home .portal-hero {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        background: linear-gradient(115deg,#16469a 0%,#2468c8 63%,#4a8deb 100%);
        border-radius: 24px;
        padding: clamp(24px,4vw,48px);
        color: #fff;
        box-shadow: 0 16px 34px rgba(24,78,157,.15);
    }

    .portal-home.portal-student .portal-hero {
        background: linear-gradient(110deg,#115e59 0%,#0f766e 55%,#0d9488 100%);
        box-shadow: 0 12px 30px rgba(15,118,110,.20);
    }

    .portal-home .portal-hero-content {
        position: relative;
        z-index: 1;
        max-width: 670px;
    }

    .portal-home .portal-eyebrow {
        display: inline-flex;
        align-items: center;
        letter-spacing: .12em;
        font-size: .71rem;
        font-weight: 750;
        color: #e3edff;
        margin-bottom: 14px;
    }

    .portal-home .portal-hero h1 {
        font-size: clamp(1.8rem,3.2vw,2.65rem);
        font-weight: 800;
        letter-spacing: -.03em;
        margin: 0 0 12px;
    }

    .portal-home .portal-hero p {
        color: #e9f1ff;
        line-height: 1.65;
        margin: 0 0 22px;
        max-width: 570px;
    }

    .portal-home .portal-hero-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

        .portal-home .portal-hero-actions .btn {
            border-radius: 11px;
            padding: 10px 17px;
            font-weight: 650;
        }

    .portal-home .portal-hero-symbol {
        position: absolute;
        right: -12px;
        bottom: -82px;
        font-size: 230px;
        line-height: 1;
        color: rgba(255,255,255,.09);
        transform: rotate(-12deg);
        pointer-events: none;
    }

    .portal-home .portal-section {
        margin-top: 34px;
    }

    .portal-home .portal-section-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 17px;
    }

    .portal-home .portal-kicker {
        display: block;
        font-size: .69rem;
        font-weight: 800;
        letter-spacing: .13em;
        color: #3274c8;
        margin-bottom: 6px;
    }

    .portal-home .portal-section-heading h2 {
        font-size: 1.35rem;
        font-weight: 800;
        letter-spacing: -.02em;
        margin: 0;
    }

    .portal-home .portal-section-heading p {
        color: var(--portal-muted);
        font-size: .88rem;
        margin: 0;
    }

    .portal-home .portal-actions {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 13px;
    }

    .portal-home .portal-actions-three {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .portal-home .portal-action {
        display: flex;
        flex-direction: column;
        position: relative;
        gap: 16px;
        min-height: 166px;
        padding: 19px;
        border: 1px solid #e2e9f3;
        background: #fff;
        border-radius: 18px;
        text-decoration: none;
        color: var(--portal-ink);
        box-shadow: 0 6px 20px rgba(26,52,89,.035);
        transition: transform .2s,box-shadow .2s,border-color .2s;
    }

        .portal-home .portal-action:hover, .portal-home .portal-action:focus-visible {
            transform: translateY(-3px);
            border-color: #a8c8ee;
            box-shadow: 0 12px 25px rgba(26,52,89,.09);
        }

    .portal-home .portal-action-icon, .portal-home .portal-feature-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 47px;
        height: 47px;
        border-radius: 14px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .portal-home .portal-icon-blue {
        color: #2467d2;
        background: #eaf2ff;
    }

    .portal-home .portal-icon-violet {
        color: #7044c9;
        background: #f0ebff;
    }

    .portal-home .portal-icon-amber {
        color: #b87514;
        background: #fff5df;
    }

    .portal-home .portal-icon-green {
        color: #168568;
        background: #e5f8f1;
    }

    .portal-home .portal-action strong {
        display: block;
        font-size: .93rem;
        line-height: 1.3;
    }

    .portal-home .portal-action small {
        display: block;
        color: var(--portal-muted);
        font-size: .76rem;
        line-height: 1.4;
        margin-top: 6px;
    }

    .portal-home .portal-action-arrow {
        position: absolute;
        top: 20px;
        right: 19px;
        color: #93a7c0;
    }

    .portal-home .portal-feature-card {
        position: relative;
        overflow: hidden;
        border: 1px solid #e2e9f3;
        border-radius: 20px;
        padding: 27px;
        background: linear-gradient(145deg,#fff 40%,#f2f7ff);
        min-height: 276px;
        box-shadow: 0 6px 24px rgba(26,52,89,.04);
    }

    .portal-home .portal-feature-icon {
        margin-bottom: 19px;
    }

    .portal-home .portal-feature-card h2 {
        font-size: 1.42rem;
        font-weight: 800;
        margin: 0 0 12px;
    }

    .portal-home .portal-feature-card p {
        max-width: 320px;
        color: var(--portal-muted);
        line-height: 1.65;
        font-size: .9rem;
        margin-bottom: 20px;
    }

    .portal-home .portal-feature-button {
        position: relative;
        z-index: 1;
        border-radius: 10px;
        padding: 10px 16px;
        font-weight: 650;
    }

    .portal-home .portal-feature-decoration {
        position: absolute;
        right: -12px;
        bottom: -27px;
        font-size: 150px;
        line-height: 1;
        color: rgba(50,116,200,.065);
        pointer-events: none;
    }

    .portal-home .portal-mini-link {
        display: flex;
        align-items: center;
        gap: 14px;
        border: 1px solid #e2e9f3;
        border-radius: 15px;
        padding: 16px 18px;
        background: #fff;
        text-decoration: none;
        color: var(--portal-ink);
    }

        .portal-home .portal-mini-link > i:first-child {
            font-size: 1.3rem;
            color: #3274c8;
        }

        .portal-home .portal-mini-link strong, .portal-home .portal-mini-link small {
            display: block;
        }

        .portal-home .portal-mini-link small {
            color: var(--portal-muted);
            font-size: .77rem;
            margin-top: 3px;
        }

    .portal-home .portal-calendar-shell {
        border: 1px solid #e2e9f3;
        border-radius: 20px;
        padding: 14px;
        background: #fff;
        box-shadow: 0 6px 24px rgba(26,52,89,.04);
        overflow: hidden;
    }

        .portal-home .portal-calendar-shell .card {
            box-shadow: none !important;
            border: 0 !important;
        }

@media (max-width:991.98px) {

    .portal-home .portal-actions, .portal-home .portal-actions-three {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .portal-home .portal-section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width:575.98px) {

    .portal-home .portal-hero {
        border-radius: 18px;
        padding: 25px 20px;
    }

    .portal-home .portal-hero-symbol {
        font-size: 145px;
        right: -20px;
        bottom: -35px;
    }

    .portal-home .portal-hero-actions .btn {
        width: 100%;
    }

    .portal-home .portal-actions, .portal-home .portal-actions-three {
        grid-template-columns: 1fr;
    }

    .portal-home .portal-action {
        min-height: unset;
        flex-direction: row;
        align-items: center;
        padding: 15px;
        gap: 13px;
    }

    .portal-home .portal-action-arrow {
        position: static;
        margin-left: auto;
    }

    .portal-home .portal-feature-card {
        min-height: unset;
        padding: 22px;
    }

    .portal-home .portal-calendar-shell {
        padding: 7px;
    }
}

@media (prefers-reduced-motion:reduce) {

    .portal-home .portal-action {
        transition: none;
    }

        .portal-home .portal-action:hover {
            transform: none;
        }
}
