/* Rifilifee — Admin panel */
.admin-app {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    background: #eef2f6;
    color: #1e293b;
    min-height: 100vh;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0a2540 0%, #0c2d48 100%);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.35rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00a896, #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.admin-sidebar__brand strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}

.admin-sidebar__brand span {
    font-size: 0.72rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-sidebar__nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
}

.admin-sidebar__group-label {
    display: block;
    padding: 0.85rem 0.85rem 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.admin-sidebar__group-label:first-child {
    padding-top: 0.25rem;
}

.admin-sidebar__group-label--active {
    color: rgba(255, 255, 255, 0.85);
}

.admin-sidebar__link--sub {
    padding-left: 2rem;
    font-size: 0.88rem;
}

.admin-sidebar__link--sub .admin-sidebar__icon {
    font-size: 0.95rem;
}

.hospital-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hospital-module-card {
    display: block;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hospital-module-card:hover {
    border-color: #00a896;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}

.hospital-module-card strong {
    display: block;
    font-size: 0.95rem;
}

.hospital-module-card span {
    font-size: 0.8rem;
    color: #64748b;
}

.hospital-form-split {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 900px) {
    .hospital-form-split {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.admin-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-sidebar__link--active {
    background: linear-gradient(90deg, rgba(0, 168, 150, 0.35), rgba(0, 119, 182, 0.25));
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #00a896;
}

.admin-sidebar__icon {
    width: 1.25rem;
    text-align: center;
    opacity: 0.9;
    font-size: 0.95rem;
}

.admin-sidebar__foot {
    padding: 1rem 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-sidebar__link--muted {
    opacity: 0.7;
    font-size: 0.88rem;
}

/* Main */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-topbar__lead {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.admin-topbar__titles {
    min-width: 0;
}

.admin-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.admin-nav-toggle:hover {
    border-color: #0077b6;
    background: rgba(0, 119, 182, 0.04);
}

.admin-nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #0c2d48;
    transition: transform 0.2s, opacity 0.2s;
}

.admin-shell.is-nav-open .admin-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.admin-shell.is-nav-open .admin-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.admin-shell.is-nav-open .admin-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-nav-backdrop {
    display: none;
}

body.admin-nav-open {
    overflow: hidden;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c2d48;
}

.admin-topbar__meta {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0.2rem 0 0;
}

.admin-topbar__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.admin-topbar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077b6, #00a896);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.admin-content {
    padding: 1.5rem 1.75rem 2.5rem;
    flex: 1;
}

/* KPI cards */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.admin-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 77, 118, 0.08);
}

.admin-kpi__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-kpi--blue .admin-kpi__icon { background: rgba(0, 119, 182, 0.12); }
.admin-kpi--teal .admin-kpi__icon { background: rgba(0, 168, 150, 0.12); }
.admin-kpi--amber .admin-kpi__icon { background: rgba(245, 158, 11, 0.15); }
.admin-kpi--rose .admin-kpi__icon { background: rgba(244, 63, 94, 0.12); }
.admin-kpi--violet .admin-kpi__icon { background: rgba(139, 92, 246, 0.12); }

.admin-kpi strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0c2d48;
    line-height: 1.1;
}

.admin-kpi span {
    font-size: 0.82rem;
    color: #64748b;
}

.admin-kpi small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Charts */
.admin-grid-2 {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
    .admin-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-card h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0c2d48;
}

.admin-card__sub {
    margin: -0.5rem 0 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.admin-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 36px;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
}

.admin-bar-row label {
    color: #475569;
    font-weight: 500;
    text-transform: capitalize;
}

.admin-bar-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.admin-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0077b6, #00a896);
    min-width: 4px;
    transition: width 0.5s ease;
}

.admin-bar-fill--amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.admin-bar-fill--violet { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

.admin-bar-value {
    text-align: right;
    font-weight: 700;
    color: #0c2d48;
}

.admin-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 140px;
    padding-top: 0.5rem;
}

.admin-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.admin-chart-col__bar {
    width: 100%;
    max-width: 48px;
    background: linear-gradient(180deg, #00a896, #0077b6);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}

.admin-chart-col span {
    font-size: 0.68rem;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
}

/* Tables in admin */
.admin-app table.data {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.admin-app table.data th {
    background: #f8fafc;
}

.admin-app .btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
}

.admin-app .btn-solid {
    background: #0077b6;
    color: #fff;
}

.admin-app .btn-solid:hover {
    background: #005f92;
}

.admin-app .btn-accent {
    background: #00a896;
    color: #fff;
}

.admin-app .btn-accent:hover {
    background: #008f7a;
}

.admin-app .btn-outline {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.admin-quick {
    display: block;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0c2d48;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.15s, background 0.15s;
}

.admin-quick:hover {
    border-color: #00a896;
    background: #fff;
}

.admin-quick span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.25rem;
}

.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-page-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.admin-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.admin-badge--pending { background: #fef3c7; color: #92400e; }
.admin-badge--confirmed { background: #d1fae5; color: #065f46; }
.admin-badge--cancelled { background: #fee2e2; color: #991b1b; }
.admin-badge--completed { background: #dbeafe; color: #1e40af; }

.admin-login-page {
    margin: 0;
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
    position: relative;
    background-color: #0c2d48;
    background-image: var(--admin-login-bg, linear-gradient(135deg, #0c2d48 0%, #0077b6 50%, #00a896 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.admin-login-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(12, 45, 72, 0.88) 0%,
        rgba(0, 119, 182, 0.55) 42%,
        rgba(0, 168, 150, 0.35) 100%
    );
    pointer-events: none;
}

.admin-login-wrap::after {
    content: 'Trusted hospital care · Admin portal';
    position: absolute;
    left: clamp(1.5rem, 5vw, 4rem);
    bottom: clamp(1.5rem, 4vh, 3rem);
    max-width: min(28rem, 55vw);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.admin-login-card {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

@media (max-width: 720px) {
    .admin-login-wrap {
        justify-content: center;
        background-attachment: scroll;
    }

    .admin-login-wrap::after {
        display: none;
    }
}

.admin-login-card h2 {
    margin: 0 0 0.5rem;
    color: #0c2d48;
}

.admin-app .flash {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.admin-app .flash-success {
    background: #d8f3dc;
    color: #1b4332;
}

.admin-app .flash-error {
    background: #ffe5e5;
    color: #9b2226;
}

/* User login — role selection */
.user-login-page {
    margin: 0;
}

.user-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background-color: #0c2d48;
    background-image: var(--admin-login-bg, linear-gradient(135deg, #0c2d48 0%, #0077b6 50%, #00a896 100%));
    background-size: cover;
    background-position: center;
}

.user-login-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 45, 72, 0.9) 0%, rgba(0, 119, 182, 0.75) 100%);
    pointer-events: none;
}

.user-login-panel {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.user-login-panel--narrow {
    width: min(420px, 100%);
}

.user-login-panel__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.user-login-panel__head h1 {
    margin: 0.5rem 0 0;
    font-size: 1.45rem;
    color: #0c2d48;
}

.user-login-panel__subtitle {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    text-align: center;
}

.user-login-role-badge {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0c2d48;
    text-align: center;
}

.user-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.user-role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.1rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.user-role-card:hover {
    border-color: #00a896;
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.12);
    transform: translateY(-2px);
}

.user-role-card__icon {
    font-size: 2rem;
    line-height: 1;
}

.user-role-card__icon--lg {
    font-size: 2.75rem;
    display: block;
    margin-bottom: 0.25rem;
}

.user-role-card strong {
    font-size: 0.95rem;
    color: #0c2d48;
}

.user-role-card__desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.user-login-panel__admin {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.user-login-back {
    text-align: center;
    margin: 1.15rem 0 0;
    font-size: 0.88rem;
}

.user-login-back a {
    color: #0077b6;
}

.user-login-hint {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    text-align: center;
}

.user-login-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.user-login-tier {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.user-login-tier:hover {
    border-color: #00a896;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.08);
}

.user-login-tier--active {
    border-color: #00a896;
    background: rgba(0, 168, 150, 0.06);
}

.user-login-tier__num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    border-radius: 50%;
    background: #0077b6;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.user-login-tier strong {
    display: block;
    font-size: 0.9rem;
}

.user-login-tier > div > span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.user-login-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.6rem;
}

.user-login-team {
    margin-bottom: 1.5rem;
}

.user-login-team--rifilifee {
    padding-top: 1.35rem;
    border-top: 1px solid #e2e8f0;
}

.user-login-team__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0c2d48;
}

.user-login-team__desc {
    margin: 0.25rem 0 0.85rem;
    font-size: 0.82rem;
}

.user-login-team .user-login-hint {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.user-role-card--branch,
.user-role-card--agent {
    border-color: #cbd5e1;
    background: #fff;
}

.admin-spreadsheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.admin-spreadsheet-import {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-spreadsheet-import__label {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.admin-spreadsheet-import__input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.admin-spreadsheet-hint {
    margin: 0 0 1rem;
    font-size: 0.78rem;
}

.admin-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* All roles on one screen — no scroll */
.user-login-page--teams {
    overflow: hidden;
}

.user-login-page--teams .user-login-wrap {
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0.65rem;
    overflow: hidden;
}

.user-login-panel--teams {
    width: min(920px, 100%);
    max-height: calc(100dvh - 1.3rem);
    padding: 1rem 1.15rem 0.85rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-login-panel__head--compact {
    margin-bottom: 0.65rem;
    flex-shrink: 0;
}

.user-login-panel__head--compact .user-login-panel__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.user-login-teams-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    flex: 1;
    min-height: 0;
}

.user-login-page--teams .user-login-team {
    margin-bottom: 0;
    min-width: 0;
}

.user-login-page--teams .user-login-team--hospital {
    border-left: 1px solid #e2e8f0;
    padding-left: 0.85rem;
}

.user-login-page--teams .user-login-team--rifilifee {
    padding-top: 0;
    border-top: none;
}

.user-login-page--teams .user-login-team__title {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    text-align: center;
}

.user-role-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0;
}

.user-role-card--compact {
    padding: 0.45rem 0.35rem;
    border-radius: 10px;
    gap: 0.2rem;
}

.user-role-card--compact .user-role-card__icon {
    font-size: 1.35rem;
}

.user-role-card--compact strong {
    font-size: 0.72rem;
    line-height: 1.2;
}

.user-role-card--compact .user-role-card__desc {
    display: none;
}

.user-login-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.user-login-panel__foot .user-login-hint {
    margin: 0;
    font-size: 0.75rem;
    text-align: left;
}

.user-login-back__link {
    font-size: 0.78rem;
    color: #0077b6;
    text-decoration: none;
    white-space: nowrap;
}

.user-login-back__link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .user-login-page--teams {
        overflow: auto;
    }

    .user-login-page--teams .user-login-wrap {
        max-height: none;
        min-height: 100dvh;
        overflow: auto;
        padding: 0.75rem;
    }

    .user-login-panel--teams {
        max-height: none;
        overflow: visible;
    }

    .user-login-teams-row {
        grid-template-columns: 1fr;
    }

    .user-login-page--teams .user-login-team--hospital {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 0.75rem;
    }

    .user-login-page--teams .user-login-team--rifilifee {
        border-top: none;
        padding-top: 0;
    }

    .user-login-panel__foot {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-login-panel__foot .user-login-hint {
        text-align: center;
    }
}

.portal-task-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.portal-task-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.portal-tele-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portal-tele-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.portal-tele-card strong {
    display: block;
}

.portal-tele-card .muted {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.portal-role-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(0, 168, 150, 0.15);
    color: #00796b;
    margin-right: 0.5rem;
}

.admin-kpi__label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-app form.stacked label {
    display: block;
    font-weight: 600;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.88rem;
    color: #334155;
}

.admin-app form.stacked input,
.admin-app form.stacked select,
.admin-app form.stacked textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

.admin-app .inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-actions-inline {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 0.35rem;
}

.admin-actions-inline form {
    margin: 0;
}

.admin-hospital-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe5ef;
    background: #fff;
}

.admin-hospital-thumb--empty {
    background: linear-gradient(145deg, #eef5fb, #e4eef7);
    color: #0c2d48;
    font-size: 1.25rem;
}

.admin-app .stars {
    color: #e9a319;
}

/* Dashboard hero & analytics */
.admin-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2540 0%, #0c4a6e 45%, #0077b6 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 77, 118, 0.25);
}

.admin-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.admin-hero p {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.88;
}

.admin-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.admin-pill--accent {
    background: rgba(0, 168, 150, 0.35);
    border-color: rgba(0, 168, 150, 0.5);
}

.admin-pill--link {
    text-decoration: none;
    background: #fff;
    color: #0c4a6e;
    border-color: #fff;
}

.admin-pill--link:hover {
    background: #e0f2fe;
}

.admin-kpi-grid--dashboard {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.admin-chart-bars--tall {
    height: 180px;
}

.admin-chart-col__bar--revenue {
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.admin-chart-col span strong {
    color: #0c2d48;
    font-size: 0.72rem;
}

.admin-card--chart {
    min-height: 280px;
}

.admin-metric-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    align-items: center;
    justify-content: space-around;
}

.admin-metric-ring {
    --ring-pct: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(#0077b6 calc(var(--ring-pct) * 1%), #e2e8f0 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.admin-metric-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: #fff;
    border-radius: 50%;
}

.admin-metric-ring--teal {
    background: conic-gradient(#00a896 calc(var(--ring-pct) * 1%), #e2e8f0 0);
}

.admin-metric-ring__value,
.admin-metric-ring__label {
    position: relative;
    z-index: 1;
}

.admin-metric-ring__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c2d48;
}

.admin-metric-ring__label {
    font-size: 0.62rem;
    color: #64748b;
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
}

.admin-metric-stat {
    text-align: center;
    padding: 0.5rem 1rem;
}

.admin-metric-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c2d48;
}

.admin-metric-stat span {
    font-size: 0.78rem;
    color: #64748b;
}

.admin-quick-grid--rich {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.admin-quick--rich {
    text-align: center;
    padding: 1.1rem 0.75rem;
}

.admin-quick__icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.admin-quick--blue { border-color: rgba(0, 119, 182, 0.25); background: linear-gradient(180deg, #f0f9ff, #fff); }
.admin-quick--teal { border-color: rgba(0, 168, 150, 0.25); background: linear-gradient(180deg, #f0fdfa, #fff); }
.admin-quick--violet { border-color: rgba(124, 58, 237, 0.2); background: linear-gradient(180deg, #f5f3ff, #fff); }
.admin-quick--amber { border-color: rgba(245, 158, 11, 0.25); background: linear-gradient(180deg, #fffbeb, #fff); }
.admin-quick--rose { border-color: rgba(244, 63, 94, 0.2); background: linear-gradient(180deg, #fff1f2, #fff); }

.admin-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
}

.admin-empty__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.admin-empty p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .admin-nav-toggle {
        display: flex;
    }

    .admin-shell {
        flex-direction: row;
    }

    .admin-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: min(280px, 88vw);
        height: 100vh;
        height: 100dvh;
        z-index: 50;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    }

    .admin-shell.is-nav-open .admin-sidebar {
        display: flex;
    }

    .admin-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(12, 45, 72, 0.45);
        z-index: 45;
    }

    .admin-shell.is-nav-open .admin-nav-backdrop {
        display: block;
    }

    .admin-sidebar__nav {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 1rem 0.75rem;
        overflow-y: auto;
    }

    .admin-sidebar__foot {
        display: flex;
    }

    .admin-main {
        width: 100%;
        min-width: 0;
    }

    .admin-topbar {
        padding: 0.75rem 1rem;
        z-index: 30;
    }

    .admin-nav-toggle {
        z-index: 31;
    }

    .admin-topbar h1 {
        font-size: 1.1rem;
    }

    .admin-topbar__meta {
        font-size: 0.82rem;
    }
}

.admin-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.admin-filter-tabs__link {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.admin-filter-tabs__link:hover {
    border-color: #00a896;
    color: #00796b;
}

.admin-filter-tabs__link--active {
    background: #0077b6;
    border-color: #0077b6;
    color: #fff;
}

.admin-filter-tabs__link--active .muted {
    color: rgba(255, 255, 255, 0.85);
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.admin-role-badge--doctor { background: #dbeafe; color: #1e40af; }
.admin-role-badge--nurse { background: #ccfbf1; color: #0f766e; }
.admin-role-badge--reception { background: #fef3c7; color: #92400e; }
.admin-role-badge--patient { background: #ede9fe; color: #5b21b6; }

.admin-role-summary {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.65;
}

.admin-role-summary a {
    margin-left: 0.35rem;
    font-size: 0.85rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.hospital-module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}

.hospital-module-tabs__link {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.hospital-module-tabs__link:hover {
    border-color: #0077b6;
    color: #0077b6;
}

.hospital-module-tabs__link--active {
    background: #0077b6;
    border-color: #0077b6;
    color: #fff;
}

.admin-form-section {
    margin-bottom: 1.25rem;
}

.admin-form-section__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #0f172a;
}

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

.admin-form-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.admin-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-app .employee-password-card {
    max-width: 100%;
}

.employee-app .employee-password-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .admin-form-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .employee-app .employee-password-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .employee-app .employee-password-fields {
        grid-template-columns: 1fr;
    }
}

.admin-employee-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #334155;
}

.admin-employee-form input,
.admin-employee-form select,
.admin-employee-form textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.employee-photo-upload {
    display: block;
    max-width: 420px;
    min-height: 160px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.employee-photo-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.employee-photo-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

.employee-photo-upload__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.employee-photo-upload__preview {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.employee-list-photo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.employee-list-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 1.1rem;
}

.admin-table-scroll {
    overflow-x: auto;
}

.data--employees {
    min-width: 1400px;
    font-size: 0.86rem;
}

.data--agents {
    min-width: 2200px;
    font-size: 0.82rem;
}

.data--agents th,
.data--agents td {
    white-space: nowrap;
    vertical-align: middle;
}

.data--employees th,
.data--employees td {
    white-space: nowrap;
    vertical-align: middle;
}

.data--employees .employee-address-cell {
    white-space: normal;
    min-width: 120px;
    max-width: 200px;
}

.data--employees .employee-cell-stack {
    white-space: normal;
}

.data--employees .employee-cell-stack span {
    display: block;
}

.employee-list-meta {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.employee-actions-cell {
    white-space: nowrap !important;
    width: 1%;
    padding-right: 0.5rem !important;
}

.admin-icon-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-icon-actions__form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.admin-icon-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-icon-btn:hover {
    border-color: #0077b6;
    background: #f0f9ff;
    color: #0077b6;
}

.admin-icon-btn--edit {
    background: #0077b6;
    border-color: #0077b6;
    color: #fff;
}

.admin-icon-btn--edit:hover {
    background: #005f92;
    border-color: #005f92;
    color: #fff;
}

.admin-icon-btn--toggle:hover {
    border-color: #00a896;
    background: #ecfdf5;
    color: #00796b;
}

.admin-icon-btn--delete {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff5f5;
}

.admin-icon-btn--delete:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.admin-icon-btn--view {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.admin-icon-btn--view:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.admin-icon-btn--login {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.admin-icon-btn--login:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

/* Prevent global .btn padding on icon-only controls */
.admin-icon-actions .btn.admin-icon-btn,
.admin-app .admin-icon-actions .admin-icon-btn {
    padding: 0;
    min-width: 2rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    transform: none;
    box-shadow: none;
}

.admin-icon-actions .btn.admin-icon-btn:hover,
.admin-app .admin-icon-actions .admin-icon-btn:hover {
    transform: none;
}

.btn-sm {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
}

/* Agent portal — family module */
.agent-family-toolbar {
    margin: -0.25rem 0 1rem;
}

.agent-family-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5e6ad2;
    text-decoration: none;
}

.agent-family-back:hover {
    color: #4f59c0;
    text-decoration: underline;
}

.agent-family-flash {
    margin-bottom: 1rem;
}

.agent-family-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.35rem 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.agent-family-card--table {
    padding: 0;
    overflow: hidden;
}

.agent-family-card--table .agent-family-card__head {
    margin: 0;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.agent-family-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #eef2ff;
}

.agent-family-card__head--split {
    justify-content: space-between;
    flex-wrap: wrap;
}

.agent-family-card__head-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-family-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.agent-family-card__head h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Head row: photo + fields side by side */
.agent-family-head-layout {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
}

.agent-family-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.agent-family-upload {
    display: block;
    width: 100%;
    max-width: 168px;
    height: 168px;
    border: 2px dashed #c7d2fe;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-family-upload:hover {
    border-color: #7b86e8;
    box-shadow: 0 0 0 3px rgba(123, 134, 232, 0.12);
}

.agent-family-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.agent-family-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.agent-family-upload__cam {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.agent-family-upload__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-family-upload-btn {
    display: inline-block;
    width: 100%;
    max-width: 168px;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    box-shadow: 0 4px 12px rgba(94, 106, 210, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.agent-family-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(94, 106, 210, 0.45);
}

.agent-family-upload-hint {
    margin: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
}

/* Form fields */
.agent-family-fields {
    display: grid;
    gap: 1rem 1.15rem;
}

.agent-family-fields--3 {
    grid-template-columns: repeat(3, 1fr);
}

.agent-family-fields--4 {
    grid-template-columns: repeat(4, 1fr);
}

.agent-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.agent-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
}

.agent-field .req {
    color: #ef4444;
}

.agent-family-form input,
.agent-family-form select,
.agent-family-form textarea {
    width: 100%;
    padding: 0.62rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-family-form input::placeholder {
    color: #94a3b8;
}

.agent-family-form input:hover,
.agent-family-form select:hover {
    border-color: #94a3b8;
}

.agent-family-form input:focus,
.agent-family-form select:focus {
    outline: none;
    border-color: #7b86e8;
    box-shadow: 0 0 0 3px rgba(123, 134, 232, 0.18);
}

.agent-field--span2 {
    grid-column: span 2;
}

.agent-field--full {
    grid-column: 1 / -1;
}

/* Members */
.agent-family-add-member-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    box-shadow: 0 4px 12px rgba(94, 106, 210, 0.3);
}

.agent-family-add-member-btn:hover {
    filter: brightness(1.05);
}

.agent-family-members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-family-member-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem 1.15rem;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.agent-family-member-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.agent-family-member-card__head strong {
    font-size: 0.92rem;
    color: #5e6ad2;
}

.agent-family-member-remove {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.agent-family-member-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* Footer submit */
.agent-family-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    margin-top: 0.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.agent-family-footer__cancel {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.agent-family-footer__cancel:hover {
    background: #f8fafc;
    color: #334155;
}

.agent-family-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    box-shadow: 0 6px 20px rgba(94, 106, 210, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.agent-family-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 106, 210, 0.5);
}

/* List page */
.agent-family-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.agent-family-stats {
    display: flex;
    gap: 0.75rem;
}

.agent-family-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.5rem;
    padding: 0.65rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.agent-family-stat strong {
    font-size: 1.35rem;
    color: #5e6ad2;
    line-height: 1.2;
}

.agent-family-stat span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agent-family-add-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    box-shadow: 0 4px 14px rgba(94, 106, 210, 0.35);
}

.agent-family-add-btn:hover {
    color: #fff;
    filter: brightness(1.05);
}

.agent-family-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.agent-family-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.agent-family-empty h3 {
    margin: 0 0 0.35rem;
    color: #1e3a5f;
}

.agent-family-empty p {
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.92rem;
}

.agent-family-code {
    font-size: 0.82rem;
    padding: 0.2rem 0.45rem;
    background: #eef2ff;
    color: #5e6ad2;
    border-radius: 6px;
}

.agent-family-code--lg {
    font-size: 0.88rem;
    padding: 0.25rem 0.55rem;
}

.agent-family-cell-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.agent-family-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.agent-family-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    font-size: 1rem;
}

.agent-family-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #eef2ff;
    color: #5e6ad2;
}

.agent-family-view-btn {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #5e6ad2;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #fff;
}

.agent-family-view-btn:hover {
    background: #eef2ff;
}

.agent-family-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    white-space: nowrap;
}

.agent-family-action-form {
    margin: 0;
    display: inline;
}

.agent-family-renew-btn {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.agent-family-renew-btn:hover {
    filter: brightness(1.05);
}

.agent-family-view-btn--muted {
    color: #64748b;
    border-color: #e2e8f0;
}

.agent-app table.data--agent-families {
    border: none;
    box-shadow: none;
}

.agent-app table.data--agent-families thead th {
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.agent-app table.data--agent-families tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.agent-app table.data--agent-families tbody tr:nth-child(even) {
    background: #fafbff;
}

.agent-app table.data--agent-families tbody tr:hover {
    background: #f1f5ff;
}

.agent-family-register-divider {
    margin: 1.75rem 0 1rem;
    padding-top: 0.25rem;
    scroll-margin-top: 1rem;
}

.agent-family-register-title {
    margin: 0;
    font-size: 1.15rem;
    color: #1e3a5f;
}

.agent-family-register-sub {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
}

.agent-family-card--table + .agent-family-register-divider + .agent-family-form {
    margin-top: 0;
}

/* View page */
.agent-family-view-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.agent-family-view-hero__photo {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(94, 106, 210, 0.2);
}

.agent-family-view-hero__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    font-size: 2rem;
}

.agent-family-view-hero__name {
    margin: 0.35rem 0 0.25rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.agent-family-view-hero__meta {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.agent-family-dl {
    display: grid;
    gap: 1rem 1.5rem;
    margin: 0;
}

.agent-family-dl--3 {
    grid-template-columns: repeat(3, 1fr);
}

.agent-family-dl > div {
    min-width: 0;
}

.agent-family-dl dt {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.agent-family-dl dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
}

.agent-family-dl__full {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .agent-family-fields--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-family-dl--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .agent-family-head-layout {
        grid-template-columns: 1fr;
    }

    .agent-family-photo-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-end;
    }

    .agent-family-upload,
    .agent-family-upload-btn {
        max-width: 140px;
    }

    .agent-family-upload {
        height: 140px;
    }

    .agent-family-fields--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-field--span2 {
        grid-column: span 2;
    }
}

/* Agent wallet + Razorpay */
.agent-wallet-balances {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.agent-wallet-balance-card {
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.agent-wallet-balance-card--main {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #fafbff 0%, #eef2ff 100%);
}

.agent-wallet-balance-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.agent-wallet-balance-card__amount {
    display: block;
    font-size: 1.75rem;
    color: #5e6ad2;
    line-height: 1.2;
}

.agent-wallet-balance-card__hint,
.agent-wallet-balance-card__link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #64748b;
}

.agent-wallet-balance-card__link {
    font-weight: 600;
    color: #5e6ad2;
    text-decoration: none;
}

.agent-wallet-balance-card__link:hover {
    text-decoration: underline;
}

.agent-wallet-add-card .agent-family-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.agent-wallet-quick {
    margin-bottom: 1rem;
}

.agent-wallet-quick__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.agent-wallet-quick__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agent-wallet-quick-btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #fff;
    color: #5e6ad2;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.agent-wallet-quick-btn:hover {
    background: #eef2ff;
    border-color: #7b86e8;
}

.agent-wallet-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.agent-wallet-checkout-card {
    max-width: 520px;
    margin: 0 auto;
}

.agent-wallet-checkout-summary {
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.agent-wallet-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.agent-wallet-status--paid {
    background: #dcfce7;
    color: #166534;
}

.agent-wallet-status--pending {
    background: #fef9c3;
    color: #854d0e;
}

.agent-wallet-status--failed {
    background: #fee2e2;
    color: #991b1b;
}

.admin-kpi__action {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
    text-decoration: underline;
}

.admin-kpi__action:hover {
    opacity: 1;
}

/* Withdraw list (admin) */
.admin-withdraw-list-card {
    padding: 0;
    overflow: hidden;
}

.admin-withdraw-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-withdraw-search__field {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.admin-withdraw-search__field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 0;
}

.admin-withdraw-search__icon {
    opacity: 0.5;
    font-size: 0.95rem;
}

.admin-withdraw-search__count {
    margin-left: auto;
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
}

.admin-withdraw-pending-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.admin-app table.data--withdrawals {
    border: none;
    box-shadow: none;
}

.admin-app table.data--withdrawals .data__th-actions {
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
}

.admin-app table.data--withdrawals thead th {
    background: #f1f5f9;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    padding: 0.85rem 0.75rem;
    white-space: nowrap;
}

.admin-app table.data--withdrawals tbody td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    font-size: 0.88rem;
}

.admin-app table.data--withdrawals tbody tr:hover {
    background: #fafbff;
}

.admin-withdraw-empty {
    text-align: center;
    padding: 2.5rem 1rem !important;
}

.admin-withdraw-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-withdraw-action-form {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.admin-withdraw-pay-form {
    flex-wrap: wrap;
}

.admin-withdraw-ref-input {
    width: 4.5rem;
    padding: 0.25rem 0.35rem;
    font-size: 0.72rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.admin-withdraw-action-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
}

.admin-withdraw-action-btn--approve {
    background: #dcfce7;
    color: #166534;
}

.admin-withdraw-action-btn--pay {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-withdraw-action-btn--reject {
    background: #fee2e2;
    color: #dc2626;
}

.agent-withdraw-tabs {
    margin: 0 1.25rem 1rem;
    padding: 0;
}

.agent-withdraw-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    margin: 0;
}

.agent-withdraw-layout .agent-family-card--table .admin-table-scroll {
    padding: 0 0 0.5rem;
}

/* Agent transaction history */
.agent-txn-amount--credit {
    color: #059669;
}

.agent-txn-amount--debit {
    color: #dc2626;
}

.agent-txn-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.agent-txn-type--topup {
    background: #dcfce7;
    color: #166534;
}

.agent-txn-type--withdrawal {
    background: #fee2e2;
    color: #991b1b;
}

.agent-txn-status-tabs {
    margin-top: -0.5rem;
    padding-top: 0;
}

.agent-app table.data--agent-transactions tbody td {
    vertical-align: middle;
}

.admin-app table.data--agent-families-admin {
    min-width: 1200px;
}

.admin-app table.data--agent-families-admin .data__th-actions {
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
}

.admin-app table.data--agent-families-admin thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.admin-icon-actions__form {
    display: inline;
    margin: 0;
}

/* Agent list — wallet column */
.agent-list-wallet-th {
    min-width: 140px;
}

.agent-list-wallet-cell {
    min-width: 150px;
    vertical-align: middle !important;
}

.agent-list-wallet-display {
    margin-bottom: 0.4rem;
}

.agent-list-wallet-amount {
    color: #059669;
    font-size: 0.95rem;
    white-space: nowrap;
}

.agent-list-wallet-amount--muted {
    color: #5e6ad2;
}

.agent-list-wallet-add-form {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
}

.agent-list-wallet-add-input {
    width: 5.5rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.78rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
}

.agent-list-wallet-add-btn {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #7b86e8 0%, #5e6ad2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.agent-list-wallet-add-btn:hover {
    filter: brightness(1.08);
}

.admin-agent-wallet-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
}

.admin-agent-wallet-summary__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 140px;
}

.admin-agent-wallet-summary__item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.admin-agent-wallet-summary__item strong {
    font-size: 1.35rem;
    color: #059669;
}

.admin-agent-wallet-summary__item:last-child strong {
    color: #5e6ad2;
}

.agent-topbar-wallet {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    margin-right: 0.5rem;
    border-radius: 8px;
    background: #eef2ff;
    color: #5e6ad2;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}

.agent-topbar-wallet:hover {
    background: #e0e7ff;
    color: #4f59c0;
}

/* Admin list filters (employees, agents) */
.admin-list-filters {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-list-filters__row {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.admin-list-filters__search {
    min-width: 0;
}

.admin-list-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.admin-list-filters__field span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.admin-list-filters__field select {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
}

.admin-list-filters__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.admin-pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.admin-pagination__range {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-pagination__link,
.admin-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.82rem;
    text-decoration: none;
    color: #334155;
    background: #fff;
}

.admin-pagination__link:hover,
.admin-pagination__page:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.admin-pagination__page--current {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.admin-pagination__link--disabled {
    opacity: 0.45;
    cursor: default;
    background: #f1f5f9;
}

.admin-pagination__ellipsis {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.admin-pagination__per-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.admin-pagination__per-label {
    color: #64748b;
}

.admin-pagination__per {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    background: #fff;
}

.admin-pagination__per:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.admin-pagination__per--current {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

@media (max-width: 720px) {
    .admin-pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-pagination {
        justify-content: center;
    }

    .admin-pagination__per-wrap {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .admin-list-filters__row {
        grid-template-columns: 1fr 1fr;
    }

    .admin-list-filters__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .admin-list-filters__row {
        grid-template-columns: 1fr;
    }
}

.family-list-intro {
    margin: -0.5rem 0 1rem;
    font-size: 0.88rem;
}

.family-list-filters__search {
    margin-bottom: 0.75rem;
}

.family-list-filters__row {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.family-list-filters__field input[type="date"] {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
}

.family-list-filters__hint {
    margin: 0;
    font-size: 0.8rem;
    flex: 1 1 100%;
}

/* Agent wallet hub */
.agent-wallet-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.agent-wallet-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.agent-wallet-menu__item:hover {
    border-color: #5e6ad2;
    box-shadow: 0 4px 12px rgba(94, 106, 210, 0.12);
}

.agent-wallet-menu__item--active {
    border-color: #5e6ad2;
    background: linear-gradient(180deg, #f5f6ff 0%, #fff 100%);
    color: #4338ca;
}

.agent-wallet-menu__icon {
    font-size: 1.35rem;
}

.agent-wallet-show-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #5e6ad2 100%);
    color: #fff;
}

.agent-wallet-show-hero__label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.agent-wallet-show-hero__amount {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.2rem 0;
}

.agent-wallet-show-hero__hint {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.agent-wallet-show-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agent-wallet-balances--compact {
    margin-bottom: 1rem;
}

.agent-wallet-offer-banner {
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
}

.agent-wallet-offer-banner strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #3730a3;
}

.agent-wallet-offer-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #4338ca;
}

.agent-wallet-offer-banner__bonus {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #5e6ad2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.agent-wallet-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.agent-wallet-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.agent-wallet-offer-card {
    position: relative;
    padding: 1.15rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.agent-wallet-offer-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agent-wallet-offer-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #1e293b;
}

.agent-wallet-offer-card p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}

.agent-wallet-offer-card__meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.82rem;
    color: #475569;
}

.agent-wallet-offer-card__bonus {
    color: #059669;
}

.agent-wallet-offer-card__cta {
    display: block;
    text-align: center;
    width: 100%;
}

@media (max-width: 720px) {
    .agent-wallet-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Agent dashboard */
.agent-dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 45%, #5e6ad2 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.25);
}

.agent-dash-hero__main {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.agent-dash-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.agent-dash-hero__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 2rem;
}

.agent-dash-hero__greet {
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
    opacity: 0.85;
}

.agent-dash-hero__name {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.agent-dash-hero__meta {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.9;
}

.agent-dash-hero__meta code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    color: #fff;
}

.agent-dash-hero__wallet {
    text-align: right;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    min-width: 200px;
}

.agent-dash-hero__wallet-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.agent-dash-hero__wallet-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.agent-dash-hero__wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.agent-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.agent-dash-btn--solid {
    background: #fff;
    color: #5e6ad2;
}

.agent-dash-btn--solid:hover {
    background: #f1f5f9;
    color: #4f59c0;
}

.agent-dash-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.agent-dash-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.agent-dash-btn--outline {
    background: #fff;
    color: #5e6ad2;
    border: 1px solid #c7d2fe;
}

.agent-dash-btn--outline:hover {
    background: #eef2ff;
}

.agent-dash-btn--block {
    display: flex;
    width: 100%;
    margin-top: 1rem;
}

.agent-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.agent-dash-stat {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.agent-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 106, 210, 0.1);
}

.agent-dash-stat__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.agent-dash-stat--wallet .agent-dash-stat__icon {
    background: #eef2ff;
}

.agent-dash-stat--family .agent-dash-stat__icon {
    background: #fef3c7;
}

.agent-dash-stat--tx .agent-dash-stat__icon {
    background: #f0fdf4;
}

.agent-dash-stat__body strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}

.agent-dash-stat__body span {
    font-size: 0.82rem;
    color: #64748b;
}

.agent-dash-stat__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5e6ad2;
    text-decoration: none;
    margin-top: auto;
}

.agent-dash-stat__link:hover {
    text-decoration: underline;
}

.agent-dash-quick {
    margin-bottom: 1.25rem;
}

.agent-dash-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agent-dash-quick__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.agent-dash-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.agent-dash-quick__item:hover {
    border-color: #7b86e8;
    background: #fafbff;
    transform: translateY(-2px);
    color: #5e6ad2;
}

.agent-dash-quick__icon {
    font-size: 1.5rem;
}

.agent-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.agent-dash-dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1.25rem;
    margin: 0 0 0.5rem;
}

.agent-dash-dl > div {
    min-width: 0;
}

.agent-dash-dl dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.agent-dash-dl dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
}

.agent-dash-address {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .agent-dash-stats {
        grid-template-columns: 1fr;
    }

    .agent-dash-quick__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .agent-dash-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .agent-dash-hero__wallet {
        text-align: left;
    }

    .agent-dash-hero__wallet-actions {
        justify-content: flex-start;
    }

    .agent-dash-dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-withdraw-search__count {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .agent-wallet-balances {
        grid-template-columns: 1fr;
    }

    .agent-family-fields--3,
    .agent-family-fields--4,
    .agent-family-dl--3 {
        grid-template-columns: 1fr;
    }

    .agent-field--span2 {
        grid-column: span 1;
    }

    .agent-family-card {
        padding: 1rem 1.1rem;
    }

    .agent-family-footer {
        flex-direction: column;
    }

    .agent-family-submit-btn,
    .agent-family-footer__cancel {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Field employee login & portal */
.user-login-panel--employee {
    width: min(820px, 100%);
}

.employee-role-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.employee-role-card--state-chief:hover { border-color: #0369a1; }
.employee-role-card--zonal-manager:hover { border-color: #0d9488; }
.employee-role-card--district-head:hover { border-color: #7c3aed; }
.employee-role-card--trainer:hover { border-color: #d97706; }
.employee-role-card--hco:hover { border-color: #dc2626; }

.employee-sidebar .admin-sidebar__brand strong {
    font-size: 0.92rem;
}

.employee-dash-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c2d48 0%, #0077b6 55%, #00a896 100%);
    color: #fff;
    margin-bottom: 0;
}

.employee-dash-hero__main {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.employee-dash-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.employee-dash-hero__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.12);
}

.employee-dash-hero__greet {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.employee-dash-hero__name {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
}

.employee-dash-hero__meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    opacity: 0.92;
}

.employee-dash-hero__meta code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.employee-dash-hero__location {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    opacity: 0.8;
}

.employee-dash-hero__badge {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 600;
}

.employee-profile-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.employee-profile-dl {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 0.65rem 1rem;
    margin: 0;
}

.employee-profile-dl dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
}

.employee-profile-dl dd {
    margin: 0;
}

/* Employee registration hub */
.employee-app .employee-reg-page {
    max-width: 100%;
}

.employee-app .employee-reg-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c2d48 0%, #0077b6 55%, #00a896 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 119, 182, 0.25);
}

.employee-app .employee-reg-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.employee-app .employee-reg-hero__title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.employee-app .employee-reg-hero__sub {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    opacity: 0.92;
    max-width: 520px;
    line-height: 1.5;
}

.employee-app .employee-reg-hero__sub strong {
    color: #fff;
    font-weight: 700;
}

.employee-app .employee-reg-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.employee-app .employee-reg-hero__stat strong {
    font-size: 1.75rem;
    line-height: 1;
}

.employee-app .employee-reg-hero__stat span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.employee-app .employee-reg-grid {
    display: grid;
    grid-template-columns: repeat(var(--reg-cols, 5), minmax(0, 1fr));
    gap: 0.85rem;
}

.employee-app a.employee-reg-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 188px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none !important;
    color: #0c2d48 !important;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}

.employee-app a.employee-reg-card:hover {
    border-color: transparent;
    box-shadow: 0 14px 36px rgba(0, 119, 182, 0.18);
    transform: translateY(-4px);
    color: #0c2d48 !important;
}

.employee-app .employee-reg-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.65rem 0.75rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}

.employee-app .employee-reg-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.55rem;
    line-height: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.12);
}

.employee-app .employee-reg-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    padding: 0 0.85rem 0.75rem;
}

.employee-app .employee-reg-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0c2d48;
    line-height: 1.25;
}

.employee-app .employee-reg-card__desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.4;
}

.employee-app .employee-reg-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 0.7rem 1.15rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0077b6;
}

.employee-app a.employee-reg-card:hover .employee-reg-card__cta {
    background: #0077b6;
    color: #fff;
    border-top-color: #0077b6;
}

.employee-app .employee-reg-card__cta-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.employee-app a.employee-reg-card:hover .employee-reg-card__cta-arrow {
    transform: translateX(4px);
}

.employee-app .employee-reg-card--families .employee-reg-card__icon-wrap {
    background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}

.employee-app .employee-reg-card--families .employee-reg-card__icon {
    background: #eef2ff;
}

.employee-app .employee-reg-card--zonal-manager .employee-reg-card__icon-wrap {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}

.employee-app .employee-reg-card--zonal-manager .employee-reg-card__icon {
    background: #d1fae5;
}

.employee-app .employee-reg-card--district-manager .employee-reg-card__icon-wrap {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.employee-app .employee-reg-card--district-manager .employee-reg-card__icon {
    background: #ede9fe;
}

.employee-app .employee-reg-card--trainer .employee-reg-card__icon-wrap {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.employee-app .employee-reg-card--trainer .employee-reg-card__icon {
    background: #fef3c7;
}

.employee-app .employee-reg-card--hco .employee-reg-card__icon-wrap {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}

.employee-app .employee-reg-card--hco .employee-reg-card__icon {
    background: #fee2e2;
}

@media (max-width: 1100px) {
    .employee-app .employee-reg-page {
        max-width: none;
    }

    .employee-app .employee-reg-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.85rem;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .employee-app a.employee-reg-card {
        flex: 0 0 200px;
        min-height: 188px;
    }
}

.btn--sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

/* Employee profile hub */
.employee-app .employee-profile-hub__head {
    margin-bottom: 1rem;
}

.employee-app .employee-profile-hub__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.employee-app .employee-profile-hub__name {
    margin: 0;
    font-size: 1.35rem;
    color: #0c2d48;
}

.employee-app .employee-profile-hub__intro {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}

.employee-app .employee-profile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.employee-app .employee-profile-menu__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    color: #0c2d48 !important;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.employee-app .employee-profile-menu__link::before {
    content: "○";
    font-size: 0.65rem;
    color: #0077b6;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.employee-app .employee-profile-menu__link:hover {
    border-color: #0077b6;
    box-shadow: 0 8px 22px rgba(0, 119, 182, 0.12);
    transform: translateX(4px);
    color: #0c2d48 !important;
}

.employee-app .employee-profile-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
    border-radius: 12px;
    background: #f0f9ff;
    flex-shrink: 0;
}

.employee-app .employee-profile-menu__link--bank .employee-profile-menu__icon {
    background: #ecfdf5;
}

.employee-app .employee-profile-menu__link--password .employee-profile-menu__icon {
    background: #fef3c7;
}

.employee-app .employee-profile-menu__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.employee-app .employee-profile-menu__text strong {
    font-size: 0.98rem;
    color: #0c2d48;
}

.employee-app .employee-profile-menu__desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.employee-app .employee-profile-menu__arrow {
    font-size: 1.15rem;
    color: #0077b6;
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .employee-dash-hero {
        flex-direction: column;
    }

    .employee-profile-dl {
        grid-template-columns: 1fr;
    }
}
