/* Chart blocks must not be clipped — let them size to their content. */
.block_33{
    max-height: none;
    overflow: visible;
}

/******************** headline charts (ApexCharts) ********************/
.widget-block.widget-graph{
    padding: 1.2em;
}
.widget-block.widget-graph h4{
    color:#fff;
    text-align:center;
    margin-bottom:.6em;
}
.widget-block.widget-graph h4 span{
    display:block;
    color:#888;
    font-size:.7em;
    font-weight:400;
    margin-top:.3em;
}
.canvas-chart{
    min-height: 320px;
}

/* Readable tooltips on the dark theme (override Apex's light-grey default). */
.canvas-chart .apexcharts-tooltip,
.canvas-chart .apexcharts-tooltip.apexcharts-theme-dark,
.canvas-chart .apexcharts-tooltip.apexcharts-theme-light{
    background:#1a1a1a !important;
    color:#fff !important;
    border:1px solid #be00a7 !important;
    box-shadow:0 2px 8px rgba(0,0,0,.6) !important;
}
.canvas-chart .apexcharts-tooltip-title{
    background:#000 !important;
    color:#fff !important;
    border-bottom:1px solid #be00a7 !important;
    font-weight:600;
}
.canvas-chart .apexcharts-tooltip-text,
.canvas-chart .apexcharts-tooltip-text-y-label,
.canvas-chart .apexcharts-tooltip-text-y-value{
    color:#fff !important;
}
/* Donut/pie hover tooltip */
.canvas-chart .apexcharts-tooltip.apexcharts-active{
    opacity:1 !important;
}

/******************** title line ********************/
.content-header{
    position: relative;
    color: #aaa;
    padding: 1.4em;
}

#main__content .main-wrapper .content-header h3 {

}



/*---------------------------------------------------------------------------------------------------------------------
                                                    WORLD MAP
---------------------------------------------------------------------------------------------------------------------*/
#worldmap {
    position: relative;
}
#worldmap .content-header p:after {
    content:    '';
    display:    block;
    width:      9em;
    height:     1px;
    margin:     1.5em auto 0 auto;
    background: #3e3e3e;
}

#worldmap-container{
    position:       relative;
    height:         57em;
    margin-top:     1em;
    padding-bottom: 0 !important;
}
#worldmap-container svg{
    background:     #303030;
}

#worldmap-legend{
    position: absolute;
    bottom: 2em;
    left: 2em;
    background-color: #2c2c2c;
    background-color: rgba(40,40,40,.6);
    padding: 1.5em;
}

#worldmap-legend h6{
    color:#fff;
}

#worldmap-legend p,
#worldmap-legend li {
    color:#777777;
    font-size: 1em;
}
    #worldmap-legend p{
        text-align: center;
    }
    #worldmap-legend ul{
        padding-top: 1em;
    }
        #worldmap-legend ul li{
            position: relative;
            padding:1em;
            padding-left:3em;
        }
        #worldmap-legend ul li:after{
            content:'';
            display: block;
            height: 2em;
            width: 2em;
            position: absolute;
            top: .5em;
            left: 0;
            background-color: #be00a7;
            border-radius: 5em;
        }
        #worldmap-legend ul li+li:after{
            background-color: #ce3fbc;
        }
        #worldmap-legend ul li+li+li:after{
            background-color: #de7fd2;
        }
        #worldmap-legend ul li+li+li+li:after{
            background-color: #eebfe9;
        }

/* rollover popup color*/
.datamaps-hoverover{
    color: #000;
}



/*---------------------------------------------------------------------------------------------------------------------
                                                    MOST POPULAR HARDWARE
---------------------------------------------------------------------------------------------------------------------*/
#main__content .mph h2 {
    font-size:  3em;
    padding:    0;
}
#main__content .main-wrapper .mph .content-header  h2:after{
    display: none;
}

