body {
    background-color: #f4f6f9;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.navbar-default {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.navbar-default .navbar-brand {
    color: #777;
    font-weight: 600;
    font-size: 17px;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #5e5e5e;
    background-color: transparent;
}

.navbar-default .navbar-nav > li > a {
    color: #777;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #333;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #555;
    background-color: #e7e7e7;
}

.navbar-default .navbar-toggle {
    border-color: #ddd;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #ddd;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}

.navbar-collapse {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.navbar-collapse.collapsing {
    -webkit-transition: height 0.22s ease !important;
    transition: height 0.22s ease !important;
    will-change: height;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.navbar-default .navbar-nav > li > a .badge {
    background-color: #337ab7;
    color: #fff;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 10px;
    vertical-align: middle;
}

.form-control {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    height: 34px;
    color: #555;
    background-color: #fff;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

.btn-success {
    background-color: #5cb85c;
    border-color: #4cae4c;
}


.badge-status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    color: #fff;
    text-transform: capitalize;
}

.badge-pending     { background-color: #f0ad4e; }
.badge-processing  { background-color: #5bc0de; }
.badge-in_progress { background-color: #337ab7; }
.badge-completed   { background-color: #5cb85c; }
.badge-partial     { background-color: #9b59b6; }
.badge-cancelled,
.badge-canceled    { background-color: #d9534f; }
.badge-refunded    { background-color: #e67e22; }
.badge-failed,
.badge-rejected,
.badge-expired     { background-color: #c0392b; }
.badge-active      { background-color: #5cb85c; }

.table > thead > tr > th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: .3px;
}

.table > tbody > tr > td { vertical-align: middle; }
.table-hover > tbody > tr:hover { background-color: #f8f9fa; }

.link-cell {
    min-width: 220px;
    max-width: 300px;
    word-break: break-all;
    white-space: normal;
}

.link-cell a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-style: dashed;
    opacity: 0.85;
}

#notify-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}


[dir="rtl"] #notify-wrapper { right: auto; left: 20px; }
[dir="rtl"] .pull-right      { float: left !important; }
[dir="rtl"] .navbar-right    { float: left !important; }
[dir="rtl"] .text-right      { text-align: left !important; }

.navbar-icon {
    margin-right: 5px;
    font-size: 13px;
    opacity: .85;
}

.services-page {
    padding-top: 20px;
    padding-bottom: 40px;
}

.services-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.services-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.services-cat-select-wrap {
    min-width: 200px;
    width: 260px;
    flex-shrink: 0;
}

.services-cat-select-wrap .select2-container,
.services-currency-select-wrap .select2-container {
    width: 100% !important;
    min-width: 0 !important;
}

.services-currency-select-wrap {
    min-width: 110px;
    width: 140px;
    flex-shrink: 0;
}

.services-search-wrap {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .services-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .services-toolbar-left {
        flex-wrap: wrap;
    }

    .services-cat-select-wrap,
    .services-currency-select-wrap,
    .services-search-wrap {
        width: 100%;
    }
}

.services-panel {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    margin-bottom: 0;
}

.services-table .col-id      { width: 100px; white-space: nowrap; }
.services-table .col-rate    { width: 130px; white-space: nowrap; }
.services-table .col-minmax  { width: 110px; white-space: nowrap; color: #555; }
.services-table .col-avgtime { width: 140px; white-space: nowrap; color: #555; }
.services-table .col-desc    { font-size: 12px; color: #666; line-height: 1.5; white-space: nowrap; }
.svc-desc-content { white-space: pre-wrap; word-break: break-word; margin: 0; font-size: 13px; line-height: 1.6; }

.services-table > tbody > tr.svc-row > td {
    vertical-align: middle;
    padding: 9px 12px;
    border-top: 1px solid #f0f0f0;
}

.services-table > tbody > tr.svc-row:hover > td {
    background-color: #fafbfc;
}

.svc-cat-header > td {
    background-color: #f4f6f9 !important;
    font-size: 13px;
    color: #444;
    padding: 8px 12px !important;
    border-top: 2px solid #dde2e8 !important;
    line-height: 1.4;
}

.svc-cat-header td i {
    margin-right: 5px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

.svc-star {
    display: inline-block;
    cursor: pointer;
    margin-right: 6px;
    color: #ccc;
    font-size: 13px;
    vertical-align: middle;
    transition: color .15s;
}

.svc-star:hover         { color: #f0ad4e; }
.svc-star.active        { color: #f0ad4e; }

.svc-star-guest {
    display: inline-block;
    margin-right: 6px;
    color: #e0e0e0;
    font-size: 13px;
    vertical-align: middle;
    cursor: default;
}

.svc-avgtime-icon {
    margin-left: 4px;
    color: #bbb;
    cursor: help;
    font-size: 11px;
}


.svc-empty {
    padding: 40px 0;
    font-size: 14px;
}

.services-page-content {
    margin-top: 24px;
}


.navbar-signout-form   { display: inline; }
.navbar-signout-btn    { padding: 15px; color: #777; text-decoration: none; }
.navbar-signout-btn:hover { color: #333; background: none; }

.currencies-dropdown   { min-width: 130px; max-height: 280px; overflow-y: auto; }

.svc-cat-emoji { font-size: 15px; vertical-align: middle; margin-right: 5px; }
.svc-cat-img   { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; margin-right: 5px; }

.services-table tr.svc-row.svc-hidden,
.services-table tr.svc-cat-header.svc-hidden { display: none !important; }

@media (max-width: 767px) {


    .services-panel,
    .services-panel .table-responsive {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .services-table          { display: block !important; width: 100% !important; background: transparent !important; }
    .services-table thead    { display: none !important; }
    .services-table tbody    { display: block !important; background: transparent !important; }
    .services-table tr       { display: block !important; }
    .services-table td       { display: block !important; box-sizing: border-box !important; width: 100% !important; }

    .services-table tr.svc-cat-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        display: block !important;
        margin-top: 16px !important;
        margin-bottom: 10px !important;
    }

    .services-table tr.svc-cat-header:first-child {
        margin-top: 0 !important;
    }

    .services-table tr.svc-cat-header td {
        background: #eef3fa !important;
        border: none !important;
        border-left: 4px solid #337ab7 !important;
        border-radius: 4px !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #337ab7 !important;
        text-transform: uppercase !important;
        letter-spacing: .6px !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .services-table tr.svc-cat-header td i,
    .services-table tr.svc-cat-header td .svc-cat-emoji,
    .services-table tr.svc-cat-header td .svc-cat-img {
        color: #337ab7 !important;
    }

    .services-table tr.svc-row {
        background: #fff !important;
        border: 1px solid #e4e8ed !important;
        border-top: 3px solid #337ab7 !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
        overflow: hidden !important;
    }

    .services-table tr.svc-row td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        padding: 7px 14px !important;
        white-space: normal !important;
        background: transparent !important;
        vertical-align: top !important;
    }

    .services-table tr.svc-row td:last-child {
        border-bottom: none !important;
        padding-bottom: 14px !important;
    }

    .services-table tr.svc-row td.col-id {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 8px 14px 4px !important;
        font-size: 12px !important;
        color: #bbb !important;
        border-bottom: none !important;
    }

    .services-table tr.svc-row td:nth-child(2) {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #222 !important;
        padding: 2px 14px 10px !important;
        border-bottom: 1px solid #eee !important;
    }

    .services-table tr.svc-row td.col-rate::before,
    .services-table tr.svc-row td.col-minmax::before,
    .services-table tr.svc-row td.col-avgtime::before,
    .services-table tr.svc-row td.col-desc::before {
        display: block;
        font-size: 10px;
        font-weight: 700;
        color: #aaa;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 3px;
    }

    .services-table tr.svc-row td.col-rate::before    { content: 'Rate'; }
    .services-table tr.svc-row td.col-minmax:nth-child(4)::before { content: 'Min'; }
    .services-table tr.svc-row td.col-minmax:nth-child(5)::before { content: 'Max'; }
    .services-table tr.svc-row td.col-avgtime::before { content: 'Avg Time'; }
    .services-table tr.svc-row td.col-desc::before    { content: 'Description'; }

    .services-table tr.svc-row td.col-rate {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #337ab7 !important;
    }
}

.cursor-pointer { cursor: pointer; }


.api-page {
    padding-top: 20px;
    padding-bottom: 40px;
}

.api-info-table td.api-label {
    width: 160px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.api-method-title {
    margin-top: 28px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

.api-example {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.6;
    max-height: 240px;
    overflow-y: auto;
}

.api-page table td code {
    background: none;
    padding: 0;
    color: #c7254e;
}

.api-optional-badge { font-size: 10px; vertical-align: middle; margin-left: 4px; }

.api-card { margin-bottom: 16px; }
.api-card .panel-heading { background-color: #f8f9fa; }
.api-card .panel-title   { font-size: 15px; font-weight: 600; }
.api-param-col           { width: 200px; white-space: nowrap; }

.api-example-footer {
    background-color: #f8f9fa;
    padding: 12px 16px;
}

.api-example-footer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.api-example {
    margin-bottom: 0;
}
.text-muted-sm  { font-size: 12px; color: #999; }

.page-wrapper {
    padding-top: 20px;
    padding-bottom: 40px;
}

.page-panel {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    margin-bottom: 16px;
}

.page-panel > .table-responsive {
    margin: 0;
    border: none;
    border-radius: 4px;
}

.page-table > thead > tr > th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: .3px;
    white-space: nowrap;
}

.page-table > tbody > tr > td {
    vertical-align: middle;
    padding: 9px 12px;
    border-top: 1px solid #f0f0f0;
}

.page-table > tbody > tr:hover > td {
    background-color: #fafbfc;
}

.nav-pills-wrap {
    margin-bottom: 14px;
}

.nav-pills-wrap .nav.nav-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 0;
    margin-bottom: 0;
}

.nav-pills-wrap .nav.nav-pills > li.search {
    margin-left: auto;
}

.nav-pills-wrap .nav.nav-pills > li.search .input-group {
    width: 230px;
}

@media (max-width: 767px) {

    .page-wrapper { padding-top: 14px; }

    .page-table,
    .page-table thead,
    .page-table tbody,
    .page-table tfoot,
    .page-table th,
    .page-table td { display: block; }

    .page-table thead { display: none; }

    .page-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #fff;
        border: 1px solid #e4e8ed;
        border-top: 3px solid #337ab7;
        border-radius: 6px;
        margin-bottom: 10px;
        padding: 4px 0;
        box-shadow: 0 1px 3px rgba(0,0,0,.04);
    }

    .page-table > tbody > tr:hover > td { background: transparent; }

    .page-table tbody td {
        padding: 7px 14px;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        white-space: normal !important;
        font-size: 13px;
        background: transparent;
    }

    .page-table tbody td:last-child { border-bottom: none; }

    .page-table tbody td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        color: #aaa;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 2px;
    }

    .page-table tbody td { border-top: none !important; }

    .page-table tbody td[data-label=""] { padding-top: 8px; padding-bottom: 8px; }

    .page-panel { border: none; box-shadow: none; background: transparent; }
    .page-panel > .table-responsive { overflow-x: visible; padding: 0; }

    .nav-pills-wrap .nav.nav-pills > li.search {
        width: 100%;
        margin-left: 0;
        padding: 6px 0 0;
        float: none;
    }

    .nav-pills-wrap .nav.nav-pills > li.search .input-group {
        width: 100%;
    }
}


.stats-page                     { padding: 24px 24px 48px; max-width: 1500px; margin: 0 auto; }

.stats-head                     { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.stats-head h1                  { margin: 0; font-size: 24px; font-weight: 600; color: #333; }
.stats-subtitle                 { font-size: 13px; color: #888; margin-top: 4px; }

.stats-pills                    { display: flex; background: #fff; border: 1px solid #d9dde2; border-radius: 6px; overflow: hidden; }
.stats-pills a                  { padding: 8px 18px; font-size: 13px; font-weight: 500; background: #fff; color: #555; border-left: 1px solid #eef0f2; white-space: nowrap; text-decoration: none; }
.stats-pills a:first-child      { border-left: 0; }
.stats-pills a.active           { background: #337ab7; color: #fff; }

.stats-hero                     { background: radial-gradient(circle at 88% 15%, rgba(255,255,255,.14), transparent 42%), linear-gradient(135deg, #337ab7 0%, #2c6296 100%); border-radius: 8px; padding: 24px 28px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: 0 4px 16px rgba(51,122,183,.30); color: #fff; }
.stats-hero-left                { flex: 1; min-width: 0; display: flex; align-items: center; gap: 22px; }
.stats-hero-icon                { flex: none; opacity: .9; font-size: 32px; color: #fff; }
.stats-hero-body                { flex: 1; min-width: 0; }
.stats-hero-eyebrow             { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 9px; }
.stats-hero-title-row           { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.stats-hero-id                  { background: rgba(255,255,255,.18); font-size: 12px; padding: 3px 9px; border-radius: 4px; font-weight: 600; }
.stats-hero-name                { font-size: 19px; font-weight: 600; line-height: 1.3; }
.stats-hero-sub                 { font-size: 13px; color: rgba(255,255,255,.7); }
.stats-hero-stats               { display: flex; align-items: center; gap: 40px; flex: none; }
.stats-hero-completed           { text-align: center; }
.stats-hero-completed-val       { font-size: 36px; font-weight: 700; line-height: 1; }
.stats-hero-completed-label     { font-size: 11px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .6px; margin-top: 6px; }

.stats-gauge                    { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.stats-gauge-78                 { width: 78px; height: 78px; }
.stats-gauge-128                { width: 128px; height: 128px; }
.stats-gauge-42                 { width: 42px; height: 42px; }
.stats-gauge-label              { position: absolute; text-align: center; }
.stats-gauge-78 .v              { font-size: 18px; font-weight: 700; line-height: 1; }
.stats-gauge-78 .l              { font-size: 8px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.stats-gauge-128 .v             { font-size: 28px; font-weight: 700; color: #333; line-height: 1; }
.stats-gauge-128 .l             { font-size: 10px; color: #9aa4b0; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.stats-gauge-42 .v              { font-size: 11px; font-weight: 700; }

.stats-kpis                     { display: flex; gap: 16px; margin-bottom: 22px; }
.stats-kpi                      { flex: 1; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 18px 20px; display: flex; align-items: center; gap: 16px; }
.stats-kpi-icon                 { width: 46px; height: 46px; border-radius: 10px; background: rgba(51,122,183,.1); color: #337ab7; display: flex; align-items: center; justify-content: center; flex: none; font-size: 20px; }
.stats-kpi-body                 { min-width: 0; }
.stats-kpi-label                { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #666; }
.stats-kpi-value                { font-size: 26px; font-weight: 600; color: #333; margin-top: 3px; line-height: 1.1; }
.stats-kpi-sub                  { font-size: 12px; margin-top: 3px; color: #999; }
.stats-kpi-sub.up               { color: #5cb85c; }
.stats-kpi-sub.down             { color: #d9534f; }
.stats-kpi-sub.warn             { color: #f0ad4e; }

.stats-panel                    { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.05); overflow: hidden; margin-bottom: 22px; }
.stats-panel-head               { padding: 14px 16px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.stats-panel-title              { font-size: 15px; font-weight: 600; color: #333; }
.stats-panel-meta               { font-size: 12px; color: #999; }

.stats-overview                 { padding: 22px; display: flex; align-items: center; gap: 34px; }
.stats-overview-right           { flex: 1; min-width: 0; }
.stats-bar                      { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; background: #eef0f2; }
.stats-bar span                 { display: block; height: 100%; }
.seg-completed                  { background: #337ab7; }
.seg-active                     { background: #6aa6dd; }
.seg-partial                    { background: #f0ad4e; }
.seg-canceled                   { background: #d9534f; }
.text-right-block               { text-align: right; }
.modal-loading                  { padding: 24px 0; }
.stats-legend                   { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.stats-legend-item              { display: flex; align-items: center; gap: 9px; }
.stats-legend-dot               { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.stats-legend-val               { font-size: 18px; font-weight: 700; color: #333; line-height: 1.1; }
.stats-legend-label             { font-size: 12px; color: #8a9099; }

.stats-search-group             { width: 240px; max-width: 100%; }
.stats-search-group .form-control { height: 32px; font-size: 13px; }
.stats-search-group .input-group-addon { background: #fff; color: #888; font-size: 12px; padding: 0 10px; }

.stats-table                    { width: 100%; border-collapse: collapse; }
.stats-table th                 { padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #666; letter-spacing: .3px; background: #f8f9fa; border-bottom: 2px solid #e0e0e0; }
.stats-table th.tac             { text-align: center; }
.stats-table th.tar             { text-align: right; }
.stats-table tr.svc-row         { cursor: pointer; transition: background .12s; border-top: 1px solid #f0f0f0; }
.stats-table tr.svc-row:hover   { background: #f3f8fc; }
.stats-table th[data-w-70]      { width: 70px; }
.stats-table th[data-w-90]      { width: 90px; }
.stats-table th[data-w-100]     { width: 100px; }
.stats-table th[data-w-120]     { width: 120px; }
.stats-table th[data-w-140]     { width: 140px; white-space: nowrap; }
.stats-table                    { table-layout: fixed; }
.stats-view-mobile              { display: none; }
.stats-empty                    { padding: 60px 0; text-align: center; color: #999; font-size: 14px; }
.stats-empty-table              { padding: 30px 0; text-align: center; color: #999; font-size: 14px; }
.stats-table td                 { padding: 11px 16px; vertical-align: middle; }
.stats-table td.tar             { text-align: right; font-weight: 600; color: #333; font-size: 14px; }
.stats-table td.tac             { text-align: center; }
.stats-rank                     { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); font-size: 13px; }
.stats-rank-gold                { background: #f5a623; }
.stats-rank-silver              { background: #aab2bd; }
.stats-rank-bronze              { background: #cd7f32; }
.stats-rank-num                 { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #eef1f4; color: #8a9099; font-size: 12px; font-weight: 700; }
.stats-svc                      { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.stats-svc-id                   { background: #444; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; font-weight: 600; flex: none; }
.stats-svc-name                 { color: #333; font-size: 13px; line-height: 1.4; word-break: break-word; overflow-wrap: anywhere; min-width: 0; flex: 1 1 auto; }
.stats-svc-completed-mobile     { display: none; }
.stats-view                     { display: inline-flex; align-items: center; gap: 4px; color: #337ab7; font-size: 12px; font-weight: 600; text-decoration: none; }

.stats-table-foot               { padding: 14px 16px; border-top: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.stats-table-foot-info          { font-size: 12px; color: #999; }
.stats-pager                    { margin: 0; display: inline-flex; flex-wrap: wrap; }
.stats-pager > li > a,
.stats-pager > li > span        { padding: 5px 11px; font-size: 12px; line-height: 1.4; color: #555; border-color: #ddd; }
.stats-pager > li.active > a,
.stats-pager > li.active > a:hover,
.stats-pager > li.active > a:focus { background: #337ab7; border-color: #337ab7; color: #fff; }

@media (max-width: 767px) {
    .stats-table-foot           { justify-content: center; padding: 12px 14px; }
    .stats-table-foot-info      { display: none; }
}

.statistics-modal .modal-dialog { max-width: 720px; }
.statistics-modal .modal-header { padding: 15px 18px; }
.statistics-modal .modal-title  { font-size: 18px; font-weight: 500; color: #333; line-height: 1.42; padding-right: 24px; }
.statistics-modal .modal-sub    { font-size: 13px; color: #999; margin-top: 6px; }
.statistics-modal .modal-body   { padding: 18px; }
.statistics-modal .modal-footer { padding: 14px 18px; }

.stats-modal-status             { background: #f8f9fb; border: 1px solid #edf0f3; border-radius: 5px; padding: 16px; margin-bottom: 22px; }
.stats-modal-status-row         { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.stats-modal-status-label       { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #8a9099; }
.stats-modal-status-val         { font-size: 26px; font-weight: 700; color: #333; margin-top: 2px; line-height: 1.1; }
.stats-modal-status-val.primary { color: #337ab7; }
.stats-modal-bar                { height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 13px; display: flex; background: #eef0f2; }
.stats-modal-bar span           { display: block; height: 100%; }
.stats-modal-legend             { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.stats-modal-legend-item        { display: flex; align-items: center; gap: 7px; }
.stats-modal-legend-dot         { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.stats-modal-legend-label       { font-size: 12px; color: #666; }
.stats-modal-legend-val         { font-size: 13px; font-weight: 700; color: #333; }

.stats-modal-section-label      { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #666; margin-bottom: 8px; }
.stats-modal-chart-wrap         { position: relative; height: 200px; margin-bottom: 24px; }

.stats-modal-orders             { border: 1px solid #edf0f3; border-radius: 5px; overflow: hidden; margin-bottom: 22px; }
.stats-modal-orders-table       { width: 100%; border-collapse: collapse; }
.stats-modal-orders-table th    { padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #8a9099; background: #f8f9fb; border-bottom: 1px solid #edf0f3; }
.stats-modal-orders-table th.tar { text-align: right; }
.stats-modal-orders-table td    { padding: 8px 12px; font-size: 12px; color: #333; border-top: 1px solid #f3f5f7; }
.stats-modal-orders-table td.tar { text-align: right; }
.stats-modal-orders-table .oid  { color: #337ab7; font-weight: 600; }
.stats-modal-orders-table .time { color: #888; }
.stats-modal-orders-cards       { display: none; }
.stats-modal-order-card         { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid #f3f5f7; gap: 10px; }
.stats-modal-order-card:first-child { border-top: 0; }
.stats-modal-order-card .oid    { font-size: 12px; color: #337ab7; font-weight: 600; }
.stats-modal-order-card .time   { font-size: 11px; color: #888; margin-top: 2px; }
.stats-modal-order-card .charge { font-size: 12px; font-weight: 600; color: #333; text-align: right; }
.stats-modal-order-card .qty    { font-size: 11px; color: #888; margin-top: 2px; text-align: right; }
.stats-modal-empty              { padding: 16px 14px; text-align: center; color: #999; font-size: 12px; }

.stats-modal-meta               { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #edf0f3; border-radius: 5px; overflow: hidden; }
.stats-modal-meta-cell          { flex: 1 1 50%; min-width: 150px; padding: 11px 15px; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; }
.stats-modal-meta-label         { font-size: 11px; color: #8a9099; text-transform: uppercase; letter-spacing: .3px; }
.stats-modal-meta-val           { font-size: 14px; font-weight: 600; color: #333; margin-top: 3px; }

@media (max-width: 767px) {
    .stats-page                 { padding: 16px 14px 40px; }
    .stats-head                 { flex-direction: column; align-items: flex-start; }
    .stats-hero                 { flex-direction: column; align-items: flex-start; gap: 20px; padding: 18px; }
    .stats-hero-stats           { width: 100%; justify-content: space-between; gap: 0; }
    .stats-kpis                 { flex-wrap: wrap; }
    .stats-kpi                  { flex: 1 1 44%; min-width: 150px; }
    .stats-overview             { flex-direction: column; align-items: stretch; }
    .stats-search-group         { width: 100%; }

    .stats-table                { table-layout: auto; }
    .stats-table thead          { display: none; }
    .stats-table tbody          { display: block; }
    .stats-table tbody tr.svc-row {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 14px 16px;
        border-top: 1px solid #f0f0f0;
    }
    .stats-table tbody td       { padding: 0; border: 0; text-align: left !important; }
    .stats-table tbody td:before { display: none !important; }

    .stats-table tbody td:nth-child(1) { flex: none; }

    .stats-table tbody td:nth-child(2) { flex: 1 1 auto; min-width: 0; }
    .stats-table tbody td:nth-child(2) .stats-svc-name { font-size: 13px; }
    .stats-svc-completed-mobile {
        display: block;
        font-size: 12px;
        color: #888;
        margin-top: 6px;
    }
    .stats-svc-completed-mobile strong { color: #333; }

    .stats-table tbody td:nth-child(3) { display: none; }

    .stats-table tbody td:nth-child(4) {
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .stats-table tbody td .stats-gauge-42 { margin: 0; }
    .stats-view-mobile {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        color: #337ab7;
        font-size: 11px;
        font-weight: 600;
    }

    .stats-table tbody td:nth-child(5) { display: none; }

    .stats-modal-orders-table   { display: none; }
    .stats-modal-orders-cards   { display: block; }
}

.affiliate-link-group { max-width: 420px; }

.affiliate-withdraw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.affiliate-withdraw-balance {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.affiliate-withdraw-amount {
    font-size: 20px;
    font-weight: 700;
}

.affiliate-withdraw-note { margin: 0; }

@media (max-width: 767px) {
    .affiliate-link-group { max-width: 100%; }
    .affiliate-withdraw { flex-direction: column; align-items: stretch; }
    .affiliate-withdraw .btn { width: 100%; }
}

