/*==================================================
  DASHBOARD
==================================================*/

.slp-dashboard{

    width:100%;

    box-sizing:border-box;

}


/*==================================================
  MAIN
==================================================*/

.slp-main{

    flex:1;

    margin-left:260px;

    display:flex;

    flex-direction:column;

    min-height:100vh;

}


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

.slp-content{

    flex:1;

    padding:30px;

    width:100%;

    box-sizing:border-box;

    background:#F4F7FB;

}


/*==================================================
  CABECERA
==================================================*/

.slp-dashboard-welcome{

    margin-bottom:28px;

}


.slp-dashboard-welcome h1{

    margin:0;

    font-size:34px;

    line-height:1.2;

    font-weight:800;

    color:#0F172A;

}


.slp-dashboard-welcome p{

    margin:8px 0 0;

    font-size:16px;

    color:#64748B;

}


/*==================================================
  INDICADORES PRINCIPALES
==================================================*/

.slp-dashboard-highlights{

    display:grid;

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

    gap:20px;

    margin-bottom:24px;

}


.slp-highlight{

    background:#FFFFFF;

    border-radius:18px;

    padding:22px 24px;

    display:flex;

    align-items:center;

    gap:18px;

    box-shadow:
        0 8px 25px rgba(15,23,42,.06);

    border:1px solid #E8EDF4;

    box-sizing:border-box;

    transition:.2s;

}


.slp-highlight:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 30px rgba(15,23,42,.09);

}


.slp-highlight-icon{

    width:52px;

    height:52px;

    min-width:52px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:25px;

    background:#F1F5F9;

}


.slp-highlight strong{

    display:block;

    font-size:30px;

    line-height:1;

    font-weight:800;

    color:#0F172A;

}


.slp-highlight span{

    display:block;

    margin-top:5px;

    font-size:14px;

    color:#64748B;

}


.slp-highlight-red{

    border-top:4px solid #EF4444;

}


.slp-highlight-blue{

    border-top:4px solid #2563EB;

}


/*==================================================
  COLUMNAS PRINCIPALES
==================================================*/

.slp-dashboard-columns{

    display:grid;

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

    gap:24px;

    margin-bottom:24px;

}


/*==================================================
  CAJAS
==================================================*/

.slp-dashboard-box{

    background:#FFFFFF;

    border-radius:20px;

    border:1px solid #E8EDF4;

    box-shadow:
        0 8px 25px rgba(15,23,42,.06);

    overflow:hidden;

}


.slp-dashboard-box-header{

    padding:20px 24px;

    border-bottom:1px solid #EEF2F7;

}


.slp-dashboard-box-header h2{

    margin:0;

    font-size:20px;

    font-weight:800;

    color:#0F172A;

}


/*==================================================
  ACCIONES DE HOY
==================================================*/

.slp-dashboard-actions{

    padding:10px 20px 18px;

}


.slp-dashboard-action{

    display:flex;

    align-items:center;

    gap:18px;

    padding:16px 4px;

    border-bottom:1px solid #F1F5F9;

}


.slp-dashboard-action:last-child{

    border-bottom:none;

}


.slp-dashboard-action-time{

    width:55px;

    min-width:55px;

    font-size:16px;

    font-weight:800;

    color:#2563EB;

}


.slp-dashboard-action-info{

    min-width:0;

}


