/**
 * SWORLD CRM Modern UI Kit v2.4
 * Data-safe Workroom/Figma-inspired skin.
 * No dashboard data injection. No duplicated sales/revenue logic.
 */
body.swcrm-mui-active {
    --mui-bg: #f4f8fc;
    --mui-surface: #ffffff;
    --mui-surface-soft: #f8fbfe;
    --mui-blue-soft: #edf6ff;
    --mui-blue: #3185ff;
    --mui-blue-strong: #1f6fff;
    --mui-text: #101828;
    --mui-heading: #0b1220;
    --mui-muted: #667085;
    --mui-soft: #98a2b3;
    --mui-border: #e8eef6;
    --mui-border-strong: #d9e6f2;
    --mui-green: #12b76a;
    --mui-red: #f04438;
    --mui-amber: #f79009;
    --mui-radius-sm: 14px;
    --mui-radius-md: 18px;
    --mui-radius-lg: 24px;
    --mui-radius-xl: 30px;
    --mui-shadow-card: 0 18px 42px rgba(16, 24, 40, .055);
    --mui-shadow-panel: 0 24px 58px rgba(16, 24, 40, .075);
    background: radial-gradient(circle at top left, #edf6ff 0, #f4f8fc 300px, #f4f8fc 100%) !important;
    color: var(--mui-text) !important;
}

body.swcrm-mui-active,
body.swcrm-mui-active button,
body.swcrm-mui-active input,
body.swcrm-mui-active select,
body.swcrm-mui-active textarea {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.swcrm-mui-active .site-content,
body.swcrm-mui-active .ast-container,
body.swcrm-mui-active #primary,
body.swcrm-mui-active article,
body.swcrm-mui-active .entry-content {
    background: transparent !important;
}

body.swcrm-mui-active .entry-title,
body.swcrm-mui-active .entry-header {
    display: none !important;
}

body.swcrm-mui-active p {
    margin-bottom: 0;
}

/* App shell: keep Frontend Core as source, only skin it. */
body.swcrm-mui-active .swcrmfc-sidebar {
    background: rgba(255,255,255,.96) !important;
    border-right: 1px solid rgba(224, 234, 246, .9) !important;
    box-shadow: 18px 0 50px rgba(16, 24, 40, .055) !important;
    backdrop-filter: blur(14px);
}

body.swcrm-mui-active .swcrmfc-brand {
    color: var(--mui-heading) !important;
}

body.swcrm-mui-active .swcrmfc-nav-label {
    color: var(--mui-soft) !important;
    letter-spacing: .08em !important;
    font-weight: 800 !important;
}

body.swcrm-mui-active .swcrmfc-nav-item {
    min-height: 44px !important;
    border-radius: 14px !important;
    color: var(--mui-muted) !important;
    transition: background .16s ease, color .16s ease, transform .16s ease !important;
}

body.swcrm-mui-active .swcrmfc-nav-item:hover,
body.swcrm-mui-active .swcrmfc-nav-item.is-active {
    background: var(--mui-blue-soft) !important;
    color: var(--mui-blue-strong) !important;
    box-shadow: none !important;
}

body.swcrm-mui-active .swcrmfc-nav-item.is-active .swcrmfc-nav-icon,
body.swcrm-mui-active .swcrmfc-nav-item:hover .swcrmfc-nav-icon {
    background: var(--mui-blue) !important;
    color: #fff !important;
}

body.swcrm-mui-active .swcrmfc-topbar {
    background: rgba(244,248,252,.72) !important;
    border-bottom: 1px solid rgba(224, 234, 246, .7) !important;
    backdrop-filter: blur(14px);
}

body.swcrm-mui-active .swcrmfc-content {
    background: transparent !important;
}

/* Existing dashboard: style, do not replace data. */
body.swcrm-mui-has-dashboard .swcrm11m-page {
    width: min(100%, 1260px) !important;
    margin: 28px auto 38px !important;
    padding: 0 8px !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 220px !important;
    padding: 34px 36px !important;
    border-radius: 32px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 62%, #edf6ff 100%) !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    box-shadow: var(--mui-shadow-panel) !important;
    color: var(--mui-heading) !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-hero:after {
    content: "";
    position: absolute;
    right: -68px;
    top: -76px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(49,133,255,.12);
    pointer-events: none;
}

body.swcrm-mui-has-dashboard .swcrm11m-date {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: var(--mui-blue-strong) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-bottom: 18px !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-hero h1 {
    max-width: 620px !important;
    margin: 0 0 12px !important;
    color: var(--mui-heading) !important;
    font-size: clamp(34px, 4.4vw, 50px) !important;
    line-height: .98 !important;
    letter-spacing: -1px !important;
    font-weight: 850 !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-hero p {
    max-width: 670px !important;
    color: var(--mui-muted) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 24px !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-action-primary,
body.swcrm-mui-has-dashboard .swcrm11m-action-light {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-action-primary {
    background: var(--mui-blue) !important;
    color: #fff !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-action-light {
    background: #fff !important;
    border: 1px solid var(--mui-border) !important;
    color: var(--mui-muted) !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 22px 0 !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-kpi {
    min-height: 138px !important;
    padding: 22px !important;
    border-radius: 28px !important;
    background: #fff !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-kpi span {
    color: var(--mui-muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-kpi strong {
    display: block !important;
    margin-top: 12px !important;
    color: var(--mui-heading) !important;
    font-size: clamp(26px, 2.3vw, 36px) !important;
    line-height: 1 !important;
    letter-spacing: -.8px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-kpi small {
    display: block !important;
    margin-top: 12px !important;
    color: var(--mui-soft) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.swcrm-mui-has-dashboard .swcrm11m-grid {
    gap: 22px !important;
}

/* Cards / panels: scoped known CRM components only. */
body.swcrm-mui-active .swcrm11m-panel,
body.swcrm-mui-active .swcrm-card,
body.swcrm-mui-active .swcrm-section,
body.swcrm-mui-active .swquick-card,
body.swcrm-mui-active .swps-card,
body.swcrm-mui-active .swk21-card,
body.swcrm-mui-active .swpay-card,
body.swcrm-mui-active .swfix-card,
body.swcrm-mui-active .swjune-card,
body.swcrm-mui-active .swcrm-qi-card,
body.swcrm-mui-active .swcrm-dh-card {
    background: var(--mui-surface) !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    border-radius: var(--mui-radius-xl) !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-active .swcrm11m-panel,
body.swcrm-mui-active .swps-card,
body.swcrm-mui-active .swk21-card,
body.swcrm-mui-active .swpay-card,
body.swcrm-mui-active .swfix-card {
    padding: 24px !important;
}

body.swcrm-mui-active .swcrm11m-panel-head,
body.swcrm-mui-active .swps-card > h2,
body.swcrm-mui-active .swk21-card > h2,
body.swcrm-mui-active .swpay-card > h2,
body.swcrm-mui-active .swfix-card > h2 {
    color: var(--mui-heading) !important;
}

body.swcrm-mui-active .swcrm11m-panel-head h2,
body.swcrm-mui-active .swps-card h2,
body.swcrm-mui-active .swk21-card h2,
body.swcrm-mui-active .swpay-card h2,
body.swcrm-mui-active .swfix-card h2 {
    color: var(--mui-heading) !important;
    font-size: 20px !important;
    letter-spacing: -.3px !important;
    font-weight: 850 !important;
}

body.swcrm-mui-active .swcrm11m-panel-link,
body.swcrm-mui-active .swps-btn-secondary,
body.swcrm-mui-active .swk21-btn-secondary {
    color: var(--mui-blue-strong) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

/* Existing module heroes: convert dark/gradient blocks to Workroom light cards. */
body.swcrm-mui-active .swcrm11m-hero,
body.swcrm-mui-active .swcrm-dashboard-hero,
body.swcrm-mui-active .swcrm-unified-hero,
body.swcrm-mui-active .swquick-hero,
body.swcrm-mui-active .swk21-hero,
body.swcrm-mui-active .swpay-hero,
body.swcrm-mui-active .swfix-hero,
body.swcrm-mui-active .swcrm-dh-hero,
body.swcrm-mui-active .swcrm-reminder-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
    color: var(--mui-heading) !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    border-radius: var(--mui-radius-xl) !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-active .swcrm11m-hero *,
body.swcrm-mui-active .swcrm-dashboard-hero *,
body.swcrm-mui-active .swcrm-unified-hero *,
body.swcrm-mui-active .swquick-hero *,
body.swcrm-mui-active .swk21-hero *,
body.swcrm-mui-active .swpay-hero *,
body.swcrm-mui-active .swfix-hero *,
body.swcrm-mui-active .swcrm-dh-hero *,
body.swcrm-mui-active .swcrm-reminder-hero * {
    color: inherit !important;
}

body.swcrm-mui-active .swcrm11m-hero p,
body.swcrm-mui-active .swcrm-dashboard-hero p,
body.swcrm-mui-active .swcrm-unified-hero p,
body.swcrm-mui-active .swquick-hero p,
body.swcrm-mui-active .swk21-hero p,
body.swcrm-mui-active .swpay-hero p,
body.swcrm-mui-active .swfix-hero p,
body.swcrm-mui-active .swcrm-dh-hero p,
body.swcrm-mui-active .swcrm-reminder-hero p {
    color: var(--mui-muted) !important;
}

/* Tables: only known CRM tables, not all tables globally. */
body.swcrm-mui-active .swcrm11m-table,
body.swcrm-mui-active .swps-table,
body.swcrm-mui-active .swk21-table,
body.swcrm-mui-active .swpay-table,
body.swcrm-mui-active .swfix-table,
body.swcrm-mui-active .swcrm-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

body.swcrm-mui-active .swcrm11m-table th,
body.swcrm-mui-active .swps-table th,
body.swcrm-mui-active .swk21-table th,
body.swcrm-mui-active .swpay-table th,
body.swcrm-mui-active .swfix-table th,
body.swcrm-mui-active .swcrm-table th {
    background: #f8fbfe !important;
    color: var(--mui-muted) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .01em !important;
    border-bottom: 1px solid var(--mui-border) !important;
    white-space: nowrap !important;
}

body.swcrm-mui-active .swcrm11m-table td,
body.swcrm-mui-active .swps-table td,
body.swcrm-mui-active .swk21-table td,
body.swcrm-mui-active .swpay-table td,
body.swcrm-mui-active .swfix-table td,
body.swcrm-mui-active .swcrm-table td {
    border-bottom: 1px solid #f0f4f8 !important;
    color: var(--mui-text) !important;
    vertical-align: middle !important;
}

body.swcrm-mui-active .swcrm11m-table tr:hover td,
body.swcrm-mui-active .swps-table tr:hover td,
body.swcrm-mui-active .swk21-table tr:hover td,
body.swcrm-mui-active .swpay-table tr:hover td,
body.swcrm-mui-active .swfix-table tr:hover td,
body.swcrm-mui-active .swcrm-table tr:hover td {
    background: #f8fbfe !important;
}

body.swcrm-mui-active .swps-scroll,
body.swcrm-mui-active .swcrm11m-table-wrap,
body.swcrm-mui-active .swk21-scroll,
body.swcrm-mui-active .swpay-scroll,
body.swcrm-mui-active .swfix-scroll {
    border-radius: 20px !important;
    border: 1px solid var(--mui-border) !important;
    overflow: auto !important;
    background: #fff !important;
}

/* Filters/forms */
body.swcrm-mui-active .swps-filters,
body.swcrm-mui-active .swk21-filters,
body.swcrm-mui-active .swpay-filters,
body.swcrm-mui-active .swfix-filters,
body.swcrm-mui-active .swcrm-filterbar {
    background: #fff !important;
    border: 1px solid var(--mui-border) !important;
    border-radius: var(--mui-radius-lg) !important;
    box-shadow: var(--mui-shadow-card) !important;
    padding: 18px !important;
    gap: 12px !important;
}

body.swcrm-mui-active input:not([type="checkbox"]):not([type="radio"]),
body.swcrm-mui-active select,
body.swcrm-mui-active textarea {
    min-height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid #e1ebf5 !important;
    background: #fff !important;
    color: var(--mui-text) !important;
    box-shadow: none !important;
}

body.swcrm-mui-active input:focus,
body.swcrm-mui-active select:focus,
body.swcrm-mui-active textarea:focus {
    border-color: #9bc8ff !important;
    box-shadow: 0 0 0 4px rgba(49,133,255,.12) !important;
    outline: none !important;
}

body.swcrm-mui-active label,
body.swcrm-mui-active legend {
    color: var(--mui-heading) !important;
    font-weight: 750 !important;
}

/* Buttons and pills */
body.swcrm-mui-active button,
body.swcrm-mui-active .button,
body.swcrm-mui-active input[type="submit"],
body.swcrm-mui-active a.swcrm-btn,
body.swcrm-mui-active .swps-btn,
body.swcrm-mui-active .swk21-btn,
body.swcrm-mui-active .swpay-btn,
body.swcrm-mui-active .swfix-btn,
body.swcrm-mui-active .swcrm11m-row-btn {
    border-radius: 14px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

body.swcrm-mui-active button[type="submit"],
body.swcrm-mui-active input[type="submit"],
body.swcrm-mui-active .swps-filter-actions button,
body.swcrm-mui-active .swcrm11m-row-btn {
    background: var(--mui-blue) !important;
    color: #fff !important;
    border-color: var(--mui-blue) !important;
}

body.swcrm-mui-active .swps-pill,
body.swcrm-mui-active .swk21-pill,
body.swcrm-mui-active .swpay-pill,
body.swcrm-mui-active .swfix-pill,
body.swcrm-mui-active .swcrm11m-pill {
    border-radius: 999px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

/* Quick intake: make long form easier to scan without changing fields. */
body.swcrm-mui-active .swcrm-qi-wrap,
body.swcrm-mui-active .swcrm-qi-shell,
body.swcrm-mui-active .swcrm-qi-form {
    color: var(--mui-text) !important;
}

body.swcrm-mui-active .swcrm-qi-section,
body.swcrm-mui-active .swcrm-qi-box,
body.swcrm-mui-active .swcrm-qi-panel {
    background: #fff !important;
    border: 1px solid var(--mui-border) !important;
    border-radius: var(--mui-radius-xl) !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-active .swcrm-qi-help,
body.swcrm-mui-active .description,
body.swcrm-mui-active small {
    color: var(--mui-muted) !important;
}

@media (max-width: 1180px) {
    body.swcrm-mui-has-dashboard .swcrm11m-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
    body.swcrm-mui-has-dashboard .swcrm11m-page { margin: 18px auto 28px !important; padding: 0 !important; }
    body.swcrm-mui-has-dashboard .swcrm11m-hero { padding: 24px !important; border-radius: 24px !important; }
    body.swcrm-mui-has-dashboard .swcrm11m-kpis { grid-template-columns: 1fr !important; }
    body.swcrm-mui-active .swcrm11m-panel,
    body.swcrm-mui-active .swps-card,
    body.swcrm-mui-active .swk21-card,
    body.swcrm-mui-active .swpay-card,
    body.swcrm-mui-active .swfix-card { padding: 18px !important; border-radius: 22px !important; }
}

/* -------------------------------------------------------------------------
 * v2.3 Invoice / warehouse table system
 * Scope: /hoa-don/ and /kho-hoa-don/ only.
 * Visual-only: no DOM injection, no JS, no table column changes.
 * ------------------------------------------------------------------------- */
body.swcrm-mui-route-hoa-don .swps,
body.swcrm-mui-route-kho-hoa-don .swps {
    width: min(100%, 1280px) !important;
    margin: 26px auto 42px !important;
    padding: 0 8px !important;
}

body.swcrm-mui-route-hoa-don .swps-hero,
body.swcrm-mui-route-kho-hoa-don .swps-hero {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 32px !important;
    padding: 30px 34px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdff 54%, #edf6ff 100%) !important;
    border: 1px solid rgba(232, 238, 246, .98) !important;
    box-shadow: 0 24px 58px rgba(16, 24, 40, .065) !important;
    margin-bottom: 20px !important;
}

body.swcrm-mui-route-hoa-don .swps-hero:after,
body.swcrm-mui-route-kho-hoa-don .swps-hero:after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -60px;
    top: -82px;
    border-radius: 999px;
    background: rgba(49, 133, 255, .12);
    pointer-events: none;
}

body.swcrm-mui-route-hoa-don .swps-hero h1,
body.swcrm-mui-route-kho-hoa-don .swps-hero h1 {
    margin: 0 0 10px !important;
    color: var(--mui-heading) !important;
    font-size: clamp(32px, 3.8vw, 48px) !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-route-hoa-don .swps-hero p,
body.swcrm-mui-route-kho-hoa-don .swps-hero p {
    max-width: 720px !important;
    color: var(--mui-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

body.swcrm-mui-route-hoa-don .swps-stats,
body.swcrm-mui-route-kho-hoa-don .swps-stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 0 20px !important;
}

body.swcrm-mui-route-kho-hoa-don .swps-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.swcrm-mui-route-hoa-don .swps-stats > div,
body.swcrm-mui-route-kho-hoa-don .swps-stats > div {
    min-height: 112px !important;
    border-radius: 26px !important;
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid rgba(232, 238, 246, .98) !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-route-hoa-don .swps-stats small,
body.swcrm-mui-route-kho-hoa-don .swps-stats small {
    display: block !important;
    color: var(--mui-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 850 !important;
    margin-bottom: 10px !important;
}

body.swcrm-mui-route-hoa-don .swps-stats strong,
body.swcrm-mui-route-kho-hoa-don .swps-stats strong {
    color: var(--mui-heading) !important;
    font-size: clamp(20px, 1.8vw, 28px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.5px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-route-hoa-don .swps-stats strong.green,
body.swcrm-mui-route-kho-hoa-don .swps-stats strong.green,
body.swcrm-mui-route-hoa-don .green,
body.swcrm-mui-route-kho-hoa-don .green {
    color: var(--mui-green) !important;
}

body.swcrm-mui-route-hoa-don .swps-stats strong.orange,
body.swcrm-mui-route-kho-hoa-don .swps-stats strong.orange,
body.swcrm-mui-route-hoa-don .orange,
body.swcrm-mui-route-kho-hoa-don .orange {
    color: var(--mui-amber) !important;
}

body.swcrm-mui-route-hoa-don .swps-filter,
body.swcrm-mui-route-kho-hoa-don .swps-filter {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    align-items: end !important;
    margin: 0 0 20px !important;
    padding: 18px !important;
    border-radius: 28px !important;
    border: 1px solid rgba(232, 238, 246, .98) !important;
    background: #ffffff !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-route-kho-hoa-don .swps-card > .swps-filter {
    margin: 12px 0 0 !important;
    box-shadow: none !important;
    border-radius: 22px !important;
    background: #f8fbfe !important;
}

body.swcrm-mui-route-hoa-don .swps-filter label,
body.swcrm-mui-route-kho-hoa-don .swps-filter label {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 !important;
    color: var(--mui-muted) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
}

body.swcrm-mui-route-hoa-don .swps-filter select,
body.swcrm-mui-route-kho-hoa-don .swps-filter select,
body.swcrm-mui-route-hoa-don .swps-filter input,
body.swcrm-mui-route-kho-hoa-don .swps-filter input {
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    border: 1px solid #dfeaf5 !important;
    background-color: #fff !important;
    color: var(--mui-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.swcrm-mui-route-hoa-don .swps-filter-actions,
body.swcrm-mui-route-kho-hoa-don .swps-filter-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    grid-column: span 2 !important;
}

body.swcrm-mui-route-hoa-don .swps-filter-actions button,
body.swcrm-mui-route-hoa-don .swps-filter-actions a,
body.swcrm-mui-route-kho-hoa-don .swps-filter button,
body.swcrm-mui-route-kho-hoa-don .swps-filter a {
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

body.swcrm-mui-route-hoa-don .swps-card,
body.swcrm-mui-route-kho-hoa-don .swps-card {
    border-radius: 30px !important;
    overflow: hidden !important;
}

body.swcrm-mui-route-hoa-don .swps-card h2,
body.swcrm-mui-route-kho-hoa-don .swps-card h2 {
    margin: 0 0 8px !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
}

body.swcrm-mui-route-hoa-don .swps-scroll,
body.swcrm-mui-route-kho-hoa-don .swps-scroll {
    position: relative !important;
    border-radius: 24px !important;
    border: 1px solid #e4edf7 !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}

body.swcrm-mui-route-hoa-don .swps-scroll::-webkit-scrollbar,
body.swcrm-mui-route-kho-hoa-don .swps-scroll::-webkit-scrollbar {
    height: 12px !important;
    width: 12px !important;
}

body.swcrm-mui-route-hoa-don .swps-scroll::-webkit-scrollbar-track,
body.swcrm-mui-route-kho-hoa-don .swps-scroll::-webkit-scrollbar-track {
    background: #f3f7fb !important;
    border-radius: 999px !important;
}

body.swcrm-mui-route-hoa-don .swps-scroll::-webkit-scrollbar-thumb,
body.swcrm-mui-route-kho-hoa-don .swps-scroll::-webkit-scrollbar-thumb {
    background: #cbdced !important;
    border-radius: 999px !important;
    border: 3px solid #f3f7fb !important;
}

body.swcrm-mui-route-hoa-don .swps-table,
body.swcrm-mui-route-kho-hoa-don .swps-table {
    min-width: 1500px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

body.swcrm-mui-route-kho-hoa-don .swps-table {
    min-width: 1180px !important;
}

body.swcrm-mui-route-hoa-don .swps-table thead th,
body.swcrm-mui-route-kho-hoa-don .swps-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    height: 48px !important;
    padding: 13px 14px !important;
    background: #f7fbff !important;
    color: #5b6b7d !important;
    border-bottom: 1px solid #e4edf7 !important;
    text-transform: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
}

body.swcrm-mui-route-hoa-don .swps-table td,
body.swcrm-mui-route-kho-hoa-don .swps-table td {
    padding: 14px !important;
    border-bottom: 1px solid #eef4fa !important;
    background: #fff !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: var(--mui-text) !important;
}

body.swcrm-mui-route-hoa-don .swps-table tbody tr:nth-child(even) td,
body.swcrm-mui-route-kho-hoa-don .swps-table tbody tr:nth-child(even) td {
    background: #fcfdff !important;
}

body.swcrm-mui-route-hoa-don .swps-table tbody tr:hover td,
body.swcrm-mui-route-kho-hoa-don .swps-table tbody tr:hover td {
    background: #f5faff !important;
}

/* Invoice table: preserve all 15 columns, only tune width/alignment. */
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(1),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(1) { width: 220px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(2),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(2) { width: 92px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(3),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(3) { width: 150px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(4),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(4) { width: 150px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(5),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(5) { width: 112px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(6),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(6) { width: 122px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(7),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(7) { width: 132px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(8),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(8),
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(9),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(9),
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(10),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(10) {
    width: 126px !important;
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
}
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(11),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(11) { width: 132px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(12),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(12) { width: 150px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(13),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(13) { width: 126px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(14),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(14) { width: 104px !important; white-space: nowrap !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(15),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(15) { width: 92px !important; text-align: center !important; }

body.swcrm-mui-route-hoa-don .swps-table td:nth-child(8) strong,
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(9) strong,
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(10) strong,
body.swcrm-mui-route-kho-hoa-don .swps-table td:nth-child(7) strong,
body.swcrm-mui-route-kho-hoa-don .swps-table td:nth-child(8) {
    font-weight: 900 !important;
    letter-spacing: -.2px !important;
}

body.swcrm-mui-route-hoa-don .swps-table td:nth-child(9) strong,
body.swcrm-mui-route-kho-hoa-don .swps-table td:nth-child(7) strong {
    color: var(--mui-green) !important;
}

body.swcrm-mui-route-hoa-don .swps-table td:nth-child(10) strong,
body.swcrm-mui-route-kho-hoa-don .swps-table td:nth-child(8) {
    color: var(--mui-amber) !important;
}

body.swcrm-mui-route-hoa-don .swps-table small,
body.swcrm-mui-route-kho-hoa-don .swps-table small {
    color: var(--mui-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.swcrm-mui-route-hoa-don .swps-pill,
body.swcrm-mui-route-kho-hoa-don .swps-pill {
    min-height: 26px !important;
    align-items: center !important;
    border-radius: 999px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    border: 1px solid transparent !important;
}

body.swcrm-mui-route-hoa-don .swps-pill:not(.status-paid):not(.status-partial):not(.status-unpaid):not(.status-cancel),
body.swcrm-mui-route-kho-hoa-don .swps-pill:not(.status-paid):not(.status-partial):not(.status-unpaid):not(.status-cancel) {
    background: #eef6ff !important;
    color: var(--mui-blue-strong) !important;
    border-color: #d9ebff !important;
}

body.swcrm-mui-route-hoa-don .swps-pill.status-paid,
body.swcrm-mui-route-kho-hoa-don .swps-pill.status-paid {
    background: #e9fbf2 !important;
    color: #067647 !important;
    border-color: #c7f0d9 !important;
}

body.swcrm-mui-route-hoa-don .swps-pill.status-partial,
body.swcrm-mui-route-kho-hoa-don .swps-pill.status-partial {
    background: #fff6e8 !important;
    color: #b54708 !important;
    border-color: #fedf89 !important;
}

body.swcrm-mui-route-hoa-don .swps-pill.status-unpaid,
body.swcrm-mui-route-kho-hoa-don .swps-pill.status-unpaid {
    background: #f3f6f9 !important;
    color: #475467 !important;
    border-color: #e4e7ec !important;
}

body.swcrm-mui-route-hoa-don .swps-pill.status-cancel,
body.swcrm-mui-route-kho-hoa-don .swps-pill.status-cancel {
    background: #fff1f3 !important;
    color: #b42318 !important;
    border-color: #fecdca !important;
}

body.swcrm-mui-route-hoa-don .swps-btn,
body.swcrm-mui-route-kho-hoa-don .swps-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: var(--mui-blue) !important;
    color: #fff !important;
    border: 1px solid var(--mui-blue) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

body.swcrm-mui-route-hoa-don .swps-btn-secondary,
body.swcrm-mui-route-kho-hoa-don .swps-btn-secondary {
    background: #fff !important;
    color: var(--mui-blue-strong) !important;
    border-color: #d9ebff !important;
}

body.swcrm-mui-route-hoa-don .swps-pagination,
body.swcrm-mui-route-kho-hoa-don .swps-pagination {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 18px 0 0 !important;
}

body.swcrm-mui-route-hoa-don .swps-pagination a,
body.swcrm-mui-route-kho-hoa-don .swps-pagination a {
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 13px !important;
    border: 1px solid #dfeaf5 !important;
    background: #fff !important;
    color: var(--mui-muted) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

body.swcrm-mui-route-hoa-don .swps-pagination a.active,
body.swcrm-mui-route-kho-hoa-don .swps-pagination a.active {
    background: var(--mui-blue) !important;
    color: #fff !important;
    border-color: var(--mui-blue) !important;
}

@media (max-width: 1260px) {
    body.swcrm-mui-route-hoa-don .swps-stats,
    body.swcrm-mui-route-kho-hoa-don .swps-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.swcrm-mui-route-hoa-don .swps-filter,
    body.swcrm-mui-route-kho-hoa-don .swps-filter { grid-template-columns: repeat(3, minmax(150px, 1fr)) !important; }
}

@media (max-width: 760px) {
    body.swcrm-mui-route-hoa-don .swps,
    body.swcrm-mui-route-kho-hoa-don .swps { margin: 18px auto 30px !important; padding: 0 !important; }
    body.swcrm-mui-route-hoa-don .swps-hero,
    body.swcrm-mui-route-kho-hoa-don .swps-hero { padding: 24px !important; border-radius: 24px !important; }
    body.swcrm-mui-route-hoa-don .swps-stats,
    body.swcrm-mui-route-kho-hoa-don .swps-stats,
    body.swcrm-mui-route-hoa-don .swps-filter,
    body.swcrm-mui-route-kho-hoa-don .swps-filter { grid-template-columns: 1fr !important; }
    body.swcrm-mui-route-hoa-don .swps-filter-actions,
    body.swcrm-mui-route-kho-hoa-don .swps-filter-actions { grid-column: auto !important; }
}


/*
 * v2.4 Customer page table/filter system
 * Scope: /khach-hang/ only. Visual skin only. No JS, no data mutation, no column removal.
 * Existing columns preserved: Khách hàng, Số điện thoại, Email, Nguồn, Nhu cầu, Note Sales,
 * Trạng thái, Sales phụ trách, Ngày tiếp nhận, Ngày tạo thông tin KH, Thao tác.
 */
body.swcrm-mui-route-khach-hang .swcrm-cp3-page {
    width: min(100%, 1280px) !important;
    margin: 28px auto 42px !important;
    padding: 0 8px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin: 0 0 18px !important;
    padding: 30px 32px !important;
    border-radius: 32px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 62%, #edf6ff 100%) !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    box-shadow: var(--mui-shadow-panel) !important;
    color: var(--mui-heading) !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-head h1 {
    margin: 0 0 10px !important;
    color: var(--mui-heading) !important;
    font-size: clamp(30px, 3vw, 42px) !important;
    line-height: 1.03 !important;
    letter-spacing: -.9px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-head p {
    max-width: 720px !important;
    margin: 0 !important;
    color: var(--mui-muted) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 600 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 16px !important;
    background: var(--mui-blue) !important;
    color: #fff !important;
    border: 1px solid var(--mui-blue) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(49, 133, 255, .18) !important;
    white-space: nowrap !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter {
    margin: 0 0 18px !important;
    padding: 18px !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    box-shadow: var(--mui-shadow-card) !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-form {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(170px, .75fr)) auto !important;
    gap: 14px !important;
    align-items: end !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--mui-muted) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter input,
body.swcrm-mui-route-khach-hang .swcrm-cp3-filter select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 15px !important;
    border: 1px solid #dfeaf5 !important;
    background: #f8fbfe !important;
    color: var(--mui-text) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    outline: none !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter input:focus,
body.swcrm-mui-route-khach-hang .swcrm-cp3-filter select:focus {
    border-color: #9dccff !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(49,133,255,.10) !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-actions button,
body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-actions a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-actions button {
    background: var(--mui-blue) !important;
    color: #fff !important;
    border: 1px solid var(--mui-blue) !important;
    box-shadow: none !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-actions a {
    background: #fff !important;
    color: var(--mui-muted) !important;
    border: 1px solid #dfeaf5 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table-card {
    overflow: hidden !important;
    border-radius: 30px !important;
    background: #fff !important;
    border: 1px solid rgba(232, 238, 246, .96) !important;
    box-shadow: var(--mui-shadow-panel) !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll-top {
    height: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #f7fbff !important;
    border-bottom: 1px solid #edf3f9 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll-top > div {
    height: 1px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll::-webkit-scrollbar,
body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll-top::-webkit-scrollbar {
    height: 10px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll::-webkit-scrollbar-track,
body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll-top::-webkit-scrollbar-track {
    background: #f4f8fc !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll::-webkit-scrollbar-thumb,
body.swcrm-mui-route-khach-hang .swcrm-cp3-scroll-top::-webkit-scrollbar-thumb {
    background: #c9d8e8 !important;
    border-radius: 999px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table {
    width: 100% !important;
    min-width: 1460px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: #fff !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    height: 50px !important;
    padding: 13px 14px !important;
    background: #f7fbff !important;
    color: #5b6b7d !important;
    border-bottom: 1px solid #e4edf7 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .01em !important;
    text-align: left !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table tbody td {
    padding: 14px !important;
    border-bottom: 1px solid #eef4fa !important;
    background: #fff !important;
    color: var(--mui-text) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
    vertical-align: top !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table tbody tr:nth-child(even) td {
    background: #fcfdff !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table tbody tr:hover td {
    background: #f5faff !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(1),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(1) { width: 210px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(2),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(2) { width: 125px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(3),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(3) { width: 190px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(4),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(4) { width: 118px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(5),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(5) { width: 148px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(6),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(6) { width: 285px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(7),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(7) { width: 136px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(8),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(8) { width: 138px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(9),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(9) { width: 126px !important; white-space: nowrap !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(10),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(10) { width: 158px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(11),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(11) { width: 112px !important; text-align: center !important; }

body.swcrm-mui-route-khach-hang .swcrm-cp3-name-cell {
    min-width: 190px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-name {
    display: inline-block !important;
    color: var(--mui-heading) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-name:hover {
    color: var(--mui-blue-strong) !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-muted {
    margin-top: 4px !important;
    color: var(--mui-soft) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-badge,
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(4),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(5),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(8) {
    font-weight: 850 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: var(--mui-blue-strong) !important;
    border: 1px solid #d9ebff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(4) {
    color: #475467 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(5) {
    color: var(--mui-blue-strong) !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(8) {
    color: #344054 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-note-cell {
    min-width: 270px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-note-box {
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: #f8fbfe !important;
    border: 1px solid #e4edf7 !important;
    color: #475467 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-note-input {
    min-height: 74px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    border: 1px solid #dfeaf5 !important;
    background: #fff !important;
    color: var(--mui-text) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
    outline: none !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-note-meta {
    margin-top: 6px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 850 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-date-cell,
body.swcrm-mui-route-khach-hang .swcrm-cp3-created-cell {
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-created-cell span {
    display: block !important;
    font-weight: 900 !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-admin-link {
    display: inline-flex !important;
    margin-top: 6px !important;
    color: var(--mui-blue-strong) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-row-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: var(--mui-blue) !important;
    color: #fff !important;
    border: 1px solid var(--mui-blue) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-empty {
    padding: 32px !important;
    text-align: center !important;
    color: var(--mui-muted) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

@media (max-width: 1260px) {
    body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-actions {
        justify-content: flex-start !important;
    }
}

@media (max-width: 760px) {
    body.swcrm-mui-route-khach-hang .swcrm-cp3-page {
        margin: 18px auto 30px !important;
        padding: 0 !important;
    }
    body.swcrm-mui-route-khach-hang .swcrm-cp3-head {
        display: block !important;
        padding: 24px !important;
        border-radius: 24px !important;
    }
    body.swcrm-mui-route-khach-hang .swcrm-cp3-primary {
        margin-top: 14px !important;
        width: 100% !important;
    }
    body.swcrm-mui-route-khach-hang .swcrm-cp3-filter {
        padding: 16px !important;
        border-radius: 24px !important;
    }
    body.swcrm-mui-route-khach-hang .swcrm-cp3-filter-form {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
 * v2.5 UX Comfort Patch
 * Goal: make daily CRM usage less tiring without changing data.
 * ============================================================ */
body.swcrm-mui-v250 {
    --ux-rail: 18px;
    --ux-sticky-shadow: 10px 0 18px rgba(16,24,40,.055);
    --ux-sticky-shadow-left: -10px 0 18px rgba(16,24,40,.055);
}

body.swcrm-mui-v250 .swps,
body.swcrm-mui-v250 .swcrm-cp3-page,
body.swcrm-mui-v250 .swpayu-wrap {
    width: min(100%, 1280px) !important;
    margin: 28px auto 44px !important;
    padding: 0 10px !important;
}

body.swcrm-mui-v250 .swcrm-ux-comfortbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 0 16px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(217,230,242,.95) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.82) !important;
    box-shadow: 0 14px 34px rgba(16,24,40,.045) !important;
    backdrop-filter: blur(10px);
}

body.swcrm-mui-v250 .swcrm-ux-comfortbar strong {
    display: block !important;
    margin-bottom: 3px !important;
    color: #0b1220 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    letter-spacing: -.15px !important;
}

body.swcrm-mui-v250 .swcrm-ux-comfortbar span {
    display: block !important;
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

body.swcrm-mui-v250 .swcrm-ux-density-btn,
body.swcrm-mui-v250 .swcrm-ux-ghost-btn {
    min-height: 36px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    border: 1px solid #dbe8f5 !important;
    background: #fff !important;
    color: #1f6fff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v250 .swcrm-ux-density-btn:hover,
body.swcrm-mui-v250 .swcrm-ux-ghost-btn:hover {
    background: #edf6ff !important;
    border-color: #cfe5ff !important;
}

body.swcrm-mui-v250 .swcrm-ux-filter-tools {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 12px !important;
    padding: 10px 12px !important;
    border: 1px solid #e8eef6 !important;
    border-radius: 18px !important;
    background: #fff !important;
}

body.swcrm-mui-v250 .swcrm-ux-filter-title {
    color: #0b1220 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: -.1px !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v250 .swcrm-ux-filter-chips {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
}

body.swcrm-mui-v250 .swcrm-ux-chip {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    max-width: 280px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #edf6ff !important;
    color: #1f6fff !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.swcrm-mui-v250 .swcrm-ux-chip b {
    margin-right: 3px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v250 .swcrm-ux-chip.is-muted {
    background: #f6f8fb !important;
    color: #667085 !important;
}

body.swcrm-mui-v250 .swcrm-ux-filter-form {
    transition: max-height .2s ease, opacity .2s ease, padding .2s ease !important;
}

body.swcrm-mui-v250 .swcrm-ux-filter-form.is-swcrm-ux-collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    border-width: 0 !important;
}

body.swcrm-mui-v250 .swps-filter,
body.swcrm-mui-v250 .swcrm-cp3-filter-form,
body.swcrm-mui-v250 .swpayu-filter {
    border-radius: 22px !important;
    border: 1px solid #e8eef6 !important;
    box-shadow: 0 12px 32px rgba(16,24,40,.04) !important;
}

body.swcrm-mui-v250 .swps-filter label,
body.swcrm-mui-v250 .swcrm-cp3-filter-form > div,
body.swcrm-mui-v250 .swpayu-filter label {
    min-width: 0 !important;
}

body.swcrm-mui-v250 input,
body.swcrm-mui-v250 select,
body.swcrm-mui-v250 textarea {
    border-radius: 14px !important;
    border-color: #dce8f5 !important;
    box-shadow: none !important;
}

body.swcrm-mui-v250 input:focus,
body.swcrm-mui-v250 select:focus,
body.swcrm-mui-v250 textarea:focus {
    border-color: #9bcbff !important;
    box-shadow: 0 0 0 4px rgba(49,133,255,.12) !important;
}

body.swcrm-mui-v250 .swps-scroll,
body.swcrm-mui-v250 .swcrm-cp3-scroll,
body.swcrm-mui-v250 .swpayu-scroll {
    position: relative !important;
    max-height: calc(100vh - 245px) !important;
    min-height: 280px !important;
    overflow: auto !important;
    border-radius: 20px !important;
    scrollbar-width: thin !important;
}

body.swcrm-mui-v250 .swcrm-ux-scroll-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: -2px 2px 9px !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

body.swcrm-mui-v250 .swcrm-ux-scroll-hint:before {
    content: "↔";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #edf6ff;
    color: #1f6fff;
    font-weight: 900;
}

body.swcrm-mui-v250 .swcrm-ux-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
}

body.swcrm-mui-v250 .swcrm-ux-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 7 !important;
    height: 46px !important;
    vertical-align: middle !important;
    background: #f7faff !important;
    box-shadow: inset 0 -1px 0 #e8eef6 !important;
    color: #475467 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    letter-spacing: .01em !important;
}

body.swcrm-mui-v250 .swcrm-ux-table tbody td {
    min-height: 58px !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #edf2f7 !important;
}

body.swcrm-mui-v250.swcrm-ux-compact .swcrm-ux-table tbody td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
}

body.swcrm-mui-v250 .swcrm-ux-table .swcrm-ux-money-cell,
body.swcrm-mui-v250 .swps-table td:nth-child(8),
body.swcrm-mui-v250 .swps-table td:nth-child(9),
body.swcrm-mui-v250 .swps-table td:nth-child(10),
body.swcrm-mui-v250 .swpayu-table td:nth-child(6),
body.swcrm-mui-v250 .swpayu-table td:nth-child(7),
body.swcrm-mui-v250 .swpayu-table td:nth-child(8),
body.swcrm-mui-v250 .swpayu-table td:nth-child(9),
body.swcrm-mui-v250 .swpayu-table td:nth-child(10),
body.swcrm-mui-v250 .swpayu-table td:nth-child(11) {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    font-weight: 850 !important;
    color: #101828 !important;
}

body.swcrm-mui-v250 .swcrm-ux-table .swcrm-ux-phone-cell {
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v250 .swcrm-ux-table .swcrm-ux-action-cell,
body.swcrm-mui-v250 .swcrm-ux-table th:last-child,
body.swcrm-mui-v250 .swcrm-ux-table td:last-child {
    text-align: right !important;
}

@media (min-width: 901px) {
    body.swcrm-mui-v250 .swps-table th:first-child,
    body.swcrm-mui-v250 .swps-table td:first-child,
    body.swcrm-mui-v250 .swcrm-cp3-table th:first-child,
    body.swcrm-mui-v250 .swcrm-cp3-table td:first-child,
    body.swcrm-mui-v250 .swpayu-table th:first-child,
    body.swcrm-mui-v250 .swpayu-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 6 !important;
        background: #fff !important;
        box-shadow: var(--ux-sticky-shadow) !important;
    }

    body.swcrm-mui-v250 .swps-table thead th:first-child,
    body.swcrm-mui-v250 .swcrm-cp3-table thead th:first-child,
    body.swcrm-mui-v250 .swpayu-table thead th:first-child {
        z-index: 9 !important;
        background: #f7faff !important;
    }

    body.swcrm-mui-v250 .swps-table th:last-child,
    body.swcrm-mui-v250 .swps-table td:last-child,
    body.swcrm-mui-v250 .swcrm-cp3-table th:last-child,
    body.swcrm-mui-v250 .swcrm-cp3-table td:last-child,
    body.swcrm-mui-v250 .swpayu-table th:last-child,
    body.swcrm-mui-v250 .swpayu-table td:last-child {
        position: sticky !important;
        right: 0 !important;
        z-index: 6 !important;
        background: #fff !important;
        box-shadow: var(--ux-sticky-shadow-left) !important;
    }

    body.swcrm-mui-v250 .swps-table thead th:last-child,
    body.swcrm-mui-v250 .swcrm-cp3-table thead th:last-child,
    body.swcrm-mui-v250 .swpayu-table thead th:last-child {
        z-index: 9 !important;
        background: #f7faff !important;
    }
}

/* Route-specific table comfort */
body.swcrm-mui-v250.swcrm-mui-route-hoa-don .swps-table th:nth-child(7),
body.swcrm-mui-v250.swcrm-mui-route-hoa-don .swps-table td:nth-child(7) {
    min-width: 190px !important;
}

body.swcrm-mui-v250.swcrm-mui-route-hoa-don .swps-table th:nth-child(11),
body.swcrm-mui-v250.swcrm-mui-route-hoa-don .swps-table td:nth-child(11),
body.swcrm-mui-v250.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(12),
body.swcrm-mui-v250.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(12),
body.swcrm-mui-v250.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(7),
body.swcrm-mui-v250.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(7) {
    min-width: 145px !important;
}

body.swcrm-mui-v250.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(6),
body.swcrm-mui-v250.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(6) {
    min-width: 240px !important;
}

body.swcrm-mui-v250 .swcrm-cp3-note-box,
body.swcrm-mui-v250 .swcrm-cp3-note-input {
    border-radius: 14px !important;
    background: #f8fbff !important;
    border: 1px solid #e8eef6 !important;
}

body.swcrm-mui-v250 .swcrm-cp3-row-btn,
body.swcrm-mui-v250 .swps-btn,
body.swcrm-mui-v250 .swpayu-actions a,
body.swcrm-mui-v250 .swpayu-actions button {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

body.swcrm-mui-v250 .swpayu-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 132px !important;
}

/* Payment form: split into visual sections without changing fields. */
body.swcrm-mui-v250 .swpayu-card:first-of-type {
    overflow: visible !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: end !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form .swcrm-ux-section-title {
    grid-column: 1 / -1 !important;
    margin: 8px 0 -2px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: #f4f8fc !important;
    color: #0b1220 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: -.1px !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form label {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form label.full,
body.swcrm-mui-v250 .swcrm-ux-payment-form .full {
    grid-column: span 2 !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form .swpayu-result {
    position: sticky !important;
    bottom: 16px !important;
    z-index: 3 !important;
    grid-column: span 2 !important;
    align-self: stretch !important;
    border: 1px solid #cfe5ff !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ffffff, #edf6ff) !important;
    box-shadow: 0 18px 40px rgba(31,111,255,.12) !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form .swpayu-result div:last-child,
body.swcrm-mui-v250 .swpayu-result div:last-child {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(31,111,255,.14) !important;
    color: #1f6fff !important;
    font-size: 16px !important;
    font-weight: 950 !important;
}

body.swcrm-mui-v250 .swcrm-ux-payment-form > button.full {
    grid-column: 1 / -1 !important;
    min-height: 48px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

/* Mobile: make wide data tables readable as cards instead of forcing tiny columns. */
@media (max-width: 900px) {
    body.swcrm-mui-v250 .swcrm-ux-comfortbar,
    body.swcrm-mui-v250 .swcrm-ux-filter-tools {
        grid-template-columns: 1fr !important;
        display: grid !important;
        align-items: stretch !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-filter-mini-actions,
    body.swcrm-mui-v250 .swcrm-ux-comfortbar .swcrm-ux-density-btn {
        justify-self: start !important;
    }

    body.swcrm-mui-v250 .swps-scroll,
    body.swcrm-mui-v250 .swcrm-cp3-scroll,
    body.swcrm-mui-v250 .swpayu-scroll {
        max-height: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-table,
    body.swcrm-mui-v250 .swcrm-ux-table thead,
    body.swcrm-mui-v250 .swcrm-ux-table tbody,
    body.swcrm-mui-v250 .swcrm-ux-table th,
    body.swcrm-mui-v250 .swcrm-ux-table td,
    body.swcrm-mui-v250 .swcrm-ux-table tr {
        display: block !important;
        width: 100% !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-table thead {
        display: none !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-table tbody tr {
        margin: 0 0 14px !important;
        padding: 12px !important;
        border: 1px solid #e8eef6 !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 12px 28px rgba(16,24,40,.045) !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-table tbody td {
        display: grid !important;
        grid-template-columns: 120px 1fr !important;
        gap: 12px !important;
        min-height: 0 !important;
        padding: 8px 0 !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-table tbody td:before {
        content: attr(data-label);
        color: #667085;
        font-size: 12px;
        line-height: 1.4;
        font-weight: 850;
    }

    body.swcrm-mui-v250 .swcrm-ux-table tbody td:first-child,
    body.swcrm-mui-v250 .swcrm-ux-table tbody td:last-child {
        position: static !important;
        box-shadow: none !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-table .swcrm-ux-money-cell,
    body.swcrm-mui-v250 .swps-table td:nth-child(8),
    body.swcrm-mui-v250 .swps-table td:nth-child(9),
    body.swcrm-mui-v250 .swps-table td:nth-child(10),
    body.swcrm-mui-v250 .swpayu-table td:nth-child(5),
    body.swcrm-mui-v250 .swpayu-table td:nth-child(7),
    body.swcrm-mui-v250 .swpayu-table td:nth-child(8) {
        text-align: left !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-payment-form {
        grid-template-columns: 1fr !important;
    }

    body.swcrm-mui-v250 .swcrm-ux-payment-form label.full,
    body.swcrm-mui-v250 .swcrm-ux-payment-form .full,
    body.swcrm-mui-v250 .swcrm-ux-payment-form .swpayu-result {
        grid-column: 1 / -1 !important;
    }
}

/* --------------------------------------------------------------------------
 * v2.5.1 Table wrap & sticky-column display polish
 * Purpose: fix small visual discomfort from v2.5 without changing data/actions.
 * - Keep the existing wide-table structure.
 * - Reduce sticky-column overlay.
 * - Allow controlled line breaks in text-heavy columns.
 * - Keep money/phone/date/action columns stable.
 * -------------------------------------------------------------------------- */

body.swcrm-mui-v250,
body.swcrm-mui-v251 {
    --ux-sticky-shadow: 1px 0 0 #e4edf7 !important;
    --ux-sticky-shadow-left: -1px 0 0 #e4edf7 !important;
}

body.swcrm-mui-v250 .swcrm-ux-table th,
body.swcrm-mui-v250 .swcrm-ux-table td,
body.swcrm-mui-v251 .swcrm-ux-table th,
body.swcrm-mui-v251 .swcrm-ux-table td {
    overflow: hidden !important;
    text-overflow: clip !important;
}

body.swcrm-mui-v250 .swcrm-ux-table td,
body.swcrm-mui-v251 .swcrm-ux-table td {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
}

/* Keep fields that must remain scan-friendly on one line. */
body.swcrm-mui-v250 .swcrm-ux-phone-cell,
body.swcrm-mui-v250 .swcrm-ux-money-cell,
body.swcrm-mui-v250 .swcrm-ux-action-cell,
body.swcrm-mui-v251 .swcrm-ux-phone-cell,
body.swcrm-mui-v251 .swcrm-ux-money-cell,
body.swcrm-mui-v251 .swcrm-ux-action-cell,
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(8),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(9),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(10),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(14),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(2),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(9),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(10),
body.swcrm-mui-route-hoa-don .swps-table td:last-child,
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:last-child {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

/* Hóa đơn: allow meaningful fields to wrap instead of creating awkward overflow. */
body.swcrm-mui-route-hoa-don .swps-table {
    min-width: 1580px !important;
}
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(1),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(1) { width: 200px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(7),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(7) { width: 190px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(11),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(11) { width: 142px !important; text-align: left !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(12),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(12) { width: 160px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(13),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(13) { width: 124px !important; }
body.swcrm-mui-route-hoa-don .swps-table th:nth-child(15),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(15) { width: 82px !important; min-width: 82px !important; }

body.swcrm-mui-route-hoa-don .swps-table td:nth-child(1),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(3),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(4),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(7),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(11),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(12),
body.swcrm-mui-route-hoa-don .swps-table td:nth-child(13) {
    white-space: normal !important;
    line-height: 1.34 !important;
    overflow-wrap: break-word !important;
}

body.swcrm-mui-route-hoa-don .swps-pill {
    white-space: normal !important;
    line-height: 1.22 !important;
    text-align: center !important;
    max-width: 122px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

body.swcrm-mui-route-hoa-don .swps-table td:last-child .swps-btn,
body.swcrm-mui-route-hoa-don .swps-table td:last-child a,
body.swcrm-mui-route-hoa-don .swps-table td:last-child button {
    min-width: 54px !important;
    height: 36px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-radius: 12px !important;
}

/* Khách hàng: reduce visual crowding and allow course/source/status to wrap cleanly. */
body.swcrm-mui-route-khach-hang .swcrm-cp3-table {
    min-width: 1540px !important;
}
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(1),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(1) { width: 190px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(2),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(2) { width: 116px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(3),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(3) { width: 175px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(5),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(5) { width: 170px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(6),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(6) { width: 245px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(7),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(7) { width: 145px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(8),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(8) { width: 130px !important; }
body.swcrm-mui-route-khach-hang .swcrm-cp3-table th:nth-child(11),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(11) { width: 92px !important; min-width: 92px !important; }

body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(1),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(3),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(4),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(5),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(6),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(7),
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(8) {
    white-space: normal !important;
    line-height: 1.34 !important;
    overflow-wrap: break-word !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-badge,
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:nth-child(7) .swcrm-cp3-badge {
    white-space: normal !important;
    line-height: 1.22 !important;
    text-align: center !important;
    max-width: 124px !important;
    padding: 5px 9px !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-note-cell {
    min-width: 230px !important;
}
body.swcrm-mui-route-khach-hang .swcrm-cp3-note-box {
    padding: 8px 10px !important;
    border-radius: 14px !important;
}
body.swcrm-mui-route-khach-hang .swcrm-cp3-note-input {
    min-height: 44px !important;
    max-height: 76px !important;
    line-height: 1.32 !important;
    padding: 8px 10px !important;
    resize: vertical !important;
}

body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:last-child .swcrm-cp3-action,
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:last-child a,
body.swcrm-mui-route-khach-hang .swcrm-cp3-table td:last-child button {
    min-width: 68px !important;
    height: 34px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

/* Prevent sticky action column from visually covering the previous status column. */
@media (min-width: 901px) {
    body.swcrm-mui-v250 .swps-table td:first-child,
    body.swcrm-mui-v250 .swcrm-cp3-table td:first-child,
    body.swcrm-mui-v251 .swps-table td:first-child,
    body.swcrm-mui-v251 .swcrm-cp3-table td:first-child {
        box-shadow: 1px 0 0 #e4edf7 !important;
    }

    body.swcrm-mui-v250 .swps-table td:last-child,
    body.swcrm-mui-v250 .swcrm-cp3-table td:last-child,
    body.swcrm-mui-v251 .swps-table td:last-child,
    body.swcrm-mui-v251 .swcrm-cp3-table td:last-child {
        box-shadow: -1px 0 0 #e4edf7 !important;
    }
}

/* Keep compact mode readable after line wrapping. */
body.swcrm-mui-v250.swcrm-ux-compact .swcrm-ux-table tbody td,
body.swcrm-mui-v251.swcrm-ux-compact .swcrm-ux-table tbody td {
    min-height: 44px !important;
    line-height: 1.32 !important;
}


/* =========================================================
 * v2.6.0 — Workroom Shell Polish
 * Goal: make SWORLD CRM closer to the Figma Workroom dashboard
 * without changing CRM data, table columns, actions, filters or logic.
 * ======================================================= */
body.swcrm-mui-v260 {
    --swcrm-wr-bg: #f3f8fd;
    --swcrm-wr-surface: #ffffff;
    --swcrm-wr-soft: #f7fbff;
    --swcrm-wr-soft-2: #eef6ff;
    --swcrm-wr-line: #dce8f5;
    --swcrm-wr-line-2: #ecf2f8;
    --swcrm-wr-text: #0f172a;
    --swcrm-wr-muted: #7b8798;
    --swcrm-wr-blue: #2f7df6;
    --swcrm-wr-blue-2: #e7f1ff;
    --swcrm-wr-green: #16b364;
    --swcrm-wr-orange: #f79009;
    --swcrm-wr-red: #e5484d;
    --swcrm-wr-radius-xl: 28px;
    --swcrm-wr-radius-lg: 22px;
    --swcrm-wr-radius-md: 16px;
    --swcrm-wr-shadow: 0 20px 55px rgba(34, 60, 96, 0.08);
    --swcrm-wr-shadow-soft: 0 12px 34px rgba(34, 60, 96, 0.06);
    background: var(--swcrm-wr-bg) !important;
    color: var(--swcrm-wr-text) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.swcrm-mui-v260 #wpadminbar {
    background: #111827 !important;
}

body.swcrm-mui-v260.swcrm-fc-active #page,
body.swcrm-mui-v260.swcrm-fc-active .site,
body.swcrm-mui-v260.swcrm-fc-active .site-content,
body.swcrm-mui-v260.swcrm-fc-active .ast-container,
body.swcrm-mui-v260.swcrm-fc-active #primary,
body.swcrm-mui-v260.swcrm-fc-active #main,
body.swcrm-mui-v260.swcrm-fc-active article,
body.swcrm-mui-v260.swcrm-fc-active .entry-content {
    background: transparent !important;
}

/* Workroom left rail: floating white rounded panel. */
body.swcrm-mui-v260 .swcrmfc-sidebar {
    width: 208px !important;
    left: 18px !important;
    top: 22px !important;
    bottom: 22px !important;
    padding: 22px 16px !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(220,232,245,.92) !important;
    border-radius: 28px !important;
    box-shadow: 0 24px 70px rgba(34, 60, 96, 0.10) !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd8e7 transparent !important;
}
body.admin-bar.swcrm-mui-v260 .swcrmfc-sidebar { top: 54px !important; }

body.swcrm-mui-v260 .swcrmfc-brand {
    padding: 2px 4px 18px !important;
    border-bottom: 1px solid var(--swcrm-wr-line-2) !important;
    margin-bottom: 18px !important;
}
body.swcrm-mui-v260 .swcrmfc-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4a90ff 0%, #246dff 100%) !important;
    box-shadow: 0 10px 24px rgba(47,125,246,.22) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}
body.swcrm-mui-v260 .swcrmfc-brand strong {
    letter-spacing: -0.02em !important;
    color: #111827 !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
}
body.swcrm-mui-v260 .swcrmfc-brand small {
    color: #9aa6b7 !important;
    font-size: 10px !important;
    margin-top: 2px !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-group { margin-top: 20px !important; }
body.swcrm-mui-v260 .swcrmfc-nav-title {
    color: #9aa6b7 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    margin: 0 0 9px 4px !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-item {
    height: 44px !important;
    border-radius: 14px !important;
    padding: 0 12px !important;
    margin: 3px 0 !important;
    color: #687386 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    gap: 11px !important;
    border: 1px solid transparent !important;
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-item:hover {
    background: #f3f8ff !important;
    color: #2563eb !important;
    transform: translateX(1px) !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-item.is-active {
    background: var(--swcrm-wr-blue-2) !important;
    color: var(--swcrm-wr-blue) !important;
    box-shadow: inset 0 0 0 1px rgba(47,125,246,.08) !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-item.is-active::after {
    content: "" !important;
    width: 4px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: var(--swcrm-wr-blue) !important;
    position: absolute !important;
    right: -16px !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #9aa6b7 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}
body.swcrm-mui-v260 .swcrmfc-nav-item.is-active .swcrmfc-nav-icon {
    color: #fff !important;
    background: var(--swcrm-wr-blue) !important;
}

/* Make the content start like the Workroom canvas, not centered like a WP article. */
body.swcrm-mui-v260.swcrm-fc-active #page {
    margin-left: 244px !important;
    min-height: 100vh !important;
}
body.swcrm-mui-v260.swcrm-fc-active #content,
body.swcrm-mui-v260.swcrm-fc-active .site-content {
    padding: 22px 30px 48px 0 !important;
}
body.admin-bar.swcrm-mui-v260.swcrm-fc-active #content,
body.admin-bar.swcrm-mui-v260.swcrm-fc-active .site-content {
    padding-top: 22px !important;
}
body.swcrm-mui-v260.swcrm-fc-active .site-content .ast-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
body.swcrm-mui-v260.swcrm-fc-active #primary,
body.swcrm-mui-v260.swcrm-fc-active #main,
body.swcrm-mui-v260.swcrm-fc-active .ast-article-single,
body.swcrm-mui-v260.swcrm-fc-active .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.swcrm-mui-v260 .entry-header,
body.swcrm-mui-v260 .entry-title,
body.swcrm-mui-v260 .page-title { display: none !important; }

/* Workroom top command bar injected by JS. */
body.swcrm-mui-v260 .swcrm-workroom-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 28px 0 !important;
    min-height: 56px !important;
}
body.swcrm-mui-v260 .swcrm-workroom-search {
    width: min(430px, 42vw) !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #fff !important;
    border: 1px solid rgba(220,232,245,.85) !important;
    border-radius: 16px !important;
    padding: 0 18px !important;
    box-shadow: 0 10px 30px rgba(34, 60, 96, 0.045) !important;
}
body.swcrm-mui-v260 .swcrm-workroom-search svg { width: 20px !important; color: #1f2937 !important; opacity: .86 !important; }
body.swcrm-mui-v260 .swcrm-workroom-search input {
    height: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}
body.swcrm-mui-v260 .swcrm-workroom-search input::placeholder { color: #8b96a8 !important; }
body.swcrm-mui-v260 .swcrm-workroom-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}
body.swcrm-mui-v260 .swcrm-workroom-bell,
body.swcrm-mui-v260 .swcrm-workroom-profile {
    height: 52px !important;
    background: #fff !important;
    border: 1px solid rgba(220,232,245,.82) !important;
    box-shadow: 0 10px 30px rgba(34, 60, 96, 0.045) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
body.swcrm-mui-v260 .swcrm-workroom-bell {
    width: 52px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 16px !important;
    color: #111827 !important;
}
body.swcrm-mui-v260 .swcrm-workroom-profile {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 16px !important;
    padding: 0 14px 0 10px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
body.swcrm-mui-v260 .swcrm-workroom-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: #e7f1ff !important;
    color: #2f7df6 !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v260 .swcrm-workroom-page-kicker {
    display: block !important;
    color: #8b96a8 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    margin: 0 0 8px 0 !important;
}

/* Page-level containers: convert plugin pages into Workroom panels. */
body.swcrm-mui-v260 .swcrm-cp3-page,
body.swcrm-mui-v260 .swps,
body.swcrm-mui-v260 .swpayu-wrap,
body.swcrm-mui-v260 .swcrm11m-wrap,
body.swcrm-mui-v260 .swcrm-class-wrap,
body.swcrm-mui-v260 .swcrm-page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    color: var(--swcrm-wr-text) !important;
}

body.swcrm-mui-v260 .swcrm-cp3-head,
body.swcrm-mui-v260 .swps-head,
body.swcrm-mui-v260 .swpayu-head,
body.swcrm-mui-v260 .swcrm11m-head,
body.swcrm-mui-v260 .swcrm-class-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 26px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.swcrm-mui-v260 .swcrm-cp3-head::before,
body.swcrm-mui-v260 .swps-head::before,
body.swcrm-mui-v260 .swpayu-head::before {
    content: "Operations workspace";
    display: block;
    position: absolute;
    transform: translateY(-24px);
    color: #8b96a8;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
}
body.swcrm-mui-v260 .swcrm-cp3-head h1,
body.swcrm-mui-v260 .swps-head h1,
body.swcrm-mui-v260 .swpayu-head h1,
body.swcrm-mui-v260 .swcrm11m-head h1,
body.swcrm-mui-v260 .swcrm-class-head h1,
body.swcrm-mui-v260 .swcrm-cp3-head h2,
body.swcrm-mui-v260 .swps-head h2,
body.swcrm-mui-v260 .swpayu-head h2 {
    color: #111827 !important;
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
    font-weight: 850 !important;
    margin: 0 !important;
}
body.swcrm-mui-v260 .swcrm-cp3-head p,
body.swcrm-mui-v260 .swps-head p,
body.swcrm-mui-v260 .swpayu-head p {
    color: #8792a4 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 8px 0 0 0 !important;
}

/* Soft Workroom card system. */
body.swcrm-mui-v260 .swcrm-cp3-filter,
body.swcrm-mui-v260 .swcrm-cp3-table-card,
body.swcrm-mui-v260 .swps-filter,
body.swcrm-mui-v260 .swps-table-card,
body.swcrm-mui-v260 .swps-card,
body.swcrm-mui-v260 .swpayu-card,
body.swcrm-mui-v260 .swpayu-form,
body.swcrm-mui-v260 .swpayu-table-card,
body.swcrm-mui-v260 .swcrm-ux-comfortbar,
body.swcrm-mui-v260 .swcrm11m-card,
body.swcrm-mui-v260 .swcrm-class-card {
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(220,232,245,.88) !important;
    border-radius: var(--swcrm-wr-radius-xl) !important;
    box-shadow: var(--swcrm-wr-shadow) !important;
}
body.swcrm-mui-v260 .swcrm-cp3-filter,
body.swcrm-mui-v260 .swps-filter,
body.swcrm-mui-v260 .swpayu-form {
    padding: 22px !important;
    margin-bottom: 22px !important;
}
body.swcrm-mui-v260 .swcrm-cp3-table-card,
body.swcrm-mui-v260 .swps-table-card,
body.swcrm-mui-v260 .swpayu-table-card {
    padding: 14px !important;
    overflow: hidden !important;
}
body.swcrm-mui-v260 .swcrm-ux-comfortbar {
    padding: 16px 18px !important;
    margin: 0 0 22px 0 !important;
    border-radius: 22px !important;
}
body.swcrm-mui-v260 .swcrm-ux-comfortbar strong { color: #111827 !important; letter-spacing: -.01em !important; }
body.swcrm-mui-v260 .swcrm-ux-comfortbar span { color: #7c8798 !important; }

/* Workroom inputs and filter rhythm. */
body.swcrm-mui-v260 input[type="text"],
body.swcrm-mui-v260 input[type="search"],
body.swcrm-mui-v260 input[type="number"],
body.swcrm-mui-v260 input[type="email"],
body.swcrm-mui-v260 input[type="tel"],
body.swcrm-mui-v260 input[type="date"],
body.swcrm-mui-v260 select,
body.swcrm-mui-v260 textarea {
    border-radius: 14px !important;
    border: 1px solid #dce8f5 !important;
    background-color: #f8fbff !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-weight: 600 !important;
}
body.swcrm-mui-v260 input:focus,
body.swcrm-mui-v260 select:focus,
body.swcrm-mui-v260 textarea:focus {
    border-color: rgba(47,125,246,.55) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(47,125,246,.10) !important;
    outline: none !important;
}
body.swcrm-mui-v260 label {
    color: #536074 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
}

/* Tables: more like Workroom cards, less like spreadsheet grid. */
body.swcrm-mui-v260 .swps-table,
body.swcrm-mui-v260 .swcrm-cp3-table,
body.swcrm-mui-v260 .swpayu-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    color: #111827 !important;
    font-family: inherit !important;
}
body.swcrm-mui-v260 .swps-table thead th,
body.swcrm-mui-v260 .swcrm-cp3-table thead th,
body.swcrm-mui-v260 .swpayu-table thead th {
    height: 54px !important;
    padding: 14px 16px !important;
    background: #f7fbff !important;
    color: #344054 !important;
    border-color: #e4edf7 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .01em !important;
    white-space: normal !important;
    line-height: 1.25 !important;
}
body.swcrm-mui-v260 .swps-table tbody td,
body.swcrm-mui-v260 .swcrm-cp3-table tbody td,
body.swcrm-mui-v260 .swpayu-table tbody td {
    padding: 16px 16px !important;
    border-color: #e6eef7 !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.38 !important;
    background: #fff !important;
    vertical-align: middle !important;
}
body.swcrm-mui-v260 .swps-table tbody tr:nth-child(odd) td,
body.swcrm-mui-v260 .swcrm-cp3-table tbody tr:nth-child(odd) td,
body.swcrm-mui-v260 .swpayu-table tbody tr:nth-child(odd) td {
    background: #fbfdff !important;
}
body.swcrm-mui-v260 .swps-table tbody tr:hover td,
body.swcrm-mui-v260 .swcrm-cp3-table tbody tr:hover td,
body.swcrm-mui-v260 .swpayu-table tbody tr:hover td {
    background: #f2f8ff !important;
}
body.swcrm-mui-v260 .swps-scroll,
body.swcrm-mui-v260 .swcrm-cp3-scroll,
body.swcrm-mui-v260 .swpayu-scroll {
    border-radius: 22px !important;
    border: 1px solid #e2ebf5 !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65) !important;
}
body.swcrm-mui-v260 .swps-scroll::-webkit-scrollbar,
body.swcrm-mui-v260 .swcrm-cp3-scroll::-webkit-scrollbar,
body.swcrm-mui-v260 .swpayu-scroll::-webkit-scrollbar {
    width: 11px !important;
    height: 11px !important;
}
body.swcrm-mui-v260 .swps-scroll::-webkit-scrollbar-track,
body.swcrm-mui-v260 .swcrm-cp3-scroll::-webkit-scrollbar-track,
body.swcrm-mui-v260 .swpayu-scroll::-webkit-scrollbar-track {
    background: #edf4fb !important;
    border-radius: 999px !important;
}
body.swcrm-mui-v260 .swps-scroll::-webkit-scrollbar-thumb,
body.swcrm-mui-v260 .swcrm-cp3-scroll::-webkit-scrollbar-thumb,
body.swcrm-mui-v260 .swpayu-scroll::-webkit-scrollbar-thumb {
    background: #c6d4e4 !important;
    border-radius: 999px !important;
    border: 2px solid #edf4fb !important;
}

/* Buttons: Workroom primary/ghost rhythm. */
body.swcrm-mui-v260 .swcrm-cp3-primary,
body.swcrm-mui-v260 .swps-primary,
body.swcrm-mui-v260 .swpayu-primary,
body.swcrm-mui-v260 .swcrm-cp3-action,
body.swcrm-mui-v260 .swps-action,
body.swcrm-mui-v260 .swpayu-action,
body.swcrm-mui-v260 .button,
body.swcrm-mui-v260 button[type="submit"] {
    border-radius: 14px !important;
    min-height: 40px !important;
    background: var(--swcrm-wr-blue) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 22px rgba(47,125,246,.20) !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}
body.swcrm-mui-v260 .swcrm-cp3-primary:hover,
body.swcrm-mui-v260 .swps-primary:hover,
body.swcrm-mui-v260 .swpayu-primary:hover,
body.swcrm-mui-v260 .swcrm-cp3-action:hover,
body.swcrm-mui-v260 .swps-action:hover,
body.swcrm-mui-v260 .swpayu-action:hover,
body.swcrm-mui-v260 .button:hover,
body.swcrm-mui-v260 button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    background: #1f6ff2 !important;
    box-shadow: 0 14px 28px rgba(47,125,246,.24) !important;
}
body.swcrm-mui-v260 .swcrm-ux-ghost-btn,
body.swcrm-mui-v260 a[href*="xoa"],
body.swcrm-mui-v260 a[href*="reset"] {
    border-radius: 14px !important;
    background: #f4f8ff !important;
    color: #536074 !important;
    border: 1px solid #dce8f5 !important;
    box-shadow: none !important;
}

/* Badges: calmer Workroom pills. */
body.swcrm-mui-v260 .swcrm-cp3-badge,
body.swcrm-mui-v260 .swps-badge,
body.swcrm-mui-v260 .swpayu-badge,
body.swcrm-mui-v260 .swcrm-ux-chip {
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border: 1px solid rgba(47,125,246,.10) !important;
    box-shadow: none !important;
}

/* Keep text wrapping balanced after Workroom visual changes. */
body.swcrm-mui-v260 .swps-table td,
body.swcrm-mui-v260 .swcrm-cp3-table td,
body.swcrm-mui-v260 .swpayu-table td {
    overflow-wrap: break-word !important;
}
body.swcrm-mui-v260 .swcrm-ux-money-cell,
body.swcrm-mui-v260 .swcrm-ux-phone-cell,
body.swcrm-mui-v260 .swps-table td:nth-child(8),
body.swcrm-mui-v260 .swps-table td:nth-child(9),
body.swcrm-mui-v260 .swps-table td:nth-child(10) {
    white-space: nowrap !important;
}
body.swcrm-mui-v260 .swps-table td:nth-child(1),
body.swcrm-mui-v260 .swps-table td:nth-child(6),
body.swcrm-mui-v260 .swps-table td:nth-child(7),
body.swcrm-mui-v260 .swps-table td:nth-child(12),
body.swcrm-mui-v260 .swps-table td:nth-child(13),
body.swcrm-mui-v260 .swcrm-cp3-table td:nth-child(1),
body.swcrm-mui-v260 .swcrm-cp3-table td:nth-child(3),
body.swcrm-mui-v260 .swcrm-cp3-table td:nth-child(5),
body.swcrm-mui-v260 .swcrm-cp3-table td:nth-child(6),
body.swcrm-mui-v260 .swcrm-cp3-table td:nth-child(7),
body.swcrm-mui-v260 .swcrm-cp3-table td:nth-child(8) {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}
body.swcrm-mui-v260 .swps-table td:last-child,
body.swcrm-mui-v260 .swcrm-cp3-table td:last-child,
body.swcrm-mui-v260 .swpayu-table td:last-child {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    text-align: center !important;
}
body.swcrm-mui-v260 .swps-table td:last-child a,
body.swcrm-mui-v260 .swcrm-cp3-table td:last-child a,
body.swcrm-mui-v260 .swpayu-table td:last-child a,
body.swcrm-mui-v260 .swps-table td:last-child button,
body.swcrm-mui-v260 .swcrm-cp3-table td:last-child button,
body.swcrm-mui-v260 .swpayu-table td:last-child button {
    min-width: 64px !important;
    max-width: 74px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: normal !important;
    line-height: 1.15 !important;
}

/* Responsive Workroom fallback. */
@media (max-width: 1180px) {
    body.swcrm-mui-v260 .swcrmfc-sidebar {
        width: 188px !important;
        left: 12px !important;
    }
    body.swcrm-mui-v260.swcrm-fc-active #page { margin-left: 216px !important; }
    body.swcrm-mui-v260.swcrm-fc-active #content,
    body.swcrm-mui-v260.swcrm-fc-active .site-content { padding-right: 18px !important; }
}
@media (max-width: 900px) {
    body.swcrm-mui-v260.swcrm-fc-active #page { margin-left: 0 !important; }
    body.swcrm-mui-v260.swcrm-fc-active #content,
    body.swcrm-mui-v260.swcrm-fc-active .site-content { padding: 76px 14px 32px !important; }
    body.swcrm-mui-v260 .swcrmfc-sidebar {
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        border-radius: 0 22px 22px 0 !important;
    }
    body.swcrm-mui-v260 .swcrm-workroom-topbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    body.swcrm-mui-v260 .swcrm-workroom-search { width: 100% !important; }
    body.swcrm-mui-v260 .swcrm-workroom-actions { justify-content: space-between !important; }
}


/* =========================================================
 * v2.6.1 — Workroom Stabilization Patch
 * Fixes after real-page screenshots: noisy helper bars, sidebar wraps,
 * Astra heading letter-spacing, table columns and action overlay.
 * CSS only: no data/query/business logic.
 * ========================================================= */
body.swcrm-mui-v261,
body.swcrm-mui-v261 * {
    letter-spacing: normal;
}

/* Do not let Astra's global 4px letter-spacing affect CRM headings. */
body.swcrm-mui-v261 .entry-content h1,
body.swcrm-mui-v261 .entry-content h2,
body.swcrm-mui-v261 .entry-content h3,
body.swcrm-mui-v261 .entry-content h4,
body.swcrm-mui-v261 .swcrm11m-wrap h1,
body.swcrm-mui-v261 .swcrm11m-wrap h2,
body.swcrm-mui-v261 .swcrm11m-wrap h3,
body.swcrm-mui-v261 .swcrm-cp3-head h1,
body.swcrm-mui-v261 .swps-head h1,
body.swcrm-mui-v261 .swpayu-head h1,
body.swcrm-mui-v261 .swcrm-class-head h1,
body.swcrm-mui-v261 .swcrm11m-section-title,
body.swcrm-mui-v261 .swcrm11m-card-title,
body.swcrm-mui-v261 .swcrm11m-table-card h2,
body.swcrm-mui-v261 .swcrm11m-table-card h3,
body.swcrm-mui-v261 .swcrm-card h2,
body.swcrm-mui-v261 .swcrm-card h3 {
    letter-spacing: -0.025em !important;
    word-spacing: normal !important;
    text-transform: none !important;
}

/* Workroom shell should breathe, but not waste vertical space. */
body.swcrm-mui-v261 .swcrm-workroom-topbar {
    min-height: 46px !important;
    margin: 0 0 18px 0 !important;
    gap: 14px !important;
}
body.swcrm-mui-v261 .swcrm-workroom-search {
    width: min(380px, 36vw) !important;
    height: 46px !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
}
body.swcrm-mui-v261 .swcrm-workroom-bell,
body.swcrm-mui-v261 .swcrm-workroom-profile {
    height: 44px !important;
    border-radius: 14px !important;
}
body.swcrm-mui-v261 .swcrm-workroom-bell { width: 44px !important; }
body.swcrm-mui-v261 .swcrm-workroom-avatar { width: 28px !important; height: 28px !important; }

/* The full-width 'Chế độ xem...' helper card was useful during testing but feels noisy in production. */
body.swcrm-mui-v261 .swcrm-ux-comfortbar {
    display: none !important;
}

/* Sidebar: closer to Workroom and prevents awkward 1-word line breaks. */
body.swcrm-mui-v261 .swcrmfc-sidebar {
    width: 236px !important;
    padding: 20px 16px !important;
    overflow-x: hidden !important;
}
body.swcrm-mui-v261.swcrm-fc-active #page {
    margin-left: 276px !important;
}
body.swcrm-mui-v261 .swcrmfc-nav-item {
    height: auto !important;
    min-height: 42px !important;
    padding: 8px 11px !important;
    align-items: center !important;
    gap: 10px !important;
}
body.swcrm-mui-v261 .swcrmfc-nav-item > span:last-child {
    display: block !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}
body.swcrm-mui-v261 .swcrmfc-nav-icon {
    flex: 0 0 18px !important;
}
body.swcrm-mui-v261 .swcrmfc-brand strong,
body.swcrm-mui-v261 .swcrmfc-brand small,
body.swcrm-mui-v261 .swcrmfc-nav-title {
    letter-spacing: normal !important;
}
body.swcrm-mui-v261 .swcrmfc-nav-title { letter-spacing: .055em !important; }

/* Page header: reduce oversized title blocks and keep Workroom rhythm. */
body.swcrm-mui-v261 .swcrm-cp3-head,
body.swcrm-mui-v261 .swps-head,
body.swcrm-mui-v261 .swpayu-head,
body.swcrm-mui-v261 .swcrm11m-head,
body.swcrm-mui-v261 .swcrm-class-head {
    margin-bottom: 18px !important;
}
body.swcrm-mui-v261 .swcrm-cp3-head h1,
body.swcrm-mui-v261 .swps-head h1,
body.swcrm-mui-v261 .swpayu-head h1,
body.swcrm-mui-v261 .swcrm11m-head h1,
body.swcrm-mui-v261 .swcrm-class-head h1 {
    font-size: clamp(30px, 2.35vw, 38px) !important;
    line-height: 1.05 !important;
}

/* Tables: preserve structure but make width/wrapping intentional. */
body.swcrm-mui-v261 .swps-table,
body.swcrm-mui-v261 .swcrm-cp3-table,
body.swcrm-mui-v261 .swpayu-table {
    table-layout: fixed !important;
}
body.swcrm-mui-v261 .swps-table thead th,
body.swcrm-mui-v261 .swcrm-cp3-table thead th,
body.swcrm-mui-v261 .swpayu-table thead th {
    padding: 12px 14px !important;
    line-height: 1.22 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
body.swcrm-mui-v261 .swps-table tbody td,
body.swcrm-mui-v261 .swcrm-cp3-table tbody td,
body.swcrm-mui-v261 .swpayu-table tbody td {
    padding: 14px 14px !important;
    line-height: 1.34 !important;
}

/* Invoice columns */
body.swcrm-mui-v261 .swps-table { min-width: 1980px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(1),
body.swcrm-mui-v261 .swps-table td:nth-child(1) { width: 220px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(2),
body.swcrm-mui-v261 .swps-table td:nth-child(2) { width: 78px !important; text-align:center !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(3),
body.swcrm-mui-v261 .swps-table td:nth-child(3) { width: 160px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(4),
body.swcrm-mui-v261 .swps-table td:nth-child(4) { width: 160px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(5),
body.swcrm-mui-v261 .swps-table td:nth-child(5) { width: 118px !important; white-space: nowrap !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(6),
body.swcrm-mui-v261 .swps-table td:nth-child(6) { width: 112px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(7),
body.swcrm-mui-v261 .swps-table td:nth-child(7) { width: 170px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(8),
body.swcrm-mui-v261 .swps-table td:nth-child(8),
body.swcrm-mui-v261 .swps-table th:nth-child(9),
body.swcrm-mui-v261 .swps-table td:nth-child(9),
body.swcrm-mui-v261 .swps-table th:nth-child(10),
body.swcrm-mui-v261 .swps-table td:nth-child(10) { width: 132px !important; text-align: right !important; white-space: nowrap !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(11),
body.swcrm-mui-v261 .swps-table td:nth-child(11) { width: 145px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(12),
body.swcrm-mui-v261 .swps-table td:nth-child(12) { width: 150px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(13),
body.swcrm-mui-v261 .swps-table td:nth-child(13) { width: 130px !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(14),
body.swcrm-mui-v261 .swps-table td:nth-child(14) { width: 110px !important; white-space: nowrap !important; text-align:center !important; }
body.swcrm-mui-v261 .swps-table th:nth-child(15),
body.swcrm-mui-v261 .swps-table td:nth-child(15) { width: 88px !important; min-width: 88px !important; max-width: 88px !important; }

/* Customer columns */
body.swcrm-mui-v261 .swcrm-cp3-table { min-width: 1540px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(1),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(1) { width: 170px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(2),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(2) { width: 112px !important; white-space: nowrap !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(3),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(3) { width: 170px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(4),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(4) { width: 110px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(5),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(5) { width: 140px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(6),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(6) { width: 220px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(7),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(7) { width: 130px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(8),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(8) { width: 130px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(9),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(9) { width: 118px !important; white-space: nowrap !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(10),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(10) { width: 160px !important; }
body.swcrm-mui-v261 .swcrm-cp3-table th:nth-child(11),
body.swcrm-mui-v261 .swcrm-cp3-table td:nth-child(11) { width: 86px !important; min-width: 86px !important; max-width: 86px !important; }

/* Avoid sticky action column feeling like it covers hidden columns: softer shadow and smaller button. */
body.swcrm-mui-v261 .swps-table th:last-child,
body.swcrm-mui-v261 .swps-table td:last-child,
body.swcrm-mui-v261 .swcrm-cp3-table th:last-child,
body.swcrm-mui-v261 .swcrm-cp3-table td:last-child,
body.swcrm-mui-v261 .swpayu-table th:last-child,
body.swcrm-mui-v261 .swpayu-table td:last-child {
    box-shadow: -8px 0 18px rgba(244, 248, 252, .82) !important;
}
body.swcrm-mui-v261 .swps-table td:last-child a,
body.swcrm-mui-v261 .swcrm-cp3-table td:last-child a,
body.swcrm-mui-v261 .swpayu-table td:last-child a,
body.swcrm-mui-v261 .swps-table td:last-child button,
body.swcrm-mui-v261 .swcrm-cp3-table td:last-child button,
body.swcrm-mui-v261 .swpayu-table td:last-child button {
    min-width: 58px !important;
    max-width: 66px !important;
    padding: 8px 9px !important;
    font-size: 12px !important;
}

/* Note Sales should be visible but not dominate every row. */
body.swcrm-mui-v261 .swcrm-cp3-table textarea,
body.swcrm-mui-v261 .swcrm-cp3-note textarea,
body.swcrm-mui-v261 textarea[name*="note"] {
    min-height: 52px !important;
    height: 56px !important;
    max-height: 82px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    resize: vertical !important;
}

/* Softer dashboard tables/cards: fix letter-spaced section titles and oversized empty areas. */
body.swcrm-mui-v261 .swcrm11m-table-card h2,
body.swcrm-mui-v261 .swcrm11m-table-card h3,
body.swcrm-mui-v261 .swcrm11m-section-title {
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin-bottom: 14px !important;
}
body.swcrm-mui-v261 .swcrm11m-table-card {
    min-height: auto !important;
}
body.swcrm-mui-v261 .swcrm11m-table td,
body.swcrm-mui-v261 .swcrm11m-table th {
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

@media (max-width: 1180px) {
    body.swcrm-mui-v261 .swcrmfc-sidebar { width: 214px !important; }
    body.swcrm-mui-v261.swcrm-fc-active #page { margin-left: 244px !important; }
}
@media (max-width: 900px) {
    body.swcrm-mui-v261.swcrm-fc-active #page { margin-left: 0 !important; }
    body.swcrm-mui-v261 .swcrm-workroom-topbar { flex-direction: column !important; align-items: stretch !important; }
    body.swcrm-mui-v261 .swcrm-workroom-search { width: 100% !important; }
}


/* ------------------------------------------------------------
   v2.6.2 — Workroom title cleanup
   Remove small descriptive/kicker text under large page titles.
   Keep the actual page titles, primary action buttons, KPI cards,
   filters and CRM data/actions intact.
------------------------------------------------------------- */
body.swcrm-mui-v262 .swcrm-cp3-head::before,
body.swcrm-mui-v262 .swps-head::before,
body.swcrm-mui-v262 .swpayu-head::before,
body.swcrm-mui-v262 .swcrm11m-head::before,
body.swcrm-mui-v262 .swcrm-class-head::before,
body.swcrm-mui-v262 .swcrm-page-head::before,
body.swcrm-mui-v262 .swcrm-rank-head::before,
body.swcrm-mui-v262 .swcrm-amb-head::before {
    content: none !important;
    display: none !important;
}

body.swcrm-mui-v262 .swcrm-cp3-head p,
body.swcrm-mui-v262 .swps-head p,
body.swcrm-mui-v262 .swps-hero p,
body.swcrm-mui-v262 .swpayu-head p,
body.swcrm-mui-v262 .swcrm11m-head p,
body.swcrm-mui-v262 .swcrm-class-head p,
body.swcrm-mui-v262 .swcrm-page-head p,
body.swcrm-mui-v262 .swcrm-rank-head p,
body.swcrm-mui-v262 .swcrm-amb-head p,
body.swcrm-mui-v262 .swcrm-dashboard-head p,
body.swcrm-mui-v262 .swcrm-report-head p {
    display: none !important;
}

/* Remove any Workroom kicker introduced by earlier visual shell builds. */
body.swcrm-mui-v262 .swcrm-workroom-page-kicker {
    display: none !important;
}

/* Tighten title rhythm after removing subtitles. */
body.swcrm-mui-v262 .swcrm-cp3-head,
body.swcrm-mui-v262 .swps-head,
body.swcrm-mui-v262 .swpayu-head,
body.swcrm-mui-v262 .swcrm11m-head,
body.swcrm-mui-v262 .swcrm-class-head,
body.swcrm-mui-v262 .swcrm-page-head,
body.swcrm-mui-v262 .swcrm-rank-head,
body.swcrm-mui-v262 .swcrm-amb-head {
    align-items: center !important;
    margin-bottom: 18px !important;
}

body.swcrm-mui-v262 .swcrm-cp3-head h1,
body.swcrm-mui-v262 .swps-head h1,
body.swcrm-mui-v262 .swpayu-head h1,
body.swcrm-mui-v262 .swcrm11m-head h1,
body.swcrm-mui-v262 .swcrm-class-head h1,
body.swcrm-mui-v262 .swcrm-page-head h1,
body.swcrm-mui-v262 .swcrm-rank-head h1,
body.swcrm-mui-v262 .swcrm-amb-head h1,
body.swcrm-mui-v262 .swcrm-cp3-head h2,
body.swcrm-mui-v262 .swps-head h2,
body.swcrm-mui-v262 .swpayu-head h2 {
    margin-bottom: 0 !important;
}

/* Invoice hero becomes cleaner after the subtitle is removed. */
body.swcrm-mui-v262.swcrm-mui-route-hoa-don .swps-hero,
body.swcrm-mui-v262.swcrm-mui-route-kho-hoa-don .swps-hero {
    min-height: auto !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

body.swcrm-mui-v262.swcrm-mui-route-hoa-don .swps-hero h1,
body.swcrm-mui-v262.swcrm-mui-route-kho-hoa-don .swps-hero h1 {
    margin: 0 !important;
}

/* Customer title/action row: keep the action button aligned after description removal. */
body.swcrm-mui-v262.swcrm-mui-route-khach-hang .swcrm-cp3-head {
    min-height: 56px !important;
}

/* Keep sidebar brand subtitle. It identifies the workspace, not a page subtitle. */
body.swcrm-mui-v262 .swcrmfc-brand small {
    display: block !important;
}


/* ------------------------------------------------------------
   v2.6.3 — Payment table + stray paragraph cleanup
   Fixes:
   1) /phieu-thanh-toan/ action buttons were clipped because the shared
      sticky action column was too narrow for 3 stacked payment actions.
   2) /khach-hang/ displayed a stray WP paragraph like "ẽ hiển thị tại đây."
      after the CRM table.
------------------------------------------------------------- */
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table {
    min-width: 1240px !important;
    table-layout: fixed !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-scroll {
    overflow-x: auto !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(1),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(1) { width: 150px !important; min-width: 150px !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(2),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(2) { width: 105px !important; min-width: 105px !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(3),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(3) { width: 105px !important; min-width: 105px !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(4),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(4) { width: 118px !important; min-width: 118px !important; white-space: nowrap !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(5),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(5) { width: 115px !important; min-width: 115px !important; white-space: nowrap !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(6),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(6) { width: 155px !important; min-width: 155px !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(7),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(7) { width: 82px !important; min-width: 82px !important; white-space: nowrap !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(8),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(8) { width: 110px !important; min-width: 110px !important; white-space: nowrap !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(9),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(9) { width: 145px !important; min-width: 145px !important; }
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:nth-child(10),
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:nth-child(10) { width: 110px !important; min-width: 110px !important; white-space: nowrap !important; }

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table th:last-child,
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table td:last-child {
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: center !important;
    overflow: visible !important;
    background: #fff !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-table thead th:last-child {
    background: #f7fbff !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    margin: 0 auto !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-actions form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-actions a,
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-actions button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
}

body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-actions .danger,
body.swcrm-mui-v263.swcrm-mui-route-phieu-thanh-toan .swpayu-actions button.danger {
    background: #ef4444 !important;
    color: #fff !important;
}

/* The text is removed by JS by exact content. This class is a safe fallback. */
body.swcrm-mui-v263 .swcrm-mui-stray-paragraph {
    display: none !important;
}


/* ------------------------------------------------------------
   v2.7.0 — Dashboard Workroom Redesign
   Goal: make / and /tong-quan/ feel closer to the Workroom template
   without owning or recalculating CRM data. Existing dashboard modules
   keep their links/data; this skin only improves hierarchy, spacing,
   cards, tables and dashboard grid.
------------------------------------------------------------- */
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-mui-dashboard {
    display: none !important; /* hide legacy duplicate dashboard block with stale self-calculated metrics */
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .entry-header,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .ast-single-entry-banner,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .page .entry-title {
    display: none !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard #primary,
body.swcrm-mui-v270.swcrm-mui-has-dashboard #main,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .entry-content {
    max-width: 1320px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .entry-content {
    padding-bottom: 48px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-workroom-topbar {
    max-width: 1320px !important;
    margin-bottom: 22px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-page,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-hero {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(207, 222, 240, .92) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(205, 225, 255, .9) 0 70px, transparent 72px),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 18px 45px rgba(23, 35, 61, .08) !important;
    padding: 34px 36px !important;
    margin: 0 !important;
    min-height: 140px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-date {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: rgba(239, 246, 255, .92) !important;
    border: 1px solid rgba(191, 219, 254, .9) !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    margin: 0 0 12px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-hero h1 {
    font-size: clamp(32px, 4vw, 56px) !important;
    line-height: .96 !important;
    letter-spacing: -2.2px !important;
    margin: 0 !important;
    color: #0f172a !important;
    max-width: 780px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-hero p {
    display: none !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 22px !important;
    max-width: 980px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-action-primary,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-action-light {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 15px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-action-primary {
    background: #2f7cf6 !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(47, 124, 246, .22) !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-action-light {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid rgba(191, 219, 254, .94) !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-action-primary:hover,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-action-light:hover {
    transform: translateY(-1px) !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi {
    border-radius: 22px !important;
    border: 1px solid rgba(207, 222, 240, .96) !important;
    background: rgba(255,255,255,.96) !important;
    padding: 20px 22px !important;
    box-shadow: 0 16px 36px rgba(23, 35, 61, .06) !important;
    min-height: 118px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi span {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi strong {
    display: block !important;
    margin-top: 8px !important;
    font-size: 34px !important;
    line-height: 1 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi small {
    display: block !important;
    margin-top: 8px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi.success strong { color: #16a34a !important; }
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi.danger strong { color: #ef4444 !important; }
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpi.warning strong { color: #f97316 !important; }

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-panel,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-panel {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(207, 222, 240, .96) !important;
    border-radius: 26px !important;
    box-shadow: 0 18px 42px rgba(23, 35, 61, .07) !important;
    padding: 20px !important;
    overflow: hidden !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-panel-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 0 16px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-panel-head h2,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-panel h2 {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.12 !important;
    letter-spacing: -.4px !important;
    color: #0f172a !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-panel-link {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-table-wrap,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-table-wrap,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-quick-table-wrap {
    border-radius: 18px !important;
    border: 1px solid rgba(207, 222, 240, .95) !important;
    overflow: auto !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-table,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-table,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-quick-table {
    width: 100% !important;
    min-width: 620px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-table th,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-table th,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-quick-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    background: #f8fbff !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    padding: 13px 14px !important;
    border-bottom: 1px solid rgba(207, 222, 240, .95) !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-table td,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-table td,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-quick-table td {
    padding: 14px !important;
    color: #0f172a !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    border-bottom: 1px solid rgba(226, 232, 240, .92) !important;
    vertical-align: middle !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-table tr:last-child td,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-table tr:last-child td {
    border-bottom: 0 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-name {
    font-weight: 900 !important;
    color: #0f172a !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-muted {
    margin-top: 2px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-pill,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-pill-red,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-badge.red {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-pill-yellow,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-badge.yellow,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-badge.warning {
    background: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-row-btn,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-empty,
body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-empty {
    border: 1px dashed #cbd5e1 !important;
    border-radius: 18px !important;
    padding: 26px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    background: #f8fafc !important;
    font-weight: 800 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm {
    margin-top: 24px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-panel > p {
    display: none !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 16px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-card {
    border-radius: 20px !important;
    border: 1px solid rgba(207, 222, 240, .95) !important;
    background: #fff !important;
    box-shadow: 0 14px 28px rgba(23,35,61,.05) !important;
    padding: 18px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-card .label {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-card .value {
    margin-top: 8px !important;
    color: #0f172a !important;
    font-size: 34px !important;
    font-weight: 950 !important;
    letter-spacing: -1px !important;
}

body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-panel + .swcrm-cm-panel {
    margin-top: 18px !important;
}

/* Dashboard responsive safeguards */
@media (max-width: 1180px) {
    body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpis,
    body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 960px) {
    body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-hero {
        padding: 26px 22px !important;
        border-radius: 24px !important;
    }
    body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm11m-kpis,
    body.swcrm-mui-v270.swcrm-mui-has-dashboard .swcrm-cm-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ------------------------------------------------------------
   v2.8.0 — Dashboard Insight Board
   Replace boring dashboard tables with Workroom-inspired charts/cards.
   DOM-only: reads existing on-page values, does not query or write CRM data.
------------------------------------------------------------- */
body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board {
    max-width: 1320px !important;
    margin: 0 auto 22px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr) !important;
    gap: 18px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    border: 1px solid rgba(207, 222, 240, .95) !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 22px 54px rgba(23, 35, 61, .075) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-main {
    min-height: 360px !important;
    padding: 26px 28px 24px !important;
    background:
      radial-gradient(circle at 88% 2%, rgba(204, 224, 255, .95) 0 92px, transparent 94px),
      linear-gradient(145deg, #ffffff 0%, #f8fbff 100%) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-side {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 22px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-eyebrow {
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-title {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: clamp(28px, 3.3vw, 48px) !important;
    line-height: .98 !important;
    letter-spacing: -1.9px !important;
    font-weight: 950 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-subgrid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-mini {
    border-radius: 22px !important;
    border: 1px solid rgba(219, 234, 254, .95) !important;
    background: rgba(255,255,255,.82) !important;
    padding: 16px 16px 14px !important;
    min-height: 108px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-mini span {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-mini strong {
    display: block !important;
    margin-top: 9px !important;
    color: #0f172a !important;
    font-size: 24px !important;
    line-height: 1 !important;
    letter-spacing: -.7px !important;
    font-weight: 950 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-mini small {
    display: block !important;
    margin-top: 8px !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-chart-card {
    border-radius: 26px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, .92) !important;
    padding: 18px 18px 14px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-chart-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-chart-title strong {
    font-size: 18px !important;
    color: #0f172a !important;
    letter-spacing: -.3px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-chart-title span {
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-bars {
    height: 178px !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 1fr !important;
    align-items: end !important;
    gap: 16px !important;
    padding: 10px 4px 0 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-bar-item {
    height: 100% !important;
    display: grid !important;
    grid-template-rows: 24px 1fr 24px !important;
    justify-items: center !important;
    gap: 7px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-bar-value {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-bar-track {
    width: 100% !important;
    max-width: 42px !important;
    height: 100% !important;
    border-radius: 18px !important;
    background: #f1f5ff !important;
    display: flex !important;
    align-items: end !important;
    overflow: hidden !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-bar-track span {
    display: block !important;
    width: 100% !important;
    min-height: 8% !important;
    border-radius: 18px 18px 6px 6px !important;
    background: linear-gradient(180deg, #7c3aed 0%, #2f7cf6 100%) !important;
    box-shadow: 0 12px 24px rgba(79, 70, 229, .25) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-bar-label {
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-donut-wrap {
    display: grid !important;
    grid-template-columns: 138px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-donut {
    --p: 0%;
    width: 138px !important;
    height: 138px !important;
    border-radius: 50% !important;
    background: conic-gradient(#7c3aed 0 var(--p), #e9eff8 var(--p) 100%) !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: inset 0 0 0 1px rgba(226,232,240,.88), 0 18px 34px rgba(23,35,61,.08) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-donut::before {
    content: '';
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(226,232,240,.78) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-viz-donut-label {
    position: absolute !important;
    width: 138px !important;
    height: 138px !important;
    display: grid !important;
    place-items: center !important;
    pointer-events: none !important;
    color: #0f172a !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    letter-spacing: -1px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-donut-copy strong {
    display: block !important;
    color: #0f172a !important;
    font-size: 20px !important;
    margin-bottom: 6px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-donut-copy p {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-ops-list {
    display: grid !important;
    gap: 10px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-ops-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 12px 13px !important;
    border-radius: 18px !important;
    background: #f8fbff !important;
    border: 1px solid rgba(226,232,240,.9) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-ops-row span {
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-ops-row strong {
    color: #0f172a !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    letter-spacing: -.5px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-panel-cards {
    display: grid !important;
    gap: 10px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-table-hidden {
    display: none !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-action-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px !important;
    align-items: center !important;
    min-height: 76px !important;
    border-radius: 18px !important;
    padding: 14px 15px !important;
    border: 1px solid rgba(226,232,240,.95) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-action-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 28px rgba(23,35,61,.07) !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-title {
    display: block !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1.3 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-chip {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-chip.is-danger {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-chip.is-warn {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-go a,
body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-action-go button {
    display: inline-flex !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: #2f7cf6 !important;
    color: #fff !important;
    border: 0 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-action-empty {
    border: 1px dashed #cbd5e1 !important;
    border-radius: 18px !important;
    padding: 22px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    background: #f8fafc !important;
    font-weight: 900 !important;
}

@media (max-width: 1180px) {
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board {
        grid-template-columns: 1fr !important;
    }
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-subgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-main,
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-side {
        padding: 20px !important;
        border-radius: 24px !important;
    }
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-insight-subgrid,
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-donut-wrap {
        grid-template-columns: 1fr !important;
    }
    body.swcrm-mui-v280.swcrm-mui-has-dashboard .swcrm-dashboard-action-card {
        grid-template-columns: 1fr !important;
    }
}

/* -------------------------------------------------------------
   v2.8.1 — Dashboard real data adapter polish
   Hide duplicated native hero/KPI blocks after Insight Board has absorbed them,
   then keep native panels below as action-card lists.
------------------------------------------------------------- */
body.swcrm-mui-v281.swcrm-mui-has-dashboard.swcrm-dashboard-insight-v281-ready .swcrm11m-page > .swcrm11m-hero,
body.swcrm-mui-v281.swcrm-mui-has-dashboard.swcrm-dashboard-insight-v281-ready .swcrm11m-page > .swcrm11m-kpis {
    display: none !important;
}

body.swcrm-mui-v281.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board.is-v281-data-adapter {
    margin-bottom: 20px !important;
}

body.swcrm-mui-v281.swcrm-mui-has-dashboard .swcrm-viz-bars-7days {
    grid-auto-columns: minmax(52px, 1fr) !important;
}

body.swcrm-mui-v281.swcrm-mui-has-dashboard .swcrm-insight-mini strong {
    font-variant-numeric: tabular-nums !important;
}

body.swcrm-mui-v281.swcrm-mui-has-dashboard .swcrm-donut-copy strong {
    line-height: 1.2 !important;
    letter-spacing: -.4px !important;
}

body.swcrm-mui-v281.swcrm-mui-has-dashboard .swcrm-viz-donut[style*="--p:100%"] {
    background: conic-gradient(#22c55e 0 100%, #e9eff8 100% 100%) !important;
}


/* -------------------------------------------------------------
   v2.8.2 — Dashboard donut label overlap hotfix
   The donut center label in v2.8.1 used absolute positioning without
   top/right/bottom/left anchors, so on some browsers it escaped downward
   and overlapped the “Việc cần xử lý” card title. Keep it centered inside
   the donut's relative wrapper. UI-only; no CRM data changes.
------------------------------------------------------------- */
body.swcrm-mui-v282.swcrm-mui-has-dashboard .swcrm-viz-donut-label {
    inset: 0 !important;
    width: 138px !important;
    height: 138px !important;
    transform: none !important;
    z-index: 2 !important;
}

body.swcrm-mui-v282.swcrm-mui-has-dashboard .swcrm-donut-wrap > div:first-child {
    position: relative !important;
    width: 138px !important;
    height: 138px !important;
    flex: 0 0 138px !important;
}

body.swcrm-mui-v282.swcrm-mui-has-dashboard .swcrm-insight-side .swcrm-insight-chart-card {
    overflow: hidden !important;
}

body.swcrm-mui-v282.swcrm-mui-has-dashboard .swcrm-insight-side .swcrm-insight-chart-card + .swcrm-insight-chart-card {
    position: relative !important;
    z-index: 1 !important;
}

body.swcrm-mui-v282.swcrm-mui-has-dashboard .swcrm-insight-side .swcrm-insight-chart-title {
    position: relative !important;
    z-index: 3 !important;
}

body.swcrm-mui-v282.swcrm-mui-has-dashboard .swcrm-insight-side .swcrm-insight-chart-title strong {
    line-height: 1.2 !important;
}


/* -------------------------------------------------------------------------
 * v2.9.0 Quick Intake / Chốt đơn nhanh redesign
 * Visual + interaction only. It does not change input names, form action,
 * nonce, submit method, invoice logic, owner logic, or ranking logic.
 * ------------------------------------------------------------------------- */
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi {
    width: min(100%, 1320px) !important;
    max-width: 1320px !important;
    margin: 18px auto 64px !important;
    padding: 0 12px 80px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-head {
    align-items: flex-start !important;
    margin: 0 0 18px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-head h1 {
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: .96 !important;
    letter-spacing: -1.6px !important;
    color: #08111f !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-head p {
    margin-top: 10px !important;
    max-width: 620px !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-back {
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(203,213,225,.9) !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.06) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 16px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-step-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 58px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.84) !important;
    border: 1px solid rgba(226,232,240,.95) !important;
    box-shadow: 0 16px 36px rgba(15,23,42,.045) !important;
    color: #0f172a !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-step-pill b {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border-radius: 10px !important;
    background: #eaf3ff !important;
    color: #2563eb !important;
    font-size: 12px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-step-pill strong {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: -.1px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-step-pill span {
    display: block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 18px !important;
    align-items: start !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-form > input[type="hidden"] {
    display: none !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-card,
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-submit {
    grid-column: 1 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-card {
    padding: 22px !important;
    border-radius: 28px !important;
    border-color: rgba(218,228,241,.96) !important;
    box-shadow: 0 22px 48px rgba(15,23,42,.055) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 16px !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    letter-spacing: -.35px !important;
    font-weight: 950 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-section-title::before {
    content: attr(data-step) !important;
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #2f80ed, #38bdf8) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(37,99,235,.22) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-grid {
    gap: 14px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field label {
    margin-bottom: 7px !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: -.1px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field input,
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field select,
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field textarea {
    min-height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #dbe7f4 !important;
    background: #fbfdff !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 14px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field textarea {
    min-height: 72px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field input:focus,
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field select:focus,
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-field textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,.12) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-help {
    margin-top: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: #64748b !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode label {
    position: relative !important;
    min-height: 82px !important;
    padding: 18px !important;
    border-radius: 22px !important;
    background: #f8fbff !important;
    border: 1px solid #dbeafe !important;
    transition: .16s ease !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode label:has(input:checked) {
    background: linear-gradient(135deg, #eff6ff, #fff) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 16px 36px rgba(37,99,235,.12) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode input[type="radio"] {
    margin-top: 3px !important;
    accent-color: #2563eb !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode strong {
    font-size: 14px !important;
    color: #0f172a !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode span span {
    color: #64748b !important;
    font-size: 12px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-checks {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-checks label {
    border-radius: 999px !important;
    background: #f8fbff !important;
    border: 1px solid #dbeafe !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary {
    grid-column: 2 !important;
    grid-row: 1 / span 4 !important;
    position: sticky !important;
    top: 96px !important;
    padding: 18px !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 1px solid rgba(218,228,241,.96) !important;
    box-shadow: 0 22px 48px rgba(15,23,42,.06) !important;
    overflow: hidden !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary::after {
    content: "" !important;
    position: absolute !important;
    top: -58px !important;
    right: -48px !important;
    width: 150px !important;
    height: 150px !important;
    border-radius: 999px !important;
    background: rgba(147,197,253,.35) !important;
    pointer-events: none !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary > * {
    position: relative !important;
    z-index: 1 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary h3 {
    margin: 0 0 6px !important;
    color: #0f172a !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    letter-spacing: -.25px !important;
    font-weight: 950 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-sub {
    margin: 0 0 14px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 750 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-list {
    display: grid !important;
    gap: 9px !important;
    margin: 0 0 14px !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-row {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px 11px !important;
    border-radius: 16px !important;
    background: rgba(248,251,255,.9) !important;
    border: 1px solid rgba(226,232,240,.9) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-row span:first-child {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-row b {
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    overflow-wrap: anywhere !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-alert {
    padding: 12px 13px !important;
    border-radius: 18px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #9a3412 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 850 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary-alert.is-ok {
    background: #ecfdf5 !important;
    border-color: #bbf7d0 !important;
    color: #047857 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-submit {
    position: sticky !important;
    bottom: 18px !important;
    z-index: 20 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 0 !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.84) !important;
    border: 1px solid rgba(218,228,241,.96) !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.10) !important;
    backdrop-filter: blur(12px) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-btn,
body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-reset {
    min-height: 46px !important;
    border-radius: 15px !important;
    padding: 13px 18px !important;
    font-weight: 950 !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-btn {
    background: linear-gradient(135deg, #2f80ed, #22c55e) !important;
    box-shadow: 0 16px 28px rgba(47,128,237,.20) !important;
}

body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-reset {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #dbe7f4 !important;
}

@media (max-width: 1180px) {
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-form {
        grid-template-columns: 1fr !important;
    }
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-summary {
        grid-column: 1 !important;
        grid-row: auto !important;
        position: relative !important;
        top: auto !important;
    }
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-head {
        display: block !important;
    }
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-back {
        margin-top: 12px !important;
    }
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-steps,
    body.swcrm-mui-v290.swcrm-mui-route-chot-don-nhanh .swcrm-qi-mode {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   v3.0.0 — Customer workflow pages polish
   Scope: /cap-nhat-khach-hang/, /chi-tiet-khach-hang/, /tao-hoa-don/
   UI-only. Does not change form names, actions, nonces, meta keys or data logic.
========================================================= */
body.swcrm-mui-v300.swcrm-mui-route-cap-nhat-khach-hang,
body.swcrm-mui-v300.swcrm-mui-route-chi-tiet-khach-hang,
body.swcrm-mui-v300.swcrm-mui-route-tao-hoa-don{
  --swcrm-flow-bg:#f3f7fc;
  --swcrm-flow-card:#ffffff;
  --swcrm-flow-border:#dbe8f6;
  --swcrm-flow-text:#0f172a;
  --swcrm-flow-muted:#64748b;
  --swcrm-flow-blue:#2f7df6;
  --swcrm-flow-blue-soft:#eaf3ff;
  background:var(--swcrm-flow-bg) !important;
}
body.swcrm-mui-v300 :is(.swcrm-form-page,.swcrm-detail-page,.swcrm-v13){
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif !important;
  letter-spacing:0 !important;
}
body.swcrm-mui-v300 :is(.swcrm-form-page h1,.swcrm-form-page h2,.swcrm-form-page h3,.swcrm-detail-page h1,.swcrm-detail-page h2,.swcrm-detail-page h3,.swcrm-v13 h1,.swcrm-v13 h2,.swcrm-v13 h3){
  letter-spacing:-.035em !important;
  color:var(--swcrm-flow-text) !important;
}
body.swcrm-mui-v300.swcrm-mui-route-cap-nhat-khach-hang .entry-title,
body.swcrm-mui-v300.swcrm-mui-route-tao-hoa-don .entry-title,
body.swcrm-mui-v300.swcrm-mui-route-chi-tiet-khach-hang .entry-title{display:none !important;}

body.swcrm-mui-v300.swcrm-mui-route-cap-nhat-khach-hang .swcrm-form-page{
  max-width:1180px !important;margin:34px auto 72px !important;padding:0 22px !important;
}
body.swcrm-mui-v300 .swcrm-form-head{
  display:flex !important;align-items:flex-end !important;justify-content:space-between !important;gap:18px !important;margin:0 0 18px !important;
}
body.swcrm-mui-v300 .swcrm-form-head h1{font-size:34px !important;line-height:1.05 !important;margin:0 0 8px !important;}
body.swcrm-mui-v300 .swcrm-form-head p{margin:0 !important;color:var(--swcrm-flow-muted) !important;font-weight:650 !important;font-size:14px !important;}
body.swcrm-mui-v300 .swcrm-back-btn,
body.swcrm-mui-v300 .swcrm-action-light,
body.swcrm-mui-v300 .swcrm-v13-back{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:38px !important;padding:0 14px !important;border-radius:14px !important;background:#fff !important;border:1px solid var(--swcrm-flow-border) !important;color:#0f172a !important;text-decoration:none !important;font-weight:850 !important;box-shadow:0 10px 24px rgba(15,23,42,.06) !important;
}
body.swcrm-mui-v300 .swcrm-form-card,
body.swcrm-mui-v300 .swcrm-v13-card{
  background:var(--swcrm-flow-card) !important;border:1px solid var(--swcrm-flow-border) !important;border-radius:26px !important;padding:24px !important;box-shadow:0 24px 70px rgba(15,23,42,.08) !important;
}
body.swcrm-mui-v300 .swcrm-form-grid,
body.swcrm-mui-v300 .swcrm-v13-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:16px 18px !important;}
body.swcrm-mui-v300 .swcrm-form-field,
body.swcrm-mui-v300 .swcrm-v13-field{min-width:0 !important;display:flex !important;flex-direction:column !important;gap:7px !important;}
body.swcrm-mui-v300 .swcrm-form-field-full{grid-column:1 / -1 !important;}
body.swcrm-mui-v300 :is(.swcrm-form-field,.swcrm-v13-field) label{color:#334155 !important;font-weight:900 !important;font-size:13px !important;margin:0 !important;}
body.swcrm-mui-v300 :is(.swcrm-form-field,.swcrm-v13-field) :is(input,select,textarea){width:100% !important;min-height:42px !important;border-radius:14px !important;border:1px solid #d8e6f4 !important;background:#f8fbff !important;color:#0f172a !important;font-weight:720 !important;font-size:14px !important;box-shadow:none !important;outline:none !important;}
body.swcrm-mui-v300 :is(.swcrm-form-field,.swcrm-v13-field) textarea{min-height:98px !important;resize:vertical !important;}
body.swcrm-mui-v300 :is(.swcrm-form-field,.swcrm-v13-field) :is(input,select,textarea):focus{border-color:#7db2ff !important;background:#fff !important;box-shadow:0 0 0 4px rgba(47,125,246,.10) !important;}
body.swcrm-mui-v300 .swcrm-submit-row{position:sticky !important;bottom:18px !important;z-index:20 !important;display:flex !important;justify-content:flex-end !important;gap:10px !important;margin-top:18px !important;padding:12px !important;border-radius:20px !important;background:rgba(255,255,255,.86) !important;backdrop-filter:blur(12px) !important;border:1px solid rgba(219,232,246,.9) !important;box-shadow:0 18px 42px rgba(15,23,42,.10) !important;}
body.swcrm-mui-v300 :is(.swcrm-submit-btn,.swcrm-reset-btn,.swcrm-v13-submit,button[type="submit"]){border-radius:14px !important;min-height:42px !important;padding:0 18px !important;font-weight:900 !important;}

body.swcrm-mui-v300.swcrm-mui-route-chi-tiet-khach-hang .swcrm-detail-page{max-width:1240px !important;margin:34px auto 72px !important;padding:0 22px !important;}
body.swcrm-mui-v300 .swcrm-detail-top{background:#fff !important;border:1px solid var(--swcrm-flow-border) !important;border-radius:28px !important;padding:22px !important;box-shadow:0 24px 70px rgba(15,23,42,.08) !important;align-items:center !important;}
body.swcrm-mui-v300 .swcrm-detail-top h1{font-size:36px !important;line-height:1.05 !important;margin:0 0 8px !important;}
body.swcrm-mui-v300 .swcrm-detail-actions{display:flex !important;gap:10px !important;flex-wrap:wrap !important;justify-content:flex-end !important;}
body.swcrm-mui-v300 .swcrm-detail-grid,
body.swcrm-mui-v300 .swcrm-info-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:14px !important;}
body.swcrm-mui-v300 .swcrm-info-card{background:#fff !important;border:1px solid var(--swcrm-flow-border) !important;border-radius:20px !important;padding:16px !important;box-shadow:0 12px 32px rgba(15,23,42,.05) !important;}
body.swcrm-mui-v300 .swcrm-info-card strong,
body.swcrm-mui-v300 .swcrm-info-card b{display:block !important;color:#64748b !important;font-size:12px !important;text-transform:uppercase !important;letter-spacing:.02em !important;margin-bottom:6px !important;}
body.swcrm-mui-v300 .swcrm-section{background:#fff !important;border:1px solid var(--swcrm-flow-border) !important;border-radius:24px !important;padding:20px !important;margin-top:18px !important;box-shadow:0 18px 48px rgba(15,23,42,.06) !important;}
body.swcrm-mui-v300 .swcrm-section h2{font-size:20px !important;margin:0 0 14px !important;}
body.swcrm-mui-v300 .swcrm-table-wrap{border-radius:18px !important;border:1px solid #dbe8f6 !important;overflow:auto !important;background:#fff !important;}
body.swcrm-mui-v300 .swcrm-table{width:100% !important;border-collapse:separate !important;border-spacing:0 !important;}
body.swcrm-mui-v300 .swcrm-table th{position:sticky !important;top:0 !important;z-index:2 !important;background:#f7fbff !important;color:#334155 !important;font-weight:900 !important;}
body.swcrm-mui-v300 .swcrm-table :is(th,td){padding:13px 14px !important;border-bottom:1px solid #e4edf7 !important;vertical-align:middle !important;}
body.swcrm-mui-v300 .swcrm-empty{padding:24px !important;border-radius:18px !important;background:#f8fbff !important;color:#64748b !important;font-weight:800 !important;text-align:center !important;}

body.swcrm-mui-v300.swcrm-mui-route-tao-hoa-don .swcrm-v13{max-width:1240px !important;margin:34px auto 72px !important;padding:0 22px !important;}
body.swcrm-mui-v300 .swcrm-v13-head{display:flex !important;justify-content:space-between !important;align-items:flex-end !important;gap:18px !important;margin-bottom:18px !important;}
body.swcrm-mui-v300 .swcrm-v13-head h1{font-size:34px !important;line-height:1.05 !important;margin:0 0 8px !important;}
body.swcrm-mui-v300 .swcrm-v13-head p{margin:0 !important;color:#64748b !important;font-weight:650 !important;}
body.swcrm-mui-v300.swcrm-mui-route-tao-hoa-don .swcrm-v13-card{display:grid !important;grid-template-columns:minmax(0,1fr) 320px !important;gap:18px !important;align-items:start !important;}
body.swcrm-mui-v300.swcrm-mui-route-tao-hoa-don .swcrm-v13-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
body.swcrm-mui-v300 .swcrm-flow-summary{position:sticky !important;top:92px !important;background:#f8fbff !important;border:1px solid #dbe8f6 !important;border-radius:22px !important;padding:18px !important;box-shadow:0 16px 42px rgba(15,23,42,.06) !important;}
body.swcrm-mui-v300 .swcrm-flow-summary h3{font-size:18px !important;margin:0 0 12px !important;}
body.swcrm-mui-v300 .swcrm-flow-summary-row{display:flex !important;justify-content:space-between !important;gap:12px !important;padding:10px 0 !important;border-bottom:1px solid #e2edf8 !important;font-weight:800 !important;}
body.swcrm-mui-v300 .swcrm-flow-summary-row span:first-child{color:#64748b !important;font-size:12px !important;text-transform:uppercase !important;letter-spacing:.02em !important;}
body.swcrm-mui-v300 .swcrm-flow-summary-row span:last-child{text-align:right !important;color:#0f172a !important;}
body.swcrm-mui-v300 .swcrm-flow-warning{margin-top:12px !important;border-radius:16px !important;padding:12px !important;background:#fff7ed !important;border:1px solid #fed7aa !important;color:#9a3412 !important;font-weight:850 !important;font-size:13px !important;}
body.swcrm-mui-v300 .swcrm-auto-status-box{border-radius:16px !important;background:#ecfdf5 !important;border:1px solid #bbf7d0 !important;color:#166534 !important;font-weight:900 !important;padding:12px 14px !important;margin-top:8px !important;}
body.swcrm-mui-v300 .swcrm-payment-status-hidden{display:none !important;}

@media (max-width:1100px){
  body.swcrm-mui-v300.swcrm-mui-route-tao-hoa-don .swcrm-v13-card{grid-template-columns:1fr !important;}
  body.swcrm-mui-v300 .swcrm-flow-summary{position:relative !important;top:auto !important;}
  body.swcrm-mui-v300 .swcrm-detail-grid,
  body.swcrm-mui-v300 .swcrm-info-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:720px){
  body.swcrm-mui-v300 .swcrm-form-grid,
  body.swcrm-mui-v300 .swcrm-v13-grid{grid-template-columns:1fr !important;}
  body.swcrm-mui-v300 .swcrm-detail-grid,
  body.swcrm-mui-v300 .swcrm-info-grid{grid-template-columns:1fr !important;}
  body.swcrm-mui-v300 .swcrm-form-head,
  body.swcrm-mui-v300 .swcrm-v13-head,
  body.swcrm-mui-v300 .swcrm-detail-top{display:block !important;}
  body.swcrm-mui-v300 .swcrm-detail-actions{justify-content:flex-start !important;margin-top:12px !important;}
}


/* =========================================================
   SWORLD CRM Modern UI Kit v3.1.0
   Full route coverage + login + utility/safety pages
   Data-safe: CSS-only additions. No form action/input name changes.
   ========================================================= */
body.swcrm-mui-v310 {
  --swmui-login-bg: #eef5ff;
  --swmui-login-card: rgba(255,255,255,.94);
  --swmui-login-border: rgba(148,163,184,.22);
  --swmui-safe-red: #dc2626;
  --swmui-safe-amber: #d97706;
  --swmui-safe-green: #16a34a;
}

body.swcrm-mui-v310.swcrm-mui-login-screen,
body.swcrm-mui-v310.swcrm-fc-login-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(30, 144, 255, .16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.10), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #edf5ff 48%, #f8fafc 100%) !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen .swcrmfc-sidebar,
body.swcrm-mui-v310.swcrm-mui-login-screen .swcrmfc-mobile-toggle,
body.swcrm-mui-v310.swcrm-fc-login-screen .swcrmfc-sidebar,
body.swcrm-mui-v310.swcrm-fc-login-screen .swcrmfc-mobile-toggle {
  display: none !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen #page,
body.swcrm-mui-v310.swcrm-fc-login-screen #page {
  min-height: 100vh;
}
body.swcrm-mui-v310.swcrm-mui-login-screen #content,
body.swcrm-mui-v310.swcrm-fc-login-screen #content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen .ast-container,
body.swcrm-mui-v310.swcrm-fc-login-screen .ast-container,
body.swcrm-mui-v310.swcrm-mui-login-screen #primary,
body.swcrm-mui-v310.swcrm-fc-login-screen #primary,
body.swcrm-mui-v310.swcrm-mui-login-screen article,
body.swcrm-mui-v310.swcrm-fc-login-screen article,
body.swcrm-mui-v310.swcrm-mui-login-screen .entry-content,
body.swcrm-mui-v310.swcrm-fc-login-screen .entry-content {
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen .entry-content > *,
body.swcrm-mui-v310.swcrm-fc-login-screen .entry-content > * {
  max-width: none !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen .entry-title,
body.swcrm-mui-v310.swcrm-fc-login-screen .entry-title,
body.swcrm-mui-v310.swcrm-mui-login-screen h1,
body.swcrm-mui-v310.swcrm-fc-login-screen h1 {
  text-align: center !important;
  letter-spacing: -.03em !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  margin: 0 0 16px !important;
  color: #0f172a !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen .entry-content form,
body.swcrm-mui-v310.swcrm-fc-login-screen .entry-content form,
body.swcrm-mui-v310.swcrm-mui-login-screen form[action*="dang-nhap"],
body.swcrm-mui-v310.swcrm-fc-login-screen form[action*="dang-nhap"],
body.swcrm-mui-v310.swcrm-mui-login-screen form[action*="wp-login"],
body.swcrm-mui-v310.swcrm-fc-login-screen form[action*="wp-login"] {
  background: var(--swmui-login-card) !important;
  border: 1px solid var(--swmui-login-border) !important;
  border-radius: 28px !important;
  padding: 28px !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.12) !important;
  backdrop-filter: blur(14px);
}
body.swcrm-mui-v310.swcrm-mui-login-screen .entry-content form::before,
body.swcrm-mui-v310.swcrm-fc-login-screen .entry-content form::before {
  content: "SWORLD CRM";
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 14px 32px rgba(37,99,235,.25);
}
body.swcrm-mui-v310.swcrm-mui-login-screen label,
body.swcrm-mui-v310.swcrm-fc-login-screen label {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #334155 !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen input[type="text"],
body.swcrm-mui-v310.swcrm-mui-login-screen input[type="email"],
body.swcrm-mui-v310.swcrm-mui-login-screen input[type="password"],
body.swcrm-mui-v310.swcrm-fc-login-screen input[type="text"],
body.swcrm-mui-v310.swcrm-fc-login-screen input[type="email"],
body.swcrm-mui-v310.swcrm-fc-login-screen input[type="password"] {
  height: 48px !important;
  border-radius: 16px !important;
  border: 1px solid #dbeafe !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  padding: 11px 14px !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen input[type="submit"],
body.swcrm-mui-v310.swcrm-mui-login-screen button[type="submit"],
body.swcrm-mui-v310.swcrm-fc-login-screen input[type="submit"],
body.swcrm-mui-v310.swcrm-fc-login-screen button[type="submit"] {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 16px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 16px 28px rgba(37,99,235,.23) !important;
}
body.swcrm-mui-v310.swcrm-mui-login-screen .message,
body.swcrm-mui-v310.swcrm-mui-login-screen .error,
body.swcrm-mui-v310.swcrm-mui-login-screen .swcrm-alert,
body.swcrm-mui-v310.swcrm-fc-login-screen .message,
body.swcrm-mui-v310.swcrm-fc-login-screen .error,
body.swcrm-mui-v310.swcrm-fc-login-screen .swcrm-alert {
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin: 0 0 14px !important;
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #9a3412 !important;
  font-size: 13px !important;
}

/* Utility / import / sync pages: make dangerous operations legible, not decorative. */
body.swcrm-mui-v310.swcrm-mui-utility-screen .entry-content,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-doanh-so .entry-content,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-dai-su .entry-content {
  max-width: 1120px !important;
}
body.swcrm-mui-v310.swcrm-mui-utility-screen .entry-content > form,
body.swcrm-mui-v310.swcrm-mui-utility-screen .entry-content > div,
body.swcrm-mui-v310.swcrm-mui-utility-screen .entry-content > section,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-doanh-so .entry-content > form,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-doanh-so .entry-content > div,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-dai-su .entry-content > form,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-dai-su .entry-content > div {
  border-radius: 24px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.06) !important;
  padding: 22px !important;
  margin-bottom: 18px !important;
}
body.swcrm-mui-v310.swcrm-mui-utility-screen h1,
body.swcrm-mui-v310.swcrm-mui-utility-screen h2,
body.swcrm-mui-v310.swcrm-mui-utility-screen h3,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-doanh-so h1,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-dai-su h1 {
  letter-spacing: -.03em !important;
}
body.swcrm-mui-v310.swcrm-mui-utility-screen .entry-content > form::before,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-doanh-so .entry-content > form::before,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-dai-su .entry-content > form::before {
  content: "Thao tác dữ liệu — kiểm tra kỹ trước khi chạy";
  display: block;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}
body.swcrm-mui-v310.swcrm-mui-utility-screen pre,
body.swcrm-mui-v310.swcrm-mui-utility-screen code,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-doanh-so pre,
body.swcrm-mui-v310.swcrm-mui-route-doi-soat-dai-su pre {
  border-radius: 18px !important;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  padding: 16px !important;
  overflow: auto !important;
  font-size: 12px !important;
}

/* Small hidden/detail workflow pages. */
body.swcrm-mui-v310[class*="swcrm-mui-route-cap-nhat-"] .entry-content > form,
body.swcrm-mui-v310[class*="swcrm-mui-route-tao-"] .entry-content > form,
body.swcrm-mui-v310[class*="swcrm-mui-route-sua-"] .entry-content > form {
  border-radius: 26px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: #fff !important;
  padding: 24px !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.06) !important;
}
body.swcrm-mui-v310[class*="swcrm-mui-route-cap-nhat-"] .entry-content form input,
body.swcrm-mui-v310[class*="swcrm-mui-route-cap-nhat-"] .entry-content form select,
body.swcrm-mui-v310[class*="swcrm-mui-route-cap-nhat-"] .entry-content form textarea,
body.swcrm-mui-v310[class*="swcrm-mui-route-tao-"] .entry-content form input,
body.swcrm-mui-v310[class*="swcrm-mui-route-tao-"] .entry-content form select,
body.swcrm-mui-v310[class*="swcrm-mui-route-tao-"] .entry-content form textarea,
body.swcrm-mui-v310[class*="swcrm-mui-route-sua-"] .entry-content form input,
body.swcrm-mui-v310[class*="swcrm-mui-route-sua-"] .entry-content form select,
body.swcrm-mui-v310[class*="swcrm-mui-route-sua-"] .entry-content form textarea {
  border-radius: 14px !important;
}

@media (max-width: 782px) {
  body.swcrm-mui-v310.swcrm-mui-login-screen #content,
  body.swcrm-mui-v310.swcrm-fc-login-screen #content { padding: 20px 14px !important; }
  body.swcrm-mui-v310.swcrm-mui-login-screen .entry-content form,
  body.swcrm-mui-v310.swcrm-fc-login-screen .entry-content form { padding: 22px !important; border-radius: 22px !important; }
}


/* v3.1.1 — Logged-out CRM gate polish.
 * The CRM home route (/) can show a "Bạn cần đăng nhập" fallback before users reach /dang-nhap-crm/.
 * Style that fallback as the same Workroom-quality login experience and hide app/topbar chrome for guests.
 */
body.swcrm-mui-v311.swcrm-mui-guest-gate,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) {
  min-height: 100vh !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(37,99,235,.14), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(14,165,233,.12), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 54%, #f8fafc 100%) !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .site-header,
body.swcrm-mui-v311.swcrm-mui-guest-gate .site-footer,
body.swcrm-mui-v311.swcrm-mui-guest-gate .swcrm-workroom-topbar,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .site-header,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .site-footer,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .swcrm-workroom-topbar {
  display: none !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate #page,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) #page {
  min-height: 100vh !important;
  background: transparent !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate #content,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) #content {
  min-height: 100vh !important;
  display: grid !important;
  place-items: center !important;
  padding: 32px 18px !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .ast-container,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .ast-container,
body.swcrm-mui-v311.swcrm-mui-guest-gate #primary,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) #primary,
body.swcrm-mui-v311.swcrm-mui-guest-gate article,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) article,
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-header,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-header,
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-title,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-title {
  display: none !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .swcrm-mui-guest-card,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .swcrm-mui-guest-card,
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content > div,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content > div {
  position: relative !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 36px 34px 32px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(219,234,254,.9) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 28px 90px rgba(15,23,42,.14) !important;
  text-align: center !important;
  overflow: hidden !important;
  backdrop-filter: blur(18px) !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .swcrm-mui-guest-card::before,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .swcrm-mui-guest-card::before,
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content > div::before,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content > div::before {
  content: "S" !important;
  display: grid !important;
  place-items: center !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 16px !important;
  border-radius: 22px !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9) !important;
  box-shadow: 0 18px 34px rgba(37,99,235,.24) !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content h2,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content h2 {
  color: #0f172a !important;
  font-size: clamp(25px, 4vw, 32px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.045em !important;
  margin: 0 0 12px !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content p,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content p {
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 0 24px !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content a,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 30px rgba(37,99,235,.25) !important;
}
body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content a:hover,
body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content a:hover {
  transform: translateY(-1px);
  background: #1d4ed8 !important;
}
@media (max-width: 640px) {
  body.swcrm-mui-v311.swcrm-mui-guest-gate #content,
  body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) #content { padding: 20px 14px !important; }
  body.swcrm-mui-v311.swcrm-mui-guest-gate .entry-content > div,
  body.swcrm-mui-v310:not(.logged-in):not(.swcrm-mui-login-screen) .entry-content > div { padding: 28px 22px !important; border-radius: 26px !important; }
}


/* =========================================================
   SWORLD CRM Modern UI Kit v3.1.2
   Dedicated login form hotfix
   Reason: /dang-nhap-crm/ carries login-screen classes and renders its own two-column
   .swcrm-login-page markup. Older generic guest/login selectors constrained the page
   to 460/520px and styled the inner form as a separate card. This restores the intended
   Workroom-style login screen while keeping all auth fields and form submission intact.
   ========================================================= */
body.swcrm-mui-v312.swcrm-mui-login-screen,
body.swcrm-mui-v312.swcrm-fc-login-screen {
  min-height: 100vh !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 12% 14%, rgba(37,99,235,.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(14,165,233,.12), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #edf6ff 52%, #f8fafc 100%) !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .site-header,
body.swcrm-mui-v312.swcrm-mui-login-screen .site-footer,
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-workroom-topbar,
body.swcrm-mui-v312.swcrm-fc-login-screen .site-header,
body.swcrm-mui-v312.swcrm-fc-login-screen .site-footer,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-workroom-topbar,
body.swcrm-mui-v312.swcrm-fc-hide-wp-chrome .site-header,
body.swcrm-mui-v312.swcrm-fc-hide-wp-chrome .site-footer {
  display: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen #page,
body.swcrm-mui-v312.swcrm-fc-login-screen #page {
  min-height: 100vh !important;
  background: transparent !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen #content,
body.swcrm-mui-v312.swcrm-fc-login-screen #content {
  min-height: 100vh !important;
  width: 100% !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .ast-container,
body.swcrm-mui-v312.swcrm-fc-login-screen .ast-container,
body.swcrm-mui-v312.swcrm-mui-login-screen #primary,
body.swcrm-mui-v312.swcrm-fc-login-screen #primary,
body.swcrm-mui-v312.swcrm-mui-login-screen main.site-main,
body.swcrm-mui-v312.swcrm-fc-login-screen main.site-main,
body.swcrm-mui-v312.swcrm-mui-login-screen article,
body.swcrm-mui-v312.swcrm-fc-login-screen article,
body.swcrm-mui-v312.swcrm-mui-login-screen .entry-content,
body.swcrm-mui-v312.swcrm-fc-login-screen .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .entry-header,
body.swcrm-mui-v312.swcrm-mui-login-screen .entry-title,
body.swcrm-mui-v312.swcrm-fc-login-screen .entry-header,
body.swcrm-mui-v312.swcrm-fc-login-screen .entry-title {
  display: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .entry-content > .swcrm-login-page,
body.swcrm-mui-v312.swcrm-fc-login-screen .entry-content > .swcrm-login-page {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 42px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  backdrop-filter: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .entry-content > .swcrm-login-page::before,
body.swcrm-mui-v312.swcrm-fc-login-screen .entry-content > .swcrm-login-page::before {
  content: none !important;
  display: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-shell,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-shell {
  width: min(1040px, calc(100vw - 40px)) !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .14) !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-brand,
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-form-wrap,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-brand,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-form-wrap {
  min-width: 0 !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-page form,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-page form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-page form::before,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-page form::before {
  content: none !important;
  display: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-field,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-field {
  margin-bottom: 16px !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-field label,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-field label {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  color: #334155 !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-page input[type="text"],
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-page input[type="password"],
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-page input[type="text"],
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-page input[type="password"] {
  width: 100% !important;
  height: 50px !important;
  border-radius: 16px !important;
  border: 1px solid #dbeafe !important;
  background: #f8fafc !important;
  padding: 0 15px !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-page input[type="text"]:focus,
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-page input[type="password"]:focus,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-page input[type="text"]:focus,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-page input[type="password"]:focus {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10) !important;
  outline: 0 !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-row,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-row {
  margin: 4px 0 18px !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-row label,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-row input[type="checkbox"],
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-submit,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-submit {
  width: 100% !important;
  min-height: 50px !important;
  border-radius: 16px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #fff !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 34px rgba(37,99,235,.24) !important;
}
body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-note,
body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-note {
  margin-top: 18px !important;
}
@media (max-width: 860px) {
  body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-shell,
  body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-shell {
    width: min(520px, calc(100vw - 28px)) !important;
    display: block !important;
    border-radius: 28px !important;
  }
  body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-brand,
  body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-brand {
    min-height: auto !important;
    padding: 28px !important;
  }
  body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-brand .swcrm-login-points,
  body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-brand .swcrm-login-points,
  body.swcrm-mui-v312.swcrm-mui-login-screen .swcrm-login-brand .swcrm-login-footer,
  body.swcrm-mui-v312.swcrm-fc-login-screen .swcrm-login-brand .swcrm-login-footer {
    display: none !important;
  }
}

/* -------------------------------------------------------------
   v3.2.0 — Dashboard period controls
   Read-only filters for selected month/year and 7-day chart window.
------------------------------------------------------------- */
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-insight-head-with-filter {
    align-items: flex-start !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-insight-period {
    margin: 10px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter {
    width: min(520px, 100%) !important;
    padding: 12px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(219, 234, 254, .96) !important;
    background: rgba(255,255,255,.78) !important;
    box-shadow: 0 12px 28px rgba(23,35,61,.045) !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter-row {
    display: grid !important;
    grid-template-columns: minmax(112px, 1fr) 94px minmax(150px, 1.2fr) auto !important;
    gap: 9px !important;
    align-items: end !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter label {
    display: grid !important;
    gap: 5px !important;
    margin: 0 !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter label span {
    color: #64748b !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter select,
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter input[type="date"] {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    border: 1px solid #dbeafe !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter button {
    height: 38px !important;
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 0 13px !important;
    background: #2f7cf6 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 18px rgba(47,124,246,.22) !important;
    white-space: nowrap !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-quick-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 9px !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-quick-row button {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: none !important;
    border: 1px solid #dbeafe !important;
    font-size: 11px !important;
}
body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-quick-row span {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}
@media (max-width: 1180px) {
    body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-insight-head-with-filter {
        display: grid !important;
    }
    body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter {
        width: 100% !important;
    }
}
@media (max-width: 760px) {
    body.swcrm-mui-v320.swcrm-mui-has-dashboard .swcrm-dashboard-filter-row {
        grid-template-columns: 1fr !important;
    }
}


/* -------------------------------------------------------------------------
 * v3.3.0 — Business CRM density/layout pass
 * Scope: frontend visual layer only. No data writes, no syncing, no role changes.
 * Purpose: make CRM pages usable at browser zoom 100% by using the full work area,
 * reducing oversized spacing, and applying a denser data-table layout.
 * ------------------------------------------------------------------------- */
body.swcrm-mui-v330 {
    --mui-radius-sm: 10px;
    --mui-radius-md: 14px;
    --mui-radius-lg: 18px;
    --mui-radius-xl: 22px;
    --mui-shadow-card: 0 10px 28px rgba(16,24,40,.045);
    --mui-shadow-panel: 0 14px 36px rgba(16,24,40,.055);
}

body.swcrm-mui-v330 .site-content .ast-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 18px !important;
}

body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) .entry-content > *,
body.swcrm-mui-v330 .entry-content > .swcrm-cp3-page,
body.swcrm-mui-v330 .entry-content > .swps,
body.swcrm-mui-v330 .entry-content > .swps-wrap,
body.swcrm-mui-v330 .entry-content > .swcrm-front-page,
body.swcrm-mui-v330 .entry-content > .swcrm-report-page,
body.swcrm-mui-v330 .entry-content > .swcrm-form-page,
body.swcrm-mui-v330 .entry-content > .swpayu-wrap,
body.swcrm-mui-v330 .entry-content > .swcrm-quick-intake {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Dashboard: still composed, but no longer looks like a narrow card floating in empty space. */
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board {
    width: 100% !important;
    max-width: 1480px !important;
    margin: 0 auto 16px !important;
    grid-template-columns: minmax(0, 1.62fr) minmax(300px, .72fr) !important;
    gap: 16px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-main {
    min-height: 300px !important;
    padding: 22px 24px 20px !important;
    border-radius: 24px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-side {
    padding: 20px !important;
    gap: 14px !important;
    border-radius: 24px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-head {
    margin-bottom: 16px !important;
    gap: 14px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-title {
    max-width: 520px !important;
    font-size: clamp(30px, 3.1vw, 44px) !important;
    line-height: 1 !important;
    letter-spacing: -1.4px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-filter {
    width: min(500px, 100%) !important;
    padding: 10px !important;
    border-radius: 18px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-filter-row {
    grid-template-columns: minmax(100px, 1fr) 86px minmax(132px, 1.1fr) auto !important;
    gap: 8px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-filter select,
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-filter input[type="date"],
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-filter button {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 11px !important;
    font-size: 11.5px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-subgrid {
    gap: 10px !important;
    margin-bottom: 14px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-mini {
    min-height: 86px !important;
    padding: 13px 14px !important;
    border-radius: 16px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-mini strong {
    font-size: 21px !important;
    margin-top: 7px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-chart-card {
    padding: 15px !important;
    border-radius: 18px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-chart-title {
    margin-bottom: 12px !important;
}
body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-insight-chart-title strong {
    font-size: 15px !important;
}

/* Generic data pages: denser title/filter/table structure. */
body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) h1,
body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) .swcrm-cp3-head h1,
body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) .swps-hero h1,
body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) .swpayu-title,
body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) .swcrm-dashboard-hero h1,
body.swcrm-mui-v330:not(.swcrm-mui-has-dashboard) .swcrm-unified-hero h1 {
    font-size: clamp(26px, 2.2vw, 36px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.6px !important;
    margin-bottom: 8px !important;
}

body.swcrm-mui-v330 .swcrm-cp3-page,
body.swcrm-mui-v330 .swps,
body.swcrm-mui-v330 .swps-wrap,
body.swcrm-mui-v330 .swpayu-wrap {
    margin-top: 14px !important;
    margin-bottom: 26px !important;
}

body.swcrm-mui-v330 .swcrm-cp3-head,
body.swcrm-mui-v330 .swps-hero,
body.swcrm-mui-v330 .swcrm-dashboard-hero,
body.swcrm-mui-v330 .swcrm-unified-hero,
body.swcrm-mui-v330 .swquick-hero,
body.swcrm-mui-v330 .swpayu-head {
    padding: 18px 22px !important;
    margin-bottom: 12px !important;
    border-radius: 20px !important;
    min-height: 0 !important;
    box-shadow: var(--mui-shadow-card) !important;
}
body.swcrm-mui-v330 .swcrm-cp3-head p,
body.swcrm-mui-v330 .swps-hero p,
body.swcrm-mui-v330 .swcrm-dashboard-hero p,
body.swcrm-mui-v330 .swcrm-unified-hero p,
body.swcrm-mui-v330 .swquick-hero p,
body.swcrm-mui-v330 .swpayu-head p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
}

body.swcrm-mui-v330 .swcrm-cp3-filter,
body.swcrm-mui-v330 .swps-filter,
body.swcrm-mui-v330 .swps-filters,
body.swcrm-mui-v330 .swk21-filters,
body.swcrm-mui-v330 .swpay-filters,
body.swcrm-mui-v330 .swfix-filters,
body.swcrm-mui-v330 .swcrm-filterbar {
    margin-bottom: 12px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    box-shadow: var(--mui-shadow-card) !important;
    gap: 10px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-filter-form {
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(145px, .75fr)) auto !important;
    gap: 10px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-filter label,
body.swcrm-mui-v330 label,
body.swcrm-mui-v330 legend {
    margin-bottom: 5px !important;
    font-size: 11.5px !important;
    line-height: 1.1 !important;
}
body.swcrm-mui-v330 input:not([type="checkbox"]):not([type="radio"]),
body.swcrm-mui-v330 select,
body.swcrm-mui-v330 textarea,
body.swcrm-mui-v330 .swcrm-cp3-filter input,
body.swcrm-mui-v330 .swcrm-cp3-filter select {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    padding: 0 11px !important;
    font-size: 12.5px !important;
}
body.swcrm-mui-v330 textarea,
body.swcrm-mui-v330 .swcrm-cp3-note-input {
    height: auto !important;
}
body.swcrm-mui-v330 button,
body.swcrm-mui-v330 .button,
body.swcrm-mui-v330 input[type="submit"],
body.swcrm-mui-v330 a.swcrm-btn,
body.swcrm-mui-v330 .swps-btn,
body.swcrm-mui-v330 .swk21-btn,
body.swcrm-mui-v330 .swpay-btn,
body.swcrm-mui-v330 .swfix-btn,
body.swcrm-mui-v330 .swcrm11m-row-btn,
body.swcrm-mui-v330 .swcrm-cp3-filter-actions button,
body.swcrm-mui-v330 .swcrm-cp3-filter-actions a {
    min-height: 38px !important;
    border-radius: 12px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
}

body.swcrm-mui-v330 .swcrm-cp3-table-card,
body.swcrm-mui-v330 .swps-card,
body.swcrm-mui-v330 .swcrm-table-card,
body.swcrm-mui-v330 .swcrm11m-panel,
body.swcrm-mui-v330 .swcrm-card,
body.swcrm-mui-v330 .swcrm-section {
    border-radius: 18px !important;
    box-shadow: var(--mui-shadow-card) !important;
}
body.swcrm-mui-v330 .swps-card,
body.swcrm-mui-v330 .swcrm11m-panel,
body.swcrm-mui-v330 .swcrm-card,
body.swcrm-mui-v330 .swcrm-section {
    padding: 16px !important;
}

body.swcrm-mui-v330 .swcrm-cp3-scroll-top,
body.swcrm-mui-v330 .swps-scroll,
body.swcrm-mui-v330 .swcrm11m-table-wrap,
body.swcrm-mui-v330 .swk21-scroll,
body.swcrm-mui-v330 .swpay-scroll,
body.swcrm-mui-v330 .swfix-scroll,
body.swcrm-mui-v330 .swcrm-table-scroll,
body.swcrm-mui-v330 .swcrm-ui-scroll-wrap {
    border-radius: 14px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-table thead th,
body.swcrm-mui-v330 .swcrm11m-table th,
body.swcrm-mui-v330 .swps-table th,
body.swcrm-mui-v330 .swk21-table th,
body.swcrm-mui-v330 .swpay-table th,
body.swcrm-mui-v330 .swfix-table th,
body.swcrm-mui-v330 .swcrm-table th {
    height: 40px !important;
    padding: 9px 11px !important;
    font-size: 11.5px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-table tbody td,
body.swcrm-mui-v330 .swcrm11m-table td,
body.swcrm-mui-v330 .swps-table td,
body.swcrm-mui-v330 .swk21-table td,
body.swcrm-mui-v330 .swpay-table td,
body.swcrm-mui-v330 .swfix-table td,
body.swcrm-mui-v330 .swcrm-table td {
    padding: 10px 11px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}
body.swcrm-mui-v330 .swcrm-cp3-table {
    min-width: 1360px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-table th:nth-child(1),
body.swcrm-mui-v330 .swcrm-cp3-table td:nth-child(1) { width: 185px !important; }
body.swcrm-mui-v330 .swcrm-cp3-table th:nth-child(2),
body.swcrm-mui-v330 .swcrm-cp3-table td:nth-child(2) { width: 112px !important; }
body.swcrm-mui-v330 .swcrm-cp3-table th:nth-child(3),
body.swcrm-mui-v330 .swcrm-cp3-table td:nth-child(3) { width: 160px !important; }
body.swcrm-mui-v330 .swcrm-cp3-table th:nth-child(6),
body.swcrm-mui-v330 .swcrm-cp3-table td:nth-child(6) { width: 230px !important; }
body.swcrm-mui-v330 .swcrm-cp3-table th:nth-child(11),
body.swcrm-mui-v330 .swcrm-cp3-table td:nth-child(11) { width: 92px !important; }
body.swcrm-mui-v330 .swcrm-cp3-name {
    font-size: 13.5px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-muted,
body.swcrm-mui-v330 .swcrm-cp3-note-meta,
body.swcrm-mui-v330 small,
body.swcrm-mui-v330 .description {
    font-size: 10.8px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-note-box {
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 11.5px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-note-input {
    min-height: 56px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 11.5px !important;
}
body.swcrm-mui-v330 .swcrm-cp3-row-btn,
body.swcrm-mui-v330 .swcrm11m-row-btn {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
}

/* Keep very wide reports/data tables from being boxed in at 100% zoom. */
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swps,
body.swcrm-mui-v330.swcrm-mui-route-kho-hoa-don .swps,
body.swcrm-mui-v330.swcrm-mui-route-khach-hang .swcrm-cp3-page,
body.swcrm-mui-v330.swcrm-mui-route-bao-cao .swcrm-report-page,
body.swcrm-mui-v330.swcrm-mui-route-xep-hang-sales .swcrm-sales-rank-page,
body.swcrm-mui-v330.swcrm-mui-route-xep-hang-dai-su .swcrm-sales-rank-page {
    width: 100% !important;
    max-width: none !important;
}

@media (min-width: 1540px) {
    body.swcrm-mui-v330 .site-content .ast-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 1260px) {
    body.swcrm-mui-v330 .swcrm-cp3-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.swcrm-mui-v330.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   SWORLD CRM Modern UI Kit v3.4.0 — Invoice workroom
   Inspired by modern Figma dashboard/table systems: moderate radius,
   4px-based spacing rhythm, calm borders, dense scan-friendly tables.
   UI-only. No input names/actions/data writes changed here.
========================================================= */
body.swcrm-mui-v330.swcrm-mui-route-hoa-don,
body.swcrm-mui-v330.swcrm-mui-route-cap-nhat-hoa-don,
body.swcrm-mui-v330.swcrm-mui-route-sua-hoa-don,
body.swcrm-mui-v330.swcrm-mui-route-tao-hoa-don{
  --sw-inv-bg:#f6f8fb;
  --sw-inv-surface:#ffffff;
  --sw-inv-border:#dfe7f0;
  --sw-inv-border-soft:#edf1f5;
  --sw-inv-text:#101828;
  --sw-inv-muted:#667085;
  --sw-inv-blue:#2563eb;
  --sw-inv-blue-soft:#eff6ff;
  background:var(--sw-inv-bg)!important;
}

/* Invoice list: remove nested vertical scrolling; keep horizontal table navigation. */
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-card{
  overflow:visible!important;
  border:1px solid var(--sw-inv-border)!important;
  border-radius:16px!important;
  box-shadow:0 8px 24px rgba(15,23,42,.045)!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-head{
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:14px!important;
  padding:16px 18px 10px!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-head h2{margin:0!important;font-size:16px!important;line-height:1.3!important;letter-spacing:-.015em!important;color:var(--sw-inv-text)!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-head p{margin:4px 0 0!important;color:var(--sw-inv-muted)!important;font-size:11.5px!important;line-height:1.45!important;font-weight:600!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-card>.swcrm-ux-scroll-hint{margin:0 18px 8px!important;justify-content:flex-start!important;font-size:11px!important;font-weight:650!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-card>.swcrm-ux-scroll-hint:before{width:20px!important;height:20px!important;background:#f2f6fb!important;color:#667085!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-card .swps-scroll{
  max-height:none!important;min-height:0!important;height:auto!important;overflow-x:auto!important;overflow-y:visible!important;border-radius:0 0 16px 16px!important;border-top:1px solid var(--sw-inv-border-soft)!important;
  scrollbar-width:thin!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2{
  min-width:1460px!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;table-layout:fixed!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 thead th{
  height:44px!important;padding:0 12px!important;background:#f8fafc!important;color:#475467!important;font-size:11px!important;font-weight:850!important;line-height:1.25!important;border-bottom:1px solid var(--sw-inv-border)!important;white-space:nowrap!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 tbody td{
  min-height:0!important;height:auto!important;padding:11px 12px!important;color:#344054!important;font-size:12px!important;line-height:1.38!important;border-bottom:1px solid #eef2f6!important;background:#fff!important;vertical-align:middle!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 tbody tr:nth-child(even) td{background:#fcfdff!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 tbody tr:hover td{background:#f7fbff!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(1),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(1){width:170px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(2),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(2){width:82px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(3),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(3),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(4),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(4){width:132px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(5),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(5){width:108px!important;white-space:nowrap!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(6),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(6){width:145px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(7),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(7){width:145px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(8),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(8),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(9),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(9),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(10),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(10){width:112px!important;text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(11),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(11){width:125px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(12),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(12){width:142px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(13),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(13){width:115px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(14),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(14){width:88px!important;white-space:nowrap!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 th:nth-child(15),body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:nth-child(15){width:72px!important;min-width:72px!important;text-align:center!important;white-space:nowrap!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-class-code{display:block!important;color:#101828!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-class-cell .swcrm-c-inline-badge{margin-top:5px!important;max-width:128px!important;font-size:10px!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-action-cell .swps-btn,
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 td:last-child .swps-btn{
  min-width:48px!important;height:32px!important;min-height:32px!important;padding:0 10px!important;border:1px solid #cfe0fb!important;border-radius:9px!important;background:#eff6ff!important;color:#1d4ed8!important;font-size:11px!important;font-weight:850!important;box-shadow:none!important;
}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-action-cell .swps-btn:hover{background:#dbeafe!important;border-color:#b9d3fb!important;}
body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2 .swps-pill{max-width:120px!important;padding:4px 7px!important;border-radius:999px!important;font-size:10px!important;line-height:1.25!important;white-space:normal!important;}

/* Edit/create invoice: make the actual .swcrm-v13-wrap receive the same system. */
body.swcrm-mui-v330.swcrm-mui-route-cap-nhat-hoa-don .swcrm-v13-wrap,
body.swcrm-mui-v330.swcrm-mui-route-sua-hoa-don .swcrm-v13-wrap,
body.swcrm-mui-v330.swcrm-mui-route-tao-hoa-don .swcrm-v13-wrap{max-width:1180px!important;margin:28px auto 64px!important;padding:0 22px!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) h1,
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) h2,
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) h3{letter-spacing:-.03em!important;}
body.swcrm-mui-v330.swcrm-mui-route-cap-nhat-hoa-don .swcrm-v13-card,
body.swcrm-mui-v330.swcrm-mui-route-sua-hoa-don .swcrm-v13-card,
body.swcrm-mui-v330.swcrm-mui-route-tao-hoa-don .swcrm-v13-card{display:block!important;background:#fff!important;border:1px solid var(--sw-inv-border)!important;border-radius:18px!important;padding:22px!important;box-shadow:0 10px 30px rgba(15,23,42,.055)!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-section{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:9px!important;margin:6px 0 0!important;padding-top:3px!important;color:#101828!important;font-size:13px!important;font-weight:900!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-section:after{content:""!important;display:block!important;flex:1!important;height:1px!important;background:#edf1f5!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-field label{font-size:12px!important;color:#344054!important;font-weight:800!important;margin-bottom:6px!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-field :is(input,select,textarea){min-height:42px!important;padding:9px 11px!important;border:1px solid #d7e1eb!important;border-radius:11px!important;background:#fff!important;color:#101828!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-field :is(input,select,textarea):focus{border-color:#84adff!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-back{border-radius:11px!important;box-shadow:none!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-btn{border-radius:11px!important;background:#2563eb!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-auto-status-box{margin:7px 0 0!important;padding:10px 11px!important;border-radius:11px!important;border:1px solid #bbf7d0!important;background:#f0fdf4!important;color:#166534!important;font-size:11.5px!important;font-weight:800!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-auto-status-box small{font-size:10.5px!important;line-height:1.4!important;}
body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-submit-row{position:sticky!important;bottom:12px!important;z-index:8!important;margin-top:6px!important;padding:10px!important;border:1px solid rgba(223,231,240,.95)!important;border-radius:14px!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(10px)!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important;}

@media(max-width:900px){
  body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-list-card .swps-scroll{overflow:visible!important;border-top:0!important;}
  body.swcrm-mui-v330.swcrm-mui-route-hoa-don .swcrm-invoice-table-v2{min-width:0!important;table-layout:auto!important;}
  body.swcrm-mui-v330 :is(.swcrm-v13-wrap,.swcrm-v13) .swcrm-v13-grid{grid-template-columns:1fr!important;}
}


/* SWORLD 3.4.1 — edit-invoice stability hotfix. Keep save action in normal flow on edit pages. */
body.swcrm-mui-v330.swcrm-mui-route-cap-nhat-hoa-don .swcrm-v13-submit-row,
body.swcrm-mui-v330.swcrm-mui-route-sua-hoa-don .swcrm-v13-submit-row{
  position:static!important;bottom:auto!important;z-index:auto!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;margin-top:16px!important;padding:16px 0 0!important;border:0!important;border-top:1px solid var(--sw-inv-border-soft)!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;
}
body.swcrm-mui-v330.swcrm-mui-route-cap-nhat-hoa-don .swcrm-v13-core-note,
body.swcrm-mui-v330.swcrm-mui-route-sua-hoa-don .swcrm-v13-core-note{
  grid-column:1/-1!important;margin:0!important;padding:10px 12px!important;border:1px solid var(--sw-inv-border-soft)!important;border-radius:11px!important;background:#f8fafc!important;color:#667085!important;font-size:11.5px!important;line-height:1.45!important;
}

/* ==========================================================================
 * SWORLD CRM Modern UI Kit 3.4.2 — Responsive Contract
 * --------------------------------------------------------------------------
 * Skin only: Frontend Core owns sidebar/main geometry.
 * ========================================================================== */
body.swcrm-mui-v342.swcrm-fc-active #page{
  margin-left:0!important;
  width:100%!important;
  max-width:none!important;
}
body.swcrm-mui-v342.swcrm-fc-active #content,
body.swcrm-mui-v342.swcrm-fc-active .site-content{
  padding:0!important;
}
body.swcrm-mui-v342 .swcrmfc-sidebar{
  left:var(--swcrmfc-sidebar-inset)!important;
  width:var(--swcrmfc-sidebar-width)!important;
}
body.swcrm-mui-v342 .swcrm11m-page,
body.swcrm-mui-v342 .swcrm-dashboard-insight-board,
body.swcrm-mui-v342 .swcrm-cp3-page,
body.swcrm-mui-v342 .swps,
body.swcrm-mui-v342 .swps-wrap,
body.swcrm-mui-v342 .swcrm-front-page,
body.swcrm-mui-v342 .swcrm-report-page,
body.swcrm-mui-v342 .swpayu-wrap,
body.swcrm-mui-v342 .swcrm-quick-intake{
  max-width:none!important;
}
body.swcrm-mui-v342.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board,
body.swcrm-mui-v342.swcrm-mui-has-dashboard .swcrm11m-page{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.swcrm-mui-v342 .swcrm-workroom-topbar{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0 0 16px!important;
  gap:12px!important;
}
body.swcrm-mui-v342 .swcrm-workroom-search{
  width:min(420px,42%)!important;
  max-width:100%!important;
  min-width:220px!important;
  flex:1 1 320px!important;
}
body.swcrm-mui-v342 .swcrm-workroom-actions{
  flex:0 0 auto!important;
  min-width:0!important;
}
body.swcrm-mui-v342 :is(
  .swcrm-cp3-filter-form,.swps-filter,.swps-filters,.swk21-filters,
  .swpay-filters,.swfix-filters,.swcrm-filterbar,.swcrm-dashboard-filter-row
) > *{
  min-width:0!important;
}
body.swcrm-mui-v342 :is(
  .swcrm-cp3-scroll-top,.swps-scroll,.swcrm11m-table-wrap,.swk21-scroll,
  .swpay-scroll,.swfix-scroll,.swcrm-table-scroll,.swcrm-ui-scroll-wrap
){
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:visible;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
body.swcrm-mui-v342 :is(
  .swcrm-cp3-table-card,.swps-card,.swcrm-table-card,.swcrm11m-panel,
  .swcrm-card,.swcrm-section
){
  min-width:0!important;
  max-width:100%!important;
}
@container swcrm-canvas (max-width:1180px){
  body.swcrm-mui-v342 .swcrm-cp3-filter-form{
    grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(140px,1fr)) auto!important;
  }
  body.swcrm-mui-v342.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board{
    grid-template-columns:minmax(0,1.35fr) minmax(270px,.8fr)!important;
  }
  body.swcrm-mui-v342 :is(.swcrm11m-kpis,.swcrm11m-grid,.swps-stats){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@container swcrm-canvas (max-width:920px){
  body.swcrm-mui-v342 .swcrm-workroom-topbar{
    flex-wrap:wrap!important;
    align-items:stretch!important;
  }
  body.swcrm-mui-v342 .swcrm-workroom-search{
    order:1!important;
    width:100%!important;
    flex:1 1 100%!important;
  }
  body.swcrm-mui-v342 .swcrm-workroom-actions{
    order:2!important;
    margin-left:auto!important;
  }
  body.swcrm-mui-v342 .swcrm-cp3-filter-form,
  body.swcrm-mui-v342 :is(.swps-filter,.swps-filters,.swk21-filters,.swpay-filters,.swfix-filters,.swcrm-filterbar){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.swcrm-mui-v342.swcrm-mui-has-dashboard .swcrm-dashboard-insight-board{
    grid-template-columns:1fr!important;
  }
}
@container swcrm-canvas (max-width:640px){
  body.swcrm-mui-v342 .swcrm-cp3-filter-form,
  body.swcrm-mui-v342 :is(.swps-filter,.swps-filters,.swk21-filters,.swpay-filters,.swfix-filters,.swcrm-filterbar){
    grid-template-columns:1fr!important;
  }
  body.swcrm-mui-v342 :is(.swcrm11m-kpis,.swcrm11m-grid,.swps-stats){
    grid-template-columns:1fr!important;
  }
  body.swcrm-mui-v342 .swcrm-workroom-actions{
    width:100%!important;
    justify-content:flex-end!important;
  }
}
@media (max-width:960px){
  body.swcrm-mui-v342.swcrm-fc-active #page{margin-left:0!important;}
  body.swcrm-mui-v342 .swcrmfc-sidebar{
    left:0!important;
    width:min(292px,calc(100vw - 30px))!important;
  }
}
