:root {
    --je-primary: #4F46E5;            /* premium indigo */
    --je-primary-dark: #3F37C9;
    --je-primary-light: #EEF0FF;
    --je-primary-soft: #E0E2FC;
    --je-accent: #06B6D4;             /* teal accent for charts/highlights */
    --je-bg: #F3F4FB;                 /* app background */
    --je-surface: #FFFFFF;            /* card / panel background */
    --je-surface-alt: #FAFBFF;
    --je-border: #E7E9F5;
    --je-text: #000000;
    --je-text-muted: #000000;
    --je-text-soft: #000000;
    --bs-body-color: #000000;
    --bs-body-color-rgb: 0, 0, 0;
    --bs-secondary-color: #000000;
    --bs-secondary-color-rgb: 0, 0, 0;
    --bs-tertiary-color: #000000;
    --bs-tertiary-color-rgb: 0, 0, 0;
    --je-success: #17A673;
    --je-success-light: #E7F9F1;
    --je-danger: #E1465D;
    --je-danger-light: #FDECEF;
    --je-warning: #F2A93B;
    --je-warning-light: #FEF5E7;
    --je-info: #3B82F6;
    --je-info-light: #EAF2FE;
    --je-sidebar-width: 268px;
    --je-topnav-height: 68px;
    --je-radius-sm: .55rem;
    --je-radius: .9rem;
    --je-radius-lg: 1.25rem;
    --je-shadow-sm: 0 1px 2px rgba(30, 33, 48, 0.05);
    --je-shadow: 0 4px 16px rgba(31, 41, 82, 0.06);
    --je-shadow-lg: 0 12px 32px rgba(31, 41, 82, 0.10);
}

* { box-sizing: border-box; }

body {
    background-color: var(--je-bg);
    color: var(--je-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.925rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .fw-semibold, .fw-bold {
    letter-spacing: -.01em;
}

a { color: var(--je-primary); }

/* Keep neutral text readable across Bootstrap and Select2 components. */
.text-muted, .text-secondary, .text-body-secondary, .text-body-tertiary,
.text-black-50, .text-dark {
    color: var(--je-text) !important;
}

.form-control::placeholder {
    color: var(--je-text);
    opacity: 1;
}

.btn-outline-secondary {
    --bs-btn-color: var(--je-text);
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-results__option[aria-disabled=true] {
    color: var(--je-text);
}

/* ---------- Layout shell ---------- */
.je-menu-help-button {
    width: 26px;
    height: 26px;
    padding: 0;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: var(--je-primary);
    font: bold 17px Georgia, serif;
    cursor: pointer;
}
.je-menu-help-button:hover { background: var(--je-primary-light); }
.je-menu-help-button:focus-visible { outline: 3px solid var(--je-primary-soft); outline-offset: 3px; }
.je-menu-help-steps li + li { margin-top: .65rem; }

.je-brand-image {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: .6rem;
    background: transparent;
}

.je-brand-mark { background: #111; padding: 3px; }
.je-brand-wordmark { display: block; width: 152px; max-width: calc(100% - 55px); height: auto; object-fit: contain; }
.je-auth-horizontal-logo { display: block; max-width: 100%; height: auto; object-fit: contain; }

.je-login-brand {
    width: 180px;
    height: auto;
    max-width: 100%;
    margin: 0 auto .75rem;
    border-radius: 0;
}

.je-app {
    display: flex;
    min-height: 100vh;
}

.je-sidebar {
    width: var(--je-sidebar-width);
    background: linear-gradient(180deg, var(--je-surface) 0%, var(--je-surface-alt) 100%);
    border-right: 1px solid var(--je-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: thin;
}

.je-sidebar > nav { flex: 1; flex-wrap: nowrap; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.je-sidebar > nav > * { flex-shrink: 0; }
.je-sidebar > nav::-webkit-scrollbar { width: 6px; }
.je-sidebar > nav::-webkit-scrollbar-thumb { background: var(--je-border); border-radius: 3px; }

.je-sidebar .brand {
    flex-shrink: 0;
    height: var(--je-topnav-height);
    display: flex;
    align-items: center;
    padding: 0 1.35rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--je-text);
    border-bottom: 1px solid var(--je-border);
    gap: .65rem;
}

.je-sidebar .brand .brand-badge {
    width: 36px;
    height: 36px;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--je-primary), var(--je-accent));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(79, 70, 229, .35);
    flex-shrink: 0;
}

.je-sidebar .nav-link {
    color: var(--je-text-muted);
    padding: .58rem 1rem;
    border-radius: var(--je-radius-sm);
    margin: .15rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .7rem;
    transition: background .15s ease, color .15s ease, transform .1s ease;
}

.je-sidebar .nav-link i {
    font-size: .95rem;
    width: 22px;
    text-align: center;
    color: var(--je-text-soft);
    transition: color .15s ease;
}

.je-sidebar .nav-link:hover {
    background: var(--je-primary-light);
    color: var(--je-primary);
}
.je-sidebar .nav-link:hover i { color: var(--je-primary); }

.je-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--je-primary), var(--je-primary-dark));
    color: #fff;
    box-shadow: 0 6px 14px rgba(79, 70, 229, .28);
}
.je-sidebar .nav-link.active i { color: #fff; }
.je-sidebar button.nav-link { width:calc(100% - 1.5rem); border:0; background:transparent; text-align:left; }

.je-sidebar .nav-section-title {
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--je-text-soft);
    padding: 1.1rem 1.35rem .4rem;
}

.je-main {
    margin-left: var(--je-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.je-topnav {
    height: var(--je-topnav-height);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--je-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.je-topnav .form-select-sm {
    border-radius: var(--je-radius-sm);
    border-color: var(--je-border);
}

.je-topnav .dropdown-toggle {
    border-radius: var(--je-radius-sm);
    font-weight: 500;
}

.je-content {
    padding: 1.75rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- Cards ---------- */
.je-card {
    background: var(--je-surface);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius);
    box-shadow: var(--je-shadow-sm);
    transition: box-shadow .2s ease;
}

.je-card .je-card-header {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--je-border);
    font-weight: 700;
    font-size: .95rem;
}

.je-card .je-card-body {
    padding: 1.35rem;
}

/* ---------- KPI cards ---------- */
.je-kpi-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.je-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--je-shadow-lg);
}

.je-kpi-card .je-kpi-label {
    color: var(--je-text-muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .35rem;
}

.je-kpi-card .je-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--je-text);
    line-height: 1.15;
}

.je-kpi-card .je-kpi-sub {
    font-size: .76rem;
    color: var(--je-text-soft);
    margin-top: .25rem;
}

.je-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--je-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.je-kpi-icon.bg-primary-soft { background: var(--je-primary-light); color: var(--je-primary); }
.je-kpi-icon.bg-success-soft { background: var(--je-success-light); color: var(--je-success); }
.je-kpi-icon.bg-warning-soft { background: var(--je-warning-light); color: var(--je-warning); }
.je-kpi-icon.bg-danger-soft  { background: var(--je-danger-light); color: var(--je-danger); }
.je-kpi-icon.bg-info-soft    { background: var(--je-info-light); color: var(--je-info); }
.je-kpi-icon.bg-accent-soft  { background: #E5FBFE; color: var(--je-accent); }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--je-radius-sm);
    font-weight: 600;
    font-size: .875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--je-primary), var(--je-primary-dark));
    border-color: var(--je-primary-dark);
    box-shadow: 0 4px 10px rgba(79, 70, 229, .25);
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--je-primary-dark), var(--je-primary-dark));
    border-color: var(--je-primary-dark);
    box-shadow: 0 6px 14px rgba(79, 70, 229, .32);
}

.btn-light {
    background: var(--je-surface-alt);
    border-color: var(--je-border);
    color: var(--je-text);
}
.btn-light:hover {
    background: var(--je-primary-light);
    border-color: var(--je-primary-soft);
    color: var(--je-primary);
}

/* ---------- Badges ---------- */
.badge { font-weight: 600; font-size: .72rem; border-radius: .4rem; padding: .4em .6em; width: fit-content; justify-self: start; align-self: center; flex: 0 0 auto; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: var(--je-radius-sm);
    border-color: var(--je-border);
    padding: .55rem .85rem;
    font-size: .875rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--je-primary);
    box-shadow: 0 0 0 .2rem var(--je-primary-light);
}
.form-label { font-weight: 600; font-size: .82rem; color: var(--je-text); margin-bottom: .35rem; }

