:root {
    --sa-sidebar-bg: #0b1120;
    --sa-credits-box: #1e293b;
    --sa-nav-muted: #64748b;
    --sa-nav-inactive: #94a3b8;
    --sa-highlight-bg: #2d161a;
    --sa-highlight-border: #7f1d1d;
    --sa-highlight-text: #f87171;
    --sa-credits-green: #22c55e;
    --sa-accent-form: #10b981;
    --sa-accent-form-hover: #059669;
    --sa-surface: #f8fafc;
    --sa-card: #ffffff;
    --sa-text: #0f172a;
}

.admin-body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sa-text);
    background: var(--sa-surface);
}

.admin-sidebar {
    width: 280px;
    background: var(--sa-sidebar-bg);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b;
}

.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1rem 1.5rem;
    gap: 1rem;
}

/* Logo — white card */
.admin-logo-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.admin-logo-shield {
    flex-shrink: 0;
}

.admin-logo-wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.2;
}

.admin-logo-name {
    font-weight: 700;
}

.admin-logo-ai {
    color: #dc2626;
    font-weight: 800;
    margin-left: 0.15em;
}

/* Credits bar */
.admin-credits-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sa-credits-box);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

.admin-credits-left {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--sa-nav-inactive);
    font-weight: 500;
}

.admin-icon-lightning {
    flex-shrink: 0;
}

.admin-credits-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sa-credits-green);
    letter-spacing: 0.02em;
}

/* Navigation */
.admin-nav-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.25rem;
}

.admin-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sa-nav-muted);
    padding: 0.5rem 0.75rem 0.35rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: var(--sa-nav-inactive);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
}

.admin-nav-svg {
    flex-shrink: 0;
    opacity: 0.95;
}

.admin-nav-item--active {
    background: var(--sa-highlight-bg);
    border-color: var(--sa-highlight-border);
    color: var(--sa-highlight-text);
}

.admin-nav-item--active:hover {
    background: #3a1d22;
    color: #fca5a5;
    border-color: #991b1b;
}

.admin-nav-item--cta {
    background: var(--sa-highlight-bg);
    border-color: var(--sa-highlight-border);
    color: var(--sa-highlight-text);
    margin-top: 0.25rem;
}

.admin-nav-item--cta:hover {
    background: #3a1d22;
    color: #fca5a5;
    border-color: #991b1b;
}

.admin-nav-cta-text {
    flex: 1;
}

.admin-nav-chevron {
    flex-shrink: 0;
    opacity: 0.9;
}

.admin-main {
    background: var(--sa-surface);
    min-width: 0;
}

.admin-topbar {
    background: var(--sa-card);
}

.admin-page-title {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.admin-form-card {
    background: var(--sa-card);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sa-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sa-accent-form);
    display: inline-block;
}

.btn-sa-primary {
    background: var(--sa-accent-form);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
}

.btn-sa-primary:hover {
    background: var(--sa-accent-form-hover);
    color: #fff;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #334155;
}

/* Incident report wizard (SafeAspect-style) */
.sa-report-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dc2626;
}

.sa-draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
}

.sa-draft-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.sa-report-title {
    letter-spacing: -0.03em;
    color: #0f172a;
}

.sa-wizard-nav-card {
    border-color: #e2e8f0;
}

.sa-step-tabs {
    scrollbar-width: thin;
}

.sa-step-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.25rem;
    padding: 0.5rem 0.4rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    color: #94a3b8;
}

.sa-step-tab--future {
    opacity: 0.45;
}

.sa-step-tab--active {
    background: #fef2f2;
    color: #b91c1c;
    opacity: 1;
}

.sa-step-tab--active .sa-step-num {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.sa-step-tab--done {
    opacity: 0.85;
    color: #64748b;
}

.sa-step-tab--done .sa-step-num {
    background: #e2e8f0;
    color: #64748b;
}

.sa-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
}

.sa-step-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    max-width: 4.5rem;
}

.sa-progress-track {
    height: 4px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.sa-progress-fill {
    height: 100%;
    background: #dc2626;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.sa-part-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sa-part-bar {
    width: 4px;
    height: 1.25rem;
    background: #dc2626;
    border-radius: 2px;
    flex-shrink: 0;
}

.sa-part-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e293b;
    margin: 0;
}

