/*=========================================================
    SIGPM 3.0
    STYLE.CSS
=========================================================*/

:root{

    --primary:#0F5FA8;
    --primary-dark:#0A4D86;
    --primary-light:#EAF4FF;

    --success:#27AE60;
    --warning:#F39C12;
    --danger:#E74C3C;

    --background:#F4F7FB;

    --card:#FFFFFF;

    --text:#2C3E50;
    --text-light:#7B8794;

    --border:#E3EAF2;

    --radius:18px;

    --shadow:
        0 12px 35px rgba(0,0,0,.08);

    --transition:.30s ease;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--background);

    color:var(--text);

}

.background{

    position:fixed;

    inset:0;

    background:
    linear-gradient(
        135deg,
        #F7FAFD,
        #EEF4FB
    );

    z-index:-1;

}

/*=========================================================
APP
=========================================================*/

.app{

    width:96%;

    max-width:1800px;

    margin:auto;

    padding:30px;

}

/*=========================================================
HEADER
=========================================================*/

.header{

    background:#fff;

    border-radius:22px;

    padding:25px 35px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:var(--shadow);

    margin-bottom:30px;

}

.header-left{

    display:flex;

    align-items:center;

    gap:18px;

}

.logo{

    width:70px;

    height:70px;

    border-radius:18px;

    background:
    linear-gradient(
        145deg,
        var(--primary),
        #4A92E5
    );

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

}

.header h1{

    font-size:30px;

    margin-bottom:4px;

}

.header span{

    color:var(--text-light);

}

.badge{

    background:var(--primary-light);

    color:var(--primary);

    padding:12px 20px;

    border-radius:50px;

    display:flex;

    gap:10px;

    align-items:center;

    font-weight:600;

    text-decoration: none;


}

.badge1{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

/*=========================================================
TITULO
=========================================================*/

.page-title{

    margin-bottom:30px;

}

.page-title h2{

    font-size:34px;

    margin-bottom:8px;

}

.page-title p{

    color:var(--text-light);

}

/*=========================================================
LAYOUT
=========================================================*/

.content{

    display:grid;

    grid-template-columns:minmax(0,1fr) 340px;

    gap:30px;

    align-items:start;

}

.form-area{

    width:100%;

    min-width:0;

}

/*=========================================================
SIDEBAR
=========================================================*/

.sidebar{

    position:sticky;

    top:25px;

}

.summary{

    background:#fff;

    border-radius:20px;

    padding:28px;

    box-shadow:var(--shadow);

}

.summary h3{

    display:flex;

    align-items:center;

    gap:10px;

    color:var(--primary);

    margin-bottom:22px;

    padding-bottom:18px;

    border-bottom:1px solid var(--border);

}

.summary .item{

    display:flex;

    justify-content:space-between;

    padding:15px 0;

    border-bottom:1px solid #EEF2F7;

}

.summary .item:last-child{

    border:none;

}

.summary span{

    color:var(--text-light);

}

/*=========================================================
CARDS
=========================================================*/

.card{

    background:white;

    border-radius:22px;

    padding:35px;

    box-shadow:var(--shadow);

    margin-bottom:25px;

}

.card-header{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:30px;

}

.card-header i{

    width:55px;

    height:55px;

    border-radius:15px;

    background:var(--primary-light);

    color:var(--primary);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

}

.card-header h3{

    font-size:25px;

}

/*=========================================================
SECCIONES
=========================================================*/

.section-title{

    margin-top:35px;

    margin-bottom:20px;

    color:var(--primary);

    font-size:18px;

    font-weight:700;

}

/*=========================================================
GRILLAS
=========================================================*/

.grid-1{

    display:grid;

    grid-template-columns:1fr;

    gap:20px;

}

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

.grid-4{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

}

.grid-5{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

}


/*=========================================================
FORMULARIOS
=========================================================*/

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    font-weight:600;

    margin-bottom:8px;

}

input,
select,
textarea{

    width:100%;

    padding:14px 16px;

    border:1px solid var(--border);

    border-radius:12px;

    font-size:15px;

    font-family:inherit;

    transition:.30s;

    outline:none;

}

input:focus,
select:focus,
textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(15,95,168,.12);

}

textarea{

    resize:vertical;

    min-height:120px;

}

/*=========================================================
BOTONES
=========================================================*/

.buttons{

    margin-top:40px;

    display:flex;

    justify-content:space-between;

}

.btn{

    border:none;

    border-radius:12px;

    padding:14px 28px;

    cursor:pointer;

    display:flex;

    align-items:center;

    gap:10px;

    font-size:15px;

    font-weight:600;

    transition:.30s;

}

.btn-primary{

    background:var(--primary);

    color:white;

}

.btn-primary:hover{

    background:var(--primary-dark);

}

.btn-secondary{

    background:#EDF2F7;

    color:#556575;

}

.btn-secondary:hover{

    background:#DFE7EF;

}

/*=========================================================
TABLAS
=========================================================*/

.table{

    width:100%;

    border-collapse:collapse;

    margin-top:25px;

}

.table thead{

    background:#F7FAFD;

}

.table th{

    padding:16px;

    text-align:left;

    color:var(--primary);

    font-size:14px;

    font-weight:700;

    border-bottom:1px solid var(--border);

}

.table td{

    padding:14px;

    border-bottom:1px solid #EEF2F7;

}

