/* Match Cork profile dropdown icon sizing when using Font Awesome <i> */
.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a i {
    width: 18px;
    margin-right: 7px;
    font-size: 16px;
    vertical-align: middle;
    color: #888ea8;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item:hover a i {
    color: #4361ee;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .avatar .avatar-title {
    font-size: 14px;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .avatar .avatar-title i {
    color: #fff;
}

/* Match Cork sidebar icon rules for Font Awesome <i> (theme targets svg.feather by default) */
.sidebar-wrapper.sidebar-theme .theme-brand .sidebar-toggle .btn-toggle i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    transform: rotate(0);
    -webkit-transition: 0.3s ease all;
    transition: 0.3s ease all;
}

.sidebar-wrapper.sidebar-theme .theme-brand .sidebar-toggle .btn-toggle i:hover {
    color: #e6f4ff;
}

.sidebar-closed .sidebar-wrapper.sidebar-theme .theme-brand .sidebar-toggle .btn-toggle i {
    transform: rotate(-180deg);
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle i {
    color: #506690;
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
    display: inline-block;
}

#sidebar ul.menu-categories li.menu.active > .dropdown-toggle i,
#sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded=true] i {
    color: #030305;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle:hover i,
#sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded=true]:hover i {
    color: #030305 !important;
}

body.dark .sidebar-wrapper.sidebar-theme .theme-brand .sidebar-toggle .btn-toggle i {
    color: #fff;
}

body.dark #sidebar ul.menu-categories li.menu > .dropdown-toggle i {
    color: #506690;
}

body.dark #sidebar ul.menu-categories li.menu.active > .dropdown-toggle i,
body.dark #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded=true] i,
body.dark #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover i,
body.dark #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded=true]:hover i {
    color: #e0e6ed !important;
}

/* Cork DataTable action menu: horizontal ··· toggle (FA stand-in for feather-more-horizontal) */
.table .dropdown-toggle.dt-action-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #515365;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
}

.table .dropdown-toggle.dt-action-toggle:hover,
.table .dropdown-toggle.dt-action-toggle:focus,
.table .dropdown-toggle.dt-action-toggle.show {
    color: #4361ee;
}

