/**
 * Atennde Jurídico — identidade (substitui laranja MedGestor).
 * Carregar após custom-overrides.css
 */
:root,
[data-pc-theme="light"],
[data-pc-theme="dark"] {
    --jur-primary: #173B57;
    --jur-primary-hover: #102C42;
    --jur-accent: #2563A6;
    --jur-bg: #F5F7F9;
    --jur-card: #FFFFFF;
    --jur-border: #E2E7EC;
    --jur-text: #17212B;
    --jur-text-muted: #667085;
    --jur-success: #198754;
    --jur-warning: #D99A24;
    --jur-danger: #C63C3C;

    --med-orange: #173B57;
    --med-orange-dark: #102C42;
    --med-orange-soft: rgba(23, 59, 87, 0.12);
    --bs-primary: #173B57 !important;
    --bs-primary-rgb: 23, 59, 87 !important;
    --pc-sidebar-active-color: #173B57 !important;
    --cor1: #173B57;
    --cor2: #2563A6;
}

[data-pc-theme="light"] body,
[data-pc-theme="light"] .pc-content {
    background: var(--jur-bg) !important;
    color: var(--jur-text);
}

[data-pc-theme="light"] .card {
    background: var(--jur-card) !important;
    border-color: var(--jur-border) !important;
}

[data-pc-theme="light"] .pc-sidebar .m-header {
    border-bottom-color: var(--jur-primary) !important;
}

[data-pc-theme="dark"] .pc-content {
    background:
        radial-gradient(circle at 100% 0, rgba(37, 99, 166, 0.12), transparent 28rem),
        #0f1419 !important;
}

[data-pc-theme="dark"] {
    --med-orange: #2563A6;
    --med-orange-dark: #1a4d80;
    --med-orange-soft: rgba(37, 99, 166, 0.18);
    --pc-sidebar-active-color: #5b9bd5 !important;
}

.btn-primary,
.btn-success {
    background-color: var(--jur-primary) !important;
    border-color: var(--jur-primary) !important;
}

.btn-primary:hover,
.btn-success:hover {
    background-color: var(--jur-primary-hover) !important;
    border-color: var(--jur-primary-hover) !important;
}

.btn-outline-primary {
    color: var(--jur-primary) !important;
    border-color: var(--jur-primary) !important;
}

.btn-outline-primary:hover {
    background: var(--jur-primary) !important;
    color: #fff !important;
}

a:not(.btn):not(.pc-link):not(.dropdown-item) {
    color: var(--jur-accent);
}

.text-primary {
    color: var(--jur-primary) !important;
}

/* Marca textual provisória */
.atennde-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: var(--jur-primary);
}

.atennde-brand--center {
    justify-content: center;
    width: 100%;
}

.atennde-brand--sidebar {
    padding: 8px 12px 4px;
}

.atennde-brand__mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--jur-primary);
}

.atennde-brand--sidebar .atennde-brand__mark {
    width: 38px;
    height: 38px;
}

.atennde-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.atennde-brand__name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--jur-primary);
}

.atennde-brand__product {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--jur-text-muted);
    letter-spacing: 0.02em;
}

[data-pc-theme="dark"] .atennde-brand__name {
    color: #e8eef4;
}

[data-pc-theme="dark"] .atennde-brand__product {
    color: #8fa3b8;
}

[data-pc-theme="dark"] .atennde-brand__mark {
    color: #2563A6;
}

.pc-item.pc-caption label {
    color: var(--jur-text-muted) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

[data-pc-theme="light"] .pc-sidebar .pc-item.active > .pc-link,
[data-pc-theme="light"] .pc-sidebar .pc-item.active > a,
.pc-sidebar .pc-item.active > .pc-link,
.pc-item.active > a {
    background: rgba(23, 59, 87, 0.09) !important;
    color: #173B57 !important;
    border-left: 3px solid #173B57 !important;
}

[data-pc-theme="light"] .pc-sidebar .pc-item.active .pc-micon,
[data-pc-theme="light"] .pc-sidebar .pc-item.active .pc-micon i {
    color: #173B57 !important;
}

.escritorio-brand-sidebar .atennde-brand__name {
    font-size: 1.05rem;
}

.escritorio-brand-sidebar img.escritorio-logo {
    max-height: 44px;
    max-width: 160px;
    object-fit: contain;
}
