/* ================================================
   Radiografía Salarial — CSS puro (sin @apply)
   ================================================ */

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* ---- SIDEBAR NAV ---- */
.nav-link {
    display: block;
    padding: 9px 18px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    letter-spacing: 0.01em;
}
.nav-link:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
}
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.10);
    font-weight: 600;
}

/* Sidebar panel */
.sidebar-panel {
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease;
}
.sidebar-panel.open {
    transform: translateX(0) !important;
}
@media (min-width: 1024px) {
    .sidebar-panel {
        transform: translateX(0) !important;
    }
}

/* ---- SOURCE TAGS ---- */
.source-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
    background: #f0f4f8;
    color: #64748b;
}
a.source-tag {
    cursor: pointer;
    transition: all 0.15s;
}
a.source-tag:hover {
    background: #dbeafe;
    color: #1e40af;
}

/* ---- CHART CARDS ---- */
.chart-card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #d5d9e2;
    padding: 24px;
    margin-bottom: 28px;
}

/* ---- KPI CARDS ---- */
.kpi {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #d5d9e2;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}
.kpi::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}
.kpi-green::before { background: #059669; }
.kpi-amber::before { background: #d97706; }
.kpi-rose::before  { background: #e11d48; }
.kpi-blue::before  { background: #2563eb; }

/* ---- TOGGLE PILLS ---- */
.pill-group {
    display: inline-flex;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
}
.pill-btn {
    padding: 6px 16px;
    cursor: pointer;
    border: none;
    background: #fff;
    color: #6b7280;
    transition: all 0.15s ease;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: 1.4;
}
.pill-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.pill-btn.active {
    background: #1f2937;
    color: #fff;
}

/* ---- TABLES ---- */
.tbl {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
}
.tbl thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #8a95aa;
    padding: 10px 14px;
    text-align: left;
    background: #f6f7f9;
    border-bottom: 1px solid #d5d9e2;
}
.tbl thead th:first-child { border-top-left-radius: 4px; }
.tbl thead th:last-child  { border-top-right-radius: 4px; }
.tbl tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: #464e61;
}
.tbl tbody tr:hover td {
    background: #f8f9fb;
}

/* ---- CALLOUT BOXES ---- */
.callout {
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid;
}
.callout-info {
    background: #f0f6ff;
    border-color: #bfdbfe;
    color: #1e3a5f;
}
.callout-warn {
    background: #fefce8;
    border-color: #fde68a;
    color: #713f12;
}
.callout-accent {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #064e3b;
}

/* ---- PLOTLY OVERRIDES ---- */
.js-plotly-plot .plotly .modebar { display: none !important; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
aside::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* ---- JOB POSTING CARDS ---- */
.aviso-card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #d5d9e2;
    padding: 16px;
    transition: all 0.15s;
}
.aviso-card:hover {
    border-color: #94a3b8;
}