.table .dropdown-toggle.dt-action-toggle i {
    font-size: 18px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.table .dropdown-toggle.dt-action-toggle::after {
    display: none;
}

body.dark .table .dropdown-toggle.dt-action-toggle {
    color: #888ea8;
}

body.dark .table .dropdown-toggle.dt-action-toggle:hover,
body.dark .table .dropdown-toggle.dt-action-toggle:focus,
body.dark .table .dropdown-toggle.dt-action-toggle.show {
    color: #e0e6ed;
}

/*
 * Cork table menus use right:0, but Bootstrap Popper still applies transform/left
 * and makes the menu sit off to the side. Use static display + kill Popper styles.
 */
.table > tbody > tr > td .dropdown {
    position: relative;
}

.table > tbody > tr > td .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu,
.table > tbody > tr > td .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu.show {
    position: absolute !important;
    inset: auto 0 auto auto !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin-top: 0.25rem;
    min-width: 10rem;
}

/* Last rows: open upward so table overflow does not clip the menu */
.table > tbody > tr:last-child > td .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu.show,
.table > tbody > tr:nth-last-child(2) > td .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu.show,
.table > tbody > tr:nth-last-child(3) > td .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu.show {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

/* Keep Cork dropdown item icon sizing when using Font Awesome */
.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu .dropdown-item i {
    width: 18px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    color: #888ea8;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu .dropdown-item:hover i {
    color: #4361ee;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu .dropdown-item.text-danger i,
.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu .dropdown-item.text-danger:hover i {
    color: #e7515a;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu form.mb-0 {
    margin-bottom: 0 !important;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu button.dropdown-item {
    border-radius: 5px;
    display: flex;
    width: 100%;
    padding: 8px 17px;
    clear: both;
    font-weight: 500;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 15px;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu button.dropdown-item:hover {
    background: rgb(248, 248, 248);
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu a.dropdown-item.d-flex,
.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu button.dropdown-item.d-flex {
    display: flex !important;
}

/* Larger text for DataTable action menus */
.table .dropdown-menu .dropdown-item {
    font-size: 15px;
    padding: 8px 17px;
}

/* SweetAlert2 (Cork) — readable confirm layout */
.swal2-popup.kis-swal-popup {
    width: min(34rem, calc(100% - 2rem));
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.swal2-popup.kis-swal-popup.kis-swal-popup--carrier-mail {
    width: min(64rem, calc(100% - 2rem));
    overflow-x: hidden !important;
}

.swal2-popup.kis-swal-popup.kis-swal-popup--carrier-mail .swal2-html-container {
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail {
    max-width: 100%;
    overflow-x: hidden;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail__row {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 0.75rem 1rem;
    max-width: 100%;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail__field {
    min-width: 0;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail__badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: #eaf1ff;
    color: #1b55e2;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail__message {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 16rem;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.55;
    resize: vertical;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.swal2-popup.kis-swal-popup .credit-request-carrier-mail .form-label {
    color: #3b3f5c;
    font-weight: 600;
}

.swal2-popup.kis-swal-popup--carrier-mail .select2-container {
    width: 100% !important;
}

.swal2-popup.kis-swal-popup--carrier-mail .select2-container--default .select2-selection--single {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #bfc9d4;
    border-radius: 6px;
}

.swal2-popup.kis-swal-popup--carrier-mail .select2-container--open {
    z-index: 10050;
}

@media (max-width: 767.98px) {
    .swal2-popup.kis-swal-popup .credit-request-carrier-mail__row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.swal2-popup.kis-swal-popup .swal2-title {
    padding: 0;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
    text-align: left;
}

.swal2-popup.kis-swal-popup .kis-swal-title {
    display: flex !important;
    align-items: center;
}

.swal2-popup.kis-swal-popup .kis-swal-title::before {
    display: inline-flex;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-family: "Font Awesome 5 Free";
    font-size: 1rem;
    font-weight: 900;
}

.swal2-popup.kis-swal-popup .kis-swal-title-approve::before {
    color: var(--bs-primary);
    content: "\f128";
}

.swal2-popup.kis-swal-popup .kis-swal-title-reject::before {
    color: var(--bs-danger);
    content: "\f00d";
}

.swal2-popup.kis-swal-popup .kis-swal-title-primary::before {
    color: var(--bs-primary);
    content: "\f04b";
}

.swal2-popup.kis-swal-popup .kis-swal-title-follow-up::before {
    color: var(--bs-primary);
    content: "\f0e0";
}

.swal2-popup.kis-swal-popup .kis-swal-title-success::before {
    color: var(--bs-success);
    content: "\f00c";
}

.swal2-popup.kis-swal-popup .kis-swal-title-warning::before {
    color: var(--bs-warning);
    content: "\f071";
}

.swal2-popup.kis-swal-popup .kis-swal-title-danger::before {
    color: var(--bs-danger);
    content: "\f071";
}

.swal2-popup.kis-swal-popup .swal2-html-container,
.swal2-popup.kis-swal-popup .swal2-html-container:not([style*='display: none']) {
    margin: 0.5rem 0 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #888ea8 !important;
    text-align: left;
}

.swal2-popup.kis-swal-popup .kis-swal-input-label {
    justify-content: flex-start;
    margin: 1rem 0 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.swal2-popup.kis-swal-popup .kis-swal-textarea {
    width: 100%;
    min-height: 7rem;
    margin: 0;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
}

.swal2-popup.kis-swal-popup .kis-swal-validation {
    margin: 0.75rem 0 0;
    padding: 0;
    justify-content: flex-start;
    background: transparent;
    color: var(--bs-danger);
    font-size: 0.8125rem;
    text-align: left;
}

.swal2-popup.kis-swal-popup .kis-swal-validation::before {
    display: none;
}

.swal2-popup.kis-swal-popup .kis-swal-textarea.swal2-inputerror {
    border-color: var(--bs-danger);
    box-shadow: none;
}

.swal2-popup.kis-swal-popup .swal2-actions {
    width: 100%;
    margin: 1.25rem 0 0;
    gap: 0.5rem;
    justify-content: flex-end;
}

.swal2-popup.kis-swal-popup .swal2-actions .btn {
    margin: 0;
    min-width: 7.5rem;
}

/* Company archive modal — Bootstrap modal on Sales index (matches listing cards) */
.company-archive-modal .modal-dialog {
    max-width: min(32rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
}

.company-archive-modal .modal-dialog.modal-lg {
    max-width: min(48rem, calc(100vw - 2rem));
}

.company-archive-modal .modal-dialog.modal-xl {
    max-width: min(72rem, calc(100vw - 2rem));
}

.company-archive-modal .modal-content {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.company-archive-modal .modal-header {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    background: #f9f8f8;
    border-bottom: 1px solid #e0e6ed;
}

.company-archive-modal .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3b3f5c;
}

.company-archive-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.company-archive-modal .modal-footer {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-top: 1px solid #e0e6ed;
}

.company-archive-modal__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e0e6ed;
}

.company-archive-modal__intro h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3b3f5c;
}

.company-archive-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.company-archive-modal__content.company-detail-page .card.shadow-sm {
    border: 1px solid #e0e6ed;
}

.company-archive-modal__content.company-detail-page .card.shadow-sm > .card-header {
    padding: 0.75rem 1rem;
}

.company-archive-modal__content.company-detail-page .card.shadow-sm > .card-header h5 {
    font-size: 0.9375rem;
}

body.dark .company-archive-modal .modal-content,
body.dark .company-archive-modal .modal-header,
body.dark .company-archive-modal .modal-body,
body.dark .company-archive-modal .modal-footer,
body.dark .company-archive-modal__intro {
    background: #0e1726;
    border-color: #1b2e4b;
}

body.dark .company-archive-modal .modal-title,
body.dark .company-archive-modal__intro h6 {
    color: #e0e6ed;
}

body.dark .company-archive-modal__content.company-detail-page .card.shadow-sm {
    background: #0e1726;
    border-color: #1b2e4b;
}

/* Light header brand text (Cork default #e0e6ed is for dark bars) */
.header-container .theme-text a {
    color: #191e3a;
    white-space: nowrap;
}

/* ==========================================================================
   Unified header navbar (kis-unified-nav)
   ========================================================================== */
body.kis-unified-nav {
    --kis-header-bg: #0e1726;
    --kis-header-border: rgba(255, 255, 255, 0.06);
    --kis-header-text: #ffffff;
    --kis-header-muted: #888ea8;
    --kis-header-active: #4361ee;
    --kis-header-active-bg: #191e3a;
    --kis-primary: #4361ee;
    --kis-success: #00ab55;
    --kis-content-gutter: 32px;
    --kis-header-height: 70px;
    --kis-radius-sm: 8px;
    --kis-radius-md: 10px;
    --kis-space-2: 0.5rem;
    --kis-space-3: 0.75rem;
    --kis-space-4: 1rem;
    --kis-space-6: 1.5rem;
    --kis-font-sm: 0.8125rem;
}

body.kis-unified-nav .header-container.kis-unified-header {
    background: var(--kis-header-bg);
    padding: 0;
    left: 0 !important;
    width: 100%;
}

body.kis-unified-nav .header-container.kis-unified-header .header.navbar {
    background: transparent;
    padding: 0 15px;
    min-height: 0;
    width: 100%;
}

body.kis-unified-nav .kis-unified-header {
    background: var(--kis-header-bg);
    border-bottom: 1px solid var(--kis-header-border);
    padding: 0;
    z-index: 1040;
}

body.kis-unified-nav .kis-unified-header__bar {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    min-height: var(--kis-header-height);
    padding: 0 var(--kis-content-gutter);
    margin: 0;
}

body.kis-unified-nav .kis-unified-header__toggle {
    display: none;
    align-self: center;
    color: var(--kis-header-muted);
    padding: var(--kis-space-2) var(--kis-space-3);
    margin-right: var(--kis-space-2);
}

body.kis-unified-nav .kis-unified-header__brand {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: var(--kis-space-3);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: var(--kis-space-6);
    padding: var(--kis-space-3) 0;
}

body.kis-unified-nav .kis-unified-header__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--kis-radius-sm);
}

body.kis-unified-nav .kis-unified-header__brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    line-height: 1.15;
}

body.kis-unified-nav .kis-unified-header__brand-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--kis-header-text);
    white-space: nowrap;
    text-transform: uppercase;
}

body.kis-unified-nav .kis-unified-header__brand-sub {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--kis-header-muted);
    text-transform: uppercase;
}

body.kis-unified-nav .kis-unified-header__nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

body.kis-unified-nav .kis-unified-header__nav::-webkit-scrollbar {
    display: none;
}

body.kis-unified-nav .kis-main-menu {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

body.kis-unified-nav .kis-main-menu__item {
    display: flex;
    align-items: stretch;
}

body.kis-unified-nav .kis-main-menu__item > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: var(--kis-header-height);
    padding: 0 1.35rem;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    color: var(--kis-header-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

body.kis-unified-nav .kis-main-menu__item > a i {
    font-size: 0.9375rem;
    line-height: 1;
    color: inherit;
    opacity: 0.9;
}

body.kis-unified-nav .kis-main-menu__item.active > a i {
    opacity: 1;
}

body.kis-unified-nav .kis-main-menu__item > a:hover {
    color: var(--kis-header-text);
    background: rgba(255, 255, 255, 0.04);
}

body.kis-unified-nav .kis-main-menu__item.active > a {
    color: var(--kis-header-text);
    font-weight: 700;
    background: var(--kis-header-active-bg);
    border-bottom-color: var(--kis-header-active);
}

body.kis-unified-nav .kis-unified-header__actions .notification-dropdown {
    flex-shrink: 0;
    align-self: center;
    margin-left: auto !important;
    display: flex;
    align-items: center;
    gap: var(--kis-space-2);
    padding: var(--kis-space-2) var(--kis-space-3);
    border-radius: var(--kis-radius-md);
    background: rgba(255, 255, 255, 0.06);
}

body.kis-unified-nav .kis-unified-header__actions .nav-link {
    color: var(--kis-header-muted);
}

body.kis-unified-nav .kis-unified-header__actions .nav-link:hover {
    color: var(--kis-header-text);
}

body.kis-unified-nav .kis-unified-header__actions .avatar-title {
    background: var(--kis-primary);
    color: var(--kis-header-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

body.kis-unified-nav .kis-unified-header__actions .badge-success {
    background: var(--kis-success);
    color: #fff;
}

body.kis-unified-nav .kis-unified-header__toggle i {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 20px;
    color: var(--kis-header-muted);
    vertical-align: text-top;
    display: inline-block;
    text-align: center;
}

@media (min-width: 992px) {
    body.kis-unified-nav .kis-mobile-nav.sidebar-wrapper {
        display: none !important;
    }

    body.kis-unified-nav #content {
        margin-top: var(--kis-header-height) !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    body.kis-unified-nav .header-container .navbar {
        margin: 0;
    }

    body.kis-unified-nav .secondary-nav,
    body.dark.kis-unified-nav .secondary-nav {
        top: var(--kis-header-height);
    }
}

@media (max-width: 991.98px) {
    body.kis-unified-nav .kis-unified-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.kis-unified-nav .kis-unified-header__nav {
        display: none;
    }

    body.kis-unified-nav .kis-unified-header__bar {
        padding-left: var(--kis-space-4);
        padding-right: var(--kis-space-4);
        min-height: 60px;
    }

    body.kis-unified-nav .kis-main-menu__item > a {
        min-height: 60px;
        padding: 0 1rem;
        font-size: 0.8125rem;
    }

    body.kis-unified-nav .kis-unified-header__brand-sub {
        display: none;
    }

    body.kis-unified-nav .kis-unified-header__brand-text {
        font-size: var(--kis-font-sm);
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.kis-unified-nav .kis-mobile-nav.sidebar-wrapper {
        top: 0;
    }

    body.kis-unified-nav #content {
        margin-top: 60px !important;
    }

    body.kis-unified-nav .secondary-nav,
    body.dark.kis-unified-nav .secondary-nav {
        top: 60px;
    }
}

/* Breadcrumb bar — match Cork 3.9 vertical-light spacing */
.secondary-nav,
body.dark .secondary-nav {
    top: 60px;
    background: unset !important;
    box-shadow: unset !important;
    position :static !important;
}

.secondary-nav .breadcrumbs-container .navbar {
    align-items: center;
}

.secondary-nav .breadcrumbs-container .navbar .breadcrumb-content {
    align-items: center;
}

.secondary-nav .breadcrumbs-container .navbar .page-header {
    display: flex;
    align-items: center;
}

.secondary-nav .breadcrumbs-container .navbar .breadcrumb {
    margin-bottom: 0;
    padding: 0;
}

.secondary-nav .breadcrumbs-container .navbar .sidebarCollapse{
    display: none;
    
}

/* FA hamburger (theme only styles svg) */
.secondary-nav .breadcrumbs-container .navbar .sidebarCollapse i {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 20px;
    color: #3b3f5c;
    vertical-align: text-top;
    display: inline-block;
    text-align: center;
}

body.dark .secondary-nav .breadcrumbs-container .navbar .sidebarCollapse i {
    color: #e0e6ed;
}

.form-control:disabled:not(.flatpickr-input), .form-control[readonly]:not(.flatpickr-input) {
    background-color: #f1f2f3;
    cursor: no-drop;
     color: #000 !important; 
}

/* Keep ABN autofill locked fields readable */
input.form-control.text-dark[readonly],
select.form-select.text-dark:disabled {
    color: #212529 !important;
    opacity: 1;
    -webkit-text-fill-color: #212529;
}

.form-control{
    letter-spacing: 0px !important;  
}

body.dark input.form-control.text-dark[readonly],
body.dark select.form-select.text-dark:disabled {
    color: #e0e6ed !important;
    -webkit-text-fill-color: #e0e6ed;
}

/* Company detail view — Cork-aligned read-only layout */
.company-detail-page .company-detail-summary {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #fff;
}

.company-detail-page .company-detail-stat {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.company-detail-page .company-detail-stat-label {
    font-size: 0.75rem;
    color: #888ea8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.company-detail-page .company-detail-stat-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3b3f5c;
}

.company-detail-page .card-body small.text-muted.d-block {
    font-size: 0.8125rem;
    color: #888ea8 !important;
    margin-bottom: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.company-detail-page .card-body small.text-muted.d-block + div,
.company-detail-page .card-body small.text-muted.d-block + strong,
.company-detail-page .card-body small.text-muted.d-block + p {
    color: #3b3f5c;
    font-weight: 500;
}

.company-detail-page .company-detail-subsection {
    margin-bottom: 1.75rem;
}

.company-detail-page .company-detail-subsection:last-child {
    margin-bottom: 0;
}

.company-detail-page .company-detail-subsection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3b3f5c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e6ed;
}

.company-detail-page .company-detail-group {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f2f3;
}

.company-detail-page .company-detail-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.company-detail-page .company-detail-group-title {
    font-weight: 600;
    color: #3b3f5c;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.company-detail-page .company-detail-signature {
    max-height: 220px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(31, 45, 61, 0.08);
    background: #fff;
    padding: 0.75rem;
}

.company-detail-page .card.shadow-sm {
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 4px rgba(31, 45, 61, 0.04) !important;
}

.company-detail-page .card.shadow-sm > .card-header {
    background: #fff;
    border-bottom: 1px solid #e0e6ed;
    padding: 1rem 1.25rem;
}

.company-detail-page .card.shadow-sm > .card-header h5 {
    color: #3b3f5c;
    font-size: 1rem;
    font-weight: 600;
}

body.dark .company-detail-page .company-detail-summary,
body.dark .company-detail-page .card.shadow-sm {
    background: #0e1726;
    border-color: #1b2e4b;
}

body.dark .company-detail-page .company-detail-stat {
    background: #1b2e4b;
}

body.dark .company-detail-page .company-detail-stat-label,
body.dark .company-detail-page .card-body small.text-muted.d-block {
    color: #888ea8 !important;
}

body.dark .company-detail-page .company-detail-stat-value,
body.dark .company-detail-page .card-body small.text-muted.d-block + div,
body.dark .company-detail-page .card-body small.text-muted.d-block + strong,
body.dark .company-detail-page .company-detail-subsection-title,
body.dark .company-detail-page .company-detail-group-title,
body.dark .company-detail-page .card.shadow-sm > .card-header h5 {
    color: #e0e6ed;
}

body.dark .company-detail-page .company-detail-subsection-title,
body.dark .company-detail-page .card.shadow-sm > .card-header {
    border-color: #1b2e4b;
}

body.dark .company-detail-page .company-detail-group {
    border-color: #1b2e4b;
}

body.dark .company-detail-page .company-detail-signature {
    background: #1b2e4b;
    box-shadow: none;
}

.company-detail-page .company-detail-grid > [class*='col-'] > .card {
    margin-bottom: 0;
}

/* Cork primary pills — Settings, Company detail, Roles */
.nav-pills.bg-white .nav-link,
.nav-pills.app-nav-pills .nav-link,
.company-detail-page .nav-pills .nav-link {
    color: #4361ee;
    font-weight: 600;
}

.nav-pills.bg-white .nav-link:hover:not(.active),
.nav-pills.app-nav-pills .nav-link:hover:not(.active),
.company-detail-page .nav-pills .nav-link:hover:not(.active) {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.08);
}

.nav-pills.bg-white .nav-link.active,
.nav-pills.app-nav-pills .nav-link.active,
.company-detail-page .nav-pills .nav-link.active {
    color: #fff;
    background-color: #4361ee;
}

body.dark .nav-pills.bg-white .nav-link,
body.dark .nav-pills.app-nav-pills .nav-link,
body.dark .company-detail-page .nav-pills .nav-link {
    color: #8ab4ff;
}

body.dark .nav-pills.bg-white .nav-link.active,
body.dark .nav-pills.app-nav-pills .nav-link.active,
body.dark .company-detail-page .nav-pills .nav-link.active {
    color: #fff;
    background-color: #4361ee;
}

/* Company detail — summary header */
.company-detail-page .company-detail-summary__title {
    color: #3b3f5c;
    font-weight: 600;
    font-size: 1.35rem;
}

.company-detail-page .company-detail-summary__meta {
    color: #888ea8;
    font-size: 0.875rem;
}

/* Company detail — status banners */
.company-status-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.company-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: 0 2px 4px rgba(31, 45, 61, 0.04);
}

.company-status-banner__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.company-status-banner__body {
    min-width: 0;
    flex: 1;
}

.company-status-banner__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3b3f5c;
    margin-bottom: 0.25rem;
}

.company-status-banner__text {
    font-size: 0.875rem;
    color: #515365;
    line-height: 1.5;
}

.company-status-banner__highlight {
    display: block;
    white-space: pre-wrap;
}

.company-status-banner__meta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #888ea8;
}

.company-status-banner--success {
    border-color: #d1fae5;
    background: #f0fdf4;
}

.company-status-banner--success .company-status-banner__icon {
    background: #dcfce7;
    color: #15803d;
}

.company-status-banner--warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.company-status-banner--warning .company-status-banner__icon {
    background: #fef3c7;
    color: #b45309;
}

.company-status-banner--hold {
    border-color: #fcd34d;
    background: #fffdf5;
}

.company-status-banner--hold .company-status-banner__icon {
    background: #fef3c7;
    color: #d97706;
}

.company-status-banner--danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.company-status-banner--danger .company-status-banner__icon {
    background: #fee2e2;
    color: #b91c1c;
}

/* Company detail — tabs */
.company-detail-page .company-detail-tabs {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 0.35rem;
    gap: 0.35rem;
}

.company-detail-page .company-detail-tabs .nav-link {
    border-radius: 6px;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

/* Company detail — hold notes thread */
.company-hold-thread {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    /* visible so @mention dropdown is not clipped */
    overflow: visible;
}

.company-hold-thread > .card-header {
    background: #fff;
    border-bottom: 1px solid #e0e6ed;
    padding: 1rem 1.25rem;
}

.company-hold-thread > .card-header h5 {
    color: #3b3f5c;
    font-size: 1rem;
    font-weight: 600;
}

.company-hold-thread__intro {
    font-size: 0.8125rem;
    color: #888ea8;
    margin-bottom: 1.25rem;
}

.company-hold-thread__empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px dashed #e0e6ed;
    border-radius: 8px;
    color: #888ea8;
    font-size: 0.875rem;
    background: #f8f9fa;
}

.company-hold-thread__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.company-hold-thread__item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f2f3;
}

.company-hold-thread__item:first-child {
    padding-top: 0;
}

.company-hold-thread__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.company-hold-thread__avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4361ee;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.company-hold-thread__item.is-initial .company-hold-thread__avatar {
    background: #fef3c7;
    color: #b45309;
}

.company-hold-thread__content {
    min-width: 0;
    flex: 1;
}

.company-hold-thread__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
}

.company-hold-thread__head strong {
    color: #3b3f5c;
    font-weight: 600;
    font-size: 0.875rem;
}

.company-hold-thread__time {
    font-size: 0.8125rem;
    color: #888ea8;
}

.company-hold-thread__message {
    font-size: 0.875rem;
    color: #515365;
    line-height: 1.55;
    white-space: pre-wrap;
}

.company-hold-thread__composer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e6ed;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.company-hold-thread__composer .position-relative {
    overflow: visible;
}

#hold-note-mention-menu {
    z-index: 1060;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 0.35rem 0;
}

#hold-note-mention-menu .dropdown-item {
    white-space: normal;
    padding: 0.5rem 0.85rem;
}

#hold-note-mention-menu .dropdown-item.active,
#hold-note-mention-menu .dropdown-item:hover {
    background: #f1f2f3;
    color : black;
}

.company-hold-thread__composer .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3b3f5c;
}

.company-hold-thread__composer-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.company-hold-thread__closed-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e6ed;
    font-size: 0.8125rem;
    color: #888ea8;
}

