:root {
    --mb-admin-navy: #14325f;
    --mb-admin-navy-2: #23527f;
    --mb-admin-ink: #17243b;
    --mb-admin-muted: #66758f;
    --mb-admin-line: #dde6f0;
    --mb-admin-soft: #f4f7fb;
    --mb-admin-surface: #ffffff;
    --mb-admin-teal: #009688;
    --mb-admin-teal-2: #00796f;
    --mb-admin-cyan-soft: #e8f7f6;
    --mb-admin-sidebar-bg: #f8fbff;
    --mb-admin-sidebar-hover: #eef6fb;
    --mb-admin-sidebar-active: #e5f7f5;
    --mb-admin-sidebar-ink: #2e3f58;
    --mb-admin-amber: #a16207;
    --mb-admin-red: #b93832;
    --mb-admin-sidebar: 240px;
}

body {
    background: #f3f6fa;
    color: var(--mb-admin-ink);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#page-wrapper {
    background: #f3f6fa;
}

#page-wrapper h1,
#page-wrapper h2,
#page-wrapper h3,
#page-wrapper h4,
#page-wrapper h5,
#page-wrapper h6 {
    color: var(--mb-admin-navy);
    font-weight: 800;
    letter-spacing: 0;
}

#page-wrapper h1 {
    font-size: 28px;
    line-height: 1.2;
}

#page-wrapper h2,
#page-wrapper h3 {
    font-size: 22px;
    line-height: 1.25;
}

#page-wrapper h4,
#page-wrapper h5,
#page-wrapper h6 {
    font-size: 16px;
    line-height: 1.35;
}

#page-wrapper label,
#page-wrapper .control-label {
    color: #40506b;
    font-size: 12px;
    font-weight: 700;
}

.navbar.navbar-default.navbar-static-top,
.navbar-header {
    height: 66px !important;
    min-height: 66px !important;
    background: #ffffff !important;
    border: 0;
    border-bottom: 1px solid var(--mb-admin-line);
    box-shadow: 0 8px 24px rgba(18, 43, 87, .06);
    z-index: 9200;
}

.navbar-header {
    display: flex;
    align-items: center;
}

.navbar-top-links {
    display: flex !important;
    align-items: center;
}

.navbar-top-links > li > a,
.navbar-top-links .profile-pic {
    min-height: 66px;
    display: inline-flex !important;
    align-items: center;
    padding: 0 16px !important;
    color: var(--mb-admin-navy) !important;
    font-size: 14px;
    font-weight: 750;
}

.navbar-top-links > li > a:hover,
.navbar-top-links > li > a:focus {
    background: #f6f9fd !important;
    color: var(--mb-admin-teal) !important;
}

.navbar-default.sidebar {
    background: var(--mb-admin-sidebar-bg);
    border-right: 1px solid var(--mb-admin-line);
    box-shadow: 8px 0 24px rgba(20, 50, 95, .08);
    top: 66px !important;
    height: calc(100vh - 66px) !important;
    z-index: 6100;
}

.sidebar .sidebar-nav {
    padding: 12px 10px 22px;
}

#side-menu {
    display: grid;
    gap: 3px;
}

#side-menu .nav-small-cap {
    margin: 16px 8px 7px;
    padding: 0;
    color: #8b9ab0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

#side-menu > li > a,
#side-menu .nav-second-level > li > a {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 9px;
    border-radius: 7px;
    color: var(--mb-admin-sidebar-ink);
    font-weight: 700;
}

#side-menu > li > a {
    padding: 10px 12px;
}

#side-menu > li > a i,
#side-menu .linea-icon {
    color: inherit !important;
}

#side-menu > li > a:hover,
#side-menu > li > a:focus,
#side-menu > li.active > a,
#side-menu .nav-second-level > li > a:hover,
#side-menu .nav-second-level > li > a:focus {
    background: var(--mb-admin-sidebar-hover);
    color: var(--mb-admin-teal-2);
}

#side-menu > li.active > a {
    background: var(--mb-admin-sidebar-active);
    box-shadow: inset 3px 0 0 var(--mb-admin-teal);
}

#side-menu .nav-second-level {
    margin: 3px 0 8px 18px;
    padding: 4px 0 4px 10px;
    border-left: 1px solid #d8e5ef;
}

#side-menu .nav-second-level > li > a {
    min-height: 34px;
    padding: 8px 10px;
    color: #607087;
    font-size: 12px;
    line-height: 1.35;
}

#side-menu .badge {
    border-radius: 999px;
    padding: 4px 7px;
    background: #fbe7e4 !important;
    color: var(--mb-admin-red) !important;
    font-size: 10px;
    font-weight: 800;
}

.navbar-header .top-left-part,
body.fix-sidebar .navbar-header .top-left-part {
    position: relative !important;
    float: none !important;
    flex: 0 0 var(--mb-admin-sidebar) !important;
    width: var(--mb-admin-sidebar) !important;
    min-width: var(--mb-admin-sidebar) !important;
    max-width: var(--mb-admin-sidebar) !important;
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    padding: 0 22px;
    background: #ffffff !important;
    border-right: 1px solid var(--mb-admin-line);
}

.navbar-header .top-left-part .logo,
.navbar-header .top-left-part .logo-full {
    display: flex !important;
    width: 100%;
    height: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.top-left-part .logo-short {
    display: none;
}

.top-left-part .logo-short img {
    display: block;
    max-width: 38px;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.navbar-header .top-left-part .logo-full img {
    display: block;
    max-width: 176px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.open-close,
.navbar-toggle {
    color: var(--mb-admin-navy) !important;
}

.bo-workspace {
    padding: 22px 0 32px;
}

.bo-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 100%);
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(18, 43, 87, .06);
}

.bo-page-title {
    margin: 0;
    color: var(--mb-admin-navy);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.bo-page-subtitle {
    margin: 8px 0 0;
    color: var(--mb-admin-muted);
    font-size: 14px;
    line-height: 1.5;
}

.bo-head-actions,
.bo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bo-panel {
    margin-bottom: 18px;
    background: var(--mb-admin-surface);
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(18, 43, 87, .06);
}

.bo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--mb-admin-line);
}

.bo-panel-title {
    margin: 0;
    color: var(--mb-admin-navy);
    font-size: 18px;
    font-weight: 700;
}

.bo-panel-subtitle {
    margin: 4px 0 0;
    color: var(--mb-admin-muted);
    font-size: 13px;
}

.bo-panel-body {
    padding: 20px;
}

.bo-filterbar {
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--mb-admin-soft);
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
}

.bo-filterbar-wide {
    grid-template-columns: repeat(3, minmax(210px, 1fr)) auto;
}

.bo-inline-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bo-inline-fields > span {
    color: var(--mb-admin-muted);
    font-size: 12px;
    font-weight: 700;
}

.bo-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 18px;
}

.bo-field label,
.bo-filterbar label {
    display: block;
    margin-bottom: 7px;
    color: #40506b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bo-field .form-control,
.bo-filterbar .form-control,
.bo-panel .form-control,
.bo-panel select,
.bo-panel textarea {
    max-width: none;
    min-height: 40px;
    border-color: #cfdae8;
    border-radius: 6px;
    box-shadow: none;
}

.bo-field .form-control:focus,
.bo-filterbar .form-control:focus,
.bo-panel .form-control:focus,
.bo-panel select:focus,
.bo-panel textarea:focus {
    border-color: var(--mb-admin-navy-2);
    box-shadow: 0 0 0 3px rgba(25, 58, 114, .12);
}

#page-wrapper .btn,
#page-wrapper .dt-button,
.bo-panel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    border-width: 1px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

#page-wrapper .btn-sm,
#page-wrapper .btn.btn-sm,
#page-wrapper .dt-button.btn-sm {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.bo-panel .btn-primary,
.bo-panel .btn-success,
.bo-panel .dt-button.buttons-edit,
#page-wrapper .btn-success,
#page-wrapper .btn-primary {
    background: var(--mb-admin-teal) !important;
    border-color: var(--mb-admin-teal) !important;
    color: #fff !important;
}

.bo-panel .btn-primary:hover,
.bo-panel .btn-success:hover,
#page-wrapper .btn-primary:hover,
#page-wrapper .btn-success:hover,
.bo-panel .dt-button.buttons-edit:hover {
    background: var(--mb-admin-teal-2) !important;
    border-color: var(--mb-admin-teal-2) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(0, 150, 136, .16);
}

.bo-panel .btn-secondary,
#page-wrapper .btn-secondary,
#page-wrapper .btn-default,
#page-wrapper .dt-button {
    background: #fff !important;
    border: 1px solid #cfd9e6 !important;
    color: var(--mb-admin-navy) !important;
}

.bo-panel .btn-secondary:hover,
#page-wrapper .btn-secondary:hover,
#page-wrapper .btn-default:hover,
#page-wrapper .dt-button:hover {
    background: #f5f9fc !important;
    border-color: #b9c8db !important;
    color: var(--mb-admin-teal-2) !important;
}

.bo-panel .btn-danger,
#page-wrapper .btn-danger,
.bo-panel .dt-button.buttons-remove {
    background: #fff2f0 !important;
    border-color: #f2b8b5 !important;
    color: var(--mb-admin-red) !important;
}

#page-wrapper .btn-danger:hover,
.bo-panel .dt-button.buttons-remove:hover {
    background: #fbe3df !important;
    border-color: #df928d !important;
    color: #8f2823 !important;
}

#page-wrapper .btn-info {
    border-color: #b9ddda !important;
    background: var(--mb-admin-cyan-soft) !important;
    color: var(--mb-admin-teal-2) !important;
}

#page-wrapper .btn-warning {
    border-color: #f1d28a !important;
    background: #fff7e4 !important;
    color: var(--mb-admin-amber) !important;
}

#page-wrapper .btn:focus,
#page-wrapper .dt-button:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, .14) !important;
}

#page-wrapper > .container-fluid:not(.bo-workspace) {
    padding: 22px 24px 32px;
}

#page-wrapper .white-box,
#page-wrapper .panel {
    background: #fff !important;
    border: 1px solid var(--mb-admin-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 26px rgba(18, 43, 87, .06) !important;
}

#page-wrapper .panel .panel-heading,
#page-wrapper .panel-success .panel-heading,
#page-wrapper .panel-info .panel-heading,
#page-wrapper .panel-primary .panel-heading,
#page-wrapper .panel-warning .panel-heading {
    padding: 16px 20px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--mb-admin-line) !important;
    color: var(--mb-admin-navy) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

#page-wrapper .panel-success,
#page-wrapper .panel-info,
#page-wrapper .panel-primary,
#page-wrapper .panel-warning,
#page-wrapper .panel-danger {
    border-color: var(--mb-admin-line) !important;
}

#page-wrapper .label,
#page-wrapper .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

#page-wrapper .label-success,
#page-wrapper .badge.bg-success {
    background: #e7f6ef !important;
    color: #116149 !important;
}

#page-wrapper .label-info,
#page-wrapper .badge.bg-info,
#page-wrapper .badge.bg-primary {
    background: var(--mb-admin-cyan-soft) !important;
    color: var(--mb-admin-teal-2) !important;
}

#page-wrapper .label-warning,
#page-wrapper .badge.bg-warning {
    background: #fff7e4 !important;
    color: var(--mb-admin-amber) !important;
}

#page-wrapper .label-danger,
#page-wrapper .badge.bg-danger {
    background: #fff2f0 !important;
    color: var(--mb-admin-red) !important;
}

#page-wrapper .label-default,
#page-wrapper .badge.bg-secondary,
#page-wrapper .badge.bg-default {
    background: #edf2f7 !important;
    color: #526277 !important;
}

#page-wrapper .panel .panel-body,
#page-wrapper .white-box {
    padding: 20px !important;
}

#page-wrapper .bg-title {
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
}

#page-wrapper .page-title {
    color: var(--mb-admin-navy);
    font-size: 24px;
    font-weight: 800;
}

#page-wrapper .form-control {
    max-width: none;
    min-height: 40px;
    border: 1px solid #cfdae8;
    border-radius: 6px;
    box-shadow: none;
}

#page-wrapper .form-control:focus {
    border-color: var(--mb-admin-navy-2);
    box-shadow: 0 0 0 3px rgba(25, 58, 114, .12);
}

.bo-account-result {
    display: grid;
    gap: 16px;
}

.bo-result-summary {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    padding: 10px 13px;
    background: #f6f9fd;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
}

.bo-result-summary span {
    color: var(--mb-admin-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bo-result-summary strong {
    color: var(--mb-admin-navy);
    font-size: 15px;
}

.bo-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 0 !important;
}

.bo-tab-nav > li > a,
.bo-tab-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px !important;
    border: 1px solid #d5deea !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--mb-admin-navy) !important;
    font-weight: 800;
}

.bo-tab-nav > li > a.active,
.bo-tab-nav .nav-link.active {
    background: var(--mb-admin-teal) !important;
    border-color: var(--mb-admin-teal) !important;
    color: #fff !important;
}

.bo-loading-dot {
    width: 32px;
    height: 32px;
    border: 3px solid #d8e2ee;
    border-top-color: var(--mb-admin-teal);
    border-radius: 999px;
    animation: bo-spin .8s linear infinite;
}

@keyframes bo-spin {
    to {
        transform: rotate(360deg);
    }
}

.bo-info-note {
    margin: 0;
    padding: 14px 16px;
    background: #eef8f7;
    border: 1px solid #b9ddda;
    border-left: 4px solid var(--mb-admin-teal);
    border-radius: 8px;
    color: #224e50;
}

.bo-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 18px;
    align-items: end;
}

.bo-filter-grid label,
.bo-panel-body label {
    margin-bottom: 6px;
    color: #293a56;
    font-size: 13px;
    font-weight: 800;
}

.bo-filter-grid .form-control,
.bo-filter-grid .my-select,
.bo-filter-grid .bo-plain-select,
.bo-filter-grid .select2-container .select2-selection,
.bo-panel .form-control {
    min-height: 38px;
    border: 1px solid #cfdae8;
    border-radius: 7px;
    color: #1f2d44;
    font-size: 14px;
}

.bo-filter-grid select.bo-plain-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100%;
    padding-right: 34px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23008f87' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: calc(100% - 14px) 50% !important;
    background-size: 14px 14px !important;
    background-repeat: no-repeat !important;
    cursor: pointer;
}

.bo-filter-grid select.bo-plain-select::-ms-expand {
    display: none;
}

.bo-filter-grid .caret {
    display: none !important;
}

.bo-filter-grid select.bo-plain-select:focus {
    border-color: var(--mb-admin-teal);
    box-shadow: 0 0 0 3px rgba(0, 163, 155, .14);
}

.bo-user-search-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.bo-range-inputs .input-group-text {
    border-color: #cfdae8;
    background: #f5f8fb;
    color: #65748c;
    font-weight: 800;
}

.bo-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    background: #fff;
}

.bo-panel table.dataTable,
.bo-panel .table,
#page-wrapper table.dataTable,
#page-wrapper .table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.bo-panel table.dataTable thead th,
#page-wrapper table.dataTable thead th,
.bo-panel .table thead th,
#page-wrapper .table thead th {
    padding: 12px 14px;
    background: #eef3f8;
    border-bottom: 1px solid var(--mb-admin-line);
    color: #41516b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.bo-panel table.dataTable tbody td,
