/* ═══════════════════════════════════════════════════════════════
   ProvFund theme.css — global look & feel
   Loaded by EVERY page (dashboards, forms, login, member portal)
   ═════════════════════════Loads after app.css, so these rules win when they collide.═════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0&display=swap');

:root {
    --brand-dark: #FFFFFF;
    --brand-deep: #0B1F3A;
    --brand-dark-blue: #123B66;
    --brand-navy: #1677FF;
    --brand-slate: #1677FF;
    --brand-blue: #4DA3FF;
    --page: #F2F6FC;
    --surface: #FFFFFF;
    --border: #E4EAF1;
    --text: #102A43;
    --muted: #62748A;
    --disabled: #8B9AAF;
    --positive: #12A889;
    --pending: #F2A93B;
    --danger: #E45858;
    --purple: #7567E8;
    --brand-gradient: linear-gradient(135deg, #1677FF 0%, #4DA3FF 100%);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --text-primary: #102A43;
    --text-secondary: #62748A;
    --text-muted: #8B9AAF;
    --primary: #1677FF;
    --primary-alt: #3E92F7;
    --primary-dark: #0F65DB;
    --navy: #0B1F3A;
    --page-background: #F2F6FC;
    --card-background: #FFFFFF;
    --soft-blue: #EAF3FF;
    --soft-green: #EAFBF5;
    --soft-amber: #FFF5DF;
    --soft-red: #FFF0F0;
    --soft-purple: #F2EEFF;
    --shadow-soft: 0 18px 40px -12px rgba(16, 44, 84, 0.16);
    --shadow-card: 0 4px 18px -6px rgba(16, 44, 84, 0.10);
    --shadow-lift: 0 18px 38px -10px rgba(16, 44, 84, 0.18);
    --radius: 16px;
}

/* Material Symbols setup */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon,
.nav-item .icon,
.stat-icon,
.alert-strip-icon,
.row-action,
.text-link .material-symbols-outlined,
.status-pill .material-symbols-outlined,
.period-select .material-symbols-outlined,
.profile-mini .material-symbols-outlined,
.logout-link .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   Base / page canvas — soft ambient gradient + aurora glow
   ═══════════════════════════════════════════════════════════════ */
body {
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(22, 119, 255, 0.09), transparent 60%),
        radial-gradient(900px 480px at -10% 108%, rgba(56, 189, 248, 0.07), transparent 55%),
        linear-gradient(180deg, #F5F8FE 0%, #EEF4FC 100%) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(95, 160, 255, 0.08), transparent 30%);
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading) !important;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   App shell / sidebar — deep navy gradient with aurora accent
   ═══════════════════════════════════ Both sidebar blocks below apply — the later one wins.═════════════════════════════════════════════════════ */
.app-shell {
    background: transparent;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #050E22 0%, #081A38 55%, #0B2C55 130%) !important;
    border-right: 1px solid rgba(148, 184, 255, 0.10);
    box-shadow: 22px 0 55px -18px rgba(4, 12, 28, 0.55);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: -110px;
    right: -120px;
    background: radial-gradient(circle, rgba(64, 150, 255, 0.22), transparent 62%);
    filter: blur(34px);
    pointer-events: none;
}

.sidebar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 32%;
    width: 2px;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(77, 163, 255, 0.55), transparent);
    pointer-events: none;
}

.brand {
    justify-content: center !important;
    padding-bottom: 26px !important;
    position: relative;
    z-index: 1;
}

.brand-logo,
.login-logo {
    display: block;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.brand-logo {
    width: 150px;
    height: 60px;
    object-position: center;
    filter: drop-shadow(0 10px 24px rgba(45, 140, 255, 0.35));
}

/* ── Navigation ── */
.workspace-label {
    color: #6D89AC !important;
    font-weight: 800;
    letter-spacing: 0.14em;
    position: relative;
    z-index: 1;
}

.nav-item {
    border-radius: 11px;
    color: #B6C7DF !important;
    position: relative;
    z-index: 1;
    transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.nav-item .icon {
    color: #7F9BC0 !important;
    transition: color .22s ease, transform .22s ease;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0.08)) !important;
    color: #FFFFFF !important;
    transform: translateX(3px);
}