body.dark .company-detail-page .company-detail-summary__title,
body.dark .company-hold-thread > .card-header h5,
body.dark .company-status-banner__title,
body.dark .company-hold-thread__head strong,
body.dark .company-hold-thread__composer .form-label {
    color: #e0e6ed;
}

body.dark .company-detail-page .company-detail-summary__meta,
body.dark .company-status-banner__meta,
body.dark .company-hold-thread__intro,
body.dark .company-hold-thread__time,
body.dark .company-hold-thread__closed-note {
    color: #888ea8;
}

body.dark .company-status-banner,
body.dark .company-hold-thread,
body.dark .company-detail-page .company-detail-tabs {
    background: #0e1726;
    border-color: #1b2e4b;
}

body.dark .company-status-banner__text,
body.dark .company-hold-thread__message {
    color: #bfc9d4;
}

body.dark .company-status-banner--success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
}

body.dark .company-status-banner--warning,
body.dark .company-status-banner--hold {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

body.dark .company-status-banner--danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

body.dark .company-hold-thread__empty {
    background: #1b2e4b;
    border-color: #253b5c;
    color: #888ea8;
}

body.dark .company-hold-thread__item {
    border-color: #1b2e4b;
}

body.dark .company-hold-thread__composer,
body.dark .company-hold-thread > .card-header {
    border-color: #1b2e4b;
}

body.dark .company-hold-thread__avatar {
    background: #1b2e4b;
    color: #8ab4ff;
}

body.dark .company-hold-thread__item.is-initial .company-hold-thread__avatar {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}


.credit-attachment-download {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.credit-attachment-download:hover,
.credit-attachment-download:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.form-choice-option {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-choice-option:hover {
    border-color: #93c5fd;
}

.form-choice-option.is-selected {
    border-color: #2563eb;
    background: #f8fbff;
    box-shadow: 0 0 0 1px #2563eb inset;
}

.form-choice-option.is-invalid {
    border-color: #e7515a;
    background: #fff5f5;
}

.form-choice-option .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.form-choice-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.form-choice-option__icon {
    font-size: 1.25rem;
    color: #2563eb;
}

.form-choice-option__title {
    font-weight: 600;
    color: #0f172a;
}

.form-choice-option__text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.company-form-actions {
    padding: 0.85rem 0;
}

.form-section-card > .card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e6ed;
}

body.dark .form-section-card > .card-header {
    background-color: #191e3a;
    border-bottom-color: #3b3f5c;
}

#company-application-wizard .company-wizard-nav {
    border: 1px solid #e0e6ed;
    border-radius: 10px;
}

#company-application-wizard .company-wizard-nav .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

#company-application-wizard .wizard-steps {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

#company-application-wizard .wizard-step-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    padding: 0 0.35rem;
}