#page-wrapper table.dataTable tbody td,
.bo-panel .table tbody td,
#page-wrapper .table tbody td {
    padding: 12px 14px;
    border-top: 1px solid #edf1f6;
    color: #1f2d44;
    vertical-align: middle;
}

.bo-panel table.dataTable tbody tr:hover,
#page-wrapper table.dataTable tbody tr:hover,
#page-wrapper .table tbody tr:hover {
    background: #f7fafc;
}

.bo-panel .dataTables_wrapper {
    padding: 0;
}

.bo-panel .dataTables_wrapper .dataTables_length,
.bo-panel .dataTables_wrapper .dt-buttons,
.bo-panel .dataTables_wrapper .dataTables_filter {
    margin: 0 0 12px;
}

.bo-panel .dataTables_wrapper .dataTables_length,
.bo-panel .dataTables_wrapper .dataTables_filter {
    color: #34445d;
    font-size: 13px;
    font-weight: 700;
}

.bo-panel .dataTables_wrapper .dataTables_filter input,
.bo-panel .dataTables_wrapper .dataTables_length select {
    max-width: none;
    min-height: 36px;
    border: 1px solid #cfdae8;
    border-radius: 6px;
}

.bo-panel .dataTables_wrapper .dataTables_info,
.bo-panel .dataTables_wrapper .dataTables_paginate {
    padding: 12px 0 0;
    color: #65748c;
    font-size: 13px;
}

.bo-panel .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #d5deea !important;
    border-radius: 6px !important;
    color: var(--mb-admin-navy) !important;
}

.bo-panel .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.bo-panel .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--mb-admin-teal) !important;
    border-color: var(--mb-admin-teal) !important;
    color: #fff !important;
}

.bo-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bo-status-success {
    background: #e7f6ef;
    color: #116149;
}

.bo-status-warning {
    background: #fff5df;
    color: #805a12;
}

.bo-status-danger {
    background: #fff0ed;
    color: #9d2f29;
}

.bo-status-muted {
    background: #edf2f7;
    color: #526277;
}

.bo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.bo-badge-success {
    background: #e4f6ef;
    color: #0d6b4e;
}

.bo-badge-warning {
    background: #fff2d8;
    color: #825815;
}

.bo-badge-danger {
    background: #fff0ed;
    color: #a3342d;
}

.bo-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    margin: 1px 2px;
    border-radius: 999px;
    background: #e9f3f2;
    border: 1px solid #b9ddda;
    color: #12645c;
    font-size: 11px;
    font-weight: 800;
}

.bo-lang-pill.is-muted {
    background: #f1f4f8;
    border-color: #d7e0eb;
    color: #95a1b3;
}

.bo-table-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.bo-table-actions .btn {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

body.bo-admin-shell .bo-content-actions-cell {
    min-width: 260px;
}

body.bo-admin-shell .bo-preview-row {
    color: var(--mb-admin-navy);
    border-color: rgba(0, 154, 141, .28);
    background: rgba(0, 154, 141, .09);
}

.bo-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mb-admin-navy);
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.bo-link-button span {
    color: var(--mb-admin-teal);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.bo-link-button strong {
    overflow: hidden;
    color: #243650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo-link-button:hover strong,
.bo-link-button:focus strong {
    color: var(--mb-admin-teal-2);
    text-decoration: underline;
}

.bo-status-action {
    border: 0;
    cursor: pointer;
}

.bo-status-action:hover,
.bo-status-action:focus {
    box-shadow: inset 0 0 0 1px rgba(17, 97, 73, .22);
    filter: brightness(.98);
}

.bo-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #d4dfec;
    border-radius: 999px;
    background: #fff;
    color: var(--mb-admin-navy);
    cursor: pointer;
}

.bo-icon-button:hover,
.bo-icon-button:focus {
    border-color: #b9d9d6;
    background: var(--mb-admin-cyan-soft);
    color: var(--mb-admin-teal-2);
}

body.bo-preview-open {
    overflow: hidden;
}

.bo-image-preview {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.bo-image-preview.is-open {
    display: flex;
}

.bo-image-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 19, 35, .72);
    backdrop-filter: blur(2px);
}

.bo-image-preview__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(240px, 1fr) auto;
    width: min(980px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    overflow: hidden;
    border: 1px solid rgba(213, 226, 239, .94);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 21, 41, .38);
}

.bo-image-preview__header,
.bo-image-preview__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mb-admin-line);
}

.bo-image-preview__header h2 {
    margin: 0;
    font-size: 19px;
}

.bo-image-preview__header p {
    margin: 3px 0 0;
    color: var(--mb-admin-muted);
    font-size: 13px;
}

.bo-image-preview__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: auto;
    padding: 18px;
    background: #f5f8fc;
}

.bo-image-preview__image {
    display: none;
    max-width: 100%;
    max-height: calc(100vh - 210px);
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 12px 30px rgba(23, 36, 59, .16);
}

.bo-image-preview__loading,
.bo-image-preview__empty {
    color: #687892;
    font-weight: 750;
}

.bo-image-preview__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 240px;
    width: min(520px, 100%);
    padding: 28px;
    border: 1px dashed #b9c8db;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.bo-image-preview__empty i {
    color: #91a1b7;
    font-size: 34px;
}

.bo-image-preview__footer {
    border-top: 1px solid var(--mb-admin-line);
    border-bottom: 0;
}

.bo-image-preview__footer strong {
    color: var(--mb-admin-navy);
    font-size: 15px;
}

.bo-records-page {
    max-width: none;
}

.bo-wallet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--mb-admin-line);
    padding-bottom: 10px;
}

.bo-wallet-tabs button {
    border: 1px solid var(--mb-admin-line);
    background: #fff;
    color: #243854;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.bo-wallet-tabs button.active,
.bo-wallet-tabs button:hover {
    color: var(--mb-admin-teal);
    background: #e8f8f6;
    border-color: rgba(0, 151, 139, .28);
    box-shadow: inset 3px 0 0 var(--mb-admin-teal);
}

.bo-record-table td {
    vertical-align: top;
}

.bo-description-cell {
    max-width: 420px;
    color: #243854;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bo-table-date,
.bo-table-time {
    display: block;
    white-space: nowrap;
}

.bo-table-time {
    margin-top: 2px;
    color: #6b7b92;
    font-size: 12px;
}

.bo-amount-strong {
    color: #0f274f;
    font-weight: 850;
    white-space: nowrap;
}

.bo-remark-cell {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: start;
    gap: 8px;
    max-width: 460px;
    text-align: left;
}

.bo-remark-cell span {
    display: -webkit-box;
    overflow: hidden;
    color: #2e3f58;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bo-detail-modal .modal-content {
    width: 100%;
    border: 1px solid var(--mb-admin-line);
    border-radius: 10px;
    box-shadow: 0 22px 56px rgba(17, 36, 69, .24);
}

.bo-detail-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 48px);
    margin-top: 24px;
    margin-bottom: 24px;
}

.bo-detail-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mb-admin-line);
}

.bo-detail-modal .modal-title {
    margin: 0;
    color: var(--mb-admin-navy);
    font-weight: 850;
}

.bo-modal-subtitle {
    margin: 4px 0 0;
    color: var(--mb-admin-muted);
    font-size: 13px;
}

.bo-detail-grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
    align-items: start;
}

.bo-detail-grid dt {
    color: #62738d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
    text-align: left;
}

.bo-detail-grid dd {
    margin: 0;
    color: #17243b;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.bo-content-preview-modal .modal-dialog {
    max-width: min(1080px, calc(100vw - 32px));
}

.bo-content-preview-modal .modal-body {
    max-height: calc(100vh - 180px);
    overflow: auto;
    background: #f5f8fb;
}

.bo-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bo-preview-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #d8e5ef;
    border-radius: 999px;
    background: #fff;
    color: var(--mb-admin-navy);
    font-weight: 800;
}

.bo-preview-tab span {
    color: var(--mb-admin-muted);
    font-size: 12px;
    font-weight: 750;
}

.bo-preview-tab.active {
    border-color: rgba(0, 150, 136, .34);
    background: var(--mb-admin-cyan-soft);
    color: var(--mb-admin-teal-2);
}

.bo-preview-tab.is-missing {
    opacity: .56;
}

.bo-preview-empty {
    padding: 32px;
    border: 1px dashed #c7d8e5;
    border-radius: 8px;
    background: #fff;
    color: var(--mb-admin-muted);
    text-align: center;
    font-weight: 800;
}

.bo-customer-preview-card {
    max-width: 820px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--mb-admin-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(18, 43, 87, .10);
}

.bo-customer-preview-image {
    position: relative;
    display: flex;
    min-height: 220px;
    margin: 0;
    align-items: center;
    justify-content: center;
    background: #eef4f8;
}

.bo-customer-preview-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.bo-preview-image-link {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(8, 146, 132, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--mb-admin-teal);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 43, 87, .12);
}

.bo-preview-image-link:hover,
.bo-preview-image-link:focus {
    color: #fff;
    background: var(--mb-admin-teal);
    text-decoration: none;
}

.bo-customer-preview-content {
    padding: 24px;
}

.bo-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.bo-preview-meta span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef5fb;
    color: #50627a;
    font-size: 12px;
    font-weight: 800;
}

.bo-customer-preview-content h1 {
    margin: 0 0 12px !important;
    color: var(--mb-admin-navy) !important;
    font-size: 26px !important;
    line-height: 1.28 !important;
}

.bo-preview-short {
    margin: 0 0 16px;
    color: #53657d;
    font-size: 15px;
    line-height: 1.6;
}

.bo-preview-html {
    color: #1d2f4a;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.bo-preview-html img,
.bo-preview-html iframe,
.bo-preview-html video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .bo-detail-modal .modal-dialog {
        min-height: calc(100vh - 24px);
        margin: 12px;
    }

    .bo-detail-grid {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
}

/* Standard CRUD replacement for legacy DataTables Editor pages */
body.bo-admin-shell .bo-crud-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .8fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    padding: 14px;
    background: #f6f9fc;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
}

body.bo-admin-shell .bo-crud-toolbar-actions,
body.bo-admin-shell .bo-crud-row-actions,
body.bo-admin-shell .bo-crud-pagination,
body.bo-admin-shell .bo-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.bo-admin-shell .bo-crud-row-actions {
    justify-content: flex-start;
    margin-bottom: 12px;
}

body.bo-admin-shell .bo-crud-table tbody tr {
    cursor: pointer;
}

body.bo-admin-shell .bo-crud-table tbody tr.is-selected,
body.bo-admin-shell .bo-crud-table tbody tr.is-selected:hover {
    background: #e9f7f5;
    box-shadow: inset 3px 0 0 var(--mb-admin-teal);
}

body.bo-admin-shell .bo-crud-pagination {
    justify-content: space-between;
    margin-top: 12px;
    color: var(--mb-admin-muted);
    font-size: 13px;
    font-weight: 700;
}

body.bo-admin-shell .bo-crud-pagination .form-control {
    width: auto;
    min-width: 76px;
    min-height: 34px;
}

body.bo-admin-shell .bo-crud-modal {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.bo-admin-shell .bo-crud-modal.is-open {
    display: flex;
}

body.bo-admin-shell .bo-crud-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 22, 38, .58);
    backdrop-filter: blur(4px);
}

body.bo-admin-shell .bo-crud-modal__dialog {
    position: relative;
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 72px);
    overflow: auto;
    background: var(--mb-admin-surface);
    border: 1px solid rgba(205, 218, 232, .95);
    border-radius: 10px;
    box-shadow: 0 26px 80px rgba(10, 25, 47, .24);
}

body.bo-admin-shell .bo-crud-modal__dialog--small {
    width: min(520px, calc(100vw - 48px));
}

body.bo-admin-shell .bo-crud-modal__header,
body.bo-admin-shell .bo-crud-modal__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--mb-admin-line);
}

body.bo-admin-shell .bo-crud-modal__footer {
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid var(--mb-admin-line);
    border-bottom: 0;
}

body.bo-admin-shell .bo-crud-modal__body {
    padding: 20px 22px;
}

body.bo-admin-shell .bo-crud-modal__header h3 {
    margin: 0;
    color: var(--mb-admin-navy);
    font-size: 20px;
    font-weight: 800;
}

body.bo-admin-shell .bo-crud-modal__header p {
    margin: 5px 0 0;
    color: var(--mb-admin-muted);
    font-size: 13px;
    line-height: 1.45;
}

body.bo-admin-shell .bo-crud-modal__close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #66758d;
    font-size: 28px;
    line-height: 1;
}

body.bo-admin-shell .bo-crud-modal__close:hover,
body.bo-admin-shell .bo-crud-modal__close:focus {
    background: #f1f5f9;
    color: var(--mb-admin-navy);
}

