@charset "utf-8";

/* =====================================================
   CUADRO MULTIANUAL DE NECESIDADES
   DRTC HUANCAVELICA
   ACTIWEB 2.0
===================================================== */

.ac-cmn {
    width: 100%;
    color: #26384d;
    font-family: inherit;
    font-size: 14px;
}


/* =====================================================
   BARRA SUPERIOR
===================================================== */

.ac-cmn__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.ac-cmn__resumen {
    color: #52637d;
    font-size: 14px;
}

.ac-cmn__controles {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 25px;
}


/* SELECTOR */

.ac-cmn__cantidad {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52637d;
    font-size: 14px;
}

.ac-cmn__cantidad select {
    min-width: 65px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #26384d;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.ac-cmn__cantidad select:focus {
    border-color: #1265bd;
}


/* BUSCADOR */

.ac-cmn__buscar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #26384d;
    font-size: 14px;
    font-weight: 600;
}

.ac-cmn__buscar-input {
    position: relative;
    width: 300px;
}

.ac-cmn__buscar-input input {
    width: 100%;
    height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid #bdcde0;
    border-radius: 7px;
    background: #fff;
    color: #26384d;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all .2s ease;
}

.ac-cmn__buscar-input input:focus {
    border-color: #1265bd;
    box-shadow: 0 0 0 3px rgba(18,101,189,.10);
}

.ac-cmn__buscar-input input::placeholder {
    color: #94a3b8;
}

.ac-cmn__buscar-input i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}


/* =====================================================
   LISTADO
===================================================== */

.ac-cmn__listado {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =====================================================
   TARJETA DEL AÑO
===================================================== */

.ac-cmn__grupo {
    width: 100%;
    overflow: hidden;
    border: 1px solid #c9d9ec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15,52,91,.07);
}


/* =====================================================
   CABECERA DEL AÑO
===================================================== */

.ac-cmn__grupo-header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 69px;
    padding: 8px 22px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(110deg, #0871c9, #064a94);
    color: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: filter .2s ease;
}

.ac-cmn__grupo-header:hover {
    filter: brightness(1.07);
}

.ac-cmn__grupo-header:focus-visible {
    outline: 3px solid #80bdff;
    outline-offset: -4px;
}

.ac-cmn__grupo-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin-right: 17px;
    border-radius: 9px;
    background: rgba(255,255,255,.17);
    color: #fff;
    font-size: 21px;
}

.ac-cmn__grupo-titulo {
    color: #fff;
    font-size: 1.0rem;
    font-weight: 600;
    line-height: 1.3;
}

.ac-cmn__grupo-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    margin-left: 22px;
    padding: 4px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.ac-cmn__grupo-flecha {
    margin-left: auto;
    color: #fff;
    font-size: 19px;
    transition: transform .25s ease;
}

.ac-cmn__grupo-header:not(.is-active) .ac-cmn__grupo-flecha {
    transform: rotate(180deg);
}


/* =====================================================
   CONTENIDO DESPLEGABLE
===================================================== */

.ac-cmn__grupo-body {
    display: none;
    padding: 10px 18px 16px;
    background: #fff;
}

.ac-cmn__grupo-body.is-open {
    display: block;
    animation: acCmnEntrada .2s ease;
}

@keyframes acCmnEntrada {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   TABLA
===================================================== */

.ac-cmn__tabla-scroll {
    width: 100%;
    overflow-x: auto;
}

.ac-cmn table.ac-cmn__tabla {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed;
    border-spacing: 0;
}


/* CABECERA */

.ac-cmn .ac-cmn__tabla thead th {
    padding: 15px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #d3e0ee !important;
    background: #eaf1f8 !important;
    color: #173b68 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}


/* FILAS */

.ac-cmn .ac-cmn__tabla tbody td {
    padding: 11px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e8f1 !important;
    background: #fff !important;
    color: #26384d;
    font-size: 13px;
    vertical-align: middle !important;
}

.ac-cmn .ac-cmn__tabla tbody tr:hover td {
    background: #f5f9fd !important;
}

.ac-cmn .ac-cmn__tabla tbody tr:last-child td {
    border-bottom: 0 !important;
}


/* ANCHOS */

.ac-cmn__col-numero {
    width: 5%;
}

.ac-cmn__col-fecha {
    width: 10%;
}

.ac-cmn__col-documento {
    width: 65%;
}

.ac-cmn__col-acciones {
    width: 20%;
}

.ac-cmn__col-busqueda {
    display: none !important;
}


/* =====================================================
   NUMERO DE DOCUMENTO
===================================================== */

.ac-cmn__numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 7px;
    background: #e7eef6;
    color: #18385e;
    font-size: 15px;
    font-weight: 700;
}


/* =====================================================
   FECHA
===================================================== */

.ac-cmn__fecha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #344b69;
    font-size: 13px;
    white-space: nowrap;
}

.ac-cmn__fecha i {
    color: #71869e;
    font-size: 17px;
}


/* =====================================================
   DOCUMENTO
===================================================== */

