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

:root {
    --primary-color: #840080;
    /* --secondary-color: #cf9c1e; */
    --secondary-color: #ffcc00;
    --site-font-family: "Nunito", sans-serif;
    --bs-font-sans-serif: var(--site-font-family);
    --bs-body-font-family: var(--site-font-family);
    --scrollbar-size: 6px;
}

/* 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;
}

/* Match Leinster Stone form field / button type sizes */
label,
.form-label {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
}

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 {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.btn:not(.btn-close),
body .btn:not(.btn-close) {
    --bs-btn-font-size: 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

.main a:not(.btn):not(.table-action):not(.page-link):not(.dropdown-item):not(.nav-link):not(.sidebar-link),
.modal a:not(.btn):not(.table-action):not(.page-link):not(.dropdown-item) {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.main a:not(.btn):not(.table-action):not(.page-link):not(.dropdown-item):not(.nav-link):not(.sidebar-link):hover,
.main a:not(.btn):not(.table-action):not(.page-link):not(.dropdown-item):not(.nav-link):not(.sidebar-link):focus-visible,
.modal a:not(.btn):not(.table-action):not(.page-link):not(.dropdown-item):hover,
.modal a:not(.btn):not(.table-action):not(.page-link):not(.dropdown-item):focus-visible {
    color: var(--primary-color);
    text-decoration: none;
    background-color: color-mix(in srgb, var(--primary-color) 12%, #fff);
    border-radius: 0.2rem;
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--primary-color) 12%, #fff);
}

@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: 300;
}

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

.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: 10rem !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;
}

.btn-form-cancel {
    margin-left: 0.35rem;
    padding-top: 3px;
    padding-bottom: 3px;
    vertical-align: middle;
}

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,
.wrapper:before {
    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"]):not(:disabled):not(.is-invalid):not(.is-valid),
textarea:not(:disabled):not(.is-invalid):not(.is-valid),
select:not(:disabled):not(.is-invalid):not(.is-valid),
.form-control:not(:disabled):not(.is-invalid):not(.is-valid),
.form-select:not(:disabled):not(.is-invalid):not(.is-valid),
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.dt-length-toggle {
    border-color: var(--primary-color) !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"]):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;
}

.theme-select {
    position: relative;
    width: 100%;
}

.theme-select > select {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1;
}

.theme-select-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 2.1rem 0.25rem 0.7rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--bs-border-radius, 0.2rem);
    background: #fff;
    color: #495057;
    font-family: var(--site-font-family);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-select-toggle.is-placeholder {
    color: #6c757d;
}

.theme-select-toggle::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}

.theme-select.is-open .theme-select-toggle::after {
    transform: translateY(-25%) rotate(225deg);
}

.theme-select-toggle:hover,
.theme-select.is-open .theme-select-toggle,
.theme-select-toggle:focus {
    outline: none;
    border-color: var(--primary-color);
}

.theme-select-toggle:focus,
.theme-select.is-open .theme-select-toggle {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.theme-select.is-invalid .theme-select-toggle {
    border-color: #dc3545;
}

.theme-select.is-locked .theme-select-toggle,
.theme-select.is-locked .theme-select-toggle:hover,
.theme-select.is-locked .theme-select-toggle:focus,
.theme-select-toggle:disabled,
.theme-select-toggle:disabled:hover,
.theme-select-toggle:disabled:focus {
    background: #f4f7fa;
    cursor: default;
    box-shadow: none;
    opacity: 1;
}

.theme-select.is-locked .theme-select-toggle::after,
.theme-select-toggle:disabled::after {
    display: none;
}

#contact-fields input[readonly] {
    background: #f4f7fa;
    cursor: default;
}