.nav-item:hover .icon {
    color: #FFFFFF !important;
    transform: scale(1.08);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.85) 0%, rgba(35, 134, 255, 0.55) 100%) !important;
    color: #FFFFFF !important;
    box-shadow: inset 3px 0 rgba(255, 255, 255, 0.85), 0 10px 22px -8px rgba(22, 119, 255, 0.65) !important;
}

.nav-item.active .icon {
    color: #FFFFFF !important;
}

.nav-badge {
    background: linear-gradient(135deg, #1677FF, #4DA3FF) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px -3px rgba(22, 119, 255, 0.6);
}

.nav-badge.alert {
    background: linear-gradient(135deg, #E45858, #F27070) !important;
    box-shadow: 0 4px 12px -3px rgba(228, 88, 88, 0.55);
}

.support-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(148, 184, 255, 0.14) !important;
    color: #D7E5F6 !important;
    backdrop-filter: blur(6px);
}

.support-icon {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.55), rgba(77, 163, 255, 0.25)) !important;
    color: #FFFFFF !important;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8FA6BE !important;
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.logout-link:hover {
    color: #FFFFFF !important;
}

.logout-link .icon {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.logout-link:hover .icon {
    transform: translateX(2px);
}

.profile-mini {
    position: relative;
    z-index: 1;
}

.avatar,
.top-avatar {
    background: linear-gradient(135deg, #1677FF, #4DA3FF) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    box-shadow: 0 8px 18px -6px rgba(22, 119, 255, 0.55);
}

/* ═══════════════════════════════════════════════════════════════
   Topbar — frosted glass
   ═══════════════════════════════════════════════════════════════ */
.main-content {
    background: transparent;
    min-width: 0;
}

.topbar {
    background: rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(16, 42, 67, 0.06) !important;
    box-shadow: 0 12px 34px -18px rgba(16, 44, 84, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.breadcrumb,
.breadcrumb span {
    color: #4E637A !important;
}

.breadcrumb strong {
    color: #0B1F3A !important;
}

.topbar .icon-button,
.topbar .more-button,
.topbar .mobile-menu {
    color: #526B84 !important;
}

.period-select {
    border-color: #D7E2ED !important;
    background: #FFFFFF !important;
    color: #102A43 !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-card);
}

.period-select .icon {
    color: #1677FF !important;
}

/* ═══════════════════════════════════════════════════════ Page headings & content typography ═════════════════════════════════════════════════════ */
.page-content {
    color: var(--text) !important;
}

.welcome-row h1,
.page-content > h1,
.page-content h1 {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.panel-heading h2,
.panel-heading h3 {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 26px !important;
}

.eyebrow,
.stat-label,
.period-label,
.intro,
small {
    color: var(--muted) !important;
}

.eyebrow {
    font-weight: 800;
    letter-spacing: 0.09em;
}

/* ═══════════════════════════════════════════════════════════════
   Cards — stat cards & panels
   ═══════════════════════════════════════════════════════════════ */
.panel,
.stat-card,
.form-panel,
.review-card,
.login-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(212, 224, 238, 0.9) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-card) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.panel:hover,
.form-panel:hover,
.review-card:hover {
    border-color: #CBDCEC !important;
    box-shadow: var(--shadow-lift) !important;
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, var(--primary), #6ED0FF);
    opacity: .9;
}

.stat-card.green::before { background: linear-gradient(90deg, #12A889, #5BD6BC); }
.stat-card.amber::before,
.stat-card.orange::before { background: linear-gradient(90deg, #F2A93B, #FFCE7A); }
.stat-card.red::before { background: linear-gradient(90deg, #E45858, #FF9292); }
.stat-card.blue::before { background: linear-gradient(90deg, #1677FF, #6FC0FF); }
.stat-card.purple::before { background: linear-gradient(90deg, #7567E8, #A99DF6); }
.stat-card.teal::before { background: linear-gradient(90deg, #12A889, #5BD6BC); }

.stat-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.08), transparent 65%);
    transition: transform .3s ease, opacity .3s ease;
    opacity: .8;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #C9DBEE !important;
    box-shadow: var(--shadow-lift) !important;
}

.stat-card:hover::after {
    transform: scale(1.35);
    opacity: 1;
}

.stat-card-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.stat-icon {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.13), rgba(77, 163, 255, 0.2)) !important;
    color: var(--brand-navy) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.08);
    transition: transform .25s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.06) rotate(-3deg);
}

.teal .stat-icon {
    background: linear-gradient(135deg, rgba(18, 168, 137, 0.14), rgba(91, 214, 188, 0.2)) !important;
    color: #0B8A72 !important;
}

.amber .stat-icon,
.orange .stat-icon {
    background: linear-gradient(135deg, rgba(242, 169, 59, 0.16), rgba(255, 206, 122, 0.22)) !important;
    color: #B97800 !important;
}

.red .stat-icon {
    background: linear-gradient(135deg, rgba(228, 88, 88, 0.13), rgba(255, 146, 146, 0.2)) !important;
    color: #C93A3A !important;
}

.blue .stat-icon {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.13), rgba(111, 192, 255, 0.22)) !important;
    color: var(--brand-navy) !important;
}

.purple .stat-icon {
    background: linear-gradient(135deg, rgba(117, 103, 232, 0.14), rgba(169, 157, 246, 0.22)) !important;
    color: #5C4CE0 !important;
}

.stat-value {
    color: #102A43 !important;
    font-family: var(--font-heading) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 36px;
}

.stat-label,
.card-title {
    color: #526B84 !important;
    font-family: var(--font-body) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.stat-delta,
.period-label,
.intro,
.help-text,
.form-help {
    color: #62748A !important;
    font-family: var(--font-body) !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.stat-delta {
    font-weight: 700;
}

.teal .stat-delta,
.blue .stat-delta {
    color: var(--brand-slate) !important;
}

.amber .stat-delta,
.orange .stat-delta { color: #B97800 !important; }

.red .stat-delta {
    color: var(--danger) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Buttons — gradient primary, soft secondary
   ═══════════════════════════════════════════════════════════════ */
button,
input,
select,
textarea {
    font: inherit;
}

.primary-button,
.login-submit,
.form-grid button,
.upload-form button,
.confirm-button {
    background: linear-gradient(135deg, #1677FF 0%, #3E92F7 60%, #5EB0FF 100%) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    box-shadow: 0 12px 24px -8px rgba(22, 119, 255, 0.5) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.primary-button:hover,
.login-submit:hover,
.confirm-button:hover {
    background: linear-gradient(135deg, #0F65DB 0%, #2B82EA 60%, #47A2FF 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 30px -8px rgba(22, 119, 255, 0.55) !important;
}

.primary-button:active,
.login-submit:active {
    transform: translateY(0) !important;
}

.secondary-button,
.filter-button {
    background: #FFFFFF !important;
    border: 1px solid #D7E2ED !important;
    color: #526B84 !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px -2px rgba(16, 44, 84, 0.08);
    transition: all .18s ease !important;
}

.secondary-button:hover,
.filter-button:hover {
    background: #F5F9FF !important;
    border-color: #BFD9FA !important;
    color: #1677FF !important;
    transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(22, 119, 255, 0.65);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════ */
.form-field label,
label {
    color: #102A43;
    font-family: var(--font-body) !important;
    font-size: 13px;
    font-weight: 500;
}

input,
select,
textarea {
    color: #102A43 !important;
    font-size: 14px;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8B9AAF !important;
    opacity: 1;
}

input,
select,
textarea,
.search-field,
.filter-button,
.period-select {
    border-color: #D7E2ED !important;
    border-radius: 10px !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(22, 119, 255, 0.55) !important;
    box-shadow: 0 0 0 3.5px rgba(22, 119, 255, 0.13) !important;
    outline: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Tables — soft headers, hover tint, gradient top hairline
   ═══════════════════════════════════════════════════════════════ */
.table-scroll,
.audit-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.panel:has(> .table-scroll),
.panel:has(> .audit-table-wrap) {
    overflow: hidden;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    color: var(--text);
    font-size: 13px;
}

table thead th {
    background: linear-gradient(180deg, #F3F7FD 0%, #EEF3FB 100%) !important;
    color: #526B84 !important;
    border-bottom: 1px solid #E4EAF1 !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    padding: 13px 14px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

table tbody td {
    background: #FFFFFF !important;
    border-bottom: 1px solid #EEF2F7 !important;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    padding: 15px 14px;
    vertical-align: middle;
}

table tbody tr {
    transition: background-color 180ms ease;
}

table tbody tr:hover td {
    background: #F5F9FF !important;
}

table tbody tr:last-child td {
    border-bottom: 0 !important;
}

table th:first-child,
table td:first-child {
    padding-left: 16px;
}

table th:last-child,
table td:last-child {
    padding-right: 16px;
}

.amount-cell,
table .amount,
table td[data-type="currency"] {
    color: var(--text) !important;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.table-toolbar,
.table-heading,
.table-controls {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.table-toolbar h2,
.table-heading h2 {
    color: var(--text);
    font-weight: 700;
    margin: 0;
}

.table-toolbar p,
.table-heading p {
    color: var(--muted);
    margin: 4px 0 0;
}

.table-controls {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 0;
}

.search-field,
.table-toolbar input[type="search"],
.table-toolbar input[type="text"] {
    background: #FFFFFF !important;
    border: 1px solid #D7E2ED !important;
    color: var(--text) !important;
    height: 42px;
    min-width: 220px;
    padding: 0 12px;
}

.search-field::placeholder,
.table-toolbar input::placeholder {
    color: var(--disabled);
}

.search-field:focus-within,
.search-field:focus,
.table-toolbar input:focus,
.table-controls select:focus {
    border-color: #1677FF !important;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12) !important;
    outline: 0;
}

.filter-button,
.table-controls select {
    background: #FFFFFF !important;
    border: 1px solid #D7E2ED !important;
    color: #526B84 !important;
    height: 42px;
}

.filter-button.active,
.table-controls .active {
    background: #EAF4FF !important;
    border-color: #BFD9FA !important;
    color: #0F5FC7 !important;
}

.table-action,
.action-button,
table .icon-button {
    align-items: center;
    background: transparent !important;
    border: 0;
    border-radius: 8px;
    color: #62748A !important;
    display: inline-flex;
    justify-content: center;
    min-height: 32px;
    min-width: 32px;
    padding: 6px;
    transition: all .18s ease;
}

.table-action:hover,
.action-button:hover,
table .icon-button:hover {
    background: #EAF4FF !important;
    color: #1677FF !important;
}

.row-action {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(22, 119, 255, 0.07);
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
}

.row-action:hover {
    background: rgba(22, 119, 255, 0.16) !important;
    transform: translateY(-1px);
}

.table-avatar,
.avatar-initials {
    align-items: center;
    background: linear-gradient(135deg, #EAF4FF, #DCEBFF);
    border-radius: 50%;
    color: #0F5FC7;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 12px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.table-person {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.table-person strong {
    color: var(--text);
    font-weight: 600;
}

.table-person small,
table td small {
    color: var(--disabled) !important;
    font-size: 12px;
}

.table-pagination,
.audit-pagination {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
}

.table-pagination a,
.table-pagination span,
.audit-pagination a,
.audit-pagination span {
    align-items: center;
    border: 1px solid #D7E2ED;
    border-radius: 9px;
    display: inline-flex;
    font-size: 12px;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 9px;
    text-decoration: none;
    transition: all .18s ease;
}

.table-pagination a,
.audit-pagination a {
    background: #FFFFFF;
    color: #526B84;
}

.table-pagination a:hover,
.audit-pagination a:hover {
    background: #EAF4FF;
    color: #1677FF;
}

.table-pagination .current,
.audit-pagination .current {
    background: linear-gradient(135deg, #1677FF, #3E92F7);
    border-color: #1677FF;
    color: #FFFFFF;
    box-shadow: 0 6px 14px -4px rgba(22, 119, 255, 0.5);
}

.table-empty,
.audit-empty {
    color: var(--muted) !important;
    padding: 40px 20px !important;
    text-align: center;
}

.table-empty strong {
    color: var(--text);
    display: block;
    margin-bottom: 5px;
}

.table-skeleton {
    animation: table-skeleton-pulse 1.5s ease-in-out infinite;
    background: #EEF2F6;
    border-radius: 5px;
    display: inline-block;
    height: 12px;
    min-width: 80px;
}

@keyframes table-skeleton-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   Status pills — tinted with colored dot
   ═══════════════════════════════════════════════════════════════ */
.status-pill {
    border-radius: 999px !important;
    font-family: var(--font-body) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 18px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    transition: transform .15s ease;
}

.status-pill i {
    background: currentColor !important;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-right: 2px;
    width: 6px;
}

.status-verified {
    background: #E5F7F1 !important;
    color: #0A7D64 !important;
    border-color: rgba(18, 168, 137, 0.22) !important;
}

.status-review,
.status-pending {
    background: #FFF4DF !important;
    color: #A96B00 !important;
    border-color: rgba(242, 169, 59, 0.25) !important;
}

.status-returned {
    background: #FDECEC !important;
    color: #B52F2F !important;
    border-color: rgba(228, 88, 88, 0.2) !important;
}

.status-submitted {
    background: #EAF4FF !important;
    color: #0F5FC7 !important;
    border-color: rgba(22, 119, 255, 0.18) !important;
}

.status-verified i { background: #12A889 !important; }
.status-review i { background: #F2A93B !important; }
.status-returned i { background: #E45858 !important; }
.status-submitted i { background: #1677FF !important; }

/* ═══════════════════════════════════════════════════════════════
   Donut / reconciliation
   ═══════════════════════════════════════════════════════════════ */
.donut {
    background: conic-gradient(from -90deg, #1677FF 0 92%, #E8EEF7 92% 100%) !important;
    box-shadow: 0 14px 30px -10px rgba(22, 119, 255, 0.35);
}

.recon-dot.matched { background: var(--positive) !important; }
.recon-dot.pending { background: var(--pending) !important; }
.recon-dot.issue { background: var(--danger) !important; }

.teal-line { stroke: var(--brand-navy) !important; }
.blue-line { stroke: #7DB9FF !important; }
.teal-point { fill: var(--brand-navy) !important; }
.blue-point { fill: var(--brand-blue) !important; }
.teal-dot { background: var(--brand-navy) !important; }
.blue-dot { background: #7DB9FF !important; }
.chart-fill { fill: #EAF4FF !important; }

/* ═══════════════════════════════════════════════════════════════
   Alerts / notices / toasts
   ═══════════════════════════════════════════════════════════════ */
.alert-strip {
    background: linear-gradient(120deg, #EDF4FF 0%, #F0EFFE 100%) !important;
    border-color: #DCE5EF !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-card);
}

.alert-strip-icon {
    background: linear-gradient(135deg, rgba(86, 134, 255, 0.18), rgba(130, 102, 255, 0.16)) !important;
    color: var(--brand-navy) !important;
    border-radius: 12px !important;
}

.toast {
    background: #0B1F3A !important;
    border: 1px solid rgba(148, 184, 255, 0.25);
    border-radius: 12px !important;
    box-shadow: 0 18px 44px -10px rgba(4, 12, 28, 0.5);
}

.toast-icon { color: #78DDBB; display: grid; }

.notice.success,
.form-shell .success {
    background: #E5F7F1 !important;
    color: #0A7D64 !important;
    border: 1px solid rgba(18, 168, 137, 0.2);
}

.notice.failure,
.form-shell .failure {
    background: #FDECEC !important;
    color: #B52F2F !important;
    border: 1px solid rgba(228, 88, 88, 0.2);
}

.footer {
    background: transparent !important;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Form shell layout (legacy standalone form pages)
   ═══════════════════════════════════════════════════════════════ */
.injected-app-shell {
    min-height: 100vh;
}

.injected-main-content {
    flex: 1;
    min-width: 0;
}

.injected-sidebar {
    min-height: 100vh;
}

.form-shell {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 920px;
    padding: 38px 32px 56px;
    width: 100%;
}

.form-shell > .text-link {
    display: inline-flex;
    margin-bottom: 24px;
}

.form-shell h1 {
    color: var(--text-primary);
    font-family: var(--font-heading) !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin: 8px 0 6px;
}

.form-shell > .intro {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    max-width: 720px;
}

.form-shell .form-panel,
.form-shell .notice,
.review-card,
.empty-state,
.error-state {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(212, 224, 238, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.form-shell .form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-shell .form-field {
    min-width: 0;
}

.form-shell .form-field.full {
    grid-column: 1 / -1;
}

.form-shell .form-field label {
    color: var(--text-primary);
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    margin-bottom: 7px;
}

.form-shell .form-field input,
.form-shell .form-field select,
.form-shell .form-field textarea {
    background: #FFFFFF;
    border: 1px solid #D7E2ED;
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--text-primary);
    min-height: 42px;
    padding: 9px 12px;
    width: 100%;
}

.form-shell .form-field input:focus,
.form-shell .form-field select:focus,
.form-shell .form-field textarea:focus {
    border-color: rgba(22, 119, 255, 0.55);
    box-shadow: 0 0 0 3.5px rgba(22, 119, 255, 0.13);
    outline: 0;
}

.form-shell .notice {
    border-radius: 12px;
    font-size: 13px;
    line-height: 20px;
    margin-top: 18px;
    padding: 12px 14px;
}

.form-shell .primary-button,
.form-shell .secondary-button,
.form-shell .filter-button {
    min-height: 42px;
    border-radius: 12px;
}

.form-shell .filter-button {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
}

.dashboard-grid,
.lower-grid {
    display: grid;
    gap: 18px;
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lower-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.empty-row {
    color: var(--text-secondary) !important;
    font-weight: 600;
    text-align: center;
    padding: 18px 14px !important;
}

.text-link {
    color: var(--brand-navy) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, gap .18s ease;
}

.text-link:hover {
    color: var(--primary-dark) !important;
}

.text-link:hover .icon {
    transform: translateX(2px);
}

.text-link .icon {
    transition: transform .18s ease;
}

/* ═══════════════════════════════════════════════════════════════
   Entrances & motion
   ═══════════════════════════════════════════════════════════════ */
@keyframes login-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pfFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.pf-anim-ready .pf-animate {
    opacity: 0;
    animation: pfFadeUp .55s cubic-bezier(.21, 1, .32, 1) forwards;
    animation-delay: var(--pf-d, 0ms);
}

/* Toast animation */
.toast { transition: opacity .3s ease, transform .3s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   Login page (legacy .login-shell single-card support)
   ═════════════════════════════════════════ (page-level styles may override these) ═════════════════════════════════════════════════════ */
.login-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
}

.login-brand strong {
    display: none !important;
}

.login-brand span {
    display: block !important;
    color: var(--brand-navy) !important;
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-top: 12px !important;
    letter-spacing: .1px;
}

.login-logo {
    width: 180px;
    height: 96px;
    object-position: center;
    margin: 0 auto;
}

body.login-page .login-logo {
    width: 158px;
    height: auto;
    margin: 0 auto; /* centered horizontally in the brand panel */
}

.login-card h1 {
    color: var(--text) !important;
    font-family: var(--font-heading) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    text-align: center;
}

.login-copy {
    color: var(--muted) !important;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
    .page-content {
        padding: 16px 14px 28px;
    }

    .topbar {
        padding: 12px 14px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .alert-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-action {
        margin-left: 0;
    }

    .sidebar::before,
    .sidebar::after {
        display: none;
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .stat-card {
        border-radius: 14px;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .welcome-row h1,
    .page-content > h1,
    .page-content h1 {
        font-size: 22px !important;
        line-height: 30px !important;
    }
}

@media (max-width: 700px) {
    .form-shell {
        padding: 28px 18px 40px;
    }

    .form-shell .form-panel {
        padding: 18px;
    }

    .form-shell .form-grid {
        grid-template-columns: 1fr;
    }

    .form-shell .form-field.full {
        grid-column: auto;
    }

    .welcome-row h1,
    .page-content > h1,
    .page-content h1 {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .panel-heading h2,
    .panel-heading h3 {
        font-size: 17px !important;
        line-height: 24px !important;
    }

    .brand-logo {
        width: 140px;
        height: 56px;
    }

    .login-logo {
        width: 170px;
        height: 90px;
    }

    body.login-page .login-logo {
        width: 130px;
        height: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Legacy page compatibility — recolor old teal accents to brand blue
   ═══════════════════════════════════════════════════════════════ */
.notice-item.unread { border-left-color: var(--brand-navy) !important; }

.read-button { color: var(--brand-navy) !important; }

.accept {
    background: #E5F7F1 !important;
    color: #0A7D64 !important;
    border: 1px solid rgba(18, 168, 137, 0.24);
    border-radius: 9px;
    cursor: pointer;
    transition: filter .18s ease;
}

.accept:hover { filter: brightness(.97); }

.reject {
    background: #FDECEC !important;
    color: #B52F2F !important;
    border: 1px solid rgba(228, 88, 88, 0.22);
    border-radius: 9px;
    cursor: pointer;
    transition: filter .18s ease;
}

.reject:hover { filter: brightness(.97); }

.member-badge,
.back-link {
    color: #0F5FC7 !important;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