.sa-input {
    border-radius: 0.75rem;
    border-color: #e2e8f0;
}

.sa-input:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.12);
}

/* —— SafeAspect app shell + dashboard (live site parity) —— */
.sa-app-body {
    background: #f4f5f8;
    color: #111827;
}

.sa-app-shell {
    background: #f4f5f8;
}

.sa-sidebar-v2 {
    width: 240px;
    background: #0f1218;
    color: #e5e7eb;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-sidebar-v2-inner {
    min-height: 100vh;
}

.sa-border-sidebar {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar brand row: same horizontal padding as .sa-sidebar-nav (px-3) so logo width matches nav items e.g. My Reports */
.sa-sidebar-brand {
    display: flex;
    align-items: center;
    min-height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    background: transparent;
    background-color: transparent;
}

.sa-sidebar-brand .sa-brand-logo-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 0.2rem;
    background: transparent;
    background-color: transparent;
}

/* Brand logo image (sidebar + offcanvas) */
.sa-brand-logo-link {
    color: inherit;
    background: transparent;
    background-color: transparent;
}

.sa-brand-logo-img {
    display: block;
    height: auto;
    max-height: 44px;
    width: auto;
    max-width: 100%;
    background: transparent;
    background-color: transparent;
}

.sa-brand-logo-link:hover .sa-brand-logo-img {
    opacity: 0.9;
}

.sa-brand-tagline {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: normal;
    line-height: 1.25;
}

/* Full horizontal width of nav column; height capped so horizontal lockup stays legible */
.sa-sidebar-brand .sa-brand-logo-img {
    width: 100%;
    max-width: 100%;
    max-height: 84px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    background-color: transparent;
}

html[dir="rtl"] .sa-sidebar-brand .sa-brand-logo-img {
    object-position: right center;
}

.sa-sidebar-credits {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-sidebar-credits-label {
    color: rgba(255, 255, 255, 0.45);
}

.sa-sidebar-credits-value {
    color: #4ade80;
    font-size: 0.875rem;
}

.sa-icon-zap {
    color: #fbbf24;
}

.sa-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sa-sidebar-nav > .sa-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
}

.sa-sidebar-nav > .sa-nav-item:last-of-type {
    border-bottom: none;
}

.sa-nav-text {
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.01em;
}

.sa-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.sa-nav-item--active {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: transparent;
}

.sa-nav-item--active:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.24);
}

.sa-nav-icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.sa-nav-item:hover .sa-nav-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
}

.sa-nav-icon-wrap--active {
    background: rgba(239, 68, 68, 0.2);
}

/* New Report: only show strong highlight when .sa-nav-item--active (same as other items). */
.sa-nav-item--newreport:not(.sa-nav-item--active) {
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
}

.sa-nav-item--newreport:not(.sa-nav-item--active):hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.sa-nav-chevron {
    opacity: 0.6;
    flex-shrink: 0;
}

.sa-subnav-group {
    margin-left: 3.2rem;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
}

.sa-subnav-group.is-open {
    display: flex;
}

.sa-nav-item-toggle {
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.sa-nav-item-toggle .sa-nav-chevron {
    transition: transform 0.2s ease;
}

.sa-nav-item-toggle.is-open .sa-nav-chevron {
    transform: rotate(90deg);
}

.sa-subnav-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.25;
    padding: 0.3rem 0.2rem;
    border-radius: 0.35rem;
}

.sa-subnav-icon {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
}

.sa-subnav-group .sa-subnav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-subnav-group .sa-subnav-item:last-of-type {
    border-bottom: none;
}

.sa-subnav-item:hover {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
}

.sa-subnav-item--active {
    color: #fecaca;
}

.sa-sidebar-user-card {
    background: rgba(255, 255, 255, 0.05);
}

.sa-user-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.65rem;
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.sa-user-name {
    color: rgba(255, 255, 255, 0.85);
}

.sa-user-email {
    color: rgba(255, 255, 255, 0.35);
}

.sa-signout-btn {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
}

.sa-signout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75) !important;
}

