:root {
    --sidebar-bg: #050505;
    --sidebar-bg-soft: #0d1117;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #cbd5e1;
    --sidebar-text-strong: #f8fafc;
    --sidebar-muted: #94a3b8;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(255, 255, 255, 0.14);
    --sidebar-width: 248px;
    --sidebar-width-collapsed: 84px;
    --topbar-height: 70px;
    --bg: #eef4f8;
    --bg-strong: #e3edf3;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --surface-muted: #f1f5f9;
    --surface-strong: #d9e4ec;
    --ink: #102334;
    --ink-soft: #42576a;
    --ink-muted: #667b8f;
    --line: #d7e2eb;
    --line-strong: #c4d2dd;
    --primary: #0f6d8c;
    --primary-strong: #0a5470;
    --primary-soft: rgba(15, 109, 140, 0.12);
    --accent: #15803d;
    --accent-soft: rgba(21, 128, 61, 0.12);
    --warning: #b45309;
    --warning-soft: rgba(245, 158, 11, 0.16);
    --danger: #be123c;
    --danger-soft: rgba(244, 63, 94, 0.14);
    --info-soft: rgba(14, 116, 144, 0.12);
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.08);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, 0.12), transparent 22%),
        radial-gradient(circle at right 12%, rgba(21, 128, 61, 0.07), transparent 18%),
        linear-gradient(180deg, #f2f7fa 0%, #e8f0f5 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

ul,
ol,
dl {
    margin: 0;
}

body.auth-page {
    background:
        radial-gradient(circle at top left, rgba(15, 109, 140, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(21, 128, 61, 0.12), transparent 22%),
        linear-gradient(135deg, #edf7fb 0%, #f6f8fb 50%, #e7f0f5 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.auth-card {
    width: min(540px, 100%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.auth-form-pane {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 252, 0.98));
}

.auth-form-shell {
    max-width: 420px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand__mark {
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 109, 140, 0.12), rgba(59, 130, 246, 0.14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.auth-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand strong,
.auth-heading h3 {
    color: var(--ink);
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
}

.flash--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

.flash--error {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.22);
    color: #9f1239;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns 0.18s ease;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: var(--sidebar-width-collapsed) minmax(0, 1fr);
}

.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    height: 56px;
    background: #050505;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.mobile-topbar__brand {
    min-width: 0;
}

.mobile-topbar__module {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-logo-mini,
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    overflow: hidden;
}

.brand-logo-mini {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f6d8c 0%, #18a6d2 100%);
}

.brand-logo-mini img,
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: transparent;
    border: 0;
}

.burger-line {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--sidebar-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        linear-gradient(180deg, #030303 0%, #0a0d11 100%);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.sidebar-offcanvas-header {
    background: #050505;
    border-bottom: 1px solid var(--sidebar-border) !important;
}

.sidebar__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sidebar-brand,
.sidebar-user,
.sidebar-logout {
    padding-inline: 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 42px;
    background: linear-gradient(135deg, #0f6d8c 0%, #2563eb 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.brand-name {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sidebar-text-strong);
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--sidebar-muted);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sidebar-border);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f6d8c 0%, #16a34a 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 109, 140, 0.2);
}

.user-name {
    font-weight: 700;
    color: var(--sidebar-text-strong);
}

.user-role {
    font-size: 0.78rem;
    color: var(--sidebar-muted);
    text-transform: capitalize;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 12px 0;
}

.nav-section {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.nav-section__header {
    margin: 0;
}

.nav-section__toggle {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-text-strong) !important;
    background: transparent !important;
    border: 0;
    box-shadow: none !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-section__toggle:hover,
.nav-section__toggle:not(.collapsed) {
    background: rgba(255, 255, 255, 0.05) !important;
}

.nav-section__toggle::after {
    margin-left: auto;
    filter: invert(1);
    opacity: 0.72;
}

.nav-section__lead,
.nav-section__meta {
    display: flex;
    align-items: center;
    min-width: 0;
}

.section-label {
    display: inline-block;
    color: #f8fafc;
}

.nav-items {
    display: grid;
    gap: 6px;
    padding: 0 8px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--sidebar-text);
    border: 1px solid transparent;
    font-weight: 600;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-item.is-active {
    background: var(--sidebar-active);
    border-color: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #38bdf8;
}

.nav-item--emerald.is-active { box-shadow: inset 3px 0 0 #34d399; }
.nav-item--teal.is-active { box-shadow: inset 3px 0 0 #14b8a6; }
.nav-item--cyan.is-active { box-shadow: inset 3px 0 0 #06b6d4; }
.nav-item--amber.is-active { box-shadow: inset 3px 0 0 #f59e0b; }
.nav-item--lime.is-active { box-shadow: inset 3px 0 0 #84cc16; }
.nav-item--violet.is-active { box-shadow: inset 3px 0 0 #8b5cf6; }
.nav-item--rose.is-active { box-shadow: inset 3px 0 0 #f43f5e; }
.nav-item--indigo.is-active { box-shadow: inset 3px 0 0 #6366f1; }
.nav-item--slate.is-active { box-shadow: inset 3px 0 0 #94a3b8; }

.nav-item__label {
    white-space: nowrap;
}

.sidebar-logout {
    padding-top: 16px;
    padding-bottom: 18px;
    border-top: 1px solid var(--sidebar-border);
}

.btn-logout {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    font-weight: 700;
}

.btn-logout:hover {
    background: rgba(190, 18, 60, 0.14);
    color: #fecdd3;
}

body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .sidebar-logout {
    padding-inline: 10px;
}

body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-user {
    justify-content: center;
}

body.sidebar-collapsed .brand-name,
body.sidebar-collapsed .brand-sub,
body.sidebar-collapsed .user-info,
body.sidebar-collapsed .section-label,
body.sidebar-collapsed .btn-logout span,
body.sidebar-collapsed .nav-item__label {
    display: none;
}

body.sidebar-collapsed .nav-section__toggle {
    justify-content: center;
    padding-inline: 10px;
}

body.sidebar-collapsed .nav-section__toggle::after {
    display: none;
}

body.sidebar-collapsed .accordion-collapse {
    display: block !important;
}

body.sidebar-collapsed .nav-items {
    padding-inline: 6px;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding-inline: 8px;
}

.main-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(215, 226, 235, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.topbar__module,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__module {
    min-width: 0;
}

.sidebar-desktop-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.sidebar-desktop-toggle span {
    width: 3px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f6d8c 0%, #15803d 100%);
}

.module-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 109, 140, 0.12);
    background: linear-gradient(135deg, rgba(15, 109, 140, 0.11), rgba(255, 255, 255, 0.95));
}

.module-icon-svg,
.hero-icon,
.icon-svg {
    width: 18px;
    height: 18px;
}

.module-icon-svg svg,
.hero-icon svg,
.icon-svg svg {
    width: 100%;
    height: 100%;
}

.module-indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
}

.module-indicator--sky,
.module-icon-badge--sky { color: #0ea5e9; }
.module-indicator--emerald,
.module-icon-badge--emerald { color: #10b981; }
.module-indicator--teal,
.module-icon-badge--teal { color: #14b8a6; }
.module-indicator--cyan,
.module-icon-badge--cyan { color: #06b6d4; }
.module-indicator--amber,
.module-icon-badge--amber { color: #f59e0b; }
.module-indicator--lime,
.module-icon-badge--lime { color: #84cc16; }
.module-indicator--violet,
.module-icon-badge--violet { color: #8b5cf6; }
.module-indicator--rose,
.module-icon-badge--rose { color: #f43f5e; }
.module-indicator--indigo,
.module-icon-badge--indigo { color: #6366f1; }
.module-indicator--slate,
.module-icon-badge--slate { color: #64748b; }

.module-indicator--sky { background: #0ea5e9; }
.module-indicator--emerald { background: #10b981; }
.module-indicator--teal { background: #14b8a6; }
.module-indicator--cyan { background: #06b6d4; }
.module-indicator--amber { background: #f59e0b; }
.module-indicator--lime { background: #84cc16; }
.module-indicator--violet { background: #8b5cf6; }
.module-indicator--rose { background: #f43f5e; }
.module-indicator--indigo { background: #6366f1; }
.module-indicator--slate { background: #64748b; }

.topbar__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.module-title {
    margin: 0;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ink);
}

.topbar-presence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.topbar-presence i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.topbar-presence[data-state="pending"] i,
.topbar-presence[data-state="syncing"] i {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.topbar-presence[data-state="offline"] i,
.topbar-presence[data-state="auth-required"] i,
.topbar-presence[data-state="error"] i {
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14);
}

.sync-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.sync-panel__status,
.sync-panel__stats,
.sync-panel__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sync-panel__status {
    min-width: 0;
}

.sync-panel__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sync-panel__copy {
    min-width: 0;
}

.sync-panel__copy strong {
    display: block;
    color: var(--ink);
    font-size: 0.98rem;
}

.sync-panel__copy p,
.sync-panel__error {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.sync-panel__stats {
    justify-content: center;
    flex-wrap: wrap;
}

.sync-stat {
    min-width: 112px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(215, 226, 235, 0.9);
}

.sync-stat__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.sync-stat__value {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 0.9rem;
}

.sync-panel__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sync-panel__button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sync-panel__button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.sync-panel__button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.sync-panel__button--primary {
    background: linear-gradient(135deg, #0f766e, #0891b2);
    color: #ffffff;
    border-color: transparent;
}

.sync-panel__error {
    grid-column: 1 / -1;
    margin-top: -6px;
}

.sync-panel[data-state="pending"],
.sync-panel[data-state="syncing"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.96));
    border-color: rgba(245, 158, 11, 0.18);
}

.sync-panel[data-state="offline"],
.sync-panel[data-state="auth-required"],
.sync-panel[data-state="error"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(255, 255, 255, 0.96));
    border-color: rgba(239, 68, 68, 0.18);
}

.sync-panel[data-state="pending"] .sync-panel__badge,
.sync-panel[data-state="syncing"] .sync-panel__badge {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.sync-panel[data-state="offline"] .sync-panel__badge,
.sync-panel[data-state="auth-required"] .sync-panel__badge,
.sync-panel[data-state="error"] .sync-panel__badge {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.topbar-user {
    font-weight: 700;
    color: var(--ink);
}

.badge-role {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.badge-role--admin {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.badge-role--gestor {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.badge-role--consulta {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.page-content {
    flex: 1;
    min-width: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form-overview,
.record-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-form-overview--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.admin-form-overview__metric,
.record-kpi-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.98));
    box-shadow: var(--shadow-sm);
}

.admin-form-overview--compact .admin-form-overview__metric {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: none;
}

.admin-form-overview__label,
.record-kpi-card__label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-form-overview__value,
.record-kpi-card__value {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.12;
}

.admin-form-overview--compact .admin-form-overview__value {
    margin-bottom: 0;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.05;
}

.admin-form-overview__meta,
.record-kpi-card__meta {
    color: var(--ink-soft);
}

.admin-form-overview--compact .admin-form-overview__meta {
    font-size: 0.78rem;
    line-height: 1.25;
}

.field-help {
    margin-top: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.88);
}

.field-help summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 10px;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-help summary::-webkit-details-marker {
    display: none;
}

.field-help summary::after {
    content: '+';
    float: right;
    color: var(--primary);
    font-size: 0.9rem;
}

.field-help[open] summary::after {
    content: '-';
}

.field-help__body {
    padding: 0 10px 10px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.35;
}

.field-help--inline {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.66);
}

.field-help--inline summary {
    padding: 6px 0;
}

.field-help--inline .field-help__body {
    padding: 0 0 6px;
}

.field-help--icon {
    display: inline-flex;
    align-items: flex-start;
    margin-top: 6px;
    border: 0;
    background: transparent;
}

.field-help--icon summary {
    width: 24px;
    height: 24px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    text-indent: 200%;
    border-radius: 999px;
    border: 1px solid rgba(14, 116, 144, 0.2);
    background: rgba(14, 116, 144, 0.08);
    position: relative;
}

.field-help--icon summary::before {
    content: 'i';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-indent: 0;
}

.field-help--icon summary::after {
    display: none;
}

.field-help--icon .field-help__body {
    margin-left: 8px;
    padding: 6px 10px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.96);
}

.field-collapse {
    grid-column: 1 / -1;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.96));
}

.field-collapse summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-collapse summary::-webkit-details-marker {
    display: none;
}

.field-collapse summary::after {
    content: '+';
    float: right;
    color: var(--primary);
    font-size: 0.9rem;
}

.field-collapse[open] summary::after {
    content: '-';
}

.field-collapse__body {
    padding: 0 14px 14px;
    margin: 0;
}

.field-collapse--renewal {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(248, 251, 255, 0.98));
    border-color: rgba(14, 116, 144, 0.18);
}

.record-kpi-card--success {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(240, 253, 250, 0.98));
    border-color: rgba(34, 197, 94, 0.18);
}

.record-kpi-card--warning {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.98));
    border-color: rgba(245, 158, 11, 0.18);
}

.record-kpi-card--info {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(240, 249, 255, 0.98));
    border-color: rgba(14, 165, 233, 0.18);
}

.record-timeline {
    display: grid;
    gap: 12px;
}

.record-timeline__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.record-timeline__date,
.record-timeline__meta {
    color: var(--ink-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.record-timeline__title {
    color: #0f172a;
    font-size: 1rem;
}

.mobile-quickbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1060;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(3, 7, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.mobile-quickbar__item {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 8px 6px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.mobile-quickbar__item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mobile-quickbar__icon {
    width: 18px;
    height: 18px;
}

.eyebrow {
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}

.muted {
    color: var(--ink-muted) !important;
}

.hero,
.page-header,
.detail-card,
.module-card,
.metric-card,
.quick-access-card,
.dashboard-spotlight,
.table-wrapper,
.filters-bar,
.payment-summary-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 226, 235, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.page-header,
.hero,
.detail-card,
.module-card,
.dashboard-spotlight,
.payment-summary-panel {
    padding: 18px;
}

.page-header--inline,
.section-header,
.summary-strip,
.actions-row,
.actions-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.module-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
    gap: 24px;
    padding: 26px 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f3f9fc 60%, #eaf2f7 100%);
    border: 1px solid rgba(207, 221, 230, 0.95);
    box-shadow: var(--shadow-md);
}

.module-hero__content h2 {
    margin-bottom: 10px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ink);
}

.module-hero__description {
    max-width: 58ch;
    margin-bottom: 18px;
    color: var(--ink-soft);
}

.module-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.module-hero__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 109, 140, 0.1);
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.module-hero__art {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 160px;
}

.module-hero__art-panel {
    position: absolute;
    border-radius: 28px;
}

.module-hero__art-panel--back {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(15, 109, 140, 0.12), rgba(37, 99, 235, 0.06));
    transform: rotate(-10deg);
}

.module-hero__art-panel--front {
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f6d8c 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 22px 46px rgba(29, 78, 216, 0.2);
}

.hero-icon {
    width: 42px;
    height: 42px;
}

.module-hero--emerald .module-hero__art-panel--front { background: linear-gradient(135deg, #047857 0%, #0f766e 100%); }
.module-hero--teal .module-hero__art-panel--front { background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%); }
.module-hero--cyan .module-hero__art-panel--front { background: linear-gradient(135deg, #0e7490 0%, #2563eb 100%); }
.module-hero--amber .module-hero__art-panel--front { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }
.module-hero--lime .module-hero__art-panel--front { background: linear-gradient(135deg, #4d7c0f 0%, #65a30d 100%); }
.module-hero--violet .module-hero__art-panel--front { background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%); }
.module-hero--rose .module-hero__art-panel--front { background: linear-gradient(135deg, #be123c 0%, #e11d48 100%); }
.module-hero--indigo .module-hero__art-panel--front { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); }
.module-hero--slate .module-hero__art-panel--front { background: linear-gradient(135deg, #334155 0%, #475569 100%); }

.dashboard-header-card {
    padding: 22px 24px;
}

.dashboard-header-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-header-summary__item {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-kpi {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 226, 235, 0.95);
    box-shadow: var(--shadow-sm);
}

.dashboard-kpi--primary {
    background: linear-gradient(135deg, #0f6d8c 0%, #14532d 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 20px 44px rgba(15, 109, 140, 0.22);
}

.dashboard-kpi span,
.dashboard-kpi small {
    display: block;
}

.dashboard-kpi span {
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
    opacity: 0.88;
}

.dashboard-kpi strong {
    display: block;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.dashboard-kpi small {
    font-size: 0.86rem;
    color: inherit;
    opacity: 0.78;
}

.dashboard-hero-grid,
.dashboard-detail-grid,
.dashboard-activity-split {
    display: grid;
    gap: 16px;
}

.dashboard-hero-grid {
    grid-template-columns: 1.05fr 1.15fr;
}

.dashboard-detail-grid {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.dashboard-chart-card,
.dashboard-gain-card,
.dashboard-activity-card {
    padding: 22px;
}

.dashboard-ring-wrap {
    position: relative;
    display: grid;
    place-items: center;
    margin: 18px auto 20px;
    width: min(220px, 100%);
}

.dashboard-ring {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.dashboard-ring circle {
    fill: none;
    stroke: rgba(15, 109, 140, 0.12);
    stroke-width: 10;
}

.dashboard-ring__value {
    stroke: var(--primary);
    stroke-linecap: round;
}

.dashboard-ring__center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.dashboard-ring__center strong {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.dashboard-ring__center span {
    color: var(--ink-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-stack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.dashboard-stack-list div,
.detail-list div {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.dashboard-stack-list dt,
.detail-list dt {
    margin-bottom: 4px;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-stack-list dd,
.detail-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.dashboard-flow-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 230px;
    margin-top: 18px;
}

.dashboard-flow-chart__group {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.dashboard-flow-chart__bars {
    width: 100%;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.dashboard-flow-chart__bar {
    width: 16px;
    min-height: 14px;
    border-radius: 999px 999px 4px 4px;
}

.dashboard-flow-chart__bar--loans {
    background: linear-gradient(180deg, #0f6d8c 0%, #2563eb 100%);
}

.dashboard-flow-chart__bar--payments {
    background: linear-gradient(180deg, #15803d 0%, #16a34a 100%);
}

.dashboard-flow-chart__group strong,
.dashboard-legend span,
.dashboard-activity-item span,
.dashboard-activity-card__subhead {
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.dashboard-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.dashboard-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.dashboard-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dashboard-legend__dot--loans { background: #2563eb; }
.dashboard-legend__dot--payments { background: #16a34a; }

.dashboard-gain-filters {
    margin-bottom: 18px;
}

.dashboard-gain-card__amounts {
    margin-bottom: 16px;
}

.dashboard-gain-card__amounts strong {
    display: block;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-gain-card__amounts span {
    color: var(--ink-muted);
    font-size: 0.86rem;
}

.dashboard-gain-card__track,
.dashboard-ops-item__track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 109, 140, 0.08);
}

.dashboard-gain-card__fill,
.dashboard-ops-item__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f6d8c 0%, #16a34a 100%);
}

.dashboard-activity-card--dual {
    padding: 22px;
}

.dashboard-activity-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-activity-card__subhead {
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-activity-list {
    display: grid;
    gap: 10px;
}

.dashboard-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.dashboard-activity-item strong {
    color: var(--ink);
}

.metrics-grid,
.module-grid,
.quick-access-grid,
.two-column-grid,
.detail-grid,
.detail-list,
.form-grid {
    display: grid;
    gap: 16px;
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.module-grid,
.quick-access-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-column-grid,
.detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.detail-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-span-2 {
    grid-column: 1 / -1;
}

.quick-access-pill {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-access-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 109, 140, 0.22);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.quick-access-pill span,
.metric-card strong,
.module-card__header a,
.section-header h3 {
    color: var(--ink);
}

.quick-access-pill small {
    color: var(--ink-muted);
}

.module-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.module-card__header a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.filters-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--surface-soft);
}

.filters-bar label {
    flex: 1 1 180px;
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.table-wrapper {
    overflow: hidden;
}

.table-wrapper--stack-mobile {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--line);
    --bs-table-hover-bg: rgba(15, 109, 140, 0.05);
}

.table thead th,
th {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    background: #f5f8fb;
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody td,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink);
    font-size: 0.9rem;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table-stack-mobile__title {
    display: block;
    color: var(--ink);
    font-weight: 800;
}

.table-stack-mobile__meta {
    display: block;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--warning);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.summary-strip {
    margin-top: 16px;
    color: var(--ink-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--primary);
    background: #ffffff;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 109, 140, 0.15);
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-soft);
}

input,
select,
textarea,
.form-control,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 109, 140, 0.36);
    box-shadow: 0 0 0 4px rgba(15, 109, 140, 0.1);
    outline: 0;
}

.input-modern,
.form-control.input-modern {
    background: var(--surface-soft);
}

.inline-form,
.logout-form {
    margin: 0;
}

.actions-row,
.actions-cell {
    justify-content: flex-start;
}

.btn {
    min-height: 42px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
}

.btn-sm {
    min-height: 34px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0f6d8c 0%, #14532d 100%);
    border: 0;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 109, 140, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #0a5470 0%, #14532d 100%);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(15, 109, 140, 0.18);
    background: #ffffff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: rgba(15, 109, 140, 0.32);
}

.btn-outline-secondary {
    color: var(--ink-soft);
    border-color: var(--line);
    background: #ffffff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: rgba(190, 18, 60, 0.18);
    background: #fff8fa;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.empty-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--ink-muted);
}

.content {
    padding: 0;
}

.payment-summary-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* Visual refresh */
:root {
    --bg: #edf4f7;
    --bg-strong: #e2edf2;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: #f7fbfd;
    --surface-muted: #eef5f8;
    --line: #d6e3ea;
    --line-strong: #c3d4de;
    --primary: #0e7490;
    --primary-strong: #0b5b72;
    --primary-soft: rgba(14, 116, 144, 0.12);
    --accent: #0f766e;
    --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 24px 54px rgba(15, 23, 42, 0.1);
}

body {
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, 0.16), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(16, 185, 129, 0.1), transparent 18%),
        linear-gradient(180deg, #f3f8fb 0%, #eaf1f5 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

body::before {
    width: 240px;
    height: 240px;
    top: 96px;
    right: -72px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.12) 0%, rgba(14, 116, 144, 0) 72%);
}

body::after {
    width: 220px;
    height: 220px;
    bottom: 28px;
    left: -68px;
    background: radial-gradient(circle, rgba(21, 128, 61, 0.09) 0%, rgba(21, 128, 61, 0) 72%);
}

.app-shell,
.main-area,
.page-content,
.sidebar,
.topbar {
    position: relative;
    z-index: 1;
}

.sidebar {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 18%),
        linear-gradient(180deg, #06080d 0%, #0b1220 42%, #0d1525 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 18px 0 42px rgba(2, 6, 23, 0.22);
}

.sidebar-brand,
.sidebar-user {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 14px;
}

.nav-section {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.nav-section__toggle {
    min-height: 50px;
}

.nav-items {
    gap: 8px;
    padding: 4px 10px 12px;
}

.nav-item {
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
}

.nav-item.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 3px 0 0 #38bdf8, 0 12px 24px rgba(2, 6, 23, 0.22);
}

.btn-logout {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
}

.topbar {
    margin: 14px 18px 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.topbar-chip,
.topbar-role {
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.page-content {
    padding: 22px 18px 28px;
}

.page-header,
.detail-card,
.module-card,
.metric-card,
.quick-access-card,
.dashboard-spotlight,
.table-wrapper,
.filters-bar,
.payment-summary-panel,
.admin-filters-bar,
.admin-table-shell {
    border-color: rgba(214, 227, 234, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.page-header,
.detail-card,
.module-card,
.metric-card,
.quick-access-card,
.dashboard-spotlight,
.payment-summary-panel,
.admin-table-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
}

.detail-card,
.module-card,
.metric-card,
.quick-access-card,
.dashboard-spotlight,
.payment-summary-panel,
.admin-table-shell,
.filters-bar,
.admin-filters-bar {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.detail-card:hover,
.module-card:hover,
.metric-card:hover,
.quick-access-card:hover,
.dashboard-spotlight:hover,
.payment-summary-panel:hover,
.admin-table-shell:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.09);
    border-color: rgba(14, 116, 144, 0.16);
}

.module-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 24%),
        radial-gradient(circle at bottom left, rgba(14, 116, 144, 0.1), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f4fafe 58%, #e9f2f7 100%);
}

.module-hero::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -42px;
    top: -34px;
    border-radius: 36px;
    transform: rotate(18deg);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(14, 116, 144, 0));
}

.module-hero__chips span {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(14, 116, 144, 0.12);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.filters-bar,
.admin-filters-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 253, 0.98));
}

.table-wrapper,
.admin-table-shell {
    border-radius: 22px;
}

.table thead th,
th {
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
    color: #5b7286;
}

.table tbody tr {
    transition: background-color 0.14s ease, transform 0.14s ease;
}

.table tbody tr:hover {
    background: rgba(14, 116, 144, 0.035);
}

.table tbody td,
td {
    border-bottom-color: rgba(214, 227, 234, 0.84);
}

input,
select,
textarea,
.form-control,
.form-select {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-color: rgba(195, 212, 222, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:hover,
select:hover,
textarea:hover,
.form-control:hover,
.form-select:hover {
    border-color: rgba(14, 116, 144, 0.2);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: rgba(14, 116, 144, 0.42);
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1), 0 12px 22px rgba(14, 116, 144, 0.08);
}

.btn {
    min-height: 44px;
    letter-spacing: 0.01em;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #0e7490 0%, #0f766e 54%, #166534 100%);
    box-shadow: 0 14px 28px rgba(14, 116, 144, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #0b5b72 0%, #115e59 54%, #14532d 100%);
    box-shadow: 0 18px 32px rgba(14, 116, 144, 0.24);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.detail-list div {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(241, 246, 249, 0.92));
    border: 1px solid rgba(214, 227, 234, 0.86);
}

.status-badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (max-width: 991.98px) {
    .topbar {
        margin: 10px 12px 0;
        padding-inline: 16px;
        border-radius: 18px;
    }

    .page-content {
        padding: 18px 12px 26px;
    }

    .detail-card:hover,
    .module-card:hover,
    .metric-card:hover,
    .quick-access-card:hover,
    .dashboard-spotlight:hover,
    .payment-summary-panel:hover,
    .admin-table-shell:hover {
        transform: none;
    }
}

.loan-calculator-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(15, 109, 140, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fcfe 0%, #eff7fb 100%);
}

.loan-calculator-panel--flat {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.loan-calculator-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.loan-calculator-panel__header h3 {
    margin-bottom: 6px;
    color: var(--ink);
}

.loan-calculator-hero {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(14, 116, 144, 0.16);
}

.loan-calculator-hero__primary {
    display: grid;
    gap: 4px;
}

.loan-calculator-hero__label,
.loan-calculator-hero__mini-label {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loan-calculator-hero__amount {
    color: var(--ink);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 2.1vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
}

.loan-calculator-hero__meta {
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.35;
}

.loan-calculator-hero__aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.loan-calculator-hero__aside div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(214, 227, 234, 0.9);
}

.loan-calculator-hero__aside strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.loan-calculator-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loan-calculator-list dd {
    font-size: 1rem;
}

.loan-calculator-list__item--accent {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(240, 253, 250, 0.92));
    border-color: rgba(34, 197, 94, 0.16);
}

.loan-calculator-list__item--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.94));
}

@media (max-width: 1199.98px) {
    .loan-calculator-hero__aside {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .loan-calculator-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.mode-spotlight {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    background:
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(248, 252, 254, 0.98), rgba(238, 247, 251, 0.96));
}

.mode-spotlight--interest {
    border-color: rgba(245, 158, 11, 0.2);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 220, 0.96));
}

.mode-spotlight__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mode-spotlight__title {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.mode-spotlight__copy {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 0.86rem;
}

.mode-spotlight--compact {
    gap: 8px;
    padding: 12px 14px;
}

.mode-spotlight__body {
    display: grid;
    gap: 10px;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.12);
    color: #0c667f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mode-badge--interest {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.mode-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.mode-points span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(214, 227, 234, 0.9);
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.mode-points span::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0e7490, #0f766e);
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
    flex: 0 0 auto;
}

.context-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.context-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(206, 220, 228, 0.92);
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.record-timeline__meta--interest,
.table-secondary-meta .table-chip--interest {
    color: #b45309;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.1);
    color: #0c667f;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-chip--interest {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

@media (max-width: 767px) {
    .mode-spotlight__top {
        grid-template-columns: 1fr;
        display: grid;
    }

    .mode-badge {
        justify-self: flex-start;
    }
}

@media (max-width: 1199px) {
    .dashboard-hero-grid,
    .dashboard-detail-grid,
    .module-hero {
        grid-template-columns: 1fr;
    }

    .module-hero__art {
        min-height: 120px;
    }
}

@media (max-width: 991px) {
    .mobile-topbar {
        display: flex;
    }

    .mobile-quickbar {
        display: grid;
    }

    .sidebar.offcanvas-lg {
        --bs-offcanvas-width: min(86vw, 320px);
        --bs-offcanvas-bg: #050505;
        --bs-offcanvas-color: var(--sidebar-text-strong);
        --bs-offcanvas-border-color: var(--sidebar-border);
        --bs-offcanvas-box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
        z-index: 1080;
    }

    .sidebar.offcanvas-lg .offcanvas-body {
        padding: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
            linear-gradient(180deg, #030303 0%, #0a0d11 100%);
    }

    .sidebar.offcanvas-lg.show,
    .sidebar.offcanvas-lg.showing {
        visibility: visible;
    }

    .offcanvas-backdrop.show {
        opacity: 0.42;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        height: 100vh;
    }

    .topbar {
        min-height: 56px;
        padding: 12px 16px;
        gap: 10px;
        align-items: flex-start;
    }

    .topbar-user {
        display: none;
    }

    .topbar__right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .sync-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .sync-panel__status,
    .sync-panel__stats,
    .sync-panel__actions {
        width: 100%;
    }

    .sync-panel__stats,
    .sync-panel__actions {
        justify-content: flex-start;
    }

    .page-content {
        padding: 18px 18px 110px;
        gap: 16px;
    }

    .page-header,
    .hero,
    .detail-card,
    .module-card,
    .dashboard-spotlight,
    .module-hero,
    .filters-bar,
    .payment-summary-panel,
    .auth-card {
        border-radius: 20px;
    }

    .dashboard-kpi-strip,
    .dashboard-activity-split,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header-summary__item--compact-hide {
        display: none;
    }
}

@media (max-width: 767px) {
    .module-title {
        font-size: 1rem;
    }

    .topbar-presence {
        display: none;
    }

    .sync-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .sync-panel__status,
    .sync-panel__stats,
    .sync-panel__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .sync-panel__badge,
    .sync-panel__button {
        width: 100%;
        justify-content: center;
    }

    .sync-stat {
        width: 100%;
    }

    .module-hero {
        padding: 20px;
    }

    .module-hero__content h2 {
        font-size: 1.55rem;
    }

    .page-header,
    .hero,
    .detail-card,
    .module-card,
    .dashboard-spotlight,
    .payment-summary-panel {
        padding: 18px;
    }

    .table thead {
        display: none;
    }

    .table-stack-mobile,
    .table-stack-mobile tbody,
    .table-stack-mobile__row,
    .table-stack-mobile__cell {
        display: block;
        width: 100%;
    }

    .table-stack-mobile__row {
        padding: 14px;
        border-bottom: 1px solid var(--line);
        background: #ffffff;
    }

    .table-stack-mobile__row:last-child {
        border-bottom: 0;
    }

    .table-stack-mobile__cell {
        padding: 0;
        border: 0;
    }

    .table-stack-mobile__cell + .table-stack-mobile__cell {
        margin-top: 10px;
    }

    .table-stack-mobile__cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--ink-muted);
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .table-stack-mobile__cell--headline {
        padding: 0 0 8px;
        margin-bottom: 8px;
        border-bottom: 1px dashed var(--line);
    }

    .table-stack-mobile__cell--headline::before {
        display: none;
    }

    .table-stack-mobile__cell--compact-hidden {
        display: none;
    }

    .table-stack-mobile__cell--mini,
    .table-stack-mobile__cell--badge,
    .table-stack-mobile__cell--amount,
    .table-stack-mobile__cell--date {
        display: inline-block;
        width: calc(50% - 8px);
        vertical-align: top;
    }

    .table-stack-mobile__cell--badge,
    .table-stack-mobile__cell--date {
        margin-left: 12px;
    }

    .table-stack-mobile__cell--actions {
        margin-top: 14px !important;
        padding-top: 12px;
        border-top: 1px dashed var(--line);
    }

    .actions-cell {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .auth-shell {
        padding: 16px;
    }

    .dashboard-kpi {
        padding: 18px;
    }

    .dashboard-ring {
        width: 150px;
        height: 150px;
    }

    .table-stack-mobile__cell--mini,
    .table-stack-mobile__cell--badge,
    .table-stack-mobile__cell--amount,
    .table-stack-mobile__cell--date {
        display: block;
        width: 100%;
        margin-left: 0;
    }
}

.sidebar-panel {
    margin: 16px 18px 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-panel__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-panel strong {
    display: block;
    margin-bottom: 6px;
    color: #f8fafc;
    font-size: 1rem;
}

.sidebar-panel p {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.sidebar-panel__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-panel__meta span,
.topbar-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
}

.nav-section__lead {
    gap: 10px;
    width: 100%;
}

.nav-section__icon,
.nav-item__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: inherit;
    opacity: 0.9;
}

.nav-item {
    gap: 10px;
}

.nav-item__label {
    flex: 1;
}

.topbar {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.admin-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 18px;
    align-items: start;
    padding: 26px 28px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f5f9ff 58%, #eff6ff 100%);
    box-shadow: var(--shadow-md);
}

.admin-dashboard-hero h2 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    color: #0f172a;
}

.admin-dashboard-hero__copy {
    margin-bottom: 0;
    max-width: 720px;
    color: var(--ink-soft);
}

.admin-dashboard-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-dashboard-hero__badges span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-stat-grid,
.admin-chart-grid,
.admin-activity-grid {
    display: grid;
    gap: 18px;
}

.admin-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-card,
.admin-chart-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card {
    padding: 20px 22px;
}

.admin-stat-card--primary {
    background: linear-gradient(135deg, #0f6d8c 0%, #1d4ed8 100%);
    border-color: transparent;
    color: #ffffff;
}

.admin-stat-card--success {
    background: linear-gradient(135deg, #14532d 0%, #15803d 100%);
    border-color: transparent;
    color: #ffffff;
}

.admin-stat-card__label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.86;
}

.admin-stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.9rem;
    line-height: 1.1;
}

.admin-stat-card small {
    color: inherit;
    opacity: 0.8;
}

.admin-chart-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

.admin-chart-grid--secondary,
.admin-activity-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.admin-chart-panel {
    padding: 22px;
}

.admin-chart-panel--wide {
    min-height: 390px;
}

.admin-chart-panel--soft {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-chart-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-chart-panel__head h3 {
    margin-bottom: 0;
    color: #0f172a;
}

.admin-chart-panel__tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
}

.admin-chart-canvas {
    position: relative;
    min-height: 290px;
}

.admin-chart-canvas--compact {
    min-height: 250px;
}

.admin-metric-list,
.admin-summary-list {
    display: grid;
    gap: 12px;
}

.admin-metric-list {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-metric-list div,
.admin-summary-list div {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-metric-list dt,
.admin-summary-list span {
    margin-bottom: 6px;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-metric-list dd,
.admin-summary-list strong {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-gain-highlight strong {
    display: block;
    margin-bottom: 6px;
    font-size: 2rem;
}

.admin-dashboard-hero--compact {
    align-items: center;
}

.dashboard-chart-grid--triple {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.dashboard-chart-grid--quad {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
}

.admin-chart-panel--portfolio {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-summary-list--tight {
    gap: 10px;
}

.dashboard-bottom-grid {
    grid-template-columns: 1fr 1.25fr;
}

.dashboard-whatsapp-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-whatsapp-message {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.95), rgba(236, 253, 245, 0.88));
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.dashboard-whatsapp-message--live {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.88));
    border-color: rgba(14, 116, 144, 0.16);
}

.dashboard-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-management-grid {
    margin-top: 18px;
}

.dashboard-export-panel {
    margin-bottom: 18px;
}

.dashboard-export-panel__head {
    margin-bottom: 0;
}

.dashboard-export-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.dashboard-management-panels {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.dashboard-control-board {
    grid-column: 1 / -1;
}

.dashboard-management-ranking,
.dashboard-management-exposure {
    min-height: 100%;
}

.dashboard-alerts-panel {
    min-height: 100%;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.dashboard-pill--success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.dashboard-pill--warning {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.dashboard-pill--danger {
    background: rgba(244, 63, 94, 0.12);
    color: #9f1239;
}

.dashboard-alert-meta {
    margin-top: 4px;
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.dashboard-executive-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.dashboard-executive-kpis div {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-executive-kpis span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-executive-kpis strong {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-activity-item--link {
    color: inherit;
}

.dashboard-activity-item--link:hover {
    background: rgba(15, 109, 140, 0.06);
}

.dashboard-whatsapp-message span {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.dashboard-whatsapp-message blockquote {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.65;
}

.dashboard-whatsapp-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-whatsapp-meta div {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-whatsapp-meta span {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-whatsapp-meta strong {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 0.98rem;
}

.dashboard-whatsapp-button {
    width: 100%;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    font-weight: 700;
}

.dashboard-whatsapp-empty {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(148, 163, 184, 0.55);
    color: #64748b;
    font-size: 0.95rem;
}

.dashboard-activity-item--empty {
    justify-content: flex-start;
}

.dashboard-whatsapp-list {
    display: grid;
    gap: 1rem;
}

.dashboard-whatsapp-card {
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.dashboard-whatsapp-card--empty {
    text-align: center;
    color: #64748b;
}

.dashboard-whatsapp-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dashboard-whatsapp-card__header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
}

.dashboard-whatsapp-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 1199px) {
    .admin-stat-grid,
    .admin-chart-grid,
    .admin-chart-grid--secondary,
    .admin-activity-grid,
    .admin-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-grid--triple,
    .dashboard-bottom-grid,
    .dashboard-whatsapp-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-whatsapp-card__header {
        flex-direction: column;
    }

    .admin-dashboard-hero__badges {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .sidebar-panel {
        margin-inline: 16px;
    }

    .topbar-chip {
        display: none;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .admin-stat-grid,
    .admin-metric-list {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-hero,
    .admin-chart-panel,
    .admin-stat-card {
        padding: 18px;
    }

    .admin-chart-canvas {
        min-height: 240px;
    }
}

.auth-card--admin {
    width: min(1080px, 100%);
}

.auth-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    min-height: 620px;
}

.auth-admin-panel {
    padding: 42px 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.24), transparent 30%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.16), transparent 26%),
        linear-gradient(160deg, #07111b 0%, #0c1724 48%, #10283e 100%);
}

.auth-admin-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 2.4vw, 2.7rem);
    line-height: 1.06;
}

.auth-admin-panel p {
    color: rgba(226, 232, 240, 0.88);
}

.auth-admin-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.auth-admin-highlights span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-form-pane--admin {
    display: flex;
    align-items: center;
    padding: 42px 34px;
}

.auth-form-shell--admin {
    width: min(430px, 100%);
}

.auth-admin-form .form-control {
    min-height: 56px;
    border-radius: 16px;
}

.admin-form-banner {
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 255, 0.96));
    box-shadow: var(--shadow-sm);
}

.admin-form-banner--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}

.admin-form-banner--compact h2 {
    margin-bottom: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.admin-form-banner--compact .eyebrow {
    margin-bottom: 2px;
}

.admin-form-banner--compact .muted {
    max-width: 320px;
    font-size: 0.84rem;
    text-align: right;
}

.admin-form-shell,
.admin-list-shell {
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.admin-form-grid {
    gap: 18px 20px;
}

.admin-form-grid--with-sidebar {
    align-items: start;
}

.admin-form-grid label {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-form-grid label > span {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-form-grid .form-control,
.admin-form-grid .form-select {
    min-height: 50px;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.24);
    background: #f8fbff;
}

.admin-form-grid textarea.form-control {
    min-height: 96px;
}

.admin-form-grid small.muted {
    display: block;
    margin-top: 8px;
}

.admin-form-grid .loan-calculator-panel,
.admin-form-grid .payment-summary-panel {
    border-radius: 22px;
}

.form-span-main,
.form-side-panel {
    grid-column: 1 / -1;
}

@media (min-width: 1200px) {
    .admin-form-grid--with-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 0.9fr);
    }

    .admin-form-grid--with-sidebar .form-span-main {
        grid-column: 1 / span 2;
    }

    .admin-form-grid--with-sidebar .form-side-panel {
        grid-column: 3;
    }

    .admin-form-grid--with-sidebar .form-side-panel--sticky {
        position: sticky;
        top: 88px;
    }
}

.admin-form-actions {
    align-items: center;
    justify-content: flex-end;
    padding: 12px 0 0;
}

.admin-list-toolbar {
    margin-bottom: 16px;
}

.admin-filters-bar {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-filters-bar label {
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-filters-bar label > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.admin-filters-bar .form-control,
.admin-filters-bar .form-select {
    min-height: 48px;
    border-radius: 14px;
    background: #ffffff;
}

.admin-table-shell {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-table-shell .table {
    margin-bottom: 0;
}

.admin-table-shell .table thead th {
    padding: 16px 14px;
    border-bottom-width: 1px;
    border-color: rgba(148, 163, 184, 0.16);
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 800;
}

.member-photo-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px dashed rgba(14, 116, 144, 0.22);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.78), rgba(248, 250, 252, 0.92));
}

.member-photo-panel__preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo-panel__body {
    display: grid;
    gap: 12px;
}

.member-photo-panel__body label {
    margin: 0;
}

.member-photo-panel__remove {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
}

.member-profile-header__identity,
.member-listing {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-listing {
    min-width: 0;
}

.member-listing > span {
    display: grid;
    min-width: 0;
}

.member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #155e75);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.member-avatar--photo {
    object-fit: cover;
    background: #e2e8f0;
    color: transparent;
}

.member-avatar--placeholder {
    text-transform: uppercase;
}

.member-avatar--sm {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
}

.member-avatar--xl {
    width: 112px;
    height: 112px;
    font-size: 2rem;
}

.member-photo-panel__image {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767.98px) {
    .member-photo-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .member-profile-header__identity,
    .member-listing {
        align-items: flex-start;
    }
}
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f8fbff;
}

.admin-table-shell .table tbody td {
    padding: 14px;
    border-color: rgba(148, 163, 184, 0.12);
}

.admin-summary-strip {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: #f8fbff;
}

@media (max-width: 991px) {
    .auth-admin-grid {
        grid-template-columns: 1fr;
    }

    .auth-admin-panel,
    .auth-form-pane--admin {
        padding: 28px 24px;
    }
}

@media (max-width: 575px) {
    .admin-form-banner,
    .admin-filters-bar,
    .admin-summary-strip {
        padding: 16px;
    }

    .admin-form-grid label {
        padding: 12px;
    }
}

.admin-list-overview,
.dashboard-priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.admin-list-overview__metric,
.dashboard-priority-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.98));
    box-shadow: var(--shadow-sm);
}

.admin-list-overview__metric::after,
.dashboard-priority-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -45% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 68%);
}

.admin-list-overview__label,
.dashboard-priority-card__label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-list-overview__value,
.dashboard-priority-card__value {
    display: block;
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.1;
}

.admin-list-overview__meta,
.dashboard-priority-card__meta {
    position: relative;
    z-index: 1;
    color: var(--ink-soft);
}

.dashboard-priority-card--danger {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 247, 248, 0.98));
    border-color: rgba(244, 63, 94, 0.18);
}

.dashboard-priority-card--warning {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.98));
    border-color: rgba(245, 158, 11, 0.18);
}

.dashboard-priority-card--success {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(240, 253, 250, 0.98));
    border-color: rgba(34, 197, 94, 0.18);
}

.dashboard-priority-card--info {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(240, 249, 255, 0.98));
    border-color: rgba(14, 165, 233, 0.18);
}

.dashboard-priority-card--muted {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
}

.admin-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-list-head__title {
    margin-bottom: 6px;
    font-size: 1.3rem;
    color: #0f172a;
}

.admin-list-head__copy {
    max-width: 720px;
    margin: 0;
    color: var(--ink-soft);
}

.admin-list-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 109, 140, 0.12);
    background: rgba(15, 109, 140, 0.08);
    color: #0b4f67;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-filter-chip--muted {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.14);
    color: var(--ink-soft);
}

.table-secondary-meta {
    display: block;
    margin-top: 4px;
    color: var(--ink-muted);
    font-size: 0.8rem;
}

.table-amount-strong {
    color: #0f172a;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.table-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 109, 140, 0.08);
    color: #0b4f67;
    font-weight: 800;
}

.table-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.status-badge--success {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.18);
}

.status-badge--warning {
    background: rgba(245, 158, 11, 0.14);
    color: #9a3412;
    border-color: rgba(245, 158, 11, 0.18);
}

.status-badge--danger {
    background: rgba(244, 63, 94, 0.14);
    color: #9f1239;
    border-color: rgba(244, 63, 94, 0.18);
}

.status-badge--info {
    background: rgba(14, 165, 233, 0.14);
    color: #075985;
    border-color: rgba(14, 165, 233, 0.18);
}

.status-badge--muted {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.2);
}

.table-row-highlight--danger .table-stack-mobile__title,
.table-row-highlight--warning .table-stack-mobile__title,
.table-row-highlight--success .table-stack-mobile__title,
.table-row-highlight--info .table-stack-mobile__title {
    color: #0f172a;
}

.admin-dashboard-hero__badges span {
    display: grid;
    gap: 4px;
    min-width: 132px;
}

.admin-dashboard-hero__badges strong {
    font-size: 1rem;
    color: #ffffff;
}

.admin-dashboard-hero__badges small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .admin-list-head {
        flex-direction: column;
    }

    .admin-list-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .admin-list-overview,
    .dashboard-priority-grid,
    .admin-form-overview,
    .record-kpi-grid {
        grid-template-columns: 1fr;
    }


.topbar__copy {
    margin: 2px 0 0;
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.topbar-date {
    display: inline-grid;
    justify-items: end;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topbar-date strong {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.topbar-date small {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-list-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-list-overview__metric {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(214, 227, 234, 0.86);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
    box-shadow: var(--shadow-sm);
}

.admin-list-overview__metric::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.24);
}

.admin-list-overview__metric--primary::after { background: #0e7490; }
.admin-list-overview__metric--info::after { background: #0ea5e9; }
.admin-list-overview__metric--success::after { background: #16a34a; }
.admin-list-overview__metric--warning::after { background: #d97706; }

.admin-list-overview__label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-list-overview__value {
    display: block;
    color: #0f172a;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.05;
}

.admin-list-overview__meta {
    display: block;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.table-headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.table-secondary-meta {
    margin-top: 6px;
    color: var(--ink-soft);
    line-height: 1.35;
}

.table-row-highlight--danger td:first-child,
.table-row-highlight--warning td:first-child,
.table-row-highlight--success td:first-child,
.table-row-highlight--info td:first-child {
    box-shadow: inset 4px 0 0 transparent;
}

.table-row-highlight--danger td:first-child { box-shadow: inset 4px 0 0 rgba(190, 24, 93, 0.86); }
.table-row-highlight--warning td:first-child { box-shadow: inset 4px 0 0 rgba(217, 119, 6, 0.86); }
.table-row-highlight--success td:first-child { box-shadow: inset 4px 0 0 rgba(22, 163, 74, 0.86); }
.table-row-highlight--info td:first-child { box-shadow: inset 4px 0 0 rgba(14, 165, 233, 0.86); }

.loan-record-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 18px;
    padding: 24px 26px;
    border-radius: 28px;
    border: 1px solid rgba(214, 227, 234, 0.88);
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 24%), linear-gradient(135deg, #ffffff 0%, #f3f9fc 62%, #ecf4f9 100%);
    box-shadow: var(--shadow-md);
}

.loan-record-hero--info { background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 24%), linear-gradient(135deg, #ffffff 0%, #f3f9fc 62%, #ecf4f9 100%); }
.loan-record-hero--success { background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 24%), linear-gradient(135deg, #ffffff 0%, #f7fcf8 62%, #eef8f1 100%); }
.loan-record-hero--warning { background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 24%), linear-gradient(135deg, #ffffff 0%, #fffaf2 62%, #fff5e9 100%); }
.loan-record-hero--danger { background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.14), transparent 24%), linear-gradient(135deg, #ffffff 0%, #fff6f8 62%, #fff0f4 100%); }

.loan-record-hero__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.loan-record-hero__title-row h2 {
    margin-bottom: 0;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    font-weight: 800;
}

.loan-record-hero__copy {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.loan-record-hero__figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.loan-record-hero__figures div,
.loan-record-renewals__grid div,
.loan-record-notes {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(214, 227, 234, 0.9);
}

.loan-record-hero__figures span,
.loan-record-renewals__grid span,
.loan-record-notes span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loan-record-hero__figures strong,
.loan-record-renewals__grid strong {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.loan-record-hero__actions {
    display: grid;
    align-content: start;
    gap: 10px;
}

.loan-record-renewals__grid,
.loan-record-layout {
    display: grid;
    gap: 16px;
}

.loan-record-renewals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loan-record-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.loan-record-panel {
    display: grid;
    gap: 16px;
}

.loan-record-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loan-record-notes p {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.loan-record-timeline {
    gap: 14px;
}

.loan-record-timeline__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.94));
}

.loan-record-timeline__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.context-pill--danger { background: rgba(244, 63, 94, 0.12); color: #9f1239; }
.context-pill--warning { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.context-pill--success { background: rgba(34, 197, 94, 0.12); color: #166534; }
.context-pill--info { background: rgba(14, 165, 233, 0.12); color: #0c4a6e; }

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-mini-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(214, 227, 234, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
    box-shadow: var(--shadow-sm);
}

.dashboard-mini-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-mini-card__head span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-mini-card__head strong {
    color: #0f172a;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.dashboard-mini-card__head small,
.dashboard-mini-card p {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.dashboard-mini-card p {
    margin: 12px 0 0;
    line-height: 1.45;
}

.dashboard-mini-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.1);
}

.dashboard-mini-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0e7490 0%, #16a34a 100%);
}

.dashboard-mini-track--warning span {
    background: linear-gradient(90deg, #d97706 0%, #dc2626 100%);
}

.dashboard-mini-bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 140px;
}

.dashboard-mini-bars__item {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.dashboard-mini-bars__item span {
    display: block;
    width: 100%;
    min-height: 18px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #0ea5e9 0%, #2563eb 100%);
}

.dashboard-mini-bars__item--warning span { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.dashboard-mini-bars__item--danger span { background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%); }

.dashboard-mini-bars__item strong {
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
}

.dashboard-mini-bars__item small {
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

@media (max-width: 1199px) {
    .loan-record-hero,
    .loan-record-layout,
    .dashboard-mini-grid,
    .admin-list-overview {
        grid-template-columns: 1fr;
    }

    .loan-record-hero__figures,
    .loan-record-renewals__grid,
    .loan-record-detail-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .topbar__copy,
    .topbar-date {
        display: none;
    }

    .loan-record-hero,
    .dashboard-mini-card {
        padding: 18px;
    }

    .loan-record-hero__figures,
    .loan-record-renewals__grid,
    .loan-record-detail-list,
    .dashboard-mini-bars,
    .admin-list-overview {
        grid-template-columns: 1fr;
    }

    .table-headline-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
    .table-action-row {
        justify-content: flex-start;
    }

    .admin-form-banner--compact {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-form-banner--compact .muted {
        max-width: none;
        text-align: left;
    }
}

/* ═══════════════════════════════════════════════════════════════
   VISUAL ENHANCEMENT PACK
   Animations, Toast, Clock, Theme Picker, Auth Panel, Mobile
═══════════════════════════════════════════════════════════════ */

/* ── Global base ── */
html { scroll-behavior: smooth; }

*:focus-visible {
    outline: 2px solid var(--primary, #0f766e);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Keyframes ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(22px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(110%); }
}
@keyframes pulseRing {
    0%   { transform: scale(1);   opacity: 0.75; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}
@keyframes rippleAnim {
    from { transform: scale(0); opacity: 0.38; }
    to   { transform: scale(4); opacity: 0; }
}
@keyframes gradientShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
@keyframes floatUp {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}
@keyframes shimmer {
    from { background-position: -200% 0; }
    to   { background-position:  200% 0; }
}
@keyframes quickbarIn {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Staggered page content entrance ── */
.page-content > * { animation: fadeInUp 0.36s ease both; }
.page-content > *:nth-child(1) { animation-delay: 0.04s; }
.page-content > *:nth-child(2) { animation-delay: 0.09s; }
.page-content > *:nth-child(3) { animation-delay: 0.14s; }
.page-content > *:nth-child(4) { animation-delay: 0.18s; }
.page-content > *:nth-child(5) { animation-delay: 0.22s; }
.page-content > *:nth-child(n+6) { animation-delay: 0.26s; }

/* ── Ripple ── */
.btn,
.nav-item,
.quick-access-pill,
.mobile-quickbar__item {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: rippleAnim 0.55s linear forwards;
}

/* ── Skeleton loaders ── */
.skeleton {
    border-radius: 8px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
.skeleton-text  { height: 1em;  margin-bottom: 0.5em; }
.skeleton-card  { height: 120px; }
.skeleton-circle { border-radius: 50%; }

/* ── Topbar tone bar ── */
.topbar__module-tone-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0;
    background: var(--primary, #0f766e);
    opacity: 0.9;
    transition: background 0.45s ease;
}

/* ── Live clock ── */
#topbar-time-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: var(--ink);
}

/* ── Nav badge pulse ── */
.nav-item__badge {
    position: relative;
}
.nav-item__badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pulseRing 2s ease-out infinite;
    background: currentColor;
    opacity: 0;
}

/* ── Toast notification system ── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    width: min(340px, calc(100vw - 40px));
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
    pointer-events: all;
    animation: toastIn 0.32s cubic-bezier(0.34,1.56,0.64,1) both;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast-item.is-leaving {
    animation: toastOut 0.28s ease forwards;
}

.toast-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: #64748b;
}

.toast-item--success .toast-item__icon { background: #16a34a; }
.toast-item--error   .toast-item__icon { background: #dc2626; }
.toast-item--warning .toast-item__icon { background: #d97706; color: #fff; }
.toast-item--info    .toast-item__icon { background: #0ea5e9; }

.toast-item__body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.toast-item__title {
    display: block;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.3;
}

.toast-item__msg {
    display: block;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.4;
}

.toast-item__close {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s;
}
.toast-item__close:hover { color: #1e293b; }

/* ── Table improvements: sortable headers & empty state ── */
th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.18s;
}
th.sortable::after {
    content: ' ⇅';
    opacity: 0.38;
    font-size: 0.7em;
}
th.sort-asc::after  { content: ' ↑'; opacity: 1; }
th.sort-desc::after { content: ' ↓'; opacity: 1; }
th.sort-asc,
th.sort-desc { color: var(--primary, #0f766e); }

/* Table row hover enhancement */
.admin-table-shell .table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.admin-table-shell .table tbody tr:hover {
    background: rgba(14, 116, 144, 0.035);
    box-shadow: inset 3px 0 0 rgba(14, 116, 144, 0.5);
}

/* Empty state floating animation */
.empty-state__art {
    animation: floatUp 3.8s ease-in-out infinite;
}

/* ── Filter chips — interactive ── */
.admin-filter-chip {
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.admin-filter-chip:hover {
    background: rgba(15, 109, 140, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 109, 140, 0.12);
}
.admin-filter-chip.is-active {
    background: rgba(15, 109, 140, 0.18);
    border-color: rgba(15, 109, 140, 0.28);
    color: #0b4f67;
    font-weight: 800;
}

/* ── Mobile quickbar entrance ── */
.mobile-quickbar {
    animation: quickbarIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
    animation-delay: 0.2s;
}

.mobile-quickbar__item.is-active {
    color: var(--primary, #0f766e);
    filter: drop-shadow(0 0 6px rgba(14, 116, 144, 0.5));
}

/* ── Auth page — animated gradient background ── */
.auth-card--admin {
    animation: fadeIn 0.55s ease both;
}

.auth-admin-panel {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.28), transparent 30%),
        radial-gradient(circle at bottom left,  rgba(16, 185, 129, 0.2), transparent 26%),
        linear-gradient(160deg, #07111b 0%, #0c1724 48%, #10283e 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

/* ── Auth panel stat cards ── */
.auth-panel-art {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.auth-panel-art__stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slideInRight 0.4s ease both;
}
.auth-panel-art__stat:nth-child(1) { animation-delay: 0.15s; }
.auth-panel-art__stat:nth-child(2) { animation-delay: 0.25s; }
.auth-panel-art__stat:nth-child(3) { animation-delay: 0.35s; }

.auth-panel-art__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.2rem;
}

.auth-panel-art__stat-body {
    display: grid;
    gap: 2px;
}

.auth-panel-art__stat-value {
    display: block;
    color: #ffffff;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.auth-panel-art__stat-label {
    display: block;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Color theme picker widget ── */
.theme-picker {
    position: relative;
    display: inline-flex;
}

#theme-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    font-size: 1rem;
}
#theme-picker-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.08);
}

#theme-picker-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 9990;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 172px;
    animation: fadeInUp 0.22s ease both;
}
#theme-picker-panel.is-open { display: block; }

.theme-picker__label {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    outline: none;
}
.theme-swatch:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}
.theme-swatch.is-active {
    border-color: #0f172a;
    transform: scale(1.18);
}
.theme-swatch[data-theme="teal"]    { background: #0f766e; }
.theme-swatch[data-theme="blue"]    { background: #1d4ed8; }
.theme-swatch[data-theme="violet"]  { background: #7c3aed; }
.theme-swatch[data-theme="emerald"] { background: #059669; }
.theme-swatch[data-theme="rose"]    { background: #be123c; }

/* ── Color themes ── */
[data-theme="blue"] {
    --primary:       #1d4ed8;
    --primary-light: #dbeafe;
    --primary-dark:  #1e3a8a;
    --ink-accent:    #1d4ed8;
}

[data-theme="violet"] {
    --primary:       #7c3aed;
    --primary-light: #ede9fe;
    --primary-dark:  #4c1d95;
    --ink-accent:    #7c3aed;
}

[data-theme="emerald"] {
    --primary:       #059669;
    --primary-light: #d1fae5;
    --primary-dark:  #064e3b;
    --ink-accent:    #059669;
}

[data-theme="rose"] {
    --primary:       #be123c;
    --primary-light: #ffe4e6;
    --primary-dark:  #881337;
    --ink-accent:    #be123c;
}

/* Apply theme --primary to key elements */
[data-theme] .sidebar { border-right-color: rgba(var(--primary-rgb, 15,118,110), 0.12); }
[data-theme] .nav-item.is-active { box-shadow: inset 3px 0 0 var(--primary); }
[data-theme] .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
[data-theme] .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
[data-theme] a:not(.btn):not(.nav-item) { color: var(--primary); }
[data-theme] .topbar__module-tone-bar  { background: var(--primary); }
[data-theme] th.sort-asc,
[data-theme] th.sort-desc              { color: var(--primary); }
[data-theme] .admin-table-shell .table tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--primary);
}

/* ── Toast mobile offset (clear the quickbar) ── */
@media (max-width: 991.98px) {
    #toast-container { bottom: 110px; }
}

/* ── auth-admin-panel hidden on mobile ── */
@media (max-width: 767.98px) {
    .auth-admin-panel { display: none; }
}
