header{
    background-color: #FFFFFF80 !important;
    border-bottom: 1px solid #ffffff !important;
}
.top-navbar{
    border-bottom: 1px solid #9f9f9f24 !important;
}


/* Small stat cards */
.modern-card{
    background:#FFFFFF8C !important;
    /* padding:20px; */
    border: 1px solid white !important;
}

.modern-card h4{
    color: #727272 !important;
    font-weight: 500 !important;
}

.modern-card h6{
    color: #383838 !important;
    font-weight: 500 !important;
}


.balance-card{
    background: linear-gradient(135deg,#008080,#00EFEC);
    position:relative;
    overflow:hidden;
}
.balance-card h2,
.balance-card h5,
.balance-card h6{
    color: #FFFFFF !important;
}
.balance-card small{
    color: rgba(0, 82, 81, 1) !important;
    font-weight: 500 !important;
    font-size: 13px;
}

.balance-card::after{
    content:'';
    position:absolute;
    right:-40px;
    top:-40px;
    width:150px;
    height:150px;
    background:rgba(255,255,255,.25);
    border-radius:50%;
}
.balance-card .btn{
    background:rgba(244, 244, 244, 0.38) !important;
    border: 1px solid rgba(244, 244, 244, 0.38) !important;
    color: rgba(0, 82, 81, 1) !important;
    font-weight: 700 !important;
    --bs-btn-border-radius: 8px;
    border-radius: 8px !important;
}
.balance-card .btn:hover{
    background: #008686 !important;
    color: #fff !important;
}

.balance-sub{
    background:rgba(244, 244, 244, 0.38);
    border-radius:12px;
    border: 1px solid rgba(244, 244, 244, 0.38);
}

.balance-sub i{
    background: linear-gradient(135deg, #005251, #27cfcd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.add-bal-cart{
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid white !important;
}

.waiting-action-card{
    background: #5b6b79 !important;
}
.waiting-action-card h4, .waiting-action-card h6 {
    color: #fff !important;
}
.inprocess-card{
    background: #e58a00 !important;
}
.inprocess-card h4, .inprocess-card h6 {
    color: #fff !important;
}
.success-card{
    background: var(--bs-primary) !important;
}
.success-card h4, .success-card h6 {
    color: #fff !important;
}
.rejected-card{
    background: #dc2626 !important;
}
.rejected-card h4, .rejected-card h6 {
    color: #fff !important;
}
.total-order-card{
    background: linear-gradient(135deg,#008080,#00EFEC) !important;
}
.total-order-card h4, .total-order-card h6 {
    color: #fff !important;
}


                
.rounded-icon{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

/* Quick cards */
.quick-card{
    background:#fff;
    padding:14px 18px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.quick-icon{
    width:32px;
    height:32px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:14px;
}

/* Chỉ ẩn panel tab trên /client/dashboard (.customer-m-menu-content), không dùng .section toàn site */
.customer-m-menu-content .section {
    display: none;
}
.customer-m-menu{
    width:250px;
    display: block;
}
.customer-m-menu-content{
    width: calc(100% - 250px);
    min-height: 560px;
    overflow: auto;
}

/* Sidebar dashboard kiểu cũ (không dùng .dash-sidebar-nav — tránh đè lên pill/mẫu mới) */
.customer-m-menu#menu:not(.dash-sidebar-nav) .active {
    font-weight: 700;
    border-top-left-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
    border-top: 1px solid #e7e7e7 !important;
    border-bottom: 1px solid #e7e7e7 !important;
    border-left: 1px solid #e7e7e7 !important;
    background: #f5f3fa;
    margin-left: 1px;
}

.customer-m-menu#menu:not(.dash-sidebar-nav) button{
    width: 100%;
    padding: 12px 20px 12px 20px;
    text-align: left;
    border: 0 !important;
    font-weight: 500;
    border-top: 1px solid #f5f4fa !important;
    border-bottom: 1px solid #f5f4fa !important;
    border-left: 1px solid #f5f4fa !important;
    margin-left: 1px;
}

.customer-m-menu#menu:not(.dash-sidebar-nav) button:focus,
.customer-m-menu#menu:not(.dash-sidebar-nav) button:active,
.customer-m-menu#menu:not(.dash-sidebar-nav) button:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}
.customer-m-menu#menu:not(.dash-sidebar-nav) button,
.customer-m-menu#menu:not(.dash-sidebar-nav) .btn {
    transition: none !important;
}
.dash-v2-shell .dash-sidebar-nav#menu .dash-nav-item:focus,
.dash-v2-shell .dash-sidebar-nav#menu .dash-nav-item:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.35);
}
.customer-m-menu-content label{
    color: #383838 !important;
    font-weight: 600 !important;
}
.api-copy-btn{
    background: #fafafd;
    border-top: 1px solid #d3dae1;
    border-bottom: 1px solid #d3dae1;
    border-right: 1px solid  #d3dae1;
    border-left: 0 !important;
    color: var(--bs-primary) !important;
}
.api-copy-btn:hover{
    background: #fafafd;
    border-top: 1px solid #d3dae1;
    border-bottom: 1px solid #d3dae1;
    border-right: 1px solid  #d3dae1;
    color: var(--bs-primary);
}
.api-copy-btn:active,
.api-copy-btn:focus,
.api-copy-btn:focus-visible {
    background: #fafafd !important;
    border-top: 1px solid #d3dae1 !important;
    border-bottom: 1px solid #d3dae1 !important;
    border-right: 1px solid  #d3dae1 !important;
    color: var(--bs-primary) !important;
}


.service-info-card{
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;

}
.service-order-card, .service-tag-card, .service-article-card{
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;

}

.service-info-title{
    font-weight: 500;
    font-size: 18px;
}
.service-price{
    font-weight: 600;
    font-size: 20px;
}
.service-info-icon{
    background: rgba(227, 227, 227, 1) !important;
    border: 0 !important;
}

.service-img{
    width: 130px;
}
.service-title{
    width: calc(100% - 130px);
}
.page-title{
    color: rgba(48, 48, 48, 1);
    font-size: 18px;
    font-weight: 600;
}
.service-tag{
    font-size: 13px !important;
}
.medium-height{
    min-height: 515px;
}
.maximum-height{
    min-height: 733px;
}
.dropdown-menu{
    width: 100%;
}
.modal-open-force {
    overflow: hidden !important;
    height: 100%;
}

/*  */

.invoice-container {
    max-width: 600px;
    margin: 5px auto;
    background: #ffffff;
    padding: 20px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #212529;
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-header {
    background-color: #f0f0f0 !important;
    border-bottom: none;
}

.table-header th {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    padding-top: 12px;
    padding-bottom: 12px;
    border: none;
}

.table-row td {
    font-size: 0.9rem;
    padding-top: 15px;
    padding-bottom: 15px;
    vertical-align: middle;
}

.totals-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    width: 120px;
}

.totals-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
    text-align: right;
}












