/*
 * Remap247 customer portal design system.
 * Loaded for public views, but deliberately scoped to the authenticated shell.
 */
:root {
    --portal-font: "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --portal-accent: #d92d2d;
    --portal-accent-strong: #b51f1f;
    --portal-accent-soft: #fff1f1;
    --portal-navy: #182131;
    --portal-navy-2: #242f42;
    --portal-ink: #172033;
    --portal-text: #3e495d;
    --portal-muted: #667085;
    --portal-line: #e3e8f0;
    --portal-line-strong: #d3dae6;
    --portal-canvas: #f3f6fa;
    --portal-surface: #ffffff;
    --portal-success: #16845b;
    --portal-warning: #b56b09;
    --portal-danger: #ca2929;
    --portal-info: #2368a2;
    --portal-radius-sm: 5px;
    --portal-radius: 7px;
    --portal-radius-lg: 9px;
    --portal-shadow-sm: 0 1px 2px rgba(22, 32, 51, .035);
    --portal-shadow: 0 3px 10px rgba(22, 32, 51, .06);
    --portal-focus: 0 0 0 3px rgba(235, 52, 52, .14);
}

body:not(.form):has(.header-container) {
    font-family: var(--portal-font);
    color: var(--portal-text);
    background: var(--portal-canvas);
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: 0;
}

body.portal-customer-page {
    --remap-accent: var(--portal-accent);
    --remap-accent-dark: var(--portal-accent-strong);
    --accent: var(--portal-accent);
    font-family: var(--portal-font);
    color: var(--portal-text);
    background: var(--portal-canvas);
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: 0;
    font-synthesis: none;
}

body.portal-customer-page button,
body.portal-customer-page input,
body.portal-customer-page select,
body.portal-customer-page textarea {
    font-family: var(--portal-font);
}

body.portal-customer-page h1,
body.portal-customer-page h2,
body.portal-customer-page h3,
body.portal-customer-page h4,
body.portal-customer-page h5,
body.portal-customer-page h6 {
    color: var(--portal-ink);
    letter-spacing: 0;
    font-family: var(--portal-font);
}

body.portal-customer-page a {
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.portal-customer-page a:focus-visible,
body.portal-customer-page button:focus-visible,
body.portal-customer-page input:focus-visible,
body.portal-customer-page select:focus-visible,
body.portal-customer-page textarea:focus-visible,
body.portal-customer-page [tabindex]:focus-visible {
    outline: 2px solid var(--portal-accent) !important;
    outline-offset: 2px;
}

/* Application shell */
body.portal-customer-page .header-container {
    height: 64px;
    padding-left: 255px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.portal-customer-page .header-container .header.navbar {
    min-height: 64px;
    padding: 0 18px 0 20px;
    border: 0;
    border-bottom: 1px solid rgba(211, 218, 230, .8);
    background: #fff;
    box-shadow: none;
}

body.portal-customer-page .main-container {
    min-height: 100dvh;
    background: var(--portal-canvas);
}

body.portal-customer-page #content.main-content {
    width: auto;
    min-width: 0;
    margin-top: 64px;
    margin-left: 255px;
    background: transparent;
}

body.portal-customer-page .main-container.sidebar-closed > #content,
body.portal-customer-page .main-container.sidebar-closed #content {
    margin-left: 64px;
}

body.portal-customer-page #content.main-content > .layout-px-spacing,
body.portal-customer-page #content.main-content > .col-lg-12,
body.portal-customer-page #content.main-content > .container-fluid {
    width: 100%;
    max-width: 1680px;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: clamp(16px, 2.1vw, 34px) !important;
    padding-left: clamp(16px, 2.1vw, 34px) !important;
}

body.portal-customer-page #content.main-content > .layout-px-spacing {
    min-height: calc(100dvh - 116px) !important;
    padding-bottom: 34px !important;
}

body.portal-customer-page #content.main-content > .portal-upload-heading-wrap {
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

body.portal-customer-page .layout-top-spacing {
    margin-top: 22px;
}

body.portal-customer-page .layout-spacing {
    padding-bottom: 22px;
}

/* Header */
.portal-page-context {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.portal-page-context-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 10px;
    color: var(--portal-accent);
    background: var(--portal-accent-soft);
    font-size: 16px;
}

.portal-page-context-copy {
    min-width: 0;
}

.portal-page-context-copy strong,
.portal-page-context-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-page-context-copy strong {
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 600;
}

.portal-page-context-copy small {
    margin-top: 1px;
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.portal-system-time {
    color: var(--portal-muted);
    font-variant-numeric: tabular-nums;
}

body.portal-customer-page .header-container .sidebarCollapse {
    display: none;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--portal-line);
    border-radius: 7px;
    color: var(--portal-ink);
    background: #fff;
}

body.portal-customer-page .header-container .sidebarCollapse svg {
    width: 20px;
    height: 20px;
}

body.portal-customer-page .navbar .navbar-item.navbar-dropdown {
    align-items: center;
    flex-direction: row;
    gap: 3px;
    margin-left: auto;
}

body.portal-customer-page .navbar .navbar-item .nav-item > .nav-link {
    position: relative;
    display: grid;
    min-width: 40px;
    height: 40px;
    padding: 0 9px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #626d82;
    line-height: 1;
}

body.portal-customer-page .navbar .navbar-item .nav-item > .nav-link:hover,
body.portal-customer-page .navbar .navbar-item .nav-item.show > .nav-link {
    border-color: #f0d8d8;
    color: var(--portal-accent) !important;
    background: var(--portal-accent-soft);
}