@media (max-width: 1180px) {
    body.bo-admin-shell .bo-crud-toolbar {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 760px) {
    body.bo-admin-shell .bo-crud-toolbar {
        grid-template-columns: 1fr;
    }

    body.bo-admin-shell .bo-crud-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

body.bo-admin-shell .bo-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

body.bo-admin-shell .bo-analytics-range {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

body.bo-admin-shell .bo-analytics-range .bo-filter-tabs {
    margin-top: 0;
}

body.bo-admin-shell .bo-custom-range {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px;
    border: 1px solid #d9e6ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
}

body.bo-admin-shell .bo-custom-range label {
    display: grid;
    gap: 3px;
    margin: 0;
}

body.bo-admin-shell .bo-custom-range label span {
    color: #607087;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

body.bo-admin-shell .bo-custom-range .form-control {
    width: 132px;
    min-height: 30px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
}

body.bo-admin-shell .bo-custom-range .btn {
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
}

body.bo-admin-shell .bo-metric-card {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    box-shadow: var(--mb-admin-shadow-sm);
}

@media (max-width: 991px) {
    body.bo-admin-shell .bo-analytics-range {
        justify-content: flex-start;
    }

    body.bo-admin-shell .bo-custom-range {
        border-radius: 8px;
        justify-content: flex-start;
    }
}

body.bo-admin-shell .bo-metric-card span {
    display: block;
    color: var(--mb-admin-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

body.bo-admin-shell .bo-metric-card strong {
    color: var(--mb-admin-ink);
    font-size: 26px;
    line-height: 1.1;
}

body.bo-admin-shell .bo-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

body.bo-admin-shell .bo-setting-row {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    align-items: center;
    gap: 14px 22px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f6f9fc;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
}

body.bo-admin-shell .bo-setting-row label {
    margin: 0;
    color: #263954;
    font-size: 13px;
    font-weight: 900;
}

body.bo-admin-shell .bo-toggle-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.bo-admin-shell .bo-toggle-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mb-admin-teal);
}

body.bo-admin-shell .bo-compact-form .bo-field small {
    display: block;
    margin-top: 5px;
    color: var(--mb-admin-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.bo-admin-shell .bo-help-block {
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
}

body.bo-admin-shell .bo-help-block h3 {
    margin: 0 0 10px;
    color: var(--mb-admin-navy);
    font-size: 15px;
    font-weight: 900;
}

body.bo-admin-shell .bo-help-block ol {
    margin: 0;
    padding-left: 18px;
    color: #33445f;
    font-size: 13px;
    line-height: 1.55;
}

body.bo-admin-shell .bo-help-block p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #33445f;
    font-size: 13px;
}

body.bo-admin-shell .bo-mini-detail {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 6px 12px;
    margin: 0;
    color: #33445f;
    font-size: 13px;
}

body.bo-admin-shell .bo-mini-detail dt {
    color: var(--mb-admin-muted);
    font-weight: 800;
}

body.bo-admin-shell .bo-mini-detail dd {
    margin: 0;
    font-weight: 800;
}

body.bo-admin-shell .bo-upload-dropzone {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #f6f9fc;
    border: 1px dashed #b9c8dc;
    border-radius: 8px;
}

body.bo-admin-shell .bo-upload-dropzone label {
    margin: 0;
    color: #263954;
    font-size: 13px;
    font-weight: 900;
}

body.bo-admin-shell .bo-upload-dropzone small {
    color: var(--mb-admin-muted);
    font-size: 12px;
}

@media (max-width: 767px) {
    body.bo-admin-shell .bo-setting-row {
        grid-template-columns: 1fr;
    }
}

body.bo-admin-shell .bo-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7df;
    color: #7c5600;
    font-weight: 800;
}

body.bo-admin-shell .bo-rating-badge span {
    color: #d89100;
    letter-spacing: 1px;
}

body.bo-admin-shell .bo-analytics-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 12px;
}

body.bo-admin-shell .bo-analytics-visual-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
}

body.bo-admin-shell .bo-visual-title {
    margin-bottom: 10px;
    color: var(--mb-admin-navy);
    font-size: 13px;
    font-weight: 850;
}

body.bo-admin-shell .bo-line-chart {
    min-height: 260px;
}

body.bo-admin-shell .bo-line-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

body.bo-admin-shell .bo-chart-grid {
    stroke: #e6eef5;
    stroke-width: 1;
}

body.bo-admin-shell .bo-chart-axis {
    fill: #7890aa;
    font-size: 12px;
    font-weight: 700;
}

body.bo-admin-shell .bo-chart-x {
    text-anchor: middle;
}

body.bo-admin-shell .bo-chart-area {
    fill: url("#boLineGradient");
    fill: rgba(0, 151, 139, .10);
}

body.bo-admin-shell .bo-chart-line {
    fill: none;
    stroke: var(--mb-admin-teal);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.bo-admin-shell .bo-chart-dot {
    fill: #fff;
    stroke: var(--mb-admin-teal);
    stroke-width: 3;
}

body.bo-admin-shell .bo-heat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
    gap: 6px;
}

body.bo-admin-shell .bo-heat-cell {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #edf4f8;
    color: #4e6682;
}

body.bo-admin-shell .bo-heat-cell b {
    font-size: 10px;
    font-weight: 800;
}

body.bo-admin-shell .bo-heat-1 { background: #d8f2ef; color: #0d766f; }
body.bo-admin-shell .bo-heat-2 { background: #a8e1dc; color: #075f59; }
body.bo-admin-shell .bo-heat-3 { background: #64c8c0; color: #063f3c; }
body.bo-admin-shell .bo-heat-4 { background: #20a89d; color: #fff; }
body.bo-admin-shell .bo-heat-5 { background: #007f78; color: #fff; }

body.bo-admin-shell .bo-heat-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--mb-admin-muted);
    font-size: 11px;
    font-weight: 750;
}

body.bo-admin-shell .bo-heat-legend i {
    width: 16px;
    height: 10px;
    border-radius: 999px;
}

body.bo-admin-shell .bo-map-layout {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(320px, 1.05fr);
    gap: 14px;
    align-items: start;
}

body.bo-admin-shell .bo-region-map {
    min-height: 360px;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    background: linear-gradient(145deg, #f9fcff 0%, #eef6fb 100%);
    overflow: hidden;
}

body.bo-admin-shell .bo-map-loading {
    display: grid;
    min-height: 360px;
    place-items: center;
    color: var(--mb-admin-muted);
    font-weight: 800;
}

body.bo-admin-shell .bo-map-fallback {
    display: grid;
    gap: 10px;
    padding: 14px;
}

body.bo-admin-shell .bo-map-fallback > p {
    margin: 0 0 2px;
    color: var(--mb-admin-muted);
    font-size: 12px;
    font-weight: 750;
}

body.bo-admin-shell .bo-map-fallback-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    background: #fff;
}

body.bo-admin-shell .bo-map-fallback-row strong,
body.bo-admin-shell .bo-map-fallback-row span {
    min-width: 0;
}

body.bo-admin-shell .bo-map-fallback-row span {
    color: var(--mb-admin-muted);
    font-size: 12px;
    font-weight: 800;
}

body.bo-admin-shell .bo-map-fallback-row i {
    grid-column: 1 / -1;
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mb-admin-teal), #1c7da0);
}

body.bo-admin-shell .bo-map-info {
    min-width: 220px;
    color: #17243b;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.bo-admin-shell .bo-map-info strong {
    display: block;
    margin-bottom: 8px;
    color: var(--mb-admin-navy);
    font-weight: 850;
}

body.bo-admin-shell .bo-map-info dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    margin: 0;
}

body.bo-admin-shell .bo-map-info dt {
    color: var(--mb-admin-muted);
    font-weight: 700;
}

body.bo-admin-shell .bo-map-info dd {
    margin: 0;
    font-weight: 850;
}

body.bo-admin-shell .bo-map-stage {
    position: relative;
    min-height: 360px;
    padding: 10px;
}

body.bo-admin-shell .bo-map-stage svg {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}

body.bo-admin-shell .bo-map-land {
    fill: #dcebf4;
    stroke: #b6cfe1;
    stroke-width: 2;
}

body.bo-admin-shell .bo-map-ridge {
    fill: none;
    stroke: #c6dbea;
    stroke-width: 3;
    stroke-linecap: round;
}

body.bo-admin-shell .bo-map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #28d7cb, #007f78);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 126, 119, .26);
    cursor: default;
}

body.bo-admin-shell .bo-map-marker span {
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

body.bo-admin-shell .bo-trend-list {
    display: grid;
    gap: 8px;
}

body.bo-admin-shell .bo-trend-row {
    display: grid;
    grid-template-columns: 120px minmax(160px, 1fr) 80px 70px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--mb-admin-ink);
}

body.bo-admin-shell .bo-trend-track,
body.bo-admin-shell .bo-geo-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf1f8;
}

body.bo-admin-shell .bo-trend-track i,
body.bo-admin-shell .bo-geo-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mb-admin-teal), #1c7da0);
}

body.bo-admin-shell .bo-trend-row em {
    color: var(--mb-admin-muted);
    font-style: normal;
}

body.bo-admin-shell .bo-geo-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

body.bo-admin-shell .bo-geo-card {
    padding: 12px;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    background: #fff;
}

body.bo-admin-shell .bo-geo-card strong,
body.bo-admin-shell .bo-geo-card span {
    display: block;
}

body.bo-admin-shell .bo-geo-card span {
    color: var(--mb-admin-muted);
    font-size: 13px;
    margin-top: 4px;
}

body.bo-admin-shell .bo-geo-card small {
    display: block;
    margin-top: 4px;
    color: #60748f;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.bo-admin-shell .bo-geo-card dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    margin: 10px 0 0;
}

body.bo-admin-shell .bo-geo-card dt {
    color: var(--mb-admin-muted);
    font-weight: 700;
}

body.bo-admin-shell .bo-geo-card dd {
    margin: 0;
    color: var(--mb-admin-ink);
    font-weight: 800;
}

@media (max-width: 1199px) {
    body.bo-admin-shell .bo-analytics-visual-grid,
    body.bo-admin-shell .bo-map-layout {
        grid-template-columns: 1fr;
    }
}

.bo-user-report-page .bo-filterbar {
    align-items: start;
}

.bo-checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 9px 0 0;
    color: #40506b;
    font-size: 12px;
    font-weight: 750;
}

.bo-checkbox-line input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.bo-empty-state {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #f0d5a8;
    border-radius: 8px;
    background: #fff8e8;
    color: #8a5b10;
    font-weight: 750;
}

.bo-kendo-grid {
    width: 100%;
}

.bo-kendo-grid .k-grid,
.bo-kendo-grid.k-grid {
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bo-kendo-grid .k-grid-header th,
.bo-kendo-grid .k-header {
    background: #edf3f8;
    color: #41536d;
    font-size: 12px;
    font-weight: 850;
}

.bo-kendo-grid .k-grid td {
    color: #2d3d55;
    font-size: 13px;
    vertical-align: middle;
}

.bo-smallimage {
    max-width: 96px;
    max-height: 72px;
    border: 1px solid #d6e1ed;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
}

.bo-smallimage:hover {
    border-color: #99d4cf;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, .12);
}

.bo-validation-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 3px 0;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
}

.bo-validation-line.is-success {
    background: #e9f8f0;
    color: #11704f;
}

.bo-validation-line.is-danger {
    background: #fff1ef;
    color: #af3b31;
}

.bo-upload-panel {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.bo-upload-field {
    padding: 20px;
    background: var(--mb-admin-soft);
    border: 1px dashed #b9c8db;
    border-radius: 8px;
}

.bo-manifest-page {
    max-width: 1120px;
}

.bo-upload-page {
    max-width: 1120px;
}

.bo-manifest-card {
    max-width: 820px;
}

.bo-upload-standard-card {
    max-width: 820px;
}

.bo-manifest-upload {
    display: grid;
    grid-template-columns: 44px minmax(180px, 1fr);
    gap: 14px;
    align-items: center;
    cursor: pointer;
}

.bo-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #087d73;
    background: #dff3f1;
    border: 1px solid #b7dfdb;
    font-size: 19px;
}

.bo-upload-copy {
    display: grid;
    gap: 3px;
    color: var(--mb-admin-navy);
}

.bo-upload-copy strong {
    font-size: 15px;
    font-weight: 850;
}

.bo-upload-copy small {
    color: #6f8199;
    font-size: 12px;
    font-weight: 650;
}

.bo-file-input {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #d3deea;
    border-radius: 8px;
    background: #fff;
    color: #183153;
    font-size: 14px;
}

.bo-file-input::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 7px 12px;
    border: 1px solid #cbd8e8;
    border-radius: 7px;
    background: #f7fafc;
    color: var(--mb-admin-navy);
    font-weight: 800;
    cursor: pointer;
}

body.bo-admin-shell input[type="file"]:not(.bo-file-input) {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #d3deea;
    border-radius: 8px;
    background: #fff;
    color: #183153;
    font-size: 14px;
    line-height: 1.4;
}

body.bo-admin-shell input[type="file"]:not(.bo-file-input)::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 6px 11px;
    border: 1px solid #cbd8e8;
    border-radius: 7px;
    background: #f7fafc;
    color: var(--mb-admin-navy);
    font-weight: 800;
    cursor: pointer;
}

.bo-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bo-form-actions-end {
    justify-content: flex-end;
    margin-top: 16px;
}

.bo-admin-form {
    display: grid;
    gap: 14px;
}

.bo-finance-form-page {
    max-width: 1180px;
}

.bo-form-section {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
}

.bo-form-section h3 {
    margin: 0 0 12px;
    color: var(--mb-admin-navy);
    font-size: 15px;
    font-weight: 850;
}

.bo-inline-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    color: #37516f;
    background: #eef7f6;
    border: 1px solid #cde8e4;
    border-left: 4px solid var(--mb-admin-teal);
    border-radius: 8px;
    font-weight: 700;
}

.bo-admin-form .bootstrap-touchspin {
    width: 100%;
}

.bo-admin-form .bootstrap-touchspin .form-control {
    min-height: 40px;
}

.bo-form-message:not(:empty) {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f2c7c7;
    background: #fff5f5;
    color: #af2f2f;
    font-weight: 700;
}

.bo-print-slip-page {
    max-width: 1180px;
}

.bo-inline-search {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--mb-admin-soft);
    border: 1px solid #dbe5ef;
    border-radius: 8px;
}

.bo-inline-search label {
    margin: 0 0 9px;
    color: #33445f;
    font-size: 13px;
    font-weight: 850;
}

.bo-inline-search .form-control {
    min-height: 42px;
}

.bo-table-shell {
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #fff;
}

.bo-print-slip-table {
    margin: 0 !important;
}

.bo-code-line {
    display: block;
    color: #183153;
    font-size: 13px;
    line-height: 1.45;
}

.bo-table-strong {
    color: var(--mb-admin-navy);
    font-weight: 850;
}

.bo-code-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(8, 146, 132, .18);
    border-radius: 999px;
    background: rgba(8, 146, 132, .08);
    color: var(--mb-admin-teal);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.bo-wrap-cell {
    max-width: 280px;
    white-space: normal;
    word-break: break-word;
}

.bo-voucher-log-table td,
.bo-voucher-log-table th {
    vertical-align: middle;
}

.bo-voucher-used-table td,
.bo-voucher-used-table th {
    vertical-align: middle;
}

.bo-dt-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 10px;
    color: #70849c;
    font-size: 12px;
}

.bo-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.bo-status-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    color: var(--mb-admin-navy);
    font-weight: 750;
    text-align: left;
}

.bo-status-button:hover,
.bo-status-button:focus {
    border-color: var(--mb-admin-teal);
    box-shadow: 0 8px 18px rgba(0, 150, 136, .12);
}

.bo-status-button .bo-count {
    display: inline-flex;
    min-width: 32px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--mb-admin-navy);
    font-size: 12px;
}

.bo-search-stack {
    display: grid;
    grid-template-columns: 1fr; /* stack the search rows top/middle/bottom like the legacy system */
    gap: 12px;
    max-width: 760px;
}

.bo-search-row {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr auto;
    align-items: center;
    gap: 8px;
}

.bo-message-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.bo-message-card {
    display: block;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--mb-admin-line);
    border-radius: 8px;
    color: var(--mb-admin-ink);
    text-decoration: none;
}

.bo-message-card:hover,
.bo-message-card:focus {
    border-color: var(--mb-admin-navy);
    box-shadow: 0 8px 18px rgba(18, 43, 87, .08);
    color: var(--mb-admin-ink);
    text-decoration: none;
}

.bo-message-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--mb-admin-navy);
    font-weight: 800;
}

.bo-message-desc {
    margin: 0 0 6px;
    color: #40506b;
    line-height: 1.45;
}

.bo-message-time {
    color: var(--mb-admin-muted);
    font-size: 12px;
}

.bo-empty-state {
    padding: 28px;
    border: 1px dashed #cfd9e6;
    border-radius: 8px;
    color: var(--mb-admin-muted);
    text-align: center;
}

.bo-muted {
    color: var(--mb-admin-muted);
}

.bo-lang-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
    padding: 0;
    color: #65748c;
}

.bo-lang-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bo-lang-switch a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 14px !important;
    border: 1px solid #d5deea;
    border-radius: 999px;
    background: #fff;
    color: #526277 !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.bo-lang-switch a.active {
    background: #e9f3f2;
    border-color: #9dd4ce;
    color: var(--mb-admin-teal) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 143, 131, .08);
}

.bo-lang-switch a:not(.active):hover,
.bo-lang-switch a:not(.active):focus {
    border-color: #b9c8db;
    background: #f6f9fd;
    color: var(--mb-admin-navy) !important;
}

