/* app content heading */
.subheader:not(:empty) {
    margin-top: calc(0.5rem + 0.625rem);
    margin-bottom: calc(1.5rem + 0.625rem);
    padding: 0 20px 0 18px !important;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.subheader-icon {
    color: #2262c6;
    margin-right: 0.25rem;
}

.subheader-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #3b3f5c;
    text-shadow: #fff 0 1px;
    margin: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

    .subheader-title sup.badge {
        text-shadow: none;
        position: absolute;
        margin-top: 0.4rem;
        margin-left: 0.25rem;
        font-size: 40%;
        padding: 2px 5px;
        line-height: normal;
    }

    .subheader-title small {
        font-weight: 400;
        color: #838383;
        margin-bottom: 0;
        font-size: 0.875rem;
    }

/* font weights */
.fw-300 {
    font-weight: 300 !important;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-900 {
    font-weight: 900 !important;
}

.fw-n {
    font-weight: normal !important;
}

/* font sizes */
.fs-nano {
    font-size: 0.6875rem !important;
}

/* 10px */
.fs-xs {
    font-size: 0.75rem !important;
}

/* 12px */
.fs-sm {
    font-size: 0.78125rem !important;
}

/* 12.5px */
.fs-b {
    font-size: 0.8125rem !important;
}

/* 13px */
.fs-md {
    font-size: 0.875rem !important;
}

/* 14px */
.fs-lg {
    font-size: 0.9375rem !important;
}

/* 15px */
.fs-xl {
    font-size: 1rem !important;
}

/* 16px */
.fs-xxl {
    font-size: 1.75rem !important;
}

/* page header */
/* alphas */
.opacity-5 {
    opacity: 0.05;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-15 {
    opacity: 0.15;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-35 {
    opacity: 0.35;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-45 {
    opacity: 0.45;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-55 {
    opacity: 0.55;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-65 {
    opacity: 0.65;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-85 {
    opacity: 0.85;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-95 {
    opacity: 0.95;
}

.opacity-100 {
    opacity: 1;
}

/* =========================================================
   MODERN DASHBOARD & UI ENHANCEMENTS
========================================================= */

/* Smooth Card Elevations */
.card,
.statbox.widget {
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.card:hover,
.statbox.widget:hover {
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.09), 0 4px 6px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Refined Form Controls */
.form-control:not(.form-control-custom) {
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 8px 14px !important;
    font-size: 0.875rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.form-control:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15) !important;
}

/* Polished Buttons */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
}

/* Refined Data Tables */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 12px 16px !important;
}

.table tbody td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.85rem !important;
}

.table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Modern Soft Badges */
.badge {
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    letter-spacing: 0.2px !important;
}

.badge-primary {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

.badge-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}

.badge-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

.badge-danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
