body {
    background-color: #fff;
    font-family: "Mona Sans", sans-serif;
}

:root {
    --sidebar-width: 280px;
    --header-height: 70px;
    --sidebar-collapsed-width: 80px;
}


/* .form-control {
    border: 1px solid #d0d1d3 !important;
} */

.form-control {
    height: 40px;
}

.form-select {
    height: 40px;
}

hr {
    color: #b6b6b6;
}

/* FIXED SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1001;
    font-size: 15px;
    overflow-y: scroll;
}

.top-header {
    position: sticky;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: left 0.3s ease;
}
/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
}

/* ===== MAIN CONTENT ===== */
main {
    /* margin-top: var(--header-height); */
    min-height: 100vh;
}


.sidebar .nav-link {
    color: #4e4e4e !important;
    font-weight: 500;
    padding: 8px 14px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background: #f5f5f7fc !important;
    color: #0d6efd !important;
    font-weight: 500;
    border-left: 3px solid #0d6efd !important;
    border-radius: 6px;
}

.sidebar .nav-link.active {
    background: #f5f5f7fc !important;
    color: #0d6efd !important;
    font-weight: 500;
    /* border-left: 3px solid #0d6efd !important; */
    border-radius: 6px;
}

/* Submenu spacing */
.submenu .nav-link {
    font-size: 14px;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Active submenu */
.submenu .nav-link.active {
    background: #f5f5f7fc;
    color: #4f46e5;
    font-weight: 500;
}

/* Arrow animation */
.menu-arrow {
    transition: transform 0.3s ease;
}

/* Rotate when open */
.nav-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
}

/* Submenu wrapper line */
.submenu>ul {
    border-left: 1px solid #e5e7eb;
    margin-left: 18px;
    padding-left: 14px;
}


.border-bottom {
    border-bottom: 1px solid #d5d5d5ad !important;
}

.border-end {
    border-right: 1px solid #d5d5d5ad !important;
}

table.dataTable>thead>tr>th,
table.dataTable>thead>tr>td {
    border-bottom: 1px solid #00000017;
    background: #f7f8f9;
    color: #051321;
    font-weight: 600;
    font-size: 14px;

}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
    border-bottom: none
}

table.dataTable>tbody>tr>th,
table.dataTable>tbody>tr>td {
    font-size: 14px;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-start {
    padding-left: 12px;
    font-size: 14px;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-end {
    padding-right: 12px;
    font-size: 14px;
}


table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
    text-align: left;
}

table.dataTable>tbody>tr>th,
table.dataTable>tbody>tr>td {
    padding: 12px 10px;
}

.table {
    --bs-table-hover-bg: rgb(233 233 233 / 30%);
}

.dataTables_wrapper {
    overflow-x: hidden !important;
}

.btn-outline-secondary {
    border: 1px solid #d0d1d3 !important;
}

.sidebar.collapsed~.main-wrapper {
    margin-left: 72px;
}

/* When sidebar collapsed */
.sidebar.collapsed ~ .top-header {
    left: var(--sidebar-collapsed-width) !important;
}


.menu-text {
    margin-left: 0px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

/* SECTION TITLE */
.menu-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 12px 16px 4px;
}

.sidebar.collapsed .menu-title {
    display: none;
}

.sidebar-logo {
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
    width: 36px;
}

.sidebar .nav-link .sidebar.collapsed {
    width: fit-content;
}

/* TOGGLE */
.sidebar-toggle {
    border: none;
    background: none;
    cursor: pointer;
}

.sidebar-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed {
    width: 80px;
    overflow-x: hidden;
}

/* Logo visibility */
.logo-mini {
    display: none;
}

.sidebar.collapsed .logo-full {
    display: none;
}

.sidebar.collapsed .logo-mini {
    display: block;
}


/* HEADER */
.sidebar-header {
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7e9;
}

::-webkit-scrollbar {
    display: none;
}

.settings-slider,
.profile-slider {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: 0.35s ease;
    z-index: 1050;
    overflow-y: auto;
    font-size: 14px;
}

.settings-slider.show,
.profile-slider.show {
    right: 0;
}

.settings-overlay .profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1040;
}

.settings-overlay.show .profile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Header */
.profile-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
}

/* Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: center;
}

.grid-item i {
    font-size: 34px;
    color: #98a2b3;
    margin-bottom: 6px;
}

.grid-item span {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

/* Assistance */
.assist-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    text-decoration: none;
    color: #0d6efd;
    font-size: 14px;
}


/* ================= MOBILE SIDEBAR ================= */
@media (max-width: 991.98px) {

    .sidebar {
        left: -100%;
        transition: left 0.3s ease;
    }

    .sidebar.mobile-show {
        left: 0;
    }

    .top-header {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 1000;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

div.dt-container {
    position: relative;
    clear: both;
    overflow-x: scroll;
}

.timeline {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* EACH ROW */
.timeline-item {
    display: grid;
    grid-template-columns: 140px 30px 1fr;
    align-items: center;
    position: relative;
    margin-bottom: 28px; /* more space between items */
}

/* DATE LEFT */
.timeline-date {
    text-align: right;
    padding-right: 15px;
}

/* DOT CENTER */
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin: 0 auto; /* perfectly center in column */
}

/* VERTICAL LINE */
.timeline::before {
    content: '';
    position: absolute;
    left: 154px; /* MUST match center of dot column */
    top: 0;
    width: 2px;
    height: 100%;
    background: #dee2e6;
}

/* CONTENT RIGHT */
.timeline-content {
    padding-left: 15px;
}

/* BADGE BETTER ALIGN */
.timeline-date .badge {
    font-weight: 500;
    padding: 6px 10px;
}