body.portal-customer-page .navbar .navbar-item .nav-item > .nav-link svg {
    width: 20px;
    height: 20px;
}

body.portal-customer-page .navbar .navbar-item .nav-item > .nav-link .portal-nav-count {
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--portal-accent);
    font-size: 10px;
    font-weight: 600;
}

body.portal-customer-page .navbar .language-dropdown > .nav-link {
    min-width: 44px;
    font-size: 18px;
}

body.portal-customer-page .navbar .currency-dropdown > .nav-link {
    min-width: 42px;
    color: var(--portal-ink);
    font-size: 19px;
    font-weight: 600;
}

body.portal-customer-page .navbar .user-profile-dropdown > .nav-link {
    margin-left: 4px;
    padding: 2px;
    border-color: var(--portal-line);
    border-radius: 50%;
}

body.portal-customer-page .navbar .user-profile-dropdown > .nav-link img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

body.portal-customer-page .navbar .navbar-item .nav-item.dropdown .dropdown-menu {
    top: calc(100% + 9px) !important;
    min-width: 230px;
    max-width: min(360px, calc(100vw - 24px));
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(22, 32, 51, .16);
}

body.portal-customer-page .navbar .navbar-item .nav-item.dropdown .dropdown-menu.show {
    top: calc(100% + 9px) !important;
}

body.portal-customer-page .navbar .dropdown-menu .dropdown-item {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 9px;
    color: var(--portal-text);
    font-size: 13px;
    line-height: 1.35;
}

body.portal-customer-page .navbar .dropdown-menu .dropdown-item:hover {
    color: var(--portal-accent);
    background: var(--portal-accent-soft);
}

body.portal-customer-page .navbar .dropdown-menu .dropdown-item + .dropdown-item {
    margin-top: 2px;
}

.portal-dropdown-empty {
    padding: 21px 15px;
    color: var(--portal-muted);
    font-size: 12px;
    text-align: center;
}

.portal-dropdown-empty i {
    display: block;
    margin-bottom: 8px;
    color: #b5bfce;
    font-size: 22px;
}

body.portal-customer-page .navbar .message-dropdown .dropdown-menu,
body.portal-customer-page .navbar .notification-dropdown .dropdown-menu {
    width: min(360px, calc(100vw - 24px));
}

body.portal-customer-page .navbar .message-dropdown .media,
body.portal-customer-page .navbar .notification-dropdown .media {
    align-items: center;
    gap: 10px;
}

body.portal-customer-page .navbar .message-dropdown .avatar img {
    width: 38px;
    height: 38px;
    object-fit: cover;
}

body.portal-customer-page .navbar .message-dropdown h5,
body.portal-customer-page .navbar .notification-dropdown h6 {
    margin: 0;
    overflow: hidden;
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.portal-customer-page .navbar .message-dropdown p,
body.portal-customer-page .navbar .notification-dropdown p {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--portal-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.portal-customer-page .navbar .user-profile-section {
    margin: -8px -8px 7px;
    padding: 15px;
    border: 0;
    background: var(--portal-navy);
}

body.portal-customer-page .navbar .user-profile-section h5 {
    max-width: 170px;
    margin: 1px 0 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar */
body.portal-customer-page .sidebar-wrapper {
    width: 255px;
    height: 100dvh;
    border-right: 1px solid rgba(255, 255, 255, .045);
    background: #182131;
    box-shadow: none;
}

body.portal-customer-page #sidebar .theme-brand {
    height: 64px;
    padding: 0 14px 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background: rgba(11, 16, 25, .34);
}

body.portal-customer-page #sidebar .theme-brand .navbar-logo {
    width: auto;
    max-width: 165px;
    height: 36px !important;
    object-fit: contain;
}

body.portal-customer-page #sidebar .theme-brand .toggle-sidebar svg {
    color: #8e99ab;
}

body.portal-customer-page #sidebar .theme-brand .toggle-sidebar:hover svg {
    color: #fff;
}

body.portal-customer-page .shadow-bottom {
    top: 64px;
    left: 0;
    width: 100%;
    height: 0;
    margin: 0;
    background: transparent;
    filter: none;
}

body.portal-customer-page #sidebar ul.menu-categories.ps {
    height: calc(100dvh - 64px) !important;
    padding: 15px 12px 28px;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    scrollbar-width: thin;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu {
    margin: 2px 0;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu.menu-heading > .heading {
    padding: 18px 10px 6px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu > .dropdown-toggle {
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #c5cedb;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu > .dropdown-toggle .icon-container {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu > .dropdown-toggle .icon-container > i,
body.portal-customer-page #sidebar ul.menu-categories li.menu > .dropdown-toggle .icon-container > svg {
    width: 20px;
    flex: 0 0 20px;
    margin: 0;
    color: #d66c68 !important;
    font-size: 18px;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover,
body.portal-customer-page #sidebar ul.menu-categories li.menu.active > .dropdown-toggle,
body.portal-customer-page #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, .06);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
    transform: none;
}

body.portal-customer-page #sidebar ul.menu-categories li.menu.active > .dropdown-toggle {
    border-color: rgba(235, 52, 52, .22);
    background: rgba(217, 45, 45, .12);
    box-shadow: inset 3px 0 0 var(--portal-accent);
}

body.portal-customer-page #sidebar ul.menu-categories li.menu.active > .dropdown-toggle .icon-container > i,
body.portal-customer-page #sidebar ul.menu-categories li.menu.active > .dropdown-toggle .icon-container > svg {
    color: #ff6b67 !important;
}