@media (max-width: 1399px) {
    .resource-tab-pane .btn{
        font-size: 12px !important;
    }
}
@media (max-width: 1199px) {
    .place-order, .place-order-loader{
        max-width: 100% !important;
    }
    .medium-height{
        min-height: auto;
    }
    .maximum-height{
        min-height: auto;
    }
}
@media (max-width: 767px) {
    .customer-m-menu{
        display: flex;
        gap: 10px;
        overflow: auto;
        width: 100%;
        border-bottom: 2px solid var(--bs-border-color);
        border-bottom-left-radius: 0 !important;
        border-top-left-radius: 0 !important;
    }
    .customer-m-menu .btn{
        display: inline-flex;
    }
    .customer-m-menu span{
        width: max-content !important;
    }
    .customer-m-menu#menu:not(.dash-sidebar-nav) .active{
        border: 0 !important;
        border-radius: 0 !important;
        border-bottom: 2px solid var(--bs-primary) !important;

    }
    .customer-m-menu#menu.dash-sidebar-nav {
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .customer-m-menu#menu.dash-sidebar-nav .dash-nav-item {
        width: auto;
        min-width: 11.5rem;
        flex-shrink: 0;
    }
    .customer-m-menu#menu.dash-sidebar-nav .dash-nav-item.active {
        border-bottom: 2px solid var(--bs-primary) !important;
        border-radius: 12px !important;
    }
    .customer-m-menu-content{
        width: 100%;
    }
    .service-img{
        width: 100%;
    }
    .service-title{
        width: 100%;
    }
}

/* Telegram tab: QR đọc được trên nền tối */
.telegram-bot-qr-box {
    background: #fff !important;
    border: 1px solid var(--bs-border-color);
}
.telegram-bot-qr-svg-wrap svg {
    display: block;
    max-width: 168px;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
[data-pc-theme="dark"] .telegram-bot-qr-box {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Customer dashboard (/client/dashboard): avoid capsule/pill shapes from theme --bs-btn-border-radius (~20px) */
#dashboard-tab .btn {
    --bs-btn-border-radius: 8px;
    border-radius: 8px !important;
}
.customer-m-menu-content .table .badge:not(.rounded-pill) {
    --bs-badge-border-radius: 6px;
    border-radius: 6px !important;
}

/* Customer dashboard API tab: tắt DHRU/PHP = làm mờ nội dung, không thu gọn */
#api-tab .api-dhru-column.api-access-column-off .api-section {
    opacity: 0.48;
    filter: grayscale(0.25);
    pointer-events: none;
    transition: opacity 0.2s ease, filter 0.2s ease;
}
#api-tab .api-docs-section.php-access-panel-off .api-section-php {
    opacity: 0.48;
    filter: grayscale(0.25);
    pointer-events: none;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* API Access: DHRU | PHP — hai cột khi cả hai panel hiển thị */
#api-tab .api-access-two-col > .api-dhru-column,
#api-tab .api-access-two-col > .api-docs-section {
    min-width: 0;
}
@media (min-width: 1200px) {
    #api-tab .api-access-two-col > .api-dhru-column:has(+ .api-docs-section:not(.d-none)) {
        padding-right: 0.75rem;
        border-right: 1px solid var(--bs-border-color);
    }
    #api-tab .api-access-two-col > .api-docs-section:not(.d-none) {
        padding-left: 0.75rem;
    }
}