#company-application-wizard .wizard-step-item::after {
    content: '';
    position: absolute;
    top: 21px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #d7dce3;
    z-index: 0;
    transition: background-color 0.2s ease;
}

#company-application-wizard .wizard-step-item:last-child::after {
    display: none;
}

#company-application-wizard .wizard-step-item:has(.wizard-step-indicator.is-completed)::after {
    background: #00ab55;
}

#company-application-wizard .wizard-step-indicator {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #888ea8;
    box-shadow: none;
    transition: color 0.2s ease;
}

#company-application-wizard .wizard-step-indicator:not(:disabled) {
    cursor: pointer;
}

#company-application-wizard .wizard-step-indicator:focus-visible {
    outline: none;
}

#company-application-wizard .wizard-step-indicator:focus-visible .wizard-step-marker {
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.16);
}

#company-application-wizard .wizard-step-indicator:disabled {
    cursor: default;
    opacity: 1;
}

#company-application-wizard .wizard-step-indicator:disabled .wizard-step-marker {
    opacity: 0.85;
    border-color: #d7dce3;
    color: #bfc9d4;
}

#company-application-wizard .wizard-step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #d7dce3;
    border-radius: 999px;
    background: #fff;
    color: #888ea8;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#company-application-wizard .wizard-step-indicator:not(:disabled):not(.is-active):not(.is-completed):hover .wizard-step-marker {
    border-color: #4361ee;
    color: #4361ee;
    background: #eef2ff;
}

#company-application-wizard .wizard-step-indicator.is-active:hover .wizard-step-marker {
    box-shadow: 0 6px 14px rgba(67, 97, 238, 0.28);
}

#company-application-wizard .wizard-step-indicator.is-completed:not(:disabled):hover .wizard-step-marker {
    box-shadow: 0 4px 10px rgba(0, 171, 85, 0.25);
}

#company-application-wizard .wizard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

#company-application-wizard .wizard-step-number i {
    font-size: 1rem;
    line-height: 1;
}

#company-application-wizard .wizard-step-label {
    display: block;
    max-width: 7.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    color: #888ea8;
}


#company-application-wizard .wizard-step-indicator.is-active {
    color: #4361ee;
}

#company-application-wizard .wizard-step-indicator.is-active .wizard-step-marker {
    border-color: #4361ee;
    background: #4361ee;
    color: #fff;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.22);
}

#company-application-wizard .wizard-step-indicator.is-active .wizard-step-label {
    color: #4361ee;
    font-weight: 600;
}


#company-application-wizard .wizard-step-indicator.is-completed .wizard-step-marker {
    border-color: #00ab55;
    background: #00ab55;
    color: #fff;
}

#company-application-wizard .wizard-step-indicator.is-completed .wizard-step-label {
    color: #3b3f5c;
    font-weight: 500;
}

#company-application-wizard .wizard-step-indicator:disabled .wizard-step-label {
    color: #b0b8c4;
}

#company-application-wizard .wizard-step-indicator.is-error {
    color: #e7515a;
}

#company-application-wizard .wizard-step-indicator.is-error .wizard-step-marker {
    border-color: #e7515a;
    background: #fff5f5;
    color: #e7515a;
}

#company-application-wizard .wizard-step-indicator.is-error.is-active .wizard-step-marker {
    border-color: #e7515a;
    background: #e7515a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(231, 81, 90, 0.2);
}


#company-application-wizard .wizard-step-indicator.is-error.is-active .wizard-step-label {
    color: #e7515a;
}

#company-application-wizard .wizard-step-item:has(.wizard-step-indicator.is-error.is-completed)::after {
    background: #e7515a;
}

#company-application-wizard .wizard-step-error-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #e7515a;
}

#company-application-wizard .signature-pad-wrapper.is-invalid,
#company-application-wizard .signature-pad-invalid {
    border-color: #e7515a !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 81, 90, 0.15);
}

#company-application-wizard .wizard-step[hidden] {
    display: none !important;
}

#company-application-wizard .freight-profile-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    width: 100%;
    min-height: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#company-application-wizard .freight-profile-option:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

#company-application-wizard .freight-profile-option.is-selected {
    border-color: #2563eb;
    background: #f8fbff;
    box-shadow: 0 0 0 1px #2563eb inset;
}

#company-application-wizard .freight-profile-option .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

#company-application-wizard .freight-profile-option__label {
    font-weight: 500;
    color: #212529;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    #company-application-wizard .company-wizard-nav .card-body {
        padding: 1rem;
    }

    #company-application-wizard .wizard-steps {
        flex-wrap: wrap;
        row-gap: 1rem;
        justify-content: center;
    }

    #company-application-wizard .wizard-step-item {
        flex: 0 0 20%;
        min-width: 3.5rem;
        padding: 0 0.15rem;
    }

    #company-application-wizard .wizard-step-item::after {
        display: none;
    }

    #company-application-wizard .wizard-step-marker {
        width: 38px;
        height: 38px;
    }

    #company-application-wizard .wizard-step-number,
    #company-application-wizard .wizard-step-number i {
        font-size: 0.875rem;
    }

    #company-application-wizard .wizard-step-label {
        font-size: 0.6875rem;
        max-width: 4.75rem;
    }
}

body.dark #company-application-wizard .company-wizard-nav {
    border-color: #1b2e4b;
    background: #191e3a;
}

body.dark #company-application-wizard .wizard-step-marker {
    background: #0e1726;
    border-color: #3b3f5c;
    color: #bfc9d4;
}

body.dark #company-application-wizard .wizard-step-indicator.is-active .wizard-step-marker {
    border-color: #4361ee;
    background: #4361ee;
    color: #fff;
}

body.dark #company-application-wizard .wizard-step-indicator.is-active .wizard-step-label {
    color: #8ab4ff;
}

body.dark #company-application-wizard .wizard-step-label {
    color: #bfc9d4;
}

body.dark #company-application-wizard .wizard-step-indicator.is-completed .wizard-step-label {
    color: #e0e6ed;
}

body.dark #company-application-wizard .wizard-step-item::after {
    background: #3b3f5c;
}

body.dark #company-application-wizard .wizard-step-item:has(.wizard-step-indicator.is-completed)::after {
    background: #00ab55;
}

body.dark .form-choice-option {
    background: transparent;
    border-color: #1b2e4b;
}

body.dark .form-choice-option.is-selected {
    background: rgba(37, 99, 235, 0.12);
}

/* Select2 — match Cork form control height (layout) */
.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    padding: .375rem .75rem;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    color: #495057;
    padding-left: 0;
    padding-right: 0;
    flex: 1;
    min-width: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: relative;
    float: right;
    margin-right: 28px;
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    color: #888ea8;
    order: 2;
}

.select2-container {
    width: 100% !important;
}

.select2-container--open {
    z-index: 9999;
}

/* Account setup form */
#account-setup-form .form-section-card {
    margin-bottom: 0 !important;
}

#account-setup-form .account-setup-panel {
    width: 100%;
}

#account-setup-form .account-setup-panel:not(.account-setup-section-stack) {
    display: block;
}

#account-setup-form .account-setup-panel.account-setup-section-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#account-setup-form .account-setup-panel.is-hidden {
    display: none !important;
}

/* Shared file upload dropzone (Account Setup + Documents tab) */
.upload-dropzone-box {
    cursor: pointer;
    border: 2px dashed #d7dce3;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-dropzone-box:hover,
.upload-dropzone-box.is-dragover,
.upload-dropzone-box:focus {
    border-color: #4361ee;
    background-color: #f4f7ff;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08);
    outline: none;
}

.upload-dropzone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    color: #4361ee;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #e0e6ed;
}

.upload-file-preview,
#account-setup-form .account-setup-photo-preview {
    position: relative;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.upload-file-preview img,
#account-setup-form .account-setup-photo-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.upload-file-preview-doc,
#account-setup-form .account-setup-photo-preview-pdf {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #f8f9fa;
    color: #6c757d;
    padding: 1rem;
    text-align: center;
}