.ac-cmn__documento {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-cmn__pdf-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 38px;
    color: #e52d2d;
    font-size: 27px;
}

.ac-cmn__documento-info {
    min-width: 0;
    width: 100%;
}

.ac-cmn__documento-titulo {
    display: block;
    color: #064a94;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ac-cmn__documento-titulo:hover {
    color: #0878d1;
    text-decoration: none;
}

.ac-cmn__documento-descripcion {
    margin-top: 4px;
    color: #748297;
    font-size: 12px;
    line-height: 1.5;
}


/* =====================================================
   BOTONES
===================================================== */

.ac-cmn__acciones {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-cmn__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #0759a8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s ease;
}

.ac-cmn__btn--ver {
    background: #fff;
    color: #0759a8;
}

.ac-cmn__btn--ver:hover {
    background: #eaf3fc;
    color: #064a94;
}

.ac-cmn__btn--descargar {
    background: #0759a8;
    color: #fff;
}

.ac-cmn__btn--descargar:hover {
    background: #03447f;
    color: #fff;
    border-color: #03447f;
}

.ac-cmn__sin-archivo {
    color: #94a3b8;
    font-size: 12px;
}


/* =====================================================
   DATATABLES: PIE Y PAGINACION
===================================================== */

.ac-cmn .ac-cmn__dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 7px 0;
    margin-top: 5px;
    border-top: 1px solid #edf1f5;
}


/* INFORMACION */

.ac-cmn .dataTables_info {
    padding: 0 !important;
    color: #64748b !important;
    font-size: 13px;
}


/* PAGINACION */

.ac-cmn .dataTables_paginate {
    padding: 0 !important;
    margin-left: auto;
}

.ac-cmn .dataTables_paginate .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 !important;
    padding: 0;
}

.ac-cmn .dataTables_paginate .page-item {
    margin: 0 !important;
}

.ac-cmn .dataTables_paginate .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 38px;
    padding: 5px 11px;
    border: 1px solid #cbd9e9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #0759a8 !important;
    font-size: 13px;
    box-shadow: none !important;
}

.ac-cmn .dataTables_paginate .page-item.active .page-link {
    border-color: #0759a8 !important;
    background: #0759a8 !important;
    color: #fff !important;
}

.ac-cmn .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #edf5fd !important;
    border-color: #0759a8 !important;
}

.ac-cmn .dataTables_paginate .page-item.disabled .page-link {
    background: #f8fafc !important;
    color: #a5b1c0 !important;
    opacity: .7;
}


/* =====================================================
   MENSAJE SIN RESULTADOS
===================================================== */

.ac-cmn__sin-resultados,
.ac-cmn__vacio {
    padding: 40px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.ac-cmn__sin-resultados i,
.ac-cmn__vacio-icono {
    display: block;
    margin-bottom: 12px;
    color: #9aabc0;
    font-size: 38px;
}

.ac-cmn__sin-resultados p,
.ac-cmn__vacio-titulo {
    margin: 0 0 6px;
    color: #34465d;
    font-size: 16px;
    font-weight: 600;
}

.ac-cmn__sin-resultados span,
.ac-cmn__vacio-texto {
    color: #7b8a9e;
    font-size: 13px;
}


/* =====================================================
   RESPONSIVE: TABLETS
===================================================== */

@media (max-width: 991px) {

    .ac-cmn__controles {
        width: 100%;
        justify-content: space-between;
    }

    .ac-cmn__tabla {
        min-width: 850px;
    }

}


/* =====================================================
   RESPONSIVE: MOVILES
===================================================== */

@media (max-width: 767px) {

    .ac-cmn__toolbar {
        align-items: flex-start;
        gap: 15px;
    }

    .ac-cmn__controles {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .ac-cmn__cantidad {
        flex-wrap: wrap;
    }

    .ac-cmn__buscar {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .ac-cmn__buscar-input {
        width: 100%;
    }

    .ac-cmn__grupo-header {
        min-height: 59px;
        padding: 10px 13px;
    }

    .ac-cmn__grupo-icono {
        width: 35px;
        min-width: 35px;
        height: 35px;
        margin-right: 10px;
        font-size: 17px;
    }

    .ac-cmn__grupo-titulo {
        font-size: 17px;
    }

    .ac-cmn__grupo-total {
        min-height: 27px;
        margin-left: 9px;
        padding: 3px 9px;
        font-size: 11px;
    }

    .ac-cmn__grupo-body {
        padding: 10px;
    }

    .ac-cmn .ac-cmn__dt-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ac-cmn .dataTables_paginate {
        margin-left: 0;
    }

    .ac-cmn .dataTables_paginate .page-link {
        min-width: 34px;
        height: 34px;
        padding: 4px 8px;
    }

}


/* =====================================================
   MOVILES PEQUEÑOS
===================================================== */

@media (max-width: 480px) {

    .ac-cmn__grupo-titulo {
        font-size: 15px;
    }

    .ac-cmn__grupo-total {
        margin-left: 6px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .ac-cmn__grupo-flecha {
        font-size: 15px;
    }

}