:root {
    color-scheme: light;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #f5f7fb 0%, #e8ecf4 100%);
    color: #1f2937;
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #ffffff;
    --border-color: #e5e7eb;
}

/* Editable domain input */
.detail-value.editable input.editable-domain-input {
    width: 100%;
    border: 1px dashed #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: inherit;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.2s ease;
}

.detail-value.editable input.editable-domain-input:hover {
    background: #fff;
    border-color: #999;
}

.detail-value.editable input.editable-domain-input:focus {
    border-color: var(--primary-color);
    border-style: solid;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f5f7fb 0%, #e8ecf4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

main.container {
    flex: 1;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
}

.topbar {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
    border-bottom: 2px solid var(--primary-color);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav a {
    margin-left: 1.5rem;
    color: #c7d2fe;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.nav-credits {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0e7ff;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-inline-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

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

.input-mini {
    width: 90px;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.row-muted {
    opacity: 0.65;
}

.badge-admin {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #5b21b6;
}

.badge-success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #166534;
}

.badge-warn {
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.28);
    color: #854d0e;
}

.badge-info {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: #0c4a6e;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-onboarding {
    margin-left: 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e0e7ff;
    font-weight: 750;
    font-size: 0.9rem;
}

.nav-link-subtle {
    color: #e0e7ff !important;
    opacity: 0.95;
}

.nav-link-subtle:hover {
    opacity: 1;
}

.nav-dropdown {
    position: relative;
    margin-left: 1.25rem;
}

.nav-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #e0e7ff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.nav-avatar-btn:active {
    transform: none;
}

.nav-avatar-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-avatar svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-caret {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-right: 0.15rem;
}

.nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    min-width: 220px;
    padding: 0.35rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

.nav-menu.is-open {
    display: block;
}

.nav-menu a {
    display: block;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    color: #111827;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-menu a:hover {
    background: #f3f4f6;
    color: #111827;
    transform: none;
}

.nav-menu a:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.nav-menu-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 0.35rem 0.35rem;
}

@media (max-width: 720px) {
    .nav a {
        margin-left: 0.75rem;
    }
    .nav-dropdown {
        margin-left: 0.75rem;
    }
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
}

.page-header h1 {
    margin: 0 0 0.5rem;
}

.panel {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.panel:hover {
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Modal helpers */
.modal-content--narrow {
    width: min(92vw, 420px) !important;
    max-width: 420px !important;
}

/* Add-company modal layout: stack fields in a compact dialog */
#add-company-modal .controls-bar {
    flex-direction: column;
    align-items: stretch;
}

#add-company-modal .controls-bar input {
    width: 100%;
}

#add-company-modal .modal-actions {
    justify-content: flex-end;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15), 0 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-left-color: var(--secondary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

th {
    color: #6b7280;
    font-weight: 600;
}

button {
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

button.secondary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

button.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

button.danger:hover {
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

/* Secondary buttons for links */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    font-weight: 650;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

/* Generic form helpers */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -0.15rem;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-weight: 650;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(220, 38, 38, 0.28);
    color: #7f1d1d;
}

.search-bar {
    margin-bottom: 1rem;
}

.controls-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.controls-bar select {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}


.pipeline-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 1.5rem;
}

.detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
}

.detail-block {
    margin-top: 1rem;
}

.detail-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.detail-section h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.local-supplier-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .85rem 1rem;
}

.local-supplier-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.local-supplier-head h3 {
    margin-bottom: .2rem;
}

.local-supplier-head p {
    margin: 0;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.5;
}

.local-supplier-handoff {
    display: grid;
    gap: .55rem;
}

.local-supplier-handoff-metrics {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.local-supplier-handoff-metrics span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: .18rem .55rem;
    font-size: .76rem;
    font-weight: 650;
}

.local-supplier-handoff-metrics strong {
    color: #111827;
}

.local-supplier-handoff-copy {
    color: #64748b;
    font-size: .82rem;
    line-height: 1.45;
}

.local-supplier-layout {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.15fr);
    gap: 1rem;
}

.location-group {
    margin-top: .65rem;
}

.location-group-title {
    color: #475569;
    font-size: .76rem;
    font-weight: 700;
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.location-chip-row,
.local-evidence-row {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.location-chip,
.local-evidence-row span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: .16rem .55rem;
    font-size: .74rem;
    font-weight: 600;
}

.location-chip-muted {
    color: #64748b;
    background: #f1f5f9;
}

.local-supplier-meta,
.local-supplier-summary {
    margin-top: .75rem;
    color: #64748b;
    font-size: .82rem;
}

.local-supplier-summary strong {
    color: #111827;
}

.local-candidate-list {
    display: grid;
    gap: .55rem;
    margin-top: .65rem;
}

.local-candidate-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .7rem;
}