body.portal-customer-page #sidebar .menu .badge,
.portal-sidebar-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: 7px !important;
    padding: 0 6px !important;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--portal-accent);
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

body.portal-customer-page #sidebar ul.menu-categories ul.submenu {
    margin: 4px 0 7px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(8, 13, 21, .2);
}

body.portal-customer-page #sidebar ul.menu-categories ul.submenu > li a {
    padding: 9px 10px 9px 39px;
    border-radius: 8px;
    color: #8f9bad;
    font-size: 12px;
}

body.portal-customer-page #sidebar ul.menu-categories ul.submenu > li a::before {
    top: 15px;
    left: 25px;
    background: #637086;
}

body.portal-customer-page #sidebar ul.menu-categories ul.submenu > li.active a,
body.portal-customer-page #sidebar ul.menu-categories ul.submenu > li a:hover {
    padding: 9px 10px 9px 39px;
    color: #fff;
    background: rgba(255, 255, 255, .055);
}

body.portal-customer-page .sidebar-closed > .sidebar-wrapper {
    width: 64px;
}

body.portal-customer-page .sidebar-closed > .sidebar-wrapper:hover {
    width: 255px;
}

body.portal-customer-page .sidebar-closed #sidebar ul.menu-categories li.menu {
    margin: 3px 0;
}