/* ---------- Tables ---------- */
.table {
    margin-bottom: 0;
}
.table thead th {
    background: var(--je-surface-alt);
    color: var(--je-text-muted);
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .04em;
    font-weight: 700;
    border-bottom: 1px solid var(--je-border);
    padding: .85rem 1rem;
    white-space: nowrap;
}
.table tbody td {
    padding: .8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--je-border);
    font-size: .875rem;
}
.table-hover tbody tr:hover { background-color: var(--je-primary-light); }

table.dataTable { font-size: .875rem; }

/* ---------- Dashboard-specific ---------- */
.je-mini-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--je-border);
}
.je-mini-list-item:last-child { border-bottom: none; }

.je-avatar-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--je-primary-light);
    color: var(--je-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

/* ---------- Auth / login ---------- */
.je-auth-shell {
    min-height: 100vh;
    display: flex;
    background: var(--je-bg);
}

.je-auth-visual {
    flex: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background: linear-gradient(155deg, var(--je-primary) 0%, var(--je-primary-dark) 55%, #2A2E8F 100%);
    color: #fff;
    overflow: hidden;
}

.je-auth-visual::before,
.je-auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.je-auth-visual::before { width: 340px; height: 340px; top: -100px; right: -100px; }
.je-auth-visual::after { width: 260px; height: 260px; bottom: -80px; left: -60px; background: rgba(6, 182, 212, .18); }

.je-auth-visual .je-auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    font-size: 1.3rem;
}

.je-auth-visual .je-auth-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.je-auth-visual .je-auth-copy h2 {
    font-weight: 800;
    font-size: 1.9rem;
    margin-bottom: .75rem;
}

.je-auth-visual .je-auth-copy p {
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
}

.je-auth-visual .je-auth-points {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.je-auth-visual .je-auth-points li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, .92);
    margin-bottom: .6rem;
}
.je-auth-visual .je-auth-points i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.je-auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.je-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--je-surface);
    border-radius: var(--je-radius-lg);
    box-shadow: var(--je-shadow-lg);
    border: 1px solid var(--je-border);
    padding: 2.25rem 2rem;
}