.bo-lang-switch a.active:last-child {
    background: var(--mb-admin-navy);
    border-color: var(--mb-admin-navy);
    color: #fff !important;
}

footer.footer.text-center {
    display: none;
}

.bo-app-footer {
    margin-left: 240px;
    padding: 18px 28px 22px;
    border-top: 1px solid var(--mb-admin-line);
    background: #fff;
    color: #65748c;
    font-size: 12px;
    line-height: 1.7;
}

.bo-app-footer strong,
.bo-app-footer span {
    display: block;
}

.bo-app-footer strong {
    color: var(--mb-admin-navy);
    font-size: 13px;
    letter-spacing: .01em;
}

.bo-login-lang {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
}

.bo-login-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d5deea;
    border-radius: 999px;
    background: #fff;
    color: var(--mb-admin-navy);
    font-weight: 800;
}

.bo-login-lang a.active {
    background: var(--mb-admin-teal);
    border-color: var(--mb-admin-teal);
    color: #fff;
}

.bo-login-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--mb-admin-line);
    color: #65748c;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.bo-login-footer strong,
.bo-login-footer span {
    display: block;
}

.bo-login-footer strong {
    color: var(--mb-admin-navy);
}

@media (min-width: 768px) {
    #page-wrapper {
        margin-left: var(--mb-admin-sidebar) !important;
    }

    .navbar-default.sidebar,
    .fix-sidebar .sidebar {
        width: var(--mb-admin-sidebar) !important;
    }

    body.fix-sidebar .navbar-header .top-left-part {
        width: var(--mb-admin-sidebar) !important;
        min-width: var(--mb-admin-sidebar) !important;
        max-width: var(--mb-admin-sidebar) !important;
        height: 66px !important;
    }

    .fix-sidebar .navbar-left {
        margin-left: var(--mb-admin-sidebar) !important;
    }

    .footer {
        left: var(--mb-admin-sidebar) !important;
    }

    body.content-wrapper #page-wrapper {
        margin-left: 68px !important;
    }

    body.content-wrapper .bo-app-footer {
        margin-left: 68px !important;
    }

    body.content-wrapper .navbar-default.sidebar,
    body.content-wrapper.fix-sidebar .sidebar,
    body.content-wrapper .fix-sidebar .sidebar {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        top: 66px !important;
        height: calc(100vh - 66px) !important;
        overflow: visible !important;
        z-index: 6100 !important;
    }

    body.content-wrapper .slimScrollDiv,
    body.content-wrapper .sidebar .sidebar-nav,
    body.content-wrapper .sidebar .sidebar-nav.navbar-collapse {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        overflow: visible !important;
    }

    body.content-wrapper .navbar-header .top-left-part,
    body.content-wrapper.fix-sidebar .navbar-header .top-left-part {
        flex-basis: 68px !important;
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        height: 66px !important;
        padding: 0 !important;
    }

    body.content-wrapper .navbar-header .top-left-part .logo {
        width: 68px;
        min-height: 66px;
    }

    body.content-wrapper .navbar-header .top-left-part .logo-full {
        display: none !important;
    }

    body.content-wrapper .navbar-header .top-left-part .logo-short {
        display: flex !important;
        width: 68px;
        height: 66px;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    body.content-wrapper .navbar-left,
    body.content-wrapper.fix-sidebar .navbar-left {
        margin-left: 68px !important;
    }

    body.content-wrapper #side-menu {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
    }

    body.content-wrapper #side-menu > li,
    body.content-wrapper .sidebar #side-menu > li {
        position: relative;
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        z-index: 1;
    }

    body.content-wrapper #side-menu > li > a,
    body.content-wrapper .sidebar #side-menu > li > a {
        justify-content: center;
        width: 68px !important;
        min-height: 48px;
        padding: 12px 0 !important;
        border-left: 0;
    }

    body.content-wrapper #side-menu > li:hover,
    body.content-wrapper .sidebar #side-menu > li:hover {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        background: var(--mb-admin-sidebar-active) !important;
        border-radius: 0;
        box-shadow: none;
        z-index: 7600 !important;
    }

    body.content-wrapper #side-menu > li:hover > a,
    body.content-wrapper .sidebar #side-menu > li:hover > a {
        justify-content: center;
        gap: 0;
        width: 68px !important;
        padding: 12px 0 !important;
        background: var(--mb-admin-sidebar-active) !important;
        color: var(--mb-admin-teal-2) !important;
    }

    body.content-wrapper .sidebar li:hover .hide-menu {
        display: none !important;
    }

    body.content-wrapper .sidebar .nav-second-level {
        left: 68px !important;
        top: 0 !important;
        width: 272px !important;
        max-width: 272px !important;
        min-height: 48px;
        padding: 10px !important;
        background: #fff !important;
        border: 1px solid var(--mb-admin-line);
        border-left: 0;
        border-radius: 0 8px 8px 0;
        box-shadow: 12px 18px 30px rgba(20, 50, 95, .16);
        z-index: 7600 !important;
    }

    body.content-wrapper .sidebar li:hover .nav-second-level,
    body.content-wrapper .sidebar li:hover .nav-second-level.collapse li,
    body.content-wrapper .sidebar li:hover .nav-second-level.in {
        display: block !important;
    }

    body.content-wrapper .sidebar .nav-second-level li {
        background: transparent !important;
    }

    body.content-wrapper .sidebar .nav-second-level > li > a {
        padding: 9px 11px !important;
        color: var(--mb-admin-sidebar-ink) !important;
        border-radius: 6px;
        white-space: normal;
    }

    body.content-wrapper .sidebar .nav-second-level > li > a:hover,
    body.content-wrapper .sidebar .nav-second-level > li > a:focus {
        background: var(--mb-admin-sidebar-hover) !important;
        color: var(--mb-admin-teal-2) !important;
    }
}

@media (max-width: 767px) {
    .bo-page-head,
    .bo-panel-header,
    .bo-filterbar {
        display: block;
    }

    .bo-head-actions,
    .bo-actions {
        margin-top: 14px;
    }

    .bo-filterbar-wide {
        grid-template-columns: 1fr;
    }

    .bo-inline-fields {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bo-lang-label {
        display: none;
    }

    .bo-lang-switch {
        padding: 10px 6px;
    }

    .bo-app-footer {
        margin-left: 0;
        padding: 18px 18px 22px;
    }
}

/* Freight charge management */
body.bo-admin-shell .bo-charge-page {
    max-width: none;
}

body.bo-admin-shell .bo-charge-panel .bo-panel-body {
    padding-top: 10px !important;
}

body.bo-admin-shell .bo-cubic-charge-page .bo-inline-note {
    margin-bottom: 10px;
}

body.bo-admin-shell .bo-charge-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(15, 43, 84, 0.08);
    border-radius: 8px;
    background: #f8fbfd;
}

body.bo-admin-shell .bo-charge-filter {
    min-width: 0;
    width: 100%;
}

body.bo-admin-shell .bo-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

body.bo-admin-shell .bo-filter-tab {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #d9e3ee;
    border-radius: 999px;
    background: #fff;
    color: #17365f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

body.bo-admin-shell .bo-filter-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf4fa;
    color: #5b6f8d;
    font-size: 11px;
}

body.bo-admin-shell .bo-filter-tab:hover,
body.bo-admin-shell .bo-filter-tab:focus {
    border-color: #8ccdc8;
    color: #007f78;
    box-shadow: 0 6px 18px rgba(0, 151, 139, 0.10);
}

body.bo-admin-shell .bo-filter-tab.active {
    border-color: #00978b;
    background: #00978b;
    color: #fff;
}

body.bo-admin-shell .bo-filter-tab.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

body.bo-admin-shell .bo-table-wrap {
    width: 100%;
    overflow: hidden;
}

body.bo-admin-shell .bo-charge-datatable .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.bo-admin-shell .bo-charge-datatable .dt-button {
    border: 1px solid #d9e3ee !important;
    background: #fff !important;
    color: #0f2b54 !important;
    box-shadow: none !important;
}

body.bo-admin-shell .bo-charge-datatable .dt-button.bo-dt-primary {
    border-color: #00978b !important;
    background: #00978b !important;
    color: #fff !important;
}

body.bo-admin-shell .bo-charge-datatable .dt-button.bo-dt-danger {
    border-color: #ffd4d0 !important;
    background: #fff5f4 !important;
    color: #b42318 !important;
}

body.bo-admin-shell .bo-charge-datatable .dt-button.disabled,
body.bo-admin-shell .bo-charge-datatable .dt-button:disabled {
    opacity: .48;
}

body.bo-admin-shell .bo-channel-cell {
    display: inline-grid;
    grid-template-columns: 8px minmax(120px, 1fr);
    column-gap: 8px;
    row-gap: 1px;
    align-items: center;
    min-width: 180px;
    text-align: left;
    color: #0f2b54;
    font-weight: 800;
}

body.bo-admin-shell .bo-channel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00978b;
}

body.bo-admin-shell .bo-channel-cell small {
    grid-column: 2;
    color: #7890ab;
    font-size: 11px;
    font-weight: 600;
}

body.bo-admin-shell .bo-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

body.bo-admin-shell .bo-status-pill.is-active {
    background: #e7f8f3;
    color: #007f78;
}

body.bo-admin-shell .bo-status-pill.is-inactive {
    background: #f1f5f9;
    color: #64748b;
}

body.bo-admin-shell .bo-charge-datatable .dataTables_scrollBody {
    border: 1px solid #e2eaf2;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

body.bo-admin-shell .bo-charge-datatable table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
}

body.bo-admin-shell .bo-charge-datatable table.dataTable tbody tr.selected,
body.bo-admin-shell .bo-charge-datatable table.dataTable tbody tr.selected > * {
    background: #e8f7f5 !important;
    color: #0f2b54 !important;
}

body.bo-admin-shell .bo-cubic-charge-modal .modal-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
}

body.bo-admin-shell .bo-cubic-charge-modal .modal-body {
    max-height: calc(100vh - 190px);
    overflow: auto;
    background: #f5f8fb;
}

body.bo-admin-shell .bo-cubic-charge-modal .modal-header,
body.bo-admin-shell .bo-cubic-charge-modal .modal-footer {
    background: #fff;
}

body.bo-admin-shell .bo-cubic-charge-modal .input-box,
body.bo-admin-shell .bo-cubic-charge-modal .tab-content {
    display: grid;
    gap: 14px;
}

body.bo-admin-shell .bo-cubic-charge-modal .input-content {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--mb-admin-line);
    border-radius: 10px;
    background: #fff;
}

body.bo-admin-shell .bo-cubic-charge-modal .input-content p {
    margin: 0;
}

body.bo-admin-shell .bo-cubic-charge-modal .input-content span {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr);
    gap: 10px;
    align-items: center;
}

body.bo-admin-shell .bo-cubic-charge-modal .input-content label {
    margin: 0;
    white-space: normal;
}

body.bo-admin-shell .bo-cubic-charge-modal input,
body.bo-admin-shell .bo-cubic-charge-modal select {
    min-height: 36px;
    max-width: 100%;
    border: 1px solid #cbd9e8;
    border-radius: 8px;
    color: #102744;
    font-size: 14px;
}

body.bo-admin-shell .bo-cubic-charge-modal .nav-tabs {
    border-bottom: 1px solid var(--mb-admin-line);
}

body.bo-admin-shell .bo-cubic-charge-modal .nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    color: #40506b;
    font-weight: 800;
}

body.bo-admin-shell .bo-cubic-charge-modal .nav-tabs .active .nav-link,
body.bo-admin-shell .bo-cubic-charge-modal .nav-tabs .nav-link.active {
    border-color: var(--mb-admin-line) var(--mb-admin-line) #fff;
    color: var(--mb-admin-teal-2);
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-charge-toolbar {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-filter-tab,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-charge-datatable .dt-button {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background: rgba(15, 23, 42, 0.72) !important;
    color: #dbeafe !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-filter-tab.active,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-charge-datatable .dt-button.bo-dt-primary {
    border-color: #2dd4bf !important;
    background: #0f766e !important;
    color: #fff !important;
}

/* Pickup location management */
body.bo-admin-shell .bo-pickup-page {
    max-width: none;
}

body.bo-admin-shell .bo-pickup-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(15, 43, 84, 0.08);
    border-radius: 8px;
    background: #f8fbfd;
}

body.bo-admin-shell .bo-pickup-filter {
    min-width: 0;
    width: 100%;
}

body.bo-admin-shell .bo-pickup-table {
    table-layout: auto;
}

body.bo-admin-shell .bo-pickup-station {
    display: grid;
    gap: 2px;
    min-width: 160px;
    text-align: left;
}

body.bo-admin-shell .bo-pickup-station strong {
    color: #0f2b54;
    font-size: 13px;
    font-weight: 900;
}

body.bo-admin-shell .bo-pickup-station span {
    color: #6f819a;
    font-size: 11px;
    font-weight: 700;
}

body.bo-admin-shell .bo-pickup-address {
    min-width: 260px;
    max-width: 480px;
    color: #26364e;
    line-height: 1.4;
    white-space: normal;
}

body.bo-admin-shell .bo-pickup-table td.bo-pickup-hours {
    min-width: 180px;
    max-width: 260px;
    color: #26364e;
    line-height: 1.45;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.bo-admin-shell .bo-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef8f7;
    color: #007f78;
    font-size: 12px;
    font-weight: 800;
}

body.bo-admin-shell .bo-row-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 5px;
    white-space: nowrap;
}

body.bo-admin-shell .bo-row-actions .btn {
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

body.bo-admin-shell .bo-pickup-datatable .dt-buttons {
    display: flex;
    gap: 6px;
}

body.bo-admin-shell .bo-pickup-datatable .dt-button {
    border: 1px solid #d9e3ee !important;
    background: #fff !important;
    color: #0f2b54 !important;
    box-shadow: none !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-pickup-toolbar {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-pickup-station strong,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-pickup-address,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-pickup-table td.bo-pickup-hours {
    color: #e2e8f0;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-state-pill {
    background: rgba(45, 212, 191, 0.14);
    color: #5eead4;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-upload-field {
    background: #142033;
    border-color: #2b3e59;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-upload-icon {
    background: #0c3d44;
    border-color: #1c6771;
    color: #72e7dc;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-upload-copy,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-file-input {
    color: #dbe7f6;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-upload-copy small {
    color: #93a8c4;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-file-input,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-file-input::file-selector-button {
    background: #0f1a2a;
    border-color: #2b3e59;
    color: #dbe7f6;
}

html[data-bo-theme="dark"] body.bo-admin-shell input[type="file"]:not(.bo-file-input),
html[data-bo-theme="dark"] body.bo-admin-shell input[type="file"]:not(.bo-file-input)::file-selector-button {
    background: #0f1a2a;
    border-color: #2b3e59;
    color: #dbe7f6;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-inline-search {
    background: #142033;
    border-color: #2b3e59;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-inline-search label,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-code-line,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-table-strong {
    color: #dbe7f6;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-table-shell {
    background: #0f1a2a;
    border-color: #2b3e59;
}

/* Compact operational density: larger input text, tighter page rhythm. */
body.bo-admin-shell {
    --bo-density-page-x: 16px;
    --bo-density-page-y: 12px;
    --bo-density-card-pad: 12px;
    --bo-density-row-gap: 8px;
}

body.bo-admin-shell #page-wrapper > .container-fluid,
body.bo-admin-shell #page-wrapper > .container-fluid:not(.bo-workspace) {
    padding: var(--bo-density-page-y) var(--bo-density-page-x) 20px !important;
}

body.bo-admin-shell .bo-workspace {
    padding: 12px 0 20px;
}

body.bo-admin-shell .bo-page-head {
    margin-bottom: 10px;
    padding: 12px 16px;
    gap: 10px;
}

body.bo-admin-shell .bo-page-title,
body.bo-admin-shell #page-wrapper .page-title {
    font-size: 22px;
    line-height: 1.18;
}

body.bo-admin-shell .bo-page-subtitle {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
}

body.bo-admin-shell .bo-panel {
    margin-bottom: 10px;
    border-radius: 7px;
}

body.bo-admin-shell .bo-panel-header {
    padding: 11px 14px;
    gap: 10px;
}

body.bo-admin-shell .bo-panel-title {
    font-size: 16px;
    line-height: 1.22;
}

body.bo-admin-shell .bo-panel-subtitle {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.32;
}

body.bo-admin-shell .bo-panel-body,
body.bo-admin-shell #page-wrapper .panel .panel-body,
body.bo-admin-shell #page-wrapper .white-box {
    padding: var(--bo-density-card-pad) !important;
}