/* Shared headings and surfaces */
body.portal-customer-page .remap-page-header,
body.portal-customer-page .portal-page-header {
    display: flex;
    min-height: 64px;
    margin: 18px 0 0;
    padding: 14px 0 15px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    border-bottom: 1px solid var(--portal-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.portal-customer-page .remap-page-header::before,
body.portal-customer-page .portal-page-header::before {
    display: none;
}

body.portal-customer-page .remap-page-header,
body.portal-customer-page .portal-page-header {
    position: relative;
}

body.portal-customer-page .remap-page-header h1,
body.portal-customer-page .portal-page-header h1 {
    color: var(--portal-ink);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;
}

body.portal-customer-page .remap-page-header p,
body.portal-customer-page .portal-page-header p {
    max-width: 760px;
    margin-top: 5px;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.5;
}

body.portal-customer-page .remap-page-header .page-icon,
body.portal-customer-page .portal-page-header .page-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 6px;
    color: var(--portal-accent);
    background: var(--portal-accent-soft);
    box-shadow: none;
}

body.portal-customer-page .remap-page-heading,
body.portal-customer-page .portal-page-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

body.portal-customer-page .widget,
body.portal-customer-page .widget-content.widget-content-area,
body.portal-customer-page .card,
body.portal-customer-page .statbox,
body.portal-customer-page .doc-container,
body.portal-customer-page .section-card {
    border-color: var(--portal-line) !important;
    border-radius: var(--portal-radius) !important;
    background-color: var(--portal-surface) !important;
    box-shadow: none !important;
}

body.portal-customer-page .widget-content.widget-content-area,
body.portal-customer-page .card,
body.portal-customer-page .statbox {
    overflow: hidden;
}

body.portal-customer-page .widget-header,
body.portal-customer-page .card-header {
    border-bottom-color: var(--portal-line) !important;
    background: #fff !important;
}

body.portal-customer-page .widget-header h4,
body.portal-customer-page .widget-heading h5,
body.portal-customer-page .card-title {
    color: var(--portal-ink) !important;
    font-weight: 700 !important;
}

body.portal-customer-page .card-body {
    padding: clamp(18px, 2vw, 26px);
}

body.portal-customer-page .alert {
    padding: 12px 14px;
    border-width: 1px;
    border-radius: 6px;
    box-shadow: none;
}

body.portal-customer-page .alert-success { border-color: #bce5d4; color: #116a49; background: #edf9f4; }
body.portal-customer-page .alert-danger { border-color: #f0c1c1; color: #a72121; background: #fff1f1; }
body.portal-customer-page .alert-warning { border-color: #f0d9ad; color: #895208; background: #fff8e9; }
body.portal-customer-page .alert-info { border-color: #c6dcef; color: #1b5b88; background: #f0f7fc; }

/* Forms */
body.portal-customer-page label {
    color: var(--portal-text);
    font-weight: 600;
}

body.portal-customer-page .form-control,
body.portal-customer-page select,
body.portal-customer-page textarea,
body.portal-customer-page input[type="text"],
body.portal-customer-page input[type="email"],
body.portal-customer-page input[type="password"],
body.portal-customer-page input[type="number"],
body.portal-customer-page input[type="tel"] {
    min-height: 42px;
    border: 1px solid var(--portal-line-strong) !important;
    border-radius: 6px !important;
    color: var(--portal-ink);
    background: #fff;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.portal-customer-page textarea.form-control,
body.portal-customer-page textarea {
    min-height: 104px;
    padding-top: 11px;
    resize: vertical;
}

body.portal-customer-page .form-control:focus,
body.portal-customer-page select:focus,
body.portal-customer-page textarea:focus,
body.portal-customer-page input:focus {
    border-color: var(--portal-accent) !important;
    box-shadow: var(--portal-focus) !important;
}

body.portal-customer-page .form-control::placeholder,
body.portal-customer-page textarea::placeholder,
body.portal-customer-page input::placeholder {
    color: #a1abba;
}

body.portal-customer-page .form-group {
    margin-bottom: 17px;
}

body.portal-customer-page .form-group.row {
    align-items: center;
}

body.portal-customer-page input[type="checkbox"],
body.portal-customer-page input[type="radio"] {
    accent-color: var(--portal-accent);
}

/* Buttons */
body.portal-customer-page .btn {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none !important;
}

body.portal-customer-page .btn-sm {
    min-height: 32px;
    padding: 6px 10px;
}

body.portal-customer-page .btn-primary,
body.portal-customer-page .btn-success,
body.portal-customer-page .btn-danger,
body.portal-customer-page .btn-outline-accent {
    border-color: var(--portal-accent) !important;
    color: #fff !important;
    background: var(--portal-accent) !important;
}

body.portal-customer-page .btn-primary:hover,
body.portal-customer-page .btn-success:hover,
body.portal-customer-page .btn-danger:hover,
body.portal-customer-page .btn-outline-accent:hover {
    border-color: var(--portal-accent-strong) !important;
    background: var(--portal-accent-strong) !important;
    transform: none;
}

body.portal-customer-page .btn-secondary,
body.portal-customer-page .btn-dark {
    border-color: var(--portal-navy) !important;
    color: #fff !important;
    background: var(--portal-navy) !important;
}

body.portal-customer-page .btn-light,
body.portal-customer-page .btn-default {
    border-color: var(--portal-line-strong) !important;
    color: var(--portal-text) !important;
    background: #fff !important;
}

body.portal-customer-page .btn-light:hover,
body.portal-customer-page .btn-default:hover {
    border-color: #efb7b7 !important;
    color: var(--portal-accent) !important;
    background: var(--portal-accent-soft) !important;
}

/* Tables and DataTables */
body.portal-customer-page .table-responsive,
body.portal-customer-page .dataTables_scroll,
body.portal-customer-page .dataTables_scrollBody,
body.portal-customer-page .portal-table-scroll {
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-color: #c6cedb #f3f5f8;
    scrollbar-width: thin;
}

body.portal-customer-page table.table,
body.portal-customer-page table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
}

body.portal-customer-page .table thead th,
body.portal-customer-page table.dataTable thead th {
    padding: 12px 15px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--portal-line) !important;
    color: #475467 !important;
    background: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    text-transform: none !important;
    white-space: nowrap;
}

body.portal-customer-page .table tbody td,
body.portal-customer-page table.dataTable tbody td {
    padding: 12px 15px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
    color: var(--portal-text) !important;
    background: #fff;
    line-height: 1.45;
    font-size: 14px;
    font-weight: 400;
    vertical-align: middle;
}

body.portal-customer-page .table tbody tr:last-child td,
body.portal-customer-page table.dataTable tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.portal-customer-page .table tbody tr:hover td,
body.portal-customer-page table.dataTable tbody tr:hover td {
    background: #fff9f9 !important;
}

body.portal-customer-page .dataTables_wrapper .row:first-child,
body.portal-customer-page .dataTables_wrapper .row:last-child {
    margin: 0;
    padding: 13px 15px;
    align-items: center;
    gap: 8px 0;
}

body.portal-customer-page .dataTables_wrapper .row:first-child {
    border-bottom: 1px solid var(--portal-line);
}

body.portal-customer-page .dataTables_wrapper .row:last-child {
    border-top: 1px solid var(--portal-line);
}

body.portal-customer-page .dataTables_wrapper .dataTables_length,
body.portal-customer-page .dataTables_wrapper .dataTables_filter,
body.portal-customer-page .dataTables_wrapper .dataTables_info,
body.portal-customer-page .dataTables_wrapper .dataTables_paginate {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--portal-muted);
    font-size: 12px;
}

body.portal-customer-page .dataTables_wrapper .dataTables_filter input,
body.portal-customer-page .dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    margin-left: 7px;
    border: 1px solid var(--portal-line-strong) !important;
    border-radius: 6px !important;
    color: var(--portal-ink) !important;
    background: #fff;
}

body.portal-customer-page .dataTables_wrapper .dataTables_length select {
    width: auto !important;
    min-width: 70px;
    padding: 7px 28px 7px 10px !important;
}

body.portal-customer-page .dataTables_wrapper .dataTables_filter input {
    min-width: min(240px, 45vw);
    padding: 7px 10px;
}

body.portal-customer-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    height: 34px;
    margin: 0 2px;
    padding: 7px 9px !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    color: var(--portal-muted) !important;
    background: transparent !important;
}

body.portal-customer-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
body.portal-customer-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.portal-customer-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: #f0c5c5 !important;
    color: var(--portal-accent) !important;
    background: var(--portal-accent-soft) !important;
}

body.portal-customer-page .dataTables_processing {
    padding: 14px 18px;
    border: 1px solid var(--portal-line);
    border-radius: 6px;
    color: var(--portal-ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
}

body.portal-customer-page #customer-vehicle-list-datatable tbody tr td:first-child {
    position: relative;
}

body.portal-customer-page #customer-vehicle-list-datatable tbody tr td:first-child::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    content: '';
    border-radius: 4px;
    background: #cbd3df;
}

body.portal-customer-page #customer-vehicle-list-datatable tr.file-order-process td:first-child::before { background: var(--portal-info); }
body.portal-customer-page #customer-vehicle-list-datatable tr.file-order-hold td:first-child::before { background: var(--portal-warning); }
body.portal-customer-page #customer-vehicle-list-datatable tr.file-order-completed td:first-child::before { background: var(--portal-success); }
body.portal-customer-page #customer-vehicle-list-datatable tr.file-order-cancel td:first-child::before { background: var(--portal-danger); }