/* Global "Show Top 10 / 5" button — far right of the MPH title */
.mph .content-header{
    position: relative;
}
.mph-global-btn{
    position: absolute;
    top: 50%;
    right: 1.6em;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: .6em;
    background: #be00a7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .7em 1.3em;
    font-size: 1.25em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.mph-global-btn:after{
    content: '';
    width: 0;
    height: 0;
    border-left: .42em solid transparent;
    border-right: .42em solid transparent;
    border-top: .5em solid #fff;
    transition: transform .2s ease;
}
.mph-global-btn[data-expanded="1"]:after{
    transform: rotate(180deg);
}
.mph-global-btn:hover{
    background: #d416bd;
}
.mph-global-btn:active{
    transform: translateY(-50%) scale(.97);
}
@media (max-width: 860px){
    .mph-global-btn{
        position: static;
        transform: none;
        margin: 1em auto 0;
    }
    .mph-global-btn:active{ transform: scale(.97); }
}

/*---------------------------------------------------------------------------------------------------------------------
                                            MOST POPULAR HARDWARE — card grid
---------------------------------------------------------------------------------------------------------------------*/
.mph-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4em;
    padding: 1.4em 1.6em 2em;
}
@media (max-width: 1200px){ .mph-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px){  .mph-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){  .mph-grid{ grid-template-columns: 1fr; } }

.mph-card{
    background: #232323;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.3em 1.4em 1.1em;
    transition: border-color .2s ease, transform .2s ease;
}
.mph-card:hover{
    border-color: #5a2a55;
    transform: translateY(-2px);
}

.mph-card__head{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8em;
    margin: 0 0 1em;
    padding-bottom: .55em;
    border-bottom: 1px solid #383838;
}
.mph-card__head:after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.6em;
    height: 2px;
    background: #be00a7;
}
.mph-card__head h5{
    margin: 0;
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
}

