/*
Template Version: 1.0
Author: Mehrnoush Mani
email : m.mani62@gmail.com
*/

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
    font-family: yekan, 'Open Sans', sans-serif;
}
.red-star{
    color: #ff0000;
    font-size: 17px;
    margin-right: 10px;
}
select.form-control{
    height: auto;
    padding: 0px 12px;
}
/*pagination*/
.paging{
    margin:10px;
    height:40px;
}
.paging-num {
    float: left;
    margin: 8px 4px;
    text-align: center;
    width:25px;
    height:25px;
    background: #41cac0;
    border-radius:5px;
}
a .paging-num {
    color:#fff;
    padding:3px;
}
.paging-num:hover,.paging-num:active,.paging-num:visited,.current{
    background:#39b2a9;
    color:#fff;
    border-radius:5px;
    cursor:pointer;
}
.stepy-titles li.current-step div , .stepy-titles li div{
    width: 50px;
    height: 50px;
    line-height: 50px;
}
.form-control.has-error {
    border-color:#b94a48;
    -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)
}
.form-control.has-error:focus{
    border-color:#953b39;
    -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;
    box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392
}
.register-form .bio-graph-heading{
    padding: 20px 110px;
}
.dashboard-chart .custom-bar-chart .bar{
    width: 8.5%;
}
.wizard .liability.nav-tabs > li {
    width: 16%;
}
ul.sidebar-menu li ul.sub li a {
    padding: 0 10px 0 10px;
}
.state-overview .symbol {
    padding: 60px 15px;
}
/* dashboard summary cards: percentage value must render as one non-wrapping "5%" */
.value-percent {
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}
/* dashboard summary cards: shared readable text color for all four value areas */
.state-overview .dashboard-summary-card .value,
.state-overview .dashboard-summary-card .value h1,
.state-overview .dashboard-summary-card .value p {
    color: #2c2c2c;
}
/* dashboard summary cards: lift the value+label block slightly so its visual
   center aligns with the card center (base template adds 21px top padding;
   the centered flex block therefore sits a few px low without this offset) */
.state-overview .dashboard-simple-summary-card .value {
    transform: translateY(-10px);
}
/* archive table control column: keep icon buttons on one line, no overflow */
table.tree td.col-control,
table.tree th.col-control {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    overflow: visible;
}
/* center all archive table headers (horizontal + vertical) */
table.tree thead th {
    text-align: center;
    vertical-align: middle;
}
/* vertically center table body cells to match headers */
table.tree tbody td {
    vertical-align: middle;
}
.col-control .ctrl-btn {
    display: inline-block;
    margin: 0 1px;
    padding: 1px 6px;
    vertical-align: middle;
}
.col-control .ctrl-btn i {
    vertical-align: middle;
}
/* keep form labels aligned right next to their inputs.
   Only applies to forms tagged with the .labeled-form class (added per-form),
   so the insurance wizard and other bootstrap grids are never touched. */
form.labeled-form .form-group {
    margin-bottom: 12px;
    display: table;
    width: 100%;
    table-layout: fixed;
}
form.labeled-form .form-group:after,
form.labeled-form .form-group:before {
    display: none !important;
}
form.labeled-form .form-group > .control-label {
    display: table-cell !important;
    float: none !important;
    width: 180px;
    /* vertical-align: middle; */
    margin: 0;
    padding-right: 0;
    padding-left: 10px;
    text-align: left !important;
    direction: ltr !important;
}
form.labeled-form .form-group > div[class*="col-"] {
    display: table-cell !important;
    float: none !important;
    width: auto;
    vertical-align: middle;
    padding: 0;
}

/* user avatar inside the top-right user menu */
.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    vertical-align: middle;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.user-card {
    text-align: center;
    padding: 12px 10px 6px;
}
.user-card .user-card-avatar {
    margin-bottom: 6px;
}
.user-card .user-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.user-card .user-card-info .user-card-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.dropdown-menu .divider {
    margin: 4px 0;
}
.dropdown-menu.extended.inbox {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
}
.mark-all-read {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    text-align: right;
    border-top: 1px solid #eef1f4;
    position: sticky;
    bottom: 0;
    background: #f5f8fa;
    z-index: 2;
    transition: background .15s ease, color .15s ease;
}
.mark-all-read:hover {
    background: #41cac0;
    color: #fff;
    text-decoration: none;
}
.mark-all-read i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    background: #41cac0;
    color: #fff;
    font-size: 11px;
    vertical-align: middle;
    transition: background .15s ease;
}
.mark-all-read:hover i {
    background: #fff;
    color: #41cac0;
}

/* ===== Level progress / gamification widget ===== */
.level-widget { margin: -7px; }
.level-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 6px;
    padding: 15px;
    margin: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
