/* ==========================================================
   DASHBOARD DO GESTOR
   REFERÊNCIA VISUAL APROVADA
   ========================================================== */


#dslCrmGestorApp .crm-g-dash-page{
    width:100%;
    max-width:1600px;
    margin:0 auto;
}


#dslCrmGestorApp .crm-g-dash-loading{
    padding:40px;
    text-align:center;
    color:#667085;
}


/* CABEÇALHO */

#dslCrmGestorApp .crm-g-dash-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}


#dslCrmGestorApp .crm-g-dash-head h1{
    margin:0 0 4px;
    color:#12223b;
    font-size:30px;
    line-height:1.15;
    font-weight:750;
}


#dslCrmGestorApp .crm-g-dash-head p{
    margin:0;
    color:#667085;
    font-size:14px;
}


/* KPI */

#dslCrmGestorApp .crm-g-dash-kpis{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
    margin-bottom:14px;
}


#dslCrmGestorApp .crm-g-dash-kpi{
    min-width:0;
    min-height:108px;

    display:flex;
    align-items:center;

    gap:12px;

    padding:15px;

    border:1px solid #dde5ee;
    border-radius:13px;

    background:#fff;

    box-shadow:
        0 2px 7px rgba(16,24,40,.035);
}


#dslCrmGestorApp .crm-g-dash-kpi-icon{
    width:45px;
    height:45px;

    flex:0 0 45px;

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

    border-radius:11px;

    font-size:16px;
    font-weight:800;
}


#dslCrmGestorApp .crm-g-dash-kpi-icon.blue{
    color:#1276e9;
    background:#e8f2ff;
}


#dslCrmGestorApp .crm-g-dash-kpi-icon.green{
    color:#0ba66b;
    background:#e2f7ee;
}


#dslCrmGestorApp .crm-g-dash-kpi-icon.orange{
    color:#ff7b28;
    background:#fff0e3;
}


#dslCrmGestorApp .crm-g-dash-kpi-icon.purple{
    color:#7650e6;
    background:#efeaff;
}


#dslCrmGestorApp .crm-g-dash-kpi small{
    display:block;

    margin-bottom:5px;

    color:#3f536f;

    font-size:12px;
    font-weight:700;
}


#dslCrmGestorApp .crm-g-dash-kpi strong{
    display:block;

    color:#07162c;

    font-size:23px;
    line-height:1;

    font-weight:800;
}


#dslCrmGestorApp .crm-g-dash-kpi .crm-g-dash-money{
    font-size:17px;
}


/* PAINÉIS */

#dslCrmGestorApp .crm-g-dash-panel{
    min-width:0;

    overflow:hidden;

    border:1px solid #dde5ee;
    border-radius:13px;

    background:#fff;

    box-shadow:
        0 2px 7px rgba(16,24,40,.03);
}


#dslCrmGestorApp .crm-g-dash-panel > header{
    min-height:52px;

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

    gap:12px;

    padding:0 15px;

    border-bottom:
        1px solid #e7edf3;
}


#dslCrmGestorApp .crm-g-dash-panel > header h2{
    margin:0;

    color:#12223b;

    font-size:15px;
    font-weight:750;
}


#dslCrmGestorApp .crm-g-dash-panel > header span{
    color:#667085;
    font-size:11px;
}


#dslCrmGestorApp .crm-g-dash-panel-body{
    min-height:205px;
    padding:15px;
}


#dslCrmGestorApp .crm-g-dash-panel-body.no-pad{
    padding:0;
}


/* ==========================================================
   LINHA DOS 3 GRÁFICOS
   ========================================================== */

#dslCrmGestorApp .crm-g-dash-charts{
    display:grid;

    grid-template-columns:
        1.05fr 1.2fr 1fr;

    gap:12px;

    margin-bottom:12px;
}


/* ==========================================================
   FUNIL
   ========================================================== */

#dslCrmGestorApp .crm-g-funnel-chart{
    min-height:195px;

    display:grid;

    grid-template-columns:
        minmax(170px,1fr)
        minmax(135px,.9fr);

    align-items:center;

    gap:14px;
}


#dslCrmGestorApp .crm-g-funnel-shape{
    height:176px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:3px;
}


#dslCrmGestorApp .crm-g-funnel-segment{
    height:28px;

    flex:0 0 28px;

    clip-path:
        polygon(
            4% 0,
            96% 0,
            87% 100%,
            13% 100%
        );

    border-radius:2px;
}


