@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --primary-color: #1a2744;
    --secondary-color: #c5a572;
    --site-font-family: "Nunito", sans-serif;
    --bs-font-sans-serif: var(--site-font-family);
    --bs-body-font-family: var(--site-font-family);
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 26, 39, 68;
    --bs-link-color: var(--primary-color);
    --bs-link-color-rgb: 26, 39, 68;
    --bs-link-hover-color: color-mix(in srgb, var(--primary-color) 82%, #000);
    --bs-link-hover-color-rgb: 18, 28, 48;
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-color: color-mix(in srgb, var(--primary-color) 82%, #000);
    --bs-pagination-focus-color: color-mix(in srgb, var(--primary-color) 82%, #000);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --scrollbar-size: 6px;
}

/* Content links follow theme (override Bootstrap default blue) */
a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand):not(.egr-profile-link):not(.egr-topbar-user):not(.mobile-menu-link):not(.mobile-back):not(.mobile-job-card):not(.mobile-home-link) {
    color: var(--primary-color);
}

a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand):not(.egr-profile-link):not(.egr-topbar-user):not(.mobile-menu-link):not(.mobile-back):not(.mobile-job-card):not(.mobile-home-link):hover,
a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand):not(.egr-profile-link):not(.egr-topbar-user):not(.mobile-menu-link):not(.mobile-back):not(.mobile-job-card):not(.mobile-home-link):focus {
    color: color-mix(in srgb, var(--primary-color) 82%, #000);
}

/* Global scrollbar styling (WebKit/Blink).
   Do not set scrollbar-width/scrollbar-color here — they force OS scrollbars
   with rounded thumbs and arrows in Chrome/Edge. */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    -webkit-appearance: none;
    appearance: none;
    width: var(--scrollbar-size) !important;
    height: var(--scrollbar-size) !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
    border-radius: 0 !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background-color: var(--primary-color) !important;
    border: 0 !important;
    border-radius: 0 !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color) !important;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:start:decrement,
*::-webkit-scrollbar-button:end:increment,
*::-webkit-scrollbar-button:vertical:start:increment,
*::-webkit-scrollbar-button:vertical:end:decrement,
*::-webkit-scrollbar-button:horizontal:start:increment,
*::-webkit-scrollbar-button:horizontal:end:decrement,
*::-webkit-scrollbar-button:single-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Firefox only */
@supports (-moz-appearance: none) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
    }
}

html,
body,
button,
input,
select,
textarea,
.btn,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6,
.sidebar,
.navbar,
.card,
.table,
.form-control,
.form-select,
.dropdown-menu,
.list-group-item,
.pagination,
.alert,
.modal,
.nav,
.nav-link,
.badge,
label,
p,
span,
a,
li,
td,
th {
    font-family: var(--site-font-family) !important;
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 960px !important;
    }
}

.header {
    margin-bottom: 1rem !important;
}

.header-user-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    color: #fff !important;
    font-weight: 600;
}

.header-user-name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.header-user-toggle.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.header-user-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 0.15rem;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: translateY(-1.5px) rotate(45deg);
    flex-shrink: 0;
}

.header-user-menu {
    min-width: 13rem;
    padding: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, #fff);
    border-radius: 0.6rem;
}

.header-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

.header-user-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

.header-user-menu .dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.header-user-menu .dropdown-item:hover,
.header-user-menu .dropdown-item:focus {
    background-color: #e9e9e9 !important;
    color: var(--primary-color) !important;
}

.header-user-menu .dropdown-item:hover i,
.header-user-menu .dropdown-item:focus i {
    color: var(--primary-color) !important;
}

