/* ================================
   TT Design (Base / Light)
================================ */
:root {
    --tt-primary-100: #D4088C;
    --tt-secondary-100: #FFA41C;
    --tt-main-bg: #F5F7F9;
    --tt-sec-bg-1: #F5F7F9;
    --tt-header-primary-500: #45022E;
}
[color-scheme="dark"]{
    --tt-main-bg: var(--tt-bg-disabled);
    --tt-sec-bg-1: var(--tt-bg-disabled);
}
/* ====================  index ==================== */
.header__search-button {
    max-width: 260px;
}
@media (min-width: 768px) {
    .dropdown-menu-md-center.show {
        transform: translate3d(140px, 34.4px, 0px) !important;
    }
}
.sidebar__logo-area {
    justify-content: flex-start;
    gap: 14px;
}
.sts-chart-sec{
    border-radius: 16px;
    background-color: var(--tt-white);
    border: 1px solid var(--tt-border-normal);
    /* Card/Shadow */
    box-shadow: 0 1px 2px 0 rgba(84, 84, 89, 0.03);
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px;  */
}
.sts-chart-sec .stsc-div{
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 40%;
}
.sts-chart-sec .stsc-div .single-stats-widget__content{
    flex-direction: column;
    flex: 1 0 50%;
    padding: 20px;
}
.sts-chart-sec{
    display: flex;
}
.sts-chart-sec .chart-div{
    flex: 1;
    padding: 20px 20px;
}
.sts-chart-sec .stsc-div-row{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
}
.sts-chart-sec .stsc-div-row:not(:last-child){
    border-bottom:1px solid var(--tt-border-normal);
}

/* Subscriptions Section */
.sec-wrapper{
    border: 1px solid var(--tt-border-normal);
    border-radius: 16px;
    padding: 0;
    background-color: var(--tt-white);
}
.sec-wrapper__header{
    padding: 14px 22px;
    border-bottom: 1px solid var(--tt-border-normal);
}
.sec-wrapper__header .header-widget__title{
    font-size: 18px;
    line-height: 26px;
    font-weight: var(--tt-fw-medium);
    margin-bottom: 0;
}
.hd-wdg__title-sm{
    font-size: 16px !important;
}
.sec-wrapper__header .header-widget__desc{
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--tt-fw-regular);
    color: var(--tt-text-normal);
}
.sec-wrapper__body{
    padding: 20px 22px;
}
.sec-wrapper-stcs-list{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    --gap: 16px;
    gap: var(--gap);
}
.list-2{ --cols: 2;}
.list-3{ --cols: 3;}
.list-4{ --cols: 4}
.list-5{ --cols: 5;}
.list-6{ --cols: 6; --gap: 10px;}
.sec-wrapper-stcs-list .stcs-wdg__item{
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    overflow: hidden;
}
.sec-wrapper-stcs-list .widget__item{
    background-color: var(--tt-white);
    border: 1px solid var(--tt-border-normal);
    padding: 20px 20px;
}
.single-stats-widget__number{
    font-size: 26px;
    color: var(--tt-text-muted);
    margin: 2px 0;
}
.widget__item .single-stats-widget__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}
.widget__item .single-stats-widget__label{
    color: var(--tt-text-muted);
    font-weight: 500;
}
.single-stats-widget {
    position: relative;
}
.single-stats-widget__sm-label{
    font-size: 12px;
    line-height: 18px;
    font-weight: var(--tt-fw-regular);
    color: var(--tt-text-subdued);
    margin-right: 4px;
}
.status-toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    justify-content: center;
    flex-direction: row;
    margin-top: 30px; 
}
.status-toggle {
    border-radius: 7px;
    padding: 4px 10px 4px 12px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    border: 0px;
    color: var(--tt-text-muted);
}
.status-toggle__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-toggle--new .status-toggle__dot {
    background-color: var(--tt-green-100);
}
.status-toggle--pending .status-toggle__dot {
    background-color: var(--tt-yellow-100);
}
.status-toggle--ended .status-toggle__dot {
    background-color: var(--tt-red-100);
}
.status-toggle--canceled .status-toggle__dot {
    background-color: var(--tt-neutral-100);
}
.status-toggle.is-active {
    background-color: var(--tt-neutral-25);
    color: var(--tt-text-muted);
    font-weight: 500;
}
.status-toggle:not(.is-active):hover {
    background-color: var(--tt-neutral-25);
}
/* tooltip */
.js-tooltip-bubble {
    position: absolute;
    padding: 6px 14px;
    background: rgba(16, 15, 16, 0.70);
    backdrop-filter: blur(2px);
    color: #ffffff;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 9999;
    display: none;
}
[color-scheme="dark"] .js-tooltip-bubble {
    background: rgba(146, 146, 146, 0.1);
}
.sec__tabs{
    margin-bottom: 15px;
    gap: 8px;
}
.sec__tabs .nav-item .nav-link{
    border-radius: 9px;
    border: 1px solid var(--tt-border-normal);
    background: var(--tt-bg-disabled);
    color: var(--tt-text-muted);
}
.sec__tabs .nav-item .nav-link.active{
    background-color: var(--tt-neutral-700);
    color: var(--tt-white);
}
.stcs-tab-head{
    margin-bottom: 16px;
}
.stcs-tab-head .single-stats-widget__label {
    color: var(--tt-text-muted);
    font-weight: 500;
    font-size: 16px;
}
.stcs-tab-head .wdg__item-2{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
}
.stcs-tab-head .wdg__item-2 .stsc-crd-st2{
    display: flex;
    flex-direction: row;
    padding: 16px 5px;
    flex: 0 0 20%;
}
.stcs-tab-head .wdg__item-2 .wdg__item-head {
    background: #fff0;
    padding: 0;
}
.stcs-tab-head .wdg__item-2 .wdg__item-head .single-stats-widget{
    background: #fff0;
}
.stsc-crd-st2{
    display: flex;
    flex-direction: row;
    padding: 16px 5px;
}
.stsc-crd-st2__num {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1 0 50%;
}
.wdg__item-2 .wdg__item-head{
    border-bottom: 1px solid var(--tt-border-normal);
    background-color: var(--tt-bg-disabled);
}
.wdg__item-head .single-stats-widget__label{
    color: var(--tt-text-muted);
    font-weight: 500;
}
.stsc-crd-st2__num .single-stats-widget__number{
    font-size: 18px;
}
.stcs-wdg__item .single-stats-widget{
    padding: 16px 20px;
}