.file-vehicle-cell {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.file-vehicle-cell img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.file-vehicle-cell strong {
    color: var(--portal-ink);
    font-weight: 600;
}

.file-credit-value {
    color: var(--portal-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.file-order-status {
    display: inline-flex;
    min-height: 27px;
    padding: 5px 9px;
    align-items: center;
    border-radius: 5px;
    color: #586477;
    background: #edf0f5;
    font-size: 11px;
    font-weight: 600;
}

.file-order-status.is-process { color: #1d5e8d; background: #eaf4fb; }
.file-order-status.is-hold { color: #835109; background: #fff3d8; }
.file-order-status.is-completed { color: #0f704c; background: #e7f7f0; }
.file-order-status.is-cancel { color: #ad2525; background: #ffebeb; }

body.portal-customer-page #customer-vehicle-list-datatable .btn-sq {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    padding: 7px 9px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.portal-customer-page #customer-vehicle-list-datatable .btn-sq br {
    display: none;
}

body.portal-customer-page #customer-vehicle-list-datatable .btn-success {
    border: 1px solid #efb4b4 !important;
    color: #b42318 !important;
    background: #fff !important;
}

body.portal-customer-page #customer-vehicle-list-datatable .btn-success:hover,
body.portal-customer-page #customer-vehicle-list-datatable .btn-success:focus {
    border-color: #d92d2d !important;
    color: #9d1c1c !important;
    background: #fff5f5 !important;
}

body.portal-customer-page #customer-vehicle-list-datatable .detail-btn {
    border: 1px solid #d8dee8 !important;
    color: #344054 !important;
    background: #fff !important;
}

body.portal-customer-page #customer-vehicle-list-datatable .detail-btn:hover,
body.portal-customer-page #customer-vehicle-list-datatable .detail-btn:focus {
    border-color: #aeb8c7 !important;
    color: #172033 !important;
    background: #f8fafc !important;
}

/* Badges and states */
body.portal-customer-page .badge,
body.portal-customer-page [class*="outline-badge-"] {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

body.portal-customer-page .badge-success { color: #0d6a48; background: #e7f7f0; }
body.portal-customer-page .badge-danger { color: #b62323; background: #ffebeb; }
body.portal-customer-page .badge-warning { color: #8a550c; background: #fff4da; }
body.portal-customer-page .badge-info,
body.portal-customer-page .badge-primary { color: #205c8a; background: #eaf4fb; }
body.portal-customer-page .badge-dark { color: #fff; background: var(--portal-navy); }

/* Modals */
body.portal-customer-page .modal-content {
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-lg);
    box-shadow: 0 25px 70px rgba(13, 21, 35, .25);
}

body.portal-customer-page .modal-header {
    min-height: 61px;
    padding: 16px 19px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-ink);
    background: #fff !important;
}

body.portal-customer-page .modal-header .modal-title {
    color: var(--portal-ink) !important;
    font-size: 17px;
    font-weight: 700;
}

body.portal-customer-page .modal-header .close {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    place-items: center;
    border-radius: 9px;
    color: var(--portal-muted);
    background: #f3f5f8;
    opacity: 1;
}

body.portal-customer-page .modal-body { padding: 20px; }
body.portal-customer-page .modal-footer { padding: 13px 18px; border-top: 1px solid var(--portal-line); background: #fafbfd; }

/* Legacy content pages */
body.portal-customer-page .main-content > .layout-px-spacing > .row.layout-top-spacing > [class*="col-"] > .widget-content.widget-content-area,
body.portal-customer-page .main-content > .layout-px-spacing > .row.layout-top-spacing > [class*="col-"] > .card {
    min-width: 0;
}

body.portal-customer-page .main-content .widget-content-area > h1:first-child,
body.portal-customer-page .main-content .widget-content-area > h2:first-child,
body.portal-customer-page .main-content .widget-content-area > h3:first-child,
body.portal-customer-page .main-content .card-body > h1:first-child,
body.portal-customer-page .main-content .card-body > h2:first-child,
body.portal-customer-page .main-content .card-body > h3:first-child,
body.portal-customer-page .main-content .card-body > h5.card-title:first-child {
    margin-bottom: 21px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-ink);
    font-weight: 700;
}

body.portal-customer-page .main-content .widget-content-area img,
body.portal-customer-page .main-content .card img {
    max-width: 100%;
}

body.portal-customer-page .main-content .widget-content-area > p,
body.portal-customer-page .main-content .card-body > p {
    color: var(--portal-text);
    line-height: 1.75;
}

/* File upload: remove the floating, detached credit chip and align the wizard. */
body.portal-customer-page #credit {
    position: static !important;
    z-index: auto;
    top: auto !important;
    right: auto !important;
    display: flex;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    pointer-events: none;
}

body.portal-customer-page #credit .badge-chip {
    margin: 0 !important;
    padding: 8px 12px;
    border: 1px solid #f1c7c7;
    border-radius: 6px;
    color: var(--portal-accent) !important;
    background: #fff !important;
    box-shadow: none;
    pointer-events: auto;
}

body.portal-customer-page #file-upload-step .steps ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.portal-customer-page #file-upload-step .steps li a {
    min-height: 44px;
    border-radius: 0;
    color: var(--portal-muted) !important;
    background: transparent !important;
}

body.portal-customer-page #file-upload-step .steps li.current a,
body.portal-customer-page #file-upload-step .steps li.done a {
    color: var(--portal-ink) !important;
    background: transparent !important;
}

body.portal-customer-page #file-upload-step .content {
    margin-top: 14px;
    border-radius: var(--portal-radius);
    background: transparent;
}

body.portal-customer-page #file-upload-step .section-card {
    padding: clamp(16px, 2vw, 24px);
}