.theme-select-menu {
    display: none;
    position: fixed;
    z-index: 2000;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: var(--bs-border-radius, 0.2rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    max-height: 16rem;
    overflow-y: auto;
}

.theme-select-menu.is-open {
    display: block;
}

.theme-select-option {
    padding: 0.35rem 0.7rem;
    border-radius: 0.25rem;
    color: #495057;
    font-family: var(--site-font-family);
    font-size: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
}

.theme-select-option.is-selected:not(.is-active):not(:hover) {
    background-color: color-mix(in srgb, var(--primary-color) 12%, #fff);
    color: var(--primary-color);
}

.theme-select-option.is-active,
.theme-select-option:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.theme-select-option.is-disabled,
.theme-select-option.is-disabled:hover {
    background: transparent;
    color: #adb5bd;
    cursor: default;
}

.theme-date {
    position: relative;
    width: 100%;
}

.theme-date > input[type="date"] {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.theme-date-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--bs-border-radius, 0.2rem);
    background: #fff;
    color: #495057;
    font-family: var(--site-font-family);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.theme-date-toggle.is-placeholder .theme-date-value {
    color: #6c757d;
}

.theme-date-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.theme-date-toggle:hover,
.theme-date.is-open .theme-date-toggle,
.theme-date-toggle:focus {
    outline: none;
    border-color: var(--primary-color);
}

.theme-date-toggle:focus,
.theme-date.is-open .theme-date-toggle {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.theme-date.is-invalid .theme-date-toggle {
    border-color: #dc3545;
}

.theme-date-menu {
    display: none;
    position: fixed;
    z-index: 2000;
    width: 17.75rem;
    padding: 0.75rem 0.75rem 0.55rem;
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.theme-date-menu.is-open {
    display: block;
}

.theme-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.theme-date-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.theme-date-nav,
.theme-date-action,
.theme-date-day {
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--site-font-family);
    cursor: pointer;
}

.theme-date-nav {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    font-size: 1.35rem;
    line-height: 1;
}

.theme-date-weekdays,
.theme-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    text-align: center;
}

.theme-date-weekdays {
    margin-bottom: 0.2rem;
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
}

.theme-date-day {
    height: 2rem;
    border-radius: 0.25rem;
    color: #212529;
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-date-day.is-outside {
    color: #adb5bd;
}

.theme-date-day.is-today {
    box-shadow: inset 0 0 0 1px var(--primary-color);
    color: var(--primary-color);
}

.theme-date-day.is-selected,
.theme-date-day:hover,
.theme-date-nav:hover,
.theme-date-action:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: none;
}

.theme-date-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 16%, #fff);
}

.theme-date-action {
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.select2-container--classic .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

.select2-dropdown,
.select2-container--classic.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
}

.sidebar-user {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem 0.75rem 0.75rem !important;
    text-align: center !important;
}

.sidebar-user .navbar-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 0;
}

/* 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,
.sidebar-user .logo {
    height: 8.5rem !important;
    width: 8.5rem !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    padding: 0 !important;
}

.logo {
    height: 6.5rem !important;
    width: 6.5rem !important;
    padding: 0 !important;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* Login / centered logo wrappers */
.text-center .navbar-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    line-height: 0;
}

.text-center .navbar-brand .logo {
    height: 9.5rem !important;
    width: 9.5rem !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 var(--primary-color);
    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='%23840080' 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 var(--primary-color);
    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 var(--primary-color) !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;
}

.dataTables_wrapper table.dataTable td:has(.table-actions) {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    white-space: nowrap;
}

.table-actions form {
    display: inline-flex;
    margin: 0;
}

.table-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    background: #f4f7fb;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.table-action:hover,
.table-action:focus {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.table-action-edit {
    color: #e67e22;
    background: #fff6ec;
}

.table-action-edit:hover,
.table-action-edit:focus {
    color: #fff;
    background: #e67e22;
    border-color: #e67e22;
}

.table-action-delete {
    color: #dc3545;
    background: #fff1f2;
}

.table-action-delete:hover,
.table-action-delete:focus {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}

.customer-view-modal .modal-header,
#addContactModal .modal-header {
    background: var(--primary-color);
    color: #fff;
    border-bottom-color: transparent;
}

.customer-view-modal .modal-title,
#addContactModal .modal-title {
    color: #fff;
    font-weight: 700;
}

.customer-view-modal .btn-close,
#addContactModal .btn-close {
    filter: invert(1);
}

#addContactModal .modal-header small {
    color: rgba(255, 255, 255, 0.85);
}

.customer-view-heading {
    margin: 0 0 0.75rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.customer-view-heading + .customer-view-grid {
    margin-bottom: 1.25rem;
}

.customer-view-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.customer-view-contact {
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #d7e3ee);
    border-radius: 0.45rem;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
    padding: 0.9rem 1rem 1rem;
}

.customer-view-contact .customer-view-heading {
    margin-bottom: 0.75rem;
}

.customer-view-contact .customer-view-heading + .customer-view-grid,
.customer-view-contact .customer-view-grid {
    margin: 0;
}

.customer-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.5rem;
    margin: 0;
}

.customer-view-grid dt {
    margin: 0;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
}