.slp-dashboard-action-info strong{

    display:block;

    font-size:16px;

    font-weight:700;

    color:#0F172A;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}


.slp-dashboard-action-info span{

    display:block;

    margin-top:5px;

    font-size:13px;

    color:#64748B;

}


/*==================================================
  ESTADO VACÍO
==================================================*/

.slp-dashboard-empty{

    padding:30px 20px;

    text-align:center;

    color:#64748B;

}


.slp-dashboard-empty span{

    display:block;

    font-size:28px;

    margin-bottom:8px;

}


.slp-dashboard-empty p{

    margin:0;

    font-size:14px;

}


/*==================================================
  CUMPLEAÑOS
==================================================*/

.slp-dashboard-birthdays{

    padding:18px 24px 22px;

}


.slp-birthday-title{

    margin:4px 0 10px;

    font-size:13px;

    font-weight:800;

    color:#64748B;

    text-transform:uppercase;

    letter-spacing:.4px;

}


.slp-birthday{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 0;

    border-bottom:1px solid #F1F5F9;

}


.slp-birthday:last-child{

    border-bottom:none;

}


.slp-birthday span{

    font-size:20px;

}


.slp-birthday strong{

    font-size:15px;

    color:#334155;

}


/*==================================================
  RESUMEN
==================================================*/

.slp-dashboard-summary{

    background:#FFFFFF;

    border-radius:20px;

    border:1px solid #E8EDF4;

    box-shadow:
        0 8px 25px rgba(15,23,42,.06);

    padding:22px 24px;

}


.slp-dashboard-summary-title{

    margin-bottom:20px;

    font-size:20px;

    font-weight:800;

    color:#0F172A;

}


.slp-dashboard-summary-items{

    display:grid;

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

    gap:10px;

}


.slp-summary-item{

    text-align:center;

    padding:12px 8px;

    border-right:1px solid #E8EDF4;

}


.slp-summary-item:last-child{

    border-right:none;

}


.slp-summary-item strong{

    display:block;

    font-size:26px;

    line-height:1.1;

    font-weight:800;

    color:#0F172A;

}


.slp-summary-item span{

    display:block;

    margin-top:5px;

    font-size:12px;

    color:#64748B;

}


/*==================================================
  MÓVIL
==================================================*/

@media(max-width:1100px){

    .slp-dashboard-columns{

        grid-template-columns:1fr;

    }


    .slp-dashboard-summary-items{

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

    }


    .slp-summary-item{

        border-right:none;

        border-bottom:1px solid #E8EDF4;

    }

}


@media(max-width:768px){

    .slp-main{

        margin-left:0;

        width:100%;

    }


    .slp-content{

        padding:18px;

    }


    .slp-dashboard-welcome h1{

        font-size:28px;

    }


    .slp-dashboard-highlights{

        grid-template-columns:1fr;

        gap:14px;

    }


    .slp-dashboard-columns{

        grid-template-columns:1fr;

        gap:18px;

    }


    .slp-dashboard-summary-items{

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

    }


    .slp-dashboard-summary{

        padding:18px;

    }


    .slp-dashboard-action{

        gap:12px;

    }


    .slp-dashboard-action-time{

        width:50px;

        min-width:50px;

    }

}


@media(max-width:480px){

    .slp-dashboard-summary-items{

        grid-template-columns:1fr 1fr;

    }


    .slp-dashboard-welcome h1{

        font-size:25px;

    }


    .slp-dashboard-box-header{

        padding:18px;

    }

}

/*==================================================
  CORRECCIÓN ESTRUCTURA NUEVO DASHBOARD
==================================================*/

.slp-dashboard{
    display:block !important;
    width:100% !important;
    min-height:auto !important;
    background:transparent !important;
    box-sizing:border-box;
}


/* CABECERA */

.slp-dashboard-welcome{
    display:block;
    width:100%;
}


/* INDICADORES */

.slp-dashboard-highlights{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    width:100%;
}


/* CONTENIDO PRINCIPAL */

.slp-dashboard-columns{
    display:grid !important;
    grid-template-columns:minmax(0, 1.6fr) minmax(300px, 1fr) !important;
    width:100%;
}


/* RESUMEN */

.slp-dashboard-summary{
    display:block;
    width:100%;
    box-sizing:border-box;
}


/*==================================================
  MÓVIL
==================================================*/

@media(max-width:1100px){

    .slp-dashboard-columns{
        grid-template-columns:1fr !important;
    }

}


@media(max-width:768px){

    .slp-dashboard-highlights{
        grid-template-columns:1fr !important;
    }

    .slp-dashboard-columns{
        grid-template-columns:1fr !important;
    }

}

/* ==================================================
   MEJORA DASHBOARD - ORDENADOR
================================================== */

@media (min-width: 1101px){

    /* CONTENIDO */

    .slp-content{
        padding:32px 38px 40px;
    }


    /* CABECERA */

    .slp-dashboard-welcome{
        margin-bottom:24px;
    }

    .slp-dashboard-welcome h1{
        font-size:32px;
        line-height:1.15;
        letter-spacing:-.5px;
    }

    .slp-dashboard-welcome p{
        margin-top:7px;
        font-size:15px;
    }


    /* INDICADORES SUPERIORES */

    .slp-dashboard-highlights{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:22px;
        margin-bottom:24px;
    }


    .slp-highlight{
        min-height:108px;
        padding:20px 24px;
        border-radius:18px;
    }


    .slp-highlight-icon{
        width:50px;
        height:50px;
        min-width:50px;
        font-size:23px;
        border-radius:15px;
    }


    .slp-highlight strong{
        font-size:32px;
    }


    .slp-highlight span{
        font-size:14px;
        margin-top:6px;
    }


    /* COLUMNAS */

    .slp-dashboard-columns{
        grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr) !important;
        gap:22px;
        margin-bottom:24px;
    }


    /* CAJAS */

    .slp-dashboard-box{
        border-radius:18px;
        box-shadow:0 6px 22px rgba(15,23,42,.055);
    }


    .slp-dashboard-box-header{
        padding:18px 24px;
    }


    .slp-dashboard-box-header h2{
        font-size:19px;
    }


    /* ACCIONES */

    .slp-dashboard-actions{
        padding:6px 24px 14px;
    }


    .slp-dashboard-action{
        padding:15px 0;
        gap:20px;
    }


    .slp-dashboard-action-time{
        width:62px;
        min-width:62px;
        font-size:17px;
    }


    .slp-dashboard-action-info strong{
        font-size:16px;
    }


    .slp-dashboard-action-info span{
        font-size:13px;
    }


    /* CUMPLEAÑOS */

    .slp-dashboard-birthdays{
        padding:16px 24px 20px;
    }


    .slp-birthday{
        padding:11px 0;
    }


    /* RESUMEN */

    .slp-dashboard-summary{
        padding:20px 24px 22px;
        border-radius:18px;
        box-shadow:0 6px 22px rgba(15,23,42,.055);
    }


    .slp-dashboard-summary-title{
        margin-bottom:16px;
        font-size:19px;
    }


    .slp-dashboard-summary-items{
        grid-template-columns:repeat(4,1fr) !important;
        gap:0;
    }


    .slp-summary-item{
        padding:10px 18px;
        min-height:68px;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }


    .slp-summary-item strong{
        font-size:30px;
        line-height:1;
    }


    .slp-summary-item span{
        margin-top:7px;
        font-size:13px;
    }

}