.upload-file-preview-meta,
#account-setup-form .account-setup-photo-preview-meta {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-top: 1px solid #e0e6ed;
    word-break: break-word;
}

.upload-file-preview-remove,
#account-setup-form .account-setup-photo-preview-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.cursor-pointer {
    cursor: pointer;
}

#account-setup-form .account-setup-carrier-services.is-hidden {
    display: none !important;
}

#account-setup-form .account-setup-carrier-services .form-check:last-child {
    margin-bottom: 0;
}

#account-setup-form .account-setup-carrier-item,
#account-setup-form .account-setup-carrier-services,
#accountAdjustmentForm .account-adjustment-carrier-block,
#accountAdjustmentForm .account-adjustment-carrier-inline-services {
    min-width: 0;
}

#account-setup-form .account-setup-carrier-services .form-check-label,
#account-setup-form .account-setup-carrier-item > .form-check .form-check-label,
#account-setup-form #account-setup-carrier-markups .form-label,
#accountAdjustmentForm .account-adjustment-carrier-inline-services .form-check-label,
#accountAdjustmentForm .account-adjustment-carrier-block > .form-check .form-check-label,
#accountAdjustmentForm #account-adjustment-carrier-markups .form-label {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.carrier-service-text {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Account adjustments — carrier selection panels */
#accountAdjustmentForm .account-adjustment-markup-panel.is-hidden,
#accountAdjustmentForm .account-adjustment-carrier-inline-services.is-hidden {
    display: none !important;
}

/* Company show — header More toggle (keep default btn size, hide caret) */
.company-header-actions .company-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.company-header-actions .company-more-toggle i {
    font-size: 1rem;
    line-height: 1;
}

.company-header-actions .company-more-toggle::after {
    display: none;
}

/* Company index — action dropdown menu (teleported to body) */
.company-row-actions .company-approve-btn,
.company-row-actions .company-reject-action {
    white-space: nowrap;
    padding: 5px 15px;
    min-height: 30px;
    font-size: 0.875rem;
    line-height: 18px;
}

.company-action-menu {
    width: 17.5rem;
    min-width: 17.5rem;
    max-width: 17.5rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.company-action-menu .dropdown-header {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    padding-top: 0.45rem;
    padding-bottom: 0.2rem;
}

.company-action-menu .dropdown-item {
    font-size: 15px;
    padding: 0.5rem 1rem;
    white-space: normal;
    color: #0e1726;
}

.company-action-menu .dropdown-item i {
    width: 1.15rem;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    color: #888ea8;
}

.company-action-menu .dropdown-item-compact {
    padding-left: 1rem;
    font-size: 15px;
    color: #515365;
}

.company-action-menu .dropdown-item-compact i {
    color: #888ea8;
}

.company-action-menu .dropdown-item:hover,
.company-action-menu .dropdown-item:focus,
.company-action-menu .dropdown-item:active,
.company-action-menu .dropdown-item.active {
    background-color: #f8fafc;
    color: #0e1726;
}

.company-action-menu .dropdown-item:hover i,
.company-action-menu .dropdown-item:focus i,
.company-action-menu .dropdown-item:active i,
.company-action-menu .dropdown-item.active i {
    color: #4361ee;
}

.company-action-menu .dropdown-item-text {
    display: block;
    line-height: 1.4;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.company-action-menu .company-login-details-sent-meta {
    padding-top: 0;
    padding-bottom: 0.45rem;
    margin-top: -0.15rem;
}

body > .company-action-menu {
    z-index: 2000;
    width: 17.5rem;
    min-width: 17.5rem;
    max-width: 17.5rem;
}

/* Shared table action buttons (users, roles, consignments) */
.employee-table-actions .btn {
    white-space: nowrap;
    padding: 0.28rem 0.65rem;
    font-size: 13px;
    line-height: 1.3;
}

.employee-table-actions .btn i {
    font-size: 13px;
}

/* Credit request form */
.credit-choice-option {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.credit-choice-option:hover {
    border-color: #93c5fd;
}

.credit-choice-option.is-selected {
    border-color: #2563eb;
    background: #f8fbff;
    box-shadow: 0 0 0 1px #2563eb inset;
}

.credit-choice-option .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.credit-choice-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.credit-choice-option__title {
    font-weight: 600;
    color: #0f172a;
}

.credit-choice-option__text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.credit-consent-list .form-check-label {
    line-height: 1.45;
}

.credit-reason-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.credit-reason-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    min-width: 9.5rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.credit-reason-options--compact .credit-reason-option {
    min-width: 5.5rem;
    justify-content: center;
}

.credit-reason-option:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.credit-reason-option.is-selected {
    border-color: #6c757d;
    background: #f8f9fa;
}

.credit-reason-option .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.credit-reason-option__label {
    font-weight: 500;
    color: #212529;
    line-height: 1.2;
}

.credit-form-actions {
    padding: 0.85rem 0;
}

/* Section headers for the stacked single-card credit request form */
.credit-form-section-title {
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e6ed;
    font-size: 26px;
    font-weight: 700;
    color: #0e1726;
}

.credit-form-section-title:not(:first-child) {
    margin-top: 2rem;
}

.credit-form-section-title__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: #888ea8;
}

body.dark .credit-form-section-title {
    border-bottom-color: #3b3f5c;
    color: #e0e6ed;
}

.credit-review__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem 1.25rem;
    padding: 0.25rem 0 0.15rem;
}

.credit-review__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.credit-review__value {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
}

.credit-review__note {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.credit-review__note--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.credit-review__note--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.credit-review__actions {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e5e7eb;
}

.credit-review__actions-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.credit-status-panel {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem 1.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.credit-status-panel__head {
    margin-bottom: 0.95rem;
}

.credit-status-panel__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.credit-status-panel__hint {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.credit-status-panel__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}

.credit-status-panel__field--status {
    flex: 1 1 240px;
    min-width: 200px;
}

.credit-status-panel__field--submit {
    flex: 0 0 auto;
}

.credit-status-panel__field--submit .btn {
    min-width: 8.5rem;
    white-space: nowrap;
}

.credit-status-panel__message {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px dashed #d1d5db;
}

.credit-status-panel__message.is-hidden {
    display: none;
}

.credit-status-panel__form .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

/* Dashboard widgets */
.dashboard-stat {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e0e6ed;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.03);
}

.dashboard-stat__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dashboard-stat__label {
    font-size: 0.8rem;
    color: #888ea8;
    margin-bottom: 0.2rem;
}

.dashboard-stat__value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0e1726;
}

.dashboard-stat__subtitle {
    font-size: 0.78rem;
    color: #888ea8;
    margin-top: 0.25rem;
}

.dashboard-stat__link {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-stat--primary .dashboard-stat__icon {
    background: rgba(67, 97, 238, 0.12);
    color: #4361ee;
}

.dashboard-stat--warning .dashboard-stat__icon {
    background: rgba(226, 160, 63, 0.15);
    color: #e2a03f;
}

.dashboard-stat--success .dashboard-stat__icon {
    background: rgba(0, 171, 85, 0.12);
    color: #00ab55;
}

.dashboard-stat--danger .dashboard-stat__icon {
    background: rgba(231, 81, 90, 0.12);
    color: #e7515a;
}

.dashboard-stat--info .dashboard-stat__icon {
    background: rgba(33, 150, 243, 0.12);
    color: #2196f3;
}

.dashboard-stat--secondary .dashboard-stat__icon {
    background: rgba(136, 142, 168, 0.15);
    color: #888ea8;
}

.dashboard-stat--dark .dashboard-stat__icon {
    background: rgba(59, 63, 92, 0.12);
    color: #3b3f5c;
}

.dashboard-stat--filter {
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-stat--filter:hover {
    border-color: #4361ee;
    box-shadow: 0 0 14px 0 rgba(67, 97, 238, 0.12);
}

.dashboard-stat--filter:focus-visible {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.dashboard-stat--filter.is-active {
    border-color: #4361ee;
    box-shadow: 0 0 0 1px #4361ee, 0 0 14px 0 rgba(67, 97, 238, 0.12);
}

body.dark .dashboard-stat--filter:hover,
body.dark .dashboard-stat--filter.is-active {
    border-color: #4361ee;
    box-shadow: 0 0 0 1px #4361ee, 0 0 14px 0 rgba(67, 97, 238, 0.25);
}

.dashboard-panel {
    height: 100%;
}

.dashboard-panel .table td,
.dashboard-panel .table th {
    vertical-align: middle;
}

.dashboard-quick-links .btn {
    margin: 0 0.35rem 0.35rem 0;
}

.dashboard-filter-bar {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e0e6ed;
    box-shadow: none;
}

.dashboard-filter-form__main {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.85rem 1rem;
}

.dashboard-filter-form__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem;
    flex: 1 1 420px;
}

.dashboard-filter-field {
    min-width: 180px;
}

.dashboard-filter-field__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888ea8;
    margin-bottom: 0.4rem;
}

.dashboard-filter-field__sep {
    align-self: flex-end;
    padding-bottom: 0.8rem;
    font-size: 0.88rem;
    color: #bfc9d4;
}

.dashboard-filter-field .form-control,
.dashboard-filter-field .form-select {
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    border-color: #dbe0ea;
    background: #fafbff;
}

.dashboard-filter-field .form-control:focus,
.dashboard-filter-field .form-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.15rem rgba(67, 97, 238, 0.12);
    background: #fff;
}

.dashboard-filter-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-left: auto;
}

