/* Global Font Settings cho toàn dự án EPM Gateway */
:root {
    --default-font-size: 14px;
    --small-font-size: 12px;
    --large-font-size: 16px;
    --header-font-size: 18px;
}

/* Thiết lập font size mặc định cho toàn bộ dự án */
html {
    font-size: var(--default-font-size);
}

body {
    font-size: var(--default-font-size);
    line-height: 1.5;
}

/* Đảm bảo tất cả các element sử dụng font size mặc định */
*, *::before, *::after {
    font-size: inherit;
}

/* Các element cụ thể */
p, div, span, a, label, button, input, textarea, select, table, td, th {
    font-size: var(--default-font-size);
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-size: var(--header-font-size);
}

h1 { font-size: calc(var(--header-font-size) + 6px); }
h2 { font-size: calc(var(--header-font-size) + 4px); }
h3 { font-size: calc(var(--header-font-size) + 2px); }
h4 { font-size: var(--header-font-size); }
h5 { font-size: calc(var(--header-font-size) - 2px); }
h6 { font-size: calc(var(--header-font-size) - 4px); }

/* Form elements */
.form-control, .form-select, .form-check-label {
    font-size: var(--default-font-size);
}

/* Buttons - Font Size Rules cho toàn dự án */
.btn, 
.dx-button, 
button {
    font-size: var(--default-font-size) !important;
    font-weight: normal !important; /* Đảm bảo font-weight cũng được áp dụng */
}

.btn-sm,
.dx-button.btn-sm {
    font-size: var(--small-font-size) !important;
}

.btn-lg,
.dx-button.btn-lg {
    font-size: var(--large-font-size) !important;
}

/* Override DevExpress button font size */
.dx-button-content,
.dx-button-text {
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Button text và icon font size */
.btn .material-symbols-outlined,
.dx-button .material-symbols-outlined {
    font-size: 24px !important; /* Icons luôn 24px như đã thiết lập */
    font-weight: normal !important;
}

/* Toolbar buttons */
.btn-toolbar .btn,
.btn-toolbar .dx-button {
    font-size: var(--default-font-size) !important;
}

/* Button groups */
.btn-group .btn,
.btn-group .dx-button {
    font-size: var(--default-font-size) !important;
}

/* Tables */
.table {
    font-size: var(--default-font-size);
}

.table th,
.table td {
    font-size: var(--default-font-size);
}

/* Cards */
.card-title {
    font-size: var(--large-font-size);
}

.card-text {
    font-size: var(--default-font-size);
}

/* Navigation */
.nav-link {
    font-size: var(--default-font-size);
}

/* Breadcrumb */
.breadcrumb-item {
    font-size: var(--default-font-size);
}

/* Modal */
.modal-title {
    font-size: var(--large-font-size);
}

.modal-body {
    font-size: var(--default-font-size);
}

/* Alerts */
.alert {
    font-size: var(--default-font-size);
}

/* DevExpress Grid specific */
.dxbs-grid,
.dxbs-grid-row,
.dxbs-grid-cell,
.dxbs-grid-header {
    font-size: var(--default-font-size) !important;
}

/* AdminLTE specific */
.content-wrapper,
.card-body,
.card-header {
    font-size: var(--default-font-size);
}

/* Small text utility */
.small-text {
    font-size: var(--small-font-size);
}

/* Large text utility */
.large-text {
    font-size: var(--large-font-size);
}

/* Override Bootstrap default font sizes nếu cần */
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-size: inherit;
}

/* Đảm bảo input và textarea không bị override */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-size: var(--default-font-size) !important;
}

/* Badge và tag */
.badge {
    font-size: calc(var(--default-font-size) - 2px);
}

/* Tooltip */
.tooltip-inner {
    font-size: var(--small-font-size);
}

/* Pagination */
.page-link {
    font-size: var(--default-font-size);
}