.sa-main-column {
    background: #f4f5f8;
}

.sa-app-header {
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-color: #f3f4f6 !important;
    z-index: 1020;
}

.sa-breadcrumb-muted {
    color: #9ca3af;
}

.sa-breadcrumb-chev {
    color: #d1d5db;
}

.sa-breadcrumb-current {
    color: #374151;
}

.sa-header-credits {
    color: #6b7280;
}

.sa-header-user-name {
    color: #111827;
    line-height: 1.2;
    max-width: 12rem;
}

.sa-header-user-name--compact {
    max-width: 7rem;
}

.sa-header-user-email {
    color: #6b7280;
    line-height: 1.2;
    max-width: 12rem;
}

.sa-header-logout {
    background: #f3f4f6;
    color: #374151;
    line-height: 0;
    transition: background 0.15s, color 0.15s;
}

.sa-header-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.sa-header-logout:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.sa-icon-door {
    display: block;
}

.sa-offcanvas-user .sa-header-logout {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.sa-offcanvas-user .sa-header-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.sa-app-main {
    background: transparent;
}

.sa-app-footer {
    background: rgba(255, 255, 255, 0.55);
    border-color: #f3f4f6 !important;
}

.sa-footer-icon {
    color: #f59e0b;
}

.sa-footer-note,
.sa-footer-copy {
    color: #9ca3af;
}

.sa-offcanvas-sidebar {
    background: #0f1218;
    color: #e5e7eb;
}

.sa-offcanvas-sidebar .sa-nav-item {
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons + cards (dashboard) */
.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
}

.sa-btn-primary {
    background: #dc2626;
    color: #fff;
}

.sa-btn-primary:hover {
    background: #b91c1c;
    color: #fff;
}

.sa-btn-outline {
    background: #fff;
    color: #374151;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sa-btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.sa-btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

.sa-btn-lg {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
}

.sa-card-elevated {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    animation: sa-fade-up 0.45s ease backwards;
}

@keyframes sa-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-enter {
    animation: sa-page-enter 0.35s ease;
}

@keyframes sa-page-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sa-dashboard-container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.sa-dashboard-welcome {
    color: #6b7280 !important;
}

.sa-dashboard-greeting {
    letter-spacing: -0.025em;
}

.sa-stat-card {
    cursor: default;
}

.sa-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-stat-icon--amber {
    background: #fef3c7;
    color: #d97706;
}

.sa-stat-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.sa-stat-icon--green {
    background: #d1fae5;
    color: #059669;
}

.sa-stat-icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.sa-link-topup {
    color: #dc2626;
}

.sa-link-topup:hover {
    color: #b91c1c;
}

.sa-stat-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.sa-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.sa-stat-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

.sa-dashboard-panel {
    padding: 1.35rem;
}

.sa-panel-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-panel-icon--red {
    background: #fef2f2;
    color: #dc2626;
}

.sa-panel-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.sa-panel-icon--purple {
    background: #faf5ff;
    color: #9333ea;
}

.sa-link-viewall {
    color: #dc2626;
}

.sa-link-viewall:hover {
    color: #b91c1c;
}

.sa-report-row {
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    display: block;
}

.sa-report-row-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
    animation: sa-fade-up 0.4s ease backwards;
}

.sa-report-row:hover .sa-report-row-inner {
    background: #f9fafb;
}

.sa-report-row-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.sa-report-row:hover .sa-report-row-icon {
    background: #fef2f2;
    color: #ef4444;
}

.sa-report-title {
    font-size: 0.875rem;
}

.sa-report-date {
    display: block;
}

.sa-report-chevron {
    color: #d1d5db;
    flex-shrink: 0;
}

.sa-report-row:hover .sa-report-chevron {
    color: #6b7280;
}

.sa-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.sa-badge-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.sa-badge-green {
    background: #d1fae5;
    color: #047857;
}

.sa-quick-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.sa-quick-action--primary {
    background: #dc2626;
    color: #fff;
}

.sa-quick-action--primary:hover {
    background: #b91c1c;
    color: #fff;
}

.sa-quick-action--muted {
    background: #f9fafb;
    color: #374151;
}

.sa-quick-action--muted:hover {
    background: #f3f4f6;
    color: #111827;
}

.sa-text-purple {
    color: #a855f7;
}

.sa-disclaimer-box {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.sa-disclaimer-text {
    color: #92400e;
    line-height: 1.5;
}

/* —— Reports page —— */
.sa-reports-page {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.sa-reports-title {
    letter-spacing: -0.025em;
}

.sa-reports-unfinished {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #fbbf24;
}

.sa-reports-unfinished-heading {
    color: #92400e;
}

.sa-reports-unfinished-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: #fde68a;
    color: #92400e;
    padding: 0.2rem 0.5rem;
}

.sa-reports-unfinished-row {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #fde68a;
}

.sa-reports-step-pill {
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.sa-reports-trash:hover {
    color: #ef4444 !important;
}

.sa-reports-search-input {
    padding-left: 2.35rem;
}

.sa-reports-search-icon {
    pointer-events: none;
    z-index: 1;
}

.sa-reports-filter-select {
    cursor: pointer;
}

.sa-reports-list-card {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: sa-fade-up 0.45s ease backwards;
}

.sa-reports-list-card:hover {
    border-color: #fecaca !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.sa-reports-list-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: #f3f4f6;
    color: #9ca3af;
    transition: background 0.2s, color 0.2s;
}

.sa-reports-list-card:hover .sa-reports-list-icon {
    background: #fef2f2;
    color: #ef4444;
}

.sa-reports-list-chevron {
    color: #d1d5db;
    transition: color 0.2s;
}

.sa-reports-list-card:hover .sa-reports-list-chevron {
    color: #f87171;
}

.sa-reports-completed-details > summary {
    list-style: none;
    cursor: pointer;
}

.sa-reports-completed-details > summary::-webkit-details-marker {
    display: none;
}

.sa-reports-completed-chevron {
    transition: transform 0.2s ease;
}

.sa-reports-completed-details[open] .sa-reports-completed-chevron {
    transform: rotate(90deg);
}

.sa-reports-prompt-textarea {
    min-height: 14rem;
    resize: vertical;
    line-height: 1.45;
}

/* —— Contractor prequalification —— */
.sa-contractor-page {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.sa-contractor-title {
    letter-spacing: -0.025em;
}

.sa-contractor-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.sa-contractor-search-input {
    padding-left: 2.4rem;
}

.sa-contractor-search-icon {
    color: #9ca3af;
    pointer-events: none;
}

.sa-contractor-sector-select {
    max-width: 28rem;
}

/* —— Tokens / Buy Credits —— */
.sa-tokens-page {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.sa-tokens-kicker {
    letter-spacing: 0.12em;
    font-size: 0.65rem;
}

.sa-tokens-title {
    letter-spacing: -0.03em;
}

.sa-tokens-balance-card {
    min-width: 180px;
}

.sa-tokens-balance-icon {
    width: 3rem;
    height: 3rem;
    background: #fef2f2;
    color: #dc2626;
}

.sa-tokens-balance-label {
    letter-spacing: 0.06em;
    font-size: 0.65rem;
}

.sa-tokens-balance-value {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.sa-tokens-usage-credits {
    letter-spacing: -0.02em;
}

.sa-tokens-usage-card {
    transition: box-shadow 0.2s;
}

.sa-tokens-usage-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sa-tokens-usage-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.sa-tokens-usage-icon--red {
    background: #fef2f2;
    color: #dc2626;
}

.sa-tokens-usage-icon--violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.sa-tokens-usage-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.sa-tokens-usage-icon--amber {
    background: #fffbeb;
    color: #d97706;
}

.sa-tokens-demo-alert {
    border-color: #fde68a !important;
    background: #fffbeb;
}

.sa-tokens-alert-icon {
    color: #d97706;
}

.sa-tokens-demo-text {
    color: #92400e;
}

.sa-tokens-section-bar {
    width: 0.25rem;
    height: 1.25rem;
    background: #dc2626;
}

.sa-tokens-package {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sa-tokens-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.sa-tokens-package--default {
    border-color: #e5e7eb !important;
    background: #fff;
}

.sa-tokens-package--default:hover {
    border-color: #d1d5db !important;
}

.sa-tokens-package--featured {
    border-color: #dc2626 !important;
    background: #030712;
    color: #fff;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
    padding-top: 1.35rem;
}

.sa-tokens-package--featured:hover {
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18);
}

.sa-tokens-package-credits {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sa-tokens-muted-featured {
    color: #9ca3af;
}

.sa-tokens-strike {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.75rem;
}

.sa-tokens-corner-badge {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.65rem;
    font-weight: 700;
}

.sa-tokens-ribbon-badge {
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

.sa-tokens-package-ribbon {
    z-index: 1;
}

.sa-tokens-buy-btn {
    transition: background 0.2s, opacity 0.2s;
}

.sa-tokens-buy-btn--dark {
    background: #111827;
    color: #fff;
}

.sa-tokens-buy-btn--dark:hover {
    background: #1f2937;
    color: #fff;
}

.sa-tokens-buy-btn--featured {
    background: #dc2626;
    color: #fff;
}

.sa-tokens-buy-btn--featured:hover {
    background: #b91c1c;
    color: #fff;
}

.sa-tokens-ledger-head {
    grid-template-columns: minmax(5rem, 0.85fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(3.5rem, 0.55fr) minmax(2.25rem, 0.45fr);
    gap: 0.5rem;
    align-items: center;
}

.sa-tokens-ledger-row:last-child {
    border-bottom: none !important;
}

.sa-tokens-ledger-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (min-width: 576px) {
    .sa-tokens-ledger-grid {
        display: grid;
        grid-template-columns: minmax(5rem, 0.85fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(3.5rem, 0.55fr) minmax(2.25rem, 0.45fr);
        gap: 0.5rem;
        align-items: center;
    }
}

.sa-tokens-badge-credit {
    background: #d1fae5;
    color: #047857;
    font-size: 0.65rem;
}

.sa-tokens-badge-spend {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.65rem;
}

@media (max-width: 767.98px) {
    .sa-sidebar-v2 {
        display: none !important;
    }
}

/* New Report — Part 8 photo upload */
.sa-photo-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sa-photo-upload-zone:hover,
.sa-photo-upload-zone:focus {
    border-color: var(--sa-accent-form, #10b981);
    background: #f0fdf4;
    outline: none;
}

.sa-photo-upload-inner {
    pointer-events: none;
}

.sa-photo-upload-icon {
    opacity: 0.75;
}

.sa-photo-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sa-photo-preview-item {
    width: 140px;
    flex: 0 0 auto;
}

.sa-photo-preview-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

@media (max-width: 991.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-sidebar-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .admin-logo-card {
        flex: 1 1 auto;
        min-width: 200px;
    }

    .admin-credits-bar {
        flex: 1 1 140px;
    }

    .admin-nav-block {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-nav-label {
        width: 100%;
        padding-left: 0.5rem;
    }

    .admin-nav-item {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

/* Edit completed report — card strips & layout */
.sa-edit-report-page {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.sa-card-strip-red {
    border-left: 4px solid #dc2626 !important;
}

.sa-card-strip-violet {
    border-left: 4px solid #7c3aed !important;
}

.sa-review-final-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(248, 250, 252, 0.95));
}

.sa-logo-dropzone {
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sa-logo-dropzone:hover,
.sa-logo-dropzone:focus-within {
    border-color: #f87171;
    background: #fef2f2;
}

.sa-logo-preview-img {
    max-height: 120px;
    max-width: 240px;
    object-fit: contain;
    background: #f8fafc;
}

.sa-h2-section-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.sa-h2-section-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.sa-h2-section-title-display {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
    flex: 1;
    min-width: 0;
}

.sa-h2-section-icon-btn {
    line-height: 1;
    border-radius: 0.35rem;
    text-decoration: none;
}

.sa-h2-section-icon-btn:hover {
    background: rgba(148, 163, 184, 0.22);
}

.sa-h2-section-icon-btn.text-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c !important;
}

/* Advanced (---) blocks: panel title larger than ## section strip */
.sa-dash-section-card .sa-dash-section-title-display {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: none;
    letter-spacing: 0.01em;
}
