

:root {
    
    --font-sans: "Be Vietnam Pro", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Cascadia Mono", Consolas, "SF Mono", monospace;

    
    --text-xs: 11px;
    --text-sm: 12px;
    --text-md: 13px;   
    --text-base: 14px; 
    --text-lg: 16px;
    --text-xl: 20px;
    --text-2xl: 24px;

    
    --leading-tight: 1.35; 
    --leading-normal: 1.5; 

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-bold: 600;

    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    
    --color-bg: #ffffff;         
    --color-surface: #ffffff;    
    --color-surface-alt: #f5f5f7;
    --color-surface-hover: #f0f0f3;

    
    --color-hairline: #ebebef;
    --color-border: #dcdce1;
    --color-border-soft: #ececf0;
    --color-border-strong: #b9b9c0;

    --color-text: #1d1d1f;
    --color-text-muted: #6b6b73;
    --color-text-faint: #93939b;
    --color-text-invert: #ffffff;

    
    --color-primary: #0071e8;
    --color-primary-hover: #0064cf;
    --color-primary-active: #0058b8;
    --color-primary-soft: #e9f2fe;
    --color-primary-border: #cfe3fb;

    --color-focus: #007aff;

    
    --color-danger: #d70015;
    --color-danger-soft: #fdecec;
    --color-danger-border: #f6c9c9;
    --color-danger-text: #a3000f;
    --color-warning: #b25000;
    --color-warning-soft: #fdf1e3;
    --color-warning-border: #f0d5b0;
    --color-warning-text: #8a3e00;
    --color-success: #1e7a3c;
    --color-success-soft: #e4f6ea;
    --color-success-border: #bde3c9;
    --color-success-text: #145c2b;

    
    --color-primary-text: #0062d6;

    
    --tt-chua-khai-nen: #f0f0f3;
    --tt-chua-khai-chu: #55555d;

    --tt-dang-lam-nen: #eaf3ff;
    --tt-dang-lam-chu: #0062d6;

    --tt-da-khai-nen: #dfeafb;
    --tt-da-khai-chu: #124a94;

    --tt-da-nop-nen: #e3f7ea;
    --tt-da-nop-chu: #1e7a3c;

    --tt-qua-han-nen: #fdecec;
    --tt-qua-han-chu: #d70015;

    
    --tt-can-dieu-chinh-nen: #f3eafd;
    --tt-can-dieu-chinh-chu: #8944ab;

    --tt-mien-thue-nen: #eef7f0;
    --tt-mien-thue-chu: #46705a;

    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 999px;

    
    --color-overlay: rgba(20, 28, 42, 0.38);

    
    --shadow-sm: 0 0 0 0.5px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.13);
    --shadow-lg: 0 0 0 0.5px rgba(0, 0, 0, 0.10), 0 20px 56px rgba(0, 0, 0, 0.24);

    
    --cao-o-nhap: 30px;
    --cao-o-nhap-gon: 28px;

    
    --table-row-height: 34px;
    --table-header-height: 36px;
    --table-footer-height: 34px;
    --table-cell-padding: 6px 10px;

    
    --table-row-tro-bg: #e5f0fd;
    --table-row-tro-accent: var(--color-focus);
    
    --table-checkbox-width: 34px;

    
    --shell-sidebar-width: 240px;
    --shell-sidebar-width-collapsed: 56px;
    --shell-topbar-height: 48px;

    
    --shell-ht-width: 132px;

    
    --sidebar-bg: #f1f1f4;
    --sidebar-bg-hover: #e6e6ea;
    --sidebar-bg-active: var(--color-primary-soft);
    --sidebar-text: #55555d;
    --sidebar-text-active: var(--color-primary-text);
    --sidebar-border: var(--color-border);

    
    
    --icon-sm: 16px;   
    --icon-md: 18px;   
    --icon-lg: 20px;   
    
    --icon-stroke: 2;

    
    --z-sticky: 10;
    --z-dropdown: 100;
    --z-overlay: 200;
    --z-dialog: 300;
    --z-toast: 400;

    
    --ease: cubic-bezier(0.2, 0, 0.2, 1);
    --duration-fast: 120ms;
    --duration-normal: 200ms;

    
    color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
    }
}