/* ========== Client portal: bảng (Invoice/Statement/Order…) — class .dash-table-modern ========== */
.dash-list-card { border-radius: 14px !important; overflow: hidden; }
table.dash-table-modern {
    --dash-tb-border: rgba(148, 163, 184, 0.18);
    margin-bottom: 0;
}
table.dash-table-modern tbody tr { transition: background 0.15s ease; }
table.dash-table-modern tbody tr:hover { background: rgba(var(--bs-primary-rgb), 0.06); }
table.dash-table-modern tbody tr td {
    border-bottom: 1px solid var(--dash-tb-border);
    padding: 0.9rem 1rem;
    vertical-align: middle;
}
table.dash-table-modern tbody tr:last-child td { border-bottom: none; }
.dash-row-ic {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-size: 1rem;
}
.dash-table-amount { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bs-emphasis-color); }
.dash-st-pill { font-size: 0.68rem; letter-spacing: 0.06em; font-weight: 700; padding: 0.45em 0.85em; }
.dash-st-pill--credit { background: linear-gradient(135deg, #059669, #10b981) !important; color: #fff !important; }
.dash-st-pill--debit { background: linear-gradient(135deg, #be123c, #f43f5e) !important; color: #fff !important; }
.dash-inv-pill { font-size: 0.68rem; letter-spacing: 0.05em; font-weight: 700; padding: 0.45em 0.85em; }
.dash-inv-pill--unpaid { background: linear-gradient(135deg, #d97706, #fbbf24) !important; color: #1c1917 !important; }
.dash-inv-pill--paid { background: linear-gradient(135deg, #047857, #34d399) !important; color: #fff !important; }
.dash-inv-pill--cancelled { background: linear-gradient(135deg, #991b1b, #f87171) !important; color: #fff !important; }
.dash-inv-pill--unknown { background: rgba(148, 163, 184, 0.35) !important; color: var(--bs-body-color) !important; }
.dash-section-ic {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.15rem;
}
[data-pc-theme="dark"] table.dash-table-modern { --dash-tb-border: rgba(71, 85, 105, 0.55); }
[data-pc-theme="dark"] .dash-row-ic { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
[data-pc-theme="dark"] table.dash-table-modern tbody tr:hover { background: rgba(56, 189, 248, 0.08); }
[data-pc-theme="dark"] .dash-section-ic { background: rgba(56, 189, 248, 0.15); color: #38bdf8 !important; }

/* DataTables (Invoice / Statement / Order history) */
#customer-invoice-table.dataTable,
#customer-statement-table.dataTable,
#order-history-table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
}
#customer-invoice-table.dataTable thead th,
#customer-statement-table.dataTable thead th,
#order-history-table.dataTable thead th {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bs-secondary-color);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.85rem 1rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    vertical-align: middle;
}
#customer-invoice-table.dataTable tbody td,
#customer-statement-table.dataTable tbody td,
#order-history-table.dataTable tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
#customer-invoice-table.dataTable tbody tr:hover td,
#customer-statement-table.dataTable tbody tr:hover td,
#order-history-table.dataTable tbody tr:hover td {
    background: rgba(var(--bs-primary-rgb), 0.05);
}
[data-pc-theme="dark"] #customer-invoice-table.dataTable thead th,
[data-pc-theme="dark"] #customer-statement-table.dataTable thead th,
[data-pc-theme="dark"] #order-history-table.dataTable thead th {
    background: rgba(30, 41, 59, 0.65);
    border-bottom-color: rgba(71, 85, 105, 0.65);
    color: #94a3b8;
}
[data-pc-theme="dark"] #customer-invoice-table.dataTable tbody td,
[data-pc-theme="dark"] #customer-statement-table.dataTable tbody td,
[data-pc-theme="dark"] #order-history-table.dataTable tbody td {
    border-bottom-color: rgba(71, 85, 105, 0.45);
}
[data-pc-theme="dark"] #customer-invoice-table.dataTable tbody tr:hover td,
[data-pc-theme="dark"] #customer-statement-table.dataTable tbody tr:hover td,
[data-pc-theme="dark"] #order-history-table.dataTable tbody tr:hover td {
    background: rgba(56, 189, 248, 0.06);
}

/* Order history: pill trạng thái (đồng bộ gradient) */
.oh-dt-pill {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    padding: 0.45em 0.85em;
    min-width: 7.5rem;
    justify-content: center;
}
.oh-dt-pill--success { background: linear-gradient(135deg, #047857, #34d399) !important; color: #fff !important; }
.oh-dt-pill--danger { background: linear-gradient(135deg, #be123c, #f87171) !important; color: #fff !important; }
.oh-dt-pill--warning { background: linear-gradient(135deg, #d97706, #fbbf24) !important; color: #1c1917 !important; }
.oh-dt-pill--muted { background: rgba(100, 116, 139, 0.35) !important; color: var(--bs-body-color) !important; }
.oh-dt-pill--info { background: linear-gradient(135deg, #0369a1, #38bdf8) !important; color: #fff !important; }
