﻿/* ==========================================================
   PLANTA DE CARGOS
   Contraloría Distrital de Medellín
   Versión autónoma
========================================================== */

.pc-page {
    --pc-verde: #1e5c2f;
    --pc-verde-claro: #f0f5ec;
    --pc-verde-borde: #c5d9b5;
    --pc-verde-texto: #27500a;
    --pc-verde-sub: #3b6d11;
    --pc-radio: 8px;
    --pc-radio-lg: 12px;

    width: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
}


/* ==========================================================
   BANNER
========================================================== */

.pc-page .pc-page__banner {
    width: 100%;
    overflow: hidden;
}

.pc-page .imagen__banner {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================
   ESTADÍSTICAS
========================================================== */

.pc-page .seccion_estadistica {
    padding: 20px 0;
}

.pc-page .cord_info {
    min-height: 100px;
    height: 100%;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--pc-radio);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.pc-page .cord_info .info {
    padding: 0;
}

.pc-page .cord_info h4 {
    margin: 0;
    color: var(--pc-verde);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.pc-page .cord_info p {
    margin: 5px 0 0;
    color: #4d4848;
    font-size: 16px;
    line-height: 1.35;
}

.pc-page .icon_plan-cargos {
    width: auto;
    height: 70px;
    flex: 0 0 auto;
}


/* ==========================================================
   CONTENIDO PRINCIPAL
========================================================== */

.pc-page .pc-page__content {
    padding: 16px 0 48px;
}


/* ==========================================================
   MENÚ LATERAL
========================================================== */

.pc-page .pc-wrapper {
    width: 100%;
}

.pc-page .pc-menu {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--pc-radio-lg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}


/* Encabezado */

.pc-page .pc-header {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    margin: 0;

    background: var(--pc-verde);
    color: #ffffff;

    font-family: inherit;
    text-align: left;

    cursor: pointer;
    user-select: none;
}

.pc-page .pc-header:hover {
    background: #194f29;
}

.pc-page .pc-header:focus-visible {
    outline: 3px solid rgba(30, 92, 47, 0.25);
    outline-offset: 2px;
}

.pc-page .pc-header-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-page .pc-header-label span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pc-page .pc-header svg {
    flex-shrink: 0;
}

.pc-page .pc-chevron {
    transition: transform 0.2s ease;
}

.pc-page .pc-header.open .pc-chevron {
    transform: rotate(90deg);
}


/* Subitems */

.pc-page .pc-subitems {
    display: none;
    background: #ffffff;
}

.pc-page .pc-subitems.open {
    display: block;
}

.pc-page .pc-subitem {
    width: 100%;
    min-height: 46px;
    padding: 13px 16px 13px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);

    background: #ffffff;
    color: #1a1a1a;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.pc-page .pc-subitem:last-child {
    border-bottom: 0;
}

.pc-page .pc-subitem:hover {
    background: #f7faf4;
}

.pc-page .pc-subitem.active {
    background: #eef5e9;
    color: var(--pc-verde);
}

.pc-page .pc-subitem:focus-visible {
    outline: 3px solid rgba(30, 92, 47, 0.20);
    outline-offset: -3px;
}

.pc-page .pc-subitem span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.pc-page .pc-subitem svg {
    flex: 0 0 auto;
    color: var(--pc-verde);
}


/* ==========================================================
   PLANTA GLOBAL
========================================================== */

.pc-page .pc-section-row {
    width: 100%;
    min-height: 50px;

    margin: 15px 0;
    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #ffffff;
    color: #1a1a1a;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--pc-radio-lg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.pc-page .pc-section-row:hover {
    background: #f7faf4;
}

.pc-page .pc-section-row.active {
    background: #eef5e9;
    color: var(--pc-verde);
    border-color: var(--pc-verde-borde);
}

.pc-page .pc-section-row:focus-visible {
    outline: 3px solid rgba(30, 92, 47, 0.20);
    outline-offset: 2px;
}

.pc-page .pc-section-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-page .pc-section-row-label span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pc-page .pc-section-row svg {
    flex: 0 0 auto;
    color: var(--pc-verde);
}


/* ==========================================================
   DESCARGA
========================================================== */

.pc-page .pc-download {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;

    display: flex;
    align-items: center;
    gap: 14px;

    background: var(--pc-verde-claro);
    border: 1px solid var(--pc-verde-borde);
    border-radius: var(--pc-radio-lg);

    color: inherit;
    text-decoration: none;

    transition: background-color 0.15s ease;
}

.pc-page .pc-download:hover {
    background: #e4efdb;
    text-decoration: none;
}

.pc-page .pc-download[aria-disabled="true"] {
    cursor: default;
}

.pc-page .pc-download-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    background: var(--pc-verde);
    color: #ffffff;
    border-radius: 50%;
}

.pc-page .pc-download-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pc-page .pc-dl-title {
    color: var(--pc-verde-texto);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.pc-page .pc-dl-sub {
    margin-top: 2px;
    color: var(--pc-verde-sub);
    font-size: 14px;
    line-height: 1.35;
}


/* ==========================================================
   TABLA
========================================================== */

.pc-page .table-container {
    width: 100%;
    overflow: hidden;

    background: #ffffff;
    border-radius: var(--pc-radio);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.pc-page .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pc-page .pc-table {
    width: 100%;
    margin: 0;

    border-collapse: collapse;
    border-spacing: 0;

    background: #ffffff;
}

.pc-page .pc-table thead {
    background: #1f7a3f;
    color: #ffffff;
}

.pc-page .pc-table thead th {
    padding: 12px;

    border: 0;

    color: #ffffff;
    background: #1f7a3f;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    vertical-align: middle;
}

.pc-page .pc-table tbody td {
    padding: 10px;

    border: 1px solid #e0e0e0;

    color: #1a1a1a;
    background: #ffffff;

    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

.pc-page .pc-table tbody td:first-child {
    text-align: left;
}

.pc-page .pc-table tbody tr:not(.section):not(.total):hover td {
    background: #fafcf9;
}


/* Fila de sección */

.pc-page .pc-table .section td {
    background: #dfe5da;
    color: #1f7a3f;
    font-weight: 700;
}


/* Fila total */

.pc-page .pc-table .total td {
    background: #e8efe5;
    color: #1f7a3f;
    font-weight: 700;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (min-width: 768px) and (max-width: 1200px) {

    .pc-page .pc-table {
        min-width: 781px;
    }

    .pc-page .cord_info {
        min-height: 92px;
    }

}


@media (max-width: 767.98px) {

    .pc-page .seccion_estadistica {
        padding: 16px 0;
    }

    .pc-page .pc-page__content {
        padding-top: 8px;
    }

    .pc-page .cord_info {
        min-height: 88px;
    }

    .pc-page .icon_plan-cargos {
        height: 58px;
    }

    .pc-page .cord_info h4 {
        font-size: 22px;
    }

    .pc-page .cord_info p {
        font-size: 14px;
    }

    .pc-page .pc-table {
        min-width: 781px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .pc-page *,
    .pc-page *::before,
    .pc-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}