.dashboard-filter-form__actions .btn {
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.dashboard-filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
    padding-top: 0.15rem;
    border-top: 0;
}

.dashboard-filter-preset {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #dbe0ea;
    background: #fff;
    color: #515365;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.dashboard-filter-preset:hover {
    border-color: #4361ee;
    color: #4361ee;
    background: rgba(67, 97, 238, 0.04);
}

.dashboard-filter-preset.is-active {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

@media (max-width: 767.98px) {
    .dashboard-filter-form__main {
        align-items: stretch;
    }

    .dashboard-filter-form__actions {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-filter-field {
        flex: 1 1 calc(50% - 1rem);
    }

    .dashboard-filter-field__sep {
        display: none;
    }
}

.dashboard-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dashboard-donut-wrap {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: center;
}

.dashboard-donut {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.dashboard-donut::after {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #fff;
}

.dashboard-donut__center {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0e1726;
}

.dashboard-legend {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-legend__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.86rem;
}

.dashboard-legend__dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    display: inline-block;
}

.dashboard-legend__label {
    color: #515365;
}

.dashboard-legend__value {
    font-weight: 600;
    color: #0e1726;
}

.dashboard-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-health-tile {
    padding: 1rem;
    border: 1px solid #e0e6ed;
    border-radius: 0.5rem;
    background: #fafbff;
}

.dashboard-health-tile__label,
.dashboard-health-tile__note {
    color: #888ea8;
    font-size: 0.82rem;
}

.dashboard-health-tile__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0e1726;
    margin: 0.3rem 0;
}

.dashboard-bars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dashboard-bar-row__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
    color: #515365;
}

.dashboard-bar-row__track {
    width: 100%;
    height: 0.6rem;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-bar-row__fill {
    height: 100%;
    border-radius: inherit;
}

.dashboard-line-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-line-chart svg {
    width: 100%;
    height: 250px;
    background:
        linear-gradient(to bottom, rgba(224, 230, 237, 0.75) 1px, transparent 1px) 0 0 / 100% 25%,
        #fff;
    border-radius: 0.5rem;
}

.dashboard-line-chart__labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #888ea8;
}

.dashboard-trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #515365;
}

.dashboard-trend-legend i {
    width: 0.9rem;
    height: 0.2rem;
    display: inline-block;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.credit-requests-page .credit-requests-summary-table {
    max-height: 260px;
    overflow-y: auto;
}

.credit-requests-page .credit-requests-summary-table .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid #e0e6ed;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888ea8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.credit-requests-page .credit-requests-summary-table .table td {
    font-size: 0.88rem;
    color: #3b3f5c;
}

.credit-requests-page .credit-requests-summary-table .table tbody tr:last-child td {
    border-bottom: 0;
}

.credit-requests-page .dashboard-legend__item--filter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.2rem 0.35rem;
    text-align: left;
    font-size: 0.86rem;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.credit-requests-page .dashboard-legend__item--filter:hover,
.credit-requests-page .dashboard-legend__item--filter.is-active {
    background: rgba(67, 97, 238, 0.08);
}

.credit-requests-page .dashboard-legend__item--filter.is-active .dashboard-legend__label,
.credit-requests-page .dashboard-legend__item--filter.is-active .dashboard-legend__value {
    color: #4361ee;
}

.credit-requests-page .dashboard-donut--interactive {
    background: transparent;
    display: block;
}

.credit-requests-page .dashboard-donut--interactive::after {
    display: none;
}

.credit-requests-page .dashboard-donut__svg {
    width: 150px;
    height: 150px;
    display: block;
}

.credit-requests-page .dashboard-donut--interactive .dashboard-donut__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.credit-requests-page .dashboard-donut__segment {
    cursor: pointer;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.credit-requests-page .dashboard-donut__segment:hover {
    filter: brightness(1.08);
}

.credit-requests-page .dashboard-donut--has-filter .dashboard-donut__segment:not(.is-active) {
    opacity: 0.45;
}

.credit-requests-page .dashboard-donut__segment.is-active {
    filter: brightness(1.05);
    stroke: #4361ee;
    stroke-width: 2;
}

.credit-requests-page .credit-requests-carrier-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(67, 97, 238, 0.18);
    background: rgba(67, 97, 238, 0.06);
    color: #515365;
    font-size: 0.88rem;
}

.credit-requests-page .credit-requests-carrier-banner strong {
    color: #4361ee;
}

body.dark .credit-requests-page .credit-requests-summary-table .table thead th {
    background: #0e1726;
    border-bottom-color: #1b2e4b;
    color: #888ea8;
}

body.dark .credit-requests-page .credit-requests-summary-table .table td {
    color: #e0e6ed;
}

body.dark .credit-requests-page .credit-requests-carrier-banner {
    border-color: rgba(67, 97, 238, 0.35);
    background: rgba(67, 97, 238, 0.12);
    color: #bfc9d4;
}

#creditRequestsCurrentTable_wrapper div.dataTables_filter input,
#creditRequestsFinalisedTable_wrapper div.dataTables_filter input {
    width: 300px;
}

.credit-requests-list-table .credit-request-status-select {
    min-width: 11rem;
}

.credit-requests-list-table .credit-request-row-checkbox,
.credit-requests-list-table .credit-request-select-all {
    cursor: pointer;
}

.credit-requests-list-table .form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* Theme `.table .form-check-input` grey override wins over `:checked` — restore active checked styling */
.credit-requests-list-table .form-check-input:checked {
    background-color: #4361ee !important;
    border-color: #4361ee !important;
}

.credit-requests-list-table .form-check-input:not(:checked):not(:disabled) {
    background-color: #fff !important;
    border-color: #bfc9d4 !important;
}

.credit-requests-list-table .credit-request-follow-up-btn {
    min-width: 6.5rem;
    white-space: nowrap;
}

.credit-requests-list-table .credit-request-follow-up-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 6.5rem;
}

.credit-requests-list-table .credit-request-carrier-decision {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.credit-requests-list-table .credit-request-send-to-credit-btn,
.credit-requests-list-table .credit-request-send-to-myob-btn {
    min-width: 6.5rem;
    white-space: nowrap;
}

.credit-requests-list-table td .d-inline-flex.flex-nowrap {
    white-space: nowrap;
}

.credit-requests-list-table .credit-request-cr-placeholder {
    display: inline-block;
    color: #4361ee;
    font-weight: 600;
    cursor: default;
    user-select: none;
}

@media (max-width: 767.98px) {
    .credit-requests-page .dashboard-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 991.98px) {
    .dashboard-donut-wrap,
    .dashboard-health-grid {
        grid-template-columns: 1fr;
    }
}

.company-list-table tbody tr.company-radar-row,
.company-list-table tbody tr.company-radar-row > td {
    background-color: #f4fb65 !important;
}

/* Credit Requests — PDF §6.2.2 row highlighting */
#creditRequestsCurrentTable tbody tr.credit-request-row--new,
#creditRequestsCurrentTable tbody tr.credit-request-row--new > td,
#creditRequestsFinalisedTable tbody tr.credit-request-row--new,
#creditRequestsFinalisedTable tbody tr.credit-request-row--new > td,
#creditRequestsTable tbody tr.credit-request-row--new,
#creditRequestsTable tbody tr.credit-request-row--new > td {
    background-color: #86efac !important;
}

#creditRequestsCurrentTable tbody tr.credit-request-row--reopened,
#creditRequestsCurrentTable tbody tr.credit-request-row--reopened > td,
#creditRequestsFinalisedTable tbody tr.credit-request-row--reopened,
#creditRequestsFinalisedTable tbody tr.credit-request-row--reopened > td,
#creditRequestsTable tbody tr.credit-request-row--reopened,
#creditRequestsTable tbody tr.credit-request-row--reopened > td {
    background-color: #fdba74 !important;
}

body.dark #creditRequestsCurrentTable tbody tr.credit-request-row--new,
body.dark #creditRequestsCurrentTable tbody tr.credit-request-row--new > td,
body.dark #creditRequestsFinalisedTable tbody tr.credit-request-row--new,
body.dark #creditRequestsFinalisedTable tbody tr.credit-request-row--new > td,
body.dark #creditRequestsTable tbody tr.credit-request-row--new,
body.dark #creditRequestsTable tbody tr.credit-request-row--new > td {
    background-color: rgba(34, 197, 94, 0.45) !important;
}

body.dark #creditRequestsCurrentTable tbody tr.credit-request-row--reopened,
body.dark #creditRequestsCurrentTable tbody tr.credit-request-row--reopened > td,
body.dark #creditRequestsFinalisedTable tbody tr.credit-request-row--reopened,
body.dark #creditRequestsFinalisedTable tbody tr.credit-request-row--reopened > td,
body.dark #creditRequestsTable tbody tr.credit-request-row--reopened,
body.dark #creditRequestsTable tbody tr.credit-request-row--reopened > td {
    background-color: rgba(249, 115, 22, 0.45) !important;
}

.credit-note-mention {
    color: #1d4ed8;
    font-weight: 600;
}