/* Top-right expand/collapse chevron */
.mph-show{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    padding: 0;
    background: #8e007e;
    border: 1px solid #8e007e;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.mph-show svg{
    width: .8em;
    height: .8em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 150ms ease;
}
.mph-show:hover{ background: #a8008f; border-color: #a8008f; }
.mph-card.show-all .mph-show svg{ transform: rotate(180deg); }

/* Collapsed by default: hide rows past the 5th until the card is expanded. */
.mph-list .mph-row:nth-child(n+6){ display: none; }
.mph-card.show-all .mph-list .mph-row:nth-child(n+6){ display: flex; }

.mph-list{
    list-style: none;
    margin: 0;
    padding: 0;
}

.mph-row{
    display: flex;
    align-items: center;
    gap: .8em;
    padding: .5em 0;
}

.mph-rank{
    flex: 0 0 auto;
    width: 1.9em;
    height: 1.9em;
    line-height: 1.9em;
    text-align: center;
    border-radius: 50%;
    background: #1b1b1b;
    color: #888;
    font-size: 1.05em;
    font-weight: 700;
}
.mph-row--top .mph-rank{
    background: #be00a7;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(190,0,167,.18);
}

.mph-main{
    flex: 1 1 auto;
    min-width: 0;
}
.mph-line{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6em;
    margin-bottom: .35em;
}
.mph-label{
    color: #ddd;
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mph-row--top .mph-label{
    color: #fff;
    font-weight: 600;
}
.mph-ratio{
    flex: 0 0 auto;
    color: #cfcfcf;
    font-size: 1.15em;
    font-weight: 600;
}

.mph-bar{
    height: 5px;
    background: #161616;
    border-radius: 3px;
    overflow: hidden;
}
.mph-bar__fill{
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6f0c63, #a01b8e);
}
.mph-row--top .mph-bar__fill{
    background: linear-gradient(90deg, #be00a7, #ff45d4);
}

.mph-change{
    flex: 0 0 auto;
    min-width: 4.2em;
    text-align: right;
    font-size: 1.05em;
    font-weight: 600;
}
.mph-change.noun{ color: #3ddc6d; }
.mph-change.minus{ color: #f6113c; }
.mph-change.na{ color: #5e5e5e; font-weight: 400; }

/*---------------------------------------------------------------------------------------------------------------------
                                                    TABLE STYLE (legacy, unused)
---------------------------------------------------------------------------------------------------------------------*/
.th
{
    color: #fff;
    width: 100%;
    font-size: 1.5em;
    text-align: center;
    /******************** gradient ********************/
    background: rgb(59,59,59);
    background: -webkit-linear-gradient(top, rgba(59,59,59,1) 0%,rgba(48,48,48,1) 100%);
    background: -ms-linear-gradient(top, rgba(59,59,59,1) 0%,rgba(48,48,48,1) 100%);
    background: linear-gradient(to bottom, rgba(59,59,59,1) 0%,rgba(48,48,48,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3b3b3b', endColorstr='#303030',GradientType=0 );
    /******************** box shadow ********************/
    -webkit-box-shadow: 0px -2px 5px 0px #222, 0px 2px 5px 0px #222;
    box-shadow: 0px -2px 5px 0px #222, 0px 2px 5px 0px #222;
}


.table.item__main-table .cell{
    padding: .1em 0;
}

.table.item__details{
    display: none;
}

.item.open .table.item__details{
    display: table;
}

.table.th .cell{
    padding: .6em;
}

.table.th .cell + .cell{
    position: relative;
    color: #aeaeae;
    font-size: 1.2em;
}
/* exclude the first twice th cell */
.table.th .cell + .cell + .cell:before{
    content:'';
    display: block;
    height: 60%;
    width: 1px;
    font-size : 1.4em;
    background-color: #4c4c4c;
    position: absolute;
    left: 0;
    top: 20%;
}

.table{
    display: table;
    width: 100%;
    background-color: #252525;
}

.row{
    display: table-row;
}

.cell{
    display: table-cell;
    padding: 0.6em;
    font-size: 1.2em;
    font-weight: bold;
    border-top:1px dotted #3e3e3e;
    width: 20%;
    vertical-align: middle;
    text-align: center;
}

.cell + .cell{
    font-weight: inherit;
    width: 80%;
    text-align: center;
    color:#777;
    font-size: 1.2em;
}

/*---------------------------------------------------------------------------------------------------------------------
                                                    TABLE CELL SIZE
---------------------------------------------------------------------------------------------------------------------*/
.cell.cell1{
    width: 4%;
}
/* 4 cell */
.cell.cell2{
    width: 10%;
    color: #aaa;
    font-size : 1.5em;
}

.cell.cell3{
    width: 33%;
}

/*
    green #87e007
    red #f6113c
    purple #de13c5
*/

/*---------------------------------------------------------------------------------------------------------------------
                                                    TABLE CELL COLOR
---------------------------------------------------------------------------------------------------------------------*/
.table .row .cell.even{
    background-color: #252525;
}

.table .row .cell.odd{
    background-color: #272727;
}

.item__details.table .row .cell.even{
    background-color: #1f1f1f;
}

.item__details.table .row .cell.odd{
    background-color: #252525;
}


/*---------------------------------------------------------------------------------------------------------------------
                                                    TABLE CELL STYLE
---------------------------------------------------------------------------------------------------------------------*/
/******************** common ********************/
.noun{
    color: #87e007;
}

.minus{
    color: #f6113c;
}

/******************** main table ********************/
.item__main-table .cell.type .container{
    color: #de13c5;
    text-align: left;
    font-size : 1.4em;
    padding-left: 1em;
}

.item__main-table .cell.type .container,
.item__main-table .cell.details .container{
    position: relative;
    color: #bbb;
}

.item__main-table .cell.details .container:before{
    content:'+DETAILS';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    top:-.4em;
    left:0;
    text-align: center;
}

.item__main-table  .cell.label{
    color:#fff;
    font-size: 1.4em;
    font-weight: bold;
    text-align: left;
    padding-left: 1em;
}

.item__main-table .linecount .container{
    display: block;
    width: 2.5em;
    height: 3em;
    background-color: #EEE;
    background-image: url(../images/icon-eye-statistics.svg);
    background-repeat: no-repeat;
    background-size: 70% auto;
    background-position: center -35%;
    margin-left: .5em;
}


.item__details{
    color:#999;
}

.item__details .cell.label .container{
    text-align: left;
    color:#fff;
    font-weight: bold;
}

/*---------------------------------------------------------------------------------------------------------------------
                                                    OPEN
---------------------------------------------------------------------------------------------------------------------*/
.item.open .item__main-table.table .row .cell.even,
.item.open .item__main-table.table .row .cell.odd
{
    background-color: #1f1f1f;
}

.item.open .item__main-table.table .label .container,
.item.open .item__main-table.table .ratio .container,
.item.open .item__main-table.table .change .container{
    visibility: hidden;
}

.item.open .item__main-table .cell.type .container,
.item.open .item__main-table .cell.details .container{
    color: #aeaeae;
}

.item.open .item__main-table .cell.type .container{
    text-align: left;
    font-weight: 500;
    color: #de13c5;
}

.item.open .item__main-table .cell.details .container:before{
    content:'✗ CLOSE';
}

.item.open .item__main-table .linecount .container{
    background-position: center 135%;
    background-color: transparent;
}
