@import url('satoshi.css');

/* --- Root Variables --- */
:root {
    --primary-purple: #823179;
    --primary-button: #AAEA00;
    --primary-yellow: #fecc5f;
    --primary-yellow-light: #fffaef;
    --secondary-pink: #ef4075;
    --secondary-orange: #f26a5d;
    --secondary-blue: #2c6fb3;
    --secondary-light-blue: #85b3c0;
    --secondary-green: #ffa447;
    --secondary-red: #f26a5d;
    --primary-grey: #dbdddb;
    --primary-grey-light: #f1f1f1;
    --primary-black: #434648;

    --bs-text-primary: #000000;
    --bs-menu-link-color-hover: #000000;
    --bs-primary-active: #AAEA00;
    --bs-primary: #aaea004d;

    --elroy-green: #AAEA00;
    --elroy-green-10: #f7fde6;
    --elroy-green-20: #eefbcc;
    --elroy-green-30: #e6f9b3;
    --bs-primary-light: #f7fde6;

    --elroy-stone-900: #1C1917;
    --elroy-stone-800: #292524;
    --elroy-stone-700: #44403C;
    --elroy-stone-600: #57534E;
    --elroy-stone-500: #78716C;
    --elroy-stone-400: #A8A29E;
    --elroy-stone-300: #D6D3D1;
    --elroy-stone-200: #E7E5E4;
    --elroy-stone-100: #F5F5F4;
    --bs-info-light: #F5F5F4;

    --border-radius: 0.65rem;
}

/* --- Global Styles --- */
body {
    font-weight: 400;
    font-family: 'Satoshi-Variable', Helvetica, sans-serif;
    background-color: #f5f8fa;
}

a {
    color: var(--elroy-stone-900) !important;
}

a:hover {
    font-weight: 800;
    text-decoration: underline;
}

p a, p a:hover {
    text-decoration: underline !important;
}

a.text-primary:hover, a.text-primary:focus {
    color: var(--success) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
}

/* --- Layout & Structure --- */
.app-header {
    background-color: #ffffff !important;
    margin-bottom: 20px;
}

#kt_content_container {
    position: relative;
    flex: 1;
    min-height: 600px;
}

#kt_footer {
    margin-top: 2rem !important;
    padding-bottom: 2rem !important;
}

#kt_app_wrapper {
    transition: margin-left 0.3s ease;
}

/* --- Utility Classes --- */
.hidden { display: none; }
.visuallyhidden { opacity: 0; }
.mw-140px { min-width: 140px; }
.cellCenter { text-align: center; }
.cellRight { text-align: right; }
.cellInline { display: inline-flex; }
.font-size-10px { font-size: 10px; }
.elroy-uppercase { text-transform: uppercase !important; font-weight: 400 !important; }
.elroy-sm { font-size: 10px; }
.elroy-upper { text-transform: uppercase !important; }