/* Admin notification bell dropdown */
.navbar .navbar-item .nav-item.notification-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    position: relative;
}

.navbar .navbar-item .nav-item.notification-dropdown .nav-link i {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.navbar .navbar-item .nav-item.notification-dropdown .dropdown-menu.kis-notification-menu {
    min-width: 22rem;
    max-width: 22rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(31, 45, 61, 0.12);
}

.kis-notification-header,
.kis-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
}

.kis-notification-header {
    border-bottom: 1px solid #eef2f7;
}

.kis-notification-footer {
    justify-content: center;
    border-top: 1px solid #eef2f7;
    padding: 10px 14px;
}

.kis-notification-header-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0e1726;
}

.kis-notification-mark-all {
    border: 0;
    background: transparent;
    padding: 0;
    color: #4361ee;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.kis-notification-mark-all:hover {
    color: #2f4ad0;
    text-decoration: underline;
}

.kis-notification-mark-all[hidden] {
    display: none !important;
}

.kis-notification-footer a {
    color: #4361ee;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.kis-notification-footer a:hover {
    color: #2f4ad0;
    text-decoration: underline;
}

.kis-notification-list {
    max-height: 22rem;
    overflow-y: auto;
    background: #fff;
}

.kis-notification-list.is-empty {
    max-height: none;
    overflow: hidden;
}

.kis-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    text-align: center;
}

.kis-notification-empty i {
    font-size: 22px;
    color: #bfc9d4;
}

.kis-notification-empty p {
    margin: 0;
    font-size: 13px;
    color: #888ea8;
}

.kis-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f2f3;
    background: #fff;
    transition: background-color 0.15s ease;
}

.kis-notification-item:last-child {
    border-bottom: 0;
}

.kis-notification-item:hover {
    background: #f7f9fc;
}

.kis-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4361ee;
    flex-shrink: 0;
}

.kis-notification-icon i {
    font-size: 14px;
    line-height: 1;
}

.kis-notification-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.kis-notification-title {
    font-size: 13px;
    font-weight: 600;
    color: #0e1726;
    line-height: 1.35;
}

.kis-notification-body {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kis-notification-meta {
    font-size: 11px;
    color: #98a2b3;
    margin-top: 2px;
}

.badge.badge-company-yellow {
    background-color: #f5c518 !important;
    color: #3b3f5c !important;
}

.badge.badge-company-grey {
    background-color: #888ea8 !important;
    color: #ffffff !important;
}

.kis-notification-item.is-unread {
    background: #f8fbff;
}

.kis-notification-item.is-unread .kis-notification-title {
    font-weight: 700;
}

.company-action-menu .dropdown-item.disabled,
.company-action-menu .dropdown-item:disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

/* Sales list inline ETA / BDM */
.company-eta-input {
    min-width: 138px;
    max-width: 160px;
    height: 34px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    border-color: #e0e6ed;
    background: #fff;
}

.company-bdm-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 220px;
    max-width: 320px;
}

.company-bdm-cell .company-bdm-select {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0.25rem 1.75rem 0.25rem 0.6rem;
    font-size: 0.8125rem;
    border-color: #e0e6ed;
    background-color: #fff;
}

.company-bdm-cell.is-selected .company-bdm-select {
    border-color: #c9d4e4;
}

.company-bdm-assign {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 0.2rem 0.55rem;
    border: 1px solid #e0e6ed;
    border-radius: 0.375rem;
    background: #f8fafc;
    color: #506690;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.company-bdm-assign input {
    margin: 0;
    width: 0.9rem;
    height: 0.9rem;
    cursor: pointer;
    accent-color: #4361ee;
}

.company-bdm-cell.is-selected .company-bdm-assign {
    background: #fff;
    border-color: #c9d4e4;
    color: #3b3f5c;
}

.company-bdm-cell.is-assigned .company-bdm-assign {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.company-bdm-assign:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f1f2f3;
}

.company-bdm-assign:has(input:disabled) input {
    cursor: not-allowed;
}

.company-bdm-readonly {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 120px;
}

.company-bdm-readonly__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0e1726;
    line-height: 1.3;
}

.company-bdm-readonly__email {
    font-size: 0.75rem;
    color: #888ea8;
    line-height: 1.3;
}

.company-bdm-readonly__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.15rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 0.6875rem;
    font-weight: 700;
}

.company-list-table td {
    vertical-align: middle;
}

/* Complete Onboarding form */
.onboarding-ack-content {
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #f8f9fa;
    color: #3b3f5c;
    line-height: 1.55;
}

.onboarding-ack-content .onboarding-ack-section + .onboarding-ack-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e6ed;
}

.onboarding-ack-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #1b2e4b;
}

.onboarding-ack-content p {
    margin-bottom: 0.5rem;
}

.onboarding-ack-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.onboarding-ack-content li {
    margin-bottom: 0.25rem;
}

.onboarding-ack-content p:last-child,
.onboarding-ack-content ul:last-child {
    margin-bottom: 0;
}

body.dark .onboarding-ack-content {
    background: #1b2e4b;
    border-color: #1b2e4b;
    color: #e0e6ed;
}

body.dark .onboarding-ack-content .onboarding-ack-section + .onboarding-ack-section {
    border-top-color: #3b3f5c;
}

body.dark .onboarding-ack-content h3 {
    color: #fff;
}

/* Application agreement modals — reuse company-archive-modal layout */
.application-agreement-modal__content {
    color: #3b3f5c;
    line-height: 1.55;
}

.application-agreement-modal__content p:last-child,
.application-agreement-modal__content ul:last-child {
    margin-bottom: 0;
}

body.dark .application-agreement-modal__content {
    color: #e0e6ed;
}

.application-agreement-view-btn {
    color: #00ab55;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    box-shadow: none;
}

.application-agreement-view-btn:hover,
.application-agreement-view-btn:focus,
.application-agreement-view-btn:active {
    color: #00994d;
    background: none;
    border: 0;
    text-decoration: underline;
    box-shadow: none;
    outline: none;
}

.application-agreement-row .form-check {
    margin-bottom: 0;
}

/* Documents tab */
.company-documents-tab .company-documents-upload {
    padding: 1.25rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #fbfcfd;
}

.company-documents-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888ea8;
    font-weight: 600;
    border-bottom-color: #e0e6ed;
    background: transparent;
    padding-top: 0.35rem;
}

.company-documents-table tbody td {
    border-color: #f1f2f3;
    color: #3b3f5c;
    vertical-align: middle;
}

.company-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f1f2f3;
    flex-shrink: 0;
}

.company-document-name {
    color: #3b3f5c;
}

.company-documents-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #f1f2f3;
    color: #888ea8;
    font-size: 1.35rem;
}

body.dark .company-documents-tab .company-documents-upload {
    background: #0e1726;
    border-color: #1b2e4b;
}

body.dark .upload-dropzone-box {
    background-color: #191e3a;
    border-color: #3b3f5c;
}

body.dark .upload-dropzone-box:hover,
body.dark .upload-dropzone-box.is-dragover,
body.dark .upload-dropzone-box:focus {
    background-color: #1b2e4b;
    border-color: #4361ee;
}

body.dark .upload-dropzone-icon {
    background: #0e1726;
    border-color: #1b2e4b;
    color: #805dca;
}

body.dark .upload-dropzone-box .text-dark,
body.dark .company-document-name,
body.dark .company-documents-table tbody td {
    color: #e0e6ed !important;
}

body.dark .upload-file-preview,
body.dark #account-setup-form .account-setup-photo-preview {
    background: #0e1726;
    border-color: #1b2e4b;
}

body.dark .upload-file-preview-doc,
body.dark #account-setup-form .account-setup-photo-preview-pdf {
    background: #191e3a;
}

body.dark .upload-file-preview-meta,
body.dark #account-setup-form .account-setup-photo-preview-meta {
    background: #0e1726 !important;
    border-color: #1b2e4b;
    color: #e0e6ed !important;
}

body.dark .company-documents-empty__icon {
    background: #1b2e4b;
    color: #888ea8;
}

body.dark .company-document-icon {
    background: #1b2e4b;
}

body.dark .company-documents-table thead th {
    color: #888ea8;
    border-bottom-color: #1b2e4b;
}

body.dark .company-documents-table tbody td {
    border-color: #1b2e4b;
}

.form-group label, label {
   letter-spacing: 0px !important;
}

/* ABN lookup success status under the ABN field */
#abnClientFeedback.d-flex {
    gap: 0.45rem;
}

#abnClientFeedback .abn-status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: #00ab55;
    flex-shrink: 0;
}