/* Legal and information pages */
body.portal-customer-page.portal-policy-page .skills {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

body.portal-customer-page.portal-policy-page .skills .widget-content-area {
    overflow: hidden;
}

body.portal-customer-page .portal-policy-content {
    padding: clamp(24px, 4vw, 52px);
    color: var(--portal-text);
    font-size: 15px;
    line-height: 1.78;
}

body.portal-customer-page .portal-policy-content > :first-child {
    margin-top: 0;
}

body.portal-customer-page .portal-policy-content > :last-child {
    margin-bottom: 0;
}

body.portal-customer-page .portal-policy-content h1,
body.portal-customer-page .portal-policy-content h2,
body.portal-customer-page .portal-policy-content h3 {
    margin: 1.8em 0 .65em;
    line-height: 1.25;
}

body.portal-customer-page .portal-policy-content a {
    color: var(--portal-accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.portal-customer-page .portal-policy-content img,
body.portal-customer-page .portal-policy-content table {
    max-width: 100%;
}

/* Payment result */
body.portal-customer-page .portal-payment-result {
    width: min(100%, 680px);
    margin: clamp(28px, 8vh, 84px) auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-lg);
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
    text-align: center;
}

body.portal-customer-page .portal-payment-result-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 8px;
    font-size: 23px;
}

body.portal-customer-page .portal-payment-result-success .portal-payment-result-icon {
    color: var(--portal-success);
    background: #eaf8f2;
}

body.portal-customer-page .portal-payment-result-failure .portal-payment-result-icon {
    color: var(--portal-danger);
    background: #fff0f0;
}

body.portal-customer-page .portal-payment-result-label {
    color: var(--portal-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.portal-customer-page .portal-payment-result h1 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 4vw, 34px);
}

body.portal-customer-page .portal-payment-result p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--portal-muted);
    line-height: 1.65;
}

body.portal-customer-page .portal-payment-result .portal-payment-error {
    padding: 10px 14px;
    border-radius: 9px;
    color: #9b2020;
    background: #fff3f3;
    font-size: 13px;
}

/* Profile */
body.portal-customer-page .portal-profile-layout {
    max-width: 1040px;
}

body.portal-customer-page .portal-profile-card .form-group.row > label {
    flex: 0 0 180px;
    max-width: 180px;
}

body.portal-customer-page .portal-profile-card .form-group.row > [class*="col-"] {
    flex: 1 1 320px;
    max-width: none;
}

body.portal-customer-page .profile-settings-nav {
    display: flex;
    gap: 7px;
    margin: -4px 0 24px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--portal-line);
}
body.portal-customer-page .profile-settings-nav a {
    display: inline-flex;
    min-height: 36px;
    padding: 0 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--portal-line);
    border-radius: 6px;
    color: var(--portal-ink);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
}
body.portal-customer-page .profile-settings-nav a:hover,
body.portal-customer-page .profile-settings-nav a:focus { border-color: rgba(217,45,45,.38); color: var(--portal-accent); }
body.portal-customer-page .profile-settings-nav i { color: var(--portal-accent); }

body.portal-customer-page #img-upload {
    width: 88px !important;
    height: 88px;
    margin-top: 12px;
    border: 3px solid #fff;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--portal-line);
}

body.portal-customer-page .profile-newsletter-section {
    margin-top: 30px;
    padding-top: 28px;
    scroll-margin-top: 90px;
    border-top: 1px solid var(--portal-line);
}
body.portal-customer-page .profile-newsletter-heading {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
}
body.portal-customer-page .profile-newsletter-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 7px;
    color: var(--portal-accent);
    background: var(--portal-accent-soft);
}
body.portal-customer-page .profile-section-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--portal-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
body.portal-customer-page .profile-newsletter-heading h2 {
    margin: 0;
    color: var(--portal-ink);
    font-size: 19px;
    font-weight: 700;
}
body.portal-customer-page .profile-newsletter-heading p {
    margin: 4px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
}
body.portal-customer-page .profile-newsletter-status {
    padding: 5px 8px;
    border-radius: 5px;
    color: #596579;
    background: #eef1f5;
    font-size: 11px;
    font-weight: 600;
}
body.portal-customer-page .profile-newsletter-status.is-subscribed { color: #11734b; background: #e5f6ef; }
body.portal-customer-page .profile-newsletter-status.is-pending { color: #93620d; background: #fff4d9; }
body.portal-customer-page .profile-newsletter-form { margin-top: 18px; }
body.portal-customer-page .profile-newsletter-toggle {
    display: flex;
    min-height: 68px;
    margin: 0;
    padding: 13px 15px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--portal-line);
    border-radius: 7px;
    cursor: pointer;
    background: #fafbfc;
}
body.portal-customer-page .profile-newsletter-toggle strong,
body.portal-customer-page .profile-newsletter-toggle small { display: block; }
body.portal-customer-page .profile-newsletter-toggle strong { color: var(--portal-ink); font-size: 14px; font-weight: 600; }
body.portal-customer-page .profile-newsletter-toggle small { margin-top: 3px; color: var(--portal-muted); font-size: 12px; }
body.portal-customer-page .profile-newsletter-toggle input {
    position: relative;
    display: block;
    width: 42px;
    height: 22px;
    flex: 0 0 42px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: #cfd5df;
    transition: background-color .16s ease;
}
body.portal-customer-page .profile-newsletter-toggle input::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    content: "";
    background: #fff;
    transition: transform .16s ease;
}
body.portal-customer-page .profile-newsletter-toggle input:checked { background: var(--portal-accent); }
body.portal-customer-page .profile-newsletter-toggle input:checked::before { transform: translateX(20px); }
body.portal-customer-page .profile-newsletter-toggle input:focus-visible { outline: 3px solid rgba(217,45,45,.2); outline-offset: 2px; }
html[dir="rtl"] body.portal-customer-page .profile-newsletter-toggle input::before { right: 3px; left: auto; }
html[dir="rtl"] body.portal-customer-page .profile-newsletter-toggle input:checked::before { transform: translateX(-20px); }
body.portal-customer-page .profile-newsletter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
}
body.portal-customer-page .profile-newsletter-actions p {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 660px;
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
}
body.portal-customer-page .profile-newsletter-actions p i { margin-top: 2px; color: var(--portal-accent); }
body.portal-customer-page .profile-newsletter-notice {
    display: flex;
    margin-top: 14px;
    padding: 10px 12px;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    color: #825708;
    background: #fff6df;
    font-size: 12px;
}