.customer-view-grid dd {
    margin: 0.15rem 0 0;
    color: #212529;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .customer-view-grid {
        grid-template-columns: 1fr;
    }
}

.swal2-popup {
    font-family: var(--site-font-family) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem 1.25rem 1.25rem !important;
}

.swal2-html-container,
.swal2-title {
    font-family: inherit !important;
    color: #1f2933 !important;
}

.swal2-styled {
    font-family: inherit !important;
    font-weight: 700 !important;
    border-radius: 0.4rem !important;
    box-shadow: none !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;
}

.enquiry-billing,
.enquiry-note,
.enquiry-help,
.enquiry-status-note {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.45;
}

.enquiry-billing {
    margin: -0.35rem 0 1rem;
}

.enquiry-help,
.enquiry-note {
    margin-top: 0.35rem;
}

.enquiry-contact-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.enquiry-contact-row .enquiry-contact-select {
    flex: 1 1 auto;
    min-width: 0;
}

.enquiry-contact-row > .btn {
    flex: 0 0 auto;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.enquiry-files {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.enquiry-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.15rem 1rem;
    border: 1px dashed color-mix(in srgb, var(--primary-color) 45%, #c5d4e4);
    border-radius: 0.55rem;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
    color: var(--primary-color);
    text-align: center;
    cursor: pointer;
}

.enquiry-upload.is-drag {
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
}

.enquiry-upload.is-disabled {
    opacity: 0.6;
    cursor: default;
}

.enquiry-file-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.enquiry-upload-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, #fff);
}

.enquiry-upload-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.enquiry-upload-title {
    font-size: 0.95rem;
}

.enquiry-upload-help,
.enquiry-upload-error {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.enquiry-upload-error {
    margin: 0.45rem 0 0;
}

.enquiry-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.enquiry-file-grid:empty {
    display: none;
}

.enquiry-file-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #d7e3ee);
    border-radius: 0.45rem;
    background: #fff;
}

.enquiry-file-card.is-removed {
    display: none;
}

.enquiry-file-thumb,
.enquiry-file-pdf {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.3rem;
    flex-shrink: 0;
}

.enquiry-file-thumb {
    object-fit: cover;
    background: #f4f7fb;
}

.enquiry-file-pdf {
    display: grid;
    place-items: center;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 800;
}

.enquiry-file-meta {
    min-width: 0;
    flex: 1;
}

.enquiry-file-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.enquiry-file-meta span {
    color: #6c757d;
    font-size: 0.75rem;
}

.enquiry-file-remove {
    border: 0;
    background: transparent;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem;
}

.enquiry-view-modal .customer-view-span {
    grid-column: 1 / -1;
}

.enquiry-view-modal dd[data-field="scope"],
.enquiry-view-modal dd[data-field="summary"],
.enquiry-view-modal dd[data-field="access"],
.enquiry-view-modal dd[data-field="repeat_details"] {
    white-space: pre-wrap;
}

.enquiry-view-file-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.25rem;
}

@media (max-width: 991.98px) {
    .enquiry-view-file-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .enquiry-view-file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.enquiry-view-files-empty {
    margin: 0 0 1.25rem;
    color: #6c757d;
    font-size: 0.75rem;
}

.enquiry-view-file-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #d7e3ee);
    border-radius: 0.4rem;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
    padding: 0.5rem;
}

.enquiry-view-file-preview {
    display: block;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--primary-color) 14%, #d7e3ee);
    aspect-ratio: 1 / 1;
}

.enquiry-view-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.enquiry-view-file-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: none !important;
}

.enquiry-view-file-pdf:hover,
.enquiry-view-file-pdf:focus {
    color: var(--secondary-color) !important;
    background: color-mix(in srgb, var(--primary-color) 90%, #000);
    box-shadow: none !important;
}

.enquiry-view-file-meta strong {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #203040;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enquiry-view-file-actions {
    display: flex;
    gap: 0.55rem;
}

.enquiry-view-file-actions a {
    font-size: 0.65rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .enquiry-status-note {
        padding-top: 1.9rem;
    }
}

@media (max-width: 767.98px) {
    .enquiry-contact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .enquiry-contact-row > .btn {
        width: 100%;
    }

    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;
    }
}