.lc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.lc-name { font-weight: 700; color: #333; font-size: 14px; }
.lc-badge {
    background: #f0f2f5;
    color: #555;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.lc-percent {
    font-size: 24px;
    font-weight: 700;
    color: #4cae4c;
    line-height: 1.1;
    margin-bottom: 10px;
}
.lc-percent small {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}
.lc-progress { height: 10px; margin-bottom: 8px; background: #f0f0f0; border-radius: 6px; }
.lc-progress .progress-bar { background: #4cae4c; border-radius: 6px; }
.lc-foot { font-size: 12px; color: #666; line-height: 1.5; }
.lc-foot b { color: #333; }
.lvl-dist .dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}
.lvl-dist .dist-lbl { width: 42px; color: #555; }
.lvl-dist .progress { flex: 1; height: 8px; margin: 0; background: #f0f0f0; border-radius: 5px; }
.lvl-dist .progress .progress-bar { background: #41cac0; border-radius: 5px; }
.lvl-dist .dist-cnt { width: 52px; text-align: left; color: #777; }

/* ===== Top sellers / leaderboard widget ===== */
.leader-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 6px;
    padding: 15px;
    margin: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.leader-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
.leader-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rank;
}
.leader-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}
.leader-list li:last-child { border-bottom: none; }
.leader-list li.empty {
    color: #999;
    justify-content: center;
    font-size: 12px;
}
.leader-list .rank {
    flex: 0 0 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #f0f2f5;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}
.leader-list .rank-1 { background: #f1c40f; color: #fff; }
.leader-list .rank-2 { background: #95a5a6; color: #fff; }
.leader-list .rank-3 { background: #cd7f32; color: #fff; }
.leader-list .lname { flex: 1; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-list .lamt { color: #4cae4c; font-weight: 700; white-space: nowrap; }
/* ===== Archive sood (profit) column ===== */
td.green { color: #28a745; font-weight: 700; }
td.red   { color: #dc3545; font-weight: 700; }

/* ===== Annual income chart: title + Jalali year dropdown ===== */
.income-chart-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 10px;
}
.income-chart-head h3 {
    margin: 0;
}
.year-select {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    min-width: 78px;
    height: auto;
    padding: 1px 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #333;
    background: #f6f8fa;
    border: 1px solid #d0d5db;
    border-radius: 6px;
    line-height: 1.4;
    direction: rtl;
    cursor: pointer;
}
.year-select:focus {
    outline: none;
    border-color: #41cac0;
    box-shadow: 0 0 0 2px rgba(65,202,192,.15);
}

/* ===== Dashboard composition panels (direct sale / downline income) ===== */
.composition-panel {
    margin-bottom: 20px;
    border: 1px solid #edf0f2;
    border-radius: 6px;
    overflow: hidden;
}
.composition-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 15px;
    background: #f7f9fa;
    border-bottom: 1px solid #edf0f2;
}
.composition-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}
.composition-total {
    font-weight: 700;
    font-size: 14px;
    color: #4cae4c;
    white-space: nowrap;
}
.composition-share {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}
.composition-share b {
    color: #333;
}
.composition-empty {
    padding: 18px 10px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.composition-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.composition-list li {
    margin-bottom: 10px;
}
.composition-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-bottom: 4px;
    font-size: 13px;
}
.composition-label {
    flex: 1 1 55%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.composition-value {
    white-space: nowrap;
    font-weight: 600;
    color: #333;
}
.composition-bar {
    height: 8px;
    margin: 0;
    background: #f0f0f0;
    border-radius: 5px;
}
.composition-bar .progress-bar {
    border-radius: 5px;
}
.composition-bar .progress-bar-success { background: #4cae4c; }
.composition-bar .progress-bar-warning { background: #f0ad4e; }

/* ===== KPI Card refinements ===== */
.kpi-card {
    border: 1px solid #edf0f2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    margin: 0;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.kpi-card .symbol {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 70px;
    border-radius: 8px 0 0 8px;
}
.kpi-card .symbol i {
    font-size: 28px;
    color: #fff;
}
.kpi-card .value {
    padding: 15px;
    text-align: center;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.kpi-card .value h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
}
.kpi-card .value p {
    margin: 0;
    font-size: 12px;
    color: #666;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Make KPI row a flex container with stretch alignment */
.state-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 16px;
}

/* Make column wrappers stretch to equal height */
.state-overview .dashboard-summary-card,
.state-overview .dashboard-simple-summary-card {
    display: flex;
    height: 100%;
}

/* ===== Composition panel visual refinements ===== */
.composition-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.composition-bar-wrap .progress {
    flex: 1;
    height: 10px;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
}
.composition-bar-wrap .progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width .3s ease;
}
.composition-pct {
    flex: 0 0 48px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.composition-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-bottom: 4px;
    font-size: 13px;
}
.composition-label {
    flex: 1 1 55%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.composition-value {
    white-space: nowrap;
    font-weight: 600;
    color: #333;
}

/* Color indicator dot for composition rows */
.color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    background: var(--type-color, #64748b);
}

/* ===== Compact zero-state ===== */
.composition-empty {
    padding: 12px 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* ===== Responsive improvements ===== */
@media (max-width: 768px) {
    .state-overview .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .kpi-card .symbol {
        padding: 15px 10px;
    }
    .kpi-card .symbol i {
        font-size: 24px;
    }
    .kpi-card .value h1 {
        font-size: 20px;
    }
    .composition-bar-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .composition-pct {
        text-align: right;
        flex: none;
    }
}

@media (max-width: 480px) {
    .state-overview .col-lg-3,
    .state-overview .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .composition-panel {
        margin-bottom: 12px;
    }
    .composition-list li {
        margin-bottom: 8px;
    }
    .composition-row {
        font-size: 12px;
    }
    .composition-bar-wrap .progress {
        height: 8px;
    }
}

/* ===== Insurance type color indicators ===== */
/* The color dot is set inline via style attribute on composition-label::before */