.chart-widget__list-group .chart-widget__list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}
.chart-widget__bubble-chart .bubble-primary {
    width: 50%;
}
.chart-widget__bubble-chart .bubble-warning {
    width: 30%;
}
.chart-widget__bubble-chart .bubble-info {
    width: 20%;
}
.chart-widget__bubble-chart {
    min-height: 190px;
}
.mrg--4{
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}
/* User Story (( --  Funnel Chart -- ))  || Index Page */
:root {
    --funnel-visit: var(--tt-primary-50);
    --funnel-view: var(--tt-green-50);
    --funnel-add:  var(--tt-aqua-50);
    --funnel-confirm: var(--tt-yellow-50);
    --funnel-buy: var(--tt-red-50);
    --text-main: #0e0217;
}
#funnelContainer {
    width: 100%;
    height: 300px;
    margin: auto;
}
.highcharts-figure {
    margin: 0;
}
/*  */
.wrpp-list__item .wrpp-list__item-start{
    flex: 1 0 30%;
}
.wrpp-list .wrpp-list__item{
    display: flex;
    border-radius: 10px;
    border: 1px solid var(--tt-border-normal);
    background: var(--tt-white);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    margin-left: 15px;
}
.wrpp-list .wrpp-list__item:not(:last-child){
    margin-bottom: 10px;
}
.wrpp-list .wrpp-list__item:nth-of-type(odd){
    background-color: var(--tt-bg-disabled);
}
.wrpp-list__item:hover{
    background-color: var(--tt-bg-disabled);
    border: 1px solid var(--tt-neutral-100);
}
.scroll-list {
    height: 300px;
    overflow-y: auto;
}
.wrpp-list__item-end{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 0 30%;
}
.single-stats-widget__title{
    font-size: 16px;
    color: var(--tt-text-loud);
    line-height: 35px;
    margin: 0;
}
.wrpp-list__item-end_wdg{
    flex: 0 0 45%;
}
.wrpp-list__item-end_wdg .single-stats-widget__label{
    font-size: 14px;
    font-style: normal;
    line-height: 20px;
    font-weight: var(--tt-fw-regular);
    color: var(--tt-text-subdued);
    margin-bottom: 3px;
}
.wrpp-list__item-end_wdg h5{
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.wrpp-list__item-end_wdg .single-stats-widget__text{
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}
.wrpp-list__item-end_wdg .single-stats-widget__text .single-stats-widget__number{
    font-size: 16px;
    color: var(--tt-text-loud);
}
.chart-widget__list-group.mp-list .chart-widget__list-item {
    padding: 9px 12px;
}
.sec-wrapper.gr-bg{
    background-color: var(--tt-neutral-25);
}
.crd-n-crd .no-border {
    border-bottom: 0;
}
.crd-n-crd .main-stats-widget__header-end-area {
    background: var(--tt-bg-white);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid var(--tt-border-normal);
}
.btn-toggle.is-active {
    color: var(--tt-text-muted);
    background-color: var(--tt-bg-normal);
    border: 1px solid var(--tt-border-normal);
}
 /*  = */
.res-wrapper .sec-wrapper__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.res-wrapper .tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
}
.res-wrapper .tabs__btn {
    border: none;
    background: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--tt-text-muted);
    font-weight: 500;
    transition: 0.15s ease-in-out;
}
.res-wrapper .tabs__btn.is-active {
    background-color: var(--tt-chip-active-bg);
    color: var(--tt-chip-active-text);
}
.res-wrapper .filters {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background-color: var(--tt-card-bg);
    border: 1px solid var(--tt-chip-border);
}
.res-wrapper .filters__btn {
    border: none;
    background: none;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--tt-text-muted);
    font-weight: 500;
    transition: 0.15s ease-in-out;
}
/* Left card: reasons list */
.res-wrapper .reasons-card {
    border-radius: 14px;
    border: 1px solid var(--tt-border-subtle);
    padding: 14px 16px 12px;
}
.res-wrapper .reasons-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.res-wrapper .reasons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.res-wrapper .reasons-list__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 6px;
    border-radius: 10px;
}
.res-wrapper .reasons-list__item:nth-child(odd) {
    background-color: #fafbff;
}
.res-wrapper .reason-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4ff;
    font-size: 11px;
    color: var(--tt-text-muted);
}
.res-wrapper .reason-badge__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.res-wrapper .reason-content {
    min-width: 0;
}
.res-wrapper .reason-title {
    font-size: 13px;
    font-weight: 600;
}