@media (max-width: 991px) {
    .form-actions,
    .option-form-actions:has(> .btn + .btn) {
        display: flex;
        align-items: stretch;
        gap: 0.5rem;
    }

    form .form-actions > .btn,
    form .option-form-actions:has(> .btn + .btn) > .btn {
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        width: 0 !important;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-align: center;
    }

    form .form-actions.is-stacked,
    form .option-form-actions.is-stacked {
        flex-direction: column;
    }

    form .form-actions.is-stacked > .btn,
    form .option-form-actions.is-stacked > .btn {
        flex: 0 0 auto;
        width: 100% !important;
        overflow: visible;
        white-space: normal;
    }
}

.contact-people {
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #fff);
    border-radius: 0.35rem;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
    padding: 0.85rem 0.9rem 0.95rem;
}

.contact-people-head {
    margin-bottom: 0.75rem;
}

.contact-people-head strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.contact-help,
.contact-more {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

#customer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-card {
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #fff);
    border-radius: 0.3rem;
    background: #fff;
    padding: 0.75rem 0.8rem 0.35rem;
}

.contact-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.contact-role {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-remove,
.contact-add {
    border: 1px solid var(--primary-color);
    border-radius: 0.2rem;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
}

.contact-add {
    margin-top: 0.75rem;
}

.contact-add:hover:not(:disabled),
.contact-remove:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.contact-add:disabled,
.table-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* Guest site header */
.guest-navbar {
    background: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.guest-navbar .navbar-brand {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-right: 1rem;
    line-height: 0;
}

.guest-navbar .navbar-brand .logo {
    height: 5.25rem !important;
    width: 5.25rem !important;
    max-height: none;
    padding: 0 !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.guest-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem !important;
}

.guest-navbar .nav-link:hover,
.guest-navbar .nav-link:focus,
.guest-navbar .nav-link.active {
    color: var(--secondary-color) !important;
}

.guest-navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
}

.guest-navbar-toggler .navbar-toggler-icon {
    filter: invert(1) brightness(1.4);
}

.guest-enquiry-page {
    padding: 1.25rem 0 2.5rem;
}

.guest-enquiry-page .guest-enquiry-intro {
    margin: 0 0 1.25rem;
    color: #4a5a6a;
    font-size: 0.8rem;
    max-width: 42rem;
}

.guest-enquiry-page .card {
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, #d7e3ee) !important;
    border-radius: 0.45rem !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
}

.guest-enquiry-page .card-header {
    background: color-mix(in srgb, var(--primary-color) 6%, #fff) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 14%, #d7e3ee) !important;
    border-radius: 0 !important;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1rem !important;
}

.guest-enquiry-page .card-header .card-title {
    margin: 0;
    color: var(--primary-color) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

.guest-enquiry-page .card-body {
    padding: 1rem;
}

body.guest-body {
    background: #f4f7fa !important;
}

/* Admin dashboard overview */
.dashboard-overview .dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 7.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, #d7e3ee);
    border-radius: 0.45rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 7%, #fff) 0%, #fff 70%);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-overview .dashboard-stat:hover {
    border-color: var(--primary-color);
    color: inherit;
    transform: translateY(-1px);
}

.dashboard-overview .dashboard-stat-label {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dashboard-overview .dashboard-stat-value {
    color: var(--primary-color);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-overview .dashboard-stat-hint {
    color: #5f7388;
    font-size: 0.75rem;
    margin-top: auto;
}

.dashboard-overview .dashboard-card-link,
.dashboard-overview .dashboard-row-link {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-overview .dashboard-card-link:hover,
.dashboard-overview .dashboard-row-link:hover {
    color: color-mix(in srgb, var(--primary-color) 80%, #000);
    text-decoration: underline;
}

.dashboard-overview .dashboard-table {
    font-size: 0.8rem;
}

.dashboard-overview .dashboard-table thead th {
    color: var(--primary-color);
    border-bottom-color: color-mix(in srgb, var(--primary-color) 18%, #d7e3ee);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-overview .dashboard-table tbody td {
    border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, #e8eef4);
    vertical-align: middle;
}

.dashboard-overview .dashboard-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-overview .dashboard-breakdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, #e8eef4);
    font-size: 0.8rem;
}

.dashboard-overview .dashboard-breakdown li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-overview .dashboard-breakdown li:first-child {
    padding-top: 0;
}

.dashboard-overview .dashboard-breakdown span {
    color: #334155;
}

.dashboard-overview .dashboard-breakdown strong {
    color: var(--primary-color);
    font-weight: 800;
}

.dashboard-overview .dashboard-empty {
    color: #64748b;
    font-size: 0.8rem;
}