#dslCrmGestorApp .crm-g-funnel-legend{
    display:grid;
    gap:8px;
}


#dslCrmGestorApp .crm-g-funnel-legend-item{
    display:grid;

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

    align-items:center;

    gap:7px;

    color:#40536d;

    font-size:11px;
}


#dslCrmGestorApp .crm-g-funnel-legend-item strong{
    color:#12223b;
    text-align:right;
}


#dslCrmGestorApp .crm-g-chart-dot{
    width:8px;
    height:8px;

    display:block;

    border-radius:50%;
}


/* ==========================================================
   VENDAS POR VENDEDOR
   ========================================================== */

#dslCrmGestorApp .crm-g-bars-chart{
    min-height:195px;
}


#dslCrmGestorApp .crm-g-bars-legend{
    height:24px;

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

    gap:16px;

    color:#52647b;

    font-size:10px;
}


#dslCrmGestorApp .crm-g-bars-legend span{
    display:flex;
    align-items:center;

    gap:5px;
}


#dslCrmGestorApp .crm-g-bars-legend i{
    width:8px;
    height:8px;

    display:block;

    border-radius:50%;
}


#dslCrmGestorApp .crm-g-legend-vendas{
    background:#1478e8;
}


#dslCrmGestorApp .crm-g-legend-propostas{
    background:#76bdf4;
}


#dslCrmGestorApp .crm-g-bars-stage{
    height:165px;

    display:flex;
    align-items:flex-end;
    justify-content:space-around;

    gap:8px;

    padding:13px 8px 0;

    border-left:1px solid #e4eaf0;
    border-bottom:1px solid #e4eaf0;

    background-image:
        linear-gradient(
            to top,
            #edf1f5 1px,
            transparent 1px
        );

    background-size:
        100% 25%;
}


#dslCrmGestorApp .crm-g-bars-group{
    height:100%;

    min-width:38px;

    flex:1;

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:flex-end;
}


#dslCrmGestorApp .crm-g-bars-columns{
    height:137px;

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

    gap:3px;
}


#dslCrmGestorApp .crm-g-bars-col{
    width:17px;
    height:100%;

    position:relative;

    display:flex;
    align-items:flex-end;
}


#dslCrmGestorApp .crm-g-bars-col b{
    position:absolute;

    left:50%;

    transform:
        translateX(-50%);

    color:#19314f;

    font-size:9px;

    z-index:2;
}


#dslCrmGestorApp .crm-g-bars-col i{
    width:100%;

    display:block;

    border-radius:
        4px 4px 0 0;

    min-height:0;
}


#dslCrmGestorApp .crm-g-bar-vendas{
    background:#1478e8;
}


#dslCrmGestorApp .crm-g-bar-propostas{
    background:#76bdf4;
}


#dslCrmGestorApp .crm-g-bars-label{
    width:100%;

    margin-top:5px;

    overflow:hidden;

    color:#52647b;

    font-size:9px;

    text-align:center;
    text-overflow:ellipsis;
    white-space:nowrap;
}


/* ==========================================================
   DONUT / LEADS POR ORIGEM
   ========================================================== */

#dslCrmGestorApp .crm-g-donut-layout{
    min-height:195px;

    display:grid;

    grid-template-columns:
        150px minmax(135px,1fr);

    align-items:center;

    gap:16px;
}


#dslCrmGestorApp .crm-g-donut{
    width:142px;
    height:142px;

    position:relative;

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

    border-radius:50%;
}


#dslCrmGestorApp .crm-g-donut-hole{
    width:82px;
    height:82px;

    position:absolute;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#fff;

    box-shadow:
        inset 0 0 0 1px #f0f2f5;
}


#dslCrmGestorApp .crm-g-donut-hole strong{
    color:#07162c;

    font-size:19px;
    font-weight:800;
}


#dslCrmGestorApp .crm-g-donut-hole span{
    margin-top:2px;

    color:#52647b;

    font-size:10px;
    font-weight:650;
}


#dslCrmGestorApp .crm-g-donut-legend{
    display:grid;
    gap:8px;
}


#dslCrmGestorApp .crm-g-donut-legend-item{
    display:grid;

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

    align-items:center;

    gap:7px;

    color:#435772;

    font-size:10px;
}


#dslCrmGestorApp .crm-g-donut-name{
    overflow:hidden;

    text-overflow:ellipsis;
    white-space:nowrap;
}


#dslCrmGestorApp .crm-g-donut-legend-item strong{
    color:#29415f;

    text-align:right;
}