body.bo-admin-shell .bo-filterbar {
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
}

body.bo-admin-shell .bo-form-grid {
    gap: 10px;
}

body.bo-admin-shell .bo-field label,
body.bo-admin-shell .bo-filterbar label,
body.bo-admin-shell #page-wrapper label,
body.bo-admin-shell #page-wrapper .control-label {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.25;
    text-transform: none;
}

body.bo-admin-shell #page-wrapper input,
body.bo-admin-shell #page-wrapper select,
body.bo-admin-shell #page-wrapper textarea,
body.bo-admin-shell #page-wrapper .form-control,
body.bo-admin-shell .bo-panel .form-control,
body.bo-admin-shell .bo-filterbar .form-control,
body.bo-admin-shell .dataTables_wrapper .dataTables_filter input,
body.bo-admin-shell .dataTables_wrapper .dataTables_length select {
    min-height: 34px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

body.bo-admin-shell #page-wrapper input,
body.bo-admin-shell #page-wrapper .form-control,
body.bo-admin-shell .dataTables_wrapper .dataTables_filter input {
    padding: 6px 10px !important;
}

body.bo-admin-shell #page-wrapper select,
body.bo-admin-shell .dataTables_wrapper .dataTables_length select {
    padding: 5px 26px 5px 9px !important;
}

body.bo-admin-shell #page-wrapper textarea,
body.bo-admin-shell #page-wrapper textarea.form-control {
    min-height: 86px !important;
}

body.bo-admin-shell #page-wrapper .btn,
body.bo-admin-shell #page-wrapper .dt-button {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 13px;
    border-radius: 7px;
}

body.bo-admin-shell .bo-actions,
body.bo-admin-shell .bo-head-actions {
    gap: 6px;
}

body.bo-admin-shell .bo-status-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

body.bo-admin-shell .bo-status-button {
    min-height: 38px;
    padding: 7px 10px;
    gap: 8px;
    border-radius: 7px;
    font-size: 13px;
}

body.bo-admin-shell .bo-status-button .bo-count {
    min-width: 28px;
    height: 22px;
    font-size: 12px;
}

body.bo-admin-shell .bo-search-stack {
    gap: 8px;
}

body.bo-admin-shell .bo-search-row {
    grid-template-columns: minmax(110px, auto) minmax(220px, 1fr) auto;
    gap: 7px;
}

body.bo-admin-shell .bo-panel table.dataTable thead th,
body.bo-admin-shell #page-wrapper table.dataTable thead th,
body.bo-admin-shell #page-wrapper .table thead th {
    padding: 7px 9px;
    font-size: 12px;
}

body.bo-admin-shell .bo-panel table.dataTable tbody td,
body.bo-admin-shell #page-wrapper table.dataTable tbody td,
body.bo-admin-shell #page-wrapper .table tbody td {
    padding: 7px 9px;
    font-size: 13px;
}

body.bo-admin-shell .bo-panel .dataTables_wrapper .dataTables_length,
body.bo-admin-shell .bo-panel .dataTables_wrapper .dt-buttons,
body.bo-admin-shell .bo-panel .dataTables_wrapper .dataTables_filter {
    margin-bottom: 6px;
}

body.bo-admin-shell .bo-weighting-result {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: start;
}

body.bo-admin-shell .bo-weighting-result > [class*="col-"],
body.bo-admin-shell .bo-weighting-summary,
body.bo-admin-shell .bo-weighting-form {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0;
}

body.bo-admin-shell .bo-weighting-parcels {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 8px;
}

body.bo-admin-shell .bo-weighting-parcels table {
    min-width: 560px;
    margin-bottom: 0;
}

body.bo-admin-shell .bo-weighting-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

body.bo-admin-shell .bo-weighting-toolbar h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

body.bo-admin-shell .bo-weighting-form .form-group,
body.bo-admin-shell .bo-weighting-form .row {
    max-width: 100%;
    min-width: 0;
}

body.bo-admin-shell .bo-weighting-form .row {
    margin-left: 0;
    margin-right: 0;
    row-gap: 6px;
}

body.bo-admin-shell .bo-weighting-form [class*="col-"] {
    min-width: 0;
}

body.bo-admin-shell .bo-weighting-form .printingoptionbutton {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.bo-admin-shell .bo-weighting-form .printingoptionbutton .btn {
    margin: 0 !important;
}

body.bo-admin-shell .bo-weighting-form input,
body.bo-admin-shell .bo-weighting-form select,
body.bo-admin-shell .bo-weighting-form textarea {
    max-width: 100%;
}

@media (max-width: 1280px) {
    body.bo-admin-shell .bo-weighting-result {
        grid-template-columns: 1fr;
    }
}

/* Modern admin shell: own the header/sidebar instead of inheriting the old template behavior. */
body.bo-admin-shell {
    --bo-shell-topbar: 68px;
    --bo-shell-sidebar: 280px;
    --bo-shell-rail: 84px;
    background: #f4f7fb;
}

body.bo-admin-shell .preloader {
    background: rgba(244, 247, 251, .92);
}

body.bo-admin-shell .bo-topbar,
body.bo-admin-shell .navbar.navbar-default.navbar-static-top {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    height: var(--bo-shell-topbar) !important;
    min-height: var(--bo-shell-topbar) !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid #dfe8f2 !important;
    box-shadow: 0 12px 30px rgba(20, 50, 95, .08);
    backdrop-filter: blur(14px);
    z-index: 10000 !important;
}

body.bo-admin-shell .navbar-header {
    display: grid !important;
    grid-template-columns: var(--bo-shell-sidebar) 56px minmax(16px, 1fr) auto;
    align-items: center;
    width: 100%;
    height: var(--bo-shell-topbar) !important;
    min-height: var(--bo-shell-topbar) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.bo-admin-shell .navbar-header .top-left-part,
body.bo-admin-shell.fix-sidebar .navbar-header .top-left-part,
body.bo-admin-shell body.fix-sidebar .navbar-header .top-left-part {
    grid-column: 1;
    width: var(--bo-shell-sidebar) !important;
    min-width: var(--bo-shell-sidebar) !important;
    max-width: var(--bo-shell-sidebar) !important;
    height: var(--bo-shell-topbar) !important;
    min-height: var(--bo-shell-topbar) !important;
    padding: 0 20px !important;
    background: #fff !important;
    border-right: 1px solid #dfe8f2;
}

body.bo-admin-shell .navbar-header .top-left-part .logo,
body.bo-admin-shell .navbar-header .top-left-part .logo-full {
    min-height: var(--bo-shell-topbar) !important;
    justify-content: flex-start;
}

body.bo-admin-shell .navbar-header .top-left-part .logo-full img {
    max-width: 168px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

body.bo-admin-shell .navbar-header .top-left-part .logo-short {
    display: none;
}

body.bo-admin-shell .navbar-left {
    grid-column: 2;
    width: 56px;
    height: var(--bo-shell-topbar);
    margin: 0 !important;
    padding: 0 !important;
    border-right: 1px solid #e8eef5;
}

body.bo-admin-shell .open-close {
    display: flex !important;
    width: 56px;
    height: var(--bo-shell-topbar);
    min-height: var(--bo-shell-topbar);
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: var(--mb-admin-teal-2) !important;
    font-size: 18px;
}

body.bo-admin-shell .open-close:hover,
body.bo-admin-shell .open-close:focus {
    background: #eef9f8 !important;
}

body.bo-admin-shell .navbar-top-links.ms-auto {
    grid-column: 4;
    height: var(--bo-shell-topbar);
    margin: 0 !important;
    padding: 0 18px 0 0 !important;
    gap: 6px;
}

body.bo-admin-shell .navbar-top-links > li > a,
body.bo-admin-shell .navbar-top-links .profile-pic {
    min-height: 36px;
    height: 36px;
    margin: 0;
    padding: 0 11px !important;
    border-radius: 999px;
    color: var(--mb-admin-navy) !important;
    font-size: 13px;
}

body.bo-admin-shell .bo-topbar-shortcut > a {
    gap: 7px;
    border: 1px solid #dce7f2;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(20, 50, 95, .06);
}

body.bo-admin-shell .bo-topbar-shortcut > a i {
    color: var(--mb-admin-teal-2);
    font-size: 13px;
}

body.bo-admin-shell .bo-topbar-shortcut > a:hover,
body.bo-admin-shell .bo-topbar-shortcut > a:focus {
    border-color: rgba(0, 150, 136, .28);
    background: #eef9f8 !important;
    color: var(--mb-admin-teal-2) !important;
}

body.bo-admin-shell .bo-lang-switch {
    min-height: 36px;
    padding: 0;
    border: 0;
    gap: 6px;
}

body.bo-admin-shell .bo-lang-switch a {
    min-width: 64px;
    height: 36px;
    border-radius: 999px;
    font-size: 13px;
}

body.bo-admin-shell .bo-user-menu {
    display: flex;
    align-items: center;
}

body.bo-admin-shell .bo-user-chip {
    display: inline-flex;
    height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 4px;
    border: 1px solid #dce7f2;
    border-radius: 999px;
    background: #ffffff;
    color: var(--mb-admin-navy);
    box-shadow: 0 8px 18px rgba(20, 50, 95, .06);
    font-size: 13px;
    font-weight: 750;
}

body.bo-admin-shell .bo-user-chip:hover,
body.bo-admin-shell .bo-user-chip:focus {
    border-color: rgba(0, 150, 136, .28);
    background: #eef9f8;
    color: var(--mb-admin-teal-2);
}

body.bo-admin-shell .bo-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #009688, #23527f);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

body.bo-admin-shell .bo-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.bo-admin-shell .bo-settings-modal .modal-content {
    border: 1px solid #dce7f2;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(20, 50, 95, .18);
}

body.bo-admin-shell .bo-settings-modal .modal-header,
body.bo-admin-shell .bo-settings-modal .modal-footer {
    border-color: #e4edf6;
    padding: 14px 16px;
}

body.bo-admin-shell .bo-settings-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

body.bo-admin-shell .bo-settings-modal .modal-header::before,
body.bo-admin-shell .bo-settings-modal .modal-header::after,
body.bo-admin-shell .bo-settings-modal .modal-footer::before,
body.bo-admin-shell .bo-settings-modal .modal-footer::after {
    display: none;
}

body.bo-admin-shell .bo-settings-modal .btn-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: -2px -2px 0 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: #f3f7fb;
    opacity: 1;
    box-shadow: none;
}

body.bo-admin-shell .bo-settings-modal .btn-close:hover,
body.bo-admin-shell .bo-settings-modal .btn-close:focus {
    border-color: #d6e4f1;
    background-color: #eaf2f9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, .14);
}

body.bo-admin-shell .bo-settings-modal .modal-body {
    padding: 16px;
}

body.bo-admin-shell .bo-settings-modal .modal-title {
    color: var(--mb-admin-navy);
    font-size: 18px;
    font-weight: 800;
}

body.bo-admin-shell .bo-modal-subtitle {
    margin: 3px 0 0;
    color: var(--mb-admin-muted);
    font-size: 12px;
}

.bo-swal-container {
    z-index: 12000 !important;
}

.bo-swal-popup {
    width: min(440px, calc(100vw - 32px)) !important;
    padding: 0 !important;
    border: 1px solid #dce7f2 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--mb-admin-ink) !important;
    box-shadow: 0 28px 72px rgba(20, 50, 95, .22) !important;
    overflow: hidden !important;
}

.bo-swal-popup .swal2-header,
.bo-swal-popup .swal2-icon,
.bo-swal-popup .swal2-title,
.bo-swal-popup .swal2-html-container {
    margin-left: 24px !important;
    margin-right: 24px !important;
}

.bo-swal-icon {
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    transform: scale(.86);
}

.bo-swal-title {
    padding: 0 !important;
    color: var(--mb-admin-navy) !important;
    font-size: 20px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

.bo-swal-html {
    margin-top: 8px !important;
    color: #53647f !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: center !important;
    word-break: break-word;
}

.bo-swal-actions {
    width: 100% !important;
    margin: 22px 0 0 !important;
    padding: 16px 20px !important;
    border-top: 1px solid #e5edf6;
    background: #f7fafc;
    gap: 10px;
    justify-content: flex-end !important;
}

.bo-swal-actions .btn {
    min-width: 104px;
    min-height: 38px;
    border-radius: 9px !important;
    font-size: 13px;
    font-weight: 800;
}

.bo-swal-toast {
    padding: 12px 14px !important;
    border: 1px solid #dce7f2 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(20, 50, 95, .18) !important;
}

.bo-swal-toast-title {
    color: var(--mb-admin-ink) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

body.bo-admin-shell .bo-setting-group + .bo-setting-group {
    margin-top: 16px;
}

body.bo-admin-shell .bo-setting-group > label {
    display: block;
    margin-bottom: 8px;
    color: #40506b;
    font-size: 12px;
    font-weight: 800;
}

body.bo-admin-shell .bo-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dce7f2;
    border-radius: 999px;
    background: #f6f9fd;
}

body.bo-admin-shell .bo-segmented button {
    min-height: 30px;
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #55657e;
    font-size: 12px;
    font-weight: 750;
}

body.bo-admin-shell .bo-segmented button.active {
    background: #ffffff;
    color: var(--mb-admin-teal-2);
    box-shadow: 0 6px 16px rgba(20, 50, 95, .10);
}

html[data-bo-font-size="small"] body.bo-admin-shell {
    font-size: 13px;
}

html[data-bo-font-size="large"] body.bo-admin-shell {
    font-size: 15px;
}

html[data-bo-font-size="small"] body.bo-admin-shell #page-wrapper .form-control,
html[data-bo-font-size="small"] body.bo-admin-shell #page-wrapper .btn,
html[data-bo-font-size="small"] body.bo-admin-shell #page-wrapper .dt-button,
html[data-bo-font-size="small"] body.bo-admin-shell .bo-panel table.dataTable tbody td {
    font-size: 12px !important;
}

html[data-bo-font-size="large"] body.bo-admin-shell #page-wrapper .form-control,
html[data-bo-font-size="large"] body.bo-admin-shell #page-wrapper .btn,
html[data-bo-font-size="large"] body.bo-admin-shell #page-wrapper .dt-button,
html[data-bo-font-size="large"] body.bo-admin-shell .bo-panel table.dataTable tbody td {
    font-size: 14px !important;
}

html[data-bo-font-size="large"] body.bo-admin-shell .bo-page-title {
    font-size: 24px;
}

html[data-bo-font-size="large"] body.bo-admin-shell .bo-panel-title {
    font-size: 18px;
}

html[data-bo-theme="dark"] body.bo-admin-shell {
    background: #101826;
    color: #d8e3f2;
}

html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper > .container-fluid,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper > .container-fluid:not(.bo-workspace) {
    background: #101826 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-topbar,
html[data-bo-theme="dark"] body.bo-admin-shell .navbar.navbar-default.navbar-static-top,
html[data-bo-theme="dark"] body.bo-admin-shell .navbar-header .top-left-part,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-sidebar,
html[data-bo-theme="dark"] body.bo-admin-shell .navbar-default.sidebar,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-page-head,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-settings-modal .modal-content {
    background: #162235 !important;
    border-color: #25354d !important;
    color: #d8e3f2;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel-header,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-settings-modal .modal-header,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-settings-modal .modal-footer {
    border-color: #25354d !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-page-title,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel-title,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper h1,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper h2,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper h3,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-settings-modal .modal-title {
    color: #f4f8ff;
}

html[data-bo-theme="dark"] .bo-swal-popup,
html[data-bo-theme="dark"] .bo-swal-toast {
    border-color: #273a56 !important;
    background: #121d2d !important;
    color: #e8eef7 !important;
    box-shadow: 0 28px 72px rgba(0, 0, 0, .36) !important;
}

html[data-bo-theme="dark"] .bo-swal-title,
html[data-bo-theme="dark"] .bo-swal-toast-title {
    color: #f4f8ff !important;
}

html[data-bo-theme="dark"] .bo-swal-html {
    color: #b8c5d8 !important;
}

html[data-bo-theme="dark"] .bo-swal-actions {
    border-top-color: #273a56;
    background: #17243b;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-page-subtitle,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel-subtitle,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-modal-subtitle,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-muted,
html[data-bo-theme="dark"] body.bo-admin-shell .text-muted {
    color: #93a8c4 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-filterbar,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-info-note,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-segmented {
    background: #111b2b !important;
    border-color: #2a3c57 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-wallet-tabs {
    border-color: #2a3c57;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-wallet-tabs button {
    background: #111b2b;
    border-color: #2a3c57;
    color: #c7d5e7;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-wallet-tabs button.active,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-wallet-tabs button:hover {
    background: rgba(0, 151, 139, .16);
    border-color: rgba(0, 201, 190, .42);
    color: #61eee3;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-description-cell,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-amount-strong {
    color: #e6eef8;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-table-time {
    color: #93a8c4;
}

html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper input,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper select,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper textarea,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper .form-control,
html[data-bo-theme="dark"] body.bo-admin-shell .dataTables_wrapper .dataTables_filter input,
html[data-bo-theme="dark"] body.bo-admin-shell .dataTables_wrapper .dataTables_length select {
    background: #101826 !important;
    border-color: #334964 !important;
    color: #e6eef8 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper .form-control:focus {
    border-color: #00a99d !important;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, .18) !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .navbar-top-links > li > a,
html[data-bo-theme="dark"] body.bo-admin-shell .navbar-top-links .profile-pic,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-user-chip,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-topbar-shortcut > a,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-lang-switch a,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-segmented button.active {
    background: #101826 !important;
    border-color: #334964 !important;
    color: #e6eef8 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-lang-switch a.active,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-user-chip:hover,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-topbar-shortcut > a:hover,
html[data-bo-theme="dark"] body.bo-admin-shell .bo-segmented button.active {
    background: #073f42 !important;
    border-color: #0e7774 !important;
    color: #d9fffb !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell #side-menu > li > a {
    color: #c1d0e3 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell #side-menu > li > a:hover,
html[data-bo-theme="dark"] body.bo-admin-shell #side-menu > li.active > a,
html[data-bo-theme="dark"] body.bo-admin-shell #side-menu > li > a.active,
html[data-bo-theme="dark"] body.bo-admin-shell #side-menu .nav-second-level > li > a:hover,
html[data-bo-theme="dark"] body.bo-admin-shell #side-menu .nav-second-level > li > a.active {
    background: #0d3c42 !important;
    color: #d9fffb !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell #side-menu .nav-second-level {
    border-color: #2a3c57;
}

html[data-bo-theme="dark"] body.bo-admin-shell #side-menu .nav-second-level > li > a {
    color: #93a8c4 !important;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel table.dataTable,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper .table {
    color: #d8e3f2;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel table.dataTable thead th,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper .table thead th {
    background: #111b2b !important;
    border-color: #25354d !important;
    color: #e6eef8;
}

html[data-bo-theme="dark"] body.bo-admin-shell .bo-panel table.dataTable tbody td,
html[data-bo-theme="dark"] body.bo-admin-shell #page-wrapper .table tbody td {
    border-color: #25354d !important;
}

body.bo-admin-shell .bo-sidebar,
body.bo-admin-shell .navbar-default.sidebar {
    position: fixed !important;
    top: var(--bo-shell-topbar) !important;
    left: 0;
    width: var(--bo-shell-sidebar) !important;
    min-width: var(--bo-shell-sidebar) !important;
    max-width: var(--bo-shell-sidebar) !important;
    height: calc(100vh - var(--bo-shell-topbar)) !important;
    background: #ffffff !important;
    border-right: 1px solid #dfe8f2 !important;
    box-shadow: 10px 0 28px rgba(20, 50, 95, .08);
    overflow: hidden !important;
    z-index: 9300 !important;
}

body.bo-admin-shell .bo-sidebar-nav,
body.bo-admin-shell .sidebar .sidebar-nav,
body.bo-admin-shell .sidebar .sidebar-nav.navbar-collapse {
    width: 100% !important;
    height: 100% !important;
    padding: 16px 14px 24px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.bo-admin-shell #side-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

body.bo-admin-shell #side-menu > li {
    position: relative;
    width: 100% !important;
}

body.bo-admin-shell #side-menu .nav-small-cap {
    margin: 20px 10px 8px;
    color: #8a98ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

body.bo-admin-shell #side-menu > li > a {
    display: flex !important;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 10px;
    color: #34445d !important;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0;
}

body.bo-admin-shell #side-menu > li > a > i,
body.bo-admin-shell #side-menu > li > a .linea-icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    color: #607087 !important;
    font-size: 18px;
}

body.bo-admin-shell #side-menu > li > a:hover,
body.bo-admin-shell #side-menu > li > a:focus {
    background: #f1f7fb !important;
    color: var(--mb-admin-teal-2) !important;
}

body.bo-admin-shell #side-menu > li > a:hover > i,
body.bo-admin-shell #side-menu > li > a:focus > i,
body.bo-admin-shell #side-menu > li > a:hover .linea-icon,
body.bo-admin-shell #side-menu > li > a:focus .linea-icon {
    color: var(--mb-admin-teal-2) !important;
}

body.bo-admin-shell #side-menu > li.active > a,
body.bo-admin-shell #side-menu > li > a.active {
    background: #e8f7f6 !important;
    color: var(--mb-admin-teal-2) !important;
    box-shadow: inset 3px 0 0 var(--mb-admin-teal);
}