.header-user-menu .dropdown-item.active,
.header-user-menu .dropdown-item.active:hover,
.header-user-menu .dropdown-item.active:focus {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

.header-user-menu .dropdown-item.active i,
.header-user-menu .dropdown-item.active:hover i,
.header-user-menu .dropdown-item.active:focus i {
    color: var(--secondary-color) !important;
}

.header-user-menu .dropdown-divider {
    margin: 0 0.45rem 0.35rem;
    border-top-color: color-mix(in srgb, var(--primary-color) 15%, #fff);
}

.border-bottom {
    border-bottom: 1px solid var(--primary-color) !important;
}

.content {
    margin-top: 1rem !important;
}

.wrapper:before {
    height: 11.5rem !important;
}

/* reset password */
.mb-2-8 {
    margin-bottom: 2.8rem;
}

.title-space {
    padding-bottom: 0.6rem;
}

.btn-accoring-to-text {
    width: revert;
}

/* reset password */

.btn-primary,
.list-group-item.active,
.bg-primary-dark,
.splash .splash-icon {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary,
.list-group-item.active,
.bg-primary-dark {
    border: var(--primary-color) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

a.sidebar-link .fab,
a.sidebar-link .fal,
a.sidebar-link .far,
a.sidebar-link .fas,
a.sidebar-link svg,
.text-primary {
    color: var(--primary-color) !important;
}

.sidebar-item.active>.sidebar-link .fab,
.sidebar-item.active>.sidebar-link .fal,
.sidebar-item.active>.sidebar-link .far,
.sidebar-item.active>.sidebar-link .fas,
.sidebar-item.active>.sidebar-link svg,
.sidebar-item.active>.sidebar-link {
    color: var(--secondary-color) !important;
}

.sidebar-item.active>.sidebar-link {
    background-color: var(--primary-color) !important;
}


.sidebar-link:hover {
    color: var(--primary-color) !important;
    background-color: #e9e9e9 !important;
}

.sidebar-brand,
.sidebar-brand:hover {
    background-color: var(--primary-color) !important;
}

/* .header-title {
    color: #ed1c24 !important;
} */

.dispatch-note {
    display: block;
    /* Ensures the badge behaves like a block element */
    max-width: 100%;
    /* Prevents overflow */
    white-space: normal;
    /* Allows wrapping */
    word-wrap: break-word;
    /* Breaks long words */
    overflow-wrap: break-word;
    /* Ensures text wraps properly */
    text-align: left;
    /* Align text properly */
    padding: 8px;
    /* Adds spacing inside the badge */
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]),
textarea,
select,
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):hover,
textarea:hover,
select:hover,
.form-control:hover,
.form-select:hover,
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover,
.dt-length-toggle:hover {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

button:focus {
    outline: none !important;
}

.sidebar-user {
    padding: 1rem 0rem 0rem !important;
}

/* Keep page content below sidebar stacking context */
.main {
    position: relative;
    z-index: 1;
}

/* Keep sidebar fixed while page content scrolls */
.sidebar .sidebar-content {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    width: 250px;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important;
    background: #fff !important;
    z-index: 1050;
}

.sidebar .sidebar-user {
    flex-shrink: 0;
}

.sidebar .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem;
}

.sidebar .sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 15%, #e9ecef);
    background: #fff;
}

.sidebar .sidebar-logout {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.sidebar .sidebar-logout:hover {
    background-color: color-mix(in srgb, var(--primary-color) 10%, #fff) !important;
    color: var(--primary-color) !important;
}

.sidebar .sidebar-logout .fas {
    color: var(--primary-color) !important;
}

.sidebar.toggled .sidebar-content {
    left: -250px;
}

.sidebar-backdrop {
    display: none;
}

/* Mobile: overlay sidebar (no page shift).
   .sidebar must be the stacking context above .main — z-index on
   .sidebar-content alone stays trapped under the table. */
@media (max-width: 991.98px) {
    .sidebar {
        position: relative !important;
        z-index: 1060 !important;
        margin-left: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        width: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .sidebar.toggled {
        margin-left: 0 !important;
    }

    .sidebar .sidebar-content {
        left: -260px;
        z-index: 2 !important;
        background: #fff !important;
        box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.25);
        transition: left 0.3s ease-in-out;
    }

    .sidebar.toggled .sidebar-content {
        left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: none;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main,
    body.sidebar-open .main {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-left: 0 !important;
    }
}

.cardscroll {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    max-height: 20rem;
}

.text-bg-warning,
.bg-warning {
    background-color: var(--secondary-color) !important;
}

.sidebar-user img {
    height: 5rem !important;
    width: auto !important;
}

.logo {
    height: 4rem !important;
}

.center-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-tab {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-item-tab {
    padding: 0.5rem !important;
}

.nav-tab .active {
    background-color: #ececec;
}

.sidebar-link,
a.sidebar-link {
    border-radius: .6rem !important;
}

.sidebar-item {
    margin-bottom: 0.3rem !important;
}

/* Main menus aligned with each other */
.sidebar-nav > .sidebar-item > .sidebar-link {
    display: flex !important;
    align-items: center;
    margin: 0 0.5rem !important;
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
}

.sidebar-nav > .sidebar-item > .sidebar-link > i {
    width: 1.25rem;
    margin-right: 0.75rem !important;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav > .sidebar-item > .sidebar-link > span {
    line-height: 1.2;
}

/* Collapse arrow stays absolute so it doesn't shift menu text */
.sidebar [data-bs-toggle=collapse] {
    position: relative;
}

.sidebar [data-bs-toggle=collapse]:before {
    top: 50% !important;
    right: 0.85rem !important;
    margin-top: -3px;
}

/* Sub menus aligned with each other, indented under mains */
.sidebar-dropdown {
    padding-left: 0 !important;
}

.sidebar-dropdown .sidebar-link,
.sidebar-dropdown a.sidebar-link {
    display: flex !important;
    align-items: center;
    margin: 0 0.5rem !important;
    padding: 0.4rem 0.75rem 0.4rem 2.75rem !important;
}

.sidebar-dropdown .sidebar-link > i,
.sidebar-dropdown a.sidebar-link > i {
    width: 0.9rem;
    margin-right: 0.5rem !important;
    text-align: center;
    flex-shrink: 0;
}

/* Logout matches main menu alignment */
.sidebar-footer .sidebar-link {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0.5rem 0.75rem !important;
}

.sidebar-footer .sidebar-link > i {
    width: 1.25rem;
    margin-right: 0.75rem !important;
    text-align: center;
    flex-shrink: 0;
}

.min-height {
    min-height: 85vh !important;
}

.big-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #fff;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.avatar-sm {
    height: 32px !important;
    width: 32px !important;
    min-width: 32px;
    min-height: 32px;
}

.avatar-md {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
}

.avatar-lg {
    height: 64px !important;
    width: 64px !important;
    min-width: 64px;
    min-height: 64px;
}

.avatar i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm i {
    font-size: 12px;
}

.avatar-md i {
    font-size: 16px;
}

.avatar-lg i {
    font-size: 20px;
}

.avatar>* {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.quick-action-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar.d-flex {
    display: flex !important;
}

.stats-card .bg-primary,
.stats-card .bg-info,
.stats-card .bg-warning,
.stats-card .bg-success,
.stats-card .bg-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.stats-card .bg-primary i,
.stats-card .bg-info i,
.stats-card .bg-warning i,
.stats-card .bg-success i,
.stats-card .bg-danger i {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* DataTables zebra rows */
.table.datatables-users tbody tr:nth-child(odd),
.table.datatables-users tbody tr.odd,
.dataTables_wrapper table.dataTable tbody tr:nth-child(odd),
.dataTables_wrapper table.dataTable tbody tr.odd {
    background-color: #fff;
}

.table.datatables-users tbody tr:nth-child(even),
.table.datatables-users tbody tr.even,
.dataTables_wrapper table.dataTable tbody tr:nth-child(even),
.dataTables_wrapper table.dataTable tbody tr.even {
    background-color: #f3f5f7;
}

.table.datatables-users tbody tr:hover,
.dataTables_wrapper table.dataTable tbody tr:hover {
    background-color: color-mix(in srgb, var(--primary-color) 8%, #fff);
}

/* Horizontal scroll: sync header with body, hide header scrollbar only */
.dataTables_wrapper .dataTables_scrollHead {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dataTables_wrapper .dataTables_scrollHead::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dataTables_wrapper .dataTables_scrollHeadInner {
    overflow: visible !important;
}

.dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* DataTables centers a table that is narrower than the scroll body.
   The header stays left, so the rows were shifted out from under the headings. */
.dataTables_wrapper .dataTables_scrollBody table.dataTable,
.dataTables_wrapper .dataTables_scrollHead table.dataTable {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.dataTables_wrapper table.dataTable thead th:first-child,
.dataTables_wrapper table.dataTable tbody td:first-child,
.table.datatables-users thead th:first-child,
.table.datatables-users tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 1;
    background-clip: padding-box;
    box-shadow: none;
}

.dataTables_wrapper.dt-scrolled-x table.dataTable thead th:first-child,
.dataTables_wrapper.dt-scrolled-x table.dataTable tbody td:first-child {
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.15);
}

.dataTables_wrapper .dataTables_scrollHead table.dataTable thead th:first-child,
.dataTables_wrapper table.dataTable thead th:first-child,
.table.datatables-users thead th:first-child {
    z-index: 2 !important;
    background-color: #fff !important;
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(odd) td:first-child,
.dataTables_wrapper table.dataTable tbody tr.odd td:first-child,
.table.datatables-users tbody tr:nth-child(odd) td:first-child,
.table.datatables-users tbody tr.odd td:first-child {
    background-color: #fff !important;
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(even) td:first-child,
.dataTables_wrapper table.dataTable tbody tr.even td:first-child,
.table.datatables-users tbody tr:nth-child(even) td:first-child,
.table.datatables-users tbody tr.even td:first-child {
    background-color: #f3f5f7 !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover td:first-child,
.table.datatables-users tbody tr:hover td:first-child {
    background-color: color-mix(in srgb, var(--primary-color) 8%, #fff) !important;
}

/* DataTables controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-weight: 600;
    color: #495057;
}

.dataTables_wrapper .dataTables_length select.dt-length-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dt-length-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.dt-length-toggle {
    min-width: 4.5rem;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23174b79' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 10px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dt-length-toggle:hover,
.dt-length-dropdown.is-open .dt-length-toggle {
    border-color: var(--primary-color);
}

.dt-length-toggle:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

.dt-length-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 1050;
    min-width: 100%;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.dt-length-dropdown.is-open .dt-length-menu {
    display: block;
}

.dt-length-option {
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.15rem;
    border-radius: 0.3rem;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dt-length-option:last-child {
    margin-bottom: 0;
}

.dt-length-option:hover,
.dt-length-option.is-selected {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dt-search-input {
    box-sizing: border-box !important;
    min-width: 14rem;
    height: auto !important;
    margin-left: 0 !important;
    padding: 0.45rem 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.5rem !important;
    background-color: #fff;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder,
.dataTables_wrapper .dt-search-input::placeholder {
    color: #adb5bd;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input:hover {
    border-color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dt-search-input:focus {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

@media (max-width: 767.98px) {
    div.dataTables_wrapper div.dataTables_length {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
    }

    div.dataTables_wrapper div.dataTables_length label {
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
        margin-top: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block !important;
        width: 100% !important;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dt-search-input {
        display: block !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .dataTables_wrapper .dataTables_info {
        font-size: 0.85rem !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button,
    .dataTables_wrapper .dataTables_paginate span.ellipsis {
        width: 1.75rem !important;
        min-width: 1.75rem !important;
        max-width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.85rem !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        font-size: 0.8rem !important;
    }
}

/* DataTables info + pagination row (desktop/tablet) */
@media (min-width: 768px) {
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        display: inline-flex !important;
        align-items: center;
        vertical-align: middle;
        padding-top: 0.75rem;
        margin: 0 !important;
        height: 2rem;
        line-height: 1 !important;
        box-sizing: border-box;
    }

    .dataTables_wrapper .dataTables_info {
        float: left !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        float: right !important;
    }

    .dataTables_wrapper .dataTables_paginate::after {
        display: none;
    }
}

/* DataTables pagination */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate span.ellipsis {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    width: 2rem !important;
    min-width: 2rem !important;
    max-width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate span.ellipsis {
    cursor: default;
    overflow: hidden;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus,
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus {
    border: 0 !important;
    background: transparent !important;
    color: color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
    font-weight: 500 !important;
    cursor: default !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous i,
.dataTables_wrapper .dataTables_paginate .paginate_button.next i {
    color: inherit !important;
}


/* Bootstrap pagination (Laravel links) */
.pagination .page-link {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    border: 0 !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background: transparent !important;
    color: color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
    font-weight: 500;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .site-brand-row > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%;
    }
}

.profile-submit-desktop {
    display: none;
}

@media (max-width: 1199px) {
    .profile-form-row > .profile-fields,
    .profile-form-row > .profile-photo {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .profile-submit-desktop {
        display: block;
    }

    .profile-submit-stacked {
        display: none !important;
    }
}

.site-media-card {
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid #e6e9ef;
    border-radius: 0.6rem;
    background: #f8fafc;
}

.site-media-title {
    margin: 0 0 0.85rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-upload-preview {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #e6e9ef;
}

.site-upload-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.site-upload-body small {
    color: #6c757d;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    form button.btn[type="submit"]:not(.dropdown-item),
    form input.btn[type="submit"] {
        display: block;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    form button.btn[type="submit"]:not(.dropdown-item) + button.btn[type="submit"],
    form input.btn[type="submit"] + button.btn[type="submit"],
    form button.btn[type="submit"]:not(.dropdown-item) + input.btn[type="submit"] {
        margin-top: 0.5rem;
    }

    table form button.btn[type="submit"],
    .dropdown-menu button.btn[type="submit"],
    .dropdown-menu input.btn[type="submit"] {
        display: inline-block;
        width: auto !important;
    }
}