.local-candidate-card.is-locked {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.local-candidate-main {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: .5rem;
}

.local-candidate-name {
    font-weight: 800;
    color: #111827;
}

.local-candidate-sub {
    margin-top: .12rem;
    color: #64748b;
    font-size: .78rem;
}

@media (max-width: 760px) {
    .local-supplier-layout {
        grid-template-columns: 1fr;
    }
}

.detail-anchor {
    display: block;
    height: 1px;
    margin-top: -1px;
}

.company-cockpit {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.company-cockpit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cockpit-eyebrow {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cockpit-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.cockpit-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.cockpit-status-good {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.cockpit-status-watch {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.cockpit-status-bad {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.cockpit-domain {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 650;
}

.cockpit-next-action {
    max-width: 340px;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: right;
}

.cockpit-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cockpit-metric {
    min-height: 104px;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    border-left-width: 4px;
}

.cockpit-metric-good {
    border-left-color: #10b981;
}

.cockpit-metric-watch {
    border-left-color: #f59e0b;
}

.cockpit-metric-bad {
    border-left-color: #ef4444;
}

.cockpit-metric-neutral {
    border-left-color: #94a3b8;
}

.cockpit-metric-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cockpit-metric-value {
    color: #0f172a;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 850;
    margin-top: 0.3rem;
}

.cockpit-metric-value span {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    margin-left: 0.12rem;
}

.cockpit-metric-caption {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.cockpit-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
    gap: 1rem;
    align-items: stretch;
}

.cockpit-panel {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.cockpit-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cockpit-panel-head h3 {
    margin: 0;
    font-size: 1rem;
}

.cockpit-panel-head span,
.cockpit-panel-head a {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.cockpit-panel-head a {
    color: #2563eb;
}

.cockpit-panel-subhead {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.cockpit-table-tools {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(130px, 0.45fr));
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.cockpit-input,
.cockpit-select {
    min-width: 0;
    min-height: 34px;
    width: 100%;
    padding: 0.38rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 600;
}

.cockpit-input::placeholder {
    color: #94a3b8;
    font-weight: 550;
}

.cockpit-input:focus,
.cockpit-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.cockpit-table-wrap {
    max-height: 320px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.cockpit-table-wrap-compact {
    max-height: 240px;
}

.cockpit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
}

.cockpit-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.cockpit-table tbody td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}

.cockpit-table tbody tr:last-child td {
    border-bottom: none;
}

.cockpit-table tbody tr:hover td {
    background: #f8fafc;
}

.cockpit-table td strong {
    display: block;
    color: #0f172a;
    font-size: 0.8rem;
    line-height: 1.3;
}

.cockpit-table td small {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 0.12rem;
}

.cockpit-table-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.cockpit-table-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.cockpit-table-status {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 650;
    margin-top: 0.45rem;
}

.cockpit-table-empty {
    color: #64748b !important;
    font-style: italic;
    text-align: center;
}

.risk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 24px;
    padding: 0.18rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 850;
    white-space: nowrap;
}

.risk-pill-high {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.risk-pill-medium,
.risk-pill-elevated {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.risk-pill-guarded {
    background: #ecfccb;
    border-color: #d9f99d;
    color: #3f6212;
}

.risk-pill-low {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.risk-pill-unscored {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

.supply-partner-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.45fr));
    gap: 0.5rem;
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
}

.supply-partner-table-wrap {
    max-height: 380px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.supply-partner-table th:nth-child(1) {
    min-width: 210px;
}

.supply-partner-table th:nth-child(2),
.supply-partner-table th:nth-child(3),
.supply-partner-table th:nth-child(4) {
    min-width: 120px;
}

.supply-partner-name {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
}

.supply-partner-name:hover {
    color: #1e40af;
    text-decoration: underline;
}

.partner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.18rem 0.48rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.partner-pill-high {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.partner-pill-medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.partner-pill-low {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.partner-pill-unknown {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.supply-partner-context {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 420px;
    overflow: hidden;
    color: #475569;
    line-height: 1.35;
}

.risk-driver-list {
    display: grid;
    gap: 0.55rem;
}

.risk-driver {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: #f8fafc;
}

.risk-driver:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.risk-driver-severity {
    display: inline-flex;
    justify-content: center;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.risk-driver-high .risk-driver-severity {
    background: #fee2e2;
    color: #991b1b;
}

.risk-driver-medium .risk-driver-severity {
    background: #fef3c7;
    color: #92400e;
}

.risk-driver-low .risk-driver-severity {
    background: #dcfce7;
    color: #166534;
}

.risk-driver-main {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.risk-driver-main strong {
    color: #0f172a;
    font-size: 0.86rem;
}

.risk-driver-main small {
    color: #64748b;
    line-height: 1.35;
}

.cockpit-empty {
    min-height: 86px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.supply-preview-layout {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(210px, 1fr) minmax(150px, 0.8fr);
    gap: 0.85rem;
    align-items: center;
}

.supply-preview-score {
    font-size: 2rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1;
}

.supply-preview-score span {
    font-size: 0.82rem;
    color: #64748b;
}

.supply-preview-label {
    color: #0f172a;
    font-weight: 800;
    margin-top: 0.35rem;
}

.supply-preview-meta,
.supply-preview-top,
.supply-preview-note {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.supply-preview-chart-wrap {
    min-height: 220px;
    position: relative;
}

.supply-preview-chart {
    width: 100%;
    height: 220px;
    display: block;
}

.supply-preview-legend {
    display: grid;
    gap: 0.45rem;
}

.supply-preview-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    column-gap: 0.45rem;
    row-gap: 0.1rem;
    align-items: center;
}

.supply-preview-legend-row span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.supply-preview-legend-row strong {
    min-width: 0;
    color: #0f172a;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supply-preview-legend-row em {
    grid-column: 2;
    color: #64748b;
    font-size: 0.72rem;
    font-style: normal;
}

.cockpit-jump-nav {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.cockpit-jump-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.3rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.cockpit-jump-nav a:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
}

@media (max-width: 1100px) {
    .cockpit-body,
    .supply-preview-layout {
        grid-template-columns: 1fr;
    }

    .supply-preview-chart-wrap,
    .supply-preview-chart {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .company-cockpit {
        padding: 0.8rem;
    }

    .company-cockpit-head {
        flex-direction: column;
    }

    .cockpit-next-action {
        max-width: none;
        text-align: left;
    }

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

    .cockpit-table-tools {
        grid-template-columns: 1fr;
    }

    .supply-partner-tools {
        grid-template-columns: 1fr;
    }

    .risk-driver {
        grid-template-columns: 1fr;
    }
}

.detail-header {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0.75rem 0 1.5rem;
}

.detail-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.contract-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid #2563eb;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contract-id {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
}

.contract-amount {
    font-weight: 700;
    color: #059669;
}

.contract-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.expires {
    font-size: 0.8rem;
    color: #dc2626;
}

.contract-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.subcontractors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subcontractor-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid #7c3aed;
}

.sub-name {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #1f2937;
}

.sub-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.sub-amount {
    color: #059669;
    font-weight: 600;
}

/* Analytics / Pivot UI */
.analytics-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analytics-toolbar__row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.analytics-toolbar__spacer {
    flex: 1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 220px;
}

.field--small {
    min-width: 160px;
}

.field-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.field input,
.field select {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.check {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: #374151;
    font-size: 0.95rem;
    padding: 0.2rem 0.1rem;
}

.analytics-actions {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.analytics-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.dot {
    color: #9ca3af;
}

/* pivottable.js theme adjustments */
#pivot-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.pvtUi {
    font-family: "Inter", "Segoe UI", sans-serif;
    width: 100%;
    max-width: 100%;
}

.pvtUi select,
.pvtUi input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
}

.pvtUi .pvtAxisContainer,
.pvtUi .pvtVals {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.pvtUi table.pvtTable {
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    width: auto;
    max-width: none;
}

.pvtUi table.pvtTable thead tr th,
.pvtUi table.pvtTable tbody tr th {
    background: #f3f4f6;
    color: #374151;
}

.pvtUi table.pvtTable td {
    background: #fff;
}

.placeholder,
.loading {
    color: #9ca3af;
    text-align: center;
    padding: 1rem 0;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: capitalize;
    background: #e2e8f0;
    color: #1f2937;
}

.badge-running {
    background: #fef3c7;
    color: #92400e;
}

.badge-queued {
    background: #e0f2fe;
    color: #075985;
}

.badge-completed {
    background: #dcfce7;
    color: #166534;
}

.badge-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.toast-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1001;
}

.toast {
    background: #111827;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
    background: #16a34a;
}

.toast-info {
    background: #2563eb;
}

.toast-error {
    background: #dc2626;
}

.toast-hide {
    opacity: 0;
    transform: translateY(10px);
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #fff;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Auth layout (login/register) */
.auth-shell {
    width: min(1120px, 92vw);
    position: relative;
    z-index: 1;
}

.auth-shell--single {
    width: min(560px, 92vw);
}

.auth-shell--register {
    width: min(920px, 94vw);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* When using a single card, the grid isn't present */
.auth-brand--center {
    justify-content: center;
    text-align: left;
}

.auth-marketing {
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(6, 182, 212, 0.22) 0%, transparent 45%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.auth-brand-logo {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.auth-brand-name {
    font-weight: 850;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
}

.auth-brand-tagline {
    margin-top: 0.2rem;
    color: rgba(224, 231, 255, 0.92);
    font-weight: 550;
}

.auth-highlight {
    margin: 1.25rem 0;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-highlight-title {
    font-weight: 800;
    color: #fff;
}

.auth-highlight-body {
    margin-top: 0.25rem;
    color: rgba(224, 231, 255, 0.92);
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature-list li {
    padding-left: 1.3rem;
    position: relative;
}

.auth-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.95);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.trust-pill {
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(224, 231, 255, 0.95);
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.6rem 2.4rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.auth-brand--center {
    margin-bottom: 1.25rem;
}

.auth-title {
    margin: 0 0 0.5rem;
    text-align: left;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
}

.auth-form {
    display: grid;
    gap: 0.8rem;
}

.auth-form label {
    color: var(--text-primary);
    font-weight: 650;
    font-size: 0.95rem;
}

.auth-form input,
.auth-form select {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1.05em),
        calc(100% - 13px) calc(1.05em);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: 0.35rem;
}

.auth-card--register {
    padding-bottom: 2.1rem;
}

.auth-form--register {
    gap: 1rem;
}

.reg-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1rem 0 1.25rem;
}

.reg-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-weight: 750;
}

.reg-step-num {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(79, 70, 229, 0.28);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.reg-step-label {
    font-size: 0.9rem;
    white-space: nowrap;
}

.reg-step-divider {
    width: 52px;
    height: 2px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.18);
}

.reg-step.is-active {
    color: var(--text-primary);
}

.reg-step.is-active .reg-step-num {
    border-color: rgba(79, 70, 229, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--primary-dark);
}

.reg-step.is-done {
    color: var(--text-primary);
}

.reg-step.is-done .reg-step-num {
    border-color: rgba(79, 70, 229, 0.42);
    background: rgba(79, 70, 229, 0.16);
}

.reg-panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    width: 100%;
    animation: regPanelIn 0.22s ease;
}

.reg-panel.is-active {
    display: grid;
}

@keyframes regPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reg-next-btn {
    margin-top: 0.35rem;
}

.reg-role-header {
    margin-bottom: 0.15rem;
}

.reg-panel-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.reg-panel-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-height: 272px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.96) 100%);
    color: var(--text-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 0.95rem;
    gap: 0.4rem;
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.role-card:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.role-card.is-selected {
    border-color: rgba(79, 70, 229, 0.56);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16), 0 16px 30px rgba(79, 70, 229, 0.2);
}

.role-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.role-card--sales_analyst .role-card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.role-card--compliance_analyst .role-card-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.role-card--privacy_analyst .role-card-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
}

.role-card-title {
    font-weight: 850;
    font-size: 1.02rem;
    line-height: 1.2;
}

.role-card-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.role-card-features {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.28rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.role-card-features li {
    position: relative;
    padding-left: 0.85rem;
}

.role-card-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.72);
}

.role-card--compliance_analyst .role-card-features li::before {
    background: rgba(6, 182, 212, 0.86);
}

.role-card--privacy_analyst .role-card-features li::before {
    background: rgba(139, 92, 246, 0.86);
}

.reg-actions {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.reg-back-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.reg-submit-btn {
    min-width: 170px;
}

@media (max-width: 980px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
    .auth-card {
        padding: 2.25rem 1.75rem;
    }
    .auth-form-grid {
        grid-template-columns: 1fr;
    }
    .auth-shell--register {
        width: min(760px, 94vw);
    }
    .role-cards-grid {
        grid-template-columns: 1fr;
    }
    .role-card {
        min-height: 0;
    }
    .reg-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .auth-card--register {
        padding: 2rem 1.2rem 1.6rem;
    }
    .reg-stepper {
        gap: 0.55rem;
        margin-top: 0.75rem;
    }
    .reg-step-label {
        font-size: 0.84rem;
    }
    .reg-step-divider {
        width: 24px;
    }
    .reg-panel {
        padding-right: 0.15rem;
    }
    .reg-panel:last-child {
        padding-left: 0.15rem;
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    width: min(420px, 90%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

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

.login-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.3));
}

.login-card h1 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.login-card form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-card label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: -0.5rem;
}

.login-card input {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login-card button {
    width: 100%;
    padding: 0.875rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.login-links {
    margin-top: 1rem;
    text-align: center;
}

.login-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 0.25rem;
    color: var(--text-secondary);
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
}

.login-divider span {
    font-size: 0.9rem;
    font-weight: 600;
}

.error {
    background: #b91c1c;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Onboarding */
.onboarding-page main.container {
    max-width: 1200px;
}

.onboarding-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.onboarding-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.onboarding-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.22);
    color: #3730a3;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.onboarding-stepper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.onboarding-stepper .step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    font-weight: 750;
}

.onboarding-stepper .step-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(224, 231, 255, 0.95);
    color: #3730a3;
    font-weight: 900;
    font-size: 0.9rem;
}

.onboarding-stepper .step.is-active {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.28);
}

.onboarding-stepper .step.is-complete .step-num {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1rem;
    align-items: start;
}

/* Onboarding now uses a single column (side panel removed) */
.onboarding-card {
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .onboarding-grid {
        grid-template-columns: 1fr;
    }
}

.onboarding-card,
.onboarding-side {
    margin-bottom: 0;
}

.onboarding-card:hover,
.onboarding-side:hover {
    transform: none;
}

.onboarding-form {
    display: grid;
    gap: 1rem;
}

.onboarding-form select,
.onboarding-form input {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.onboarding-form select:focus,
.onboarding-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.onboarding-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.onboarding-side-title {
    margin: 0 0 0.75rem;
}

.onboarding-side-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #374151;
    display: grid;
    gap: 0.4rem;
}

.onboarding-side-note {
    margin-top: 0.9rem;
    color: var(--text-secondary);
    font-weight: 550;
}

.choice-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 0.25rem;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-card:hover {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.10);
    transform: translateY(-1px);
}

.choice-input {
    accent-color: var(--primary-color);
}

.choice-card input:checked + .choice-label {
    font-weight: 800;
    color: #111827;
}

.tier-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tier-card {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-card:hover {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.12);
    transform: translateY(-1px);
}

.tier-title {
    font-weight: 850;
    font-size: 1.05rem;
}

.tier-meta {
    margin-top: 0.15rem;
    color: var(--text-secondary);
    font-weight: 650;
}

.tier-note {
    margin-top: 0.6rem;
    color: var(--text-secondary);
}

.onboarding-info {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.12);
    display: grid;
    gap: 0.25rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.modal-open {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 1500px) {
    .modal-content {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        padding: 1rem;
        border-radius: 8px;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e2e8f0;
    color: #1f2937;
}

/* Global loading overlay */
.global-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.global-loading.is-active {
    display: flex;
}

.global-loading-inner {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.global-loading-text {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

html.is-loading button,
html.is-loading .clickable:not(.supply-chain-graph):not(.supply-chain-graph *) {
    cursor: progress;
}

html.is-loading .supply-chain-graph,
html.is-loading .supply-chain-graph * {
    cursor: default !important;
    pointer-events: auto !important;
}

/* Security signals */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.signal-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem;
}

.signal-title {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.signal-value {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e3a8a;
}

.tag.muted {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}
/* Supply Chain Visualization */
.supply-chain-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.supply-chain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.supply-chain-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.supply-chain-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.supply-chain-controls label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.supply-chain-controls select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
}

.supply-chain-controls select:hover {
    border-color: #9ca3af;
}

.supply-chain-controls select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Supply Chain Stats */
.supply-chain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

/* Graph Container */
.supply-chain-graph {
    width: 100%;
    height: 500px;
    min-height: 500px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: block;
}

.graph-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6b7280;
    font-style: italic;
}

.graph-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 1.125rem;
}

.graph-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #dc2626;
    font-size: 1rem;
}

/* Cytoscape Graph Styles (via CSS for node/edge appearance) */
.supply-chain-graph canvas {
    background: #ffffff !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.supply-chain-graph > div {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .supply-chain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .supply-chain-controls {
        width: 100%;
        justify-content: space-between;
    }

    .supply-chain-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .supply-chain-graph {
        height: 300px;
    }
}

/* CMMC Compliance Scoring Styles */

/* CMMC Stat Cards */
.cmmc-card {
    border-left: 4px solid #3b82f6;
}

.stat-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* CMMC Value Color Coding */
.cmmc-high {
    color: #dc2626;
    font-weight: 700;
}

.cmmc-medium {
    color: #f59e0b;
    font-weight: 600;
}

.cmmc-low {
    color: #6b7280;
}

.cmmc-timestamp {
    color: #3b82f6;
    font-size: 1rem;
}

/* CMMC Badges */
.cmmc-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.cmmc-badge.cmmc-high {
    background: #fee2e2;
    color: #dc2626;
}

.cmmc-badge.cmmc-medium {
    background: #fef3c7;
    color: #d97706;
}

.cmmc-badge.cmmc-low {
    background: #f3f4f6;
    color: #6b7280;
}

.cmmc-scores {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Opportunity Score Badges */
.opportunity-badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    min-width: 50px;
}

.opportunity-badge.opportunity-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.opportunity-badge.opportunity-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.opportunity-badge.opportunity-low {
    background: #e5e7eb;
    color: #6b7280;
}

/* Hiring Badge */
.hiring-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    margin-left: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* CMMC Section in Company Detail */
.cmmc-section {
    background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
    border: 2px solid #e5e7eb;
}

.cmmc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cmmc-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.cmmc-subdomains {
    margin-top: 1.5rem;
}

.cmmc-subdomains h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}

/* ── Info-tip hover tooltips ─────────────────────────────────────── */
.info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;
    cursor: default;
}

.info-tip .tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #d1d5db;
    color: #374151;
    border-radius: 50%;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    transition: background 0.15s;
}

.info-tip:hover .tip-icon {
    background: #6b7280;
    color: #fff;
}

.info-tip .tip-body {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.55;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
    white-space: normal;
    text-align: left;
}

.info-tip .tip-body::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

.info-tip:hover .tip-body {
    opacity: 1;
}

/* When used inside an h4, keep font weight normal */
h4 .info-tip .tip-icon {
    width: 13px;
    height: 13px;
}

/* Prevent tooltip from getting clipped inside overflow:hidden containers */
.cmmc-stat,
.stat-label {
    overflow: visible;
}
/* ─────────────────────────────────────────────────────────────────── */

.subdomain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subdomain-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: monospace;
}

.subdomain-tag.more {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
    font-family: inherit;
}

/* CMMC Leaderboard */
.cmmc-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.leaderboard-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    min-width: 40px;
    text-align: center;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    color: #fbbf24;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: #9ca3af;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: #cd7f32;
}

.leaderboard-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.leaderboard-company {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-view-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.leaderboard-view-btn:hover {
    background: #2563eb;
}

.leaderboard-scores {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.leaderboard-scores .badge-label {
    font-weight: 500;
}

.leaderboard-value {
    font-size: 0.875rem;
    color: #6b7280;
}

.leaderboard-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.leaderboard-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 100%);
    transition: width 0.3s ease;
}

.placeholder-text {
    color: #d1d5db;
}

/* Badge status variants */
.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-error {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive CMMC Styles */
@media (max-width: 768px) {
    .cmmc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaderboard-item {
        grid-template-columns: auto 1fr;
    }
    
    .leaderboard-scores {
        font-size: 0.75rem;
    }
}

/* New Features Styles */

/* Hiring Badge */
.hiring-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.75rem;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Job Postings Section */
.jobs-section {
    border-left: 4px solid #f59e0b;
}

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

.job-item {
    padding: 0.875rem;
    background: #fefce8;
    border-radius: 8px;
    border: 1px solid #fde68a;
    transition: all 0.2s;
}

.job-item:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.job-title {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
}

.job-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.job-title a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.job-status {
    margin-left: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.job-location, .job-date, .job-source {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.job-keywords {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #fde68a;
}

.keywords-label {
    color: #6b7280;
    font-weight: 500;
}

.keywords-value {
    color: #d97706;
    font-weight: 600;
}

/* Compliance Gaps */
.compliance-gaps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gap-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: #fee2e2;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.gap-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.gap-text {
    color: #991b1b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Control Strengths */
.subdomain-tag.strength {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* CMMC Indicators */
.cmmc-indicators {
    margin-top: 1rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
}

.indicator-icon {
    font-size: 1rem;
}

.indicator-label {
    color: #475569;
}

/* Opportunity Score Section */
.opportunity-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fff 100%);
    border: 2px solid #f59e0b;
}

.opportunity-score-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.opportunity-score-header .opportunity-badge {
    font-size: 2rem;
    padding: 1rem 1.5rem;
    min-width: 80px;
}

.opportunity-label {
    font-size: 1.1rem;
    color: #1f2937;
}

.opportunity-label strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

/* Clickable Items */
.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.contract-item.clickable:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.subcontractor-item.clickable:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    transform: translateX(4px);
}

/* Prime Companies List */
.prime-companies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Contract Participants Modal */
.company-card {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #3b82f6;
}

.company-card.clickable:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.company-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.company-domain {
    color: #6b7280;
    font-size: 0.9rem;
}
/* Stakeholders Section */
.stakeholders-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
}

.stakeholders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stakeholders-header h3 {
    margin: 0;
}

.stakeholders-header button.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.stakeholders-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stakeholders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.stakeholders-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.stakeholders-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.stakeholders-table th:hover {
    background: #e2e8f0;
}

.sort-indicator {
    display: inline-block;
    margin-left: 0.3rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.stakeholders-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #0f172a;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stakeholders-table td:nth-child(2) {
    /* Name column */
    max-width: 200px;
}

.stakeholders-table td:nth-child(3) {
    /* Email column - can be wider in the new modal */
    max-width: 350px;
}

.stakeholder-row:hover {
    background: #f8fafc;
}

.stakeholder-hidden {
    display: none;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.confidence-badge-table {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.discovered-cell {
    color: #64748b;
    font-size: 0.85rem;
}

.email-link, .phone-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.email-link:hover, .phone-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Supply Chain Visualization */
.supply-chain-detail-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
}

.supply-chain-financial-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.financial-stat {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
}

.financial-stat:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.financial-stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.financial-stat-content {
    flex: 1;
}

.financial-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.financial-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.financial-stat-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.supply-chain-viz-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.supply-chain-stats-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-mini-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.supply-chain-graph-compact {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.supply-chain-svg {
    width: 100%;
    height: auto;
    max-height: 450px;
}

.supply-chain-svg circle {
    transition: all 0.3s ease;
    cursor: pointer;
}

.supply-chain-svg circle:hover {
    filter: brightness(1.1);
    stroke-width: 4;
}

.supply-chain-svg text {
    pointer-events: none;
    user-select: none;
}

/* Interactive supply chain relationships (Cytoscape) */
.supply-chain-cy-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.supply-chain-cy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.supply-chain-cy-subtitle {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.supply-chain-cy-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.supply-chain-cy-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #475569;
}

.supply-chain-cy-select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    background: #ffffff;
}

.supply-chain-cy-mine-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.supply-chain-cy-graph {
    width: 100%;
    height: 560px;
    min-height: 560px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.supply-chain-cy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Supply Chain Partners Grid */
.supply-chain-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.partners-column h4 {
    margin: 0 0 1rem 0;
    color: #0f172a;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.partners-table {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.partners-table table {
    width: 100%;
    border-collapse: collapse;
}

.partners-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.partners-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partners-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.partner-row {
    transition: background 0.2s;
    cursor: pointer;
}

.partner-row:hover {
    background: #f8fafc;
}

.value-cell {
    font-weight: 600;
    color: #10b981;
}

.count-cell {
    color: #64748b;
    text-align: center;
}

.percentage-bar {
    position: relative;
    height: 20px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.percentage-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
}

.percentage-text {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    z-index: 1;
}

/* Supply Chain Analysis */
.supply-chain-analysis {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.supply-chain-analysis h4 {
    margin: 0 0 1rem 0;
    color: #0f172a;
    font-size: 1.1rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.analysis-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.analysis-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.analysis-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.analysis-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.risk-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.risk-badge.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

.risk-badge.risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-badge.risk-low {
    background: #d1fae5;
    color: #065f46;
}

@media (max-width: 1200px) {
    .supply-chain-partners-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #c7d2fe;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(79, 70, 229, 0.15);
}

.site-footer .container {
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--secondary-color);
}

/* Print Styles - Professional PDF Export */
@media print {
    /* Page setup */
    @page {
        size: A4;
        margin: 1.5cm 2cm;
    }

    /* Remove web elements */
    .topbar,
    .site-footer,
    .detail-buttons,
    button,
    .btn-primary,
    .btn-secondary,
    form {
        display: none !important;
    }

    /* Ensure sections don't break awkwardly */
    .detail-section {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    /* Major sections should start on new page if needed */
    .detail-section.cmmc-section,
    .control-effectiveness-section,
    .jobs-section,
    .stakeholders-section,
    .supply-chain-detail-section {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Control Effectiveness Analysis always starts on new page */
    .control-effectiveness-section {
        page-break-before: always !important;
        break-before: page !important;
    }

    /* First major section after opportunity should break to new page */
    .opportunity-section + .detail-section {
        page-break-before: always;
        break-before: page;
    }

    /* Keep headers with content */
    h2, h3, h4 {
        page-break-after: avoid;
        break-after: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Keep detail blocks together */
    .detail-block,
    .cmmc-stat,
    .darkweb-finding,
    .control-strength-item,
    .compliance-gap-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Keep tables together when possible */
    table {
        page-break-inside: auto;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Adjust spacing for print */
    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Ensure good contrast for print */
    .badge,
    .tag,
    .subdomain-tag {
        border: 1px solid #333 !important;
        background: white !important;
        color: black !important;
    }

    /* Override inline badge styles */
    .badge[style],
    span.badge[style] {
        background: white !important;
        color: black !important;
    }

    /* Dark Web exposure cards need strong contrast for print */
    .cmmc-stat {
        background: white !important;
        border: 2px solid #333 !important;
        color: black !important;
    }

    .cmmc-stat .stat-label,
    .cmmc-stat .stat-value,
    .cmmc-stat .stat-sublabel {
        color: black !important;
        background: transparent !important;
    }

    /* Override color classes for better print contrast */
    .stat-value.cmmc-high,
    .stat-value.cmmc-medium,
    .stat-value.cmmc-low,
    .stat-value.cmmc-timestamp,
    .cmmc-high,
    .cmmc-medium,
    .cmmc-low,
    .cmmc-timestamp {
        color: black !important;
        background: transparent !important;
        font-weight: 700 !important;
    }

    /* Simplify gradients for print */
    .detail-section {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    /* Remove interactive elements */
    .editable,
    [contenteditable] {
        border: none !important;
        background: transparent !important;
    }
}

/* ============================================================
   SALES ANALYST — TARGET HUNTING DASHBOARD
   ============================================================ */

/* KPI card variants */
.sales-kpi-card {
    position: relative;
    overflow: hidden;
}
.sales-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
}
.kpi-icon {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}
.stat-sublabel {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.kpi-hot {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
}
.kpi-hot .stat-value,
.kpi-hot .kpi-fire {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-money {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.kpi-money .stat-value {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-leads {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.kpi-leads .stat-value {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-pipeline {
    border-left-color: var(--primary-color);
}

/* Two-column layout for sales panels */
.sales-two-col {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}
.sales-two-col-equal {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 1100px) {
    .sales-two-col {
        grid-template-columns: 1fr;
    }
}

/* Prospect Leaderboard */
.sales-leaderboard-panel,
.sales-funnel-panel {
    margin-bottom: 0 !important;
}
.prospect-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.prospect-row {
    display: grid;
    grid-template-columns: 2rem 1fr 160px 90px 60px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: background 0.15s, border-color 0.15s;
}
.prospect-row:hover {
    background: #f0f4ff;
    border-color: rgba(79, 70, 229, 0.25);
}
.prospect-rank {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}
.prospect-info {
    min-width: 0;
}
.prospect-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}
.prospect-domain {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prospect-score-col {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.prospect-score-bar {
    flex: 1;
    height: 7px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.prospect-score-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.7s cubic-bezier(.4,0,.2,1);
}
.prospect-score-num {
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 26px;
    text-align: right;
}
.prospect-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
    text-align: right;
    white-space: nowrap;
}
.panel-footer-link {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
}
.panel-footer-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.panel-footer-link a:hover {
    text-decoration: underline;
}
.panel-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Score fill colors */
.score-fill-hot  { background: linear-gradient(90deg, #ef4444, #dc2626); }
.score-fill-strong { background: linear-gradient(90deg, #f97316, #ea580c); }
.score-fill-warm { background: linear-gradient(90deg, #eab308, #ca8a04); }
.score-fill-cold { background: #cbd5e1; }

/* Score text colors */
.score-text-hot    { color: #ef4444; }
.score-text-strong { color: #f97316; }
.score-text-warm   { color: #b45309; }
.score-text-cold   { color: #9ca3af; }

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    white-space: nowrap;
}
.score-badge-hot    { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.score-badge-strong { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.score-badge-warm   { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }
.score-badge-cold   { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.score-badge-sm     { font-size: 0.58rem; padding: 0.15rem 0.4rem; }

/* Lead Pipeline Funnel */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.funnel-stage {
    display: grid;
    grid-template-columns: 110px 1fr 38px;
    align-items: center;
    gap: 0.5rem;
}
.funnel-stage-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.funnel-stage-bar {
    height: 22px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
.funnel-bar-fill {
    height: 100%;
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
}
.funnel-new .funnel-bar-fill        { background: linear-gradient(90deg, #4f46e5, #6366f1); }
.funnel-processing .funnel-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.funnel-enriched .funnel-bar-fill   { background: linear-gradient(90deg, #10b981, #34d399); }
.funnel-error .funnel-bar-fill      { background: linear-gradient(90deg, #ef4444, #f87171); }
.funnel-stage-value {
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
    color: var(--text-primary);
}

/* Avg Score Mini Widget */
.score-summary-mini {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.score-summary-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.score-summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.score-summary-bar {
    height: 7px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-top: 0.4rem;
    overflow: hidden;
}
.score-summary-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 999px;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
}

/* Score Band Distribution */
.score-dist-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.score-dist-row {
    display: grid;
    grid-template-columns: 140px 1fr 36px 44px;
    align-items: center;
    gap: 0.5rem;
}
.score-dist-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}
.score-dist-bar-wrap {
    height: 14px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
.score-dist-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
}
.score-dist-hot    { background: linear-gradient(90deg, #ef4444, #dc2626); }
.score-dist-strong { background: linear-gradient(90deg, #f97316, #ea580c); }
.score-dist-warm   { background: linear-gradient(90deg, #eab308, #ca8a04); }
.score-dist-cold   { background: #cbd5e1; }
.score-dist-count {
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}
.score-dist-pct {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}
.score-dist-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
}
.score-dist-total-label {
    color: var(--text-secondary);
    flex: 1;
}

/* Coverage Donut */
.coverage-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.coverage-donut-wrap {
    flex-shrink: 0;
}
.coverage-stats {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}
.coverage-stat {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
}
.coverage-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-scanned   { background: #4f46e5; }
.dot-unscanned { background: #e5e7eb; border: 1px solid #d1d5db; }
.dot-total     { background: #6b7280; }
.coverage-label {
    flex: 1;
    color: var(--text-secondary);
}
.btn-coverage-action {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-text-fill-color: #fff;
}
.btn-coverage-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Award Value Chart */
.award-chart {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

/* ============================================================
   DASHBOARD — INTERACTIVE CHART GRID (Sales)
   ============================================================ */

.dashboard-filters {
    padding: 1rem 1.1rem;
}

.dashboard-filters-row {
    display: grid;
    grid-template-columns: 180px 1fr 180px 180px 160px 120px;
    gap: 0.9rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-select:focus,
.filter-input:focus {
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.filter-group-checkbox {
    padding-bottom: 0.25rem;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    user-select: none;
}

.filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.filter-group-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-secondary:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.dashboard-filters-hint {
    margin-top: 0.75rem;
    font-size: 0.82rem;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0 1.5rem 0;
}

.chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem 1rem 1rem 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.chart-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.chart-card-head h3 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
}

.chart-card-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.chart-canvas-wrap {
    position: relative;
    height: 260px;
}

.chart-card-kpis .chart-canvas-wrap {
    height: auto;
}

.kpi-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.kpi-mini {
    border: 1px solid #eef2ff;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
}

.kpi-mini-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-mini-value {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-mini-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

@media (max-width: 1200px) {
    .dashboard-filters-row {
        grid-template-columns: 180px 1fr 180px 180px;
    }
}

@media (max-width: 900px) {
    .dashboard-chart-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
    .dashboard-filters-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }
    .chart-canvas-wrap {
        height: 240px;
    }
}
.award-row {
    display: grid;
    grid-template-columns: 220px 1fr 120px 52px;
    align-items: center;
    gap: 0.75rem;
}
.award-name {
    font-size: 0.84rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}
.award-bar-wrap {
    height: 14px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
.award-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
}
.award-bar-hot    { background: linear-gradient(90deg, #ef4444, #dc2626); }
.award-bar-strong { background: linear-gradient(90deg, #f97316, #ea580c); }
.award-bar-warm   { background: linear-gradient(90deg, #eab308, #ca8a04); }
.award-bar-cold   { background: linear-gradient(90deg, #4f46e5, #6366f1); }
.award-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .prospect-row {
        grid-template-columns: 2rem 1fr 120px 80px 55px;
        gap: 0.4rem;
    }
    .award-row {
        grid-template-columns: 140px 1fr 90px 48px;
    }
    .score-dist-row {
        grid-template-columns: 120px 1fr 36px 40px;
    }
}
@media (max-width: 640px) {
    .prospect-row {
        grid-template-columns: 1.5rem 1fr 100px 55px;
    }
    .prospect-value { display: none; }
    .award-row { grid-template-columns: 120px 1fr 80px 44px; }
    .award-name { font-size: 0.76rem; }
    .score-dist-row { grid-template-columns: 110px 1fr 32px 38px; }
}