body.bo-admin-shell #side-menu > li.active > a > i,
body.bo-admin-shell #side-menu > li.active > a .linea-icon {
    color: var(--mb-admin-teal-2) !important;
}

body.bo-admin-shell #side-menu .nav-second-level {
    display: none;
    margin: 4px 0 8px 24px;
    padding: 5px 0 5px 12px;
    border-left: 1px solid #d7e4ef;
}

body.bo-admin-shell #side-menu .nav-second-level.in,
body.bo-admin-shell #side-menu > li.active > .nav-second-level {
    display: block;
}

body.bo-admin-shell #side-menu .nav-second-level > li > a {
    min-height: 34px;
    padding: 7px 10px !important;
    border-radius: 8px;
    color: #66758f !important;
    font-size: 12px;
    font-weight: 700;
}

body.bo-admin-shell #side-menu .nav-second-level > li > a:hover,
body.bo-admin-shell #side-menu .nav-second-level > li > a.active {
    background: #f2f8fb !important;
    color: var(--mb-admin-teal-2) !important;
}

body.bo-admin-shell #page-wrapper {
    min-height: calc(100vh - var(--bo-shell-topbar));
    margin-left: var(--bo-shell-sidebar) !important;
    padding-top: var(--bo-shell-topbar);
    background: #f4f7fb;
    transition: margin-left .18s ease;
}

body.bo-admin-shell .bo-app-footer {
    margin-left: var(--bo-shell-sidebar);
    transition: margin-left .18s ease;
}

body.bo-admin-shell.bo-sidebar-collapsed .navbar-header {
    grid-template-columns: var(--bo-shell-rail) 56px minmax(16px, 1fr) auto;
}

body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part {
    width: var(--bo-shell-rail) !important;
    min-width: var(--bo-shell-rail) !important;
    max-width: var(--bo-shell-rail) !important;
    padding: 0 !important;
}

body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part .logo {
    justify-content: center;
}

body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part .logo-full {
    display: none !important;
}

body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part .logo-short {
    display: flex !important;
    width: var(--bo-shell-rail);
    height: var(--bo-shell-topbar);
    align-items: center;
    justify-content: center;
}