/* ==========================================================
   SEGUNDA LINHA
   ========================================================== */

#dslCrmGestorApp .crm-g-dash-management{
    display:grid;

    grid-template-columns:
        1.35fr 1fr .95fr;

    gap:12px;

    margin-bottom:12px;
}


#dslCrmGestorApp
.crm-g-dash-management
.crm-g-dash-panel-body{
    min-height:180px;
}


/* TABELAS */

#dslCrmGestorApp .crm-g-dash-table-wrap{
    width:100%;

    overflow:auto;
}


#dslCrmGestorApp .crm-g-dash-table{
    width:100%;

    border-collapse:collapse;

    font-size:10.5px;
}


#dslCrmGestorApp .crm-g-dash-table th{
    padding:9px 9px;

    background:#f7f9fc;

    border-bottom:
        1px solid #e6ebf1;

    color:#53657d;

    font-size:9px;
    font-weight:750;

    text-align:left;

    white-space:nowrap;
}


#dslCrmGestorApp .crm-g-dash-table td{
    padding:9px;

    border-bottom:
        1px solid #edf1f5;

    color:#314862;

    white-space:nowrap;
}


#dslCrmGestorApp
.crm-g-dash-table
tbody tr:last-child td{
    border-bottom:0;
}


/* METAS */

#dslCrmGestorApp .crm-g-goals{
    display:grid;
    gap:15px;
}


#dslCrmGestorApp .crm-g-goal{
    display:grid;

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

    gap:9px;

    align-items:center;
}


#dslCrmGestorApp .crm-g-goal-icon{
    width:28px;
    height:28px;

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

    border-radius:8px;

    background:#edf6ff;

    color:#1584e9;

    font-size:13px;
    font-weight:800;
}


#dslCrmGestorApp .crm-g-goal-main{
    min-width:0;
}


#dslCrmGestorApp .crm-g-goal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:8px;

    margin-bottom:6px;
}


#dslCrmGestorApp .crm-g-goal-head strong{
    overflow:hidden;

    color:#253b57;

    font-size:10px;

    text-overflow:ellipsis;
    white-space:nowrap;
}


#dslCrmGestorApp .crm-g-goal-head span{
    color:#52647b;

    font-size:9px;

    white-space:nowrap;
}


#dslCrmGestorApp .crm-g-goal-track{
    height:7px;

    overflow:hidden;

    border-radius:999px;

    background:#dfe8f0;
}


#dslCrmGestorApp .crm-g-goal-track i{
    height:100%;

    display:block;

    border-radius:999px;

    background:#19b979;
}


#dslCrmGestorApp .crm-g-goal > b{
    color:#40536d;

    font-size:10px;

    text-align:right;
}


/* ÚLTIMO BLOCO */

#dslCrmGestorApp .crm-g-dash-bottom{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}


#dslCrmGestorApp
.crm-g-dash-bottom
.crm-g-dash-panel-body{
    min-height:100px;
}


/* EMPTY */

#dslCrmGestorApp .crm-g-dash-empty{
    min-height:150px;

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

    padding:16px;

    color:#667085;

    font-size:12px;

    text-align:center;
}


/* RESPONSIVO */

@media(max-width:1400px){

    #dslCrmGestorApp .crm-g-dash-kpis{
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media(max-width:1150px){

    #dslCrmGestorApp .crm-g-dash-charts{
        grid-template-columns:
            1fr 1fr;
    }


    #dslCrmGestorApp
    .crm-g-dash-charts
    .crm-g-dash-panel:last-child{
        grid-column:1 / -1;
    }


    #dslCrmGestorApp .crm-g-dash-management{
        grid-template-columns:1fr;
    }

}


@media(max-width:900px){

    #dslCrmGestorApp .crm-g-dash-kpis,
    #dslCrmGestorApp .crm-g-dash-charts{
        grid-template-columns:1fr;
    }


    #dslCrmGestorApp
    .crm-g-dash-charts
    .crm-g-dash-panel:last-child{
        grid-column:auto;
    }

}


@media(max-width:560px){

    #dslCrmGestorApp .crm-g-funnel-chart,
    #dslCrmGestorApp .crm-g-donut-layout{
        grid-template-columns:1fr;
    }


    #dslCrmGestorApp .crm-g-funnel-shape,
    #dslCrmGestorApp .crm-g-donut{
        margin-left:auto;
        margin-right:auto;
    }

}