/* Newsletter preferences inside the authenticated shell. */
body.portal-customer-page.portal-newsletter-page .newsletter-preference-wrap {
    width: min(100%, 920px);
    min-height: 0;
    margin: 18px auto 0;
    padding: 0;
}

body.portal-customer-page.portal-newsletter-page .newsletter-preference-card {
    padding: clamp(20px, 3vw, 34px);
    border-color: var(--portal-line);
    border-radius: var(--portal-radius-lg);
    box-shadow: none;
}

body.portal-customer-page.portal-newsletter-page .newsletter-preference-heading h1 {
    font-size: clamp(21px, 3vw, 27px);
}

/* Footer */
body.portal-customer-page .footer-wrapper {
    max-width: 1680px;
    margin: 0 auto;
    padding: 14px clamp(16px, 2.1vw, 34px) 22px;
    color: var(--portal-muted);
}

/* Mobile bottom navigation */
.portal-mobile-nav {
    display: none;
}

@media (max-width: 1199px) {
    body.portal-customer-page #content.main-content > .layout-px-spacing,
    body.portal-customer-page #content.main-content > .col-lg-12,
    body.portal-customer-page #content.main-content > .container-fluid {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    body.portal-customer-page .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.portal-customer-page .header-container {
        height: 60px;
        padding-left: 0;
    }

    body.portal-customer-page .header-container .header.navbar {
        min-height: 60px;
        padding: 0 12px;
    }

    body.portal-customer-page .header-container .sidebarCollapse {
        display: flex;
    }

    body.portal-customer-page #content.main-content,
    body.portal-customer-page .main-container.sidebar-closed > #content,
    body.portal-customer-page .main-container.sidebar-closed #content {
        margin-top: 60px;
        margin-left: 0;
    }

    body.portal-customer-page .sidebar-wrapper,
    body.portal-customer-page .sidebar-closed > .sidebar-wrapper,
    body.portal-customer-page .sidebar-closed > .sidebar-wrapper:hover {
        width: min(285px, calc(100vw - 48px));
        box-shadow: 22px 0 55px rgba(10, 16, 28, .24);
    }

    body.portal-customer-page #sidebar .theme-brand {
        height: 60px;
    }

    body.portal-customer-page #sidebar ul.menu-categories.ps {
        height: calc(100dvh - 60px) !important;
    }

    body.portal-customer-page .overlay.show {
        background: rgba(12, 18, 29, .44);
        backdrop-filter: blur(2px);
    }

    body.portal-customer-page .portal-page-context-copy small {
        display: none;
    }

    body.portal-customer-page .remap-page-header,
    body.portal-customer-page .portal-page-header {
        margin-top: 17px;
    }

    body.portal-customer-page .portal-profile-card .form-group.row > label {
        flex: 0 0 150px;
        max-width: 150px;
    }
}