@media (prefers-color-scheme: dark) {
    :root:not([data-che-do="sang"]) {
        color-scheme: dark;

        --color-bg: #1e1e20;
        --color-surface: #1e1e20;
        --color-surface-alt: #26262a;
        --color-surface-hover: #2c2c31;

        
        --color-hairline: #48484d;
        --color-border: #5a5a61;
        --color-border-soft: #3a3a40;
        --color-border-strong: #76767e;

        --color-text: #f5f5f7;
        --color-text-muted: #a1a1a8;
        --color-text-faint: #7c7c84;
        --color-text-invert: #1d1d1f;

        
        --color-primary: #0a84ff;
        --color-primary-hover: #3d9dff;
        --color-primary-active: #66b2ff;
        --color-primary-soft: #1c3a5c;
        --color-primary-border: #2c5182;

        --color-focus: #0a84ff;

        --color-danger: #ff7b73;
        --color-danger-soft: #3a1a1c;
        --color-danger-border: #6b3033;
        --color-danger-text: #ff9b95;
        --color-warning: #f0a04a;
        --color-warning-soft: #35260f;
        --color-warning-border: #5e4519;
        --color-warning-text: #f5bc7c;
        --color-success: #55d47f;
        --color-success-soft: #13321f;
        --color-success-border: #235c3b;
        --color-success-text: #7fe0a0;
        --color-primary-text: #55a8ff;

        --tt-chua-khai-nen: #2f2f34;
        --tt-chua-khai-chu: #b9b9c1;

        --tt-dang-lam-nen: #17304d;
        --tt-dang-lam-chu: #6ab2ff;

        --tt-da-khai-nen: #1b3b5f;
        --tt-da-khai-chu: #8cc4ff;

        --tt-da-nop-nen: #13321f;
        --tt-da-nop-chu: #55d47f;

        --tt-qua-han-nen: #3a1a1c;
        --tt-qua-han-chu: #ff7b73;

        --tt-can-dieu-chinh-nen: #2d1f42;
        --tt-can-dieu-chinh-chu: #c799f0;

        --tt-mien-thue-nen: #1f2b24;
        --tt-mien-thue-chu: #8fb89d;

        --color-overlay: rgba(0, 0, 0, 0.62);
        --shadow-sm: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
        --shadow-md: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 8px 24px rgba(0, 0, 0, 0.55);
        --shadow-lg: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 20px 56px rgba(0, 0, 0, 0.65);

        --table-row-tro-bg: #1f3a56;

        
        --sidebar-bg: #161618;
        --sidebar-bg-hover: #202024;
        --sidebar-bg-active: var(--color-primary-soft);
        --sidebar-text: #a1a1a8;
        --sidebar-text-active: #ffffff;
        --sidebar-border: var(--color-border);
    }
}


:root[data-che-do="toi"] {
    color-scheme: dark;

    --color-bg: #1e1e20;
    --color-surface: #1e1e20;
    --color-surface-alt: #26262a;
    --color-surface-hover: #2c2c31;

    
    --color-hairline: #48484d;
    --color-border: #5a5a61;
    --color-border-soft: #3a3a40;
    --color-border-strong: #76767e;

    --color-text: #f5f5f7;
    --color-text-muted: #a1a1a8;
    --color-text-faint: #7c7c84;
    --color-text-invert: #1d1d1f;

    --color-primary: #0a84ff;
    --color-primary-hover: #3d9dff;
    --color-primary-active: #66b2ff;
    --color-primary-soft: #1c3a5c;
    --color-primary-border: #2c5182;

    --color-focus: #0a84ff;

    --color-danger: #ff7b73;
    --color-danger-soft: #3a1a1c;
    --color-danger-border: #6b3033;
    --color-danger-text: #ff9b95;
    --color-warning: #f0a04a;
    --color-warning-soft: #35260f;
    --color-warning-border: #5e4519;
    --color-warning-text: #f5bc7c;
    --color-success: #55d47f;
    --color-success-soft: #13321f;
    --color-success-border: #235c3b;
    --color-success-text: #7fe0a0;
    --color-primary-text: #55a8ff;

    --tt-chua-khai-nen: #2f2f34;
    --tt-chua-khai-chu: #b9b9c1;

    --tt-dang-lam-nen: #17304d;
    --tt-dang-lam-chu: #6ab2ff;

    --tt-da-khai-nen: #1b3b5f;
    --tt-da-khai-chu: #8cc4ff;

    --tt-da-nop-nen: #13321f;
    --tt-da-nop-chu: #55d47f;

    --tt-qua-han-nen: #3a1a1c;
    --tt-qua-han-chu: #ff7b73;

    --tt-can-dieu-chinh-nen: #2d1f42;
    --tt-can-dieu-chinh-chu: #c799f0;

    --tt-mien-thue-nen: #1f2b24;
    --tt-mien-thue-chu: #8fb89d;

    --color-overlay: rgba(0, 0, 0, 0.62);
    --shadow-sm: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    --shadow-md: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 20px 56px rgba(0, 0, 0, 0.65);

    --table-row-tro-bg: #1f3a56;

    
    --sidebar-bg: #161618;
    --sidebar-bg-hover: #202024;
    --sidebar-bg-active: var(--color-primary-soft);
    --sidebar-text: #a1a1a8;
    --sidebar-text-active: #ffffff;
    --sidebar-border: var(--color-border);
}