/* ==================================================
   LISTADO CLIENTES / SOCIOS
================================================== */

.slp-contact-list{

    width:100%;

    background:#FFFFFF;

    border:1px solid #E8EDF4;

    border-radius:18px;

    box-shadow:
        0 6px 22px rgba(15,23,42,.055);

    overflow:hidden;

}


.slp-contact-list-header{

    display:grid;

    grid-template-columns:
        minmax(180px, 1.4fr)
        minmax(130px, 1fr)
        minmax(200px, 1.5fr)
        minmax(150px, 1fr)
        100px;

    align-items:center;

    padding:16px 22px;

    background:#F8FAFC;

    border-bottom:1px solid #E8EDF4;

    font-size:12px;

    font-weight:800;

    color:#64748B;

    text-transform:uppercase;

    letter-spacing:.4px;

}


.slp-contact-list-row{

    display:grid;

    grid-template-columns:
        minmax(180px, 1.4fr)
        minmax(130px, 1fr)
        minmax(200px, 1.5fr)
        minmax(150px, 1fr)
        100px;

    align-items:center;

    padding:17px 22px;

    border-bottom:1px solid #F1F5F9;

    transition:.2s;

}


.slp-contact-list-row:last-child{

    border-bottom:none;

}


.slp-contact-list-row:hover{

    background:#F8FAFC;

}


.slp-contact-list-name{

    min-width:0;

}


.slp-contact-list-name strong{

    display:block;

    font-size:15px;

    font-weight:700;

    color:#0F172A;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}


.slp-contact-list-row > div{

    font-size:14px;

    color:#475569;

    min-width:0;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}


.slp-contact-list-actions{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:8px;

}


.slp-contact-list-actions form{

    margin:0;

}


.slp-contact-list-actions button{

    width:34px;

    height:34px;

    border:0;

    border-radius:9px;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:.2s;

}


.slp-contact-list-actions .slp-btn-edit{

    background:#EFF6FF;

    color:#2563EB;

}


.slp-contact-list-actions .slp-btn-edit:hover{

    background:#DBEAFE;

}


.slp-contact-list-actions .slp-btn-delete{

    background:#FEF2F2;

    color:#DC2626;

}


.slp-contact-list-actions .slp-btn-delete:hover{

    background:#FEE2E2;

}


.slp-contact-list-empty{

    padding:50px 25px;

    text-align:center;

    color:#64748B;

    font-size:15px;

}


/* ==================================================
   LISTADO CLIENTES / SOCIOS - MÓVIL
================================================== */

@media(max-width:900px){

    .slp-contact-list{

        overflow-x:auto;

    }


    .slp-contact-list-header,
    .slp-contact-list-row{

        min-width:760px;

    }

}

/* ==========================================
   CLIENTES Y SOCIOS — DISEÑO CLICABLE
   ========================================== */

/* CLIENTES */
.slp-dashboard-summary-items .slp-summary-item:nth-child(3),

/* SOCIOS */
.slp-dashboard-summary-items .slp-summary-item:nth-child(4){

    background:#F8FAFF;

    border:1px solid #D9E6FF;

    border-radius:14px;

    cursor:pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;

    margin:4px;

}


/* EFECTO AL PASAR EL RATÓN */

.slp-dashboard-summary-items .slp-summary-item:nth-child(3):hover,
.slp-dashboard-summary-items .slp-summary-item:nth-child(4):hover{

    background:#EFF6FF;

    border-color:#2563EB;

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(37,99,235,.15);

}


/* NÚMERO */

.slp-dashboard-summary-items .slp-summary-item:nth-child(3) strong,
.slp-dashboard-summary-items .slp-summary-item:nth-child(4) strong{

    color:#2563EB;

}


/* TEXTO */

.slp-dashboard-summary-items .slp-summary-item:nth-child(3) span,
.slp-dashboard-summary-items .slp-summary-item:nth-child(4) span{

    font-weight:700;

    color:#334155;

}