.je-auth-card .je-auth-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--je-radius);
    background: linear-gradient(135deg, var(--je-primary), var(--je-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
    margin-bottom: 1rem;
}

.je-auth-card .form-control {
    background: var(--je-surface-alt);
}

.je-password-toggle {
    background: var(--je-surface-alt);
    border-color: var(--je-border);
    color: var(--je-text-soft);
}
.je-password-toggle:hover {
    color: var(--je-primary);
    background: var(--je-primary-light);
}

.je-auth-card .btn-primary {
    padding: .65rem 1rem;
}

/* ---------- Responsive ---------- */
.je-back-button { flex-shrink: 0; min-width: 38px; min-height: 38px; display: inline-flex; gap: .4rem; align-items: center; justify-content: center; }
.btn { box-shadow: 0 2px 5px rgba(30,33,48,.08); transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn:hover { box-shadow: 0 4px 9px rgba(30,33,48,.12); }
.btn:focus-visible { outline: 2px solid var(--je-primary); outline-offset: 3px; }
.btn:disabled, .btn.disabled { box-shadow: none; }
.btn-primary { --bs-btn-active-bg: var(--je-primary-dark); --bs-btn-active-border-color: var(--je-primary-dark); --bs-btn-disabled-bg: var(--je-primary); --bs-btn-disabled-border-color: var(--je-primary); }
.btn-outline-primary { --bs-btn-color: var(--je-primary); --bs-btn-border-color: var(--je-primary); --bs-btn-hover-bg: var(--je-primary); --bs-btn-hover-border-color: var(--je-primary); --bs-btn-active-bg: var(--je-primary-dark); --bs-btn-active-border-color: var(--je-primary-dark); }
.btn-outline-secondary { --bs-btn-color: var(--je-text); --bs-btn-border-color: var(--je-border); --bs-btn-hover-bg: var(--je-surface-alt); --bs-btn-hover-color: var(--je-text); --bs-btn-hover-border-color: #B8BDCA; }
.btn-success { --bs-btn-bg: #14845D; --bs-btn-border-color: #14845D; --bs-btn-hover-bg: #106B4B; --bs-btn-hover-border-color: #106B4B; }
.btn-danger { --bs-btn-bg: #C7354D; --bs-btn-border-color: #C7354D; --bs-btn-hover-bg: #A92B40; --bs-btn-hover-border-color: #A92B40; }
.je-sidebar-toggle { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 992px) {
    body.je-sidebar-collapsed .je-sidebar { transform: translateX(-100%); }
    body.je-sidebar-collapsed .je-main { margin-left: 0; }
}
.je-master-link { color: var(--je-text); min-height: 88px; }
.je-master-link:hover { color: var(--je-primary); border-color: var(--je-primary-soft); background: var(--je-surface-alt); }
.je-master-link:focus-visible { outline: 3px solid var(--je-primary); outline-offset: 2px; }
.je-main, .je-content, .je-card, .je-card-body, .dataTables_wrapper { min-width: 0; }
.je-topnav { min-height: var(--je-topnav-height); height: auto; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.je-topnav-heading { flex: 1; min-width: 0; }
.je-page-heading { min-width: 0; }
.je-page-heading > span { overflow-wrap: anywhere; line-height: 1.35; }
.je-topnav-actions { flex-shrink: 0; }
#jeSidebarToggle { flex-shrink: 0; }
.je-sidebar { max-width: calc(100vw - 44px); overscroll-behavior: contain; }
.je-card-header.d-flex, .je-content > .d-flex, .je-card-body > .d-flex.gap-2 { flex-wrap: wrap; gap: .65rem; }
.je-card-header > .d-flex, .je-content > .d-flex > .d-flex { flex-wrap: wrap; }
.je-card-header > *, .je-card-body .row > *, .je-content > .row > * { min-width: 0; }
.je-card-body p, .je-card-body dd { overflow-wrap: anywhere; }
.table-responsive, .dataTables_scrollBody { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.dataTables_wrapper .row { row-gap: .65rem; }
.dataTables_wrapper .dataTables_filter input { max-width: 100%; }
.dataTables_wrapper .pagination { flex-wrap: wrap; gap: .15rem; }
.dataTables_wrapper .dataTables_info { white-space: normal; }
.dataTables_scrollHead table.table { margin-bottom: 0 !important; }
.dataTables_scrollBody table.table thead th { padding-top: 0; padding-bottom: 0; border: 0; }
.dataTables_scrollBody table.table tbody td { white-space: nowrap; }
.select2-container { max-width: 100%; }
.select2-container .select2-selection--single { min-height: 38px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-left: .75rem; padding-right: 1.75rem; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.modal-content { max-width: 100%; }
.modal-body { overflow-x: hidden; overflow-wrap: anywhere; }
.modal-body .table-responsive { overflow-x: auto; }
.modal-footer { gap: .4rem; }
.je-kpi-card .je-kpi-value { overflow-wrap: anywhere; }

@media (max-width: 1199.98px) {
    .je-content { padding: 1.25rem; }
}

@media (max-width: 991.98px) {
    body.je-navigation-open { overflow: hidden; }
    .je-sidebar { transform: translateX(-100%); }
    .je-sidebar.show { transform: translateX(0); box-shadow: var(--je-shadow-lg); }
    .je-main { margin-left: 0; }
    .je-auth-visual { display: none; }
    .je-auth-form-side { flex: 1 1 100%; }
}

@media (max-width: 767.98px) {
    .je-card-header { padding: .9rem 1rem; }
    .table thead th, .table tbody td { padding-left: .65rem; padding-right: .65rem; }
    div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_info { text-align: left; }
    div.dataTables_wrapper div.dataTables_filter label { display: flex; align-items: center; gap: .5rem; width: 100%; }
    div.dataTables_wrapper div.dataTables_filter input { flex: 1; min-width: 0; width: auto; margin-left: 0; }
    div.dataTables_wrapper div.dataTables_paginate ul.pagination { justify-content: flex-start; }
    .je-auth-form-side { padding: 1.25rem; }
}

@media (max-width: 575.98px) {
    .je-topnav { padding: 0 .75rem; gap: .5rem; }
    .je-topnav > .d-flex { gap: .5rem !important; min-width: 0; }
    #branchSwitchForm .form-select { width: 100px !important; }
    .je-content { padding: 1rem; }
    .je-card .je-card-body { padding: 1rem; }
    .je-kpi-value { font-size: 1.25rem; }
    .je-auth-card { padding: 1.75rem 1.25rem; }
    .je-topnav { flex-wrap: wrap; }
    .je-topnav-heading { flex-basis: calc(100% - 54px); }
    .je-topnav-actions { margin-left: auto; }
    .je-topnav-actions:has(#branchSwitchForm) { width: 100%; justify-content: flex-end; }
    #branchSwitchForm { flex: 1; min-width: 0; }
    #branchSwitchForm .form-select { width: 100% !important; max-width: 100%; }
    .je-content { padding: .85rem; }
    .je-card .je-card-body { padding: .85rem; }
    .je-auth-form-side { padding: .85rem; }
    .je-auth-card { padding: 1.25rem; }
    .je-kpi-card .je-kpi-value { font-size: 1.25rem; }
    .je-kpi-icon { width: 36px; height: 36px; flex-shrink: 0; }
    .modal-dialog { margin: .65rem; }
    .modal-body, .modal-header { padding: 1rem; }
    .form-control, .form-select { font-size: 1rem; }
}

/* Consistent spacing and control alignment across module pages. */
.je-user-menu { min-width: 0; max-width: 100%; }
.je-topnav-actions > .dropdown { min-width: 0; }
.je-user-menu .je-avatar-chip, .je-user-menu::after { flex-shrink: 0; }
.je-sidebar .nav-link { min-height: 39px; line-height: 1.4; }
.je-sidebar .nav-link i { flex: 0 0 22px; }
.je-sidebar .nav-section-title:first-child { padding-top: .65rem; }
.je-user-details { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 220px; text-align: left; line-height: 1.35; }
.je-user-name, .je-user-role { white-space: normal; overflow-wrap: anywhere; }
.je-user-role { font-size: .7rem; font-weight: 500; color: var(--je-text-muted); }
@media (max-width: 575.98px) {
    .je-topnav-actions .dropdown { min-width: 0; max-width: 100%; }
    .je-user-details { max-width: 120px; }
    .je-user-name { display: none; }
    .je-topnav-actions:has(#branchSwitchForm) #branchSwitchForm { flex-basis: 85px; }
}
@media (max-width: 991.98px) {
    .je-topnav { flex-wrap: wrap; }
    .je-topnav-heading { flex: 1 1 220px; }
    .je-topnav-actions { max-width: 100%; min-width: 0; margin-left: auto; }
    .je-user-details { max-width: 180px; }
}
@media (max-width: 575.98px) {
    .je-topnav-heading { flex: 1 1 100%; }
    .je-topnav-actions { width: 100%; justify-content: flex-end; }
    .je-topnav-actions > .dropdown { flex: 0 1 auto; }
    .je-user-details { max-width: 150px; }
    .je-topnav-actions:has(#branchSwitchForm) .je-user-details { max-width: 110px; }
    .je-user-menu { min-height: 38px; }
}
.je-content { padding: 1.5rem; }
.je-card .je-card-header { padding: 1rem 1.25rem; min-height: 58px; }
.je-card .je-card-body { padding: 1.25rem; }
.je-card-header > span:first-child { line-height: 1.4; }
.je-card-header .btn { flex-shrink: 0; }
.je-topnav-heading { gap: .65rem !important; }
.je-page-heading { flex: 1; }
.je-page-heading .je-menu-help-button { align-self: center; }
.je-topnav-actions { gap: .75rem !important; }
.btn { line-height: 1.4; padding: .55rem .9rem; }
.btn-sm { padding: .4rem .65rem; }
.je-sidebar-toggle { padding: 0; }
.je-back-button { padding: .45rem .65rem; }
.je-topnav-actions .je-back-button {
    --je-btn-bg:#e4f4ff; --je-btn-hover:#cdeaff; --je-btn-fg:#175a8c;
    --je-btn-border:#acd2ed; --je-btn-shadow:23,90,140;
    min-height:40px; border-radius:10px; font-weight:700;
}

.je-dashboard-date-filter { min-width: 192px; }
.je-dashboard-date-filter .form-label { color: #3a4055; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.je-dashboard-date-filter .form-control { min-height: 42px; border-color: #d9dced; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgb(37 44 99 / 5%); font-weight: 600; }
.je-dashboard-scope-note { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 9px 12px; border: 1px solid #dce5fb; border-radius: 10px; background: #f5f8ff; color: #33476e; font-size: .8125rem; line-height: 1.45; }
.je-dashboard-scope-note .bi { color: var(--je-primary); font-size: 1rem; }
.je-dashboard-section { padding: 18px; border: 1px solid #e3e6f2; border-radius: 16px; background: linear-gradient(135deg, #ffffff, #fafbff); box-shadow: 0 5px 16px rgb(38 44 91 / 4%); }
.je-dashboard-section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-bottom: 15px; }
.je-dashboard-section-heading h5 { margin: 0; color: #171a2b; font-size: 1rem; font-weight: 800; }
.je-dashboard-section-heading p { margin: 2px 0 0; color: #65708c; font-size: .78rem; line-height: 1.4; }
.je-dashboard-section-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; font-size: 1.08rem; box-shadow: 0 4px 10px rgb(42 48 99 / 12%); }
.je-dashboard-section-icon-filter { background: #eeeaff; color: #5745c8; }
.je-dashboard-section-icon-live { background: #e4f8ef; color: #148557; }

@media (max-width: 575.98px) {
    .je-dashboard-date-filter { width: 100%; }
    .je-dashboard-scope-note { width: 100%; align-items: flex-start; }
    .je-dashboard-section { padding: 14px; }
    .je-dashboard-section-heading { align-items: flex-start; }
    .je-dashboard-section-heading .je-dashboard-date-filter { margin-left: 0 !important; }
}
.form-control:not(textarea), .form-select { min-height: 40px; }
.form-control-sm, .form-select-sm { min-height: 34px !important; }
.input-group { align-items: stretch; }
.input-group .btn, .input-group-text { display: inline-flex; align-items: center; justify-content: center; }
.select2-container .select2-selection--single { height: 40px; border-color: var(--je-border); border-radius: var(--je-radius-sm); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.dataTables_wrapper > .row:first-child { align-items: center; margin-bottom: .75rem; }
.dataTables_wrapper > .row:last-child { align-items: center; margin-top: .75rem; }
div.dataTables_wrapper div.dataTables_info { padding-top: 0; }
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label { margin-bottom: 0; }
.table th.text-end, .table td.text-end { font-variant-numeric: tabular-nums; }
.table td .btn { vertical-align: middle; }
.table td .btn + .btn { margin-left: .2rem; }
.modal-header, .modal-body, .modal-footer { padding: 1rem 1.25rem; }
.modal-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.modal-footer { flex-wrap: wrap; }
.je-content .nav-tabs { flex-wrap: wrap; gap: .25rem; }
@media (max-width: 767.98px) {
    .je-content { padding: 1rem; }
    .je-card .je-card-header, .je-card .je-card-body { padding: 1rem; }
    .dataTables_wrapper > .row:first-child, .dataTables_wrapper > .row:last-child { row-gap: .75rem; }
}
@media (max-width: 575.98px) {
    .je-content { padding: .75rem; }
    .je-topnav { padding: .5rem .75rem; }
    .je-topnav-heading { gap: .45rem !important; }
    .je-topnav-actions { gap: .5rem !important; }
    .je-card .je-card-header, .je-card .je-card-body { padding: .85rem; }
    .je-card-header .btn { max-width: 100%; white-space: normal; }
    .modal-header, .modal-body, .modal-footer { padding: .85rem; }
    .select2-container .select2-selection--single { height: 44px; }
    .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; }
    .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .je-sidebar, .je-kpi-card, .je-sidebar .nav-link { transition: none; }
}

/* Consistent filter reset action, including table-only search pages. */
.btn.je-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 32px;
    padding: .35rem .8rem;
    color: #fff;
    background: #6154c7;
    border: 1px solid #6154c7;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(97, 84, 199, .24);
    white-space: nowrap;
}
.btn.je-filter-reset:hover, .btn.je-filter-reset:focus-visible {
    color: #fff;
    background: #4d40ad;
    border-color: #4d40ad;
    box-shadow: 0 4px 10px rgba(97, 84, 199, .32);
}
.btn.je-filter-reset:focus-visible { outline: 3px solid #c9c3f2; outline-offset: 2px; }
.dataTables_filter .je-filter-reset { margin-left: .5rem; }
.dataTables_filter:has(.je-filter-reset) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.dataTables_filter:has(.je-filter-reset) label { margin-bottom: 0; }
.je-filter-controls { align-items: end; }
@media (max-width: 575.98px) {
    .dataTables_filter:has(.je-filter-reset) { justify-content: flex-start; }
    .dataTables_filter:has(.je-filter-reset) label { min-width: 0; flex: 1 1 170px; }
    .dataTables_filter .je-filter-reset { margin-left: 0; }
}

/* Action colors shared by list rows, forms, dialogs and generated table actions. */
.btn {
    --je-btn-bg: #edf0f5; --je-btn-hover: #dfe5ee; --je-btn-fg: #334155;
    --je-btn-border: #cbd5e1; --je-btn-shadow: 51, 65, 85;
}
.btn-primary, .btn-outline-primary, .je-btn-primary {
    --je-btn-bg: #4f46c5; --je-btn-hover: #4037a8; --je-btn-fg: #fff;
    --je-btn-border: #4f46c5; --je-btn-shadow: 79, 70, 197;
}
.btn-success, .btn-outline-success {
    --je-btn-bg: #147a54; --je-btn-hover: #0e6041; --je-btn-fg: #fff;
    --je-btn-border: #147a54; --je-btn-shadow: 20, 122, 84;
}
.btn-warning, .btn-outline-warning, .je-btn-edit, .btn-light:has(.bi-pencil, .bi-pencil-square) {
    --je-btn-bg: #fff0cd; --je-btn-hover: #ffe2a0; --je-btn-fg: #784600;
    --je-btn-border: #eac579; --je-btn-shadow: 151, 97, 15;
}
.btn-info, .btn-outline-info, .je-btn-view, .btn-light:has(.bi-eye) {
    --je-btn-bg: #e2efff; --je-btn-hover: #c9e0ff; --je-btn-fg: #18569c;
    --je-btn-border: #a8c9ef; --je-btn-shadow: 24, 86, 156;
}
.je-btn-download, .btn-light:has(.bi-download, .bi-printer) {
    --je-btn-bg: #d9f3ee; --je-btn-hover: #bde7de; --je-btn-fg: #0d6453;
    --je-btn-border: #9fd1c5; --je-btn-shadow: 13, 100, 83;
}
.je-btn-assign {
    --je-btn-bg: #eee5ff; --je-btn-hover: #ddccfa; --je-btn-fg: #6434a0;
    --je-btn-border: #c9b1e8; --je-btn-shadow: 100, 52, 160;
}
.btn-danger, .btn-outline-danger, .je-btn-danger, .btn-light.text-danger, .btn-light:has(.bi-trash, .bi-trash3) {
    --je-btn-bg: #b92f47; --je-btn-hover: #98233a; --je-btn-fg: #fff;
    --je-btn-border: #b92f47; --je-btn-shadow: 185, 47, 71;
}
.btn:not(.je-filter-reset) {
    background: var(--je-btn-bg); color: var(--je-btn-fg); border-color: var(--je-btn-border);
    box-shadow: 0 3px 7px rgba(var(--je-btn-shadow), .2);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:not(.je-filter-reset):is(:hover, :focus-visible, :active, .active, .show) {
    background: var(--je-btn-hover); color: var(--je-btn-fg); border-color: var(--je-btn-border);
    box-shadow: 0 5px 11px rgba(var(--je-btn-shadow), .28);
}
.btn:not(.je-filter-reset):focus-visible { outline: 3px solid rgba(var(--je-btn-shadow), .35); outline-offset: 3px; }
.btn:is(:disabled, .disabled) { opacity: .55; box-shadow: none; cursor: not-allowed; }
.btn-close, .je-menu-help-button { box-shadow: 0 2px 6px rgba(51, 65, 85, .16); }
.swal2-styled.swal2-confirm { background: #4f46c5; box-shadow: 0 3px 8px rgba(79,70,197,.25); }
.swal2-styled.swal2-cancel { box-shadow: 0 3px 8px rgba(51,65,85,.2); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.btn-light.text-danger { color: var(--je-btn-fg) !important; }
.page-link { box-shadow: 0 2px 4px rgba(51,65,85,.1); }
.page-item.active .page-link { box-shadow: 0 3px 7px rgba(79,70,197,.22); }

/* Sales item grid: keep monetary fields readable and aligned on wide screens. */
.je-sale-items-table { width:100%; min-width:1340px; table-layout:fixed; }
.je-sale-items-table th { white-space:nowrap; font-size:.76rem; letter-spacing:.01em; }
.je-sale-items-table .je-sale-product { width:31%; }
.je-sale-items-table .je-sale-unit { width:22%; }
.je-sale-items-table .je-sale-qty { width:90px; }
.je-sale-items-table .je-sale-price { width:155px; }
.je-sale-items-table .je-sale-discount { width:140px; }
.je-sale-items-table .je-sale-gst { width:80px; }
.je-sale-items-table .je-sale-total { width:130px; font-variant-numeric:tabular-nums; font-weight:700; }
.je-sale-items-table td { padding:12px 10px; vertical-align:middle; }
.je-sale-items-table .form-control { min-width:0; width:100%; }
.je-sale-items-table .line-total { color:#28234f; white-space:nowrap; }
.je-sale-summary { border-color:#dfdbf2; box-shadow:0 6px 18px rgb(50 43 110 / 7%); }
.je-sale-summary .je-card-header { background:linear-gradient(110deg,#f8f6ff,#f1eeff); }
.je-sale-summary .table td { padding:12px 10px; border-color:#eceaf4; }
.je-sale-summary .table td:last-child { min-width:145px; font-variant-numeric:tabular-nums; font-weight:650; color:#22233a; }
.je-sale-summary .je-sale-grand-total td { padding-top:15px; padding-bottom:15px; border-top:2px solid #cfc8f2; border-bottom:0; background:#f3f0ff; color:#3f3298; font-size:1.1rem; font-weight:750; }
@media(max-width:767.98px) {
 .je-sale-items-table { min-width:0; table-layout:auto; }
 .je-sale-items-table th { white-space:normal; }
 .je-sale-items-table td { padding:8px 0; }
}
.je-content .btn:not(.je-sidebar-toggle) { border-radius:9px; font-weight:600; }
.btn-outline-secondary:has(.bi-printer), .btn-outline-secondary:has(.bi-download) {
    --je-btn-bg:#d9f3ee; --je-btn-hover:#bde7de; --je-btn-fg:#0d6453;
    --je-btn-border:#9fd1c5; --je-btn-shadow:13,100,83;
}
.dataTables_paginate .pagination { gap:5px; flex-wrap:wrap; }
.dataTables_paginate .page-item .page-link { border-radius:8px; margin:0; border-color:#ddd9ed; color:#51458e; background:#f5f3fc; min-height:36px; }
.dataTables_paginate .page-item.active .page-link { color:#fff; background:#4f46c5; border-color:#4f46c5; }
.dataTables_paginate .page-item.disabled .page-link { color:#78808e; background:#f3f4f7; box-shadow:none; }
.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover { background:#eae5fa; }
.swal2-actions .swal2-styled { border-radius:9px; padding:10px 18px; font-weight:600; }
.swal2-actions .swal2-cancel { background:#edf0f5; color:#334155; border:1px solid #cbd5e1; }

/* Stock dashboard: aligned metric and navigation cards. */
.je-stock-dashboard { display: grid; gap: 18px; }
.je-stock-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.je-stock-metric, .je-stock-action { min-width: 0; }
.je-stock-metric > a, .je-stock-action > a { display: block; height: 100%; color: inherit; border-radius: 12px; }
.je-stock-dashboard .je-card { margin: 0; height: 100%; border: 1px solid var(--je-border); border-radius: 12px; box-shadow: 0 3px 12px rgba(30,33,48,.06); }
.je-stock-dashboard .je-stock-metric-card { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 142px; border-top: 3px solid var(--je-primary); }
.je-stock-dashboard .je-kpi-label { margin: 0; font-size: .82rem; line-height: 1.5; min-height: 2.5em; }
.je-stock-dashboard .je-kpi-value { margin: 0; font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow-wrap: anywhere; }
.je-stock-metric:nth-child(2) .je-stock-metric-card { border-top-color: #147a54; }
.je-stock-metric:nth-child(3) .je-stock-metric-card { border-top-color: #c28a22; }
.je-stock-metric:nth-child(4) .je-stock-metric-card { border-top-color: #b92f47; }
.je-stock-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.je-stock-dashboard .je-stock-transfer-card { padding: 20px; display: flex; align-items: center; min-height: 116px; }
.je-stock-transfer-card > div { width: 100%; gap: 16px; }
.je-stock-transfer-card .small { margin-top: 6px; line-height: 1.5; }
.je-stock-transfer-card .fs-3 { flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--je-primary); }
.je-stock-dashboard .je-stock-shortcut { display: flex; align-items: center; justify-content: flex-start; height: 100%; min-height: 116px; padding: 20px; gap: 10px; border-radius: 12px; text-align: left; line-height: 1.6; background: #f5f5ff; border-color: #dcdaf2; color: #4037a8; }
.je-stock-shortcut .bi { flex-shrink: 0; font-size: 1.35rem; margin: 0 !important; }
.je-stock-dashboard a:focus-visible { outline: 3px solid var(--je-primary-soft); outline-offset: 3px; }
@media (max-width: 1199.98px) {
 .je-stock-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .je-stock-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .je-stock-action:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
 .je-stock-dashboard { gap: 14px; }
 .je-stock-metrics, .je-stock-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .je-stock-dashboard .je-stock-metric-card { padding: 16px; min-height: 112px; gap: 10px; }
 .je-stock-dashboard .je-kpi-label { min-height: 0; }
 .je-stock-dashboard .je-stock-transfer-card, .je-stock-dashboard .je-stock-shortcut { padding: 16px; min-height: 92px; }
}

/* Masters and Settings navigation cards. */
.je-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.je-hub-item { min-width: 0; display: flex; }
.je-hub-grid .je-hub-card { display: flex; align-items: center; width: 100%; height: 100%; margin: 0; padding: 20px; gap: 16px; border: 1px solid #e1e3ee; border-radius: 14px; background: #fff; color: var(--je-text); box-shadow: 0 3px 12px rgba(38,35,77,.06); transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.je-hub-grid .je-master-link { min-height: 104px; }
.je-hub-grid .je-kpi-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: #eeecff; color: #5146bc; }
.je-hub-card .fw-semibold { line-height: 1.5; overflow-wrap: anywhere; }
.je-master-link > .bi-chevron-right { flex-shrink: 0; font-size: .85rem; color: #8c91a5; }
.je-hub-grid .je-settings-card { align-items: flex-start; min-height: 164px; }
.je-settings-card-content { width: 100%; min-width: 0; }
.je-hub-title { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.je-hub-title > .bi { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; border-radius: 11px; background: #eeecff; color: #5146bc; font-size: 1.2rem; }
.je-settings-card .small { line-height: 1.65; margin-top: 12px !important; }
.je-hub-grid .je-hub-card:hover { background: #fafaff; border-color: #bcb5eb; color: var(--je-text); box-shadow: 0 6px 18px rgba(79,70,197,.12); }
.je-hub-grid .je-hub-card:focus-visible { outline: 3px solid #bcb5eb; outline-offset: 3px; }
@media (max-width: 1199.98px) { .je-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
 .je-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .je-hub-grid .je-hub-card { padding: 16px; gap: 12px; }
 .je-hub-grid .je-master-link { min-height: 88px; }
 .je-hub-grid .je-settings-card { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .je-hub-grid .je-hub-card { transition: none; } }

.je-permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.je-permission-card { min-width:0; padding:18px; border:1px solid #e1e3ee; border-radius:12px; background:#fff; box-shadow:0 3px 10px rgba(38,35,77,.05); }
.je-permission-card[hidden] { display:none; }
.je-permission-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px; border-bottom:1px solid #ececf5; padding-bottom:12px; }
.je-permission-heading > strong { flex:1; }
.je-permission-heading .form-check { margin:0; }
.je-permission-menus { font-size:.8rem; line-height:1.6; margin:12px 0; color:#50566c; }
.je-permission-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.je-permission-option { min-width:0; padding:8px 10px; background:#f7f7fc; border-radius:7px; }
.je-permission-option .form-check { margin:0; }
.je-permission-option label { overflow-wrap:anywhere; cursor:pointer; }
.je-permission-coverage { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; padding-top:8px; border-top:1px solid #e6e7f1; }
.je-permission-coverage span { display:inline-flex; max-width:100%; padding:3px 6px; border-radius:5px; background:#fff; border:1px solid #dfe2ee; color:#454b61; font-size:.7rem; line-height:1.35; overflow-wrap:anywhere; }
.je-access-details { margin:10px 0 0; padding-left:18px; font-size:.78rem; line-height:1.6; overflow-wrap:anywhere; }
.je-access-details li + li { margin-top:5px; }
@media(max-width:575.98px) { .je-permission-options { grid-template-columns:minmax(0,1fr); } }
.je-permission-card input:disabled, .je-permission-card input:disabled ~ label { opacity:1; }
@media(max-width:767.98px) { .je-permission-grid { grid-template-columns:minmax(0,1fr); } .je-permission-card { padding:14px; } }

.je-assistant-intro { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.je-assistant-layout { display:grid; grid-template-columns:minmax(280px, .85fr) minmax(0, 1.15fr); gap:18px; align-items:start; }
.je-assistant-layout > .je-card { min-width:0; margin:0; border-radius:14px; box-shadow:0 4px 14px rgba(38,35,77,.07); }
.je-assistant-group { font-size:.78rem; font-weight:700; color:#52596e; margin:18px 0 10px; }
.je-assistant-group:first-child { margin-top:0; }
.je-assistant-question-list { display:grid; gap:8px; }
.je-assistant-question { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; padding:12px 14px; background:#f8f8ff; color:#333653; border:1px solid #e0dff0; border-radius:9px; text-align:left; font-size:.85rem; line-height:1.5; box-shadow:0 2px 5px rgba(79,70,197,.06); }
.je-assistant-question i { flex-shrink:0; }
.je-assistant-question:hover, .je-assistant-question[aria-pressed=true] { background:#eeecff; border-color:#8f85db; color:#4037a8; }
.je-assistant-question:focus-visible { outline:3px solid #bcb5eb; outline-offset:2px; }
.je-assistant-answer { position:sticky; top:88px; scroll-margin-top:88px; }
.je-assistant-answer .je-card-header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.je-assistant-value { font-size:clamp(1.6rem,3vw,2.25rem); font-weight:700; color:#4037a8; line-height:1.3; margin:16px 0 8px; overflow-wrap:anywhere; }
.je-assistant-results { padding:0; margin:0 0 16px; list-style:none; }
.je-assistant-results li { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #e8e9f2; font-size:.83rem; overflow-wrap:anywhere; }
.je-assistant-results strong { flex-shrink:0; }
@media(max-width:991.98px) { .je-assistant-layout { grid-template-columns:minmax(0,1fr); } .je-assistant-answer { position:static; } }
@media(max-width:575.98px) { .je-assistant-results li { flex-direction:column; gap:4px; } }

/* Floating assistant entry; below dialogs and mobile navigation overlays. */
.je-assistant-launcher { position:fixed; right:max(22px, env(safe-area-inset-right)); bottom:calc(22px + env(safe-area-inset-bottom)); z-index:1015; width:58px; height:58px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:2px solid #fff; background:linear-gradient(135deg,#6458e6,#4437bc); color:#fff; text-decoration:none; box-shadow:0 5px 18px rgba(68,55,188,.32); transition:box-shadow .15s ease, background .15s ease; }
.je-assistant-launcher .bi { font-size:1.75rem; line-height:1; }
.je-assistant-launcher:hover { color:#fff; background:#4033ab; box-shadow:0 7px 22px rgba(68,55,188,.4); }
.je-assistant-launcher:focus-visible { outline:3px solid #a9a0f2; outline-offset:4px; }
body:has(.je-assistant-launcher) .je-content { padding-bottom:100px; }
body.modal-open .je-assistant-launcher, body.je-navigation-open .je-assistant-launcher { visibility:hidden; }
@media(max-width:575.98px) { .je-assistant-launcher { width:52px; height:52px; right:max(14px, env(safe-area-inset-right)); bottom:calc(14px + env(safe-area-inset-bottom)); } .je-assistant-launcher .bi { font-size:1.55rem; } }
@media(prefers-reduced-motion:reduce) { .je-assistant-launcher { transition:none; } }

.je-chat[hidden] { display:none; }
.je-chat { position:fixed; right:22px; bottom:calc(90px + env(safe-area-inset-bottom)); width:480px; max-width:calc(100% - 28px); height:680px; max-height:calc(100dvh - 120px); z-index:1016; display:flex; flex-direction:column; overflow:hidden; background:#fff; border:1px solid #dedbf2; border-radius:18px; box-shadow:0 12px 42px rgba(36,28,92,.22); }
.je-chat-header { display:flex; align-items:center; gap:12px; padding:16px; background:#4f46c5; color:white; flex-shrink:0; }
.je-chat-header>div { flex:1; min-width:0; }
.je-chat-header button { background:transparent; color:white; border:0; border-radius:6px; padding:8px; }
.je-chat-messages { flex:1; min-height:100px; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; background:#f7f7fc; }
.je-chat-bubble { align-self:flex-start; max-width:95%; padding:12px; border-radius:12px 12px 12px 3px; background:#fff; border:1px solid #e5e3f0; font-size:.83rem; line-height:1.6; overflow-wrap:anywhere; flex-shrink:0; }
.je-chat-user { align-self:flex-end; background:#eeeaff; border-color:#d6cff4; border-radius:12px 12px 3px 12px; color:#4037a8; }
.je-chat-value { display:block; font-size:1.35rem; color:#4037a8; margin-bottom:8px; }
.je-chat-bubble p { margin-bottom:8px; }
.je-chat-row { border-top:1px solid #eee; padding-top:8px; }
.je-chat-bubble small { color:#62677a; }
.je-chat-prompts { padding:12px 16px; border-top:1px solid #e5e3f0; }
.je-chat-prompts summary { font-size:.85rem; font-weight:600; cursor:pointer; color:#4037a8; }
#chatQuestions { max-height:170px; overflow-y:auto; display:grid; gap:8px; margin-top:10px; }
#chatQuestions button { background:#f5f3ff; color:#4037a8; border:1px solid #dcd6f4; border-radius:9px; padding:9px 11px; text-align:left; font-size:.8rem; line-height:1.5; box-shadow:0 2px 4px rgba(79,70,197,.07); }
#chatQuestions button:hover { background:#eae5ff; }
.je-chat button:focus-visible, .je-chat summary:focus-visible { outline:2px solid #a99de9; outline-offset:2px; }
body.modal-open .je-chat, body.je-navigation-open .je-chat { visibility:hidden; }
@media(max-width:575.98px) { .je-chat { right:14px; bottom:calc(78px + env(safe-area-inset-bottom)); max-height:calc(100dvh - 96px - env(safe-area-inset-bottom)); } }

/* Clean original logo mark with sharp, scalable sidebar lettering. */
.je-sidebar .je-sidebar-brand { padding:0 16px; gap:11px; overflow:hidden; }
.je-sidebar-logo-mark { position:relative; display:block; width:46px; height:46px; flex:0 0 46px; overflow:hidden; border-radius:10px; background:#000; }
.je-sidebar-logo-mark img { position:absolute; width:96px; height:96px; max-width:none; left:-24px; top:-10px; }
.je-sidebar-logo-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }
.je-sidebar-logo-name { font-size:18px; line-height:1.2; font-weight:800; letter-spacing:-.6px; white-space:nowrap; color:#161722; }
.je-sidebar-logo-tagline { font-size:10px; line-height:1.3; font-weight:500; letter-spacing:0; white-space:nowrap; color:#5c6072; }

/* Shared icon palette: colors follow the action or module, not menu position. */
.bi { --je-icon-color:#6250c9; --je-icon-soft:#efebff; color:var(--je-icon-color); filter:drop-shadow(0 1px 1px rgba(42,35,78,.16)); }
.bi:is(.bi-cart-check,.bi-cash-coin,.bi-wallet2,.bi-check-circle,.bi-check-lg,.bi-whatsapp) { --je-icon-color:#16845c; --je-icon-soft:#e5f5ed; }
.bi:is(.bi-truck,.bi-clipboard-check,.bi-building,.bi-buildings,.bi-eye,.bi-file-earmark-check) { --je-icon-color:#2876ce; --je-icon-soft:#e8f1ff; }
.bi:is(.bi-boxes,.bi-box-seam,.bi-upc,.bi-upc-scan,.bi-download,.bi-printer) { --je-icon-color:#087f91; --je-icon-soft:#e2f5f8; }
.bi:is(.bi-pencil,.bi-pencil-square,.bi-tags,.bi-bookmark-star,.bi-clock-history,.bi-sliders,.bi-exclamation-triangle) { --je-icon-color:#a86a0d; --je-icon-soft:#fff2d9; }
.bi:is(.bi-trash,.bi-trash3,.bi-arrow-return-left,.bi-arrow-return-right,.bi-x-circle) { --je-icon-color:#c13e62; --je-icon-soft:#fdebf0; }
.bi:is(.bi-people,.bi-person-lines-fill,.bi-person-badge,.bi-shield-lock,.bi-shield-check,.bi-gear) { --je-icon-color:#8852c4; --je-icon-soft:#f2eafb; }
.je-sidebar .nav-link .bi { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; flex:0 0 28px; border-radius:8px; color:var(--je-icon-color); background:var(--je-icon-soft); box-shadow:0 2px 5px rgba(42,35,78,.1); filter:none; }
.je-sidebar .nav-link.active .bi { color:#fff; background:rgba(255,255,255,.18); box-shadow:0 2px 5px rgba(25,20,70,.15); }
.je-sidebar .nav-link:hover:not(.active) .bi { color:var(--je-icon-color); }
.je-kpi-icon, .je-hub-title > .bi { box-shadow:0 3px 8px rgba(42,35,78,.12); }
.je-hub-title > .bi { color:var(--je-icon-color); background:var(--je-icon-soft); filter:none; }
.je-kpi-icon .bi { color:inherit; }
.je-master-link .je-kpi-icon .bi { color:var(--je-icon-color); }
.btn .bi, .je-assistant-launcher .bi, .je-chat-header .bi { color:inherit; filter:drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
.je-assistant-question .bi { color:inherit; }

/* Chat stays beneath the actual app header, including wrapped mobile headers. */
.je-chat { border-radius:16px; }
.je-chat-header { padding:12px 14px; gap:10px; min-height:62px; }
.je-chat-header > .bi { width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.14); border-radius:10px; flex-shrink:0; }
.je-chat-header strong { display:block; font-size:.95rem; line-height:1.4; }
#chatScope { font-size:.72rem; line-height:1.4; margin-top:2px; overflow-wrap:anywhere; }
.je-chat-header button { width:34px; height:34px; display:flex; align-items:center; justify-content:center; flex:0 0 34px; background:rgba(255,255,255,.12); }
.je-chat-messages { min-height:0; padding:14px; gap:10px; overscroll-behavior:contain; scrollbar-width:thin; }
.je-chat-bubble { max-width:94%; padding:10px 12px; line-height:1.55; }
.je-chat-bubble small { display:block; font-size:.68rem; line-height:1.5; }
.je-chat-prompts { flex:0 1 auto; min-height:0; padding:10px 14px; background:#fff; }
#chatQuestions { max-height:var(--chat-question-height,160px); overscroll-behavior:contain; scrollbar-width:thin; padding:2px; }
#chatQuestions button { padding:9px 10px; line-height:1.45; }
.je-chat-prompts > .small { font-size:.68rem; }
.je-chat-compact .je-chat-header { min-height:48px; padding:8px 12px; }
.je-chat-compact .je-chat-header > .bi { width:30px; height:30px; }
.je-chat-compact .je-chat-prompts { padding:6px 12px; }
.je-chat-compact .je-chat-prompts > .small { display:none; }
.je-chat-compact .je-chat-messages { padding:8px 12px; }

/* Assistant robot: a crisp vector avatar with restrained motion. */
.je-assistant-launcher { width:64px; height:64px; border:2px solid #e0e7ff; background:radial-gradient(circle at 28% 18%,#8074f5,#4937b9 72%); box-shadow:0 6px 22px #4937b94d,inset 0 1px 2px #ffffff80; }
.je-assistant-launcher:hover { background:radial-gradient(circle at 28% 18%,#978afa,#513ac9 72%); box-shadow:0 8px 26px #4937b966,inset 0 1px 2px #ffffff80; }
.je-robot-avatar { display:block; width:52px; height:52px; flex-shrink:0; filter:drop-shadow(0 2px 2px #17134440); }
.je-robot-status { position:absolute; right:0; bottom:2px; width:13px; height:13px; border:3px solid #fff; border-radius:50%; background:#22c55e; box-shadow:0 1px 5px #164e6333; }
.je-robot-eyes { transform-box:fill-box; transform-origin:center; animation:je-robot-blink 6s infinite; }
.je-chat-avatar { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; background:#ffffff20; border:1px solid #ffffff40; border-radius:13px; }
.je-chat-avatar .je-robot-avatar { width:38px; height:38px; }
.je-assistant-launcher[aria-expanded="true"] { border-color:#a5f3fc; }
@keyframes je-robot-blink { 0%,43%,47%,100% { transform:scaleY(1); } 45% { transform:scaleY(.15); } }
@media(max-width:575.98px) { .je-assistant-launcher { width:56px; height:56px; } .je-assistant-launcher .je-robot-avatar { width:46px; height:46px; } }
@media(prefers-reduced-motion:reduce) { .je-robot-eyes { animation:none; } }

/* Detail pages and compact tables: allow names and identifiers to wrap. */
.je-dealer-detail .je-kpi-card { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:8px; height:100%; }
.je-dealer-detail .je-kpi-value { font-size:clamp(1.2rem,2vw,1.7rem); overflow-wrap:anywhere; }
.je-dealer-detail table:not(:has(thead)), .je-purchase-detail table:not(:has(thead)) { table-layout:fixed; width:100%; }
.je-dealer-detail td, .je-dealer-detail th, .je-purchase-detail td, .je-purchase-detail th { white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }
.je-purchase-items tbody td { padding:16px 12px; }
.je-purchase-items tfoot td { padding:18px 12px; background:#f0edff; color:#4037a8; font-size:1rem; }
.je-content table.table th, .je-content table.table td, .dataTables_scrollBody table.table tbody td { white-space:normal; overflow-wrap:anywhere; }
.je-content table.table { width:100% !important; }
.je-content .select2-container { max-width:100%; }
.je-feedback-toast .swal2-title, .je-feedback-toast .swal2-html-container, .je-feedback-toast .swal2-close { color:#fff !important; }
.je-feedback-toast { box-shadow:0 6px 24px #18203b33 !important; }
@media(max-width:767.98px) {
 .je-mobile-table thead { display:none; }
 .je-mobile-table, .je-mobile-table tbody, .je-mobile-table tr, .je-mobile-table td { display:block; width:100%; }
 .je-mobile-table tbody tr { border:1px solid #e5e3f0; border-radius:10px; padding:8px 12px; margin-bottom:12px; background:#fff; }
 .je-mobile-table tbody td[data-label] { display:grid; grid-template-columns:minmax(80px,35%) minmax(0,1fr); gap:10px; text-align:left !important; padding:8px 0; border-bottom:1px solid #f0eef7; }
 .je-mobile-table tbody td[data-label]::before { content:attr(data-label); font-weight:600; color:#565b6d; font-size:.75rem; }
 .je-mobile-table tbody td > * { min-width:0; max-width:100%; }
 .je-mobile-table tfoot { display:block; }
 .je-mobile-table tfoot tr { display:flex; justify-content:flex-end; }
 .je-mobile-table tfoot td { width:auto; }
 .je-content .table-responsive { overflow-x:auto; }
}

/* Detailed imported reports and PO lines retain readable fields without horizontal swiping. */
.je-content table.je-detail-grid, .je-content table.po-items { min-width:0!important; width:100%!important; }
.je-content table.je-detail-grid thead, .je-content table.po-items thead { display:none; }
.je-content table.je-detail-grid tbody, .je-content table.po-items tbody { display:block; }
.je-content table.je-detail-grid tbody>tr, .je-content table.po-items tbody>tr { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;padding:16px;margin-bottom:14px;border:1px solid #dfe3ee;border-radius:12px;background:#fff; }
.je-content table.je-detail-grid tbody>tr>td, .je-content table.po-items tbody>tr>td { display:block!important;border:0;padding:4px!important;min-width:0;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important; }
.je-content table.je-detail-grid tbody>tr>td::before, .je-content table.po-items tbody>tr>td::before { content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#514875;margin-bottom:5px; }
.je-content table.po-items tbody>tr>td:nth-child(2) { grid-column:span 2; }
.je-content table.po-items tr.serial-row { display:block;background:#f6f7fb; }
.je-content table.po-items tr.serial-row td { width:100%; }
.je-content table.po-items tr.serial-row td::before { display:none; }
.je-content table.je-detail-grid .dataTables_empty { grid-column:1/-1; }
@media(max-width:991px){.je-content table.je-detail-grid tbody>tr,.je-content table.po-items tbody>tr{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:575px){.je-content table.je-detail-grid tbody>tr,.je-content table.po-items tbody>tr{grid-template-columns:minmax(0,1fr);padding:10px}.je-content table.po-items tbody>tr>td:nth-child(2){grid-column:auto}}

/* Stock overview and Masters: consistent card geometry and distinct accents. */
.je-stock-metric { --stock-accent:#6345ce; --stock-soft:#f0ebff; }
.je-stock-metric:nth-child(2) { --stock-accent:#087f72; --stock-soft:#e3f6f0; }
.je-stock-metric:nth-child(3) { --stock-accent:#b36a07; --stock-soft:#fff3d9; }
.je-stock-metric:nth-child(4) { --stock-accent:#c03761; --stock-soft:#ffebf1; }
.je-stock-dashboard .je-stock-metric-card { position:relative; isolation:isolate; min-height:180px; padding:24px; gap:28px; border:1px solid #e4e5ef; border-radius:18px; background:linear-gradient(135deg,#fff 48%,var(--stock-soft)); box-shadow:0 5px 20px rgb(40 38 70 / 5%); }
.je-stock-metric-card::after { content:''; position:absolute; left:24px; bottom:0; height:3px; width:42px; border-radius:3px 3px 0 0; background:var(--stock-accent); }
.je-stock-dashboard .je-kpi-label { max-width:calc(100% - 54px); min-height:42px; font-size:.82rem; font-weight:600; color:#52556b; }
.je-stock-dashboard .je-kpi-value { font-size:clamp(1.6rem,2.15vw,2.2rem); line-height:1.25; font-weight:750; color:#202138; }
.je-stock-icon { position:absolute; top:22px; right:20px; width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:var(--stock-soft); box-shadow:0 4px 9px color-mix(in srgb,var(--stock-accent) 14%,transparent); }
.je-stock-icon .bi { font-size:22px; color:var(--stock-accent); }
.je-stock-actions { margin-top:4px; }
.je-stock-dashboard .je-stock-transfer-card, .je-stock-dashboard .je-stock-shortcut { position:relative; min-height:170px; padding:22px; border:1px solid #e1e4ef; border-radius:18px; background:#fff; color:#24283d; box-shadow:0 5px 20px rgb(40 38 70 / 5%); }
.je-stock-dashboard .je-stock-shortcut { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:16px; font-size:.9rem; line-height:1.5; }
.je-stock-shortcut > span:last-of-type { padding-right:25px; }
.je-stock-action-icon { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px; background:#eef0ff; margin-bottom:12px; }
.je-stock-shortcut .je-stock-action-icon { margin:0; }
.je-stock-action:nth-child(2) .je-stock-action-icon { background:#e6f2ff; }
.je-stock-action:nth-child(3) .je-stock-action-icon { background:#ffede3; }
.je-stock-action-icon .bi { font-size:21px; }
.je-stock-link-arrow { position:absolute; bottom:24px; right:20px; font-size:16px!important; }
.je-stock-dashboard a:hover .je-card, .je-stock-dashboard .je-stock-shortcut:hover { border-color:#b9b0e7; box-shadow:0 9px 25px rgb(59 44 127 / 10%); }
.je-masters-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.je-masters-grid .je-master-link { --master-accent:#5846c8; --master-soft:#efebff; position:relative; overflow:hidden; min-height:164px; padding:28px; gap:22px; border-radius:18px; border-color:#e3e5ef; background:linear-gradient(115deg,#fff 62%,var(--master-soft)); box-shadow:0 5px 20px rgb(40 38 70 / 5%); }
.je-masters-grid [data-master="suppliers"] { --master-accent:#c36517; --master-soft:#fff0df; }
.je-masters-grid [data-master="branches"] { --master-accent:#078677; --master-soft:#e0f5ef; }
.je-masters-grid [data-master="companies"] { --master-accent:#2166bb; --master-soft:#e6f0ff; }
.je-masters-grid .je-master-link::before { content:''; position:absolute; left:0; top:30px; bottom:30px; width:3px; border-radius:0 3px 3px 0; background:var(--master-accent); }
.je-masters-grid .je-kpi-icon { width:60px; height:60px; flex-basis:60px; border:1px solid color-mix(in srgb,var(--master-accent) 14%,transparent); border-radius:17px; background:var(--master-soft); box-shadow:0 5px 12px color-mix(in srgb,var(--master-accent) 13%,transparent); }
.je-masters-grid .je-master-link .je-kpi-icon .bi { color:var(--master-accent); font-size:26px; }
.je-masters-grid .fw-semibold { font-size:1.05rem; letter-spacing:-.015em; }
.je-masters-grid .je-master-link > .bi-chevron-right { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--master-soft); color:var(--master-accent); }
@media(max-width:1199.98px) { .je-stock-dashboard .je-stock-metric-card { min-height:160px; } }
@media(max-width:575.98px) {
 .je-masters-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
 .je-masters-grid .je-master-link { min-height:112px; padding:20px; gap:16px; }
 .je-masters-grid .je-kpi-icon { width:48px; height:48px; flex-basis:48px; border-radius:14px; }
 .je-stock-dashboard .je-stock-metric-card { min-height:144px; padding:20px; gap:18px; }
 .je-stock-dashboard .je-stock-transfer-card, .je-stock-dashboard .je-stock-shortcut { min-height:132px; padding:20px; }
 .je-stock-dashboard .je-stock-shortcut { flex-direction:row; align-items:center; justify-content:flex-start; padding-right:42px; gap:14px; }
 .je-stock-action-icon { flex-shrink:0; }
 .je-stock-dashboard .je-kpi-label { min-height:32px; }
}

/* Reports follow the same rounded cards and restrained accents as Masters. */
.je-reports-page .je-card { border:1px solid #e3e5ef; border-radius:16px; box-shadow:0 5px 20px rgb(40 38 70 / 5%); overflow:hidden; margin-bottom:0; }
.je-reports-page .je-card-body { padding:20px; min-width:0; }
.je-reports-page .je-card-header { padding:16px 20px; background:#faf9ff; border-bottom:1px solid #ece9f5; font-weight:650; font-size:.9rem; }
.je-reports-page .row > div { --report-accent:#6246cc; --report-soft:#f0ebff; }
.je-reports-page .row > div:nth-child(8n+2) { --report-accent:#087f72; --report-soft:#e3f6f0; }
.je-reports-page .row > div:nth-child(8n+3) { --report-accent:#bc6815; --report-soft:#fff1df; }
.je-reports-page .row > div:nth-child(8n+4) { --report-accent:#246bc0; --report-soft:#e9f2ff; }
.je-reports-page .row > div:nth-child(8n+5) { --report-accent:#b53364; --report-soft:#ffeaf2; }
.je-reports-page .row > div:nth-child(8n+6) { --report-accent:#8a6620; --report-soft:#fff5d9; }
.je-reports-page .row > div:nth-child(8n+7) { --report-accent:#427a27; --report-soft:#edf7e4; }
.je-reports-page .row > div:nth-child(8n+8) { --report-accent:#a34530; --report-soft:#ffede6; }
.je-reports-page .je-report-icon { display:grid; place-items:center; width:46px; height:46px; flex:0 0 46px; border-radius:13px; background:var(--report-soft); box-shadow:0 4px 10px color-mix(in srgb,var(--report-accent) 14%,transparent); }
.je-reports-page .je-report-icon .bi { color:var(--report-accent); font-size:22px; }
.je-reports-page .je-report-value { margin-top:6px; font-size:clamp(1.05rem,1.5vw,1.45rem); font-weight:750; line-height:1.4; color:#202138; overflow-wrap:anywhere; }
.je-reports-page .je-report-link { color:#202138; border-radius:16px; }
.je-reports-page .je-report-link .je-card-body { min-height:120px; background:linear-gradient(115deg,#fff 65%,var(--report-soft)); }
.je-reports-page .je-report-link .je-card-body > div { min-width:0; overflow-wrap:anywhere; }
.je-reports-page .je-report-link:hover, .je-reports-page .je-report-link:hover .je-card { border-color:#beb4e9; box-shadow:0 8px 22px rgb(59 44 127 / 10%); }
.je-reports-page .je-report-link:focus-visible { outline:3px solid #b9b0f7; outline-offset:3px; }
.je-reports-page .je-report-group { display:flex; align-items:center; gap:12px; color:#37334f; font-size:.85rem; font-weight:750; }
.je-reports-page .je-report-group::after { content:''; height:1px; flex:1; background:#e3dff0; }
@media(max-width:575.98px) {
 .je-reports-page .je-card-body { padding:16px; }
 .je-reports-page .je-card-header { padding:14px 16px; }
 .je-reports-page .je-report-link .je-card-body { min-height:104px; }
 .je-reports-page .je-report-icon { width:40px; height:40px; flex-basis:40px; border-radius:11px; }
}

/* Shared profile layout for staff, Super Admin and dealer accounts. */
.je-profile-page { width:100%; max-width:1240px; margin-inline:auto; }
.je-profile-page .je-card { border:1px solid #e2e5f0; border-radius:16px; box-shadow:0 4px 18px rgb(35 35 70 / 5%); overflow:hidden; }
.je-profile-page .je-card-header { min-height:58px; padding:17px 22px; display:flex; align-items:center; gap:8px; background:#fafaff; border-bottom:1px solid #e8e9f3; font-size:.95rem; line-height:1.5; }
.je-profile-page .je-card-body { padding:22px; }
.je-profile-page .form-label { font-size:.82rem; font-weight:600; margin-bottom:7px; }
.je-profile-page input.form-control { min-height:46px; }
.je-profile-page .form-control { border-radius:9px; }
.je-profile-page .btn[type="submit"] { min-height:44px; padding:10px 18px; align-self:flex-start; }
.je-profile-columns > div { display:flex; min-width:0; }
.je-profile-columns > div > .je-card { width:100%; margin-bottom:0; display:flex; flex-direction:column; }
.je-profile-columns .je-card-body { flex:1; display:flex; flex-direction:column; }
.je-profile-columns form { display:flex; flex-direction:column; flex:1; }
.je-profile-columns form > .btn[type="submit"] { margin-top:auto; }
.je-profile-meta { margin-inline:0; padding:12px 10px; border:1px solid #e9e7f5; border-radius:10px; background:#f8f7fd; line-height:1.65; overflow-wrap:anywhere; }
.je-profile-meta > div { margin-top:0; }
.je-profile-business { display:grid; grid-template-columns:minmax(105px,34%) minmax(0,1fr); column-gap:16px; }
.je-profile-business > dt,.je-profile-business > dd { width:auto; padding:10px 0; margin:0!important; border-bottom:1px solid #eef0f5; font-size:.85rem; line-height:1.5; overflow-wrap:anywhere; }
.je-profile-business > dt { color:#565b70; font-weight:600; }
.je-profile-business > dd { color:#1c2335; }
.je-profile-business + p { margin-top:16px; }
@media(max-width:575.98px) {
 .je-profile-page .je-card-header { padding:14px 16px; min-height:52px; }
 .je-profile-page .je-card-body { padding:16px; }
 .je-profile-page input.form-control { font-size:16px; }
 .je-profile-page .btn[type="submit"] { width:100%; }
 .je-profile-business { grid-template-columns:minmax(90px,35%) minmax(0,1fr); gap:0 12px; }
}

@media(max-width:575.98px) {
 .je-topnav:has(.je-back-button):not(:has(#branchSwitchForm)) { flex-wrap:nowrap; align-items:center; }
 .je-topnav:has(.je-back-button):not(:has(#branchSwitchForm)) .je-topnav-heading { flex:1 1 0; min-width:0; }
 .je-topnav:has(.je-back-button):not(:has(#branchSwitchForm)) .je-topnav-actions { width:auto; flex:0 0 auto; margin-left:0; }
}
