body {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Headings */
h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
}

h2 {
    font-size: 1.65rem !important;
    font-weight: 600 !important;
}

h3 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

h4 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

h5 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

h6 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

/* Paragraphs */
p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Links */
a {
    font-size: 14px !important;
}

/* Small Text */
small,
.small {
    font-size: 12px !important;
}

/* Large Text */
.lead {
    font-size: 1.1rem !important;
}

/* Form Elements */
.form-control,
.form-select,
textarea.form-control {
    font-size: 14px !important;
    font-weight: 400 !important;
}

.form-label {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.form-text {
    font-size: 12px !important;
}

/* Buttons */
.btn {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.btn-sm {
    font-size: 12px !important;
}

.btn-lg {
    font-size: 16px !important;
}

/* Tables */
table {
    font-size: 14px !important;
}

table thead th {
    font-size: 13px !important;
    font-weight: 600 !important;
}

table tbody td {
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Cards */
.card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.card-subtitle {
    font-size: 0.9rem !important;
}

.card-text {
    font-size: 14px !important;
}

/* Badges */
.badge {
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Alerts */
.alert {
    font-size: 14px !important;
}

/* Breadcrumbs */
.breadcrumb-item {
    font-size: 13px !important;
}

/* Nav Items */
.nav-link {
    font-size: 14px !important;
}

/* Dropdown */
.dropdown-item {
    font-size: 14px !important;
}

/* Modal */
.modal-title {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
}

.modal-body {
    font-size: 14px !important;
}

/* Pagination */
.page-link {
    font-size: 13px !important;
}

/* List Group */
.list-group-item {
    font-size: 14px !important;
}

/* Input Group Text */
.input-group-text {
    font-size: 14px !important;
}

/* Tooltips and Popovers */
.tooltip {
    font-size: 12px !important;
}

.popover {
    font-size: 13px !important;
}

/* DataTables specific */
.dataTables_wrapper {
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 13px !important;
}

/* Select2 Dropdown */
.select2-container .select2-selection {
    font-size: 14px !important;
}

.select2-results {
    font-size: 14px !important;
}

/* Sidebar Menu */
.left-sidenav-menu li>a {
    font-size: 14px !important;
}

.left-sidenav-menu li ul li>a {
    font-size: 13px !important;
}

/* Topbar */
.navbar-custom .nav-link {
    font-size: 14px !important;
}

/* Page Title */
.page-title-box h4 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

/* Custom utility classes */
.text-xs {
    font-size: 11px !important;
}

.text-sm {
    font-size: 12px !important;
}

.text-base {
    font-size: 14px !important;
}

.text-lg {
    font-size: 16px !important;
}

.text-xl {
    font-size: 18px !important;
}

/* Icon sizes adjustments */
i {
    font-size: inherit !important;
}

.ri-lg {
    font-size: 1.3rem !important;
}

.ri-xl {
    font-size: 1.5rem !important;
}

.ri-2x {
    font-size: 2rem !important;
}

/* ===========================
   Action Dropdown Fix
   =========================== */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    padding: 4px 8px;
}

.action-toggle-btn:hover {
    color: #000;
}

.action-dropdown-menu {
    position: fixed;
    /* ← This is key for DataTables */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 99999;
    /* Always top */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

/* When shown */
.action-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Divider and items */
.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.action-dropdown-item:hover {
    background: #f6f6f6;
}

.action-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}