@media (max-width: 767px) {
    body.portal-customer-page {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body.portal-customer-page #content.main-content > .layout-px-spacing,
    body.portal-customer-page #content.main-content > .col-lg-12,
    body.portal-customer-page #content.main-content > .container-fluid {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    body.portal-customer-page .layout-top-spacing {
        margin-top: 14px;
    }

    body.portal-customer-page .layout-spacing {
        padding-bottom: 14px;
    }

    .portal-page-context-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .portal-page-context-copy strong {
        max-width: 28vw;
        font-size: 12px;
    }

    body.portal-customer-page .customer-mode-item {
        margin-left: 5px;
    }

    body.portal-customer-page .customer-mode-badge {
        padding: 6px 7px;
        font-size: 10.5px;
    }

    body.portal-customer-page .customer-mode-dot {
        display: none;
    }

    body.portal-customer-page .navbar .navbar-item.navbar-dropdown {
        gap: 0;
    }

    body.portal-customer-page .navbar .navbar-item .nav-item > .nav-link {
        min-width: 36px;
        height: 36px;
        padding: 0 7px;
    }

    body.portal-customer-page .navbar .message-dropdown,
    body.portal-customer-page .navbar .notification-dropdown {
        display: none;
    }

    body.portal-customer-page .navbar .user-profile-dropdown > .nav-link img {
        width: 30px;
        height: 30px;
    }

    body.portal-customer-page .remap-page-header,
    body.portal-customer-page .portal-page-header {
        min-height: 64px;
        padding: 13px 0;
        align-items: center;
        border-radius: 0;
    }

    body.portal-customer-page .remap-page-header::before,
    body.portal-customer-page .portal-page-header::before {
        top: 14px;
        bottom: 14px;
    }

    body.portal-customer-page .remap-page-header .page-icon,
    body.portal-customer-page .portal-page-header .page-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    body.portal-customer-page .remap-page-header h1,
    body.portal-customer-page .portal-page-header h1 {
        font-size: 18px;
    }

    body.portal-customer-page .remap-page-header p,
    body.portal-customer-page .portal-page-header p {
        display: block;
        margin-top: 3px;
        font-size: 11px;
    }

    body.portal-customer-page .widget,
    body.portal-customer-page .widget-content.widget-content-area,
    body.portal-customer-page .card,
    body.portal-customer-page .statbox,
    body.portal-customer-page .doc-container,
    body.portal-customer-page .section-card {
        border-radius: 7px !important;
    }

    body.portal-customer-page .card-body,
    body.portal-customer-page .modal-body {
        padding: 15px;
    }

    body.portal-customer-page .dataTables_wrapper .row:first-child,
    body.portal-customer-page .dataTables_wrapper .row:last-child {
        padding: 11px 10px;
    }

    body.portal-customer-page .dataTables_wrapper .dataTables_length,
    body.portal-customer-page .dataTables_wrapper .dataTables_filter,
    body.portal-customer-page .dataTables_wrapper .dataTables_info,
    body.portal-customer-page .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: left !important;
    }

    body.portal-customer-page .dataTables_wrapper .dataTables_filter input {
        width: calc(100% - 68px);
        min-width: 0;
    }

    body.portal-customer-page .dataTables_wrapper .dataTables_paginate {
        display: flex;
        margin-top: 8px !important;
        justify-content: flex-start;
        overflow-x: auto;
    }

    body.portal-customer-page .table thead th,
    body.portal-customer-page table.dataTable thead th,
    body.portal-customer-page .table tbody td,
    body.portal-customer-page table.dataTable tbody td {
        padding: 11px 12px !important;
    }

    body.portal-customer-page #customer-vehicle-list-datatable th:nth-child(3),
    body.portal-customer-page #customer-vehicle-list-datatable td:nth-child(3),
    body.portal-customer-page #customer-vehicle-list-datatable th:nth-child(4),
    body.portal-customer-page #customer-vehicle-list-datatable td:nth-child(4) {
        display: none;
    }

    body.portal-customer-page #customer-vehicle-list-datatable .btn-sq span,
    body.portal-customer-page #customer-vehicle-list-datatable .file-revision-request-button span,
    body.portal-customer-page #customer-vehicle-list-datatable .file-revision-open-button span {
        display: none;
    }

    body.portal-customer-page .form-group.row {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    body.portal-customer-page .portal-profile-card .form-group.row > label,
    body.portal-customer-page .portal-profile-card .form-group.row > [class*="col-"],
    body.portal-customer-page .form-group.row > label,
    body.portal-customer-page .form-group.row > [class*="col-"] {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    body.portal-customer-page .form-group.row > label {
        margin-bottom: 6px;
    }

    body.portal-customer-page #file-upload-step .steps ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.portal-customer-page #credit {
        top: 65px !important;
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-mobile-nav {
        position: fixed;
        z-index: 1042;
        right: 9px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        left: 9px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 60px;
        padding: 5px;
        border: 1px solid rgba(211, 218, 230, .95);
        border-radius: 16px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 14px 44px rgba(17, 27, 44, .2);
        backdrop-filter: blur(15px);
    }

    .portal-mobile-nav a {
        display: flex;
        min-width: 0;
        padding: 6px 2px 5px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        border-radius: 11px;
        color: #778296;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
    }

    .portal-mobile-nav a i {
        font-size: 18px;
    }

    .portal-mobile-nav a.active {
        color: var(--portal-accent);
        background: var(--portal-accent-soft);
    }

    .portal-mobile-nav a.portal-mobile-primary {
        margin: -15px 2px 2px;
        border-radius: 15px;
        color: #fff;
        background: var(--portal-accent);
        box-shadow: none;
    }

    .portal-mobile-nav a.portal-mobile-primary i {
        font-size: 20px;
    }

    body.portal-customer-page .footer-wrapper {
        padding-bottom: 16px;
    }
}

@media (max-width: 479px) {
    .portal-page-context-copy strong {
        max-width: 23vw;
    }

    body.portal-customer-page .navbar .currency-dropdown {
        display: none;
    }

    body.portal-customer-page .navbar .language-dropdown > .nav-link {
        min-width: 34px;
        padding: 0 5px;
    }

    body.portal-customer-page .remap-page-header p,
    body.portal-customer-page .portal-page-header p {
        display: none;
    }

    body.portal-customer-page .btn {
        white-space: normal;
    }

    body.portal-customer-page #customer-vehicle-list-datatable th:first-child,
    body.portal-customer-page #customer-vehicle-list-datatable td:first-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.portal-customer-page *,
    body.portal-customer-page *::before,
    body.portal-customer-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