.table tbody tr{

    transition:.25s;

}

.table tbody tr:hover{

    background:#FAFCFE;

}

/*=========================================================
TOTAL PRESUPUESTO
=========================================================*/

.total-box{

    margin-top:30px;

    padding:28px;

    border-radius:18px;

    background:linear-gradient(135deg,var(--primary),#3F8FE0);

    color:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.total-box h3{

    font-size:19px;

    font-weight:600;

}

.total-box span{

    font-size:34px;

    font-weight:700;

}

/*=========================================================
ALERTAS
=========================================================*/

.alert{

    display:flex;

    align-items:flex-start;

    gap:15px;

    padding:18px;

    border-radius:15px;

    margin-bottom:25px;

    background:#EDF6FF;

    color:#0F5FA8;

    border-left:5px solid var(--primary);

}

.alert i{

    font-size:22px;

    margin-top:2px;

}

/*=========================================================
PROGRAMACION DE COMPRA
=========================================================*/

.purchase-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    padding:28px;

    margin-bottom:30px;

    transition:.30s;

    box-shadow:0 6px 18px rgba(0,0,0,.04);

}

.purchase-card:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 28px rgba(0,0,0,.08);

}

.purchase-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    margin-bottom:25px;

    padding-bottom:20px;

    border-bottom:1px solid var(--border);

}

.purchase-header h4{

    color:var(--primary);

    font-size:22px;

    margin-bottom:6px;

}

.purchase-header small{

    color:var(--text-light);

}

.purchase-total{

    text-align:right;

}

.purchase-total strong{

    font-size:26px;

    color:var(--primary);

}

/*=========================================================
MESES
=========================================================*/

.months-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:18px;

    margin-bottom:18px;

}

.month{

    background:#F8FBFE;

    border:1px solid var(--border);

    border-radius:14px;

    padding:15px;

}

.month label{

    display:block;

    font-size:13px;

    font-weight:700;

    color:var(--primary);

    margin-bottom:8px;

}

.month input{

    text-align:right;

}

/*=========================================================
PIE TARJETA
=========================================================*/

.purchase-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:25px;

    padding-top:20px;

    border-top:1px solid var(--border);

}

.purchase-footer div{

    text-align:center;

}

.purchase-footer small{

    display:block;

    color:var(--text-light);

    margin-bottom:6px;

}

.purchase-footer h3{

    color:var(--primary);

}

/*=========================================================
BARRA PROGRESO
=========================================================*/

.progress{

    width:100%;

    height:12px;

    border-radius:20px;

    overflow:hidden;

    background:#E5EBF2;

    margin-top:20px;

}

.progress-bar{

    width:0%;

    height:100%;

    background:linear-gradient(90deg,#0F5FA8,#58A4F5);

    transition:.35s;

}

/*=========================================================
BADGES
=========================================================*/

.badge-green{

    background:#EAFBF1;

    color:#2EAF67;

}

.badge-blue{

    background:#EDF5FF;

    color:#0F5FA8;

}

.badge-orange{

    background:#FFF5E9;

    color:#F39C12;

}

.badge-red{

    background:#FFF0F0;

    color:#E74C3C;

}

/*=========================================================
ANIMACIONES
=========================================================*/

.card{

    animation:fadeUp .35s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.fade{

    animation:fade .30s;

}

@keyframes fade{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/*=========================================================
SCROLL
=========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#EEF2F7;

}

::-webkit-scrollbar-thumb{

    background:#C7D4E0;

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:#AEBFCC;

}

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

@media(max-width:1200px){

    .content{

        grid-template-columns:1fr;

    }

    .sidebar{

        position:relative;

        top:0;

        margin-top:30px;

    }

}

@media(max-width:900px){

    .grid-2,
    .grid-3{

        grid-template-columns:1fr;

    }

    .months-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .purchase-header{

        flex-direction:column;

    }

    .purchase-footer{

        flex-direction:column;

        gap:20px;

    }

}

@media(max-width:600px){

    .app{

        width:100%;

        padding:15px;

    }

    .header{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .buttons{

        flex-direction:column;

        gap:15px;

    }

    .btn{

        justify-content:center;

        width:100%;

    }

    .months-grid{

        grid-template-columns:1fr;

    }

    .card{

        padding:20px;

    }

}

.ts-wrapper.single .ts-control{
    min-height:42px;
    border:1px solid #d1d5db;
    border-radius:6px;
    font-size:14px;
    box-shadow:none;
}

.ts-wrapper.focus .ts-control{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.ts-dropdown{
    border-radius:6px;
    border:1px solid #d1d5db;
}




/*=========================================================
 INFORMACION CATALOGO CUENTAS
=========================================================*/


.account-info-panel{

    margin-top:25px;

    padding:22px;

}


.account-info-panel h3{

    margin-bottom:18px;

}


.account-info-panel .item{

    padding:10px 0;

}



.cuenta-detalle{

    margin-top:15px;

}



.descripcion-cuenta{

    margin-top:15px;

    padding:14px;

    background:#F7FAFD;

    border-radius:12px;

    border:1px solid var(--border);

}



.descripcion-cuenta span{

    display:block;

    color:var(--primary);

    font-weight:700;

    margin-bottom:8px;

}



.descripcion-cuenta p{

    font-size:13px;

    line-height:1.5;

    color:var(--text-light);

}