/* Text & Background Colors */
.text-dark { color: #505050 !important; }
.text-aaa { color: #AAA !important; }
.text-elroy-stone-400 { color: var(--elroy-stone-400) !important; }
.text-mid-grey { color: #a1a5b7 !important; }
.text-primary { color: var(--primary) !important; }
.text-yellow { color: var(--primary-yellow) !important; }
.text-active-primary { transition: color .2s ease; font-weight: 800; }
.text-hover-primary:hover { transition: color .2s ease; color: #000 !important; font-weight: 800; }
.bg-primary { background-color: var(--elroy-green) !important; }
.bg-yellow { background-color: var(--primary-yellow) !important; }
.bg-yellow-light { background-color: var(--primary-yellow-light) !important; }
.bg-grey { background-color: var(--primary-grey) !important; }
.bg-dark { background-color: var(--elroy-stone-900) !important; }
.bg-light-primary { background-color: var(--elroy-green-10) !important; }
.bg-light-secondary { background-color: var(--elroy-stone-100) !important; }
.bg-success { background-color: var(--secondary-green) !important; }

/* Borders */
.border-primary { border-color: var(--elroy-green) !important; }
.border-bottom-dark { border-bottom-color: var(--elroy-stone-900) !important; }
.border-primary-subtle { border-color: var(--elroy-green-30) !important; }

/* --- Components: Badges --- */
.badge-success { background-color: #48a58a; }
.badge-light-info { color: #823179; background-color: #82317920; }
.badge-primary { background-color: var(--secondary-blue); }
.badge-light-grey { background-color: var(--elroy-stone-100); }
.badge-light-elroy-outline { color: var(--elroy-stone-900) !important; background-color: transparent !important; font-size: 10px !important; text-transform: uppercase !important; border: 2px solid #1c1917 !important; border-radius: 5px !important; transition: background-color 250ms ease; }
.badge-light-elroy-clear { color: var(--elroy-stone-900) !important; background-color: transparent !important; font-size: 10px !important; text-transform: uppercase !important; transition: background-color 250ms ease; }
.badge-verified { background-color: var(--elroy-green-10) !important; color: var(--elroy-stone-900) !important; }
.status-badge { background-color: #f7fde6; color: #000000; font-size: 13px; display: inline-block; padding: 2px 8px; border-radius: 12px; margin-top: 4px; }

/* --- Components: Cards --- */
.card.card-custom > .card-body.registrationCard,
.card.card-custom > .card-body.noticeBlock {
    padding: 1rem 1rem;
    background-color: #e6f1ee;
    border-radius: 8px;
}
.card.elroy-card > .card-header { background-color: #ffffff !important; color: var(--elroy-stone-900) !important; min-height: 90px !important; }
#kt_content_container .card .card-header:not(.card-header-compact) { min-height: 90px !important; }
.card-header.card-header-compact { background-color: #ffffff !important; color: var(--elroy-stone-900) !important; min-height: 30px !important; padding: 0.25rem 0.25rem 0.75rem 1.25rem; }
.card .card-body { padding-bottom: 2rem; }
.card-body > *:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* --- Components: Modals --- */
.modal { z-index: 200; }
.modal-backdrop { z-index: 199; }
.modal.container-modal { position: absolute; }
.modal .modal-header { background-color: transparent; border-bottom: 1px solid rgb(241, 241, 244) !important; padding: 1.5rem 1.75rem 1rem 1.75rem; }
.modal .modal-footer { background-color: transparent; border-top: 1px solid rgb(241, 241, 244) !important; padding: 1rem 1.75rem 1.5rem 1.75rem; }
.modal-title { color: var(--elroy-stone-900) !important; font-weight: 700 !important; }
.modal-size-elroy { left: 12% !important; margin-top: 95px !important; }

/* Elroy Custom Modal Styles */
.elroyModal input:read-only { background-color: #eff2f5; }
.elroyModal.modal-body { padding: 0; }
.elroy-modal .modal-body { padding: 0px !important; }
.elroyModal .card .card-footer { padding: 1rem 2.25rem; box-shadow: 0px -1px 10px 0px #eee; }
.elroyModal .card-header { background-color: #fff; }
.elroyModal .nav-line-tabs .nav-item .nav-link { color: var(--elroy-stone-900) !important; }
.elroyModal .nav-line-tabs .nav-item .nav-link:hover:not(.disabled) { color: var(--primary-black) !important; border-bottom: none !important; }
.elroyModal .nav-line-tabs .nav-item .nav-link.active { color: var(--primary-black) !important; border-bottom: 1px solid var(--primary-black); }
.elroyModal .dropdown-toggle::after { display: none; }

/* --- Components: Accordion --- */
.accordion-item { border-top: none !important; border-left: none !important; border-right: none !important; }
.accordion-item .accordion-button { padding: 0.8rem 1.6rem !important; color: var(--elroy-stone-900); background-color: var(--elroy-stone-100); }
.accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23AAEA00' %3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important; }
#referenceBlock .accordion-item:last-child { border-bottom: none !important; }
.disabled-reference { cursor: default !important; }
.disabled-reference * { cursor: auto; }
.disabled-reference .fa-solid { opacity: 0.3; }
.accordion-header .fa-solid { transition: transform 0.2s ease-in-out; }
.accordion-button.completed::after { background-image: none !important; transform: none !important; content: ""; width: 1.25rem; height: 1.25rem; margin-left: auto; background: radial-gradient(circle, #212529 0 99%, transparent 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.173 12.414a1 1 0 0 1-1.414 0L1.879 9.535a1 1 0 1 1 1.414-1.415l2.18 2.181 6.233-6.233a1 1 0 1 1 1.414 1.414z'/%3E%3C/svg%3E") center/70% 70% no-repeat; background-color: #fff; position: relative; border-radius: 50%; }
.accordion-button.completed[disabled] { cursor: default; opacity: 1; }

/* --- Components: Navigation & Menus --- */
.menu-item .menu-link .menu-title,
.menu-link .menu-item,
.nav-item .nav-link {
    text-transform: uppercase;
}
.menu-state-title-primary .menu-item .menu-link:hover:not(.disabled):not(.active),
.menu-state-title-primary .menu-item.hover > .menu-link:not(.disabled):not(.active),
.menu-state-title-primary .menu-item.here > .menu-link,
.menu-state-title-primary .menu-item.show > .menu-link,
.menu-state-title-primary .menu-item .menu-link:hover:not(.disabled):not(.active) .menu-title,
.menu-state-title-primary .menu-item.hover > .menu-link:not(.disabled):not(.active) .menu-title,
.menu-state-title-primary .menu-item.here > .menu-link .menu-title,
.menu-state-title-primary .menu-item.show > .menu-link .menu-title,
.menu-state-icon-primary .menu-item .menu-link:hover:not(.disabled):not(.active) .menu-icon i,
.menu-state-icon-primary .menu-item.hover > .menu-link:not(.disabled):not(.active) .menu-icon i {
    color: var(--elroy-stone-900) !important;
    text-decoration: underline;
    text-transform: uppercase;
}
.menu-state-title-primary .menu-item .menu-link:hover:not(.disabled):not(.active),
.menu-state-title-primary .menu-item.hover > .menu-link:not(.disabled):not(.active) {
    transition: color .2s ease, background-color .2s ease;
}
.menu-state-color .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
.menu-state-color .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    font-weight: 800 !important;
}
.menu.menu-sub.menu-sub-dropdown.menu-column.menu-rounded { z-index: 12; }

/* Sidebar */
#kt_app_sidebar_secondary_wrapper { background-color: #fff !important; padding-top: 20px !important; border-top-right-radius: 10px !important; }
#kt_app_sidebar_secondary_wrapper .badge { min-width: unset; width: 1.5rem; height: 1.5rem; font-size: 0.7rem !important; padding: 0.3rem 0.5rem !important; margin-left: 4px !important; border-radius: 6px !important; }
[data-kt-app-sidebar-fixed=true] .app-wrapper { margin-left: calc(var(--bs-app-sidebar-width) + var(--bs-app-sidebar-gap-start, 0px) + var(--bs-app-sidebar-gap-end, 0px)); }
[data-kt-app-sidebar-fixed=true] .app-wrapper.sidebar-collapsed { margin-left: 10px !important; }
.app-wrapper.sidebar-collapsed .app-sidebar-primary, .app-wrapper.sidebar-collapsed .app-sidebar { width: 115px !important; }
.app-wrapper.sidebar-collapsed .app-sidebar-secondary { width: 0px !important; }

/* Sidebar Icon State Logic */
.app-sidebar .nav-link .nav-icon-outline { display: inline-block; }
.app-sidebar .nav-link .nav-icon-solid { display: none; }
.app-sidebar .nav-link.active .nav-icon-solid { display: inline-block; }
.app-sidebar .nav-link.active .nav-icon-outline { display: none; }

/* Header Menu */
.app-header-menu .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
.app-header-menu .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    transition: color .2s ease;
    background-color: transparent !important;
}
.app-header-menu .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
.app-header-menu .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title {
    color: #000 !important;
}

/* Nav tabs */
.nav-line-tabs .nav-item .nav-link.active,
.nav-line-tabs .nav-item .nav-link:hover:not(.disabled),
.nav-line-tabs .nav-item.show .nav-link {
    border-bottom: 1px solid var(--elroy-stone-600) !important;
}
.nav .nav-link.active .nav-text, .nav .nav-link.active .nav-icon i { color: var(--success); }
.nav .nav-link.active .nav-text:hover, .nav .nav-link.active .nav-icon i:hover { color: var(--success); }
.nav-link:hover:not(.disabled), .nav .nav-link.active { color: var(--success) !important; }

/* --- Components: Forms --- */
.form-control { background-color: #fff; }
.form-control:focus { border: 1px solid var(--elroy-green) !important; box-shadow: none !important; }
.form-control.form-control-search { padding-left: 1.25rem !important; }
.form-control-search.form-control:focus { border: none !important; }
.form-control.is-valid, .was-validated .form-control:valid { border-color: #e4e6ef !important; }
.form-control.is-valid:focus, .was-validated .form-control:valid:focus { border: 1px solid var(--elroy-green) !important; box-shadow: none !important; }
.form-control.is-valid,.was-validated .form-control:valid { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23AAEA00' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important; background-size: calc(0.5em + 0.5rem) calc(0.5em + 0.5rem) !important; }

/* Form Check / Switch */
.form-check .form-switch .form-check-label { color: var(--elroy-stone-800); opacity: 1 !important; }
.form-check .form-switch .form-check-input { background-color: var(--elroy-stone-400); border-color: var(--elroy-stone-800); opacity: 1 !important; }
.form-check.form-check-solid .form-check-input:checked { background-color: var(--elroy-stone-600) !important; opacity: 1 !important; }
.form-check.form-check-solid .form-check-input:disabled { background-color: var(--elroy-stone-200) !important; opacity: 1 !important; }
.form-check-input:disabled ~ .form-check-label, .form-check-input[disabled] ~ .form-check-label { opacity: 1 !important; font-weight: 600 !important; }
.login.form-check-input { width: 1.25rem !important; height: 1.25rem !important; }
.login.form-check-input:checked { background-color: var(--elroy-stone-900) !important; border-color: var(--elroy-stone-900) !important; }
.credit-app-document-toggle { cursor: pointer; width: 2.2rem; height: 2.2rem; }

/* Select2 */
.form-select { border: 1px solid #ffffff !important; }
.form-select.elroy-select2 { border: 1px solid #e4e6ef !important; padding-top: 1.85rem !important; padding-bottom: .625rem !important; }
.select2-container--bootstrap5 .select2-selection--single .select2-selection__rendered { color: var(--bs-gray-700); font-size: 1.1rem; font-weight: 500; padding-top: 0.9rem !important; }
.select2-container--bootstrap5 .select2-selection--single { padding-bottom: 0.45rem !important; }
.elroy-select-container .select2-selection__rendered { padding-top: 11px; }
.elroy-select-container .select2-selection { min-height: 48px; }
.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected { color: var(--elroy-stone-900) !important; }
.select2-results__option.select2-results__option--selected::after { background-color: var(--elroy-stone-900) !important; }
.select2-results__option--highlighted { font-weight: 700; color: var(--elroy-stone-900) !important; }

/* Floating Labels */
.form-floating > label { font-size: 12px; padding: 1rem 2rem; }
.floating-label { opacity: .65; transform: scale(.85) translateY(-0.5rem) translateX(0.15rem); }
.input-group-left-floating-label { margin-left: 60px !important; }
.form-floating > .form-control-plaintext ~ label::after, .form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after, .form-floating > .form-select ~ label::after { background-color: #ffffff00 !important; }

/* Custom Inputs & Layout */
.elroy-form { background-color: #fff; border-radius: 8px; }
.elroy-notes-input { width: 100%; height: auto; min-height: 50px; padding: 10px; resize: vertical; white-space: pre-wrap; overflow-wrap: break-word; }
.elroy-radio-inline { line-height: 1.5; color: var(--bs-gray-700); appearance: none; border: 1px solid var(--bs-gray-300); border-radius: .65rem; box-shadow: none; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; padding: .775rem 1rem; }
.elroy-radio-inline-header { font-size: 10px; padding-bottom: 1rem; }
.maskedInput { padding-top: 1.625rem; padding-bottom: 0.3rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; display: block; transform: translate(0, -50%); top: 50%; pointer-events: none; width: 30px; text-align: center; font-style: normal; font-size: 16px; }
.input-icon > input { padding-left: 25px; padding-right: 0; }
#form-mfa-options .form-check-label { font-weight: 600; }
.star-label-text { font-size: 10px; color: #e4e6ef; }

/* --- Components: Typeahead (Autocomplete) --- */
.twitter-typeahead { display: block !important; width: 100%; }
.tt-menu { margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; }
.typeahead .tt-menu { min-width: 500px; }
.typeahead .tt-menu .tt-dataset .tt-suggestion { border-bottom: 1px solid #e4e6ef; }
.typeahead .form-control.tt-hint { padding-top: 1.625rem; padding-bottom: 0.2rem; }
.typeahead.search .twitter-typeahead { width: calc(100% - 40px); }
.tt-suggestion.tt-selectable { border-bottom: 1px solid #ccc; padding: 10px; }
.tt-suggestion.tt-selectable:hover { background-color: #fffaef; }
.tt-suggestion.tt-selectable:last-child { border-bottom-radius: 4px; }
.tt-menu-bank { color: var(--elroy-green); font-weight: 800; }
.typeahead-search-icon { text-align: center; vertical-align: middle; padding-top: 14px; background-color: var(--elroy-green-30); width: 40px; font-size: 18px !important; height: 45px; }

/* --- Components: Dropzone & File Upload --- */
.dropzone-multi-file { background-color: #fff !important; border-color: var(--bs-gray-300); border-style: none; border-radius: 8px; margin: 0 0 10px 0; padding: 5px; }
.file-drop-box { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed var(--elroy-stone-300); border-radius: .65rem; padding: 2rem 1rem; cursor: pointer; transition: all .2s ease; }
.file-drop-box-label { font-weight: 500; color: var(--elroy-stone-700); }
.file-drop-box:hover, .file-drop-box.drag-over { border-color: var(--elroy-stone-500); background-color: var(--elroy-stone-100); }
.file-drop-box:hover .file-drop-icon-default, .file-drop-box.drag-over .file-drop-icon-default { display: none !important; }
.file-drop-box:hover .file-drop-icon-hover, .file-drop-box.drag-over .file-drop-icon-hover { display: inline-block !important; }
.file-drop-box > * { pointer-events: none; }
.dropzone.dropzone-box-style { padding: 0; border: none; background-color: transparent; }
.dropzone .dropzone-items { width: 100%; }
.dropzone .dropzone-items .dropzone-item { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 0.5rem; }
.dropzone .dropzone-items .dropzone-item .dropzone-file { flex-grow: 1; text-align: left; }
.dropzone .dropzone-items .dropzone-item .dropzone-toolbar { margin-left: 1rem; }
#creditapp_tcs_dropzone .dropzone-item,
#creditapp_contract_dropzone .dropzone-item,
#creditapp_other_dropzone .dropzone-item {
    background-color: var(--elroy-stone-100);
    border: 1px solid var(--elroy-stone-200);
    border-radius: 0.475rem;
    padding: 0.75rem 1.25rem;
    transition: background-color .2s ease;
}
#creditapp_tcs_dropzone .dropzone-item:hover,
#creditapp_contract_dropzone .dropzone-item:hover,
#creditapp_other_dropzone .dropzone-item:hover {
    background-color: var(--elroy-stone-200);
}
#creditapp_tcs_dropzone .dropzone-item:hover .dropzone-delete i,
#creditapp_contract_dropzone .dropzone-item:hover .dropzone-delete i,
#creditapp_other_dropzone .dropzone-item:hover .dropzone-delete i {
    color: var(--elroy-stone-700) !important;
}
.dropzone-item:hover .dropzone-filename span,
.dropzone-item:hover .dropzone-filename strong {
    color: var(--elroy-stone-700) !important;
}

/* --- Components: DataTables --- */
table.dataTable { margin-bottom: 0px !important; }
table.dataTable > thead .sorting::after,
table.dataTable > thead .sorting_asc::after,
table.dataTable > thead .sorting_asc_disabled::after,
table.dataTable > thead .sorting_desc::after,
table.dataTable > thead .sorting_desc_disabled::after {
    content: "" !important;
}
table.table-bordered.dataTable tbody td, table.table-bordered.dataTable tbody th { vertical-align: middle; border-bottom: 1px solid #ccc; }
.dataTable .rating-container .caption { display: none; }
.dataTable .rating-container { padding-top: 0px; }
.dataTable .form-check.form-check-custom { display: block; }
.dataTable .table.dataTable>thead>tr>td:not(.sorting_disabled), table.dataTable>thead>tr>th:not(.sorting_disabled) { padding-right: 5px !important; }
table.dataTable > thead > tr > th:last-child { padding-right: 1.5rem !important; }
table.dataTable>thead>tr>th:not(.sorting_disabled).action-header { padding-right: 16px !important; }
table.dataTable th > .dt-column-order { display: inline-block; width: 1em; margin-left: 0.5em; color: transparent; }
div.dataTables_wrapper div.dataTables_filter input { margin-left: 0; }
.paginate_button.page-item.active .page-link { background-color: #43464850; }
.page-item.active .page-link { background-color: var(--elroy-stone-600); }
.elroy-dt-toolbar { padding: 0 1.5rem !important; }
.table.dataTable.table-hover > tbody > tr:hover > * { box-shadow: inset 0 0 0 9999px rgba(0,0,0,.075); transition: color .2s ease; }

/* Datatables Scroll Fade Indicator */
.datatable-scroll-fade-container { position: relative; }
.datatable-scroll-fade-container::before, .datatable-scroll-fade-container::after { content: ''; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; transition: opacity 0.05s ease-in-out; }
.datatable-scroll-fade-container::before { top: 41px; background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05) 90%); opacity: 0; }
.datatable-scroll-fade-container::after { bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05) 90%); }
.datatable-scroll-fade-container.is-scrolled-from-top::before { opacity: 1; }
.datatable-scroll-fade-container.is-scrolled-to-end::after { opacity: 0; }

/* --- Components: Miscellaneous --- */
/* Alerts & Notices */
.alert-info { color: var(--elroy-stone-900); background-color: var(--elroy-stone-100); border-color: var(--elroy-stone-300); }
#add_bank_account_notice, #add_address_notice { cursor: pointer; transition: background-color .2s ease; }
#add_bank_account_notice:hover, #add_address_notice:hover { background-color: var(--elroy-green-20) !important; }

/* Timeline */
.timeline-label:before { left: 166px; }
.timeline-label .timeline-label { width: 165px; }

/* Toastr */
.toastr.toastr-success { background-color: var(--elroy-green) !important; color: var(--elroy-stone-900) !important; }

/* Currency Formatting */
.currency { text-align: right; }
.currency::before { content: "$"; float: left; padding-right: 4px; }

/* Underline Animation */
.underlineAnimation:hover { cursor: pointer; }
.underlineAnimation .underlineAnimationTitle { text-align: center; margin: 0 auto; padding: 0; transition: all 0.1s ease-in-out; position: relative; }
.underlineAnimation .underlineAnimationTitle::before, .underlineAnimation .underlineAnimationTitle::after { content: ""; position: absolute; bottom: -5px; width: 0px; height: 1px; margin: 5px 0 0; transition: all 0.1s ease-in-out; transition-duration: 0.1s; opacity: 0; background-color: #813379; }
.underlineAnimation .underlineAnimationTitle::before { left: 50%; }
.underlineAnimation .underlineAnimationTitle::after { right: 50%; }
.underlineAnimation:hover .underlineAnimationTitle::before, .underlineAnimation:hover .underlineAnimationTitle::after { width: 50%; opacity: 1; }

/* Pin Code Input */
.form__pincode { display: block; width: 100%; margin: 10px auto 20px; padding: 0; }
.form__pincode::before, .form__pincode::after { display: table; content: ''; }
.form__pincode::after { clear: both; }
.form__pincode > input { display: inline-block; width: 59px; height: 59px; line-height: 48px; text-align: center; font-size: 2em; color: #181819; border: 1px solid #e4e6ef; border-radius: 0.475rem; transition: background-color 0.3s, color 0.3s, opacity 0.3s; user-select: none; margin: 10px 2% 0 0; padding: 0; }
.form__pincode > input:last-child { margin-right: 0; }
.form__pincode > input:focus { outline: 0; box-shadow: none; border: 1px solid var(--elroy-green) !important; }
.form__group--error.form__pincode > input,
.form__group--error.form__pincode > input[disabled] { background-color: #eb3b3b; color: #fff; opacity: 1; }
.form__group--success.form__pincode > input,
.form__group--success.form__pincode > input[disabled] { background-color: #32c832; color: #fff; opacity: 1; }

/* Stepper */
.stepper-box { background-color: white; border-radius: 12px; padding: 32px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.stepper-step { display: flex; margin-bottom: 32px; position: relative; }
.stepper-step:last-child { margin-bottom: 0; }
.stepper-line { position: absolute; left: 19px; top: 40px; bottom: -32px; width: 2px; background-color: #e2e8f0; z-index: 1; }
.stepper-step:last-child .stepper-line { display: none; }
.stepper-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 16px; z-index: 2; }
.stepper-completed .stepper-circle { background-color: #0f172a; color: white; }
.stepper-active .stepper-circle { border: 2px solid #0f172a; color: #0f172a; }
.stepper-pending .stepper-circle { border: 2px solid #e2e8f0; color: #94a3b8; }
.stepper-content { flex: 1; }
.stepper-title { font-weight: 600; margin-bottom: 4px; }
.stepper-completed .stepper-title, .stepper-active .stepper-title { color: #0f172a; }
.stepper-pending .stepper-title { color: #94a3b8; }
.stepper-status { font-size: 13px; display: inline-block; padding: 2px 8px; border-radius: 12px; margin-top: 4px; }
.stepper-completed .stepper-status { background-color: #f7fde6; color: #000000; }
.stepper-time { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.stepper-align-container { display: flex; width: 100%; margin-bottom: 32px; padding: 0 5%; }
.stepper-align-container.align-left { justify-content: flex-start; }
.stepper-align-container.align-right { justify-content: flex-end; }
.stepper-box { width: 80%; }
.stepper-box #fileDownloadGrid { max-width: fit-content; }

/* Charts & Dashboard */
.dashboard-chart { min-height: 315px; }
.am5-modal { z-index: 20 !important; }
.dashboard-chart .am5-modal-content { display: inline-block; padding: 0.8em; vertical-align: middle; text-align: left; white-space: normal; background: rgb(255, 255, 255); border-radius: 4px; box-shadow: none; color: rgb(0, 0, 0); }
.overlay-block { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; background-color: rgba(255, 255, 255, 0.8); }

/* --- Page Specific / Overrides --- */
/* Login Page */
.login.login-3 .login-aside .aside-img-wizard { background-size: 515px; }

/* Company Page */
.companyLogo .image-input .image-input-wrapper { width: 240px; height: 80px; }
.companyBankLogoBlock { border: 1px solid #ccc; border-radius: 6px; padding: 10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10), 0 6px 20px 0 rgba(0, 0, 0, 0.10); margin-bottom: 20px; }
.companyBankLogoBlock img { width: 100%; }
#reference_bank_bankRoutingId { padding-top: 1.625rem; padding-bottom: 0.2rem; }
.bank-bank-search-result { border-bottom: 1px solid var(--elroy-green-30); margin-bottom: 20px; }
.unverified { font-size: 10px; color: var(--bs-active-danger); float: right; padding-right: 10px; }

/* Google Maps Autocomplete */
.pac-container { z-index: 201 !important; background-color: #FFF; position: fixed; display: inline-block; float: left; }
gmp-place-autocomplete { width: 92% !important; flex: 0 0 auto; font-size: 1.1rem; font-weight: 500; line-height: 1.5; color: var(--bs-gray-700) !important; appearance: none; background-color: var(--bs-body-bg); background-clip: padding-box; border: 1px solid var(--bs-gray-300); border-radius: .65rem; box-shadow: none; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
input.pac-target-input { color: #000 !important; background-color: #fff !important; }
#address-container .input-group-text { width: 8% !important; }

/* Tasks */
.taskBlock:hover { background-color: transparent !important; }
.taskBlock:hover .taskMark { background-color: var(--elroy-green-30) !important; }
.taskBlock:hover .text-hover-primary { font-weight: 800 !important; }
.task-item.completed-task:hover .task-hide-btn { display: inline !important; font-weight: bold; font-size: 10px; color: var(--elroy-stone-900); cursor: pointer; }
.task-hide-btn { display: none; }

/* --- Accordion chevron animation on supp view credit app --- */
.accordion-header[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

#datatable_customers tbody tr[data-row-id],
#datatable_suppliers tbody tr[data-row-id],
#datatable_disputes tbody tr[data-row-id],
#datatable_company_users tbody tr[data-row-id] {
    cursor: pointer;
}

/* Custom color for the remove relationship link on the customer/supplier view page */
#removeRelationshipLink {
    color: #e30000 !important;
}

/* --- Add underline on hover for the remove relationship link --- */
#removeRelationshipLink:hover {
    text-decoration: underline !important;
}
/* --- Notification Badge Styling --- */

.nav-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link .notification-badge {
    position: absolute;
    top: 6px;
    left: -14px;

    height: 9px;
    width: 9px;
    padding: 0; /* Reset padding to allow fixed height/width to work */
    font-size: 0;
    line-height: 18px; /* Match the height to vertically center the text */
    font-weight: 600;
    background-color: #E14338 !important;
    color: white !important;

    display: flex;
    justify-content: center;
    align-items: center;
}
/* --- Datatable Task Indicator --- */

.company-name-cell-content {
    position: relative;
}

.task-indicator {
    position: absolute;
    left: 0; /* Position it at the beginning of the padding area */
    top: 50%; /* Center it vertically */
    transform: translateY(-50%); /* Fine-tune the vertical centering */

    width: 9px;
    height: 9px;
    background-color: #E14338;
    border-radius: 50%;
}

/* --- Active Task Indicator Bar --- */
.task-mark-active {
    background-color: #E14338 !important;
}

/* --- Clickable Alert Hover State --- */
.alert-clickable-notice:hover {
    cursor: pointer;
    background-color: rgba(var(--bs-danger-rgb), 0.15) !important;
    transition: background-color 0.1s ease-in-out;
}

/* --- Trust Center Dropzone UI Tweaks --- */
/* Set the default cursor for the entire upload item row */
.dropzone .dropzone-item {
    cursor: default;
}

/* Set the pointer cursor only for the delete button within the item */
.dropzone .dropzone-item .dropzone-delete {
    cursor: pointer;
}

/* --- Datatables: Sets pointer cursor on the custom checkbox input --- */
#datatable_trust_center_documents .form-check-input,
#datatable_share_with .form-check-input {
    cursor: pointer;
}

/* --- Trust Center Dropzone Validation Style Override --- */
.document-type-select.is-invalid {
    border-color: #E14338 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    padding-right: 0.75rem !important; /* Resets padding that was making space for the icon */
}

/* --- Trust Center Share Modal: Top border for access list --- */
#sharedWithList > .d-flex:first-child {
    border-top: 1px dashed #E4E6EF; /* Matches the theme's standard dashed border */
}

/* --- Trust Center Share Modal: Make access list scrollable --- */
#sharedWithList {
    overflow-y: auto;
    padding-right: 0.6rem; /* Add some space for the scrollbar */
}
/* --- Trust Center Share Modal: Adjust top gradient for access list --- */
#peopleWithAccessSection .datatable-scroll-fade-container::before {
    top: 0; /* Align gradient to the very top of the scroll container */
}

/* --- Media Queries --- */
@media (max-width: 576px) {
    .form-floating > label { font-size: 9px; padding: 1rem 1rem; }
    .form-floating > .form-control { padding: 1rem 0.8rem; font-size: 11px; }
    .form-floating > .form-control, .form-floating > .form-select { height: calc(3rem + 2px); line-height: 1.25; }
    .form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown), .maskedInput { padding-top: 1.25rem; padding-bottom: 0.625rem; }
    .maskedInput { font-size: 11px; }
    .mb-7 { margin-bottom: 1rem !important; }
}

@media (max-width: 768px) {
    .datatable_buttontext { display: none; }
    .table.dataTable td a.btn.btn-light-warning.btn-light-background-grey, .table.dataTable td a { padding: 8px !important; }
    .table.dataTable td i { padding: 0px !important; }
}

@media (max-width: 991.98px) {
    .header-tablet-and-mobile-fixed.toolbar-tablet-and-mobile-fixed .wrapper { padding-top: calc(20px + var(--kt-toolbar-height-tablet-and-mobile)) !important; }
    .modal-size-elroy { width: 97% !important; max-width: 97% !important; }
    .modal-size-elroy-sm { width: 80% !important; max-width: 80% !important; }
    .elroy-form { padding: 10px 0px; }
    .form-floating { padding-left: 2px; padding-right: 2px; }
    #completeProfileModal_content .card .card-body { padding: 2rem 1rem; }
}

@media (min-width: 992px) {
    .toolbar-fixed .toolbar, .header-fixed .header { z-index: 10; }
    .header-navs { max-height: 60px; }
    .header .header-bottom { height: 50px; }
    .login.login-3 .login-content .login-form.login-form-signup { max-width: 750px; }
    .typeahead .tt-menu { width: 650px; }
    .modal-size-elroy { max-width: 65% !important; }
    .modal-size-elroy-sm { max-width: 600px !important; }
    .elroy-form { padding: 0; }
}

@media (min-width: 1400px) {
    .card-body.dashboardSummaryBlock { min-width: 1150px; }
}

.file-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.file-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.file-card .download-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0.5rem;
}

.file-card:hover .download-overlay {
    opacity: 1;
}