/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Blazor Reconnect Modal ──
   Đồng bộ với theme TASATRADING (xanh lá #0f9d4f) */

.components-reconnect-first-attempt-visible[b-fdadp3cnza],
.components-reconnect-repeated-attempt-visible[b-fdadp3cnza],
.components-reconnect-failed-visible[b-fdadp3cnza],
.components-pause-visible[b-fdadp3cnza],
.components-resume-failed-visible[b-fdadp3cnza],
.components-rejoining-animation[b-fdadp3cnza] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-retrying[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-failed[b-fdadp3cnza],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-fdadp3cnza] {
    display: block;
}


#components-reconnect-modal[b-fdadp3cnza] {
    background-color: #fff;
    width: 22rem;
    margin: 20vh auto;
    padding: 2rem 1.8rem;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06);
    opacity: 0;
    transition: display .5s allow-discrete, overlay .5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-fdadp3cnza .5s both;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #0f172a;
}

#components-reconnect-modal[open][b-fdadp3cnza] {
    animation: components-reconnect-modal-slideUp-b-fdadp3cnza 1.5s cubic-bezier(.05, .89, .25, 1.02) .3s,
               components-reconnect-modal-fadeInOpacity-b-fdadp3cnza .5s ease-in-out .3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-fdadp3cnza]::backdrop {
    background-color: rgba(15, 23, 42, .45);
    animation: components-reconnect-modal-fadeInOpacity-b-fdadp3cnza .5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-fdadp3cnza {
    0%   { transform: translateY(30px) scale(.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-fdadp3cnza {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-fdadp3cnza {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container[b-fdadp3cnza] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
}

#components-reconnect-modal p[b-fdadp3cnza] {
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

#components-reconnect-modal p.components-reconnect-failed-visible[b-fdadp3cnza] {
    color: #c0392b;
}

#components-reconnect-modal button[b-fdadp3cnza] {
    border: 0;
    background-color: #0f9d4f;
    color: #fff;
    padding: 8px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

#components-reconnect-modal button:hover[b-fdadp3cnza] {
    background-color: #0b7a3d;
}

#components-reconnect-modal button:active[b-fdadp3cnza] {
    background-color: #0f9d4f;
}

.components-rejoining-animation[b-fdadp3cnza] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-fdadp3cnza] {
    position: absolute;
    border: 3px solid #0f9d4f;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-fdadp3cnza 1.5s cubic-bezier(0, .2, .8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-fdadp3cnza] {
    animation-delay: -.5s;
}

@keyframes components-rejoining-animation-b-fdadp3cnza {
    0%   { top: 40px; left: 40px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 40px; left: 40px; width: 0; height: 0; opacity: 0; }
    5%   { top: 40px; left: 40px; width: 0; height: 0; opacity: 1; }
    100% { top: 0px;  left: 0px;  width: 80px; height: 80px; opacity: 0; }
}
/* /Components/Pages/BaoCao/BaoCaoQuyetToan.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════════════
   Bảng tổng hợp quyết toán — UI
   ═══════════════════════════════════════════════════════════════════════ */

.bqt-view[b-3jnpjunbp4] {
    display: flex;
    flex-direction: column;
}

/* ── Toolbar chuyên nghiệp ── */
.bqt-toolbar[b-3jnpjunbp4] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    padding: 6px 12px;
    border-bottom: 1px solid #eef2f0;
}
.bqt-toolbar .page-toolbar-left[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bqt-toolbar-divider[b-3jnpjunbp4] {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Icon button trong toolbar đồng bộ chiều cao 30px */
.bqt-toolbar .toolbar-icon-btn[b-3jnpjunbp4] {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
}
.bqt-toolbar .toolbar-icon-btn i[b-3jnpjunbp4] {
    font-size: 14px;
}

/* ── Date range trên toolbar ── */
.bqt-date-range[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bqt-date-icon[b-3jnpjunbp4] {
    color: var(--brand);
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.bqt-date-sep[b-3jnpjunbp4] {
    color: #cbd5e1;
    font-size: 11px;
    flex-shrink: 0;
}

/* InputD là child component → dùng ::deep để style phần tử bên trong */
.bqt-date-range[b-3jnpjunbp4]  .inputd-root {
    height: 30px;
    width: 120px;
}
.bqt-date-range[b-3jnpjunbp4]  .inputd-shell {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bqt-date-range[b-3jnpjunbp4]  .inputd-shell:hover:not(.disabled):not(.readonly) {
    border-color: #cbd5e1;
}
.bqt-date-range[b-3jnpjunbp4]  .inputd-shell:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 157, 79, .12);
}
.bqt-date-range[b-3jnpjunbp4]  .inputd-input {
    font-size: 12px;
    padding: 0 5px 0 8px;
    height: 28px;
    line-height: 28px;
    border: none;
    border-radius: 6px;
}
.bqt-date-range[b-3jnpjunbp4]  .inputd-icon-btn {
    height: 26px;
    width: 20px;
    margin-right: 2px;
}

/* ── Search ── */
.bqt-search-input[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bqt-search-input:hover[b-3jnpjunbp4] {
    border-color: #cbd5e1;
}
.bqt-search-input:focus-within[b-3jnpjunbp4] {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 157, 79, .12);
}

.bqt-search-input i[b-3jnpjunbp4] {
    font-size: 13px;
    color: #94a3b8;
    flex-shrink: 0;
}

.bqt-search-input input[b-3jnpjunbp4] {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    color: #334155;
    width: 240px;
    padding: 0;
    height: 28px;
    line-height: 28px;
}
.bqt-search-input input[b-3jnpjunbp4]::placeholder { color: #94a3b8; }

/* ── Filter dialog ── */
.bqt-filter-form[b-3jnpjunbp4] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0;
}

.bqt-filter-row[b-3jnpjunbp4] {
    display: flex;
    gap: 10px;
}

.bqt-filter-section-title[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.bqt-filter-section-title:first-child[b-3jnpjunbp4] { margin-top: 0; }

.bqt-filter-section-title span:last-child[b-3jnpjunbp4] {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .4px;
}

.bqt-accent-bar[b-3jnpjunbp4] {
    width: 4px;
    height: 16px;
    border-radius: 99px;
    flex-shrink: 0;
}

.bqt-accent-customer .bqt-accent-bar[b-3jnpjunbp4] { background: linear-gradient(180deg, #3b82f6, #06b6d4); }
.bqt-accent-transport .bqt-accent-bar[b-3jnpjunbp4] { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.bqt-accent-hr .bqt-accent-bar[b-3jnpjunbp4] { background: linear-gradient(180deg, #10b981, #14b8a6); }
.bqt-accent-docs .bqt-accent-bar[b-3jnpjunbp4] { background: linear-gradient(180deg, #8b5cf6, #ec4899); }

/* ── Filter button badge ── */
.bqt-filter-btn-wrap[b-3jnpjunbp4] {
    position: relative;
    display: inline-flex;
}

.bqt-filter-badge[b-3jnpjunbp4] {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid #fff;
    pointer-events: none;
}

/* ── Error / loading ── */
.bqt-error-banner[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, .18);
}

.bqt-loading[b-3jnpjunbp4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 0;
    color: var(--text-muted);
}

.bqt-loading-spinner[b-3jnpjunbp4] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand);
    animation: bqt-spin-b-3jnpjunbp4 .85s linear infinite;
}

.bqt-loading p[b-3jnpjunbp4] { font-size: 13px; margin: 0; }

@keyframes bqt-spin-b-3jnpjunbp4 { to { transform: rotate(360deg); } }

/* ── Data grid ── */
.bqt-data-grid[b-3jnpjunbp4] {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    min-height: 400px;
}

.bqt-table-scroll[b-3jnpjunbp4] {
    overflow: auto;
    position: relative;
    flex: 1;
    min-height: 0;
}

.bqt-table-scroll[b-3jnpjunbp4]::-webkit-scrollbar { height: 6px; width: 6px; }
.bqt-table-scroll[b-3jnpjunbp4]::-webkit-scrollbar-track { background: #f1f5f9; }
.bqt-table-scroll[b-3jnpjunbp4]::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.bqt-table-scroll[b-3jnpjunbp4]::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* Giống trang bố trí xe: fixed layout, min-width đủ rộng để cuộn ngang linh động */
.bqt-grid-table[b-3jnpjunbp4] {
    min-width: 3000px !important;
    table-layout: fixed;
}

.bqt-grid-table td[b-3jnpjunbp4],
.bqt-grid-table th[b-3jnpjunbp4] {
    padding: 0px 5px;
    white-space: nowrap;
}

/* Header: border bottom nét liền */
.bqt-grid-table thead th[b-3jnpjunbp4] {
    border-bottom: 1px solid #cbd5e1 !important;
}

/* Data cells: border bottom nét đứt chấm */
.bqt-grid-table tbody td[b-3jnpjunbp4] {
    border-bottom: 1px dashed #cbd5e1 !important;
}

/* Border right mạnh + đậm tại ranh giới các group (Khoản thu / Khoản chi / Thu / Hộ) */
.bqt-grid-table .bqt-sep[b-3jnpjunbp4] {
    border-right: 2px solid #64748b !important;
}

/* ── Header ── */
.bqt-grid-table thead th[b-3jnpjunbp4] {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f6 100%);
    color: #334155;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .4px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    vertical-align: middle;
    padding-top: 4px;
    padding-bottom: 4px;
    height: auto;
    min-height: 34px;
}

.bqt-grid-table .text-center[b-3jnpjunbp4] { text-align: center; }

/* Header 2 tầng sticky theo cả khối thead (chịu wrap đa dòng) */
.bqt-grid-table thead[b-3jnpjunbp4] {
    position: sticky;
    top: 0;
    z-index: 10;
}

.bqt-grid-table thead th.sticky-col[b-3jnpjunbp4] {
    background: linear-gradient(180deg, #f1f5f9 0%, #e7eef3 100%);
    color: #1e293b;
    z-index: 12;
}

.bqt-thead-group th[b-3jnpjunbp4] {
    z-index: 5;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.bqt-thead-detail th[b-3jnpjunbp4] {
    z-index: 6;
    border-top: 0;
    text-align: right;
    font-weight: 600;
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

/* Zone colors — chỉ dùng cho BAND nhóm (header nhóm) + header khoản thu/chi */
.bqt-grid-table thead .bqt-zone-thu[b-3jnpjunbp4]      { background: #dcfce7 !important; color: #15803d !important; }
.bqt-grid-table thead .bqt-zone-chi[b-3jnpjunbp4]      { background: #fee2e2 !important; color: #b91c1c !important; }
.bqt-grid-table thead .bqt-zone-loinhuan[b-3jnpjunbp4] { background: #f0fdf4 !important; color: #15803d !important; }
.bqt-grid-table thead .bqt-zone-khoan-thu[b-3jnpjunbp4] { background: #f0fdf4 !important; color: #065f46 !important; }
.bqt-grid-table thead .bqt-zone-khoan-chi[b-3jnpjunbp4] { background: #fef2f2 !important; color: #991b1b !important; }

/* Header chi tiết cột công thức (Doanh thu/Chi phí/Lãi): KHÔNG nền — chỉ màu chữ */
.bqt-grid-table thead .bqt-txt-thu[b-3jnpjunbp4]      { color: #15803d !important; }
.bqt-grid-table thead .bqt-txt-chi[b-3jnpjunbp4]      { color: #b91c1c !important; }
.bqt-grid-table thead .bqt-txt-loinhuan[b-3jnpjunbp4] { color: #15803d !important; }

/* ── Body ── */
.bqt-grid-table tbody td[b-3jnpjunbp4] {
    padding: 5px 6px;
    white-space: normal;
    word-break: break-word;
    vertical-align: middle;
    font-size: 12px;
}

/* Các cột tiền (số liệu): giữ 1 dòng + font/size đồng nhất với cột nội dung (tác nghiệp 11px/500) */
.bqt-grid-table tbody td.bqt-txt-thu[b-3jnpjunbp4],
.bqt-grid-table tbody td.bqt-txt-chi[b-3jnpjunbp4],
.bqt-grid-table tbody td.bqt-txt-loinhuan[b-3jnpjunbp4],
.bqt-grid-table tbody td.bqt-zone-khoan-thu[b-3jnpjunbp4],
.bqt-grid-table tbody td.bqt-zone-khoan-chi[b-3jnpjunbp4] {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
}

.bqt-grid-table tbody tr:hover td[b-3jnpjunbp4] { background: linear-gradient(180deg, #f0fbf4 0%, #e8f8ef 100%) !important; }
.bqt-grid-table tbody tr:hover td.sticky-col[b-3jnpjunbp4] { background: linear-gradient(180deg, #e3f7eb 0%, #d6f1df 100%) !important; }

/* Cột công thức (Doanh thu/Chi phí/Lãi): KHÔNG nền — chỉ màu chữ */
.bqt-grid-table tbody td.bqt-txt-thu[b-3jnpjunbp4] { color: #166534; }
.bqt-grid-table tbody td.bqt-txt-chi[b-3jnpjunbp4] { color: #991b1b; }
/* Lãi: màu chữ do text-success / text-danger (Bootstrap !important) quyết định */

/* Khoản thu / khoản chi: giữ nền tint nhẹ */
.bqt-grid-table tbody .bqt-zone-khoan-thu[b-3jnpjunbp4] { background: rgba(220,252,231,.2) !important; color: #166534; }
.bqt-grid-table tbody .bqt-zone-khoan-chi[b-3jnpjunbp4] { background: rgba(254,226,226,.2) !important; color: #991b1b; }

/* ── Icon + màu sinh động cho các cột thông tin ── */
.bqt-cell-icon[b-3jnpjunbp4] { margin-right: 5px; font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.bqt-icon-hangtau[b-3jnpjunbp4] { color: #0284c7; }
.bqt-icon-tacnghiep[b-3jnpjunbp4] { color: #7c3aed; }
.bqt-icon-xe[b-3jnpjunbp4] { color: #16a34a; }
.bqt-icon-bill[b-3jnpjunbp4] { color: #0369a1; }
.bqt-icon-cont[b-3jnpjunbp4] { color: #b45309; }

/* ── Style giống trang Bố trí xe cho nhóm cột SQT → Số cont ── */
/* Giá trị hàng hóa (trọng tải / cont / hãng tàu): giống cột "Hàng hóa" */
.bqt-hh-val[b-3jnpjunbp4] { font-size: 10px; font-weight: 500; color: #0f172a; }
/* Đơn vị T/kg mờ: giống .kh-unit */
.bqt-unit[b-3jnpjunbp4] { font-size: 9.5px; color: #94a3b8; margin-left: 2px; font-weight: 400; }
/* Giao nhận: giống cột G/N T/T */
.bqt-gn[b-3jnpjunbp4] { font-size: 11px; font-weight: 500; }
/* Tác nghiệp: giống .btx-note.btx-tacnghiep */
.bqt-note[b-3jnpjunbp4] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    line-height: 1.5;
}
.bqt-note-icon[b-3jnpjunbp4] {
    flex-shrink: 0;
    font-size: 11px;
    line-height: 16px;
    margin-top: 1px;
    color: #16a34a;
}
.bqt-note-body[b-3jnpjunbp4] {
    flex: 1;
    min-width: 0;
    color: #000000;
    font-weight: 500;
    font-size: 11px;
    word-break: break-word;
    white-space: pre-line;
}

/* Ô Số quyết toán: giống .sqt-num bên bố trí xe (kèm con trỏ help cho tooltip) */
.bqt-cell-sqt[b-3jnpjunbp4] { font-weight: 700; font-size: 11px; color: #000000; }
.bqt-sqt-num[b-3jnpjunbp4] { cursor: help; }

.bqt-col-phantom[b-3jnpjunbp4] { border: none !important; background: transparent !important; }

/* ═══════════════════════════════════════════════════════════════════════
   GHIM CỘT (📌) — cột ghim dời về sát cột Số quyết toán, sticky 2 trục.
   Nền ĐỤC bắt buộc để che các cột trượt ngang bên dưới.
   ═══════════════════════════════════════════════════════════════════════ */
.bqt-grid-table .bqt-pin-col[b-3jnpjunbp4] {
    position: sticky;
    z-index: 3;
    background: #fff;
}

/* Body: nền trắng đục — thắng tint rgba của khoản thu/chi ((0,2,2) > (0,2,1));
   hover/selected ((0,2,3) !important) vẫn phủ được vì đều là màu đục */
.bqt-grid-table tbody td.bqt-pin-col[b-3jnpjunbp4] { background: #fff !important; }

/* Header: th vốn sticky top (global) → thêm left inline là dính 2 trục.
   z-index 11: trên th thường (5/6), dưới SQT (12). Nền gradient giống header SQT
   (zone khoản thu/chi có !important riêng nên vẫn giữ màu nhận diện);
   band nhóm ghim cũng vậy — zone !important của band thắng rule này */
.bqt-grid-table thead th.bqt-pin-col[b-3jnpjunbp4] {
    z-index: 11;
    background: linear-gradient(180deg, #f1f5f9 0%, #e7eef3 100%);
}

/* Footer tổng: đồng bộ màu sticky-col của dòng TỔNG CỘNG */
.bqt-grid-table .bqt-total-row td.bqt-pin-col[b-3jnpjunbp4] { z-index: 11; background: #e2e8f0 !important; }

/* Cột ghim cuối cùng: bóng mép phải báo hiệu vùng ghim kết thúc */
.bqt-grid-table .bqt-pin-edge[b-3jnpjunbp4] { box-shadow: 1px 0 0 var(--border), 8px 0 12px rgba(15,23,42,.10); }

/* Dòng TỔNG CỘNG: cột ghim cuối giữ thêm bóng hất lên của tfoot */
.bqt-grid-table .bqt-total-row td.bqt-pin-edge[b-3jnpjunbp4] {
    box-shadow: 1px 0 0 var(--border), 8px 0 12px rgba(15,23,42,.10), 0 -3px 8px rgba(0,0,0,.08);
}

/* Nút ghim trên header: hiện khi hover, luôn hiện (màu cam) khi đã ghim */
.bqt-grid-table thead th .bqt-pin-btn[b-3jnpjunbp4] {
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 2;
    width: 15px;
    height: 15px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, color .15s, background .15s;
}
.bqt-grid-table thead th:hover .bqt-pin-btn[b-3jnpjunbp4] { opacity: 1; }
.bqt-grid-table thead th .bqt-pin-btn:hover[b-3jnpjunbp4] { color: #b45309; background: rgba(217,119,6,.15); }
.bqt-grid-table thead th .bqt-pin-btn.pinned[b-3jnpjunbp4] { opacity: 1; color: #d97706; background: rgba(217,119,6,.12); }

/* ── Footer sticky bottom ── */
.bqt-grid-table tfoot[b-3jnpjunbp4] {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.bqt-total-row td[b-3jnpjunbp4] {
    background: #f8fafc !important;
    font-weight: 600;
    font-size: 11px !important;
    height: 32px !important;
    border-top: 2px solid #cbd5e1 !important;
    box-shadow: 0 -3px 8px rgba(0,0,0,.08);
    color: #334155 !important;
    white-space: nowrap;
}

.bqt-total-row td.sticky-col[b-3jnpjunbp4] {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    z-index: 11;
}

/* Tổng cộng: cột công thức KHÔNG nền (chỉ màu chữ), khoản thu/chi giữ nền */
.bqt-total-row td.bqt-txt-thu[b-3jnpjunbp4]      { color: #166534 !important; }
.bqt-total-row td.bqt-txt-chi[b-3jnpjunbp4]      { color: #991b1b !important; }
.bqt-total-row td.bqt-txt-loinhuan[b-3jnpjunbp4] { color: #14532d !important; }
.bqt-total-row .bqt-zone-khoan-thu[b-3jnpjunbp4] { background: #dcfce7 !important; color: #166534 !important; }
.bqt-total-row .bqt-zone-khoan-chi[b-3jnpjunbp4] { background: #fee2e2 !important; color: #991b1b !important; }

/* Row được chọn bằng click (toggle) */
.bqt-grid-table tbody tr.bqt-row-selected td[b-3jnpjunbp4] {
    background: #eff6ff !important;
    border-top: 1px solid #93c5fd !important;
    border-bottom: 1px solid #93c5fd !important;
}
.bqt-grid-table tbody tr.bqt-row-selected td:first-child[b-3jnpjunbp4] {
    border-left: 3px solid #3b82f6 !important;
}
.bqt-grid-table tbody tr.bqt-row-selected td.sticky-col[b-3jnpjunbp4] {
    background: #eff6ff !important;
}

/* ── Filter dialog (dùng chung style srt của bố trí xe) ── */
.srt-backdrop[b-3jnpjunbp4] {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(255,255,255,.14) 0%, rgba(15,23,42,.2) 45%, rgba(15,23,42,.34) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
    animation: bqtFadeIn-b-3jnpjunbp4 .18s cubic-bezier(.22, 1, .36, 1) both;
}
.srt-dialog[b-3jnpjunbp4] {
    position: relative;
    width: min(600px, 96vw);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,249,.99));
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: 0 36px 100px rgba(15, 23, 42, .28), 0 14px 42px rgba(15, 157, 79, .16), 0 1px 0 rgba(255,255,255,.85) inset;
    animation: bqtPop-b-3jnpjunbp4 .22s cubic-bezier(.22, 1, .36, 1) both;
    user-select: none;
    -webkit-user-select: none;
}
.srt-dialog[b-3jnpjunbp4]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(15, 157, 79, .10), transparent 32%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, .08), transparent 28%);
}
.srt-close[b-3jnpjunbp4] {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 5px;
    background: rgba(15, 23, 42, .05);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}
.srt-close:hover[b-3jnpjunbp4] {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .22);
}
.srt-body[b-3jnpjunbp4] {
    position: relative;
    z-index: 1;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.srt-head[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 12px;
}
.srt-icon[b-3jnpjunbp4] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 8px 18px rgba(15, 157, 79, .32), 0 3px 8px rgba(15, 157, 79, .18);
    flex-shrink: 0;
}
.srt-head-text[b-3jnpjunbp4] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.srt-title[b-3jnpjunbp4] {
    font-size: 16px;
    font-weight: 800;
    color: #173824;
    letter-spacing: -.2px;
}
.srt-sub[b-3jnpjunbp4] {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.srt-sub-part[b-3jnpjunbp4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.srt-sub-part i[b-3jnpjunbp4] {
    font-size: 12px;
    color: #0f9d4f;
}
.srt-section[b-3jnpjunbp4] {
    background: #fff;
    border: 1px solid #eef2f0;
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.srt-section-head[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0f9d4f;
    text-transform: uppercase;
    letter-spacing: .4px;
    user-select: none;
}
.srt-section-head i[b-3jnpjunbp4] {
    font-size: 14px;
}
.srt-footer[b-3jnpjunbp4] {
    position: relative;
    z-index: 1;
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(243,249,245,.9));
    border-top: 1px solid rgba(187, 225, 201, .6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.srt-footer-left[b-3jnpjunbp4] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.srt-footer-actions[b-3jnpjunbp4] {
    display: flex;
    gap: 8px;
}
.srt-btn[b-3jnpjunbp4] {
    height: 32px;
    padding: 0 13px;
    border: none;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .18s ease;
}
.srt-btn:hover:not(:disabled)[b-3jnpjunbp4] { transform: translateY(-1px); }
.srt-btn:active:not(:disabled)[b-3jnpjunbp4] { transform: scale(.97); }
.srt-btn i[b-3jnpjunbp4] { font-size: 14px; }
.srt-btn-apply[b-3jnpjunbp4] {
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 8px 20px rgba(15, 157, 79, .40), 0 3px 8px rgba(15, 157, 79, .22);
}
.srt-btn-apply:hover:not(:disabled)[b-3jnpjunbp4] {
    box-shadow: 0 12px 28px rgba(15, 157, 79, .50), 0 5px 12px rgba(15, 157, 79, .26);
}
.srt-btn-ghost[b-3jnpjunbp4] {
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.srt-btn-ghost:hover:not(:disabled)[b-3jnpjunbp4] {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}
.srt-reset-btn[b-3jnpjunbp4] {
    height: 32px;
    padding: 0 12px;
    border: 1.5px solid #fed7aa;
    border-radius: 5px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .18s ease;
    box-shadow: 0 3px 8px rgba(234, 88, 12, .14);
}
.srt-reset-btn:hover[b-3jnpjunbp4] {
    background: #ffedd5;
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(234, 88, 12, .24);
}
@keyframes bqtFadeIn-b-3jnpjunbp4 { from { opacity: 0; } to { opacity: 1; } }
@keyframes bqtPop-b-3jnpjunbp4 {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Bộ lọc mã dòng công thức (chips + logic kết hợp) ── */
.bqt-madong-chips[b-3jnpjunbp4] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.bqt-chip[b-3jnpjunbp4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1.2;
}

.bqt-chip:hover[b-3jnpjunbp4] { border-color: #94a3b8; background: #f1f5f9; }

.bqt-chip.active[b-3jnpjunbp4] {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.bqt-chip.active i[b-3jnpjunbp4] { color: #2563eb; }
.bqt-chip i[b-3jnpjunbp4] { font-size: 12px; color: #94a3b8; }

.bqt-madong-modes[b-3jnpjunbp4] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 10px;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.bqt-mode-radio[b-3jnpjunbp4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.bqt-mode-radio input[b-3jnpjunbp4] { accent-color: #2563eb; cursor: pointer; margin: 0; }

.bqt-madong-hint[b-3jnpjunbp4] {
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.bqt-madong-hint i[b-3jnpjunbp4] { margin-right: 3px; }

/* ── Backdrop trong suốt đóng context menu dòng báo cáo (ram-menu z-index 9999) ── */
.bqt-ctx-backdrop[b-3jnpjunbp4] {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
}

/* Ổ khoá báo hiệu QLKH bị khoá theo tài khoản đăng nhập (không có quyền "Xem tất cả QLKH") */
.bqt-qlkh-lock[b-3jnpjunbp4] {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 10px;
    pointer-events: none;
    z-index: 1;
}
/* /Components/Pages/BaoCao/BaoCaoSanLuong.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════════════
   Báo cáo sản lượng — UI hiện đại
   ═══════════════════════════════════════════════════════════════════════ */

.bcsl-view[b-0r1dt3vlki] {
    display: flex;
    flex-direction: column;
}

/* ── Date range trên toolbar ── */
.bcsl-date-range[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bcsl-date-icon[b-0r1dt3vlki] {
    color: var(--brand);
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.bcsl-date-sep[b-0r1dt3vlki] {
    color: var(--text-faint);
    font-size: 11px;
    flex-shrink: 0;
}

.bcsl-date-range .inputd-shell[b-0r1dt3vlki] {
    height: 30px;
    min-height: 30px;
    border-radius: 7px;
}

.bcsl-date-range .inputd-input[b-0r1dt3vlki] {
    font-size: 12.5px;
    padding: 0 6px 0 10px;
}

/* ── Filter dialog ── */
.bcsl-filter-form[b-0r1dt3vlki] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0;
}

.bcsl-filter-row[b-0r1dt3vlki] {
    display: flex;
    gap: 10px;
}

/* Ổ khoá báo hiệu QLKH bị khoá theo tài khoản đăng nhập (không có quyền "Xem tất cả QLKH") */
.bcsl-qlkh-lock[b-0r1dt3vlki] {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 10px;
    pointer-events: none;
    z-index: 1;
}

.bcsl-filter-section-title[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.bcsl-filter-section-title:first-child[b-0r1dt3vlki] {
    margin-top: 0;
}

.bcsl-filter-section-title span:last-child[b-0r1dt3vlki] {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .4px;
}

.bcsl-accent-bar[b-0r1dt3vlki] {
    width: 4px;
    height: 16px;
    border-radius: 99px;
    flex-shrink: 0;
}

.bcsl-accent-time .bcsl-accent-bar[b-0r1dt3vlki] { background: linear-gradient(180deg, #6366f1, #8b5cf6); }
.bcsl-accent-customer .bcsl-accent-bar[b-0r1dt3vlki] { background: linear-gradient(180deg, #3b82f6, #06b6d4); }
.bcsl-accent-transport .bcsl-accent-bar[b-0r1dt3vlki] { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.bcsl-accent-hr .bcsl-accent-bar[b-0r1dt3vlki] { background: linear-gradient(180deg, #10b981, #14b8a6); }
.bcsl-accent-docs .bcsl-accent-bar[b-0r1dt3vlki] { background: linear-gradient(180deg, #8b5cf6, #ec4899); }

/* ── Error / info banners ── */
.bcsl-error-banner[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, .18);
}

.bcsl-info-banner[b-0r1dt3vlki] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 13px;
    margin-bottom: 6px;
    background: var(--warning-soft);
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.5;
    display:none;
}

.bcsl-info-banner-error[b-0r1dt3vlki] {
    color: var(--danger);
}

/* ── Loading state ── */
.bcsl-loading[b-0r1dt3vlki] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 0;
    color: var(--text-muted);
}

.bcsl-loading-spinner[b-0r1dt3vlki] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand);
    animation: bcsl-spin-b-0r1dt3vlki .85s linear infinite;
}

.bcsl-loading p[b-0r1dt3vlki] {
    font-size: 13px;
    margin: 0;
}

@keyframes bcsl-spin-b-0r1dt3vlki {
    to { transform: rotate(360deg); }
}

/* ── GroupBy segmented bar - nổi bật, fullwidth ── */
.bcsl-groupby-bar[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    flex-shrink: 0;
}

.bcsl-groupby-nav[b-0r1dt3vlki] {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all .15s ease;
}

.bcsl-groupby-nav:hover[b-0r1dt3vlki] {
    border-color: var(--brand);
    color: var(--brand-700);
    background: var(--brand-soft);
}

.bcsl-groupby-nav:active[b-0r1dt3vlki] {
    transform: scale(.92);
}

.bcsl-groupby-scroll[b-0r1dt3vlki] {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    flex: 1 1 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.bcsl-groupby-scroll[b-0r1dt3vlki]::-webkit-scrollbar { display: none; }

.bcsl-groupby-chip[b-0r1dt3vlki] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.bcsl-groupby-chip i[b-0r1dt3vlki] {
    font-size: 13px;
}

.bcsl-groupby-chip:hover[b-0r1dt3vlki] {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 3px 8px rgba(15, 157, 79, .15);
}

.bcsl-groupby-chip.active[b-0r1dt3vlki] {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-700);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 157, 79, .15);
}

/* ── Detail toggle trong toolbar - compact, đẹp ── */
.bcsl-detail-toggle[b-0r1dt3vlki] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all .16s ease;
    height: 26px;
}

.bcsl-detail-toggle:hover[b-0r1dt3vlki] {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.bcsl-detail-toggle input[b-0r1dt3vlki] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bcsl-detail-toggle-track[b-0r1dt3vlki] {
    position: relative;
    width: 30px;
    height: 16px;
    border-radius: 99px;
    background: #cbd5e1;
    transition: background var(--transition);
    flex-shrink: 0;
}

.bcsl-detail-toggle-thumb[b-0r1dt3vlki] {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform var(--transition);
}

.bcsl-detail-toggle input:checked + .bcsl-detail-toggle-track[b-0r1dt3vlki] {
    background: var(--brand);
}

.bcsl-detail-toggle input:checked + .bcsl-detail-toggle-track .bcsl-detail-toggle-thumb[b-0r1dt3vlki] {
    transform: translateX(14px);
}

.bcsl-detail-toggle-label[b-0r1dt3vlki] {
    font-size: 11.5px;
    color: #475569;
    font-weight: 500;
}

/* ── Data table - fix scrollbar và footer sticky ── */
.bcsl-data-grid[b-0r1dt3vlki] {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 400px;
}

.bcsl-table-scroll[b-0r1dt3vlki] {
    overflow: auto;
    position: relative;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar nhỏ gọn */
.bcsl-table-scroll[b-0r1dt3vlki]::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.bcsl-table-scroll[b-0r1dt3vlki]::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.bcsl-table-scroll[b-0r1dt3vlki]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.bcsl-table-scroll[b-0r1dt3vlki]::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

.bcsl-grid-table[b-0r1dt3vlki] {
    min-width: 100% !important;
    table-layout: auto !important;
}

.bcsl-grid-table td[b-0r1dt3vlki],
.bcsl-grid-table th[b-0r1dt3vlki] {
    padding: 0 10px !important;
}

/* ── Sticky columns - left set động bởi JS ── */
.bcsl-grid-table .sticky-col-sl[b-0r1dt3vlki] {
    position: sticky !important;
    z-index: 6 !important;
    box-shadow: 1px 0 0 var(--border), 4px 0 8px rgba(15, 23, 42, .04);
}

.bcsl-grid-table thead th.sticky-col-sl[b-0r1dt3vlki] {
    position: sticky !important;
    z-index: 12 !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.bcsl-grid-table tfoot td.sticky-col-sl[b-0r1dt3vlki] {
    position: sticky !important;
    z-index: 11 !important;
    background: #cbd5e1 !important;
    color: #1e293b !important;
}
.bcsl-col-nhom[b-0r1dt3vlki] { min-width: 110px; max-width: 110px; }
.bcsl-col-sl[b-0r1dt3vlki] { width: 70px; min-width: 70px; white-space: nowrap; }
.bcsl-col-khoan[b-0r1dt3vlki] { min-width: 95px; }
.bcsl-col-money[b-0r1dt3vlki] { width: 105px; min-width: 105px; white-space: nowrap; }
.bcsl-col-money-sm[b-0r1dt3vlki] { width: 90px; min-width: 90px; white-space: nowrap; }
.bcsl-col-percent[b-0r1dt3vlki] { width: 62px; min-width: 62px; white-space: nowrap; }
.bcsl-col-phantom[b-0r1dt3vlki] { width: 100%; border: none !important; background: transparent !important; }

/* ── Header nhẹ nhàng ── */
.bcsl-grid-table thead th[b-0r1dt3vlki] {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 10.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none !important;
    height: 28px !important;
    line-height: 28px !important;
    vertical-align: middle !important;
    z-index: 8 !important;
}

.bcsl-grid-table thead th.sticky-col[b-0r1dt3vlki] {
    background: #f1f5f9 !important;
    color: #334155 !important;
    z-index: 12 !important;
}

.bcsl-grid-table thead th.sticky-col-sl[b-0r1dt3vlki] {
    background: #e2e8f0 !important;
    color: #475569 !important;
    z-index: 12 !important;
}

/* Header group dòng 1 - sticky top:0, căn giữa */
.bcsl-grid-table thead .bcsl-thead-group th[b-0r1dt3vlki] {
    position: sticky;
    top: 0;
    z-index: 9 !important;
    text-align: center !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: #f8fafc !important;
    box-shadow: inset 0 -2px 0 #cbd5e1;
}

.bcsl-grid-table thead .bcsl-thead-group th.sticky-col[b-0r1dt3vlki] {
    z-index: 12 !important;
    background: #f1f5f9 !important;
    box-shadow: 1px 0 0 var(--border), 8px 0 12px rgba(15, 23, 42, .04), inset 0 -2px 0 #94a3b8;
}

.bcsl-grid-table thead .bcsl-thead-group th.sticky-col-sl[b-0r1dt3vlki] {
    z-index: 12 !important;
    background: #e2e8f0 !important;
    box-shadow: 1px 0 0 var(--border), 4px 0 8px rgba(15, 23, 42, .04), inset 0 -2px 0 #94a3b8;
}

/* Header detail dòng 2 - sticky top: 28px chính xác, no border-top */
.bcsl-grid-table thead .bcsl-thead-detail th[b-0r1dt3vlki] {
    position: sticky !important;
    top: 28px !important;
    z-index: 10 !important;
    background: #f8fafc !important;
    border-top: 0 !important;
    box-shadow: inset 0 -2px 0 #94a3b8;
}

.bcsl-grid-table thead .bcsl-thead-detail th.sticky-col-sl[b-0r1dt3vlki] {
    z-index: 12 !important;
    background: #e2e8f0 !important;
}

/* Header cột 1 căn trái */
.bcsl-grid-table thead th.bcsl-col-nhom[b-0r1dt3vlki] {
    text-align: left !important;
    padding-left: 12px !important;
}

/* Header zone colors - nhẹ nhàng, không gradient */
.bcsl-grid-table thead .bcsl-zone-thu[b-0r1dt3vlki]      { background: #dcfce7 !important; color: #15803d !important; }
.bcsl-grid-table thead .bcsl-zone-chi[b-0r1dt3vlki]      { background: #fee2e2 !important; color: #b91c1c !important; }
.bcsl-grid-table thead .bcsl-zone-thu-ho[b-0r1dt3vlki]   { background: #eff6ff !important; color: #1d4ed8 !important; }
.bcsl-grid-table thead .bcsl-zone-chi-ho[b-0r1dt3vlki]   { background: #fffbeb !important; color: #b45309 !important; }
.bcsl-grid-table thead .bcsl-zone-loinhuan[b-0r1dt3vlki] { background: #f0fdf4 !important; color: #15803d !important; }
.bcsl-grid-table thead .bcsl-zone-tysuatln[b-0r1dt3vlki] { background: #f0fdf4 !important; color: #15803d !important; }
.bcsl-grid-table thead .bcsl-zone-khoan-thu[b-0r1dt3vlki] { background: #f0fdf4 !important; color: #065f46 !important; }
.bcsl-grid-table thead .bcsl-zone-khoan-chi[b-0r1dt3vlki] { background: #fef2f2 !important; color: #991b1b !important; }

/* ── Border DÀY giữa các nhóm cột (đường phân cách nhóm) ──
   Chỉ áp cho cột ĐẦU của mỗi nhóm (class bcsl-group-start) */
.bcsl-grid-table .bcsl-group-start.bcsl-zone-thu[b-0r1dt3vlki]       { border-left: 3px solid #4ade80 !important; }
.bcsl-grid-table .bcsl-group-start.bcsl-zone-chi[b-0r1dt3vlki]       { border-left: 3px solid #f87171 !important; }
.bcsl-grid-table .bcsl-group-start.bcsl-zone-loinhuan[b-0r1dt3vlki]  { border-left: 3px solid #34d399 !important; }
.bcsl-grid-table .bcsl-group-start.bcsl-zone-khoan-thu[b-0r1dt3vlki] { border-left: 3px solid #34d399 !important; }
.bcsl-grid-table .bcsl-group-start.bcsl-zone-khoan-chi[b-0r1dt3vlki] { border-left: 3px solid #f87171 !important; }

/* ── Body cells ── */
.bcsl-grid-table tbody td[b-0r1dt3vlki] {
    height: 30px !important;
    font-size: 11.5px !important;
}

.bcsl-grid-table tbody tr:hover td[b-0r1dt3vlki]                   { background: #f8fafc !important; }
.bcsl-grid-table tbody tr:hover td.sticky-col[b-0r1dt3vlki]        { background: #f1f5f9 !important; }
.bcsl-grid-table tbody tr:hover td.sticky-col-sl[b-0r1dt3vlki]     { background: #e9eef5 !important; }
.bcsl-grid-table tbody tr:hover .bcsl-zone-thu[b-0r1dt3vlki]       { background: rgba(187,247,208,.55) !important; }
.bcsl-grid-table tbody tr:hover .bcsl-zone-chi[b-0r1dt3vlki]       { background: rgba(252,165,165,.45) !important; }
.bcsl-grid-table tbody tr:hover .bcsl-zone-loinhuan[b-0r1dt3vlki]  { background: rgba(110,231,183,.35) !important; }
.bcsl-grid-table tbody tr:hover .bcsl-zone-khoan-thu[b-0r1dt3vlki] { background: rgba(167,243,208,.4) !important; }
.bcsl-grid-table tbody tr:hover .bcsl-zone-khoan-chi[b-0r1dt3vlki] { background: rgba(254,202,202,.4) !important; }

.bcsl-grid-table tbody td.cell-strong[b-0r1dt3vlki] { font-weight: 600; }
.bcsl-grid-table tbody .bcsl-zone-thu[b-0r1dt3vlki]      { background: rgba(220,252,231,.35) !important; color: #166534; }
.bcsl-grid-table tbody .bcsl-zone-chi[b-0r1dt3vlki]      { background: rgba(254,226,226,.35) !important; color: #991b1b; }
.bcsl-grid-table tbody .bcsl-zone-thu-ho[b-0r1dt3vlki]   { background: rgba(219,234,254,.3)  !important; color: #1e40af; }
.bcsl-grid-table tbody .bcsl-zone-chi-ho[b-0r1dt3vlki]   { background: rgba(254,243,199,.35) !important; color: #92400e; }
.bcsl-grid-table tbody .bcsl-zone-loinhuan[b-0r1dt3vlki] { background: rgba(209,250,229,.4)  !important; }
.bcsl-grid-table tbody .bcsl-zone-tysuatln[b-0r1dt3vlki] { background: rgba(209,250,229,.2)  !important; }
.bcsl-grid-table tbody .bcsl-zone-khoan-thu[b-0r1dt3vlki] { background: rgba(220,252,231,.2) !important; color: #166534; font-size: 11px !important; border-left: 1px solid rgba(52,211,153,.25) !important; }
.bcsl-grid-table tbody .bcsl-zone-khoan-chi[b-0r1dt3vlki] { background: rgba(254,226,226,.2) !important; color: #991b1b; font-size: 11px !important; border-left: 1px solid rgba(248,113,113,.25) !important; }

.bcsl-stt[b-0r1dt3vlki] { color: var(--text-faint); font-size: 9.5px; margin-right: 3px; }

/* ── Footer sticky - gọn gàng, nhẹ nhàng ── */
.bcsl-grid-table tfoot[b-0r1dt3vlki] { 
    position: sticky; 
    bottom: 0; 
    z-index: 10; 
}

.bcsl-total-row td[b-0r1dt3vlki] {
    background: #f8fafc !important;
    font-weight: 600;
    font-size: 11px !important;
    height: 30px !important;
    border-top: 2px solid #cbd5e1 !important;
    box-shadow: 0 -3px 8px rgba(0,0,0,.08);
    color: #334155 !important;
}

.bcsl-total-row td.sticky-col[b-0r1dt3vlki] {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    z-index: 11;
}

.bcsl-total-row td.sticky-col-sl[b-0r1dt3vlki] {
    background: #cbd5e1 !important;
    color: #1e293b !important;
    z-index: 11;
}

.bcsl-total-row td.sticky-col i[b-0r1dt3vlki]  { color: #475569; font-size: 11px; margin-right: 4px; }
.bcsl-total-row td i[b-0r1dt3vlki]             { margin-right: 3px; font-size: 10px; opacity: .6; }

.bcsl-total-row .bcsl-zone-thu[b-0r1dt3vlki]      { background: rgba(220,252,231,.6) !important; color: #166534 !important; }
.bcsl-total-row .bcsl-zone-chi[b-0r1dt3vlki]      { background: rgba(254,226,226,.6) !important; color: #991b1b !important; }
.bcsl-total-row .bcsl-zone-thu-ho[b-0r1dt3vlki]   { background: rgba(219,234,254,.5) !important; color: #1e40af !important; }
.bcsl-total-row .bcsl-zone-chi-ho[b-0r1dt3vlki]   { background: rgba(254,243,199,.5) !important; color: #92400e !important; }
.bcsl-total-row .bcsl-zone-loinhuan[b-0r1dt3vlki] { background: rgba(187,247,208,.6) !important; color: #14532d !important; }
.bcsl-total-row .bcsl-zone-tysuatln[b-0r1dt3vlki] { background: rgba(209,250,229,.5) !important; color: #065f46 !important; }
.bcsl-total-row .bcsl-zone-khoan-thu[b-0r1dt3vlki] { background: rgba(220,252,231,.4) !important; color: #166534 !important; border-left: 2px solid #86efac !important; }
.bcsl-total-row .bcsl-zone-khoan-chi[b-0r1dt3vlki] { background: rgba(254,226,226,.4) !important; color: #991b1b !important; border-left: 2px solid #fca5a5 !important; }

/* ── Toolbar đẹp và tách biệt ── */
.bcsl-view .page-toolbar[b-0r1dt3vlki] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 5px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.bcsl-view .page-toolbar-left[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Input date compact tối đa */
.bcsl-date-range .inputd-shell[b-0r1dt3vlki] {
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    border-radius: 6px;
    line-height: 26px !important;
}

.bcsl-date-range .inputd-input[b-0r1dt3vlki] {
    font-size: 11.5px !important;
    padding: 0 4px 0 6px !important;
    height: 24px !important;
    line-height: 24px !important;
}

.bcsl-date-range .inputd-calendar-icon[b-0r1dt3vlki] {
    font-size: 12px !important;
}

/* ── Footer bar - ngoài scroll div ── */
.bcsl-footer-bar[b-0r1dt3vlki] {
    flex-shrink: 0;
    overflow: hidden;
    border-top: 2px solid #cbd5e1;
    box-shadow: 0 -3px 8px rgba(0,0,0,.08);
}

.bcsl-footer-table[b-0r1dt3vlki] {
    min-width: 100% !important;
    table-layout: auto !important;
}

/* ── Search group trên toolbar ── */
.bcsl-search-group[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid #e2e8f0;
    margin-left: 2px;
}

.bcsl-search-input[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease;
}

.bcsl-search-input:focus-within[b-0r1dt3vlki] {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15,157,79,.1);
}

.bcsl-search-input i[b-0r1dt3vlki] {
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
}

.bcsl-search-input input[b-0r1dt3vlki] {
    border: none;
    outline: none;
    background: transparent;
    font-size: 11.5px;
    color: #334155;
    width: 120px;
    padding: 0;
    height: 28px;
}

.bcsl-search-input input[b-0r1dt3vlki]::placeholder {
    color: #94a3b8;
}

.page-toolbar-left .form-control[b-0r1dt3vlki] {
    height: 30px !important;
    border-radius: 12px;
}

.inputd-shell .inputd-input[b-0r1dt3vlki] {
    padding-right: 60px;
    height: 30px !important;
    font-size: 13px !important;
    text-align: center;
    border-radius: 6px;
}
.bcsl-grid-table tfoot[b-0r1dt3vlki]{
    background-color:#fff;
}
/* ── Filter button badge ── */
.bcsl-filter-btn-wrap[b-0r1dt3vlki] {
    position: relative;
    display: inline-flex;
}

.bcsl-filter-badge[b-0r1dt3vlki] {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid #fff;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   Expand Detail — accordion drill-down
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Master row — clickable ── */
.bcsl-master-row[b-0r1dt3vlki] {
    cursor: pointer;
    transition: background .12s ease;
}

.bcsl-master-row:hover td[b-0r1dt3vlki] {
    background: #f0fdf4 !important;
}

.bcsl-master-row:hover td.sticky-col[b-0r1dt3vlki] {
    background: #e8f5e9 !important;
}

.bcsl-master-row:hover td.sticky-col-sl[b-0r1dt3vlki] {
    background: #dcedc8 !important;
}

/* Master row khi đang expand — highlight rõ, sticky */
.bcsl-master-expanded td[b-0r1dt3vlki] {
    background: #d1fae5 !important;
    font-weight: 700;
    border-bottom: 2px solid var(--brand) !important;
}

.bcsl-master-expanded td.sticky-col[b-0r1dt3vlki] {
    background: #bbf7d0 !important;
    border-left: 3px solid var(--brand) !important;
}

.bcsl-master-expanded td.sticky-col-sl[b-0r1dt3vlki] {
    background: #86efac !important;
}

/* Master expanded — sticky top để luôn nhìn thấy khi scroll detail */
.bcsl-master-expanded td[b-0r1dt3vlki] {
    position: sticky;
    top: 56px;
    z-index: 3;
}

/* Chevron icon */
.bcsl-expand-icon[b-0r1dt3vlki] {
    font-size: 10px;
    color: #94a3b8;
    margin-right: 4px;
    transition: color .15s;
    display: inline-block;
}

.bcsl-master-expanded .bcsl-expand-icon[b-0r1dt3vlki] {
    color: var(--brand);
}

/* ── Detail row — trực tiếp trong tbody master ── */
.bcsl-detail-row td[b-0r1dt3vlki] {
    height: 26px !important;
    font-size: 10.5px !important;
    background: #fafcfe !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.bcsl-detail-row td:first-child[b-0r1dt3vlki] {
    border-left: 3px solid var(--brand) !important;
}

.bcsl-detail-row:hover td[b-0r1dt3vlki] {
    background: #eff6ff !important;
}

/* Detail row zone colors — nhạt hơn master */
.bcsl-detail-row .bcsl-zone-thu[b-0r1dt3vlki]      { background: rgba(220,252,231,.15) !important; color: #166534; }
.bcsl-detail-row .bcsl-zone-chi[b-0r1dt3vlki]      { background: rgba(254,226,226,.15) !important; color: #991b1b; }
.bcsl-detail-row .bcsl-zone-thu-ho[b-0r1dt3vlki]   { background: rgba(219,234,254,.1) !important; color: #1e40af; }
.bcsl-detail-row .bcsl-zone-chi-ho[b-0r1dt3vlki]   { background: rgba(254,243,199,.15) !important; color: #92400e; }
.bcsl-detail-row .bcsl-zone-loinhuan[b-0r1dt3vlki] { background: rgba(209,250,229,.18) !important; }
.bcsl-detail-row .bcsl-zone-tysuatln[b-0r1dt3vlki] { background: rgba(209,250,229,.08) !important; }
.bcsl-detail-row .bcsl-zone-khoan-thu[b-0r1dt3vlki] { background: rgba(220,252,231,.08) !important; color: #166534; border-left: 1px solid rgba(52,211,153,.12) !important; }
.bcsl-detail-row .bcsl-zone-khoan-chi[b-0r1dt3vlki] { background: rgba(254,226,226,.08) !important; color: #991b1b; border-left: 1px solid rgba(248,113,113,.12) !important; }

/* ── Detail cell name: SốQT + ⓘ + Ngày giờ ── */
.bcsl-detail-cell-name[b-0r1dt3vlki] {
    padding-left: 20px !important;
    white-space: nowrap;
    overflow: visible !important;
}

/* Số quyết toán — màu tối, rõ nét */
.bcsl-detail-qt[b-0r1dt3vlki] {
    font-weight: 700;
    color: #1e293b;
    font-size: 11px;
    margin-right: 2px;
}

/* Ngày giờ — rõ nét hơn */
.bcsl-detail-date[b-0r1dt3vlki] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-left: auto;
    padding-left: 8px;
    float: right;
}

/* ── Tooltip icon ── */
.bcsl-detail-info-icon[b-0r1dt3vlki] {
    font-size: 11px;
    color: #94a3b8;
    margin: 0 5px;
    cursor: help;
    transition: color .15s;
}

.bcsl-detail-info-icon:hover[b-0r1dt3vlki] {
    color: var(--brand);
}

/* ── Chuyến chưa có quyết toán — bôi mờ, cell trống ── */
.bcsl-detail-no-qt td[b-0r1dt3vlki] {
    opacity: .35;
}

.bcsl-detail-no-qt:hover td[b-0r1dt3vlki] {
    opacity: .55;
}

/* ── Loading row ── */
.bcsl-detail-loading-row > td[b-0r1dt3vlki] {
    background: #fafcfe !important;
    border-left: 3px solid var(--brand) !important;
}

.bcsl-detail-loading[b-0r1dt3vlki] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    color: #64748b;
    font-size: 12px;
}

.bcsl-loading-spinner-sm[b-0r1dt3vlki] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    border-top-color: var(--brand);
    animation: bcsl-spin-b-0r1dt3vlki .7s linear infinite;
}

/* ── Empty row ── */
.bcsl-detail-empty-row > td[b-0r1dt3vlki] {
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    padding: 14px 0 !important;
    background: #fafcfe !important;
    border-left: 3px solid var(--brand) !important;
}

.bcsl-detail-empty-row i[b-0r1dt3vlki] {
    margin-right: 4px;
}

/* ── Thanh cuộn chính — luôn hiển thị ── */
.bcsl-table-scroll[b-0r1dt3vlki] {
    scrollbar-gutter: stable;
}
/* /Components/Pages/DanhMuc/DoiTacVanHanh/PageCauHinhQuyetToan.razor.rz.scp.css */
/* =========================================================================
   Trang cấu hình công thức quyết toán vận tải
   Style scoped cho PageCauHinhQuyetToan.razor
   Bám sát theme chung (CSS vars trong style.css) + compact hiện đại.
   ========================================================================= */

/* ── Layout tổng ──
   Fix lỗi KHÔNG cuộn: style.css có media query <=1100px ghi đè .page-view
   thành height:auto, kết hợp body{overflow:hidden} khiến nội dung bị cắt.
   Ở đây ép lại chiều cao cố định + min-height:0 để vùng cuộn luôn hoạt động.
   (Selector scoped .ctqt-view[b-xxx] có specificity cao hơn .page-view). */
.ctqt-view[b-yjt4aievdj] {
    /* !important: thắng media query <=1100px trong style.css (height:auto) và
       min-height:520px của .page-view — đảm bảo luôn có chiều cao cố định để
       vùng con bên trong cuộn được. */
    height: calc(100vh - var(--topbar-h)) !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Vùng nội dung chính: chiếm hết chiều cao còn lại và tự cuộn dọc.
   QUAN TRỌNG: để dạng block (giống .table-scroll chuẩn) — KHÔNG đặt flex column
   vì các thẻ .panel là component con (PanelCard) có overflow:hidden + flex-shrink:1,
   nếu đặt flex column chúng sẽ bị co lại và cắt mất nội dung card. */
.ctqt-scroll[b-yjt4aievdj] {
    flex: 1 0 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
}

/* PanelCard mặc định margin-bottom:22px — rút còn 12px cho gọn.
   Dùng ::deep vì .panel nằm trong component con (scope attribute khác). */
.ctqt-scroll[b-yjt4aievdj]  .panel {
    margin-bottom: 12px;
}

/* Thu gọn header/body của panel cho gọn gàng (::deep để xuyên scope). */
.ctqt-scroll[b-yjt4aievdj]  .panel-header {
    padding: 9px 14px;
}
.ctqt-scroll[b-yjt4aievdj]  .panel-body:not(.no-pad) {
    padding: 12px 14px;
}

/* ── Header giới thiệu (compact, nút tải lại nằm chung 1 hàng) ── */
.ctqt-header[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15,157,79,.06), rgba(255,255,255,0) 55%);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}
.ctqt-header-main[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.ctqt-header-icon[b-yjt4aievdj] {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #16a34a, #0f9d4f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(15, 157, 79, .32);
}
.ctqt-header-text[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.ctqt-header-name[b-yjt4aievdj] {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
}
.ctqt-header-desc[b-yjt4aievdj] {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Mô tả chức năng (info bar dưới mỗi tiêu đề panel) ── */
.ctqt-desc[b-yjt4aievdj] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.ctqt-desc i[b-yjt4aievdj] {
    color: var(--brand);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}
.ctqt-desc b[b-yjt4aievdj] { color: #334155; }
.ctqt-desc code[b-yjt4aievdj] {
    background: #eef2f7;
    padding: 0 4px;
    border-radius: 4px;
    font-family: var(--font-mono, Consolas, 'SF Mono', monospace);
    font-size: 11px;
    color: #334155;
}

/* ── Trạng thái không có quyền / đang tải ── */
.ctqt-noaccess[b-yjt4aievdj] {
    padding: 10px;
    user-select: none;
}

.ctqt-loading[b-yjt4aievdj] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 40px;
}
.ctqt-loading .spinner-border[b-yjt4aievdj] {
    color: var(--brand);
}

/* ── Bảng config (phẳng, hiện đại, KHÔNG border-radius) ──
   KHÔNG dùng .grid-table (min-width:3000px) cho bảng nhỏ này. */
.ctqt-table[b-yjt4aievdj] {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 12.5px;
    color: var(--text-main);
}

/* Header — phẳng, chữ hoa nhỏ, viền đáy đậm tạo điểm nhấn */
.ctqt-table thead th[b-yjt4aievdj] {
    position: sticky;
    top: 0;
    z-index: 3;
    text-align: left;
    padding: 10px 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
.ctqt-table thead th.ctqt-c[b-yjt4aievdj] { text-align: center; }
.ctqt-table thead th.ctqt-r[b-yjt4aievdj] { text-align: right; }

/* Ô — chỉ phân cách theo hàng (không viền dọc), rộng rãi dễ đọc */
.ctqt-table tbody td[b-yjt4aievdj] {
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #1e293b;
    transition: background .12s ease;
}
.ctqt-table tbody tr:last-child td[b-yjt4aievdj] { border-bottom: none; }

/* Zebra striping + hover — tăng khả năng quét dòng */
.ctqt-table tbody tr:nth-child(even) td[b-yjt4aievdj] { background: #fafbfc; }
.ctqt-table tbody tr:hover td[b-yjt4aievdj] { background: #f1f5f9; }

/* Căn chỉnh theo cột */
.ctqt-c[b-yjt4aievdj] { text-align: center !important; }
.ctqt-r[b-yjt4aievdj] { text-align: right !important; font-variant-numeric: tabular-nums; }

/* Độ rộng cột */
.ctqt-col-ma[b-yjt4aievdj]  { width: 120px; min-width: 90px; }
.ctqt-col-loai[b-yjt4aievdj]{ width: 128px; }
.ctqt-col-stt[b-yjt4aievdj] { width: 64px; }
.ctqt-col-kieu[b-yjt4aievdj]{ width: 84px; }
.ctqt-col-default[b-yjt4aievdj] { width: 108px; }
.ctqt-col-hienthi[b-yjt4aievdj] { width: 122px; }
.ctqt-col-act[b-yjt4aievdj] { width: 92px; }

/* Checkbox "mặc định bật" (per mã dòng) */
.ctqt-check[b-yjt4aievdj] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #16a34a;
    vertical-align: middle;
}
.ctqt-check:disabled[b-yjt4aievdj] { cursor: not-allowed; opacity: .55; }

/* Ô rỗng (chưa có dữ liệu) */
.ctqt-empty-cell[b-yjt4aievdj] {
    padding: 0 !important;
    background: transparent !important;
}

/* Dòng tiêu đề nhóm (LoaiDong == 1) — tô nhẹ xanh, nổi bật */
.ctqt-table tbody tr.ctqt-row-group td[b-yjt4aievdj] {
    background: #f4f9f5;
    font-weight: 600;
    color: #0a6e37;
}
.ctqt-table tbody tr.ctqt-row-group:hover td[b-yjt4aievdj] { background: #ecf5ef; }

/* Văn bản mờ */
.ctqt-muted[b-yjt4aievdj] { color: var(--text-faint); }

/* ── Chip mã (mono) ── */
.ctqt-chip[b-yjt4aievdj] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef2f7;
    color: #334155;
    font-family: var(--font-mono, Consolas, 'SF Mono', monospace);
    font-size: 11.5px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 2px;
    line-height: 1.4;
    white-space: nowrap;
}
.ctqt-chip:last-child[b-yjt4aievdj] { margin-right: 0; }
.ctqt-chip b[b-yjt4aievdj] { font-weight: 700; }

.ctqt-chip.is-ma[b-yjt4aievdj] {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}
.ctqt-chip.is-ok[b-yjt4aievdj] { background: var(--success-soft); color: #166534; }
.ctqt-chip.is-err[b-yjt4aievdj]{ background: var(--danger-soft); color: #b91c1c; }

/* ── Nhãn Loại dòng / Kiểu cột trên bảng — flat, không nền không viền ── */
.ctqt-flat[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ctqt-flat i[b-yjt4aievdj] { font-size: 12px; opacity: .75; }
.ctqt-flat.is-nhom[b-yjt4aievdj] { color: #64748b; }
.ctqt-flat.is-ct[b-yjt4aievdj] { color: #334155; }
.ctqt-flat.is-thu[b-yjt4aievdj] { color: #15803d; }
.ctqt-flat.is-chi[b-yjt4aievdj] { color: #b91c1c; }
.ctqt-flat.is-lai[b-yjt4aievdj] { color: #0369a1; }

/* ── Cột Biểu thức trên bảng — chips giống hệt màn hình dialog ── */
.ctqt-expr-chips[b-yjt4aievdj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.ctqt-expr-chips .ctqt-chip.tok[b-yjt4aievdj] { font-size: 11px; padding: 1px 6px; }
.ctqt-expr-chips .ctqt-f-op[b-yjt4aievdj] { font-size: 13px; min-width: 14px; }
.ctqt-expr-chips .ctqt-f-paren[b-yjt4aievdj] { font-size: 13px; min-width: 8px; }

/* ── Ô biểu thức (mono) ── */
.ctqt-expr[b-yjt4aievdj] {
    font-family: var(--font-mono, Consolas, 'SF Mono', monospace);
    font-size: 12px;
    color: #334155;
    word-break: break-word;
}

/* ── Khối tính lại dữ liệu cũ ── */
.ctqt-recalc[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ctqt-recalc-row[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.ctqt-arrow[b-yjt4aievdj] {
    color: var(--text-faint);
    font-size: 14px;
    flex-shrink: 0;
}

.ctqt-spacer[b-yjt4aievdj] {
    flex: 1 1 auto;
    min-width: 8px;
}

.ctqt-recalc-warn[b-yjt4aievdj] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.5;
}
.ctqt-recalc-warn i[b-yjt4aievdj] {
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 1px;
}

.ctqt-recalc-loading[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}
.ctqt-recalc-loading-row[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 9px;
}
.ctqt-recalc-loading .spinner-border[b-yjt4aievdj] {
    color: var(--brand);
}
.ctqt-progress[b-yjt4aievdj] {
    height: 8px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.ctqt-progress-bar[b-yjt4aievdj] {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #22c55e);
    border-radius: 999px;
    transition: width .25s ease;
}

/* ── Kết quả tính lại ── */
.ctqt-result[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 2px;
}

.ctqt-result-summary[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ctqt-badge[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}
.ctqt-badge.is-ok[b-yjt4aievdj]  { background: var(--success-soft); color: #166534; }
.ctqt-badge.is-dry[b-yjt4aievdj] { background: var(--info-soft); color: #155e75; }

.ctqt-errors[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 12px;
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    border-radius: 8px;
}
.ctqt-error-item[b-yjt4aievdj] {
    font-size: 12px;
    color: #b91c1c;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.ctqt-error-item i[b-yjt4aievdj] { flex-shrink: 0; margin-top: 1px; }

/* ── Bảng xem trước kết quả ── */
.ctqt-preview-wrap[b-yjt4aievdj] {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.ctqt-preview[b-yjt4aievdj] {
    min-width: 880px;
    font-size: 12px;
}
.ctqt-preview thead th[b-yjt4aievdj] {
    padding: 7px 10px;
    text-align: right;
}
.ctqt-preview thead th:first-child[b-yjt4aievdj] { text-align: left; }
.ctqt-preview tbody td[b-yjt4aievdj] {
    padding: 6px 10px;
}

.ctqt-cell-name[b-yjt4aievdj] {
    font-weight: 600;
    white-space: nowrap;
}

.ctqt-diff[b-yjt4aievdj] {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ctqt-diff s[b-yjt4aievdj] {
    color: var(--text-faint);
    margin-right: 6px;
}

/* ── Màu số dương/âm (do MauSo() trả về) ── */
.ctqt-view .text-success[b-yjt4aievdj] { color: #16a34a; font-weight: 600; }
.ctqt-view .text-danger[b-yjt4aievdj]  { color: #dc2626; font-weight: 600; }

/* ── Select giả lập kiểu cmb* (Loại, Cấp dòng, Loại dòng) ── */
.ctqt-select-wrap[b-yjt4aievdj] {
    position: relative;
    width: 100%;
}
.ctqt-select[b-yjt4aievdj] {
    width: 100%;
    height: var(--cmb-h, 34px);
    border: 1.5px solid var(--cmb-border, #e2e8f0);
    border-radius: var(--cmb-radius, 8px);
    background: #fff;
    padding: 0 30px 0 10px;
    font-size: 13px;
    font-weight: 400;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ctqt-select:hover[b-yjt4aievdj] {
    border-color: var(--cmb-border-hover, #bfcfe0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}
.ctqt-select:focus[b-yjt4aievdj] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft), 0 2px 8px rgba(15, 157, 79, .12);
    outline: none;
}
.ctqt-select-caret[b-yjt4aievdj] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    font-size: 12px;
}

/* ── Picker mã khoản (trong dialog nhóm khoản) ── */
.ctqt-ma-picker[b-yjt4aievdj] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: #fbfdfc;
}

.ctqt-ma-item[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ctqt-ma-item:hover[b-yjt4aievdj] {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 1px 4px rgba(15, 157, 79, .14);
}
.ctqt-ma-item input[type="checkbox"][b-yjt4aievdj] {
    accent-color: var(--brand);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.ctqt-ma-item span[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
    font-family: var(--font-mono, Consolas, 'SF Mono', monospace);
    font-weight: 600;
    color: #334155;
}
.ctqt-ma-item small[b-yjt4aievdj] {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Dialog (style như dialog "Bố trí xe": header + footer hiện đại) ── */
.ctqt-dlg-backdrop[b-yjt4aievdj] {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ctqt-fadeIn-b-yjt4aievdj .15s cubic-bezier(.22, 1, .36, 1) both;
}
.ctqt-dlg-panel[b-yjt4aievdj] {
    position: relative;
    width: min(880px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    animation: ctqt-dialogPop-b-yjt4aievdj .15s cubic-bezier(.22, 1, .36, 1) both;
}
.ctqt-dlg-heading[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.ctqt-dlg-heading-icon[b-yjt4aievdj] {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #16a34a, #0f9d4f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 3px 8px rgba(15, 157, 79, .32);
}
.ctqt-dlg-heading-title[b-yjt4aievdj] {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}
.ctqt-dlg-heading-meta[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
}
.ctqt-dlg-close[b-yjt4aievdj] {
    flex-shrink: 0;
    margin-left: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 3px 5px;
    border-radius: 6px;
}
.ctqt-dlg-close:hover[b-yjt4aievdj] { color: #334155; background: #f1f5f9; }
.ctqt-dlg-body[b-yjt4aievdj] {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 0 0 5px;
}
.ctqt-dlg-body .app-row[b-yjt4aievdj] { gap: 5px !important; }
.ctqt-dlg-body .app-form-group[b-yjt4aievdj] { margin-bottom: 5px; }
.ctqt-dlg-actions[b-yjt4aievdj] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    margin-top: 6px;
    border-top: 1px solid #eef2f7;
    flex-shrink: 0;
}
.ctqt-dlg-actions .btn[b-yjt4aievdj] { height: 32px; min-height: 32px; padding-top: 0; padding-bottom: 0; }

@keyframes ctqt-fadeIn-b-yjt4aievdj {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes ctqt-dialogPop-b-yjt4aievdj {
    from { opacity: 0; transform: translateY(6px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive: màn hình hẹp ── */
@media (max-width: 640px) {
    .ctqt-ma-picker[b-yjt4aievdj] { grid-template-columns: 1fr; }
    .ctqt-header-desc[b-yjt4aievdj] { display: none; }
}

/* ── GUI builder biểu thức (kiểu máy tính) ── */
.ctqt-builder[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid #e6ecf3;
    border-radius: 10px;
    padding: 8px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

/* ── Màn hình biểu thức (light) ── */
.ctqt-display[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.ctqt-display-head[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ctqt-display-label[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
}
.ctqt-display-label i[b-yjt4aievdj] { font-size: 13px; color: var(--brand); }
.ctqt-display-clear[b-yjt4aievdj] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 600;
    color: #b91c1c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 7px;
    cursor: pointer;
    transition: all .12s ease;
}
.ctqt-display-clear:hover:not(:disabled)[b-yjt4aievdj] { background: #ffe4e6; border-color: #fda4af; }
.ctqt-display-clear:disabled[b-yjt4aievdj] { opacity: .4; cursor: default; }
.ctqt-display-clear i[b-yjt4aievdj] { font-size: 12px; }
.ctqt-display-formula[b-yjt4aievdj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    line-height: 1.4;
}
.ctqt-display-formula.is-empty[b-yjt4aievdj] {
    border-left-color: #cbd5e1;
}
.ctqt-formula-hint[b-yjt4aievdj] {
    color: #94a3b8;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
}

/* Toán tử (+, −, ×, ÷) hiển thị nổi bật, không có khung chip */
.ctqt-f-op[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 1px 2px;
    font-family: var(--font-mono, 'JetBrains Mono', Consolas, 'SF Mono', monospace);
    font-size: 15px;
    font-weight: 700;
    color: #4338ca;
    line-height: 1;
}

/* Ngoặc đơn */
.ctqt-f-paren[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    font-family: var(--font-mono, 'JetBrains Mono', Consolas, 'SF Mono', monospace);
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
}

/* ── Chip token trong builder ── */
.ctqt-chip.tok[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    margin: 0;
    border: 1px solid transparent;
    padding: 2px 7px;
}
.ctqt-chip.tok.tok-op[b-yjt4aievdj] { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; font-weight: 700; }
.ctqt-chip.tok.tok-lp[b-yjt4aievdj],
.ctqt-chip.tok.tok-rp[b-yjt4aievdj] { background: #f8fafc; color: #64748b; border-color: #cbd5e1; }
.ctqt-chip.tok.tok-thu[b-yjt4aievdj] { background: var(--success-soft); color: #166534; border-color: #bbf7d0; }
.ctqt-chip.tok.tok-chi[b-yjt4aievdj] { background: var(--danger-soft); color: #b91c1c; border-color: #fecaca; }
.ctqt-chip.tok.tok-nhom[b-yjt4aievdj] { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.ctqt-chip.tok.tok-khoanthu[b-yjt4aievdj] { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ctqt-chip.tok.tok-khoanchi[b-yjt4aievdj] { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.ctqt-chip.tok.tok-dong[b-yjt4aievdj] { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.ctqt-chip.tok.tok-num[b-yjt4aievdj] { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

.ctqt-chip-x[b-yjt4aievdj] {
    border: none;
    background: transparent;
    color: inherit;
    opacity: .55;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
}
.ctqt-chip-x:hover[b-yjt4aievdj] { opacity: 1; }

/* ── Chip icon trong builder ── */
.ctqt-chip-ico[b-yjt4aievdj] {
    font-size: 11px;
    opacity: .85;
    flex-shrink: 0;
}

/* ── Bàn phím ── */
.ctqt-keypad[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ctqt-key-row[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ctqt-key-label[b-yjt4aievdj] {
    flex: 0 0 78px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .2px;
}
.ctqt-key-label i[b-yjt4aievdj] { font-size: 13px; color: #94a3b8; }
.ctqt-key-group[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* Nút phím chung */
.ctqt-key[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    min-width: 28px;
    padding: 0 10px;
    font-family: var(--font-mono, 'JetBrains Mono', Consolas, 'SF Mono', monospace);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #334155;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    transition: all .12s ease;
}
.ctqt-key:hover[b-yjt4aievdj] { border-color: #a5b4c8; background: #f8fafc; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(15, 23, 42, .1); }
.ctqt-key:active[b-yjt4aievdj] { transform: translateY(0); box-shadow: none; }

/* Nút xoá token cuối */
.ctqt-key.ctqt-key-del[b-yjt4aievdj] {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
    font-size: 14px;
}
.ctqt-key.ctqt-key-del:hover[b-yjt4aievdj] { background: #fef3c7; border-color: #fcd34d; color: #92400e; }

/* Nút THU / CHI */
.ctqt-key.ctqt-key-thu[b-yjt4aievdj],
.ctqt-key.ctqt-key-chi[b-yjt4aievdj] {
    height: 32px;
    min-width: 96px;
    font-family: inherit;
    font-size: 12px;
    gap: 6px;
    text-align: left;
}
.ctqt-key.ctqt-key-thu[b-yjt4aievdj] {
    color: #15803d;
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    border-color: #bbf7d0;
}
.ctqt-key.ctqt-key-thu:hover[b-yjt4aievdj] { border-color: #86efac; background: linear-gradient(180deg, #dcfce7, #bbf7d0); color: #166534; }
.ctqt-key.ctqt-key-thu i[b-yjt4aievdj] { font-size: 14px; }
.ctqt-key.ctqt-key-chi[b-yjt4aievdj] {
    color: #b91c1c;
    background: linear-gradient(180deg, #fff1f2, #ffe4e6);
    border-color: #fecdd3;
}
.ctqt-key.ctqt-key-chi:hover[b-yjt4aievdj] { border-color: #fda4af; background: linear-gradient(180deg, #ffe4e6, #fecdd3); color: #9f1239; }
.ctqt-key.ctqt-key-chi i[b-yjt4aievdj] { font-size: 14px; }
.ctqt-key.ctqt-key-thu > span[b-yjt4aievdj],
.ctqt-key.ctqt-key-chi > span[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.ctqt-key.ctqt-key-thu small[b-yjt4aievdj],
.ctqt-key.ctqt-key-chi small[b-yjt4aievdj] {
    font-size: 9px;
    font-weight: 500;
    opacity: .7;
    letter-spacing: .2px;
}

/* Nút Chèn (mở inline editor) */
.ctqt-key.ctqt-key-insert[b-yjt4aievdj] {
    height: 28px;
    min-width: 0;
    padding: 0 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #d7dee8;
}
.ctqt-key.ctqt-key-insert i[b-yjt4aievdj] { font-size: 13px; color: var(--brand); }
.ctqt-key.ctqt-key-insert:hover[b-yjt4aievdj] { border-color: var(--brand); color: var(--brand); background: #f0fdf4; }
.ctqt-key.ctqt-key-insert:hover i[b-yjt4aievdj] { color: var(--brand); }

/* ── Ô nhập số / phần trăm trong dialog chọn dữ liệu ── */
.ctqt-num[b-yjt4aievdj] {
    flex: 1;
    min-width: 0;
    height: 30px;
    font-family: var(--font-mono, Consolas, 'SF Mono', monospace);
    font-size: 12px;
}

/* ── Zone màu cho bảng xem trước động ── */
.ctqt-preview thead th.zone-thu[b-yjt4aievdj] { color: #166534; }
.ctqt-preview thead th.zone-chi[b-yjt4aievdj] { color: #b91c1c; }
.ctqt-preview thead th.zone-lai[b-yjt4aievdj] { color: #155e75; }

/* ════════════════════════════════════════════════════════════════════
   Bố cục dialog dòng công thức (Mã/Thứ tự/Tên cùng hàng; builder gọn)
   ════════════════════════════════════════════════════════════════════ */
.ctqt-dlg-row[b-yjt4aievdj] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.ctqt-dlg-field[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ctqt-dlg-field.ctqt-dlg-grow[b-yjt4aievdj] { flex: 1 1 0; }
.ctqt-dlg-label[b-yjt4aievdj] {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}
.ctqt-dlg-label .form-required[b-yjt4aievdj] { color: #ef4444; }

.ctqt-dlg-expr[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.ctqt-dlg-foot[b-yjt4aievdj] {
    align-items: flex-end;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    margin-bottom: 0;
}

.ctqt-dlg-body .app-form-error[b-yjt4aievdj] { font-size: 11px; }

/* ── Dialog chọn dữ liệu chèn (mở khi bấm "Chèn") ── */
.ctqt-pick-backdrop[b-yjt4aievdj] {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ctqt-fadeIn-b-yjt4aievdj .15s cubic-bezier(.22, 1, .36, 1) both;
}
.ctqt-pick-panel[b-yjt4aievdj] {
    width: min(420px, 94vw);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .3);
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    animation: ctqt-dialogPop-b-yjt4aievdj .15s cubic-bezier(.22, 1, .36, 1) both;
}
.ctqt-pick-head[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ctqt-pick-icon[b-yjt4aievdj] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), #0ea5e9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(14, 165, 233, .3);
}
.ctqt-pick-title[b-yjt4aievdj] {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}
.ctqt-pick-body[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ctqt-pick-body .cmbgt-root[b-yjt4aievdj],
.ctqt-pick-body .sd-root[b-yjt4aievdj] { width: 100%; }
.ctqt-pick-add[b-yjt4aievdj] {
    width: 100%;
    height: 36px;
    min-height: 36px;
    font-size: 13px;
    font-weight: 600;
}
.ctqt-pick-input[b-yjt4aievdj] {
    flex: none;
    width: 100%;
    height: 34px;
    font-size: 14px;
}

/* ── Kéo thả sắp xếp dòng ── */
.ctqt-grip[b-yjt4aievdj] {
    cursor: grab;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    margin-right: 4px;
    padding: 4px;
    border-radius: 6px;
    transition: color .12s ease, background .12s ease;
}
.ctqt-grip:hover[b-yjt4aievdj] { color: #475569; background: #eef2f7; }
.ctqt-grip:active[b-yjt4aievdj] { cursor: grabbing; }

.ctqt-stt[b-yjt4aievdj] {
    font-variant-numeric: tabular-nums;
    color: #64748b;
    font-weight: 600;
}

.ctqt-table tbody tr.ctqt-is-dragging td[b-yjt4aievdj] { opacity: .45; }
.ctqt-table tbody tr.ctqt-drag-over td[b-yjt4aievdj] { box-shadow: inset 0 2px 0 0 var(--brand, #0f766e); }

/* ── Legend mô tả biểu thức ── */
.ctqt-legend[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #e6ecf3;
    border-radius: 12px;
    margin-top: 12px;
}
.ctqt-legend-head[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ctqt-legend-icon[b-yjt4aievdj] {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #16a34a, #0f9d4f);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(15, 157, 79, .28);
}
.ctqt-legend-title[b-yjt4aievdj] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.ctqt-legend-title > div:first-child[b-yjt4aievdj] {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}
.ctqt-legend-sub[b-yjt4aievdj] {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}
.ctqt-legend-sub b[b-yjt4aievdj] { color: #4338ca; font-weight: 700; }
.ctqt-legend-grid[b-yjt4aievdj] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px 14px;
}
.ctqt-legend-item[b-yjt4aievdj] {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #475569;
}
.ctqt-legend-item > span:last-child[b-yjt4aievdj] { flex: 1; min-width: 0; }
.ctqt-lg-tok[b-yjt4aievdj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    min-width: 64px;
    justify-content: center;
    font-family: var(--font-mono, Consolas, 'SF Mono', monospace);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.ctqt-lg-tok i[b-yjt4aievdj] { font-size: 12px; }
.ctqt-lg-tok.is-thu[b-yjt4aievdj] { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.ctqt-lg-tok.is-chi[b-yjt4aievdj] { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.ctqt-lg-tok.is-kthu[b-yjt4aievdj] { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.ctqt-lg-tok.is-kchi[b-yjt4aievdj] { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.ctqt-lg-tok.is-dong[b-yjt4aievdj] { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.ctqt-lg-tok.is-num[b-yjt4aievdj] { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ctqt-lg-tok.is-op[b-yjt4aievdj] { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }

@media (max-width: 640px) {
    .ctqt-dlg-row[b-yjt4aievdj] { flex-wrap: wrap; gap: 8px; }
    .ctqt-dlg-panel[b-yjt4aievdj] { width: 96vw; }
    .ctqt-key-row[b-yjt4aievdj] { flex-direction: column; align-items: stretch; gap: 6px; }
    .ctqt-key-label[b-yjt4aievdj] { flex: none; }
}
/* /Components/Pages/DanhMuc/DoiTacVanHanh/PageDanhMucMaThuChiKhachHang.razor.rz.scp.css */
/* ── Tab Thu / Chi ── */
.mtck-tabs[b-2b8bcj4agb] { display: inline-flex; gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 8px; }
.mtck-tab[b-2b8bcj4agb] { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: none; background: transparent; border-radius: 6px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; transition: all .14s; }
.mtck-tab i[b-2b8bcj4agb] { font-size: 14px; }
.mtck-tab:hover[b-2b8bcj4agb] { color: #0f9d4f; }
.mtck-tab.active[b-2b8bcj4agb] { background: #fff; color: #0f9d4f; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
/* /Components/Pages/Home.razor.rz.scp.css */
.home-page[b-q17e9xtgnm] {
    position: relative;
    min-height: calc(100dvh - var(--topbar-h, 60px));
    background: #f6f7f9;
    padding: 24px clamp(16px, 4vw, 44px) 40px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

.home-page[b-q17e9xtgnm],
.home-page *[b-q17e9xtgnm] {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Background glow xanh nhẹ chuyển động ── */
.home-bg-glow[b-q17e9xtgnm] {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.bg-glow-a[b-q17e9xtgnm] {
    width: 520px;
    height: 520px;
    left: -160px;
    top: -140px;
    background: rgba(15, 157, 79, .16);
    animation: glowDriftA-b-q17e9xtgnm 14s ease-in-out infinite;
}

.bg-glow-b[b-q17e9xtgnm] {
    width: 460px;
    height: 460px;
    right: -140px;
    top: 30%;
    background: rgba(34, 197, 94, .12);
    animation: glowDriftB-b-q17e9xtgnm 18s ease-in-out infinite;
}

.bg-glow-c[b-q17e9xtgnm] {
    width: 500px;
    height: 500px;
    left: 32%;
    bottom: -220px;
    background: rgba(15, 157, 79, .10);
    animation: glowDriftC-b-q17e9xtgnm 16s ease-in-out infinite;
}

/* ── Icon trang trí vận tải trôi nổi: đè lên nội dung, trong mờ, chuyển động ngẫu nhiên ── */
.home-icons[b-q17e9xtgnm] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.fi[b-q17e9xtgnm] {
    position: absolute;
    line-height: 1;
    opacity: .45;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, .16));
    -webkit-font-smoothing: antialiased;
    animation: iconDrift-b-q17e9xtgnm 11s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Vị trí mặc định (fallback) — vị trí + kích thước thật do JS random hoá khi trang nạp */
.fi-1[b-q17e9xtgnm] { left: 8%; top: 12%; font-size: 44px; color: #0f9d4f; }
.fi-2[b-q17e9xtgnm] { right: 9%; top: 20%; font-size: 40px; color: #2f73d9; }
.fi-3[b-q17e9xtgnm] { left: 12%; bottom: 20%; font-size: 38px; color: #f2b84b; }
.fi-4[b-q17e9xtgnm] { right: 12%; bottom: 16%; font-size: 34px; color: #8b5cf6; }
.fi-5[b-q17e9xtgnm] { left: 5%; top: 54%; font-size: 30px; color: #0ea5e9; }
.fi-6[b-q17e9xtgnm] { right: 6%; top: 50%; font-size: 36px; color: #f59e0b; }
.fi-7[b-q17e9xtgnm] { left: 42%; top: 8%; font-size: 28px; color: #16a34a; }
.fi-8[b-q17e9xtgnm] { right: 40%; bottom: 6%; font-size: 32px; color: #ec4899; }

.home-container[b-q17e9xtgnm] {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* ── Hero ── */
.home-hero[b-q17e9xtgnm] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    overflow: hidden;
    animation: heroIn-b-q17e9xtgnm .6s cubic-bezier(.22, 1, .36, 1) both;
}

.home-hero[b-q17e9xtgnm]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f9d4f, #34d399, #f2b84b);
    background-size: 200% 100%;
    animation: shineLine-b-q17e9xtgnm 6s linear infinite;
}

.hero-icon[b-q17e9xtgnm] {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #14a453 0%, #0a7a3b 100%);
    box-shadow: 0 8px 18px rgba(15, 157, 79, .22);
    position: relative;
}

.hero-icon[b-q17e9xtgnm]::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 2px solid rgba(15, 157, 79, .4);
    animation: heroPulse-b-q17e9xtgnm 2.8s ease-out infinite;
    pointer-events: none;
}

.hero-icon i[b-q17e9xtgnm] {
    font-size: 28px;
    animation: heroBob-b-q17e9xtgnm 3.2s ease-in-out infinite;
}

.hero-text[b-q17e9xtgnm] {
    min-width: 0;
}

.hero-text h1[b-q17e9xtgnm] {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #15241b;
}

.hero-text h1 span[b-q17e9xtgnm] {
    color: #0a7a3b;
}

.hero-text p[b-q17e9xtgnm] {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    max-width: 720px;
}

.hero-date[b-q17e9xtgnm] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 5px 13px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.hero-date i[b-q17e9xtgnm] {
    color: #0f9d4f;
}

/* ── Section title ── */
.section-title[b-q17e9xtgnm] {
    margin: 24px 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

/* ── Feature grid ── */
.feature-grid[b-q17e9xtgnm] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-card[b-q17e9xtgnm] {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, border-color .2s ease;
    animation: cardIn-b-q17e9xtgnm .5s cubic-bezier(.22, 1, .36, 1) both;
}

.feature-card:nth-child(1)[b-q17e9xtgnm] { animation-delay: .06s; }
.feature-card:nth-child(2)[b-q17e9xtgnm] { animation-delay: .12s; }
.feature-card:nth-child(3)[b-q17e9xtgnm] { animation-delay: .18s; }
.feature-card:nth-child(4)[b-q17e9xtgnm] { animation-delay: .24s; }
.feature-card:nth-child(5)[b-q17e9xtgnm] { animation-delay: .3s; }
.feature-card:nth-child(6)[b-q17e9xtgnm] { animation-delay: .36s; }

.feature-card:hover[b-q17e9xtgnm] {
    transform: translateY(-4px);
    border-color: #d4dae0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .09);
}

.feature-icon[b-q17e9xtgnm] {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--c) 12%, #fff);
    color: var(--c);
    font-size: 19px;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.feature-card:hover .feature-icon[b-q17e9xtgnm] {
    background: var(--c);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

.feature-body[b-q17e9xtgnm] {
    min-width: 0;
}

.feature-title[b-q17e9xtgnm] {
    font-size: 14px;
    font-weight: 700;
    color: #16281e;
}

.feature-desc[b-q17e9xtgnm] {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #8a9a90;
}

/* ── Tips ── */
.tips-card[b-q17e9xtgnm] {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    overflow: hidden;
    animation: cardIn-b-q17e9xtgnm .5s .4s cubic-bezier(.22, 1, .36, 1) both;
}

.tip-item[b-q17e9xtgnm] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
    transition: background .18s ease;
}

.tip-item:hover[b-q17e9xtgnm] {
    background: #f8fafb;
}

.tip-item + .tip-item[b-q17e9xtgnm] {
    border-top: 1px solid #f0f2f4;
}

.tip-item i[b-q17e9xtgnm] {
    flex-shrink: 0;
    color: #0f9d4f;
    font-size: 17px;
    transition: transform .2s ease;
}

.tip-item:hover i[b-q17e9xtgnm] {
    transform: scale(1.15);
}

/* ── Keyframes ── */
@keyframes heroIn-b-q17e9xtgnm {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn-b-q17e9xtgnm {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroBob-b-q17e9xtgnm {
    0%, 100% { transform: translateX(-2px); }
    50% { transform: translateX(3px); }
}

@keyframes heroPulse-b-q17e9xtgnm {
    0% { transform: scale(.9); opacity: .7; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes shineLine-b-q17e9xtgnm {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glowDriftA-b-q17e9xtgnm {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(50px, 40px, 0); }
}

@keyframes glowDriftB-b-q17e9xtgnm {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-45px, 35px, 0); }
}

@keyframes glowDriftC-b-q17e9xtgnm {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(35px, -30px, 0); }
}

@keyframes iconDrift-b-q17e9xtgnm {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
    50% { transform: translate3d(var(--tx, 0px), var(--ty, -26px), 0) rotate(6deg); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .feature-grid[b-q17e9xtgnm] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .feature-grid[b-q17e9xtgnm] { grid-template-columns: 1fr; }
    .home-hero[b-q17e9xtgnm] { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .home-bg-glow[b-q17e9xtgnm],
    .fi[b-q17e9xtgnm],
    .home-hero[b-q17e9xtgnm],
    .hero-icon i[b-q17e9xtgnm],
    .hero-icon[b-q17e9xtgnm]::after,
    .home-hero[b-q17e9xtgnm]::after,
    .feature-card[b-q17e9xtgnm],
    .tips-card[b-q17e9xtgnm] {
        animation: none;
    }
    .feature-card[b-q17e9xtgnm] { transition: none; }
}
/* /Components/Pages/Index/PageDoiMatKhau.razor.rz.scp.css */
/* ═══════════════════════════════════════════════
   PageDoiMatKhau · Gọn - Hiện đại - Icon sống động
   ═══════════════════════════════════════════════ */

/* ── Vùng nền ── */
.cpw-bg[b-nh6bxsbf1t] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100dvh - var(--topbar-h, 60px));
    padding: 32px 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(15, 157, 79, .12), transparent),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(47, 115, 217, .08), transparent),
        radial-gradient(ellipse 50% 40% at 10% 40%, rgba(242, 184, 75, .10), transparent),
        linear-gradient(175deg, #f6faf3 0%, #edf5ef 40%, #e8f2eb 100%);
}

.cpw-bg[b-nh6bxsbf1t]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .35;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(15, 23, 42, .015) 2px, rgba(15, 23, 42, .015) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(15, 23, 42, .012) 2px, rgba(15, 23, 42, .012) 4px);
    pointer-events: none;
}

/* ── Floating icon orbs ── */
.cpw-orb[b-nh6bxsbf1t] {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.cpw-orb i[b-nh6bxsbf1t] { font-size: 22px; }
.cpw-orb--1[b-nh6bxsbf1t] { top: 10%; left: 6%;  color: #0f9d4f; animation: orbFloat-b-nh6bxsbf1t 6s ease-in-out infinite; }
.cpw-orb--2[b-nh6bxsbf1t] { top: 18%; right: 8%;  color: #2563eb; animation: orbFloat-b-nh6bxsbf1t 7s ease-in-out .4s infinite; }
.cpw-orb--3[b-nh6bxsbf1t] { bottom: 14%; left: 10%; color: #7c3aed; animation: orbFloat-b-nh6bxsbf1t 6.5s ease-in-out 1.1s infinite; }
.cpw-orb--4[b-nh6bxsbf1t] { bottom: 8%; right: 10%; color: #f59e0b; animation: orbFloat-b-nh6bxsbf1t 7.5s ease-in-out .7s infinite; }

.cpw-orb[b-nh6bxsbf1t]::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    z-index: -1;
    opacity: .28;
    filter: blur(18px);
    animation: orbGlow-b-nh6bxsbf1t 4s ease-in-out infinite;
}
.cpw-orb--1[b-nh6bxsbf1t]::after { background: rgba(15, 157, 79, .5); animation-delay: 0s; }
.cpw-orb--2[b-nh6bxsbf1t]::after { background: rgba(37, 99, 235, .45); animation-delay: .6s; }
.cpw-orb--3[b-nh6bxsbf1t]::after { background: rgba(124, 58, 237, .4); animation-delay: 1.2s; }
.cpw-orb--4[b-nh6bxsbf1t]::after { background: rgba(245, 158, 11, .45); animation-delay: .9s; }

/* ── Card chính ── */
.cpw-card[b-nh6bxsbf1t] {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .76);
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, .04),
        0 12px 32px rgba(15, 23, 42, .07),
        0 32px 64px rgba(15, 23, 42, .10),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    animation: cardIn-b-nh6bxsbf1t .5s cubic-bezier(.22, .61, .36, 1) both;
    display: grid;
    gap: 20px;
    user-select:none;
}

/* ── Header card ── */
.cpw-head[b-nh6bxsbf1t] {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeUp-b-nh6bxsbf1t .4s ease .1s both;
}

.cpw-head-icon[b-nh6bxsbf1t] {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, #0f9d4f 0%, #08763b 100%);
    box-shadow: 0 10px 22px rgba(15, 157, 79, .30), inset 0 1px 0 rgba(255, 255, 255, .35);
    animation: iconBounce-b-nh6bxsbf1t 2.8s ease-in-out infinite;
}

.cpw-head h1[b-nh6bxsbf1t] {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #0f172a;
}

.cpw-head p[b-nh6bxsbf1t] {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #58675f;
}

/* ── Các trường input ── */
.cpw-fields[b-nh6bxsbf1t] {
    display: grid;
    gap: 14px;
}

.cpw-field[b-nh6bxsbf1t] {
    display: grid;
    gap: 6px;
    animation: fadeUp-b-nh6bxsbf1t .35s ease both;
}
.cpw-field:nth-child(1)[b-nh6bxsbf1t] { animation-delay: .15s; }
.cpw-field:nth-child(2)[b-nh6bxsbf1t] { animation-delay: .20s; }
.cpw-field:nth-child(3)[b-nh6bxsbf1t] { animation-delay: .25s; }

.cpw-field label[b-nh6bxsbf1t] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: .01em;
}

.cpw-field label i[b-nh6bxsbf1t] {
    font-size: 14px;
    color: #0f9d4f;
}

.cpw-input-wrap[b-nh6bxsbf1t] {
    position: relative;
}

.cpw-input-wrap input[b-nh6bxsbf1t] {
    width: 100%;
    min-height: 46px;
    padding: 10px 46px 10px 14px;
    border: 1.5px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.cpw-input-wrap input[b-nh6bxsbf1t]::placeholder { color: #9ca3af; }

.cpw-input-wrap input:focus[b-nh6bxsbf1t] {
    border-color: rgba(15, 157, 79, .50);
    box-shadow: 0 0 0 4px rgba(15, 157, 79, .10);
    background: #fff;
}

/* ── Nút toggle hiện/ẩn mật khẩu ── */
.cpw-eye[b-nh6bxsbf1t] {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.cpw-eye:hover[b-nh6bxsbf1t] { color: #0f9d4f; background: rgba(15, 157, 79, .08); }
.cpw-eye i[b-nh6bxsbf1t] { font-size: 17px; transition: transform .2s ease; }
.cpw-eye:active i[b-nh6bxsbf1t] { transform: scale(.85); }

/* ── Thanh độ mạnh ── */
.cpw-strength[b-nh6bxsbf1t] {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .025);
    border: 1px solid rgba(15, 23, 42, .05);
    animation: fadeUp-b-nh6bxsbf1t .35s ease .28s both;
    display: grid;
    gap: 8px;
    margin-top:10px;
    margin-bottom:10px;
}

.cpw-strength-track[b-nh6bxsbf1t] {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, .07);
}

.cpw-strength-bar[b-nh6bxsbf1t] {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width .35s cubic-bezier(.34, 1.56, .64, 1), background .35s ease;
}

/* Trạng thái thanh */
.cpw-strength.none .cpw-strength-bar[b-nh6bxsbf1t] { width: 8%; background: rgba(15, 23, 42, .18); }
.cpw-strength.weak .cpw-strength-bar[b-nh6bxsbf1t] { width: 34%; background: linear-gradient(90deg, #fb7185, #f59e0b); }
.cpw-strength.mid  .cpw-strength-bar[b-nh6bxsbf1t] { width: 68%; background: linear-gradient(90deg, #f59e0b, #0f9d4f); }
.cpw-strength.strong .cpw-strength-bar[b-nh6bxsbf1t] { width: 100%; background: linear-gradient(90deg, #0f9d4f, #2563eb); }

/* Pulse dot khi strong */
.cpw-strength-pulse[b-nh6bxsbf1t] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s ease, right .35s cubic-bezier(.34, 1.56, .64, 1);
}
.cpw-strength.none   .cpw-strength-pulse[b-nh6bxsbf1t] { right: 8%; }
.cpw-strength.weak   .cpw-strength-pulse[b-nh6bxsbf1t] { right: 66%; background: #fb7185; }
.cpw-strength.mid    .cpw-strength-pulse[b-nh6bxsbf1t] { right: 32%; background: #f59e0b; }
.cpw-strength.strong .cpw-strength-pulse[b-nh6bxsbf1t] { right: 0%; background: #2563eb; opacity: 1; animation: pulseDot-b-nh6bxsbf1t 1.5s ease-in-out infinite; }

.cpw-strength-text[b-nh6bxsbf1t] {
    font-size: 12px;
    color: #516157;
    line-height: 1.5;
}

/* ── Nút hành động ── */
.cpw-actions[b-nh6bxsbf1t] {
    display: flex;
    gap: 10px;
    align-items: center;
    animation: fadeUp-b-nh6bxsbf1t .35s ease .32s both;
}

.cpw-btn[b-nh6bxsbf1t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}

.cpw-btn[b-nh6bxsbf1t]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: rgba(255, 255, 255, .15);
    transition: opacity .2s ease;
}
.cpw-btn:hover:not(:disabled)[b-nh6bxsbf1t]::after { opacity: 1; }

.cpw-btn--primary[b-nh6bxsbf1t] {
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f 0%, #0a7d3e 100%);
    box-shadow: 0 10px 24px rgba(15, 157, 79, .28);
}
.cpw-btn--primary:hover:not(:disabled)[b-nh6bxsbf1t] {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 157, 79, .35);
}
.cpw-btn--primary:active:not(:disabled)[b-nh6bxsbf1t] { transform: translateY(0); }

.cpw-btn--ghost[b-nh6bxsbf1t] {
    color: #0f172a;
    background: rgba(15, 23, 42, .05);
}
.cpw-btn--ghost:hover:not(:disabled)[b-nh6bxsbf1t] { background: rgba(15, 23, 42, .10); }

.cpw-btn:disabled[b-nh6bxsbf1t] { opacity: .55; cursor: not-allowed; }

/* ── Animations ── */
@keyframes cardIn-b-nh6bxsbf1t {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp-b-nh6bxsbf1t {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes iconBounce-b-nh6bxsbf1t {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30%      { transform: translateY(-5px) rotate(-4deg); }
    60%      { transform: translateY(-1px) rotate(2deg); }
}

@keyframes orbFloat-b-nh6bxsbf1t {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(6px, -12px) scale(1.05); }
    50%      { transform: translate(-4px, -4px) scale(.97); }
    75%      { transform: translate(-8px, 8px) scale(1.04); }
}

@keyframes orbGlow-b-nh6bxsbf1t {
    0%, 100% { opacity: .18; transform: scale(.9); }
    50%      { opacity: .38; transform: scale(1.15); }
}

@keyframes pulseDot-b-nh6bxsbf1t {
    0%, 100% { transform: translate(50%, -50%) scale(1); opacity: .9; }
    50%      { transform: translate(50%, -50%) scale(1.8); opacity: .35; }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    .cpw-card[b-nh6bxsbf1t], .cpw-head[b-nh6bxsbf1t], .cpw-field[b-nh6bxsbf1t],
    .cpw-strength[b-nh6bxsbf1t], .cpw-actions[b-nh6bxsbf1t], .cpw-orb[b-nh6bxsbf1t],
    .cpw-orb[b-nh6bxsbf1t]::after, .cpw-head-icon[b-nh6bxsbf1t], .cpw-strength-pulse[b-nh6bxsbf1t] {
        animation: none !important; transition: none !important;
    }
    .cpw-strength-pulse[b-nh6bxsbf1t] { opacity: 0 !important; }
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .cpw-bg[b-nh6bxsbf1t] { padding: 16px 12px; }
    .cpw-card[b-nh6bxsbf1t] { padding: 22px 18px; border-radius: 22px; gap: 16px; }
    .cpw-head-icon[b-nh6bxsbf1t] { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; }
    .cpw-head h1[b-nh6bxsbf1t] { font-size: 20px; }
    .cpw-actions[b-nh6bxsbf1t] { flex-direction: column; }
    .cpw-btn[b-nh6bxsbf1t] { width: 100%; }
    .cpw-orb[b-nh6bxsbf1t] { width: 38px; height: 38px; border-radius: 12px; }
    .cpw-orb i[b-nh6bxsbf1t] { font-size: 18px; }
    .cpw-orb--1[b-nh6bxsbf1t] { top: 6%; left: 3%; }
    .cpw-orb--2[b-nh6bxsbf1t] { top: 10%; right: 3%; }
    .cpw-orb--3[b-nh6bxsbf1t] { bottom: 8%; left: 4%; }
    .cpw-orb--4[b-nh6bxsbf1t] { bottom: 5%; right: 4%; }
}
/* /Components/Pages/Index/PageHoSoCaNhan.razor.rz.scp.css */
/* ═══════════════════════════════════════════
   HỒ SƠ CÁ NHÂN — Sidebar Profile Layout
   Gọn gàng, tập trung vào nội dung chính
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:where(.pf-layout, .pf-loading)[b-t9petkrt0r] {
    --pf-green: #0f9d4f;
    --pf-green-dark: #08763b;
    --pf-blue: #2f73d9;
    --pf-text: #0f172a;
    --pf-sub: #64748b;
    --pf-border: rgba(15,23,42,.07);
    --pf-bg: #f4f6f9;
    --pf-card: #fff;
    --pf-radius: 16px;
    --pf-shadow: 0 2px 12px rgba(15,23,42,.05);
}

/* ── Loading skeleton ── */
.pf-loading[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 80px 20px;
    min-height: calc(100dvh - var(--topbar-h, 60px));
    background: var(--pf-bg);
    user-select: none;
}

.pf-skel[b-t9petkrt0r] {
    border-radius: 12px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f1f5f9 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: pfShimmer-b-t9petkrt0r 1.8s ease-in-out infinite;
}

.pf-skel-avatar[b-t9petkrt0r] { width: 80px; height: 80px; border-radius: 50%; }
.pf-skel-line[b-t9petkrt0r]   { height: 16px; }

@keyframes pfShimmer-b-t9petkrt0r {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Layout ── */
.pf-layout[b-t9petkrt0r] {
    display: flex;
    gap: 20px;
    height: calc(100dvh - var(--topbar-h, 60px));
    padding: 20px;
    background: #eef3f8;
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 30%, rgba(15,157,79,.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 70%, rgba(47,115,217,.07) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,58,237,.04) 0%, transparent 60%);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow:hidden;
}

.pf-layout *[b-t9petkrt0r] {
    user-select: none;
    -webkit-user-select: none;
}

.pf-layout[b-t9petkrt0r]::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 35% at 25% 55%, rgba(15,157,79,.05) 0%, transparent 55%),
        radial-gradient(ellipse 45% 30% at 75% 45%, rgba(47,115,217,.05) 0%, transparent 50%),
        radial-gradient(ellipse 35% 25% at 50% 85%, rgba(217,119,6,.04) 0%, transparent 50%);
    animation: pfBgShift-b-t9petkrt0r 10s ease-in-out infinite alternate;
}

@keyframes pfBgShift-b-t9petkrt0r {
    0%   { opacity: .5; transform: scale(1) rotate(0deg); }
    33%  { opacity: 1; transform: scale(1.05) rotate(1deg); }
    66%  { opacity: .6; transform: scale(.98) rotate(-1deg); }
    100% { opacity: .8; transform: scale(1.02) rotate(0deg); }
}

/* ── Floating particles ── */
.pf-layout[b-t9petkrt0r]::before {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(15,157,79,.14);
    box-shadow:
        150px 90px 0 rgba(15,157,79,.09),
        370px 50px 0 rgba(47,115,217,.1),
        540px 260px 0 rgba(15,157,79,.08),
        720px 110px 0 rgba(124,58,237,.08),
        80px 360px 0 rgba(47,115,217,.06),
        460px 400px 0 rgba(15,157,79,.1),
        650px 460px 0 rgba(217,119,6,.06),
        310px 300px 0 rgba(15,157,79,.05),
        880px 200px 0 rgba(47,115,217,.04);
    animation: pfFloat-b-t9petkrt0r 18s ease-in-out infinite;
}

@keyframes pfFloat-b-t9petkrt0r {
    0%,100% { transform: translate(0, 0) scale(1); opacity: .6; }
    25%     { transform: translate(40px, -30px) scale(1.4); opacity: 1; }
    50%     { transform: translate(-25px, -50px) scale(.8); opacity: .4; }
    75%     { transform: translate(30px, -20px) scale(1.2); opacity: .8; }
}

/* ── Sidebar ── */
.pf-sidebar[b-t9petkrt0r] {
    width: 255px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(15,157,79,.1);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(15,23,42,.08),
        0 2px 8px rgba(15,157,79,.06),
        inset 0 1px 0 rgba(255,255,255,.8);
    animation: pfIn-b-t9petkrt0r .4s cubic-bezier(.22,.61,.36,1) both;
    transition: box-shadow .4s ease, border-color .4s ease;
}

.pf-sidebar:hover[b-t9petkrt0r] {
    box-shadow:
        0 12px 40px rgba(15,23,42,.1),
        0 4px 14px rgba(15,157,79,.1),
        inset 0 1px 0 rgba(255,255,255,.9);
    border-color: rgba(15,157,79,.18);
}

@keyframes pfIn-b-t9petkrt0r {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Identity ── */
.pf-identity[b-t9petkrt0r] {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pf-border);
}

.pf-av-ring[b-t9petkrt0r] {
    position: relative;
    display: inline-flex;
    padding: 3px;
    border-radius: 50%;
    margin-bottom: 10px;
    background: conic-gradient(from 0deg, var(--pf-green), var(--pf-blue), var(--pf-green-dark), var(--pf-green), var(--pf-blue));
    animation: pfAvSpin-b-t9petkrt0r 8s linear infinite;
    box-shadow: 0 0 24px rgba(15,157,79,.18), 0 0 0 6px rgba(15,157,79,.06);
}

.pf-av-ring[b-t9petkrt0r]::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 120deg, transparent, rgba(15,157,79,.12), transparent, rgba(47,115,217,.1), transparent);
    animation: pfAvGlow-b-t9petkrt0r 3s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

.pf-av-ring.sm[b-t9petkrt0r] { animation: none; box-shadow: none; }
.pf-av-ring.sm[b-t9petkrt0r]::after { display: none; }

@keyframes pfAvSpin-b-t9petkrt0r {
    to { transform: rotate(360deg); }
}

@keyframes pfAvGlow-b-t9petkrt0r {
    0%   { opacity: .5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.pf-name[b-t9petkrt0r] {
    display: block;
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 850;
    color: #0a1628;
    line-height: 1.2;
    letter-spacing: -.2px;
}

.pf-username[b-t9petkrt0r] {
    display: block;
    font-size: 12px;
    color: #0f7b43;
    font-weight: 650;
    margin-bottom: 4px;
}

.pf-username i[b-t9petkrt0r] {
    margin-right: 3px;
    font-size: 11px;
    opacity: .7;
}

.pf-role[b-t9petkrt0r] {
    display: inline-block;
    margin-top: 2px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pf-green), var(--pf-blue));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(15,157,79,.25);
}

/* ── Stats row ── */
.pf-stats[b-t9petkrt0r] {
    display: flex;
    gap: 0;
    border: 1px solid rgba(15,157,79,.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,157,79,.06);
}

.pf-stat[b-t9petkrt0r] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    background: #fff;
    transition: background .18s, transform .18s;
    position: relative;
}

.pf-stat:hover[b-t9petkrt0r] {
    background: #f6fdf9;
    transform: translateY(-1px);
}

.pf-stat + .pf-stat[b-t9petkrt0r] {
    border-left: 1px solid rgba(15,157,79,.08);
}

.pf-stat i[b-t9petkrt0r] {
    font-size: 16px;
}

.pf-stat:nth-child(1) i[b-t9petkrt0r] { color: #0f9d4f; }
.pf-stat:nth-child(2) i[b-t9petkrt0r] { color: #2f73d9; }
.pf-stat:nth-child(3) i[b-t9petkrt0r] { color: #d97706; }

.pf-sv[b-t9petkrt0r] {
    font-size: 12px;
    font-weight: 900;
    color: #0a1628;
    line-height: 1;
}

.pf-sl[b-t9petkrt0r] {
    font-size: 10px;
    font-weight: 750;
    color: #5a6677;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1;
    display:none;
}

/* ── Meta chips ── */
.pf-meta[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-chip[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 10px;
    border-left: 3px solid var(--pf-green);
    background: linear-gradient(90deg, rgba(15,157,79,.06), rgba(15,157,79,.01));
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    transition: all .22s ease;
    overflow: hidden;
}

.pf-chip.department[b-t9petkrt0r] {
    border-left-color: #7c3aed;
    background: linear-gradient(90deg, rgba(124,58,237,.08), rgba(124,58,237,.01));
    color: #4c1d95;
    font-weight: 700;
}

.pf-chip i[b-t9petkrt0r] {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--pf-green), var(--pf-green-dark));
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

.pf-chip.department i[b-t9petkrt0r] {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.pf-chip:hover[b-t9petkrt0r] {
    background: linear-gradient(90deg, rgba(15,157,79,.12), rgba(15,157,79,.04));
    border-left-color: var(--pf-green-dark);
    transform: translateX(3px);
}

.pf-chip.department:hover[b-t9petkrt0r] {
    background: linear-gradient(90deg, rgba(124,58,237,.14), rgba(124,58,237,.04));
    border-left-color: #5b21b6;
}

.pf-chip span[b-t9petkrt0r] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Sidebar nav ── */
.pf-nav[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.pf-nav-item[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #4a5568;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s cubic-bezier(.4,0,.2,1);
    text-align: left;
    width: 100%;
}

.pf-nav-item i[b-t9petkrt0r] { font-size: 14px; flex-shrink: 0; opacity: .6; transition: opacity .22s, color .22s; }

.pf-nav-item:hover[b-t9petkrt0r] {
    background: rgba(15,157,79,.06);
    color: var(--pf-text);
    border-color: rgba(15,157,79,.15);
}

.pf-nav-item:hover i[b-t9petkrt0r] { opacity: 1; color: var(--pf-green); }

.pf-nav-item.active[b-t9petkrt0r] {
    background: linear-gradient(135deg, rgba(15,157,79,.14), rgba(47,115,217,.08));
    color: #065f46;
    font-weight: 700;
    border-color: rgba(15,157,79,.3);
    box-shadow: 0 4px 16px rgba(15,157,79,.14), inset 0 1px 0 rgba(255,255,255,.7);
}

.pf-nav-item.active i[b-t9petkrt0r] {
    opacity: 1;
    color: var(--pf-green);
}

/* ── Reload button ── */
.pf-reload[b-t9petkrt0r] {
    align-self: center;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s ease;
    padding: 0;
}

.pf-reload:hover:not(:disabled)[b-t9petkrt0r] {
    color: var(--pf-green);
    border-color: rgba(15,157,79,.3);
    background: rgba(15,157,79,.06);
}

.pf-reload:active:not(:disabled) i[b-t9petkrt0r] {
    animation: pfSpin-b-t9petkrt0r .5s ease;
}

.pf-reload:disabled[b-t9petkrt0r] {
    opacity: .4;
    cursor: not-allowed;
}

@keyframes pfSpin-b-t9petkrt0r { to { transform: rotate(360deg); } }

/* ── Main content ── */
.pf-main[b-t9petkrt0r] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    animation: pfMainIn-b-t9petkrt0r .45s cubic-bezier(.22,.61,.36,1) .1s both;
    position: relative;
    z-index: 1;
}

@keyframes pfMainIn-b-t9petkrt0r {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Section card ── */
.pf-section[b-t9petkrt0r] {
    background: var(--pf-card);
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--pf-shadow);
    transition: box-shadow .3s ease;
    position: relative;
}

.pf-section.pf-section-tree[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pf-section:hover[b-t9petkrt0r] {
    box-shadow: 0 4px 20px rgba(15,23,42,.08);
}

.pf-section + .pf-section[b-t9petkrt0r] { margin-top: 14px; }

.pf-shead[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 750;
    color: var(--pf-text);
    letter-spacing: -.1px;
    flex-shrink: 0;
}

.pf-shead i[b-t9petkrt0r] {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 15px;
    flex-shrink: 0;
}

.pf-shead i.s-icon-green[b-t9petkrt0r]  { color: #fff; background: linear-gradient(135deg, var(--pf-green), var(--pf-green-dark)); }
.pf-shead i.s-icon-blue[b-t9petkrt0r]   { color: #fff; background: linear-gradient(135deg, #2f73d9, #1e40af); }
.pf-shead i.s-icon-purple[b-t9petkrt0r] { color: #fff; background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.pf-shead i.s-icon-amber[b-t9petkrt0r]  { color: #fff; background: linear-gradient(135deg, #d97706, #92400e); }

/* ── Info grid ── */
.pf-info-grid[b-t9petkrt0r] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pf-info-item[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    background: #fafbfc;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.pf-info-item:hover[b-t9petkrt0r] {
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    border-color: rgba(15,157,79,.15);
}

.pf-info-item > i[b-t9petkrt0r] {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(15,157,79,.08);
    color: var(--pf-green);
    font-size: 13px;
    flex-shrink: 0;
}

.pf-info-item > div[b-t9petkrt0r] {
    min-width: 0;
}

.pf-info-item span[b-t9petkrt0r] {
    display: block;
    font-size: 10px;
    font-weight: 750;
    color: var(--pf-sub);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 1px;
}

.pf-info-item strong[b-t9petkrt0r] {
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-text);
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.pf-span2[b-t9petkrt0r] { grid-column: span 2; }

/* ── Avatar zone ── */
.pf-avatar-zone[b-t9petkrt0r] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border: 2px dashed rgba(15,157,79,.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15,157,79,.025), rgba(47,115,217,.015));
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
    position: relative;
    overflow: hidden;
}

.pf-avatar-zone[b-t9petkrt0r]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(15,157,79,.06) 0%, transparent 50%);
    pointer-events: none;
}

.pf-avatar-zone:hover[b-t9petkrt0r] {
    border-color: rgba(15,157,79,.4);
    box-shadow: 0 0 0 6px rgba(15,157,79,.04);
    background: linear-gradient(135deg, rgba(15,157,79,.04), rgba(47,115,217,.02));
}

.pf-av-preview[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pf-av-hint[b-t9petkrt0r] {
    font-size: 11px;
    color: var(--pf-sub);
    text-align: center;
}

.pf-upload-area[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 18px;
    border: 2px dashed rgba(15,157,79,.28);
    border-radius: 18px;
    cursor: pointer;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    position: relative;
    min-height: 100px;
    background: rgba(15,157,79,.015);
    overflow: hidden;
}

.pf-upload-area[b-t9petkrt0r]::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    border: 1px dashed rgba(15,157,79,.08);
    pointer-events: none;
    transition: border-color .28s ease;
}

.pf-upload-area:hover[b-t9petkrt0r] {
    border-color: var(--pf-green);
    background: rgba(15,157,79,.05);
    box-shadow: 0 0 0 10px rgba(15,157,79,.04);
    transform: translateY(-2px);
}

.pf-upload-area:hover[b-t9petkrt0r]::after {
    border-color: rgba(15,157,79,.2);
}

.pf-upload-area i.upload-icon[b-t9petkrt0r] {
    font-size: 32px;
    color: rgba(15,157,79,.3);
    transition: all .28s ease;
    animation: pfBounce-b-t9petkrt0r 2.2s ease-in-out infinite;
}

@keyframes pfBounce-b-t9petkrt0r {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-5px); }
}

.pf-upload-area:hover i.upload-icon[b-t9petkrt0r] {
    color: var(--pf-green);
    animation: none;
    transform: scale(1.12) translateY(-3px);
}

.pf-upload-area .upload-text[b-t9petkrt0r] {
    font-size: 13px;
    font-weight: 750;
    color: #475569;
    transition: color .28s;
}

.pf-upload-area:hover .upload-text[b-t9petkrt0r] {
    color: var(--pf-green-dark);
}

.pf-upload-area .upload-sub[b-t9petkrt0r] {
    font-size: 11px;
    color: #94a3b8;
}

.pf-upload-area[b-t9petkrt0r]  input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 3 !important;
}

.pf-file-name[b-t9petkrt0r] {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--pf-green-dark);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15,157,79,.06);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* ── Form field ── */
.pf-field[b-t9petkrt0r] {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.pf-field > span[b-t9petkrt0r] {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.pf-field textarea[b-t9petkrt0r] {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 12px 15px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    background: #fafbfc;
    color: var(--pf-text);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.pf-field textarea:focus[b-t9petkrt0r] {
    border-color: rgba(15,157,79,.5);
    box-shadow: 0 0 0 4px rgba(15,157,79,.08);
    background: #fff;
}

/* ── Action buttons ── */
.pf-actions[b-t9petkrt0r] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pf-btn[b-t9petkrt0r] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    border: none;
    border-radius: 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease;
}

.pf-btn:disabled[b-t9petkrt0r] {
    opacity: .5;
    cursor: not-allowed;
}

.pf-btn-primary[b-t9petkrt0r] {
    color: #fff;
    background: linear-gradient(135deg, var(--pf-green), var(--pf-green-dark));
    box-shadow: 0 8px 18px rgba(15,157,79,.2);
}

.pf-btn-primary:hover:not(:disabled)[b-t9petkrt0r] {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15,157,79,.28);
}

.pf-btn-ghost[b-t9petkrt0r] {
    color: #475569;
    background: rgba(15,23,42,.05);
}

.pf-btn-ghost:hover:not(:disabled)[b-t9petkrt0r] {
    background: rgba(15,23,42,.1);
}

.pf-btn-danger-sm[b-t9petkrt0r] {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; font-size: 12px; font-weight: 600;
    border: 1.5px solid #fecaca; border-radius: 8px;
    background: transparent; color: #dc2626; cursor: pointer;
    transition: all .15s; margin-top: 6px;
}
.pf-btn-danger-sm:hover[b-t9petkrt0r] { background: #fef2f2; border-color: #fca5a5; }
.pf-btn-danger-sm:disabled[b-t9petkrt0r] { opacity: .5; cursor: not-allowed; }

/* ── Group grid ── */
.pf-group-grid[b-t9petkrt0r] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.pf-group-card[b-t9petkrt0r] {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--pf-border);
    border-radius: 14px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
    overflow: hidden;
}

.pf-group-card[b-t9petkrt0r]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 2px 2px 0;
}

.pf-group-card:nth-child(6n+1)[b-t9petkrt0r]::before { background: linear-gradient(180deg, #0f9d4f, #08763b); }
.pf-group-card:nth-child(6n+2)[b-t9petkrt0r]::before { background: linear-gradient(180deg, #2f73d9, #1e40af); }
.pf-group-card:nth-child(6n+3)[b-t9petkrt0r]::before { background: linear-gradient(180deg, #7c3aed, #5b21b6); }
.pf-group-card:nth-child(6n+4)[b-t9petkrt0r]::before { background: linear-gradient(180deg, #d97706, #92400e); }
.pf-group-card:nth-child(6n+5)[b-t9petkrt0r]::before { background: linear-gradient(180deg, #059669, #047857); }
.pf-group-card:nth-child(6n+6)[b-t9petkrt0r]::before { background: linear-gradient(180deg, #dc2626, #991b1b); }

.pf-group-card:hover[b-t9petkrt0r] {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.07);
    border-color: rgba(15,157,79,.18);
}

.pf-group-icon[b-t9petkrt0r] {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 16px;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid;
}

.pf-group-card:nth-child(6n+1) .pf-group-icon[b-t9petkrt0r] { color: #0f9d4f; border-color: rgba(15,157,79,.3); }
.pf-group-card:nth-child(6n+2) .pf-group-icon[b-t9petkrt0r] { color: #2f73d9; border-color: rgba(47,115,217,.3); }
.pf-group-card:nth-child(6n+3) .pf-group-icon[b-t9petkrt0r] { color: #7c3aed; border-color: rgba(124,58,237,.3); }
.pf-group-card:nth-child(6n+4) .pf-group-icon[b-t9petkrt0r] { color: #d97706; border-color: rgba(217,119,6,.3); }
.pf-group-card:nth-child(6n+5) .pf-group-icon[b-t9petkrt0r] { color: #059669; border-color: rgba(5,150,105,.3); }
.pf-group-card:nth-child(6n+6) .pf-group-icon[b-t9petkrt0r] { color: #dc2626; border-color: rgba(220,38,38,.3); }

.pf-group-card strong[b-t9petkrt0r] {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 1px;
}

.pf-group-card span[b-t9petkrt0r] {
    font-size: 11px;
    color: var(--pf-sub);
    line-height: 1.4;
}

/* ── Permission tree ── */
.pf-tree-search[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(15,157,79,.15);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15,23,42,.03);
    transition: border-color .2s, box-shadow .2s;
    flex-shrink: 0;
}

.pf-tree-search:focus-within[b-t9petkrt0r] {
    border-color: rgba(15,157,79,.4);
    box-shadow: 0 0 0 4px rgba(15,157,79,.06);
}

.pf-tree-search i[b-t9petkrt0r] {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 8px;
}

.pf-tree-search input[b-t9petkrt0r] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: #1e293b;
    padding: 0;
}

.pf-tree-search input[b-t9petkrt0r]::placeholder {
    color: #94a3b8;
}

.pf-search-clear[b-t9petkrt0r] {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(15,23,42,.06);
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .15s;
}

.pf-search-clear:hover[b-t9petkrt0r] {
    background: rgba(220,38,38,.12);
    color: #dc2626;
}

.pf-tree[b-t9petkrt0r] {
    display: grid;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

.pf-tree[b-t9petkrt0r]::-webkit-scrollbar {
    width: 5px;
}

.pf-tree[b-t9petkrt0r]::-webkit-scrollbar-track {
    background: transparent;
}

.pf-tree[b-t9petkrt0r]::-webkit-scrollbar-thumb {
    background: rgba(15,157,79,.12);
    border-radius: 3px;
}

.pf-tree[b-t9petkrt0r]::-webkit-scrollbar-thumb:hover {
    background: rgba(15,157,79,.25);
}

.pf-tree-page[b-t9petkrt0r] {
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 14px;
    background: #fff;
}

/* Page head */
.pf-tree-page-head[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #fafdfb 0%, #f5faf7 100%);
    border-bottom: 1px solid rgba(15,157,79,.1);
    font-size: 13px;
}

.pf-tree-page-head i[b-t9petkrt0r] {
    font-size: 16px;
    color: var(--pf-green);
    flex-shrink: 0;
}

.pf-tree-page-head strong[b-t9petkrt0r] {
    flex: 1;
    min-width: 0;
    color: #1e3a5f;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-tree-badge[b-t9petkrt0r] {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(15,157,79,.1);
    color: var(--pf-green-dark);
    font-size: 11px;
    font-weight: 750;
    flex-shrink: 0;
}

/* Features container */
.pf-tree-features[b-t9petkrt0r] {
    padding: 6px 10px 10px;
    background: #fcfdfc;
}

/* Feature group */
.pf-tree-feature[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 8px;
}

.pf-tree-feature-head[b-t9petkrt0r] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(99,102,241,.08);
    font-size: 11px;
    font-weight: 700;
    color: #4f46e5;
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-tree-feature-head i[b-t9petkrt0r] {
    font-size: 10px;
    color: #818cf8;
}

/* Permission items */
.pf-tree-item[b-t9petkrt0r] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 7px;
    transition: all .18s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(15,23,42,.03);
}

.pf-tree-item:hover[b-t9petkrt0r] {
    background: #f6fdf9;
    border-color: rgba(15,157,79,.25);
    box-shadow: 0 3px 10px rgba(15,157,79,.1);
    transform: translateY(-1px);
}

.pf-tree-name[b-t9petkrt0r] {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.pf-tree-item code[b-t9petkrt0r] {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(15,157,79,.08);
    color: #0f5c32;
    font-size: 10px;
    font-weight: 650;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    letter-spacing: .2px;
}

.pf-tree-item:hover code[b-t9petkrt0r] {
    background: rgba(15,157,79,.15);
    color: #064e24;
}

/* ── Empty state ── */
.pf-empty[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: #94a3b8;
    text-align: center;
}

.pf-empty i[b-t9petkrt0r] {
    font-size: 2.2rem;
    opacity: .25;
}

.pf-empty p[b-t9petkrt0r] {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *[b-t9petkrt0r], *[b-t9petkrt0r]::before, *[b-t9petkrt0r]::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ── Activity tab ── */
.s-icon-teal[b-t9petkrt0r] { color: #fff; background: linear-gradient(135deg, #0d9488, #0f766e); }

.pf-activity-section[b-t9petkrt0r] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 16px 18px 0;
}

.pf-activity-section .pf-shead[b-t9petkrt0r] { margin-bottom: 12px; }

.pf-activity-total[b-t9petkrt0r] {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px 10px;
}

.pf-act-toolbar[b-t9petkrt0r] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.pf-act-toolbar-left[b-t9petkrt0r] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-act-toolbar-right[b-t9petkrt0r] { display: flex; align-items: center; gap: 6px; }

.pf-act-toolbar[b-t9petkrt0r]  .inputd-root { height: 30px; }
.pf-act-toolbar[b-t9petkrt0r]  .inputd-shell { height: 30px; border-radius: 8px; font-size: 12px; }
.pf-act-toolbar[b-t9petkrt0r]  .inputd-input { font-size: 12px; height: 30px; }
.pf-act-toolbar[b-t9petkrt0r]  .cmb-base-root { height: 30px; }
.pf-act-toolbar[b-t9petkrt0r]  .cmb-base-shell { height: 30px; border-radius: 8px; }
.pf-act-toolbar[b-t9petkrt0r]  .cmb-base-input { font-size: 12px; height: 30px; background: transparent; border: none; box-shadow: none; }
.pf-act-toolbar[b-t9petkrt0r]  .cmb-base-toggle { border: none; background: transparent; }
.pf-act-toolbar[b-t9petkrt0r]  .cmb-base-clear { border: none; background: transparent; }

.pf-act-content[b-t9petkrt0r] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 4px 16px;
}

.pf-act-content[b-t9petkrt0r]::-webkit-scrollbar { width: 6px; }
.pf-act-content[b-t9petkrt0r]::-webkit-scrollbar-track { background: transparent; }
.pf-act-content[b-t9petkrt0r]::-webkit-scrollbar-thumb { background: rgba(15,157,79,.15); border-radius: 3px; }
.pf-act-content[b-t9petkrt0r]::-webkit-scrollbar-thumb:hover { background: rgba(15,157,79,.28); }

/* ── Responsive ── */
@media (max-width: 860px) {
    .pf-layout[b-t9petkrt0r] {
        flex-direction: column;
        height: auto;
        min-height: calc(100dvh - var(--topbar-h, 60px));
        padding: 14px;
        gap: 14px;
        overflow-y: auto;
    }

    .pf-main[b-t9petkrt0r] {
        overflow-y: visible;
    }

    .pf-sidebar[b-t9petkrt0r] {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 18px;
    }

    .pf-identity[b-t9petkrt0r] { 
        text-align: left;
        display: flex;
        align-items: center;
        gap: 14px;
        border-bottom: none;
        padding-bottom: 0;
        flex: 1;
        min-width: 0;
    }

    .pf-av-ring[b-t9petkrt0r] { margin-bottom: 0; }
    .pf-av-ring[b-t9petkrt0r]::after { display: none; }
    .pf-name[b-t9petkrt0r],
    .pf-username[b-t9petkrt0r],
    .pf-role[b-t9petkrt0r] { display: none; }

    .pf-stats[b-t9petkrt0r] {
        flex: 0 0 auto;
    }
    .pf-meta[b-t9petkrt0r]   { display: none; }
    .pf-nav[b-t9petkrt0r]    { flex-direction: row; width: 100%; flex: auto; order: 10; overflow-x: auto; }
    .pf-nav-item[b-t9petkrt0r] { white-space: nowrap; flex-shrink: 0; }
    .pf-reload[b-t9petkrt0r] { order: 9; }

    .pf-info-grid[b-t9petkrt0r] { grid-template-columns: 1fr; }
    .pf-span2[b-t9petkrt0r]     { grid-column: auto; }
}

@media (max-width: 480px) {
    .pf-layout[b-t9petkrt0r] { padding: 10px; gap: 10px; }

    .pf-sidebar[b-t9petkrt0r] { padding: 14px; gap: 10px; }

    .pf-section[b-t9petkrt0r] {
        padding: 16px;
        border-radius: 16px;
        flex: none;
    }

    .pf-name[b-t9petkrt0r] { font-size: 15px; }
    .pf-av-ring[b-t9petkrt0r] { transform: scale(.85); }

    .pf-group-grid[b-t9petkrt0r] { grid-template-columns: 1fr; }

    .pf-avatar-zone[b-t9petkrt0r] { grid-template-columns: 1fr; }
}
/* /Components/Pages/TacNghiep/BoTriXe.razor.rz.scp.css */
/* ── Skeleton loading (hiển thị khi tải dữ liệu) ── */
.btx-skel[b-heq1p0ousl] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.btx-skel-head[b-heq1p0ousl],
.btx-skel-row[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}
.btx-skel-head[b-heq1p0ousl] {
    height: 42px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}
.btx-skel-row[b-heq1p0ousl] {
    height: 54px;
    border-bottom: 1px solid #f1f5f9;
}
.btx-skel-head .skel-b[b-heq1p0ousl] {
    height: 12px;
    background: #e2e8f0;
    animation: none;
}
.skel-b[b-heq1p0ousl] {
    height: 13px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: btxShimmer-b-heq1p0ousl 1.3s linear infinite;
}
@keyframes btxShimmer-b-heq1p0ousl {
    from { background-position: 100% 0; }
    to { background-position: 0% 0; }
}

/* ── Status segment (underline tab flat, đậm nét rõ ràng) ── */
.status-segment[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.status-segment-item[b-heq1p0ousl] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
    user-select: none;
    white-space: nowrap;
}
.status-segment-item[b-heq1p0ousl]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    opacity: 0;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), opacity .22s ease;
}
.status-segment-item:hover[b-heq1p0ousl] {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.status-segment-item:hover[b-heq1p0ousl]::after {
    transform: scaleX(1);
    opacity: .4;
}
.status-segment-item.active[b-heq1p0ousl] {
    color: var(--accent);
    font-weight: 700;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.status-segment-item.active[b-heq1p0ousl]::after {
    transform: scaleX(1);
    opacity: 1;
}
.status-segment-item input[b-heq1p0ousl] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.status-segment-item i[b-heq1p0ousl] {
    font-size: 16px;
    color: var(--accent);
}

/* ── Page filter bar ── */
.page-filter[b-heq1p0ousl] {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px;
    flex-wrap: wrap;
    margin: 0;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--border);
}
.page-filter .toolbar-search[b-heq1p0ousl] { width: 200px; margin-right: 0; flex: 0 0 auto; }
.page-filter .cmbgt-root[b-heq1p0ousl] { flex: 0 0 auto; }
.page-filter .cmbgt-shell[b-heq1p0ousl],
.page-filter .inputd-shell[b-heq1p0ousl] {
    min-height: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.page-filter .cmbgt-shell:hover:not(.disabled):not(.readonly)[b-heq1p0ousl],
.page-filter .cmbgt-shell:focus-within[b-heq1p0ousl],
.page-filter .inputd-shell:focus-within[b-heq1p0ousl] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.page-filter .cmbgt-shell-main[b-heq1p0ousl] { padding-left: 10px; }
.page-filter .cmbgt-shell-label[b-heq1p0ousl],
.page-filter .inputd-input[b-heq1p0ousl] {
    font-size: 13px;
    color: var(--text-main);
}
.page-filter .cmbgt-shell-label.is-placeholder[b-heq1p0ousl] { color: var(--text-muted); }
.page-filter .form-control[b-heq1p0ousl],
.page-filter .inputd-input[b-heq1p0ousl] {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 32px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ── InputD trong toolbar chính ── */
.page-toolbar .form-control[b-heq1p0ousl],
.page-toolbar .inputd-input[b-heq1p0ousl] {
    height: 34px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}
.page-toolbar .inputd-shell[b-heq1p0ousl] { height: 34px !important; }

/* ── Xe / Lái xe / GN / TT cell ── */
.btx-xe[b-heq1p0ousl] { font-weight: 600; font-size: 12px; color: #37474f; }
.btx-laixe[b-heq1p0ousl] { font-size: 11px; color: #78909c; }
.btx-gn[b-heq1p0ousl] { font-size: 11px; color: #1565c0; }
.btx-tt[b-heq1p0ousl] { font-size: 11px; color: #6a1b9a; }
.btx-cont[b-heq1p0ousl] { font-weight: 600; font-size: 12px; }
.btx-seal[b-heq1p0ousl] { font-size: 11px; color: #ef6c00; }

/* ── Batch select buttons ── */
.ike-btn-send-batch[b-heq1p0ousl] {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}
.ike-btn-send-batch:hover[b-heq1p0ousl] {
    background: #047857 !important;
    border-color: #047857 !important;
}
.ike-btn-send-batch:disabled[b-heq1p0ousl] {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
}

/* ── Soft red outline cancel button ── */
.btn-outline-danger-soft[b-heq1p0ousl] {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: transparent !important;
}
.btn-outline-danger-soft:hover[b-heq1p0ousl] {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

/* ── Tabs nội dung trong dialog bố trí xe ── */
.nd-tabs[b-heq1p0ousl] {
    display: inline-flex;
    gap: 3px;
    background: var(--bg-surface-2, #f1f5f9);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--border);
}
.nd-tab[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    user-select: none;
}
.nd-tab:hover[b-heq1p0ousl] {
    color: var(--text-main);
    background: rgba(15, 157, 79, .06);
}
.nd-tab.active[b-heq1p0ousl] {
    color: #fff;
    background: var(--brand, #0f9d4f);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 2px 8px rgba(15, 157, 79, .35);
}
.nd-tab i[b-heq1p0ousl] {
    font-size: 14px;
}

/* ── Tab ghi chú: nhẹ nhàng, ít nổi bật hơn tab nội dung ── */
.nd-tabs-subtle[b-heq1p0ousl] {
    background: transparent;
    border: none;
    padding: 0;
    gap: 2px;
}
.nd-tabs-subtle .nd-tab[b-heq1p0ousl] {
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
}
.nd-tabs-subtle .nd-tab:hover[b-heq1p0ousl] {
    color: var(--text-main);
    background: rgba(0, 0, 0, .05);
}
.nd-tabs-subtle .nd-tab.active[b-heq1p0ousl] {
    color: var(--text-main);
    background: var(--bg-surface-2, #f1f5f9);
    box-shadow: inset 0 0 0 1px var(--border);
}
.nd-tabs-subtle .nd-tab i[b-heq1p0ousl] {
    font-size: 13px;
}

/* ── Nút "Lưu bố trí xe": radius 6px + shadow đậm hơn ── */
.btn-luu-btx[b-heq1p0ousl] {
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(15, 157, 79, .42), 0 8px 22px rgba(15, 157, 79, .26);
}
.btn-luu-btx:hover[b-heq1p0ousl] {
    box-shadow: 0 5px 14px rgba(15, 157, 79, .50), 0 10px 30px rgba(15, 157, 79, .30);
}

/* ── Dialog in BBGN (custom, không header) ── */
.bbgn-backdrop[b-heq1p0ousl] {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(255,255,255,.16) 0%, rgba(15, 23, 42, .18) 42%, rgba(15, 23, 42, .32) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
    animation: bbgnFadeIn-b-heq1p0ousl .18s cubic-bezier(.22, 1, .36, 1) both;
}

.bbgn-dialog[b-heq1p0ousl] {
    position: relative;
    width: min(460px, 96vw);
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,249,.99));
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 26px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, .22), 0 12px 34px rgba(15, 157, 79, .12), 0 1px 0 rgba(255,255,255,.85) inset;
    overflow: hidden;
    animation: bbgnPop-b-heq1p0ousl .22s cubic-bezier(.22, 1, .36, 1) both;
    user-select: none;
    -webkit-user-select: none;
}

.bbgn-dialog[b-heq1p0ousl]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(15, 157, 79, .10), transparent 30%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, .08), transparent 26%);
}

@keyframes bbgnFadeIn-b-heq1p0ousl { from { opacity: 0; } to { opacity: 1; } }
@keyframes bbgnPop-b-heq1p0ousl {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nút đóng góc */
.bbgn-close[b-heq1p0ousl] {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, .05);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
}
.bbgn-close:hover[b-heq1p0ousl] {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
    transform: rotate(90deg);
}

/* Body */
.bbgn-body[b-heq1p0ousl] {
    position: relative;
    z-index: 1;
    padding: 30px 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bbgn-icon[b-heq1p0ousl] {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 10px 24px rgba(15, 157, 79, .32), 0 4px 10px rgba(15, 157, 79, .18);
    margin-bottom: 4px;
}

.bbgn-title[b-heq1p0ousl] {
    font-size: 19px;
    font-weight: 800;
    color: #173824;
    letter-spacing: -.2px;
}

.bbgn-sub[b-heq1p0ousl] {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bbgn-sub i[b-heq1p0ousl] {
    font-size: 14px;
    color: #0f9d4f;
}

/* Danh sách lựa chọn */
.bbgn-options[b-heq1p0ousl] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbgn-option[b-heq1p0ousl] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.bbgn-option:hover[b-heq1p0ousl] {
    border-color: #c7e6d5;
    background: #fbfefc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 157, 79, .08);
}
.bbgn-option.active[b-heq1p0ousl] {
    border-color: #0f9d4f;
    background: linear-gradient(180deg, #f3fdf7, #f6fbf8);
    box-shadow: 0 0 0 4px rgba(15, 157, 79, .10), 0 8px 20px rgba(15, 157, 79, .12);
}

.bbgn-option input[b-heq1p0ousl] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.bbgn-option-icon[b-heq1p0ousl] {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0f9d4f;
    background: #eafaf1;
    transition: all .2s ease;
}
.bbgn-option.active .bbgn-option-icon[b-heq1p0ousl] {
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f, #0b8a42);
    box-shadow: 0 4px 10px rgba(15, 157, 79, .28);
}

.bbgn-option-text[b-heq1p0ousl] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bbgn-option-title[b-heq1p0ousl] {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.bbgn-option-desc[b-heq1p0ousl] {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bbgn-option-desc i[b-heq1p0ousl] {
    font-size: 12px;
    color: #94a3b8;
    transition: color .2s ease;
}
.bbgn-option.active .bbgn-option-desc i[b-heq1p0ousl] {
    color: #0f9d4f;
}

/* Ô check */
.bbgn-check[b-heq1p0ousl] {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    background: #fff;
    transition: all .2s ease;
}
.bbgn-option.active .bbgn-check[b-heq1p0ousl] {
    border-color: #0f9d4f;
    background: #0f9d4f;
    color: #fff;
    box-shadow: 0 3px 8px rgba(15, 157, 79, .32);
}

/* ── Chọn chế độ in phiếu tác nghiệp (gộp / riêng lẻ) ── */
.bbgn-mode-section[b-heq1p0ousl] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px dashed #ece0d1;
}
.bbgn-mode-head[b-heq1p0ousl] {
    font-size: 11.5px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bbgn-mode-head i[b-heq1p0ousl] {
    font-size: 12px;
    color: #d97706;
}
.bbgn-mode-segment[b-heq1p0ousl] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #f6f1ea;
    border: 1px solid #ece0d1;
}
.bbgn-seg[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #78716c;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
}
.bbgn-seg i[b-heq1p0ousl] {
    font-size: 14px;
    color: #a8a29e;
    transition: color .18s ease;
}
.bbgn-seg:hover[b-heq1p0ousl] {
    color: #92400e;
    background: rgba(217, 119, 6, .08);
}
.bbgn-seg.active[b-heq1p0ousl] {
    background: #fff;
    color: #92400e;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(146, 64, 14, .14), 0 1px 2px rgba(146, 64, 14, .10);
}
.bbgn-seg.active i[b-heq1p0ousl] {
    color: #d97706;
}
.bbgn-mode-hint[b-heq1p0ousl] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11.5px;
    color: #78716c;
    line-height: 1.5;
    padding: 0 2px;
}
.bbgn-mode-hint i[b-heq1p0ousl] {
    flex: 0 0 auto;
    font-size: 12px;
    color: #d97706;
    margin-top: 1px;
}

/* ── Thanh hành động dính đáy khi chọn nhiều kế hoạch ── */
.btx-select-bar[b-heq1p0ousl] {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(236, 253, 245, .82));
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1.5px solid rgba(15, 157, 79, .55);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .16), 0 4px 14px rgba(15, 157, 79, .14), 0 0 0 1px rgba(15, 157, 79, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
    animation: btxBump-b-heq1p0ousl .5s cubic-bezier(.36, .07, .19, .97);
}
.btx-select-bar:hover[b-heq1p0ousl] {
    transform: translate(-50%, -3px);
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    border-color: rgba(15, 157, 79, .9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24), 0 10px 28px rgba(15, 157, 79, .22), 0 0 0 2px rgba(15, 157, 79, .25), inset 0 1px 0 rgba(255, 255, 255, 1);
}
@keyframes btxBump-b-heq1p0ousl {
    0% { transform: translate(-50%, 0); }
    15% { transform: translate(-50%, -3px) scale(1.015); }
    30% { transform: translate(-50%, -2px) translateX(3px); border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .30), 0 18px 48px rgba(15, 157, 79, .38); }
    45% { transform: translate(-50%, -2px) translateX(-3px); }
    60% { transform: translate(-50%, -2px) translateX(2px); border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .22), 0 14px 36px rgba(15, 157, 79, .28); }
    75% { transform: translate(-50%, -1px) translateX(-1px); }
    100% { transform: translate(-50%, 0); }
}
.btx-select-count[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}
.btx-select-count i[b-heq1p0ousl] {
    color: #0f9d4f;
    font-size: 16px;
}
.btx-count-badge[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0f9d4f, #0b8a42);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(15, 157, 79, .30);
}
.btx-select-btn[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btx-select-btn i[b-heq1p0ousl] {
    color: #fff;
    font-size: 14px;
}
.btx-select-btn:hover[b-heq1p0ousl] {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.btx-select-btn:disabled[b-heq1p0ousl] {
    opacity: .45;
    pointer-events: none;
    box-shadow: none;
}
.btx-btn-bbgn[b-heq1p0ousl] {
    background: linear-gradient(135deg, #0f9d4f, #0b8a42);
    box-shadow: 0 6px 16px rgba(15, 157, 79, .38);
}
.btx-btn-bbgn:hover[b-heq1p0ousl] {
    box-shadow: 0 8px 22px rgba(15, 157, 79, .48);
}
.btx-btn-tt[b-heq1p0ousl] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 16px rgba(59, 130, 246, .38);
}
.btx-btn-tt:hover[b-heq1p0ousl] {
    box-shadow: 0 8px 22px rgba(59, 130, 246, .48);
}
.btx-btn-ydc[b-heq1p0ousl] {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .38);
}
.btx-btn-ydc:hover[b-heq1p0ousl] {
    box-shadow: 0 8px 22px rgba(99, 102, 241, .48);
}
.btx-select-close[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 2px;
    border: none;
    border-radius: 6px;
    background: rgba(15, 23, 42, .06);
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
}
.btx-select-close:hover[b-heq1p0ousl] {
    background: rgba(239, 68, 68, .14);
    color: #dc2626;
}

/* Footer */
.bbgn-footer[b-heq1p0ousl] {
    position: relative;
    z-index: 1;
    padding: 16px 20px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(243,249,245,.9));
    border-top: 1px solid rgba(187, 225, 201, .6);
}

.bbgn-footer-hint[b-heq1p0ousl] {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bbgn-footer-hint i[b-heq1p0ousl] {
    font-size: 13px;
    color: #cbd5e1;
}

.bbgn-actions[b-heq1p0ousl] {
    display: flex;
    gap: 10px;
}

.bbgn-btn[b-heq1p0ousl] {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border: none;
    border-radius: 13px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    transition: all .18s ease;
}
.bbgn-btn:hover:not(:disabled)[b-heq1p0ousl] {
    transform: translateY(-2px);
}
.bbgn-btn:active:not(:disabled)[b-heq1p0ousl] {
    transform: scale(.97);
}
.bbgn-btn:disabled[b-heq1p0ousl] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}
.bbgn-btn i[b-heq1p0ousl] { font-size: 15px; }

/* Mỗi nút một màu + shadow riêng */
.bbgn-btn-excel[b-heq1p0ousl] {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 6px 16px rgba(22, 163, 74, .32), 0 3px 7px rgba(22, 163, 74, .18);
}
.bbgn-btn-excel:hover:not(:disabled)[b-heq1p0ousl] {
    box-shadow: 0 10px 24px rgba(22, 163, 74, .42), 0 4px 12px rgba(22, 163, 74, .24);
}

.bbgn-btn-pdf[b-heq1p0ousl] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .32), 0 3px 7px rgba(239, 68, 68, .18);
}
.bbgn-btn-pdf:hover:not(:disabled)[b-heq1p0ousl] {
    box-shadow: 0 10px 24px rgba(239, 68, 68, .42), 0 4px 12px rgba(239, 68, 68, .24);
}

.bbgn-btn-print[b-heq1p0ousl] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .34), 0 3px 7px rgba(37, 99, 235, .2);
}
.bbgn-btn-print:hover:not(:disabled)[b-heq1p0ousl] {
    box-shadow: 0 10px 24px rgba(37, 99, 235, .46), 0 4px 12px rgba(37, 99, 235, .26);
}

/* Icon xanh dương (dialog tổng hợp) */
.bbgn-icon-blue[b-heq1p0ousl] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .34), 0 4px 10px rgba(37, 99, 235, .2);
}

/* Form trong dialog (dialog tổng hợp) */
.bbgn-form[b-heq1p0ousl] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bbgn-form-row[b-heq1p0ousl] {
    display: flex;
    gap: 12px;
}
.bbgn-form-col[b-heq1p0ousl] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bbgn-form-label[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}
.bbgn-form-label i[b-heq1p0ousl] {
    font-size: 13px;
    color: #2563eb;
}
.bbgn-form .form-control[b-heq1p0ousl],
.bbgn-form :deep(.inputd-input)[b-heq1p0ousl] {
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}
.bbgn-form .form-control:focus[b-heq1p0ousl],
.bbgn-form :deep(.inputd-shell:focus-within)[b-heq1p0ousl] {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* ── Popup cấu hình sắp xếp / bộ lọc (không dùng dialog modal nữa, neo theo nút trigger) ── */
.srt-backdrop[b-heq1p0ousl] {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(255,255,255,.14) 0%, rgba(15,23,42,.2) 45%, rgba(15,23,42,.34) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    animation: bbgnFadeIn-b-heq1p0ousl .18s cubic-bezier(.22, 1, .36, 1) both;
}

.srt-dialog[b-heq1p0ousl] {
    position: relative;
    width: min(600px, 96vw);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,249,.99));
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: 0 36px 100px rgba(15, 23, 42, .28), 0 14px 42px rgba(15, 157, 79, .16), 0 1px 0 rgba(255,255,255,.85) inset;
    animation: bbgnPop-b-heq1p0ousl .22s cubic-bezier(.22, 1, .36, 1) both;
    user-select: none;
    -webkit-user-select: none;
}
.srt-dialog[b-heq1p0ousl]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(15, 157, 79, .10), transparent 32%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, .08), transparent 28%);
}

/* Nút đóng góc */
.srt-close[b-heq1p0ousl] {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 5px;
    background: rgba(15, 23, 42, .05);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}
.srt-close:hover[b-heq1p0ousl] {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .22);
}

/* Body */
.srt-body[b-heq1p0ousl] {
    position: relative;
    z-index: 1;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.srt-head[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 12px;
}
.srt-icon[b-heq1p0ousl] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 8px 18px rgba(15, 157, 79, .32), 0 3px 8px rgba(15, 157, 79, .18);
    flex-shrink: 0;
}
.srt-head-text[b-heq1p0ousl] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.srt-title[b-heq1p0ousl] {
    font-size: 16px;
    font-weight: 800;
    color: #173824;
    letter-spacing: -.2px;
}
.srt-sub[b-heq1p0ousl] {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.srt-sub-part[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.srt-sub-part i[b-heq1p0ousl] {
    font-size: 12px;
    color: #0f9d4f;
}
.srt-sub-arrow[b-heq1p0ousl] {
    font-size: 11px;
    color: #cbd5e1;
}

/* Section */
.srt-section[b-heq1p0ousl] {
    background: #fff;
    border: 1px solid #eef2f0;
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.srt-section-head[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0f9d4f;
    text-transform: uppercase;
    letter-spacing: .4px;
    user-select: none;
}
.srt-section-head i[b-heq1p0ousl] {
    font-size: 14px;
}

/* Nút bật chế độ sắp xếp STT (footer) */
.srt-stt-toggle[b-heq1p0ousl] {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    background: #f8faf9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
    user-select: none;
}
.srt-stt-toggle:hover[b-heq1p0ousl] {
    border-color: #0f9d4f;
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 157, 79, .14);
}
.srt-stt-toggle.active[b-heq1p0ousl] {
    border-color: #0f9d4f;
    background: #eafaf1;
    color: #166534;
    box-shadow: 0 0 0 3px rgba(15, 157, 79, .10), 0 8px 18px rgba(15, 157, 79, .16);
}
.srt-stt-toggle i[b-heq1p0ousl] {
    font-size: 14px;
    color: #0f9d4f;
}
.srt-stt-state[b-heq1p0ousl] {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    background: #e2e8f0;
    color: #94a3b8;
}
.srt-stt-state.on[b-heq1p0ousl] {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(22, 163, 74, .32);
}

/* Footer */
.srt-footer[b-heq1p0ousl] {
    position: relative;
    z-index: 1;
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(243,249,245,.9));
    border-top: 1px solid rgba(187, 225, 201, .6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.srt-footer-left[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.srt-footer-actions[b-heq1p0ousl] {
    display: flex;
    gap: 8px;
}

/* Nút chung trong dialog sắp xếp: radius 5px + shadow mạnh */
.srt-btn[b-heq1p0ousl] {
    height: 32px;
    padding: 0 13px;
    border: none;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .18s ease;
}
.srt-btn:hover:not(:disabled)[b-heq1p0ousl] { transform: translateY(-1px); }
.srt-btn:active:not(:disabled)[b-heq1p0ousl] { transform: scale(.97); }
.srt-btn:disabled[b-heq1p0ousl] { opacity: .5; cursor: not-allowed; transform: none; }
.srt-btn i[b-heq1p0ousl] { font-size: 14px; }

.srt-btn-apply[b-heq1p0ousl] {
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 8px 20px rgba(15, 157, 79, .40), 0 3px 8px rgba(15, 157, 79, .22);
}
.srt-btn-apply:hover:not(:disabled)[b-heq1p0ousl] {
    box-shadow: 0 12px 28px rgba(15, 157, 79, .50), 0 5px 12px rgba(15, 157, 79, .26);
}

.srt-btn-ghost[b-heq1p0ousl] {
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.srt-btn-ghost:hover:not(:disabled)[b-heq1p0ousl] {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}

.srt-reset-btn[b-heq1p0ousl] {
    height: 32px;
    padding: 0 12px;
    border: 1.5px solid #fed7aa;
    border-radius: 5px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .18s ease;
    box-shadow: 0 3px 8px rgba(234, 88, 12, .14);
}
.srt-reset-btn:hover[b-heq1p0ousl] {
    background: #ffedd5;
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(234, 88, 12, .24);
}

/* Profile sắp xếp */
.srt-profile-bar[b-heq1p0ousl] {
    display: flex;
    gap: 8px;
}
.srt-profile-input[b-heq1p0ousl] {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    background: #fff;
    color: #1a3c2a;
    outline: none;
    font-family: inherit;
    transition: all .15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.srt-profile-input:focus[b-heq1p0ousl] {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}
.srt-profile-input[b-heq1p0ousl]::placeholder { color: #94a3b8; }

.srt-btn-save[b-heq1p0ousl] {
    height: 30px;
    padding: 0 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .32), 0 2px 5px rgba(37, 99, 235, .18);
}
.srt-btn-save:hover:not(:disabled)[b-heq1p0ousl] {
    box-shadow: 0 10px 22px rgba(37, 99, 235, .42), 0 4px 10px rgba(37, 99, 235, .22);
}

.srt-profile-list[b-heq1p0ousl] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.srt-profile-chip[b-heq1p0ousl] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px 4px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #fff;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all .15s ease;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .05);
    user-select: none;
}
.srt-profile-chip:hover[b-heq1p0ousl] {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .14);
}
.srt-profile-chip > i:first-child[b-heq1p0ousl] {
    color: #2563eb;
    font-size: 13px;
}
.srt-profile-del[b-heq1p0ousl] {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #cbd5e1;
    font-size: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.srt-profile-del:hover[b-heq1p0ousl] {
    background: #fef2f2;
    color: #ef4444;
}


/* ── Cột "Quyết toán" — 6 chỉ tiêu gọn, phẳng, nhẹ nhàng ── */
.btx-qt[b-heq1p0ousl] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    text-align: left;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}
.btx-qt-grp[b-heq1p0ousl] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.btx-qt-row[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 0;
    white-space: nowrap;
    cursor: help;
}
.btx-qt-row:hover .btx-qt-lbl[b-heq1p0ousl] { color: #334155; }
.btx-qt-left[b-heq1p0ousl] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.btx-qt-ico[b-heq1p0ousl] {
    font-size: 12px;
    line-height: 1;
    width: 15px;
    text-align: center;
    flex: 0 0 auto;
}
.btx-qt-ico.thu[b-heq1p0ousl] { color: #0d9488; }
.btx-qt-ico.chi[b-heq1p0ousl] { color: #dc2626; }
.btx-qt-ico.lai[b-heq1p0ousl] { color: #16a34a; }
.btx-qt-lbl[b-heq1p0ousl] {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .12s ease;
}
.btx-qt-val[b-heq1p0ousl] {
    font-size: 10px;
    font-weight: 700;
    flex: 0 0 auto;
}
.btx-qt-val.thu[b-heq1p0ousl] { color: #0d9488; }
.btx-qt-val.chi[b-heq1p0ousl] { color: #dc2626; }
.btx-qt-val.lai[b-heq1p0ousl] { color: #16a34a; }
.btx-qt-val.am[b-heq1p0ousl]  { color: #ef4444; }
.btx-qt-divider[b-heq1p0ousl] {
    height: 1px;
    background: #eef2f6;
    margin: 2px 0;
}
.btx-qt-empty[b-heq1p0ousl] {
    color: #cbd5e1;
    font-size: 12px;
}

/* ── Số quyết toán: con trỏ giúp đỡ khi hover tooltip ── */
.sqt-num[b-heq1p0ousl] {
    cursor: help;
    font-weight: 700;
    font-size: 11px;
    color: #000000;
}



/* /Components/Pages/TacNghiep/KeHoach.razor.rz.scp.css */
/* ── Status segment (tab button hiện đại, dạng nút riêng lẻ) ── */
.status-segment[b-zaq2isd8zm] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}
.status-segment-item[b-zaq2isd8zm] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.status-segment-item:hover[b-zaq2isd8zm] {
    color: #334155;
    background: #f8fafc;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.status-segment-item:active[b-zaq2isd8zm] {
    transform: scale(.97);
}
.status-segment-item.active[b-zaq2isd8zm] {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #000));
    border-color: transparent;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 30%, transparent);
}
.status-segment-item input[b-zaq2isd8zm] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.status-segment-item i[b-zaq2isd8zm] {
    font-size: 16px;
    color: var(--accent);
    transition: color .18s ease, transform .18s ease;
}
.status-segment-item:hover i[b-zaq2isd8zm] {
    transform: scale(1.1);
}
.status-segment-item.active i[b-zaq2isd8zm] {
    color: #fff;
}

/* ── Page filter bar ── */
.page-filter[b-zaq2isd8zm] {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px;
    flex-wrap: wrap;
    margin: 0;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--border);
}
.page-filter .toolbar-search[b-zaq2isd8zm] { width: 200px; margin-right: 0; flex: 0 0 auto; }
.page-filter .cmbgt-root[b-zaq2isd8zm] { flex: 0 0 auto; }
.page-filter .cmbgt-shell[b-zaq2isd8zm],
.page-filter .inputd-shell[b-zaq2isd8zm] {
    min-height: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.page-filter .cmbgt-shell:hover:not(.disabled):not(.readonly)[b-zaq2isd8zm],
.page-filter .cmbgt-shell:focus-within[b-zaq2isd8zm],
.page-filter .inputd-shell:focus-within[b-zaq2isd8zm] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.page-filter .cmbgt-shell-main[b-zaq2isd8zm] { padding-left: 10px; }
.page-filter .cmbgt-shell-label[b-zaq2isd8zm],
.page-filter .inputd-input[b-zaq2isd8zm] {
    font-size: 13px;
    color: var(--text-main);
}
.page-filter .cmbgt-shell-label.is-placeholder[b-zaq2isd8zm] { color: var(--text-muted); }
.page-filter .form-control[b-zaq2isd8zm],
.page-filter .inputd-input[b-zaq2isd8zm] {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 32px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ── InputD trong toolbar chính ── */
.page-toolbar .form-control[b-zaq2isd8zm],
.page-toolbar .inputd-input[b-zaq2isd8zm] {
    height: 34px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}
.page-toolbar .inputd-shell[b-zaq2isd8zm] { height: 34px !important; }

/* ── Batch send button color ── */
.ike-btn-send-batch[b-zaq2isd8zm] {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}
.ike-btn-send-batch:hover[b-zaq2isd8zm] {
    background: #047857 !important;
    border-color: #047857 !important;
}
.ike-btn-send-batch:disabled[b-zaq2isd8zm] {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
}

/* ── Soft red outline cancel button ── */
.btn-outline-danger-soft[b-zaq2isd8zm] {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: transparent !important;
}
.btn-outline-danger-soft:hover[b-zaq2isd8zm] {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

/* ── Popup bộ lọc (kiểu sắp xếp hiện đại, giống trang bố trí xe) ── */
.srt-backdrop[b-zaq2isd8zm] {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(255,255,255,.14) 0%, rgba(15,23,42,.2) 45%, rgba(15,23,42,.34) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    animation: khFadeIn-b-zaq2isd8zm .18s cubic-bezier(.22, 1, .36, 1) both;
}

.srt-dialog[b-zaq2isd8zm] {
    position: relative;
    width: min(600px, 96vw);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,249,.99));
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: 0 36px 100px rgba(15, 23, 42, .28), 0 14px 42px rgba(15, 157, 79, .16), 0 1px 0 rgba(255,255,255,.85) inset;
    animation: khPop-b-zaq2isd8zm .22s cubic-bezier(.22, 1, .36, 1) both;
    user-select: none;
    -webkit-user-select: none;
}
.srt-dialog[b-zaq2isd8zm]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(15, 157, 79, .10), transparent 32%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, .08), transparent 28%);
}

@keyframes khFadeIn-b-zaq2isd8zm { from { opacity: 0; } to { opacity: 1; } }
@keyframes khPop-b-zaq2isd8zm {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nút đóng góc */
.srt-close[b-zaq2isd8zm] {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 5px;
    background: rgba(15, 23, 42, .05);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}
.srt-close:hover[b-zaq2isd8zm] {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .22);
}

/* Body */
.srt-body[b-zaq2isd8zm] {
    position: relative;
    z-index: 1;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.srt-head[b-zaq2isd8zm] {
    display: flex;
    align-items: center;
    gap: 12px;
}
.srt-icon[b-zaq2isd8zm] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 8px 18px rgba(15, 157, 79, .32), 0 3px 8px rgba(15, 157, 79, .18);
    flex-shrink: 0;
}
.srt-head-text[b-zaq2isd8zm] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.srt-title[b-zaq2isd8zm] {
    font-size: 16px;
    font-weight: 800;
    color: #173824;
    letter-spacing: -.2px;
}
.srt-sub[b-zaq2isd8zm] {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.srt-sub-part[b-zaq2isd8zm] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.srt-sub-part i[b-zaq2isd8zm] {
    font-size: 12px;
    color: #0f9d4f;
}

/* Section */
.srt-section[b-zaq2isd8zm] {
    background: #fff;
    border: 1px solid #eef2f0;
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.srt-section-head[b-zaq2isd8zm] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0f9d4f;
    text-transform: uppercase;
    letter-spacing: .4px;
    user-select: none;
}
.srt-section-head i[b-zaq2isd8zm] {
    font-size: 14px;
}

/* Footer */
.srt-footer[b-zaq2isd8zm] {
    position: relative;
    z-index: 1;
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(243,249,245,.9));
    border-top: 1px solid rgba(187, 225, 201, .6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.srt-footer-left[b-zaq2isd8zm] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.srt-footer-actions[b-zaq2isd8zm] {
    display: flex;
    gap: 8px;
}

/* Nút chung trong dialog lọc */
.srt-btn[b-zaq2isd8zm] {
    height: 32px;
    padding: 0 13px;
    border: none;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .18s ease;
}
.srt-btn:hover:not(:disabled)[b-zaq2isd8zm] { transform: translateY(-1px); }
.srt-btn:active:not(:disabled)[b-zaq2isd8zm] { transform: scale(.97); }
.srt-btn:disabled[b-zaq2isd8zm] { opacity: .5; cursor: not-allowed; transform: none; }
.srt-btn i[b-zaq2isd8zm] { font-size: 14px; }

.srt-btn-apply[b-zaq2isd8zm] {
    background: linear-gradient(135deg, #0f9d4f 0%, #0b8a42 100%);
    box-shadow: 0 8px 20px rgba(15, 157, 79, .40), 0 3px 8px rgba(15, 157, 79, .22);
}
.srt-btn-apply:hover:not(:disabled)[b-zaq2isd8zm] {
    box-shadow: 0 12px 28px rgba(15, 157, 79, .50), 0 5px 12px rgba(15, 157, 79, .26);
}

.srt-btn-ghost[b-zaq2isd8zm] {
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.srt-btn-ghost:hover:not(:disabled)[b-zaq2isd8zm] {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}

.srt-reset-btn[b-zaq2isd8zm] {
    height: 32px;
    padding: 0 12px;
    border: 1.5px solid #fed7aa;
    border-radius: 5px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .18s ease;
    box-shadow: 0 3px 8px rgba(234, 88, 12, .14);
}
.srt-reset-btn:hover[b-zaq2isd8zm] {
    background: #ffedd5;
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(234, 88, 12, .24);
}
/* /Components/Pages/TacNghiep/PageThuChiKhachHang.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────
   Thu chi khách hàng — giao diện hiện đại, gọn
   ───────────────────────────────────────────────────────── */

/* ── Toolbar gộp bộ lọc ── */
.mtck-toolbar[b-1hrkgfrwr2] { min-height: 42px; }
.mtck-toolbar .page-toolbar-left[b-1hrkgfrwr2] { flex-wrap: wrap; row-gap: 4px; }
.mtck-sep[b-1hrkgfrwr2] { width: 1px; height: 22px; background: #e2e8f0; flex-shrink: 0; margin: 0 2px; }

/* ── Tab Thu / Chi ── */
.mtck-tabs[b-1hrkgfrwr2] { display: inline-flex; gap: 3px; background: #f1f5f9; padding: 3px; border-radius: 9px; }
.mtck-tab[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: none; background: transparent; border-radius: 7px; font-size: 12.5px; font-weight: 700; color: #475569; cursor: pointer; transition: all .14s; white-space: nowrap; }
.mtck-tab i[b-1hrkgfrwr2] { font-size: 13px; }
.mtck-tab:hover[b-1hrkgfrwr2] { color: #0f9d4f; }
.mtck-tab.active[b-1hrkgfrwr2] { background: #fff; color: #0f9d4f; box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }

/* ── Số file trong lưới ── */
.mtck-file-count[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 4px; color: #0f9d4f; font-size: 12px; font-weight: 600; }

/* ── Tổng cộng gọn trong thanh phân trang (bằng chiều cao paging danh mục) ── */
.mtck-pager-summary[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.mtck-ps-item[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 7px; background: #f1f5f9; border: 1px solid #e8edf3; }
.mtck-ps-item i[b-1hrkgfrwr2] { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; background: #fff; color: #64748b; }
.mtck-ps-label[b-1hrkgfrwr2] { font-size: 10px; color: #64748b; font-weight: 600; letter-spacing: .1px; }
.mtck-ps-item b[b-1hrkgfrwr2] { font-size: 12px; font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.mtck-ps-total[b-1hrkgfrwr2] { background: #f0fdf4; border-color: #bbf7d0; }
.mtck-ps-total i[b-1hrkgfrwr2] { background: #0f9d4f; color: #fff; }
.mtck-ps-total .mtck-ps-label[b-1hrkgfrwr2] { color: #16a34a; }
.mtck-ps-total b[b-1hrkgfrwr2] { color: #0f9d4f; }

/* ── Modal hiện đại ── */
.mtck-backdrop[b-1hrkgfrwr2] { position: fixed; inset: 0; z-index: 9000; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: mtckFade-b-1hrkgfrwr2 .15s ease both; }
.mtck-panel[b-1hrkgfrwr2] { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(15, 23, 42, .3); display: flex; flex-direction: column; overflow: hidden; max-height: 92vh; animation: mtckPop-b-1hrkgfrwr2 .18s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes mtckFade-b-1hrkgfrwr2 { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtckPop-b-1hrkgfrwr2 { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.mtck-head[b-1hrkgfrwr2] { display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px; background: #fff; border-bottom: 1px solid #f1f5f9; flex-shrink: 0; }
.mtck-head-icon[b-1hrkgfrwr2] { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; color: #fff; }
.mtck-head.thu .mtck-head-icon[b-1hrkgfrwr2] { background: linear-gradient(135deg, #16a34a, #0b8a42); box-shadow: 0 4px 12px rgba(15, 157, 79, .3); }
.mtck-head.chi .mtck-head-icon[b-1hrkgfrwr2] { background: linear-gradient(135deg, #ea580c, #c2410c); box-shadow: 0 4px 12px rgba(234, 88, 12, .3); }
.mtck-head-txt[b-1hrkgfrwr2] { flex: 1; min-width: 0; }
.mtck-head-title[b-1hrkgfrwr2] { font-size: 14.5px; font-weight: 800; color: #1f2937; line-height: 1.2; }
.mtck-head-sub[b-1hrkgfrwr2] { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.mtck-close[b-1hrkgfrwr2] { border: none; background: transparent; color: #94a3b8; width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transition: all .14s ease; }
.mtck-close:hover[b-1hrkgfrwr2] { color: #334155; background: #f1f5f9; }

.mtck-body[b-1hrkgfrwr2] { padding: 16px 18px; overflow-y: auto; flex: 1; min-height: 0; }

.mtck-foot[b-1hrkgfrwr2] { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #eef2f7; background: #fff; flex-shrink: 0; }

.mtck-btn[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: none; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.mtck-btn i[b-1hrkgfrwr2] { font-size: 14px; }
.mtck-btn:hover:not(:disabled)[b-1hrkgfrwr2] { transform: translateY(-1px); }
.mtck-btn:active:not(:disabled)[b-1hrkgfrwr2] { transform: scale(.97); }
.mtck-btn:disabled[b-1hrkgfrwr2] { opacity: .5; cursor: not-allowed; }
.mtck-btn.primary[b-1hrkgfrwr2] { background: linear-gradient(135deg, #0f9d4f, #0b8a42); color: #fff; box-shadow: 0 6px 16px rgba(15, 157, 79, .3); }
.mtck-btn.primary:hover:not(:disabled)[b-1hrkgfrwr2] { box-shadow: 0 10px 24px rgba(15, 157, 79, .4); }
.mtck-btn.danger[b-1hrkgfrwr2] { background: linear-gradient(135deg, #ea580c, #c2410c); color: #fff; box-shadow: 0 6px 16px rgba(234, 88, 12, .3); }
.mtck-btn.danger:hover:not(:disabled)[b-1hrkgfrwr2] { box-shadow: 0 10px 24px rgba(234, 88, 12, .4); }
.mtck-btn.ghost[b-1hrkgfrwr2] { background: #fff; color: #475569; border: 1.5px solid #e2e8f0; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.mtck-btn.ghost:hover:not(:disabled)[b-1hrkgfrwr2] { background: #f8fafc; border-color: #cbd5e1; }

/* ── Combobox + nút thêm nhanh danh mục ── */
.mtck-combo-plus[b-1hrkgfrwr2] { display: flex; gap: 6px; align-items: center; }
.mtck-combo-plus-main[b-1hrkgfrwr2] { flex: 1; min-width: 0; }
.mtck-combo-plus-btn[b-1hrkgfrwr2] { width: 32px; height: 32px; flex-shrink: 0; border: 1.5px dashed #0f9d4f; border-radius: 8px; background: #f0fdf4; color: #0f9d4f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: all .14s ease; }
.mtck-combo-plus-btn:hover[b-1hrkgfrwr2] { background: #dcfce7; border-style: solid; }

/* ── Hàng tiền gộp 1 dòng trong dialog ── */
.mtck-money-row[b-1hrkgfrwr2] { display: flex; gap: 8px; align-items: flex-end; margin: 2px 0 6px; }
.mtck-money-field[b-1hrkgfrwr2] { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mtck-money-field > label[b-1hrkgfrwr2] { font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .3px; }
.mtck-money-field .inputn-root[b-1hrkgfrwr2] { width: 100%; }
.mtck-money-value[b-1hrkgfrwr2] { display: flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 13px; font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.mtck-money-total .mtck-money-value[b-1hrkgfrwr2] { background: #f0fdf4; border-color: #bbf7d0; color: #0f9d4f; font-size: 14px; font-weight: 800; }

/* ── File đính kèm trong dialog ── */
.mtck-file-section[b-1hrkgfrwr2] { margin-top: 14px; border-top: 1px solid #eef0f2; padding-top: 12px; }
.mtck-file-head[b-1hrkgfrwr2] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mtck-file-head > span[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1f2937; }
.mtck-file-head > span i[b-1hrkgfrwr2] { color: #0f9d4f; font-size: 14px; }

/* Nút "Chọn file" — ẩn InputFile gốc, chỉ giữ nhãn đẹp */
.mtck-file-upload[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .15s ease; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.mtck-file-upload i[b-1hrkgfrwr2] { color: #0f9d4f; font-size: 14px; }
.mtck-file-upload:hover[b-1hrkgfrwr2] { border-color: #0f9d4f; background: #f0fdf4; color: #0f9d4f; }
.mtck-file-upload input[b-1hrkgfrwr2] { display: none; }

.mtck-file-list[b-1hrkgfrwr2] { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; padding-right: 2px; }
.mtck-file-empty[b-1hrkgfrwr2] { padding: 22px 14px; text-align: center; color: #94a3b8; font-size: 12.5px; border: 1.5px dashed #e2e8f0; border-radius: 10px; }
.mtck-file-item[b-1hrkgfrwr2] { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #eef0f2; border-radius: 9px; background: #fff; transition: border-color .14s ease, box-shadow .14s ease; }
.mtck-file-item:hover[b-1hrkgfrwr2] { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); }
.mtck-file-item > i[b-1hrkgfrwr2] { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: #0f9d4f; background: #f0fdf4; border-radius: 8px; }
.mtck-file-meta[b-1hrkgfrwr2] { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mtck-file-meta b[b-1hrkgfrwr2] { font-size: 12.5px; font-weight: 700; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtck-file-meta span[b-1hrkgfrwr2] { font-size: 11px; color: #94a3b8; }
.mtck-file-actions[b-1hrkgfrwr2] { display: flex; gap: 4px; flex-shrink: 0; }
.mtck-file-actions .btn[b-1hrkgfrwr2] { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; }

/* ── Dialog quản lý danh mục ── */
.mtck-dm-tabs[b-1hrkgfrwr2] { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-bottom: 1px solid #f1f5f9; background: #f8fafc; flex-shrink: 0; }
.mtck-dm-tab[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .14s ease; }
.mtck-dm-tab i[b-1hrkgfrwr2] { font-size: 12px; }
.mtck-dm-tab:hover[b-1hrkgfrwr2] { border-color: #cbd5e1; }
.mtck-dm-tab.active[b-1hrkgfrwr2] { background: linear-gradient(135deg, #0f9d4f, #0b8a42); border-color: transparent; color: #fff; box-shadow: 0 3px 8px rgba(15, 157, 79, .3); }
.mtck-dm-spacer[b-1hrkgfrwr2] { flex: 1; }
.mtck-dm-search[b-1hrkgfrwr2] { height: 30px; width: 170px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 12px; font-size: 12.5px; color: #1f2937; outline: none; background: #fff; transition: border-color .14s ease, box-shadow .14s ease; }
.mtck-dm-search:focus[b-1hrkgfrwr2] { border-color: #0f9d4f; box-shadow: 0 0 0 3px rgba(15, 157, 79, .14); }

.mtck-dm-body[b-1hrkgfrwr2] { padding: 14px 18px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }

.mtck-dm-form[b-1hrkgfrwr2] { border: 1px solid #eef2f7; border-radius: 12px; padding: 14px; background: #f8fafc; }
.mtck-dm-form-actions[b-1hrkgfrwr2] { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.mtck-dm-add[b-1hrkgfrwr2] { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 32px; padding: 0 14px; border: 1.5px dashed #0f9d4f; border-radius: 9px; background: #f0fdf4; color: #0f9d4f; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .14s ease; }
.mtck-dm-add:hover:not(:disabled)[b-1hrkgfrwr2] { background: #dcfce7; border-style: solid; }
.mtck-dm-add:disabled[b-1hrkgfrwr2] { opacity: .5; cursor: not-allowed; }

.mtck-dm-list[b-1hrkgfrwr2] { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.mtck-dm-empty[b-1hrkgfrwr2] { padding: 24px; text-align: center; color: #94a3b8; font-size: 12.5px; }
.mtck-dm-row[b-1hrkgfrwr2] { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #eef2f7; border-radius: 10px; transition: all .14s ease; }
.mtck-dm-row:hover[b-1hrkgfrwr2] { border-color: #cbd5e1; background: #fafbfc; }
.mtck-dm-row.off[b-1hrkgfrwr2] { opacity: .55; }
.mtck-dm-code[b-1hrkgfrwr2] { font-size: 13px; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; min-width: 90px; }
.mtck-dm-name[b-1hrkgfrwr2] { flex: 1; min-width: 0; font-size: 12.5px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtck-dm-stt[b-1hrkgfrwr2] { font-size: 11px; color: #94a3b8; width: 34px; text-align: right; }
.mtck-dm-badge[b-1hrkgfrwr2] { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: .2px; }
.mtck-dm-badge.on[b-1hrkgfrwr2] { background: #dcfce7; color: #16a34a; }
.mtck-dm-badge.off[b-1hrkgfrwr2] { background: #f1f5f9; color: #94a3b8; }
.mtck-dm-actions[b-1hrkgfrwr2] { display: flex; gap: 4px; flex-shrink: 0; }
.mtck-dm-act[b-1hrkgfrwr2] { width: 28px; height: 28px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: all .14s ease; }
.mtck-dm-act:hover[b-1hrkgfrwr2] { background: #eef7f1; color: #0f9d4f; border-color: #a7d7b9; }
.mtck-dm-act.del:hover[b-1hrkgfrwr2] { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