.res-wrapper .reason-meta {
    font-size: 11px;
    color: var(--tt-text-muted);
}
.res-wrapper .reason-value {
    text-align: left;
}
.res-wrapper .reason-value__count {
    display: block;
    font-size: 15px;
    font-weight: 700;
}
.res-wrapper .reason-value__sub {
    display: block;
    font-size: 11px;
    color: var(--tt-text-muted);
}
/* Right card: chart */
.res-wrapper .chart-card {
    border-radius: 14px;
    border: 1px solid var(--tt-border-subtle);
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.res-wrapper .chart-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.res-wrapper .chart-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.res-wrapper .chart-widget__doughnut-chart canvas {
    width: 100% !important;
    height: auto !important;
}
.res-wrapper .chart-widget__chart-title {
    font-size: 13px;
    color: var(--tt-text-muted);
    margin: 0 0 4px;
}
.res-wrapper .chart-widget__chart-number {
    font-size: 24px;
    font-weight: 700;
}
.res-wrapper .chart-legend {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    --gap: 10px;
    gap: var(--gap);
    --cols: 2;
    margin: 0;
    padding: 0;
}
.res-wrapper .chart-legend__item {
    display: flex;
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    font-size: 13px;
    color: var(--tt-text-muted);
    line-height: 20px;
    font-weight: var(--tt-fw-regular);
}
.res-wrapper .chart-legend__color {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.tabs__btn, .filters__btn{
    color: var(--tt-text-subdued);
}
.tabs__btn.is-active, .filters__btn.is-active{
    color: var(--tt-text-loud);
    background-color: var(--tt-bg-normal);
    border: 1px solid var(--tt-border-normal);
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}
.reasons-sec .reasons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.reasons-sec .reasons-list__item:nth-child(odd) {
    background-color: #fafbff;
}
.reasons-sec .reasons-list__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 6px;
    border-radius: 10px;
}
.chart-100{
    width: 100%;
    max-width: 100%;
    height: 180px !important;
}
.res-wrapper .chart-widget__doughnut-chart.chart-100 canvas {
    min-width: 490px !important;
    height: 180px !important;
}
/* ====== Reasons list  ====== */
.reasons-sec .reasons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.reasons-sec .reasons-list__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 5px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 3px;
}
.reasons-sec .reasons-list__item:nth-child(odd) {
    background-color: var(--tt-neutral-25);
}
.reasons-sec .reason-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 11px;
    color: var(--tt-text-muted);
    padding-top: 2px;
}
.reasons-sec .reason-badge__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.reasons-sec .reason-content {
    min-width: 0;
}
.reasons-sec .reason-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--tt-text-loud);
}
.reasons-sec .reason-meta {
    font-size: 11px;
    color: var(--tt-text-muted);
}
.reasons-sec .reason-value {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
    text-align: left;;
}
.reasons-sec .reason-percentage {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 15px;
    width: 60px;
    justify-content: flex-end;
}
.reasons-sec .reason-value__percent {
    font-size: 13px;
    font-weight: 500;
    color: var(--tt-text-loud); 
}
.reasons-sec .reason-value__count {
    font-size: 13px;
    color: var(--tt-text-subdued);
    font-weight: 400;
}
.reasons-sec .reason-value__count::before {
    content: "(";
}
.reasons-sec .reason-value__count::after {
    content: ")";
}
.reasons-sec .reason-change {
    font-size: 12px;
}
.reasons-sec .reason-change__value {
    font-weight: 600;
}
.reasons-sec .reason-change--up .reason-change__value {
    color: var(--tt-green-100);
}
.reasons-sec .reason-change--down .reason-change__value {
    color: var(--tt-red-100);
}
.reasons-sec .reason-change--neutral .reason-change__value {
    color: var(--tt-text-muted);
}
.p-note{
    border-radius: 5px;
    padding: 8px 10px;
    background-color: var(--tt-neutral-25);
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.p-note p{
    font-size: 13px;
    margin: 0;
    color: var(--tt-text-loud);
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}
.p-note span{
    color: var(--tt-primary-100);
}
[color-scheme="dark"] .highcharts-figure text{
    fill: #ffffff !important;
}