body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part .logo-short img {
    max-width: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

body.bo-admin-shell.bo-sidebar-collapsed .bo-sidebar,
body.bo-admin-shell.bo-sidebar-collapsed .navbar-default.sidebar {
    width: var(--bo-shell-rail) !important;
    min-width: var(--bo-shell-rail) !important;
    max-width: var(--bo-shell-rail) !important;
    overflow: visible !important;
}

body.bo-admin-shell.bo-sidebar-collapsed .bo-sidebar-nav,
body.bo-admin-shell.bo-sidebar-collapsed .sidebar .sidebar-nav,
body.bo-admin-shell.bo-sidebar-collapsed .sidebar .sidebar-nav.navbar-collapse {
    padding: 16px 10px !important;
    overflow: visible !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu {
    align-items: center;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu .nav-small-cap {
    display: none !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li.bo-has-children::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 22px;
    height: 100%;
    z-index: 9590;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li > a {
    width: 64px !important;
    min-height: 48px;
    justify-content: center;
    padding: 12px 0 !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li > a .hide-menu {
    display: none !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li:not(.bo-has-children):hover > a .hide-menu {
    position: absolute;
    top: 5px;
    left: 72px;
    display: inline-flex !important;
    min-width: 180px;
    max-width: 260px;
    min-height: 38px;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(20, 50, 95, .16);
    color: #34445d;
    white-space: nowrap;
    z-index: 9600;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu .nav-second-level,
body.bo-admin-shell.bo-sidebar-collapsed #side-menu .nav-second-level.in {
    display: none !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li.bo-has-children:hover > .nav-second-level,
body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li.bo-has-children.bo-flyout-open > .nav-second-level {
    position: absolute !important;
    top: 0 !important;
    left: 64px !important;
    display: grid !important;
    width: 286px !important;
    max-height: min(560px, calc(100vh - var(--bo-shell-topbar) - 28px));
    margin: 0 !important;
    padding: 10px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #dfe8f2 !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 42px rgba(20, 50, 95, .18) !important;
    z-index: 9600 !important;
}

body.bo-admin-shell.bo-sidebar-collapsed #side-menu > li.bo-has-children:hover > .nav-second-level > li > a {
    padding: 9px 12px !important;
    color: #34445d !important;
    font-size: 13px;
    font-weight: 700;
}

body.bo-admin-shell.bo-sidebar-collapsed #page-wrapper {
    margin-left: var(--bo-shell-rail) !important;
}

body.bo-admin-shell.bo-sidebar-collapsed .bo-app-footer {
    margin-left: var(--bo-shell-rail);
}

body.bo-admin-shell.content-wrapper .navbar-header {
    grid-template-columns: var(--bo-shell-rail) 56px minmax(16px, 1fr) auto;
}

body.bo-admin-shell.content-wrapper .navbar-header .top-left-part {
    width: var(--bo-shell-rail) !important;
    min-width: var(--bo-shell-rail) !important;
    max-width: var(--bo-shell-rail) !important;
    padding: 0 !important;
}

body.bo-admin-shell.content-wrapper .navbar-header .top-left-part .logo {
    justify-content: center;
}

body.bo-admin-shell.content-wrapper .navbar-header .top-left-part .logo-full {
    display: none !important;
}

body.bo-admin-shell.content-wrapper .navbar-header .top-left-part .logo-short {
    display: flex !important;
    width: var(--bo-shell-rail);
    height: var(--bo-shell-topbar);
    align-items: center;
    justify-content: center;
}

body.bo-admin-shell.content-wrapper .bo-sidebar,
body.bo-admin-shell.content-wrapper .navbar-default.sidebar {
    width: var(--bo-shell-rail) !important;
    min-width: var(--bo-shell-rail) !important;
    max-width: var(--bo-shell-rail) !important;
    overflow: visible !important;
}

body.bo-admin-shell.content-wrapper .bo-sidebar-nav,
body.bo-admin-shell.content-wrapper .sidebar .sidebar-nav,
body.bo-admin-shell.content-wrapper .sidebar .sidebar-nav.navbar-collapse {
    padding: 16px 10px !important;
    overflow: visible !important;
}

body.bo-admin-shell.content-wrapper #side-menu {
    align-items: center;
}

body.bo-admin-shell.content-wrapper #side-menu > li {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

body.bo-admin-shell.content-wrapper #side-menu > li > a {
    width: 64px !important;
    min-height: 48px;
    justify-content: center;
    padding: 12px 0 !important;
}

body.bo-admin-shell.content-wrapper #side-menu .nav-small-cap,
body.bo-admin-shell.content-wrapper #side-menu > li > a .hide-menu,
body.bo-admin-shell.content-wrapper #side-menu .nav-second-level,
body.bo-admin-shell.content-wrapper #side-menu .nav-second-level.in {
    display: none !important;
}

body.bo-admin-shell.content-wrapper #page-wrapper {
    margin-left: var(--bo-shell-rail) !important;
}

body.bo-admin-shell.content-wrapper .bo-app-footer {
    margin-left: var(--bo-shell-rail) !important;
}

/* Modern BO wallet top-up modal */
body.bo-admin-shell .modal-backdrop,
body.bo-admin-shell .modal-backdrop.in,
body.bo-admin-shell .modal-backdrop.show {
    z-index: 11980 !important;
}

body.bo-admin-shell .modal,
body.bo-admin-shell .bo-wallet-topup-modal {
    z-index: 12000 !important;
}

body.bo-admin-shell .bo-wallet-topup-modal {
    padding: 18px !important;
}

body.bo-admin-shell .bo-wallet-topup-modal .modal-dialog,
body.bo-admin-shell .bo-wallet-topup-dialog {
    width: min(980px, calc(100vw - 36px));
    max-width: 980px;
    margin: 24px auto !important;
}

body.bo-admin-shell .bo-wallet-topup-modal .modal-content {
    overflow: hidden;
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(11, 37, 74, .28);
}

body.bo-admin-shell .bo-wallet-topup-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #dfe8f2;
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

body.bo-admin-shell .bo-wallet-topup-header .modal-title {
    margin: 2px 0 0;
    color: #0d3268;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
}

body.bo-admin-shell .bo-modal-kicker {
    color: #009a8b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

body.bo-admin-shell .bo-modal-close {
    width: 36px;
    height: 36px;
    margin: 0 !important;
    border: 1px solid #d8e5f2;
    border-radius: 999px;
    background: #fff !important;
    color: #0d3268;
    font-size: 24px;
    line-height: 1;
    opacity: 1;
}

body.bo-admin-shell .bo-modal-content {
    overflow: hidden;
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(11, 37, 74, .26);
}

body.bo-admin-shell .bo-modal-content .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #dfe8f2;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

body.bo-admin-shell .bo-modal-content .modal-body {
    padding: 18px 20px;
    background: #f5f8fc;
}

body.bo-admin-shell .bo-modal-content .modal-footer {
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #dfe8f2;
    background: #fff;
}

body.bo-admin-shell .bo-modal-content .modal-title {
    margin: 0;
    color: #0d3268;
    font-weight: 900;
    letter-spacing: 0;
}

body.bo-admin-shell .bo-tabs {
    gap: 8px;
    border-bottom: 1px solid #dfe8f2;
}

body.bo-admin-shell .bo-tabs .nav-link {
    border: 1px solid #d8e5f2;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    color: #2f4564;
    font-weight: 800;
}

body.bo-admin-shell .bo-tabs .nav-link.active {
    color: #008f86;
    background: #fff;
}

body.bo-admin-shell .bo-parcel-entry-table {
    min-width: 980px;
    table-layout: fixed;
}

body.bo-admin-shell .bo-parcel-entry-table th,
body.bo-admin-shell .bo-parcel-entry-table td {
    vertical-align: middle;
    white-space: normal;
}

body.bo-admin-shell .bo-parcel-entry-modal {
    padding: 18px !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body.bo-admin-shell .bo-parcel-entry-modal .modal-dialog {
    width: min(1120px, calc(100vw - 36px));
    max-width: 1120px;
    margin: 24px auto !important;
}

body.bo-admin-shell .bo-parcel-entry-modal .modal-content {
    max-height: calc(100vh - 48px);
}

body.bo-admin-shell .bo-parcel-entry-modal .modal-body {
    max-height: calc(100vh - 190px);
    overflow: auto;
}

body.bo-admin-shell .bo-parcel-entry-modal .modal-footer {
    flex-shrink: 0;
}

body.bo-admin-shell .bo-parcel-entry-modal .bo-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(1),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(1) {
    width: 18%;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(2),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(2) {
    width: 20%;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(3),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(3) {
    width: 12%;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(4),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(4) {
    width: 16%;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(5),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(5) {
    width: 20%;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(6),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(6) {
    width: 12%;
}

body.bo-admin-shell .bo-parcel-entry-table th:nth-child(7),
body.bo-admin-shell .bo-parcel-entry-table td:nth-child(7) {
    width: 52px;
}

body.bo-admin-shell .bo-parcel-entry-table .form-control,
body.bo-admin-shell .bo-parcel-entry-table select {
    width: 100%;
    min-width: 0;
}

@media (max-width: 767px) {
    body.bo-admin-shell .bo-parcel-entry-modal {
        padding: 10px !important;
    }

    body.bo-admin-shell .bo-parcel-entry-modal .modal-dialog {
        width: calc(100vw - 20px);
        margin: 10px auto !important;
    }

    body.bo-admin-shell .bo-parcel-entry-modal .modal-content {
        max-height: calc(100vh - 20px);
    }

    body.bo-admin-shell .bo-parcel-entry-modal .modal-body {
        max-height: calc(100vh - 174px);
        padding: 16px;
    }
}

body.bo-admin-shell .bo-wallet-topup-body {
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 18px 22px 22px;
    background: #f4f8fc;
}

body.bo-admin-shell .bo-wallet-topup-body form {
    display: grid;
    gap: 14px;
}

body.bo-admin-shell .bo-wallet-alert,
body.bo-admin-shell .bo-form-section,
body.bo-admin-shell .bo-terms-row {
    border: 1px solid #d8e5f2;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

body.bo-admin-shell .bo-wallet-alert {
    display: grid;
    gap: 4px;
    border-color: #ffd1c7;
    background: #fff7f5;
    color: #9f321f;
}

body.bo-admin-shell .bo-wallet-alert strong,
body.bo-admin-shell .bo-section-title {
    color: #0d3268;
    font-size: 15px;
    font-weight: 900;
}

body.bo-admin-shell .bo-section-helper {
    margin: 4px 0 10px;
    color: #60708a;
    font-size: 13px;
}

body.bo-admin-shell .bo-choice-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

body.bo-admin-shell .bo-wallet-topup-modal label {
    color: #233956;
    font-size: 14px;
    font-weight: 800;
}

body.bo-admin-shell .bo-wallet-topup-modal .form-control,
body.bo-admin-shell .bo-wallet-topup-modal select,
body.bo-admin-shell .bo-wallet-topup-modal textarea {
    min-height: 42px;
    border: 1px solid #cbd9e8;
    border-radius: 10px;
    box-shadow: none;
    color: #102744;
    font-size: 15px;
}

body.bo-admin-shell .bo-wallet-topup-modal input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #b8cbe0;
    border-radius: 12px;
    background: #f7fbff;
}

body.bo-admin-shell .bo-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    border: 1px solid #d8e5f2;
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
}

body.bo-admin-shell .bo-checkbox-card span {
    display: grid;
    gap: 2px;
}

body.bo-admin-shell .bo-checkbox-card small {
    color: #60708a;
    font-weight: 600;
}

body.bo-admin-shell .bo-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #233956;
}

body.bo-admin-shell .bo-terms-row input,
body.bo-admin-shell .bo-checkbox-card input {
    margin-top: 3px;
}

body.bo-admin-shell .bo-voucher-form-page .bo-panel {
    max-width: 1320px;
}

body.bo-admin-shell .bo-voucher-form-page .bo-field-wide {
    grid-column: 1 / -1;
}

body.bo-admin-shell .bo-required {
    color: #d94f45;
    font-weight: 900;
}

body.bo-admin-shell .bo-field-help {
    display: block;
    margin-top: 6px;
    color: #70819a;
    font-size: 12px;
    font-weight: 600;
}

body.bo-admin-shell .bo-money-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd9e8;
    border-radius: 10px;
    background: #fff;
}

body.bo-admin-shell .bo-money-input span {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 13px;
    border-right: 1px solid #dfe8f2;
    background: #f6fafc;
    color: #0d3268;
    font-size: 13px;
    font-weight: 900;
}

body.bo-admin-shell .bo-money-input .form-control {
    border: 0 !important;
    border-radius: 0 !important;
}

body.bo-admin-shell .bo-shipping-toggle {
    margin: 0;
    white-space: nowrap;
}

body.bo-admin-shell .bo-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #d8e5f2;
    border-radius: 14px;
    background: #f8fbff;
}

body.bo-admin-shell .bo-channel-grid.is-invalid {
    border-color: #ee8278;
    box-shadow: 0 0 0 3px rgba(217, 79, 69, .12);
}

body.bo-admin-shell .bo-channel-card {
    margin: 0;
    min-height: 58px;
    background: #fff;
}

body.bo-admin-shell .bo-channel-card strong {
    color: #102744;
    font-size: 14px;
}

body.bo-admin-shell .bo-channel-card small {
    color: #70819a;
    word-break: break-word;
}

body.bo-admin-shell .bo-modal-actions {
    position: sticky;
    bottom: -22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 -22px -22px;
    padding: 14px 22px;
    border-top: 1px solid #dfe8f2;
    background: rgba(255, 255, 255, .96);
}

body.bo-admin-shell .bo-modal-actions .btn {
    min-width: 104px;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 900;
}

/* DataTables Editor lightbox normalization.
   Editor injects inline top/left/margin styles that place dialogs behind the fixed BO header. */
body.bo-admin-shell div.DTED_Lightbox_Background {
    position: fixed !important;
    inset: 0 !important;
    z-index: 12990 !important;
    background: rgba(12, 22, 38, .58) !important;
    backdrop-filter: blur(4px);
}

body.bo-admin-shell div.DTED_Lightbox_Wrapper {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 13000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 84px 24px 24px !important;
    pointer-events: none;
}

body.bo-admin-shell div.DTED_Lightbox_Container,
body.bo-admin-shell div.DTED_Lightbox_Content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(920px, calc(100vw - 48px)) !important;
    height: auto !important;
    max-height: calc(100vh - 112px) !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(205, 218, 232, .95) !important;
    border-radius: 12px !important;
    background: var(--mb-admin-surface) !important;
    box-shadow: 0 26px 80px rgba(10, 25, 47, .28) !important;
    pointer-events: auto;
}

body.bo-admin-shell div.DTED_Lightbox_Content {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

body.bo-admin-shell div.DTE {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 112px);
    color: var(--mb-admin-text);
    font-family: inherit;
    font-size: 13px;
}

body.bo-admin-shell div.DTE div.DTE_Header {
    display: block !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--mb-admin-line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--mb-admin-navy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

body.bo-admin-shell div.DTE div.DTE_Body {
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
}

body.bo-admin-shell div.DTE div.DTE_Body div.DTE_Body_Content {
    max-height: calc(100vh - 230px);
    overflow: auto !important;
    padding: 16px 20px !important;
    background: #fff;
}

body.bo-admin-shell div.DTE div.DTE_Body div.DTE_Field {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 10px 16px;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(224, 233, 242, .72);
}

body.bo-admin-shell div.DTE div.DTE_Body div.DTE_Field > label {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #526780;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
}

body.bo-admin-shell div.DTE div.DTE_Body div.DTE_Field > div.DTE_Field_Input,
body.bo-admin-shell div.DTE div.DTE_Field_InputControl {
    width: 100% !important;
    min-width: 0;
}

body.bo-admin-shell div.DTE input,
body.bo-admin-shell div.DTE select,
body.bo-admin-shell div.DTE textarea {
    width: 100% !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd9e8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--mb-admin-text) !important;
    font-size: 13px !important;
    font-weight: 650;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

body.bo-admin-shell div.DTE textarea {
    min-height: 86px !important;
    resize: vertical;
}

body.bo-admin-shell div.DTE input:focus,
body.bo-admin-shell div.DTE select:focus,
body.bo-admin-shell div.DTE textarea:focus {
    border-color: var(--mb-admin-teal) !important;
    box-shadow: 0 0 0 3px rgba(0, 163, 155, .14) !important;
    outline: 0 !important;
}

body.bo-admin-shell div.DTE div.DTE_Footer {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px !important;
    border-top: 1px solid var(--mb-admin-line);
    background: rgba(255, 255, 255, .96);
}

body.bo-admin-shell div.DTE div.DTE_Form_Buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    padding: 0 !important;
    text-align: right;
}

body.bo-admin-shell div.DTE div.DTE_Form_Buttons button,
body.bo-admin-shell div.DTE button {
    min-height: 34px !important;
    padding: 6px 14px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: var(--mb-admin-teal) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

body.bo-admin-shell div.DTE div.DTE_Form_Buttons button:hover,
body.bo-admin-shell div.DTE button:hover {
    background: var(--mb-admin-teal-2) !important;
}

body.bo-admin-shell div.DTE div.DTE_Form_Error,
body.bo-admin-shell div.DTE div.DTE_Field_Error {
    color: #c94238 !important;
    font-size: 12px !important;
    font-weight: 800;
}

body.bo-admin-shell div.DTED_Lightbox_Close {
    top: 12px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #d8e5f2 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #66758d !important;
    box-shadow: 0 8px 22px rgba(10, 25, 47, .12) !important;
}

body.bo-admin-shell div.DTED_Lightbox_Close:after {
    color: #66758d !important;
    font-size: 24px !important;
    line-height: 30px !important;
}

body.bo-admin-shell .bo-upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px dashed #c9d9eb;
    border-radius: 10px;
    background: #f7fbff;
}

body.bo-admin-shell .bo-upload-actions h3 {
    margin: 0 0 3px;
    color: var(--mb-admin-navy);
    font-size: 16px;
    font-weight: 900;
}

body.bo-admin-shell .bo-upload-actions p {
    margin: 0;
    color: #657792;
    font-size: 13px;
    font-weight: 650;
}

body.bo-admin-shell .bo-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body.bo-admin-shell .bo-user-management-page .bo-panel {
    overflow: visible;
}

body.bo-admin-shell .bo-user-management-page .k-grid,
body.bo-admin-shell .bo-user-management-page .k-widget {
    color: var(--mb-admin-text);
    font-family: inherit;
}

body.bo-admin-shell .bo-user-management-page .k-grid-header th.k-header,
body.bo-admin-shell .bo-user-management-page .k-grid-header th {
    padding: 11px 12px;
    border-color: #dce6f1;
    background: #edf3f8;
    color: #40526d;
    font-size: 12px;
    font-weight: 900;
    text-transform: none;
}

body.bo-admin-shell .bo-user-management-page .k-grid td {
    padding: 10px 12px;
    border-color: #e2e9f1;
    color: #2d3d55;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

body.bo-admin-shell .bo-user-management-page .k-grid tr.k-alt {
    background: #f8fbfe;
}

body.bo-admin-shell .bo-user-management-page .k-grid .k-button,
body.bo-admin-shell .bo-user-management-page .k-grid .k-grid-edit {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #b8ddd9;
    border-radius: 8px;
    background: #eaf8f6;
    color: var(--mb-admin-teal);
    font-size: 13px;
    font-weight: 900;
    box-shadow: none;
}

body.bo-admin-shell .bo-user-management-page .k-pager-wrap,
body.bo-admin-shell .bo-user-management-page .k-grid-pager {
    border-top: 1px solid #dfe8f2;
    background: #fff;
    color: #596b85;
    font-size: 13px;
    font-weight: 700;
}

body.bo-admin-shell .be-right-sidebar {
    position: fixed;
    top: var(--bo-header-height, 66px);
    right: 0;
    bottom: 0;
    z-index: 12550;
    width: min(560px, calc(100vw - 24px));
    max-width: 100vw;
    border-left: 1px solid #d8e4f1;
    background: #fff;
    box-shadow: -24px 0 64px rgba(12, 28, 48, .18);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translate3d(calc(100% + 32px), 0, 0);
    transition: transform .22s ease, opacity .18s ease, visibility .18s ease, box-shadow .22s ease;
}

body.bo-admin-shell:not(.open-right-sidebar) .be-right-sidebar,
body.bo-admin-shell .be-right-sidebar[aria-hidden="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translate3d(calc(100% + 32px), 0, 0) !important;
    box-shadow: none !important;
}

body.bo-admin-shell.open-right-sidebar .be-right-sidebar {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

body.bo-admin-shell .be-right-sidebar.w800 {
    width: min(640px, calc(100vw - 24px));
}

body.bo-admin-shell .be-right-sidebar .be-scroller {
    height: calc(100vh - var(--bo-header-height, 66px));
    padding: 16px 18px 24px;
    overflow: auto;
}

body.bo-admin-shell .bo-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -16px -18px 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #e1eaf4;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.bo-admin-shell .bo-drawer-header h4 {
    margin: 0;
    color: var(--mb-admin-navy);
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
}

body.bo-admin-shell .bo-drawer-header p {
    margin: 5px 0 0;
    color: #647793;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

body.bo-admin-shell .bo-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid #d4e1ef;
    border-radius: 999px;
    background: #fff;
    color: #687991;
    font-size: 24px;
    line-height: 30px;
}

body.bo-admin-shell .bo-member-edit-panel .panel-body {
    padding: 2px 0 18px;
}

body.bo-admin-shell .bo-member-edit-panel hr {
    margin: 12px 0;
    border-color: #e5edf5;
}

body.bo-admin-shell .bo-member-edit-panel .form-group {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    gap: 6px 14px;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(225, 235, 245, .72);
}

body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-3,
body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-6,
body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-2 {
    display: block;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0;
    padding: 0 !important;
    text-align: left !important;
    justify-self: stretch;
}

body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-2 {
    align-self: center;
    justify-self: start;
}

body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-2:empty,
body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-3:empty {
    display: none;
}

body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-6:has(.bo-form-section-title),
body.bo-admin-shell .bo-member-edit-panel .form-group > .bo-form-actions {
    grid-column: 1 / -1;
}

body.bo-admin-shell .bo-member-edit-panel .control-label {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding-top: 0 !important;
    color: #4b5f7a;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left !important;
}

body.bo-admin-shell .bo-user-edit-drawer .bo-member-edit-panel.form-horizontal .control-label,
body.bo-admin-shell .bo-user-edit-drawer .bo-member-edit-panel .form-horizontal .control-label,
body.bo-admin-shell .bo-user-edit-drawer .bo-member-edit-panel .form-group label,
body.bo-admin-shell .bo-user-edit-drawer .bo-member-edit-panel .form-group div {
    text-align: left !important;
}

body.bo-admin-shell .bo-member-edit-panel .labelpaging {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px !important;
    border: 1px solid #e0e9f3;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--mb-admin-navy);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    text-align: left !important;
    overflow-wrap: anywhere;
}

body.bo-admin-shell .bo-member-edit-panel .form-control,
body.bo-admin-shell .bo-member-edit-panel select,
body.bo-admin-shell .bo-member-edit-panel textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd9e8;
    border-radius: 8px;
    color: var(--mb-admin-text);
    font-size: 14px;
    font-weight: 650;
    box-shadow: none;
}

body.bo-admin-shell .bo-member-edit-panel .form-control:focus,
body.bo-admin-shell .bo-member-edit-panel select:focus,
body.bo-admin-shell .bo-member-edit-panel textarea:focus {
    border-color: var(--mb-admin-teal);
    box-shadow: 0 0 0 3px rgba(0, 163, 155, .14);
}

body.bo-admin-shell .bo-form-section-title {
    margin: 4px 0 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #e1eaf4;
    color: var(--mb-admin-teal);
    font-size: 13px;
    font-weight: 950;
    text-transform: none;
}

body.bo-admin-shell .bo-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 14px 0 0;
    color: #2d3d55;
    font-weight: 750;
}

body.bo-admin-shell .bo-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

body.bo-admin-shell .bo-user-edit-drawer .phones,
body.bo-admin-shell .bo-user-edit-drawer .intl-tel-input,
body.bo-admin-shell .bo-user-edit-drawer .iti {
    width: 100%;
}

body.bo-admin-shell .bo-user-edit-drawer .bo-member-edit-panel .radio,
body.bo-admin-shell .bo-user-edit-drawer .bo-member-edit-panel .checkbox {
    margin: 0;
}

@media (max-width: 720px) {
    body.bo-admin-shell .bo-member-edit-panel .form-group {
        grid-template-columns: 1fr;
    }

    body.bo-admin-shell .bo-member-edit-panel .form-group > .col-sm-2 {
        justify-self: stretch;
    }
}

body.bo-admin-shell .bo-member-table-wrap {
    min-height: 220px;
    overflow-x: auto;
    overflow-y: hidden;
}

body.bo-admin-shell .bo-member-table th,
body.bo-admin-shell .bo-member-table td {
    font-size: 13px;
}

body.bo-admin-shell .bo-member-table .bo-member-name,
body.bo-admin-shell .bo-member-table .bo-member-email,
body.bo-admin-shell .bo-member-table .bo-member-username {
    max-width: 220px;
    word-break: break-word;
}

body.bo-admin-shell .bo-member-table tbody tr:hover {
    background: #f7fbfc;
}

body.bo-admin-shell .bo-member-pagination .btn {
    min-height: 34px;
    padding: 7px 12px;
}

body.bo-admin-shell .bo-member-pagination .form-control {
    width: auto;
    min-width: 76px;
}

body.bo-admin-shell select.bo-plain-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    padding-right: 12px !important;
}

body.bo-admin-shell select.bo-plain-select::-ms-expand {
    display: none;
}

@media (max-width: 720px) {
    body.bo-admin-shell div.DTED_Lightbox_Wrapper {
        padding: 72px 12px 12px !important;
    }

    body.bo-admin-shell div.DTED_Lightbox_Container,
    body.bo-admin-shell div.DTED_Lightbox_Content {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 84px) !important;
    }

    body.bo-admin-shell div.DTE,
    body.bo-admin-shell div.DTE div.DTE_Body div.DTE_Body_Content {
        max-height: calc(100vh - 180px);
    }

    body.bo-admin-shell div.DTE div.DTE_Body div.DTE_Field {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 767px) {
    body.bo-admin-shell .navbar-header {
        grid-template-columns: 60px minmax(0, 1fr) auto;
    }

    body.bo-admin-shell .navbar-header .top-left-part {
        grid-column: 2;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        border-right: 0;
    }

    body.bo-admin-shell .navbar-left {
        display: none !important;
    }

    body.bo-admin-shell .bo-sidebar,
    body.bo-admin-shell .navbar-default.sidebar {
        transform: translateX(-100%);
    }

body.bo-admin-shell #page-wrapper,
    body.bo-admin-shell .bo-app-footer {
        margin-left: 0 !important;
    }
}

/* Back-office is a dense desktop operations surface. Keep a stable desktop
   viewport on phones/tablets instead of letting the sidebar and wide tables
   collapse into an unusable mobile layout. */
html,
body.bo-admin-shell,
body.bo-admin-shell #wrapper,
body.bo-admin-shell .bo-topbar,
body.bo-admin-shell .navbar.navbar-default.navbar-static-top {
    min-width: 1280px;
}

body.bo-admin-shell {
    overflow-x: auto;
}

@media (max-width: 991px) {
    body.bo-admin-shell .navbar-header {
        grid-template-columns: var(--bo-shell-sidebar) 56px minmax(16px, 1fr) auto !important;
        min-width: 1280px;
    }

    body.bo-admin-shell .navbar-header .top-left-part {
        grid-column: 1 !important;
        width: var(--bo-shell-sidebar) !important;
        min-width: var(--bo-shell-sidebar) !important;
        max-width: var(--bo-shell-sidebar) !important;
        padding: 0 20px !important;
        border-right: 1px solid #dfe8f2 !important;
    }

    body.bo-admin-shell .navbar-header .top-left-part .logo-full {
        display: flex !important;
    }

    body.bo-admin-shell .navbar-header .top-left-part .logo-short {
        display: none !important;
    }

    body.bo-admin-shell .navbar-left {
        display: block !important;
        grid-column: 2 !important;
    }

    body.bo-admin-shell .navbar-toggle {
        display: none !important;
    }

    body.bo-admin-shell .bo-sidebar,
    body.bo-admin-shell .navbar-default.sidebar {
        width: var(--bo-shell-sidebar) !important;
        min-width: var(--bo-shell-sidebar) !important;
        max-width: var(--bo-shell-sidebar) !important;
        transform: none !important;
    }

    body.bo-admin-shell #page-wrapper {
        min-width: calc(1280px - var(--bo-shell-sidebar));
        margin-left: var(--bo-shell-sidebar) !important;
    }

    body.bo-admin-shell .bo-app-footer {
        margin-left: var(--bo-shell-sidebar) !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed .navbar-header,
    body.bo-admin-shell.content-wrapper .navbar-header {
        grid-template-columns: var(--bo-shell-rail) 56px minmax(16px, 1fr) auto !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part,
    body.bo-admin-shell.content-wrapper .navbar-header .top-left-part {
        width: var(--bo-shell-rail) !important;
        min-width: var(--bo-shell-rail) !important;
        max-width: var(--bo-shell-rail) !important;
        padding: 0 !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part .logo-full,
    body.bo-admin-shell.content-wrapper .navbar-header .top-left-part .logo-full {
        display: none !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed .navbar-header .top-left-part .logo-short,
    body.bo-admin-shell.content-wrapper .navbar-header .top-left-part .logo-short {
        display: flex !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed .bo-sidebar,
    body.bo-admin-shell.bo-sidebar-collapsed .navbar-default.sidebar,
    body.bo-admin-shell.content-wrapper .bo-sidebar,
    body.bo-admin-shell.content-wrapper .navbar-default.sidebar {
        width: var(--bo-shell-rail) !important;
        min-width: var(--bo-shell-rail) !important;
        max-width: var(--bo-shell-rail) !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed #page-wrapper,
    body.bo-admin-shell.content-wrapper #page-wrapper {
        min-width: calc(1280px - var(--bo-shell-rail));
        margin-left: var(--bo-shell-rail) !important;
    }

    body.bo-admin-shell.bo-sidebar-collapsed .bo-app-footer,
    body.bo-admin-shell.content-wrapper .bo-app-footer {
        margin-left: var(--bo-shell-rail) !important;
    }
}

/* ===== Order-confirmation modal (_UserParcelsData) ===== */
/* Authoritative + self-contained so the layout doesn't depend on ambiguous
   global rules inside the scrollable modal body. */
.bo-order-form { width: 100%; display: block; }
.bo-order-form .bo-panel-flush {
    width: 100%;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0 0 18px 0;
}
.bo-order-form .bo-panel-flush > .bo-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px 0;
    border: none;
}
.bo-order-form .bo-panel-flush > .bo-panel-body,
.bo-order-form .bo-panel-flush > .collapse > .bo-panel-body { padding: 0; }
/* Parcels table sits in a light card for separation */
.bo-order-form .bo-table-wrap {
    border: 1px solid var(--mb-admin-line, #e3ecf6);
    border-radius: 10px;
    overflow: auto;
}
.bo-order-form .bo-table-wrap table { width: 100%; }
/* Responsive multi-column field grid (force, regardless of global rules) */
.bo-order-form .bo-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 18px;
    width: 100%;
}
.bo-order-form .bo-field { min-width: 0; }
.bo-order-form .bo-field-wide { grid-column: 1 / -1; }
.bo-order-form .bo-field .form-control,
.bo-order-form .bo-field .form-select { width: 100%; max-width: 100%; }
.bo-collapsible { cursor: pointer; }
.bo-collapsible[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.bo-collapsible .fa-chevron-down { transition: transform .2s ease; color: #6b7a92; }
.bo-order-summary {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f4f7fb;
    border-radius: 8px;
    font-size: 14px;
    color: #2b3a55;
}
.bo-billing-toggle { margin: 6px 0 16px; }
.bo-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #2b3a55; cursor: pointer; }
.bo-field-label { display: block; margin-bottom: 7px; color: #40506b; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.bo-hint { margin: 8px 0 0; font-size: 12.5px; color: #6b7a92; line-height: 1.5; }
.bo-required { color: #e2483d; font-weight: 700; }

/* ===== bo-modal header consistency: title centered, close pinned top-right ===== */
body.bo-admin-shell .bo-modal-content .modal-header {
    position: relative;
    justify-content: center;
    text-align: center;
}
body.bo-admin-shell .bo-modal-content .modal-header > .bo-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
}
/* Form controls inside bo modals match the bo form design (font + sizing) */
body.bo-admin-shell .bo-modal-content .modal-body .form-control,
body.bo-admin-shell .bo-modal-content .modal-body .form-select,
body.bo-admin-shell .bo-modal-content .modal-body select,
body.bo-admin-shell .bo-modal-content .modal-body textarea {
    font-size: 14px;
    min-height: 40px;
    border: 1px solid #cfdae8;
    border-radius: 6px;
    box-shadow: none;
}

/* ===== Shipping-company analysis table ===== */
#analyticsShipCompany table { border-collapse: collapse; }
#analyticsShipCompany th, #analyticsShipCompany td { padding: 9px 12px; border-bottom: 1px solid #eef2f7; font-size: 13.5px; }
#analyticsShipCompany thead th { color: #40506b; font-weight: 700; text-transform: uppercase; font-size: 12px; background: #f6f9fc; text-align: left; }
.bo-num { text-align: right; font-variant-numeric: tabular-nums; }
#analyticsShipCompany thead th.bo-num { text-align: right; }
.bo-table-total td { border-top: 2px solid #dfe8f2; background: #f9fbfe; }

/* ===== Mobile (<768px) off-canvas sidebar drawer ===== */
.bo-sidebar-backdrop { display: none; }
@media (max-width: 767px) {
    body.bo-admin-shell .navbar-default.sidebar {
        position: fixed !important;
        left: 0;
        top: 66px !important;
        width: 264px !important;
        max-width: 82vw;
        height: calc(100vh - 66px) !important;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 6200 !important;
        overflow-y: auto !important;
        box-shadow: 8px 0 28px rgba(20, 50, 95, .18);
    }
    body.bo-admin-shell.bo-sidebar-mobile-open .navbar-default.sidebar {
        transform: translateX(0);
    }
    /* Force the collapsible nav + slimscroll wrapper to render fully in the drawer */
    body.bo-admin-shell .navbar-default.sidebar .sidebar-nav,
    body.bo-admin-shell .navbar-default.sidebar .sidebar-nav.navbar-collapse,
    body.bo-admin-shell .navbar-default.sidebar .slimScrollDiv {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    body.bo-admin-shell .navbar-default.sidebar .slimScrollBar,
    body.bo-admin-shell .navbar-default.sidebar .slimScrollRail { display: none !important; }
    body.bo-admin-shell #page-wrapper { margin-left: 0 !important; }
    body.bo-admin-shell .footer { left: 0 !important; }
    /* Backdrop */
    body.bo-admin-shell.bo-sidebar-mobile-open .bo-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 66px 0 0 0;
        background: rgba(13, 50, 104, .42);
        z-index: 6150;
    }
}

/* ---------------------------------------------------------------------------
   MOB fix: 添加包裹 (add-parcel) modal — inputs/labels were too small to read.
   Bump font-size + control height so the table rows are legible.
   --------------------------------------------------------------------------- */
#addParcelModal .modal-body { font-size: 15px; }
#addParcelModal table th { font-size: 14px; white-space: nowrap; }
#addParcelModal table td .form-control,
#addParcelModal table td input,
#addParcelModal table td select {
    font-size: 15px;
    min-height: 40px;
    padding: 6px 10px;
}
