:root {
    --sa-hero-start: #0f7bf0;
    --sa-hero-end: #0f9d8b;
    --sa-ink: #14213d;
    --sa-border-soft: rgba(20, 33, 61, 0.08);
    --sa-surface-alt: linear-gradient(135deg, rgba(15, 123, 240, 0.08), rgba(15, 157, 139, 0.08));
}

body {
    background:
        radial-gradient(circle at top right, rgba(16, 141, 255, 0.14), transparent 24%),
        radial-gradient(circle at left bottom, rgba(40, 127, 113, 0.12), transparent 28%),
        var(--bs-body-bg);
}

.page-content-shell {
    padding: 28px 0 36px;
}

.logo-box .logo {
    display: flex;
    align-items: center;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--sa-hero-start), var(--sa-hero-end));
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-sidebar-item);
}

.sidebar-note {
    margin: 24px 16px 0;
    padding: 18px;
    border: 1px solid var(--sa-border-soft);
    border-radius: 16px;
    background: var(--sa-surface-alt);
}

.sidebar-note h6 {
    color: var(--bs-heading-color);
}

.hero-card,
.hero-card-compact,
.section-card,
.metric-stack-card,
.report-card,
.report-detail-card,
.empty-state-card {
    border: 1px solid var(--sa-border-soft);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.hero-card {
    background:
        linear-gradient(135deg, rgba(15, 123, 240, 0.96), rgba(15, 157, 139, 0.92)),
        #0f7bf0;
    color: #fff;
}

.hero-card .text-muted,
.hero-card-compact .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.hero-card-compact {
    background:
        linear-gradient(145deg, rgba(20, 33, 61, 0.98), rgba(16, 141, 255, 0.92)),
        #14213d;
    color: #fff;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-title {
    max-width: 10ch;
    font-size: clamp(2.3rem, 3.8vw, 4.4rem);
    line-height: 1;
    color: inherit;
}

.hero-title-sm {
    max-width: none;
    font-size: clamp(2rem, 3vw, 3rem);
}

.hero-text {
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-metric span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-metric strong {
    font-size: 1.1rem;
    color: #fff;
}

.hero-metric.compact {
    margin-bottom: 0.85rem;
    background: var(--sa-surface-alt);
}

.hero-metric.compact span,
.hero-metric.compact strong {
    color: var(--sa-ink);
}

.section-card,
.metric-stack-card,
.report-card,
.report-detail-card,
.empty-state-card {
    background: var(--bs-card-bg);
}

.section-icon,
.empty-state-icon,
.report-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 52px;
    min-height: 52px;
    border-radius: 16px;
    background: var(--sa-surface-alt);
    color: var(--bs-primary);
}

.report-card__badge {
    min-width: auto;
    min-height: auto;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--sa-border-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.report-frame-wrap {
    width: 100%;
    overflow: auto;
    border-top: 1px solid var(--sa-border-soft);
    border-radius: 0 0 18px 18px;
    background: #fff;
    min-height: 76vh;
}

.report-frame-wrap iframe {
    display: block;
    width: 100%;
    min-height: 76vh;
    border: 0;
}

.report-detail-header {
    flex: 0 0 auto;
}

.report-alert {
    border-radius: 16px;
}

.icon-btn {
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
}

.issue-detail-hero__main {
    max-width: 860px;
}

.issue-section-card {
    overflow: hidden;
}

.issue-content-body {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--sa-ink);
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 1rem;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 1rem;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 10px;
    width: 2px;
    height: calc(100% + 1rem);
    background: rgba(20, 33, 61, 0.12);
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin-top: 0.2rem;
    border: 5px solid rgba(15, 123, 240, 0.18);
    border-radius: 50%;
    background: var(--bs-primary);
}

.timeline-card,
.comment-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--sa-border-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.comment-list {
    display: grid;
    gap: 1rem;
}

.issue-meta-list {
    display: grid;
    gap: 0.9rem;
}

.issue-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--sa-border-soft);
}

.issue-meta-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.issue-label-badge {
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .hero-title {
        max-width: none;
    }

    .timeline-item {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .timeline-item:not(:last-child)::after {
        left: 7px;
    }
}
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--multiple {
    min-height: 37px;
    height: 37px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    height: 29px;
    padding: 0 2rem 0 0.5rem;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    flex: 0 1 auto;
    max-width: 100%;
    margin: 0;
    padding: 0 0.35rem;
    line-height: 21px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-selection--multiple .select2-selection__search {
    margin: 0;
    line-height: 21px;
}

.select2-container--default .select2-selection--multiple .select2-selection__search-input {
    height: 21px;
    margin: 0;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    height: 29px;
    margin-right: 0.5rem;
    line-height: 29px;
}
