﻿:root {
    --color-primary: #2596D4;
    --color-secondary: #F4B400;
    --color-dark: #1F2D3D;
    --color-light: #F4F6F9;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: var(--color-light);
}

/* LOGIN */
.login-page {
    background: linear-gradient(135deg, #2596D4 0%, #1F2D3D 100%);
    min-height: 100vh;
}

.login-box {
    width: 380px;
}

.login-card-body {
    border-radius: 15px;
    padding: 35px;
}

.login-logo img {
    width: 120px;
    margin-bottom: 10px;
}

.login-title {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 30px;
}

.login-subtitle {
    color: #6c757d;
    font-size: 14px;
}

.form-control {
    height: 45px;
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 8px;
    height: 45px;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #1d7cb0;
        border-color: #1d7cb0;
    }

/* SIDEBAR */
.main-sidebar {
    background-color: var(--color-dark) !important;
}

.brand-link {
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand-text {
    font-weight: 600 !important;
}

/* NAVBAR */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* CARDS */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* BOTONES */
.btn-warning {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* MOBILE */
@media(max-width: 576px) {

    .login-box {
        width: 95%;
    }

    .login-card-body {
        padding: 25px;
    }

    .login-title {
        font-size: 24px;
    }
}

.brand-link img {
    background: white;
    border-radius: 50%;
    padding: 3px;
}

.nav-sidebar .nav-link {
    border-radius: 8px;
    margin: 2px 8px;
}

    .nav-sidebar .nav-link:hover {
        background-color: rgba(37, 150, 212, .25) !important;
    }

    .nav-sidebar .nav-link.active {
        background-color: #2596D4 !important;
        color: white !important;
    }

.user-panel {
    border-bottom: 1px solid rgba(255,255,255,.15);
}

    .user-panel .info {
        width: 100%;
    }

    .user-panel .nombre-usuario {
        font-weight: 600;
        color: white;
    }

    .user-panel .rol-usuario {
        color: #ffd54f;
        font-size: 12px;
        text-transform: uppercase;
    }

.btn-md-inline {
    width: auto;
}

.tarifa-mobile-card {
    border-left: 4px solid #2596D4;
}

@media (max-width: 767.98px) {
    .content-header h4 {
        font-size: 20px;
    }

    .btn-md-inline {
        width: 100%;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-footer .btn {
        margin-bottom: 8px;
    }
}

.btn-md-inline {
    width: auto;
}

@media (max-width: 767.98px) {
    .btn-md-inline {
        width: 100%;
    }

    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
        top: 50%;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-footer .btn {
        margin-bottom: 8px;
    }
}

/* ===============================
   TABLA POSTULANTES
================================ */

#tablaPostulantes {
    width: 100% !important;
    font-size: 14px;
}

    #tablaPostulantes th,
    #tablaPostulantes td {
        vertical-align: middle;
        padding: 8px 10px;
    }

    #tablaPostulantes th {
        white-space: nowrap;
    }

    #tablaPostulantes td {
        white-space: normal;
    }

.fecha-cell {
    width: 80px;
    min-width: 80px;
    white-space: nowrap !important;
}

.fecha-dia {
    font-weight: 500;
}

.postulante-cell {
    width: 170px;
    min-width: 170px;
}

.postulante-info {
    line-height: 1.15;
}

.postulante-nombre {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.postulante-nombres {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.documento-cell {
    width: 120px;
    min-width: 120px;
}

.tramite-cell {
    width: 115px;
    min-width: 115px;
}
.tramite-nombre {
    line-height: 1.1;
    white-space: normal;
}

.ejecutivo-cell {
    width: 110px;
    min-width: 110px;
}

.monto-cell {
    width: 80px;
    min-width: 80px;
    white-space: nowrap !important;
}

.estado-cell {
    width: 85px;
    min-width: 85px;
    white-space: nowrap !important;
}

.acciones-cell {
    width: 180px;
    min-width: 180px;
}

.acciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 88px);
    gap: 6px;
    width: 182px;
}

    .acciones-grid .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 12px;
        padding: 6px 6px;
        border-radius: 8px;
        white-space: nowrap;
    }

/* Celular: dejar visible solo +, Postulante y Trámite */
@media (max-width: 767.98px) {
    #tablaPostulantes {
        font-size: 12px;
    }

        #tablaPostulantes th,
        #tablaPostulantes td {
            padding: 6px;
        }

    .postulante-cell {
        width: 180px;
        min-width: 180px;
    }

    .postulante-nombre {
        font-size: 12px;
    }

    .postulante-nombres {
        font-size: 11px;
    }

    .acciones-cell {
        width: 190px;
        min-width: 190px;
    }

    .acciones-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }
}

/*boton flotante para pagar comisiones*/
.btn-pagar-flotante {
    display: none;
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1050;
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

@media (max-width: 767.98px) {
    .btn-pagar-flotante {
        left: 15px;
        right: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
        border-radius: 12px;
    }
}


/* ===============================
   TABLA COBROS
================================ */

#tablaCobros {
    width: 100% !important;
    font-size: 14px;
}

    #tablaCobros th,
    #tablaCobros td {
        vertical-align: middle;
        padding: 8px 10px;
    }

    #tablaCobros th {
        white-space: nowrap;
    }

.fecha-cell {
    width: 85px;
    min-width: 85px;
}

.comprobante-cell {
    width: 140px;
    min-width: 140px;
    white-space: nowrap !important;
}

.persona-cell {
    width: 230px;
    min-width: 230px;
}

.concepto-cell {
    width: 180px;
    min-width: 180px;
}

.total-cell {
    width: 90px;
    min-width: 90px;
    white-space: nowrap !important;
}

.metodos-cell {
    width: 180px;
    min-width: 180px;
}

.saldo-cell {
    width: 90px;
    min-width: 90px;
    white-space: nowrap !important;
}

.estado-cell {
    width: 90px;
    min-width: 90px;
}

.usuario-cell {
    width: 120px;
    min-width: 120px;
}

.acciones-ticket-cell {
    width: 110px;
    min-width: 110px;
}

/* ===============================
   MENU PROFESIONAL
================================ */

.nav-sidebar > .nav-item {
    margin-bottom: 4px;
}

.nav-sidebar .nav-link {
    border-radius: 10px;
    margin: 3px 8px;
    transition: all .2s ease-in-out;
}

    .nav-sidebar .nav-link p {
        font-size: 14px;
    }

.nav-sidebar .nav-icon {
    width: 22px;
    text-align: center;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(37, 150, 212, .20) !important;
    color: #fff !important;
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(90deg, #2596D4, #1d7cb0) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(37, 150, 212, .35);
}

.nav-sidebar .menu-open > .nav-link {
    background-color: rgba(37, 150, 212, .18) !important;
    color: #fff !important;
    font-weight: 600;
}

.nav-treeview {
    margin-left: 8px;
    border-left: 1px solid rgba(255,255,255,.12);
}

    .nav-treeview .nav-link {
        padding-left: 18px;
        font-size: 13px;
    }

        .nav-treeview .nav-link.active {
            background: rgba(37, 150, 212, .95) !important;
            border-left: 4px solid #F4B400;
        }

.sidebar .user-panel .info {
    line-height: 1.25;
}