/* Cork sidebar truncates long labels via #sidebar * { overflow:hidden; white-space:nowrap } */
#sidebar ul.menu-categories li.menu > .dropdown-toggle {
    height: auto;
    min-height: 42px;
    align-items: flex-start;
    white-space: normal;
    overflow: visible;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle > div {
    display: flex;
    align-items: flex-start;
    white-space: normal;
    overflow: visible;
    min-width: 0;
    flex: 1;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle > div > i,
#sidebar ul.menu-categories li.menu > .dropdown-toggle > div > svg {
    flex-shrink: 0;
    margin-top: 2px;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle > div > span {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.listing-card-toolbar{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: f9f8f8;
}

.listing-card-toolbar a,
.listing-card-toolbar button {
    display: unset !important;
    height: 36px !important;
    /* flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: #f9f8f8; */
}

.sales-stat-board__panel {
    padding: 1rem 0.25rem 0.5rem;
}

.sales-stat-board__panel--status {
    border-left: 1px solid var(--kis-border-soft);
}

@media (max-width: 991.98px) {
    .sales-stat-board__panel--status {
        border-left: 0;
        border-top: 1px solid var(--kis-border-soft);
    }
}

.sales-stat-board__panel-title {
    padding: 0 1rem 0.75rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--kis-text);
}

.sales-stat-board__bars {
    padding: 0 1rem 1rem;
}

/* Credit request @mention menu — email matches name color on active/hover */
#credit-note-mention-menu .credit-note-mention-email {
    color: #6c757d;
}

#credit-note-mention-menu .dropdown-item.active .credit-note-mention-email,
#credit-note-mention-menu .dropdown-item:hover .credit-note-mention-email {
    color: inherit;
}

/* User Management — tabs (Cork / app-nav-pills theme) */
.user-management-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 0.35rem;
    gap: 0.35rem;
    box-shadow: 0 2px 4px rgba(31, 45, 61, 0.04);
}

.user-management-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 6px;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4361ee;
    line-height: 1.25;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.user-management-tabs .nav-link:hover:not(.active) {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.08);
}

.user-management-tabs .nav-link.active {
    color: #fff;
    background-color: #4361ee;
}

.user-management-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(67, 97, 238, 0.12);
    color: #4361ee;
}

.user-management-tabs .nav-link.active .user-management-tabs__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

body.dark .user-management-tabs {
    background: #0e1726;
    border-color: #1b2e4b;
    box-shadow: none;
}

body.dark .user-management-tabs .nav-link {
    color: #8ab4ff;
}

body.dark .user-management-tabs .nav-link:hover:not(.active) {
    color: #8ab4ff;
    background: rgba(67, 97, 238, 0.15);
}

body.dark .user-management-tabs .nav-link.active {
    color: #fff;
    background-color: #4361ee;
}

body.dark .user-management-tabs__count {
    background: rgba(138, 180, 255, 0.15);
    color: #8ab4ff;
}

body.dark .user-management-tabs .nav-link.active .user-management-tabs__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Listing index pages — Credit Requests / Sales tabs + filter toolbar */
.listing-index-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.35rem 1.25rem 0;
    border-bottom: 1px solid #e0e6ed;
    background: #fff;
}

.listing-index-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.7rem;
}

.listing-index-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.listing-index-tabs .nav-item {
    margin: 0;
}

.listing-index-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.95rem 0.15rem 0.8rem;
    margin-right: 1.35rem;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent !important;
    color: #888ea8 !important;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: none !important;
}

.listing-index-tabs .nav-link:hover:not(.active),
.listing-index-tabs .nav-link:focus:not(.active) {
    color: #515365 !important;
    background: transparent !important;
}

.listing-index-tabs .nav-link.active {
    color: var(--kis-primary) !important;
    background: transparent !important;
    border-bottom-color: var(--kis-primary);
}

.listing-index-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    background: #eef2f7;
    color: #6b7280;
}

.listing-index-tabs .nav-link.active .listing-index-tabs__count {
    background: rgba(67, 97, 238, 0.12);
    color: var(--kis-primary);
}

.listing-index-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.listing-index-toolbar__left,
.listing-index-toolbar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem 1rem;
}

.listing-index-toolbar__right {
    margin-left: auto;
    flex-wrap: nowrap;
    align-items: center;
    flex: 0 0 auto;
}

.listing-index-toolbar .dashboard-filter-field {
    min-width: 0;
}

.listing-index-toolbar .dashboard-filter-field--status {
    min-width: 170px;
}

.listing-index-toolbar .dashboard-filter-field--results {
    min-width: 88px;
}

.listing-index-toolbar .dashboard-filter-field--search {
    width: 260px;
    max-width: 320px;
    flex: 0 0 auto;
}

.listing-index-toolbar .dashboard-filter-field__label {
    margin-bottom: 0.35rem;
}

.listing-index-toolbar .form-select,
.listing-index-toolbar .form-control,
.listing-index-toolbar select,
.listing-index-toolbar input[type="search"] {
    min-height: 2.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    border-color: #dbe0ea;
    background: #fff;
    border-radius: 0.45rem;
}

.listing-index-toolbar .dataTables_length,
.listing-index-toolbar .dataTables_filter {
    margin: 0;
    float: none;
    text-align: left;
}

.listing-index-toolbar .dashboard-filter-field--results select {
    width: auto;
    min-width: 72px;
}

.listing-index-toolbar .dashboard-filter-field--search input {
    width: 100%;
    min-width: 0;
}

.listing-index-toolbar .btn {
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.listing-index-table-wrap .dt--top-section {
    display: none !important;
}

.listing-index-table-wrap .widget-content-area {
    padding-top: 0.35rem;
}

body.dark .listing-index-header,
body.dark .listing-index-toolbar {
    background: #0e1726;
    border-color: #1b2e4b;
}

body.dark .listing-index-tabs .nav-link {
    color: #888ea8 !important;
}

body.dark .listing-index-tabs .nav-link:hover:not(.active),
body.dark .listing-index-tabs .nav-link:focus:not(.active) {
    color: #bfc9d4 !important;
}

body.dark .listing-index-tabs .nav-link.active {
    color: #8ab4ff !important;
    border-bottom-color: var(--kis-primary);
}

body.dark .listing-index-tabs__count {
    background: #1b2e4b;
    color: #bfc9d4;
}

body.dark .listing-index-tabs .nav-link.active .listing-index-tabs__count {
    background: rgba(67, 97, 238, 0.22);
    color: #8ab4ff;
}

/* Account Adjustment — Add Users panel */
#accountAdjustmentForm .account-adjustment-add-users-panel {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 4px rgba(31, 45, 61, 0.04);
}

#accountAdjustmentForm .account-adjustment-add-users-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

#accountAdjustmentForm .account-adjustment-add-users-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #0e1726;
    background: #ddf5f0;
    border: 1px solid #b8ece0;
}

#accountAdjustmentForm .account-adjustment-add-users-table {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#accountAdjustmentForm .account-adjustment-add-users-table__head,
#accountAdjustmentForm .account-adjustment-add-user-row-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) 2.75rem;
    gap: 0.75rem;
    align-items: start;
}

#accountAdjustmentForm .account-adjustment-add-users-table__head {
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e0e6ed;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #888ea8;
}

#accountAdjustmentForm .account-adjustment-add-user-row-item {
    padding: 0.85rem;
    border-bottom: 1px solid #eef2f7;
}

#accountAdjustmentForm .account-adjustment-add-user-row-item:last-child {
    border-bottom: 0;
}

#accountAdjustmentForm .account-adjustment-add-users-field {
    min-width: 0;
}

#accountAdjustmentForm .account-adjustment-add-users-table__actions,
#accountAdjustmentForm .account-adjustment-add-users-table__actions-head {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.15rem;
}

#accountAdjustmentForm .account-adjustment-add-users-table__actions .btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #e0e6ed;
    color: #888ea8;
}

#accountAdjustmentForm .account-adjustment-add-users-table__actions .btn:hover {
    color: #e7515a;
    border-color: #fecaca;
    background: #fef2f2;
}

#accountAdjustmentForm .account-adjustment-add-users-hint {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #888ea8;
}

@media (max-width: 767.98px) {
    #accountAdjustmentForm .account-adjustment-add-users-table__head {
        display: none;
    }

    #accountAdjustmentForm .account-adjustment-add-user-row-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem 0.85rem;
    }

    #accountAdjustmentForm .account-adjustment-add-users-table__actions {
        justify-content: flex-end;
        padding-top: 0;
    }

    #accountAdjustmentForm .account-adjustment-add-users-field .form-label:not(.visually-hidden) {
        display: block;
    }
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-panel {
    background: #0e1726;
    border-color: #3b3f5c;
    box-shadow: none;
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-tag {
    color: #e0e6ed;
    background: rgba(26, 188, 156, 0.16);
    border-color: rgba(26, 188, 156, 0.35);
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-table {
    background: #0e1726;
    border-color: #3b3f5c;
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-table__head {
    background: #191e3a;
    border-bottom-color: #3b3f5c;
    color: #888ea8;
}

body.dark #accountAdjustmentForm .account-adjustment-add-user-row-item {
    border-bottom-color: #3b3f5c;
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-table__actions .btn {
    background: #191e3a;
    border-color: #3b3f5c;
    color: #888ea8;
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-table__actions .btn:hover {
    color: #fca5a5;
    border-color: rgba(231, 81, 90, 0.45);
    background: rgba(231, 81, 90, 0.12);
}

body.dark #accountAdjustmentForm .account-adjustment-add-users-hint {
    color: #888ea8;
}

/* Credit request show — inline amount edit */
.credit-request-amount-editor [data-amount-display] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.credit-request-amount-editor [data-amount-display-value],
.credit-request-amount-editor [data-amount-display-goods] {
    font-size: 1.05rem;
    line-height: 1.3;
}

.credit-request-amount-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    border-width: 1px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.credit-request-amount-edit-btn i {
    font-size: 0.75rem;
}