﻿:root {
    --bo-primary: #14385a;
    --bo-primary-dark: #0d2a45;
    --bo-accent: #d39a5b;
    --bo-bg: #f4f7fa;
    --bo-card: #ffffff;
    --bo-border: #dce5ec;
    --bo-muted: #607083;
    --bo-text: #08233d;
    --bo-radius: 18px;
    --bo-shadow: 0 18px 40px rgba(8, 35, 61, 0.08);
}

body {
    background: var(--bo-bg);
    color: var(--bo-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bo-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bo-topbar {
    background: var(--bo-primary);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bo-topbar-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bo-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

    .bo-brand:hover {
        color: #fff;
    }

.bo-brand-mark {
    width: 34px;
    height: 34px;
    background: var(--bo-accent);
    border-radius: 50%;
    color: var(--bo-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.bo-nav {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

    .bo-nav a {
        color: rgba(255,255,255,0.78);
        text-decoration: none;
        font-weight: 600;
    }

        .bo-nav a:hover {
            color: #fff;
        }

.bo-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255,255,255,0.88);
}

.bo-logout {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0.75rem;
    padding: 0.45rem 0.85rem;
    font-weight: 700;
}

    .bo-logout:hover {
        background: #fff;
        color: var(--bo-primary);
    }

.bo-main {
    padding: 2rem 0;
}

.page-header {
    background: var(--bo-card);
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius);
    box-shadow: var(--bo-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .page-header h1 {
        margin: 0;
        font-weight: 800;
        color: var(--bo-primary-dark);
    }

    .page-header p {
        color: var(--bo-muted);
        margin: 0.5rem 0 0;
    }

.section-label {
    color: #0f7ea0;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.metric-card,
.content-card {
    background: var(--bo-card);
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius);
    box-shadow: var(--bo-shadow);
    padding: 1.4rem;
}

.metric-label {
    color: var(--bo-muted);
    font-weight: 700;
}

.metric-value {
    color: var(--bo-primary-dark);
    font-weight: 900;
    font-size: 2rem;
    margin-top: 0.25rem;
}

.metric-note {
    color: var(--bo-muted);
    font-size: 0.9rem;
}

.bo-list {
    margin-bottom: 0;
    color: var(--bo-muted);
    line-height: 1.8;
}

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(211,154,91,0.18), transparent 35%), linear-gradient(135deg, #0d2a45 0%, #14385a 48%, #f4f7fa 48%, #f4f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    width: min(960px, 94vw);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
}

.login-brand {
    color: #fff;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--bo-accent);
    color: var(--bo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 900;
}

.login-subtitle {
    color: rgba(255,255,255,0.78);
}

.login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--bo-shadow);
    padding: 2rem;
}

    .login-card h1 {
        color: var(--bo-primary-dark);
        font-weight: 900;
    }

.btn-primary {
    background: var(--bo-primary);
    border-color: var(--bo-primary);
    font-weight: 800;
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
}

    .btn-primary:hover {
        background: var(--bo-primary-dark);
        border-color: var(--bo-primary-dark);
    }

.form-control {
    border-radius: 0.8rem;
    padding: 0.75rem;
}

@media (max-width: 768px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        justify-content: center;
        text-align: center;
    }

    .bo-topbar-inner {
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        flex-wrap: wrap;
    }

    .bo-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        margin-left: 0;
    }
}
.bo-table {
    margin-bottom: 0;
}

    .bo-table thead th {
        color: var(--bo-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        border-bottom: 1px solid var(--bo-border);
    }

    .bo-table tbody td {
        border-bottom: 1px solid rgba(220, 229, 236, 0.7);
        color: var(--bo-text);
    }

.bo-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.bo-status-active {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.bo-status-inactive {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.bo-role-select {
    min-width: 150px;
}

.compact-metric {
    padding: 1rem;
}

.compact-metric .metric-value {
    font-size: 1.6rem;
}

.danger-metric {
    border-color: rgba(220, 53, 69, 0.25);
}

.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.65rem 1rem;
    margin-bottom: 0;
}

.detail-list dt {
    color: var(--bo-muted);
    font-weight: 800;
}

.detail-list dd {
    margin-bottom: 0;
}

.detail-list-grid {
    grid-template-columns: 130px minmax(0, 1fr);
}

.lead-profile-line {
    color: var(--bo-muted);
    margin-top: 0.25rem;
}

.mini-list,
.timeline-list,
.issue-list {
    display: grid;
    gap: 0.75rem;
}

.mini-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--bo-border);
    border-radius: 14px;
    color: var(--bo-text);
    text-decoration: none;
    background: #f8fafc;
}

.mini-list-item:hover {
    color: var(--bo-primary);
    border-color: rgba(20, 56, 90, 0.35);
}

.mini-list-item.is-danger {
    border-color: rgba(220, 53, 69, 0.25);
    background: rgba(220, 53, 69, 0.05);
}

.timeline-item,
.issue-item {
    border: 1px solid var(--bo-border);
    border-radius: 14px;
    padding: 0.9rem;
    background: #f8fafc;
}

.timeline-time {
    color: var(--bo-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-title,
.issue-item strong {
    display: block;
    color: var(--bo-primary-dark);
    font-weight: 900;
    margin-top: 0.1rem;
}

.timeline-text,
.issue-item span {
    color: var(--bo-muted);
    margin-top: 0.25rem;
}
.dashboard-hero {
    background: linear-gradient(135deg, var(--bo-primary) 0%, var(--bo-primary-dark) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--bo-shadow);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

    .dashboard-hero h1 {
        font-weight: 900;
        margin: 0;
    }

    .dashboard-hero p {
        color: rgba(255,255,255,0.78);
        margin: 0.75rem 0 0;
        max-width: 720px;
    }

.dashboard-user-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 1rem;
    min-width: 220px;
}

.dashboard-user-name {
    font-weight: 800;
}

.dashboard-user-role {
    color: rgba(255,255,255,0.75);
    text-transform: capitalize;
    margin-top: 0.25rem;
}

.metric-card-primary {
    border-color: rgba(211,154,91,0.45);
}

.metric-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--bo-primary);
    font-weight: 800;
    text-decoration: none;
}

    .metric-link:hover {
        color: var(--bo-primary-dark);
    }

.content-title {
    color: var(--bo-primary-dark);
    font-weight: 900;
    margin-bottom: 1rem;
}

.workflow-list {
    display: grid;
    gap: 1rem;
}

.workflow-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--bo-border);
    border-radius: 16px;
}

.workflow-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bo-accent);
    color: var(--bo-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.workflow-title {
    color: var(--bo-primary-dark);
    font-weight: 800;
}

.workflow-text {
    color: var(--bo-muted);
    margin-top: 0.2rem;
}

.quick-actions-card {
    position: sticky;
    top: 96px;
}

.quick-note {
    background: rgba(211,154,91,0.12);
    border: 1px solid rgba(211,154,91,0.25);
    color: var(--bo-primary-dark);
    border-radius: 14px;
    padding: 0.85rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-user-card {
        width: 100%;
    }
}
