@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@600;700&display=swap");

:root {
    --navy: #0d172b;
    --navy-2: #111e35;
    --navy-3: #172741;
    --page: #e9eef5;
    --panel: #ffffff;
    --line: #aeb8c6;
    --line-soft: #d9e0e9;
    --text: #071122;
    --muted: #61728c;
    --blue: #2f66ea;
    --blue-dark: #1e4fc7;
    --orange: #ff7415;
    --orange-dark: #e65e00;
    --red: #ff6d74;
    --green: #23b875;
    --footer: #020817;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--page);
}

button,
input {
    font: inherit;
}

.partner-body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.partner-header {
    min-height: 108px;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(420px, 1fr);
    align-items: stretch;
    color: #fff;
    background: var(--navy);
    border-bottom: 1px solid #20304a;
}

.partner-brand-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 25px;
}

.partner-brand {
    color: #fff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.partner-subtitle {
    margin-top: 6px;
    color: #a9b8cf;
    font-size: 12px;
}

.partner-label {
    display: block;
    color: #9eb0c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.partner-balance {
    min-width: 164px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    border-right: 1px solid #34445d;
    border-left: 1px solid #34445d;
    background: var(--navy-2);
    text-align: center;
}

.partner-balance strong {
    margin-top: 7px;
    font-size: 23px;
    line-height: 1;
}

.partner-balance small {
    margin-top: 10px;
    font-weight: 800;
}

.balance-negative {
    color: var(--red);
}

.balance-positive {
    color: #6be2a7;
}

.partner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    padding: 12px 22px;
}

.header-action {
    min-width: 126px;
    padding: 13px 18px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: #121f35;
    font-size: 13px;
    font-weight: 800;
}

.partner-client {
    min-width: 174px;
    padding: 10px 16px;
    border: 1px solid #34445d;
    text-align: right;
}

.partner-client strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout {
    padding: 11px 13px;
    border: 1px solid #34445d;
    color: #dbe4f2;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.header-logout:hover {
    border-color: var(--orange);
    color: #fff;
}

.partner-workspace {
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 8px;
    padding: 9px;
}

.catalog-panel,
.cart-panel {
    border: 1px solid #8995a5;
    background: var(--panel);
}

.catalog-panel {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(360px, 1fr) auto;
    padding: 14px 16px 10px;
}

.panel-heading h1,
.cart-heading h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.01em;
}

.panel-heading p,
.cart-help {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.search-box {
    height: 49px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid #8491a2;
    background: #eef3f9;
}

.search-icon {
    margin-left: 13px;
    color: #516f9b;
    font-size: 27px;
}

.search-box input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    color: #0b1525;
    background: transparent;
    font-size: 15px;
}

.search-box input::placeholder {
    color: #8694a8;
}

.results-table-wrap {
    min-height: 0;
    margin-top: 8px;
    overflow: auto;
    border: 1px solid #8995a5;
    background: #fff;
}

.results-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.results-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 42px;
    padding: 10px 12px;
    color: #1f2e43;
    background: #eef2f6;
    text-align: left;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #dce3eb;
    white-space: nowrap;
}

.results-table td {
    padding: 11px 12px;
    color: #243447;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    border-top: 1px solid #e8edf2;
    vertical-align: middle;
}

.results-table th:nth-child(1) { width: 15%; }
.results-table th:nth-child(2) { width: 19%; }
.results-table th:nth-child(3) { width: 23%; }
.results-table th:nth-child(4) { width: 11%; }
.results-table th:nth-child(5) { width: 8%; }
.results-table th:nth-child(6) { width: 11%; }
.results-table th:nth-child(7) { width: 8%; }
.results-table th:nth-child(8) { width: 9%; }

.empty-row td {
    height: 390px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #63728a;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 14px;
    color: #8093ad;
    font-size: 35px;
}

.empty-state strong {
    color: #39485d;
}

.empty-state small {
    margin-top: 6px;
}

.selected-bar {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 7px 12px;
    border: 1px solid #c5cfdb;
    color: #657791;
    background: #f6f9fd;
    font-size: 12px;
}

.cart-panel {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 9px;
}

.cart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-counter {
    padding: 7px 12px;
    color: #1f5be0;
    background: #dce7ff;
    font-size: 12px;
    font-weight: 900;
}

.cart-list {
    min-height: 200px;
    flex: 1;
    margin-top: 10px;
    padding: 7px;
    border: 1px solid #d3dce7;
    background: #f7f9fc;
}

.cart-empty {
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e7ee;
    color: #9aa6b6;
    font-size: 12px;
}

.cart-total {
    margin-top: 8px;
    padding: 13px 16px;
    color: #fff;
    background: var(--navy);
}

.cart-total span {
    display: block;
    color: #b7c6dc;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-total strong {
    display: block;
    margin-top: 9px;
    font-size: 21px;
}

.cart-button {
    width: 100%;
    min-height: 39px;
    margin-top: 5px;
    border: 0;
    font-size: 12px;
    font-weight: 900;
}

.cart-button:disabled {
    opacity: 1;
    cursor: default;
}

.cart-button-blue {
    color: #fff;
    background: var(--blue);
}

.cart-button-orange {
    color: #fff;
    background: var(--orange);
}

.cart-button-dark {
    color: #fff;
    background: #4d5f77;
}

.cart-button-light {
    color: #0d172b;
    background: #dfe7f2;
}

.partner-footer {
    min-height: 64px;
    padding: 10px 20px;
    color: #fff;
    background: var(--footer);
    font-size: 12px;
    line-height: 1.85;
}

.partner-footer strong {
    display: inline-block;
    min-width: 230px;
    margin-right: 2px;
}

.footer-oem {
    color: #ff8a25;
}

.footer-aftermarket {
    color: #4da6ff;
}

/* Login page retained, but brought closer to the Partner visual language. */
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #07101f;
}

.auth-shell {
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 0.86fr;
    overflow: hidden;
    border: 1px solid #26354d;
    border-radius: 22px;
    background: #0d172b;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.brand-panel,
.login-panel {
    padding: clamp(38px, 5vw, 70px);
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: #0b203a;
}

.brand-mark,
.mobile-brand {
    font-size: 38px;
    font-weight: 900;
}

.brand-mark span,
.mobile-brand span {
    color: var(--orange);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-panel h1 {
    max-width: 620px;
    margin: 28px 0 0;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
}

.brand-copy {
    max-width: 520px;
    color: #9eb0c9;
    font-size: 17px;
    line-height: 1.6;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #23b875;
    box-shadow: 0 0 0 6px rgba(35, 184, 117, 0.14);
}

.login-panel {
    display: grid;
    place-items: center;
    color: #0b1525;
    background: #fff;
}

.login-card {
    width: min(410px, 100%);
}

.mobile-brand {
    display: none;
    margin-bottom: 30px;
}

.login-card h2 {
    margin: 0;
    font-size: 38px;
}

.muted {
    margin: 10px 0 28px;
    color: #6a7890;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #f1b8b8;
    color: #a82a2a;
    background: #fff1f1;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 900;
}

.login-form input {
    height: 52px;
    padding: 0 14px;
    border: 1px solid #c5cfdb;
    outline: 0;
    background: #f8fafc;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 102, 234, 0.13);
}

.login-form button {
    height: 52px;
    margin-top: 16px;
    border: 0;
    color: #fff;
    background: var(--orange);
    font-weight: 900;
    cursor: pointer;
}

.login-form button:hover {
    background: var(--orange-dark);
}

.support-note {
    color: #7b879a;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .partner-header {
        grid-template-columns: 1fr auto;
    }

    .partner-balance {
        grid-row: 1;
        grid-column: 2;
    }

    .partner-actions {
        grid-column: 1 / -1;
        border-top: 1px solid #2b3a52;
    }

    .partner-workspace {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        min-height: 430px;
    }
}

@media (max-width: 720px) {
    .partner-brand-block {
        padding: 15px;
    }

    .partner-brand {
        font-size: 21px;
    }

    .partner-balance {
        min-width: 145px;
    }

    .partner-actions {
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
    }

    .partner-client {
        min-width: 0;
        flex: 1;
    }

    .header-action {
        display: none;
    }

    .partner-workspace {
        padding: 6px;
    }

    .catalog-panel,
    .cart-panel {
        padding: 12px;
    }

    .panel-heading h1 {
        font-size: 18px;
    }

    .results-table-wrap {
        min-height: 420px;
    }

    .partner-footer strong {
        display: block;
        min-width: 0;
    }

    .auth-body {
        padding: 0;
    }

    .auth-shell {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
    }

    .brand-panel {
        display: none;
    }

    .mobile-brand {
        display: block;
    }
}


.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.result-counter {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #1e55c9;
    background: #dce7ff;
    font-size: 12px;
    font-weight: 900;
}

.search-box {
    padding-right: 5px;
}

.search-box input {
    padding: 0;
}

.search-submit {
    height: 39px;
    min-width: 84px;
    border: 0;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.search-submit:hover {
    background: var(--blue-dark);
}

.search-clear {
    width: 30px;
    color: #657791;
    text-align: center;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
}

.search-alert {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e5a9a9;
    color: #9b2727;
    background: #fff1f1;
    font-size: 12px;
    font-weight: 800;
}

.result-row {
    cursor: default;
}

..result-row:nth-child(even) {
    background: #fbfcfd;
}

.result-row:hover {
    background: #f4f7fa;
}

.article-number {
    color: #1f2e43;
    font-weight: 700;
}

.price-retail {
    color: #3f4f61;
    font-weight: 500;
    white-space: nowrap;
}

.discount-cell {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.price-client {
    color: #0b67d0;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .search-submit {
        min-width: 70px;
    }
}


.results-form {
    min-height: 0;
    display: contents;
}

.results-table {
    min-width: 1060px;
}

.results-table th.select-column {
    width: 38px;
    padding: 0;
}

.results-table th:nth-child(2) { width: 14%; }
.results-table th:nth-child(3) { width: 18%; }
.results-table th:nth-child(4) { width: 22%; }
.results-table th:nth-child(5) { width: 11%; }
.results-table th:nth-child(6) { width: 8%; }
.results-table th:nth-child(7) { width: 11%; }
.results-table th:nth-child(8) { width: 8%; }
.results-table th:nth-child(9) { width: 9%; }

.select-cell {
    text-align: center;
}

.select-cell input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.result-row:has(input:checked) {
    background: #dceaff;
    outline: 1px solid #7da5f5;
    outline-offset: -1px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #4f6078;
    font-size: 12px;
    font-weight: 800;
}

.quantity-control input {
    width: 74px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid #aeb9c8;
    background: #fff;
    text-align: center;
    font-weight: 900;
}

.cart-message {
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid #9acbb4;
    color: #176d48;
    background: #effaf4;
    font-size: 12px;
    font-weight: 800;
}

.cart-message-error {
    border-color: #e4aaaa;
    color: #9a2929;
    background: #fff1f1;
}

.cart-list {
    overflow-y: auto;
}

.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 9px;
    border-bottom: 1px solid #dfe5ed;
    background: #fff;
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line-main {
    min-width: 0;
}

.cart-line-main strong,
.cart-line-main span,
.cart-line-main small {
    display: block;
}

.cart-line-main strong {
    color: #0c1d37;
    font-size: 12px;
}

.cart-line-main span {
    margin-top: 4px;
    overflow: hidden;
    color: #56677f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-line-main small {
    margin-top: 6px;
    color: #718198;
    font-size: 10px;
}

.cart-line-side {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.cart-line-side > strong {
    color: #0d4fd0;
    font-size: 12px;
    white-space: nowrap;
}

.cart-remove {
    width: 24px;
    height: 24px;
    border: 1px solid #d5dde8;
    color: #8e2630;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
}

.cart-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}


.cart-button-orange:not(:disabled) {
    cursor: pointer;
}

.cart-button-orange:not(:disabled):hover {
    background: var(--orange-dark);
}


/* Keep notifications compact. */
.catalog-panel { display: flex; flex-direction: column; }
.results-table-wrap { flex: 1 1 auto; }
.cart-message, .search-alert { flex: 0 0 auto; }

/* My Orders */
.orders-body { display:block; min-height:100vh; }
.header-action-active { box-shadow: inset 0 -3px 0 var(--orange); }
.orders-shell { width:min(1500px,calc(100% - 28px)); margin:0 auto; padding:24px 0 40px; }
.orders-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:20px 22px; border:1px solid #aeb8c6; background:#fff; }
.back-link { color:#2559c7; text-decoration:none; font-size:12px; font-weight:900; }
.orders-toolbar h1 { margin:9px 0 0; font-size:28px; }
.orders-toolbar p { margin:7px 0 0; color:#63738b; font-size:13px; }
.orders-toolbar-actions { display:flex; align-items:center; gap:10px; }
.orders-count { padding:10px 13px; color:#164fc9; background:#dce7ff; font-size:12px; font-weight:900; }
.refresh-orders { padding:10px 14px; color:#fff; background:#2f66ea; text-decoration:none; font-size:12px; font-weight:900; }
.orders-alert { margin-top:10px; padding:13px 15px; border:1px solid #e4aaaa; color:#9a2929; background:#fff1f1; font-size:13px; font-weight:800; }
.orders-list { display:grid; gap:10px; margin-top:10px; }
.order-card { border:1px solid #aeb8c6; background:#fff; }
.order-card[open] { border-color:#7f91aa; }
.order-summary { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 18px; cursor:pointer; list-style:none; background:#fff; }
.order-summary::-webkit-details-marker { display:none; }
.order-card[open] .order-summary { border-bottom:1px solid #c7d0dc; background:#f6f9fd; }
.order-main { min-width:0; display:flex; align-items:center; gap:14px; }
.order-number,.order-date { display:block; }
.order-number { color:#0c1d37; font-size:16px; }
.order-date { margin-top:5px; color:#708098; font-size:11px; }
.status-badge,.item-status { display:inline-block; border:1px solid transparent; font-weight:900; white-space:nowrap; }
.status-badge { min-width:110px; padding:8px 10px; text-align:center; font-size:11px; text-transform:uppercase; }
.item-status { padding:5px 7px; font-size:10px; }
.status-new { color:#165fa2; border-color:#aacce7; background:#eaf6ff; }
.status-confirmed,.status-ordered { color:#136b49; border-color:#a7d8c3; background:#ecfaf4; }
.status-processing { color:#865108; border-color:#e5c58f; background:#fff7e8; }
.status-shipped { color:#284d9c; border-color:#b5c7ec; background:#eef3ff; }
.status-completed { color:#26713c; border-color:#a9d2b4; background:#eff9f2; }
.status-unavailable,.status-cancelled { color:#922f36; border-color:#dfb1b5; background:#fff0f1; }
.status-replaced { color:#764a13; border-color:#d8bd91; background:#fff7ea; }
.status-unknown { color:#526177; border-color:#c9d0da; background:#f3f5f8; }
.order-metrics { display:flex; align-items:center; gap:28px; }
.order-metrics>div { min-width:110px; text-align:right; }
.order-metrics span,.order-metrics strong { display:block; }
.order-metrics>div span { color:#718198; font-size:10px; font-weight:800; text-transform:uppercase; }
.order-metrics>div strong { margin-top:5px; color:#0d1c34; font-size:15px; }
.order-chevron { color:#52647d; font-size:24px; transition:transform .15s; }
.order-card[open] .order-chevron { transform:rotate(180deg); }
.order-content { padding:12px; }
.order-items-wrap { overflow-x:auto; border:1px solid #cbd4df; }
.order-items-table { width:100%; min-width:1250px; border-collapse:collapse; font-size:11px; }
.order-items-table th { padding:10px 9px; color:#101b2d; background:#e8eef6; text-align:left; white-space:nowrap; }
.order-items-table td { padding:9px; border-top:1px solid #e4e9ef; vertical-align:top; }
.order-items-table tbody tr:nth-child(even) { background:#f8fafc; }
.order-article { color:#0c2f69; font-weight:900; white-space:nowrap; }
.order-price { color:#0e4fc9; font-weight:900; white-space:nowrap; }
.order-info { min-width:220px; color:#53657d; }
.no-order-items { padding:24px!important; color:#78869a; text-align:center; }
.order-footer { display:flex; justify-content:space-between; gap:20px; margin-top:8px; padding:9px 11px; color:#6d7c91; background:#f2f6fb; font-size:11px; }
.order-footer strong { color:#0c2f69; font-size:14px; }
.orders-empty { margin-top:10px; padding:70px 20px; border:1px solid #aeb8c6; background:#fff; text-align:center; }
.orders-empty strong { font-size:20px; }
.orders-empty p { color:#6e7d92; }
.orders-empty a { display:inline-block; margin-top:10px; padding:11px 16px; color:#fff; background:#2f66ea; text-decoration:none; font-size:12px; font-weight:900; }
.orders-legend { margin-top:10px; padding:14px 18px; border:1px solid #aeb8c6; background:#fff; }
.orders-legend h2 { margin:0 0 12px; font-size:15px; }
.legend-grid { display:flex; flex-wrap:wrap; gap:18px; color:#526177; font-size:11px; }
.legend-grid span { display:flex; align-items:center; gap:7px; }
.legend-dot { width:9px; height:9px; border-radius:50%; }
.legend-new{background:#4b98d2}.legend-confirmed{background:#34a576}.legend-processing{background:#d69a36}.legend-completed{background:#45a55e}.legend-cancelled{background:#c75a63}
@media(max-width:760px){.orders-shell{width:min(100% - 12px,1500px);padding-top:8px}.orders-toolbar,.order-summary{align-items:flex-start;flex-direction:column}.orders-toolbar-actions,.order-metrics{width:100%;justify-content:space-between}.order-metrics>div{min-width:0;text-align:left}.status-badge{min-width:98px}}


.live-refresh-state {
    color: #697b93;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .orders-toolbar-actions {
        flex-wrap: wrap;
    }

    .live-refresh-state {
        width: 100%;
    }
}


.partner-balance-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.partner-balance-link:hover,
.balance-link-active {
    background: #162641;
    box-shadow: inset 0 -3px 0 var(--orange);
}

.balance-page-body {
    display: block;
    min-height: 100vh;
}

.balance-shell {
    width: min(1500px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.balance-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border: 1px solid #aeb8c6;
    background: #fff;
}

.balance-toolbar h1 {
    margin: 9px 0 0;
    font-size: 28px;
}

.balance-toolbar p {
    margin: 7px 0 0;
    color: #63738b;
    font-size: 13px;
}

.balance-actions {
    display: flex;
    gap: 8px;
}

.balance-refresh,
.balance-export {
    padding: 11px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.balance-refresh {
    background: #4d5f77;
}

.balance-export {
    background: var(--orange);
}

.balance-refresh:hover {
    background: #3d4d63;
}

.balance-export:hover {
    background: var(--orange-dark);
}

.balance-kpis {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.balance-kpi {
    min-height: 116px;
    padding: 19px 20px;
    border: 1px solid #aeb8c6;
    background: #fff;
}

.balance-kpi-main {
    color: #fff;
    border-color: #172741;
    background: var(--navy);
}

.balance-kpi span,
.balance-kpi strong,
.balance-kpi small {
    display: block;
}

.balance-kpi span {
    color: #718198;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.balance-kpi-main span,
.balance-kpi-main small {
    color: #acbad0;
}

.balance-kpi strong {
    margin-top: 13px;
    font-size: 24px;
}

.balance-kpi small {
    margin-top: 8px;
    color: #78879c;
    font-size: 11px;
}

.balance-debit {
    color: #c94a55;
}

.balance-credit {
    color: #148355;
}

.balance-table-card {
    margin-top: 10px;
    border: 1px solid #aeb8c6;
    background: #fff;
}

.balance-table-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid #cbd4df;
    background: #f6f9fd;
}

.balance-table-heading h2 {
    margin: 0;
    font-size: 18px;
}

.balance-table-heading p,
.balance-table-heading > span {
    margin: 5px 0 0;
    color: #6d7c91;
    font-size: 11px;
}

.balance-table-wrap {
    overflow-x: auto;
}

.balance-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
    font-size: 11px;
}

.balance-table th {
    padding: 11px 10px;
    color: #101b2d;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.balance-table td {
    padding: 10px;
    border-top: 1px solid #e4e9ef;
    vertical-align: top;
}

.balance-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.balance-table tbody tr:hover {
    background: #edf4ff;
}

.balance-date,
.balance-document {
    white-space: nowrap;
}

.balance-document {
    color: #0c2f69;
    font-weight: 900;
}

.balance-debit-cell {
    color: #b53a45;
    font-weight: 900;
    white-space: nowrap;
}

.balance-credit-cell {
    color: #148355;
    font-weight: 900;
    white-space: nowrap;
}

.balance-running {
    font-weight: 900;
    white-space: nowrap;
}

.balance-status {
    display: inline-block;
    min-width: 82px;
    padding: 5px 7px;
    border: 1px solid #cbd4df;
    background: #f3f5f8;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.balance-empty {
    padding: 55px !important;
    color: #78869a;
    text-align: center;
}

@media (max-width: 900px) {
    .balance-shell {
        width: min(100% - 12px, 1500px);
        padding-top: 8px;
    }

    .balance-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .balance-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .balance-actions {
        width: 100%;
    }

    .balance-actions a {
        flex: 1;
        text-align: center;
    }

    .balance-kpis {
        grid-template-columns: 1fr;
    }
}


/* Bulk search v9 */
.bulk-page-body { display: block; min-height: 100vh; }
.bulk-shell { width: min(1580px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 42px; }
.bulk-toolbar, .bulk-input-card, .bulk-results-card, .bulk-empty-results {
    border: 1px solid var(--line); background: #fff;
}
.bulk-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px 20px; }
.bulk-toolbar h1 { margin: 8px 0 0; font-size: 27px; }
.bulk-toolbar p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.bulk-cart-summary { min-width: 230px; padding: 13px 15px; color: #fff; background: var(--navy); text-decoration: none; }
.bulk-cart-summary span, .bulk-cart-summary strong { display: block; }
.bulk-cart-summary span { color: #9fb0c8; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.bulk-cart-summary strong { margin-top: 6px; font-size: 14px; }
.bulk-input-card { margin-top: 10px; padding: 17px 18px; }
.bulk-input-card label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.bulk-input-card label span { color: #73839a; font-size: 10px; }
.bulk-input-card textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px 14px; border: 1px solid #9fabbc; background: #f8fbff; font-family: Consolas, monospace; font-size: 13px; line-height: 1.55; }
.bulk-input-card textarea:focus { border-color: var(--blue); outline: 2px solid rgba(47,102,234,.15); }
.bulk-input-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.bulk-input-actions button { min-height: 40px; padding: 0 16px; border: 0; cursor: pointer; font-size: 12px; font-weight: 900; }
.bulk-primary { color: #fff; background: var(--blue); }
.bulk-secondary { color: #263750; background: #e6ecf4; }
.bulk-alert { margin-top: 10px; }
.bulk-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 10px; }
.bulk-stats article { padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.bulk-stats span, .bulk-stats strong { display: block; }
.bulk-stats span { color: #6e7e94; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.bulk-stats strong { margin-top: 7px; color: #0b285d; font-size: 23px; }
.bulk-warning { margin-top: 10px; padding: 11px 13px; border: 1px solid #e2bf7a; color: #82540c; background: #fff8e8; font-size: 12px; font-weight: 800; }
.bulk-problems { display: grid; gap: 8px; margin-top: 10px; }
.bulk-problems details { border: 1px solid var(--line); background: #fff; }
.bulk-problems summary { padding: 11px 13px; cursor: pointer; font-size: 12px; font-weight: 900; }
.bulk-chip-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 13px 13px; }
.bulk-chip-list span { padding: 5px 8px; border: 1px solid #c4cfdd; background: #f2f6fb; font-family: Consolas, monospace; font-size: 11px; }
.bulk-chip-error span { border-color: #e2b3b7; color: #96343d; background: #fff1f2; }
.bulk-results-card { margin-top: 10px; }
.bulk-results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid #cbd4df; background: #f6f9fd; }
.bulk-results-heading h2 { margin: 0; font-size: 18px; }
.bulk-results-heading p { margin: 5px 0 0; color: #687991; font-size: 11px; }
.bulk-selection-actions { display: flex; gap: 7px; }
.bulk-selection-actions button { padding: 8px 11px; border: 1px solid #9eadc0; background: #fff; cursor: pointer; font-size: 10px; font-weight: 900; }
.bulk-table-wrap { max-height: 600px; overflow: auto; }
.bulk-table { width: 100%; min-width: 1520px; border-collapse: collapse; font-size: 11px; }
.bulk-table th { position: sticky; top: 0; z-index: 2; padding: 10px 8px; background: #e6edf6; text-align: left; white-space: nowrap; }
.bulk-table td { padding: 8px; border-top: 1px solid #e1e7ee; vertical-align: middle; }
.bulk-table tbody tr:nth-child(even) { background: #fafbfd; }
.bulk-table tbody tr:hover, .bulk-row-selected { background: #e7f0ff !important; }
.bulk-check-cell { width: 38px; text-align: center; }
.bulk-check-cell input { width: 16px; height: 16px; accent-color: var(--blue); }
.bulk-source-query { color: #704000; background: rgba(255,116,21,.07); font-family: Consolas, monospace; font-weight: 900; white-space: nowrap; }
.bulk-qty { width: 66px; height: 29px; border: 1px solid #aeb9c8; text-align: center; font-weight: 900; }
.bulk-add-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; border-top: 1px solid #bac5d3; background: #f0f5fb; }
.bulk-add-bar span { color: #52637a; font-size: 12px; }
.bulk-add-bar strong { color: #0f4fc8; font-size: 15px; }
.bulk-add-bar button { min-height: 41px; padding: 0 17px; border: 0; color: #fff; background: var(--orange); cursor: pointer; font-size: 12px; font-weight: 900; }
.bulk-add-bar button:disabled { opacity: .45; cursor: not-allowed; }
.bulk-empty-results { margin-top: 10px; padding: 65px 20px; text-align: center; }
.bulk-empty-results p { color: #75849a; font-size: 12px; }
@media (max-width: 900px) {
    .bulk-shell { width: min(100% - 12px,1580px); padding-top: 8px; }
    .bulk-toolbar, .bulk-results-heading { align-items: flex-start; flex-direction: column; }
    .bulk-cart-summary { width: 100%; }
    .bulk-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
    .bulk-stats { grid-template-columns: 1fr; }
    .bulk-input-actions, .bulk-selection-actions, .bulk-add-bar { align-items: stretch; flex-direction: column; }
}


/* Bulk Search navigation placement v9.1 */
.panel-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.bulk-search-entry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #8da4c5;
    color: #163d82;
    background: #edf4ff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.bulk-search-entry:hover {
    border-color: #2f66ea;
    color: #fff;
    background: #2f66ea;
}

.bulk-search-entry-icon {
    font-size: 17px;
    line-height: 1;
}

.bulk-back-link {
    display: inline-block;
    margin-bottom: 2px;
}

@media (max-width: 760px) {
    .panel-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .bulk-search-entry {
        min-height: 36px;
    }
}


/* Settings v10 */
.partner-client-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.partner-client-link small {
    display: block;
    margin-top: 3px;
    color: #8ea0b9;
    font-size: 9px;
    font-weight: 800;
}

.partner-client-link:hover,
.settings-link-active {
    background: #162641;
    box-shadow: inset 0 -3px 0 var(--orange);
}

.settings-body {
    display: block;
    min-height: 100vh;
}

.settings-shell {
    width: min(1320px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0 44px;
}

.settings-toolbar {
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.settings-toolbar h1 {
    margin: 8px 0 0;
    font-size: 27px;
}

.settings-toolbar p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.settings-saved {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #75b998;
    color: #126341;
    background: #ecfbf4;
    font-size: 12px;
    font-weight: 900;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.settings-card {
    border: 1px solid var(--line);
    background: #fff;
}

.settings-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    border-bottom: 1px solid #d1d9e4;
    background: #f6f9fd;
}

.settings-card-heading h2 {
    margin: 0;
    font-size: 17px;
}

.settings-card-heading p {
    margin: 5px 0 0;
    color: #6f7e92;
    font-size: 11px;
}

.settings-readonly {
    padding: 5px 8px;
    border: 1px solid #bcc7d5;
    color: #5d6d83;
    background: #fff;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.profile-data-grid > div {
    min-height: 88px;
    padding: 16px 17px;
    border-right: 1px solid #e0e6ed;
    border-bottom: 1px solid #e0e6ed;
}

.profile-data-grid > div:nth-child(even) {
    border-right: 0;
}

.profile-data-grid span,
.profile-data-grid strong {
    display: block;
}

.profile-data-grid span {
    color: #75849a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-data-grid strong {
    margin-top: 9px;
    color: #172741;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.profile-balance-item {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

.profile-balance-item strong {
    font-size: 22px;
}

.settings-form {
    padding: 16px 17px 18px;
}

.settings-field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
}

.settings-field > span,
.settings-fieldset legend {
    color: #32445e;
    font-size: 11px;
    font-weight: 900;
}

.settings-field select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.settings-fieldset {
    display: grid;
    gap: 8px;
    margin: 0 0 15px;
    padding: 0;
    border: 0;
}

.settings-fieldset legend {
    margin-bottom: 8px;
}

.settings-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #c4ceda;
    background: #fafcff;
    cursor: pointer;
}

.settings-radio:has(input:checked) {
    border-color: #4f7fdc;
    background: #edf4ff;
}

.settings-radio input {
    margin-top: 3px;
    accent-color: var(--blue);
}

.settings-radio span,
.settings-radio strong,
.settings-radio small {
    display: block;
}

.settings-radio strong {
    font-size: 12px;
}

.settings-radio small {
    margin-top: 3px;
    color: #718097;
    font-size: 10px;
}

.settings-refresh-box {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #c4ceda;
    background: #fafcff;
}

.settings-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-switch-row span,
.settings-switch-row strong,
.settings-switch-row small {
    display: block;
}

.settings-switch-row strong {
    font-size: 12px;
}

.settings-switch-row small {
    max-width: 430px;
    margin-top: 4px;
    color: #718097;
    font-size: 10px;
    line-height: 1.4;
}

.settings-switch-row input {
    width: 21px;
    height: 21px;
    accent-color: var(--blue);
}

.settings-refresh-select {
    margin: 12px 0 0;
}

.settings-refresh-select select:disabled {
    color: #8d99aa;
    background: #edf1f5;
}

.settings-save {
    width: 100%;
    min-height: 43px;
    border: 0;
    color: #fff;
    background: var(--blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.settings-save:hover {
    background: var(--blue-dark);
}

.settings-security-card {
    grid-column: 1 / -1;
}

.security-status {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.security-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #bdc8d6;
    background: #f0f4f9;
    font-size: 20px;
}

.security-status strong {
    font-size: 13px;
}

.security-status p {
    max-width: 780px;
    margin: 5px 0 0;
    color: #68788f;
    font-size: 11px;
    line-height: 1.5;
}

.security-status button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #c4ccd7;
    color: #818c9b;
    background: #eef1f5;
    font-size: 10px;
    font-weight: 900;
}

/* User-selected table density. Existing layout is compact by default. */
.density-standard .results-table td,
.density-standard .bulk-table td,
.density-standard .order-items-table td,
.density-standard .balance-table td {
    padding-top: 13px;
    padding-bottom: 13px;
}

.density-standard .cart-line {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 800px) {
    .settings-shell {
        width: min(100% - 12px, 1320px);
        padding-top: 8px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-security-card {
        grid-column: auto;
    }

    .security-status {
        grid-template-columns: auto 1fr;
    }

    .security-status button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .profile-data-grid {
        grid-template-columns: 1fr;
    }

    .profile-data-grid > div {
        border-right: 0;
    }

    .profile-balance-item {
        grid-column: auto;
    }

    .settings-switch-row {
        align-items: flex-start;
    }
}


/* ================================================================
   OEMBG ADMIN CONTROL CENTER v11
   ================================================================ */

.admin-login-body {
    min-height: 100vh;
    margin: 0;
    color: #12213a;
    background:
        radial-gradient(circle at 15% 18%, rgba(42, 112, 255, .16), transparent 31%),
        linear-gradient(135deg, #071326 0%, #0d213f 54%, #0b172a 100%);
}

.admin-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
    width: min(1180px, calc(100% - 42px));
    min-height: 690px;
    margin: 42px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .38);
}

.admin-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 690px;
    padding: 42px 48px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(6, 18, 38, .92), rgba(12, 41, 78, .82)),
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 34px,
            rgba(255, 255, 255, .025) 35px,
            rgba(255, 255, 255, .025) 36px
        );
}

.admin-login-brand::after {
    position: absolute;
    right: -110px;
    bottom: -145px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.admin-login-logo {
    color: #fff;
    text-decoration: none;
    font-size: 31px;
    font-weight: 950;
    letter-spacing: -1.4px;
}

.admin-login-brand > span {
    margin-top: 5px;
    color: #6fa3f7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.4px;
}

.admin-login-message {
    max-width: 570px;
    margin: auto 0;
}

.admin-login-message small {
    color: #ff7b1a;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.admin-login-message h1 {
    max-width: 520px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 5vw, 69px);
    line-height: .96;
    letter-spacing: -3px;
}

.admin-login-message p {
    max-width: 510px;
    margin: 0;
    color: #a9bad3;
    font-size: 14px;
    line-height: 1.75;
}

.admin-login-security {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .035);
}

.admin-login-security > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .045);
}

.admin-login-security strong,
.admin-login-security small {
    display: block;
}

.admin-login-security strong {
    font-size: 12px;
}

.admin-login-security small {
    max-width: 440px;
    margin-top: 4px;
    color: #879bb8;
    font-size: 10px;
    line-height: 1.45;
}

.admin-login-panel {
    display: grid;
    place-items: center;
    padding: 42px;
    background: #f5f8fc;
}

.admin-login-panel-inner {
    width: min(100%, 390px);
}

.admin-login-heading > span {
    color: #1e60d3;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 1.9px;
}

.admin-login-heading h2 {
    margin: 9px 0 0;
    font-size: 31px;
    letter-spacing: -1px;
}

.admin-login-heading p {
    margin: 8px 0 0;
    color: #718098;
    font-size: 12px;
}

.admin-login-error {
    margin-top: 19px;
    padding: 12px 13px;
    border: 1px solid #df9ca2;
    color: #9f2f39;
    background: #fff0f1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}

.admin-login-form {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.admin-login-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #33455f;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-login-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #aebbc9;
    color: #12213a;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.admin-login-form input:focus {
    border-color: #2f6ed7;
    outline: 3px solid rgba(47, 110, 215, .13);
}

.admin-password-field {
    position: relative;
}

.admin-password-field input {
    padding-right: 75px;
}

.admin-password-field button {
    position: absolute;
    top: 50%;
    right: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    color: #275db5;
    background: #edf4ff;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 900;
}

.admin-login-submit {
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, #1c5ccb, #317cf1);
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .3px;
}

.admin-login-submit:hover:not(:disabled) {
    filter: brightness(1.07);
}

.admin-login-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.admin-login-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #d7dee8;
    font-size: 9px;
}

.admin-login-footer a {
    color: #255fbd;
    font-weight: 900;
    text-decoration: none;
}

.admin-login-footer span {
    color: #8491a3;
}

/* Admin application shell */
.admin-body {
    min-height: 100vh;
    margin: 0;
    color: #14243e;
    background: #eef2f7;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: 244px;
    flex-direction: column;
    color: #fff;
    background: #08182e;
    box-shadow: 7px 0 24px rgba(10, 25, 49, .13);
}

.admin-sidebar-brand {
    padding: 25px 22px 21px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-sidebar-brand a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -1.1px;
}

.admin-sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: #6298ef;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.9px;
}

.admin-nav {
    display: grid;
    gap: 4px;
    padding: 18px 12px;
}

.admin-nav-link {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    color: #9bacbf;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
}

.admin-nav-link > span:first-child {
    color: #6f88a8;
    font-size: 16px;
}

.admin-nav-link small,
.admin-nav-link em {
    font-size: 8px;
    font-style: normal;
}

.admin-nav-active {
    color: #fff;
    background: #174f9f;
    box-shadow: inset 3px 0 0 #ff7a18;
}

.admin-nav-active > span:first-child {
    color: #fff;
}

.admin-nav-disabled {
    cursor: default;
    opacity: .55;
}

.admin-nav-disabled small {
    padding: 3px 5px;
    color: #768da9;
    background: rgba(255, 255, 255, .06);
}

.admin-sidebar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 13px 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
}

.admin-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #24c47a;
    box-shadow: 0 0 0 4px rgba(36, 196, 122, .12);
}

.admin-sidebar-status strong,
.admin-sidebar-status small {
    display: block;
}

.admin-sidebar-status strong {
    font-size: 10px;
}

.admin-sidebar-status small {
    margin-top: 2px;
    color: #8196b1;
    font-size: 9px;
}

.admin-main {
    min-height: 100vh;
    margin-left: 244px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 10px 25px;
    border-bottom: 1px solid #d4dce7;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.admin-topbar-eyebrow {
    color: #6d7c91;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.admin-topbar h1 {
    margin: 3px 0 0;
    font-size: 20px;
    letter-spacing: -.4px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

#admin-refresh-button,
.admin-logout {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #aab7c8;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
}

#admin-refresh-button {
    color: #244771;
    background: #f8fbff;
}

#admin-refresh-button:disabled {
    opacity: .55;
}

.admin-logout {
    color: #8f2d34;
    border-color: #dab2b6;
    background: #fff4f5;
}

.admin-identity {
    min-width: 170px;
    padding: 8px 12px;
    border-left: 1px solid #d4dce7;
}

.admin-identity span,
.admin-identity strong {
    display: block;
}

.admin-identity span {
    color: #8190a5;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-identity strong {
    margin-top: 3px;
    font-size: 11px;
}

.admin-content {
    width: min(1520px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 36px;
}

.admin-alert {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #dfaaae;
    color: #982e38;
    background: #fff2f3;
    font-size: 11px;
    font-weight: 850;
}

.admin-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 21px 23px;
    color: #fff;
    background:
        linear-gradient(115deg, #0a1c37 0%, #103c72 70%, #1551a0 100%);
    box-shadow: 0 8px 28px rgba(21, 55, 103, .15);
}

.admin-welcome > div:first-child > span {
    color: #ff8a2d;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.7px;
}

.admin-welcome h2 {
    margin: 7px 0 0;
    font-size: 25px;
}

.admin-welcome p {
    margin: 6px 0 0;
    color: #a9bad2;
    font-size: 11px;
}

.admin-last-refresh {
    min-width: 190px;
    text-align: right;
}

.admin-last-refresh span,
.admin-last-refresh strong {
    display: block;
}

.admin-last-refresh span {
    color: #8da5c6;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-last-refresh strong {
    margin-top: 5px;
    font-size: 11px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.admin-metric {
    position: relative;
    min-height: 104px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid #d0d9e5;
    background: #fff;
}

.admin-metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: #4677c8;
}

.admin-metric span,
.admin-metric strong {
    display: block;
}

.admin-metric span {
    color: #6f7f94;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-metric strong {
    margin-top: 17px;
    color: #14243e;
    font-size: 29px;
    letter-spacing: -1px;
}

.admin-accent-orange::before { background: #ff7a18; }
.admin-accent-green::before { background: #21a56d; }
.admin-accent-violet::before { background: #7b58c8; }
.admin-accent-cyan::before { background: #1b9db2; }
.admin-accent-red::before { background: #d34e58; }

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 10px;
    margin-top: 10px;
}

.admin-panel {
    border: 1px solid #cfd8e4;
    background: #fff;
}

.admin-summary-panel {
    grid-column: 1 / -1;
}

.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border-bottom: 1px solid #d9e0e9;
    background: #f7f9fc;
}

.admin-panel-heading span {
    color: #79889d;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.admin-panel-heading h3 {
    margin: 4px 0 0;
    font-size: 15px;
}

.admin-api-badge {
    padding: 5px 8px;
    color: #14653f !important;
    border: 1px solid #90c9ae;
    background: #effaf5;
    letter-spacing: .8px !important;
}

.admin-catalog-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
}

.admin-catalog-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: #154f9d;
    font-size: 12px;
    font-weight: 950;
}

.admin-catalog-status span,
.admin-catalog-status strong {
    display: block;
}

.admin-catalog-status span {
    color: #75849a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-catalog-status strong {
    max-width: 520px;
    margin-top: 7px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-module-list {
    display: grid;
}

.admin-module-list > div {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 0 15px;
    border-bottom: 1px solid #e2e7ee;
}

.admin-module-list > div:last-child {
    border-bottom: 0;
}

.admin-module-list > div > span {
    color: #2c68bd;
    font-size: 10px;
    font-weight: 950;
}

.admin-module-list strong,
.admin-module-list small {
    display: block;
}

.admin-module-list strong {
    font-size: 11px;
}

.admin-module-list small {
    margin-top: 3px;
    color: #77869b;
    font-size: 9px;
}

.admin-module-list em {
    padding: 4px 6px;
    color: #8a6a34;
    background: #fff5df;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.admin-summary-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.admin-summary-list > div {
    min-height: 70px;
    padding: 14px 15px;
    border-right: 1px solid #e1e6ed;
    border-bottom: 1px solid #e1e6ed;
}

.admin-summary-list span,
.admin-summary-list strong {
    display: block;
}

.admin-summary-list span {
    color: #7b899d;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-summary-list strong {
    margin-top: 7px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.admin-summary-empty {
    grid-column: 1 / -1;
    color: #7a889a;
    font-size: 11px;
}

@media (max-width: 1150px) {
    .admin-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-summary-panel {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .admin-login-shell {
        grid-template-columns: 1fr;
        width: min(100% - 18px, 620px);
        margin: 9px auto;
    }

    .admin-login-brand {
        min-height: 340px;
        padding: 28px;
    }

    .admin-login-message {
        margin: 55px 0 45px;
    }

    .admin-login-security {
        display: none;
    }

    .admin-login-panel {
        padding: 35px 24px;
    }

    .admin-sidebar {
        position: static;
        width: auto;
        min-height: auto;
    }

    .admin-nav,
    .admin-sidebar-status {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .admin-topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-identity {
        flex: 1;
    }

    .admin-content {
        width: min(100% - 12px, 1520px);
        padding-top: 7px;
    }

    .admin-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-last-refresh {
        text-align: left;
    }

    .admin-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-summary-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .admin-login-message h1 {
        font-size: 40px;
    }
}


/* ================================================================
   OEMBG ADMIN ORDERS v12
   ================================================================ */

.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #aab7c8;
    color: #244771;
    background: #f8fbff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.admin-success {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #82bf9e;
    color: #176541;
    background: #effaf5;
    font-size: 11px;
    font-weight: 850;
}

.admin-module-ready {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 0 15px;
    border-bottom: 1px solid #e2e7ee;
    color: inherit;
    text-decoration: none;
}

.admin-module-ready:hover {
    background: #edf4ff;
}

.admin-module-ready > span {
    color: #2c68bd;
    font-size: 10px;
    font-weight: 950;
}

.admin-module-ready strong,
.admin-module-ready small {
    display: block;
}

.admin-module-ready strong {
    font-size: 11px;
}

.admin-module-ready small {
    margin-top: 3px;
    color: #77869b;
    font-size: 9px;
}

.admin-module-ready em {
    padding: 5px 7px;
    color: #fff;
    background: #1d63c9;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}

.admin-orders-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(115deg, #0a1c37 0%, #103c72 72%, #1551a0 100%);
}

.admin-orders-head > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.admin-orders-head h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.admin-orders-head p {
    margin: 6px 0 0;
    color: #a9bad2;
    font-size: 10px;
}

.admin-orders-loaded {
    min-width: 180px;
    text-align: right;
}

.admin-orders-loaded span,
.admin-orders-loaded strong {
    display: block;
}

.admin-orders-loaded span {
    color: #8da5c6;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-orders-loaded strong {
    margin-top: 5px;
    font-size: 10px;
}

.admin-order-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.admin-order-stats a {
    min-height: 76px;
    padding: 13px 14px;
    border: 1px solid #ced8e5;
    color: #263a58;
    background: #fff;
    text-decoration: none;
}

.admin-order-stats a:hover,
.admin-order-stats a.active {
    color: #fff;
    border-color: #154f9d;
    background: #154f9d;
}

.admin-order-stats span,
.admin-order-stats strong {
    display: block;
}

.admin-order-stats span {
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-order-stats strong {
    margin-top: 8px;
    font-size: 22px;
}

.admin-orders-panel {
    margin-top: 10px;
    border: 1px solid #cdd7e3;
    background: #fff;
}

.admin-orders-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px auto auto;
    align-items: end;
    gap: 9px;
    padding: 13px 14px;
    border-bottom: 1px solid #d8e0e9;
    background: #f7f9fc;
}

.admin-orders-filter label > span {
    display: block;
    margin-bottom: 5px;
    color: #6f7f94;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-orders-filter input,
.admin-orders-filter select {
    width: 100%;
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.admin-orders-filter button,
.admin-orders-filter > a {
    display: inline-grid;
    min-height: 37px;
    padding: 0 14px;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
}

.admin-orders-filter button {
    color: #fff;
    background: #1d63c9;
}

.admin-orders-filter > a {
    color: #53647c;
    background: #e8edf4;
}

.admin-orders-table-wrap {
    overflow-x: auto;
}

.admin-orders-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: 10px;
}

.admin-orders-table th {
    padding: 10px 9px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.admin-orders-table td {
    padding: 10px 9px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.admin-orders-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-orders-table tbody tr:hover {
    background: #edf4ff;
}

.admin-orders-table td small,
.admin-orders-table td strong {
    display: block;
}

.admin-orders-table td small {
    margin-top: 3px;
    color: #7c899b;
    font-size: 8px;
}

.admin-order-number {
    color: #164e9c;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
}

.admin-order-amount {
    color: #133f80;
    font-weight: 950;
    white-space: nowrap;
}

.admin-order-status {
    display: inline-block;
    min-width: 88px;
    padding: 5px 7px;
    border: 1px solid #bbc6d3;
    color: #394b64;
    background: #f0f3f7;
    text-align: center;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-order-status.status-new {
    color: #944d00;
    border-color: #e8bd80;
    background: #fff5e7;
}

.admin-order-status.status-confirmed {
    color: #164e9c;
    border-color: #92b5e3;
    background: #edf4ff;
}

.admin-order-status.status-processing {
    color: #6848a2;
    border-color: #c4b2e3;
    background: #f5f0ff;
}

.admin-order-status.status-completed {
    color: #126341;
    border-color: #8bc5a8;
    background: #edf9f3;
}

.admin-order-status.status-cancelled {
    color: #9b3039;
    border-color: #dda5aa;
    background: #fff0f1;
}

.admin-order-open {
    color: #1c5db9;
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.admin-orders-empty {
    padding: 55px 20px !important;
    color: #748398;
    text-align: center;
    font-size: 11px;
}

/* Order detail */
.admin-back-link {
    display: inline-block;
    margin: 0 0 9px;
    color: #245eae;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.admin-order-header-card {
    display: grid;
    grid-template-columns: 1fr 320px 220px;
    gap: 0;
    color: #fff;
    background: linear-gradient(115deg, #091b35, #103c72);
}

.admin-order-header-card > div {
    min-height: 120px;
    padding: 20px 21px;
    border-right: 1px solid rgba(255, 255, 255, .11);
}

.admin-order-header-card > div:last-child {
    border-right: 0;
}

.admin-order-title > span,
.admin-order-client-card > span,
.admin-order-total-card > span {
    color: #8fa8c9;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.admin-order-title h2 {
    margin: 7px 0 0;
    font-size: 28px;
}

.admin-order-title p {
    margin: 8px 0 0;
    color: #a7bad2;
    font-size: 10px;
}

.admin-order-client-card strong,
.admin-order-client-card small,
.admin-order-total-card strong,
.admin-order-total-card small {
    display: block;
}

.admin-order-client-card strong,
.admin-order-total-card strong {
    margin-top: 14px;
    font-size: 18px;
}

.admin-order-client-card small,
.admin-order-total-card small {
    margin-top: 6px;
    color: #9fb2cb;
    font-size: 9px;
}

.admin-order-control-card {
    display: grid;
    grid-template-columns: 210px 1fr 320px;
    align-items: end;
    gap: 15px;
    margin-top: 10px;
    padding: 15px 16px;
    border: 1px solid #ccd6e3;
    background: #fff;
}

.admin-order-current-status > span,
.admin-order-reference > span,
.admin-order-status-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #718097;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-order-status-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 8px;
}

.admin-order-status-form select,
.admin-item-controls select,
.admin-item-controls input {
    width: 100%;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 9px;
    font-weight: 750;
}

.admin-order-status-form button,
.admin-item-controls button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    color: #fff;
    background: #1c62c8;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-order-reference strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 11px;
}

.admin-order-note {
    margin-top: 10px;
    padding: 13px 15px;
    border: 1px solid #dfc083;
    color: #6f4a0d;
    background: #fff8e9;
}

.admin-order-note span {
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-order-note p {
    margin: 6px 0 0;
    font-size: 10px;
}

.admin-order-items {
    margin-top: 10px;
    border: 1px solid #ccd6e3;
    background: #fff;
}

.admin-order-items-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 15px;
    border-bottom: 1px solid #d9e0e9;
    background: #f6f9fd;
}

.admin-order-items-heading span {
    color: #718097;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.admin-order-items-heading h3 {
    margin: 4px 0 0;
    font-size: 15px;
}

.admin-order-items-heading > strong {
    color: #1d5aaf;
    font-size: 11px;
}

.admin-order-items-list {
    display: grid;
    gap: 9px;
    padding: 10px;
}

.admin-order-item-card {
    border: 1px solid #d1dae5;
    background: #fff;
}

.admin-item-main {
    display: grid;
    grid-template-columns: 54px 1fr 215px;
    align-items: stretch;
}

.admin-item-sequence {
    display: grid;
    place-items: center;
    color: #6581a7;
    border-right: 1px solid #d8e0e9;
    background: #f4f7fb;
    font-size: 11px;
    font-weight: 950;
}

.admin-item-identification {
    padding: 14px 15px;
}

.admin-item-identification > span {
    color: #6e7f95;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-item-identification h4 {
    margin: 5px 0 0;
    color: #134a91;
    font-size: 16px;
}

.admin-item-identification p {
    margin: 6px 0 0;
    color: #42536b;
    font-size: 10px;
}

.admin-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.admin-item-meta > span {
    padding: 5px 7px;
    color: #607087;
    background: #eef3f8;
    font-size: 8px;
}

.admin-item-meta strong {
    color: #213957;
}

.admin-item-current {
    padding: 14px 15px;
    border-left: 1px solid #d8e0e9;
    background: #fafbfd;
}

.admin-item-current > span {
    display: block;
    margin-bottom: 6px;
    color: #78879b;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-item-logistics-label {
    margin-top: 14px;
}

.admin-logistics-status {
    display: block;
    color: #34516f;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.4;
}

.admin-item-controls {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #d8e0e9;
    background: #f7f9fc;
}

.admin-item-controls form:first-child {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 7px;
}

.admin-item-controls form:last-child {
    display: grid;
    grid-template-columns: 1.25fr .75fr auto;
    align-items: end;
    gap: 7px;
}

.admin-item-controls label > span {
    display: block;
    margin-bottom: 5px;
    color: #718097;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-item-information {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #d8e0e9;
}

.admin-item-information > div {
    min-height: 62px;
    padding: 11px 13px;
    border-right: 1px solid #d8e0e9;
}

.admin-item-information > div:last-child {
    border-right: 0;
}

.admin-item-information span,
.admin-item-information strong {
    display: block;
}

.admin-item-information span {
    color: #77869a;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-item-information strong {
    margin-top: 6px;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.admin-item-comment {
    grid-column: auto;
}

@media (max-width: 1200px) {
    .admin-order-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-order-header-card {
        grid-template-columns: 1fr 1fr;
    }

    .admin-order-title {
        grid-column: 1 / -1;
    }

    .admin-order-control-card {
        grid-template-columns: 1fr 2fr;
    }

    .admin-order-reference {
        grid-column: 1 / -1;
    }

    .admin-item-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .admin-orders-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-orders-loaded {
        text-align: left;
    }

    .admin-orders-filter {
        grid-template-columns: 1fr;
    }

    .admin-order-header-card {
        grid-template-columns: 1fr;
    }

    .admin-order-title {
        grid-column: auto;
    }

    .admin-order-header-card > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .11);
    }

    .admin-order-control-card {
        grid-template-columns: 1fr;
    }

    .admin-order-status-form {
        grid-template-columns: 1fr;
    }

    .admin-order-reference {
        grid-column: auto;
    }

    .admin-item-main {
        grid-template-columns: 42px 1fr;
    }

    .admin-item-current {
        grid-column: 1 / -1;
        border-top: 1px solid #d8e0e9;
        border-left: 0;
    }

    .admin-item-controls form:first-child,
    .admin-item-controls form:last-child {
        grid-template-columns: 1fr;
    }

    .admin-item-information {
        grid-template-columns: 1fr;
    }

    .admin-item-information > div {
        border-right: 0;
        border-bottom: 1px solid #d8e0e9;
    }
}

@media (max-width: 520px) {
    .admin-order-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Cart Excel export/import v13 */
.cart-excel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 5px;
}

.cart-excel-actions .cart-button {
    display: grid;
    min-height: 39px;
    margin: 0;
    place-items: center;
    border: 0;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 950;
    cursor: pointer;
}

.cart-button-export {
    color: #fff;
    background: #1b5fb8;
}

.cart-button-export:hover {
    background: #164f9b;
}

.cart-button-import {
    color: #fff;
    background: #2d7a59;
}

.cart-button-import:hover {
    background: #256749;
}

.cart-button-disabled {
    opacity: .42;
    pointer-events: none;
    cursor: not-allowed !important;
}

.cart-import-form {
    margin: 0;
}

.cart-import-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cart-import-form label {
    width: 100%;
}

.cart-excel-help {
    margin: 6px 2px 0;
    color: #73839a;
    font-size: 8px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1150px) {
    .cart-excel-actions {
        grid-template-columns: 1fr;
    }
}


/* New order-status notification v14 */
.header-orders-link {
    display: flex;
    min-height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}

.orders-status-notice {
    display: none;
    margin-top: 5px;
    color: #ff9a45;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.orders-status-notice.is-visible {
    display: block;
    animation: orderNoticePulse 1.8s ease-in-out infinite;
}

.header-orders-link.has-order-notice {
    box-shadow: inset 0 -3px 0 #ff7615;
}

.header-orders-link.has-order-notice::before {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -31px 0 0 116px;
    border-radius: 50%;
    background: #ff7615;
    box-shadow: 0 0 0 4px rgba(255, 118, 21, .14);
    content: "";
}

@keyframes orderNoticePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .58; }
}

@media (prefers-reduced-motion: reduce) {
    .orders-status-notice.is-visible {
        animation: none;
    }
}


/* ================================================================
   OEMBG ADMIN CLIENTS v15
   ================================================================ */

.admin-clients-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(115deg, #0a1c37 0%, #103c72 72%, #1551a0 100%);
}

.admin-clients-head > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.admin-clients-head h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.admin-clients-head p {
    margin: 6px 0 0;
    color: #a9bad2;
    font-size: 10px;
}

.admin-clients-head-actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.admin-clients-head-actions > div {
    text-align: right;
}

.admin-clients-head-actions span,
.admin-clients-head-actions strong {
    display: block;
}

.admin-clients-head-actions span {
    color: #8da5c6;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-clients-head-actions strong {
    margin-top: 5px;
    font-size: 10px;
}

.admin-clients-head-actions > a {
    display: grid;
    min-height: 39px;
    padding: 0 14px;
    place-items: center;
    color: #fff;
    background: #ff7615;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.admin-client-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.25fr;
    gap: 8px;
    margin-top: 10px;
}

.admin-client-stats article {
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid #ced8e5;
    background: #fff;
}

.admin-client-stats span,
.admin-client-stats strong {
    display: block;
}

.admin-client-stats span {
    color: #687991;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-client-stats strong {
    margin-top: 9px;
    color: #143f79;
    font-size: 22px;
}

.admin-client-stat-balance {
    color: #fff;
    border-color: #123c70 !important;
    background: #123c70 !important;
}

.admin-client-stat-balance span {
    color: #a8bbd4;
}

.admin-client-stat-balance strong {
    color: #fff;
}

.admin-clients-panel {
    margin-top: 10px;
    border: 1px solid #cdd7e3;
    background: #fff;
}

.admin-clients-filter {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    align-items: end;
    gap: 9px;
    padding: 13px 14px;
    border-bottom: 1px solid #d8e0e9;
    background: #f7f9fc;
}

.admin-clients-filter label > span {
    display: block;
    margin-bottom: 5px;
    color: #6f7f94;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-clients-filter input {
    width: 100%;
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.admin-clients-filter button,
.admin-clients-filter > a {
    display: inline-grid;
    min-height: 37px;
    padding: 0 14px;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
}

.admin-clients-filter button {
    color: #fff;
    background: #1d63c9;
}

.admin-clients-filter > a {
    color: #53647c;
    background: #e8edf4;
}

.admin-clients-table-wrap {
    overflow-x: auto;
}

.admin-clients-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: 10px;
}

.admin-clients-table th {
    padding: 10px 9px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.admin-clients-table td {
    padding: 11px 9px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.admin-clients-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-clients-table tbody tr:hover {
    background: #edf4ff;
}

.admin-clients-table td small {
    display: block;
    margin-top: 3px;
    color: #7c899b;
    font-size: 8px;
}

.admin-client-name,
.admin-client-open {
    color: #164e9c;
    font-weight: 950;
    text-decoration: none;
}

.admin-client-name {
    font-size: 11px;
}

.admin-client-open {
    font-size: 9px;
    white-space: nowrap;
}

.admin-client-positive {
    color: #176541;
    font-weight: 950;
}

.admin-client-negative {
    color: #a3303a;
    font-weight: 950;
}

.admin-client-rules {
    color: #52657d;
    font-size: 9px;
    white-space: nowrap;
}

.admin-client-access {
    display: inline-block;
    padding: 5px 7px;
    border: 1px solid #b9c4d1;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.access-ready {
    color: #176541;
    border-color: #8cc3a8;
    background: #eef9f4;
}

.access-missing {
    color: #9b3039;
    border-color: #d9a4a9;
    background: #fff1f2;
}

/* Client detail */
.admin-client-profile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(115deg, #091b35, #103c72);
}

.admin-client-profile-head > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.admin-client-profile-head h2 {
    margin: 6px 0 0;
    font-size: 25px;
}

.admin-client-profile-head p {
    margin: 6px 0 0;
    color: #a8bad2;
    font-size: 10px;
}

.admin-client-profile-balance {
    min-width: 190px;
    text-align: right;
}

.admin-client-profile-balance span,
.admin-client-profile-balance strong {
    display: block;
}

.admin-client-profile-balance span {
    color: #8da5c6;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-client-profile-balance strong {
    margin-top: 7px;
    font-size: 22px;
}

.admin-client-form {
    margin-top: 10px;
}

.admin-client-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-client-form-card {
    border: 1px solid #ccd6e3;
    background: #fff;
}

.admin-client-form-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-bottom: 1px solid #d9e0e9;
    background: #f7f9fc;
}

.admin-client-form-heading > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: #fff;
    background: #1655a3;
    font-size: 9px;
    font-weight: 950;
}

.admin-client-form-heading h3 {
    margin: 0;
    font-size: 14px;
}

.admin-client-form-heading p {
    margin: 4px 0 0;
    color: #718097;
    font-size: 9px;
}

.admin-client-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
}

.admin-client-fields label > span {
    display: block;
    margin-bottom: 6px;
    color: #53657d;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-client-fields input {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
}

.admin-client-fields input:focus {
    border-color: #2e6bc9;
    outline: 3px solid rgba(46, 107, 201, .12);
}

.admin-client-fields input[readonly] {
    color: #6d7c90;
    background: #edf1f6;
}

.admin-client-fields label small,
.admin-client-password-state small {
    display: block;
    margin-top: 5px;
    color: #77869b;
    font-size: 8px;
    line-height: 1.4;
}

.admin-client-field-full {
    grid-column: 1 / -1;
}

.admin-client-password-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 9px 11px;
    border: 1px solid #d4dce6;
    background: #f8fafc;
}

.admin-client-password-state > span {
    padding: 5px 7px;
    border: 1px solid;
    font-size: 8px;
    font-weight: 950;
}

.admin-client-rule-summary {
    min-height: 84px;
    padding: 13px;
    border: 1px solid #d2dae5;
    background: #f7f9fc;
}

.admin-client-rule-summary span,
.admin-client-rule-summary strong,
.admin-client-rule-summary small {
    display: block;
}

.admin-client-rule-summary span {
    color: #6f7f94;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-client-rule-summary strong {
    margin-top: 7px;
    color: #154f9d;
    font-size: 22px;
}

.admin-client-rule-summary small {
    margin-top: 5px;
    color: #78869a;
    font-size: 8px;
}

.admin-client-form-info {
    background: #f8fbff;
}

.admin-client-info-list {
    display: grid;
}

.admin-client-info-list > div {
    padding: 13px 15px;
    border-bottom: 1px solid #dce3ec;
}

.admin-client-info-list > div:last-child {
    border-bottom: 0;
}

.admin-client-info-list strong,
.admin-client-info-list span {
    display: block;
}

.admin-client-info-list strong {
    color: #173f76;
    font-size: 10px;
}

.admin-client-info-list span {
    margin-top: 4px;
    color: #66768d;
    font-size: 9px;
    line-height: 1.5;
}

.admin-client-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #c7d2df;
    background: rgba(247, 250, 253, .96);
    backdrop-filter: blur(10px);
}

.admin-client-save-bar a,
.admin-client-save-bar button {
    display: inline-grid;
    min-height: 40px;
    padding: 0 16px;
    place-items: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.admin-client-save-bar a {
    color: #53647c;
    background: #e8edf4;
}

.admin-client-save-bar button {
    color: #fff;
    background: #1c62c8;
}

@media (max-width: 1100px) {
    .admin-client-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-client-stat-balance {
        grid-column: span 2;
    }

    .admin-client-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .admin-clients-head,
    .admin-client-profile-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-clients-head-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-clients-head-actions > div,
    .admin-client-profile-balance {
        text-align: left;
    }

    .admin-clients-filter {
        grid-template-columns: 1fr;
    }

    .admin-client-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-client-stat-balance {
        grid-column: 1 / -1;
    }

    .admin-client-fields {
        grid-template-columns: 1fr;
    }

    .admin-client-field-full {
        grid-column: auto;
    }

    .admin-client-password-state {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 470px) {
    .admin-client-stats {
        grid-template-columns: 1fr;
    }

    .admin-client-stat-balance {
        grid-column: auto;
    }

    .admin-client-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-client-save-bar a,
    .admin-client-save-bar button {
        width: 100%;
    }
}


/* ================================================================
   OEMBG CLIENT PRICE RULES v16
   ================================================================ */

.admin-client-rules-card {
    grid-column: 1 / -1;
}

.admin-rule-editor {
    padding: 14px 15px 15px;
}

.admin-rule-table-head,
.admin-rule-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px 42px;
    gap: 8px;
    align-items: center;
}

.admin-rule-table-head {
    padding: 0 0 7px;
    color: #66778e;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-rule-rows {
    display: grid;
    gap: 7px;
}

.admin-rule-row {
    padding: 8px;
    border: 1px solid #d2dbe6;
    background: #f8fafc;
}

.admin-rule-row input {
    width: 100%;
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
}

.admin-rule-row input:focus {
    border-color: #2e6bc9;
    outline: 3px solid rgba(46, 107, 201, .12);
}

.admin-rule-remove {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid #dfabb0;
    color: #9f303a;
    background: #fff1f2;
    cursor: pointer;
    font-size: 19px;
    font-weight: 900;
}

.admin-rule-remove:hover {
    color: #fff;
    background: #ba3945;
}

.admin-rule-add {
    min-height: 38px;
    margin-top: 9px;
    padding: 0 13px;
    border: 1px solid #8eb1df;
    color: #17539f;
    background: #edf4ff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
}

.admin-rule-add:hover {
    color: #fff;
    background: #1c62c8;
}

.admin-rule-help {
    padding: 10px 15px;
    border-top: 1px solid #d9e1ea;
    color: #6d7d91;
    background: #f7f9fc;
    font-size: 9px;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .admin-rule-table-head {
        display: none;
    }

    .admin-rule-row {
        grid-template-columns: 1fr 100px 38px;
    }
}


/* ================================================================
   OEMBG ADMIN BALANCES v17
   ================================================================ */

.admin-balance-hero,
.admin-balance-account-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(115deg, #071a34 0%, #103b70 72%, #1555a4 100%);
}

.admin-balance-hero > div:first-child > span,
.admin-balance-account-head > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.admin-balance-hero h2,
.admin-balance-account-head h2 {
    margin: 6px 0 0;
    font-size: 25px;
}

.admin-balance-hero p,
.admin-balance-account-head p {
    margin: 6px 0 0;
    color: #a9bad2;
    font-size: 10px;
}

.admin-balance-hero > div:last-child {
    text-align: right;
}

.admin-balance-hero > div:last-child span,
.admin-balance-hero > div:last-child strong {
    display: block;
}

.admin-balance-hero > div:last-child span {
    color: #8da5c6;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-balance-hero > div:last-child strong {
    margin-top: 5px;
    font-size: 10px;
}

.admin-balance-stats,
.admin-balance-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.admin-balance-stats article,
.admin-balance-detail-stats article {
    min-height: 86px;
    padding: 14px;
    border: 1px solid #ccd7e4;
    background: #fff;
}

.admin-balance-stats span,
.admin-balance-stats strong,
.admin-balance-stats small,
.admin-balance-detail-stats span,
.admin-balance-detail-stats strong {
    display: block;
}

.admin-balance-stats span,
.admin-balance-detail-stats span {
    color: #687991;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-balance-stats strong,
.admin-balance-detail-stats strong {
    margin-top: 9px;
    color: #153f79;
    font-size: 20px;
}

.admin-balance-stats small {
    margin-top: 6px;
    color: #7c8999;
    font-size: 8px;
}

.admin-balance-stat-credit {
    border-top: 3px solid #1b8b5d !important;
}

.admin-balance-stat-orders {
    border-top: 3px solid #d58a25 !important;
}

.admin-balance-stat-net {
    color: #fff;
    border-color: #176343 !important;
    background: #176343 !important;
}

.admin-balance-stat-debt {
    color: #fff;
    border-color: #9e303b !important;
    background: #9e303b !important;
}

.admin-balance-stat-net span,
.admin-balance-stat-net strong,
.admin-balance-stat-net small,
.admin-balance-stat-debt span,
.admin-balance-stat-debt strong,
.admin-balance-stat-debt small {
    color: #fff;
}

.admin-balances-panel {
    margin-top: 10px;
    border: 1px solid #ccd6e2;
    background: #fff;
}

.admin-balance-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px auto auto;
    align-items: end;
    gap: 9px;
    padding: 13px 14px;
    border-bottom: 1px solid #d8e0e9;
    background: #f7f9fc;
}

.admin-balance-filter label > span {
    display: block;
    margin-bottom: 5px;
    color: #6f7f94;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-balance-filter input,
.admin-balance-filter select {
    width: 100%;
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.admin-balance-filter button,
.admin-balance-filter > a {
    display: inline-grid;
    min-height: 37px;
    padding: 0 14px;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
}

.admin-balance-filter button {
    color: #fff;
    background: #1d63c9;
}

.admin-balance-filter > a {
    color: #53647c;
    background: #e8edf4;
}

.admin-balances-table-wrap,
.admin-balance-ledger-wrap {
    overflow-x: auto;
}

.admin-balances-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 10px;
}

.admin-balances-table th,
.admin-balance-ledger th {
    padding: 10px 9px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.admin-balances-table td,
.admin-balance-ledger td {
    padding: 11px 9px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.admin-balances-table tbody tr:nth-child(even),
.admin-balance-ledger tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-balances-table tbody tr:hover,
.admin-balance-ledger tbody tr:hover {
    background: #edf4ff;
}

.admin-balances-table td small {
    display: block;
    margin-top: 4px;
    color: #7a8798;
    font-size: 8px;
}

.admin-balance-client,
.admin-balance-open,
.admin-balance-ledger a {
    color: #164f9d;
    font-weight: 950;
    text-decoration: none;
}

.admin-balance-client {
    font-size: 11px;
}

.admin-balance-open {
    font-size: 9px;
    white-space: nowrap;
}

.admin-money-credit,
.admin-money-positive {
    color: #176541;
    font-weight: 950;
}

.admin-money-order {
    color: #8c5b1c;
    font-weight: 950;
}

.admin-money-negative {
    color: #a2303a;
    font-weight: 950;
}

.admin-money-zero {
    color: #65758a;
    font-weight: 950;
}

.admin-balance-state {
    display: inline-block;
    padding: 5px 7px;
    border: 1px solid;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.state-positive {
    color: #176541;
    border-color: #8cc3a8;
    background: #eef9f4;
}

.state-negative {
    color: #9d3039;
    border-color: #dba5aa;
    background: #fff1f2;
}

.state-zero {
    color: #53647b;
    border-color: #bcc7d5;
    background: #f1f4f8;
}

/* Detail */
.admin-balance-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-balance-export {
    display: inline-grid;
    min-height: 36px;
    padding: 0 13px;
    place-items: center;
    color: #17539f;
    border: 1px solid #8db0dd;
    background: #edf4ff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.admin-balance-account-head {
    margin-top: 10px;
}

.admin-balance-account-head > div:last-child {
    min-width: 210px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    text-align: right;
}

.admin-balance-account-head > div:last-child span,
.admin-balance-account-head > div:last-child strong,
.admin-balance-account-head > div:last-child small {
    display: block;
}

.admin-balance-account-head > div:last-child span {
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-balance-account-head > div:last-child strong {
    margin-top: 6px;
    font-size: 24px;
}

.admin-balance-account-head > div:last-child small {
    margin-top: 5px;
    font-size: 9px;
    font-weight: 850;
}

.account-balance-positive {
    background: rgba(24, 126, 82, .35);
}

.account-balance-negative {
    background: rgba(168, 44, 57, .42);
}

.account-balance-zero {
    background: rgba(94, 112, 137, .35);
}

.admin-balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.admin-balance-action-card {
    display: grid;
    grid-template-columns: minmax(190px, .75fr) 1.25fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid #cad5e2;
    background: #fff;
}

.admin-balance-action-card > div > span {
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-balance-action-card h3 {
    margin: 7px 0 0;
    font-size: 15px;
}

.admin-balance-action-card p {
    margin: 6px 0 0;
    color: #6e7e93;
    font-size: 9px;
    line-height: 1.5;
}

.admin-balance-action-card form {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 9px;
    align-items: end;
}

.admin-balance-action-card label > span {
    display: block;
    margin-bottom: 5px;
    color: #66778e;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-balance-action-card input {
    width: 100%;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
}

.admin-balance-action-card button {
    grid-column: 1 / -1;
    min-height: 39px;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
}

.action-credit {
    border-top: 3px solid #1b8a5d;
}

.action-credit > div > span {
    color: #18724e;
}

.action-credit button {
    background: #18724e;
}

.action-debit {
    border-top: 3px solid #aa3540;
}

.action-debit > div > span {
    color: #9b303a;
}

.action-debit button {
    background: #a53641;
}

.admin-balance-ledger-panel {
    margin-top: 10px;
    border: 1px solid #cbd6e2;
    background: #fff;
}

.admin-balance-ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    border-bottom: 1px solid #d9e1ea;
    background: #f7f9fc;
}

.admin-balance-ledger-head span {
    color: #ff7615;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-balance-ledger-head h3 {
    margin: 4px 0 0;
    font-size: 14px;
}

.admin-balance-ledger-head > strong {
    color: #173f77;
    font-size: 10px;
}

.admin-balance-ledger {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 9px;
}

.admin-ledger-type {
    display: inline-block;
    padding: 4px 6px;
    color: #42566f;
    border: 1px solid #bec9d6;
    background: #f1f4f8;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-ledger-type.type-credit {
    color: #176541;
    border-color: #91c8ad;
    background: #eef9f4;
}

.admin-ledger-type.type-debit_adjustment,
.admin-ledger-type.type-adjustment {
    color: #9d3039;
    border-color: #dba5aa;
    background: #fff1f2;
}

.admin-ledger-type.type-order {
    color: #8a5818;
    border-color: #d9bc8c;
    background: #fff8e9;
}

@media (max-width: 1150px) {
    .admin-balance-stats,
    .admin-balance-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-balance-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .admin-balance-hero,
    .admin-balance-account-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-balance-hero > div:last-child,
    .admin-balance-account-head > div:last-child {
        text-align: left;
    }

    .admin-balance-filter {
        grid-template-columns: 1fr;
    }

    .admin-balance-action-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-balance-stats,
    .admin-balance-detail-stats {
        grid-template-columns: 1fr;
    }

    .admin-balance-action-card form {
        grid-template-columns: 1fr;
    }

    .admin-balance-detail-nav {
        align-items: stretch;
        flex-direction: column;
    }
}


/* ================================================================
   PARTNER ORDER STATUS LEGEND v18
   ================================================================ */

.orders-status-guide {
    margin-top: 10px;
    border: 1px solid #bfcbd9;
    background: #fff;
}

.orders-status-guide-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 16px;
    border-bottom: 1px solid #d7e0ea;
    background: #f7f9fc;
}

.orders-status-guide-heading > div > span,
.item-status-guide-title > span {
    color: #1760b6;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.orders-status-guide-heading h2 {
    margin: 5px 0 0;
    color: #132d51;
    font-size: 16px;
}

.orders-status-guide-heading p {
    max-width: 540px;
    margin: 0;
    color: #66778d;
    font-size: 9px;
    line-height: 1.55;
    text-align: right;
}

.order-status-explainer {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 8px;
    padding: 12px 14px 14px;
}

.status-guide-card,
.item-guide-card {
    border: 1px solid #d1dae5;
    background: #fff;
}

.status-guide-card {
    min-height: 84px;
    padding: 11px 12px;
}

.status-guide-card strong,
.status-guide-card span,
.item-guide-card strong,
.item-guide-card span {
    display: block;
}

.status-guide-card strong {
    color: #183554;
    font-size: 9px;
    font-weight: 950;
}

.status-guide-card strong i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: 0;
}

.status-guide-card span {
    margin-top: 8px;
    color: #64758b;
    font-size: 8px;
    line-height: 1.5;
}

.guide-new {
    border-top: 3px solid #149bd7;
    background: #f3fbff;
}

.guide-new strong i {
    background: #149bd7;
}

.guide-confirmed {
    border-top: 3px solid #0ba070;
    background: #f1fbf7;
}

.guide-confirmed strong i {
    background: #0ba070;
}

.guide-processing {
    border-top: 3px solid #e1a23e;
    background: #fff9ef;
}

.guide-processing strong i {
    background: #e1a23e;
}

.guide-completed {
    border-top: 3px solid #159761;
    background: #f1faf6;
}

.guide-completed strong i {
    background: #159761;
}

.guide-cancelled {
    border-top: 3px solid #d95461;
    background: #fff4f5;
}

.guide-cancelled strong i {
    background: #d95461;
}

.item-status-guide-title {
    padding: 10px 14px 0;
    border-top: 1px solid #dce3eb;
}

.item-status-explainer {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 8px;
    padding: 10px 14px 14px;
}

.item-guide-card {
    min-height: 72px;
    padding: 10px 11px;
}

.item-guide-card strong {
    color: #1a3554;
    font-size: 8px;
    font-weight: 950;
}

.item-guide-card span {
    margin-top: 7px;
    color: #61738b;
    font-size: 8px;
    line-height: 1.45;
}

.item-guide-wide {
    grid-column: span 2;
    min-height: 92px;
}

.item-guide-processing {
    background: #fff7ec;
    border-color: #e7cba6;
}

.item-guide-germany {
    background: #edf5ff;
    border-color: #cbdcf2;
}

.item-guide-transit {
    background: #f2f0ff;
    border-color: #d9d3f0;
}

.item-guide-bulgaria {
    background: #eafafb;
    border-color: #c5e6e8;
}

.item-guide-preparing {
    background: #edf2ff;
    border-color: #ccd7ee;
}

.item-guide-waiting {
    background: #fffceb;
    border-color: #e8dfb8;
}

.item-guide-sent {
    background: #effbf4;
    border-color: #cce6d6;
}

.item-guide-delayed {
    background: #fff1f2;
    border-color: #e8c9cd;
}

.item-guide-dealer-cancelled {
    background: #fff4f5;
    border-color: #e5c5c9;
}

.item-guide-date-changed {
    background: #fffbea;
    border-color: #e5d9a7;
}

@media (max-width: 1150px) {
    .order-status-explainer {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .item-status-explainer {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

@media (max-width: 720px) {
    .orders-status-guide-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .orders-status-guide-heading p {
        max-width: none;
        text-align: left;
    }

    .order-status-explainer,
    .item-status-explainer {
        grid-template-columns: 1fr;
    }

    .item-guide-wide {
        grid-column: auto;
    }
}


/* ================================================================
   PARTNER ORDER STATUS LEGEND FONT v18.1
   ================================================================ */

.orders-status-guide-heading > div > span,
.item-status-guide-title > span {
    font-size: 9px;
}

.orders-status-guide-heading h2 {
    font-size: 18px;
}

.orders-status-guide-heading p {
    font-size: 10px;
    line-height: 1.6;
}

.status-guide-card strong {
    font-size: 10px;
}

.status-guide-card span {
    font-size: 9px;
    line-height: 1.55;
}

.item-guide-card strong {
    font-size: 9px;
}

.item-guide-card span {
    font-size: 9px;
    line-height: 1.55;
}

@media (min-width: 1200px) {
    .status-guide-card strong {
        font-size: 11px;
    }

    .status-guide-card span,
    .item-guide-card strong,
    .item-guide-card span {
        font-size: 10px;
    }
}


/* ================================================================
   CART IMPORT EXAMPLE AND MODAL v19
   ================================================================ */

.cart-excel-actions > .cart-button-import {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.cart-import-modal[hidden] {
    display: none;
}

.cart-import-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    padding: 18px;
    place-items: center;
}

.cart-import-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 17, 35, .72);
    cursor: default;
    backdrop-filter: blur(3px);
}

.cart-import-dialog {
    position: relative;
    z-index: 1;
    width: min(660px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border: 1px solid #aebed1;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 18, 46, .34);
}

.cart-import-close {
    position: absolute;
    top: 10px;
    right: 11px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(3, 18, 40, .28);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.cart-import-dialog-heading {
    padding: 22px 58px 20px 22px;
    color: #fff;
    background: linear-gradient(
        115deg,
        #071a34 0%,
        #103c72 72%,
        #1555a4 100%
    );
}

.cart-import-dialog-heading > span {
    color: #ff8425;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.cart-import-dialog-heading h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.cart-import-dialog-heading p {
    margin: 7px 0 0;
    color: #b5c5da;
    font-size: 11px;
    line-height: 1.5;
}

.cart-import-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 16px 0;
}

.cart-import-columns article {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 60px;
    padding: 9px;
    border: 1px solid #d2dce7;
    background: #f7f9fc;
}

.cart-import-columns article > span {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    background: #1761ba;
    font-size: 9px;
    font-weight: 950;
}

.cart-import-columns strong,
.cart-import-columns small {
    display: block;
}

.cart-import-columns strong {
    color: #173b6b;
    font-size: 10px;
}

.cart-import-columns small {
    margin-top: 4px;
    color: #74849a;
    font-size: 8px;
}

.cart-import-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px;
}

.cart-import-example-button,
.cart-import-upload-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
}

.cart-import-example-button {
    color: #15519b;
    border-color: #91b3de;
    background: #edf4ff;
}

.cart-import-upload-button {
    color: #fff;
    border-color: #146b4a;
    background: #18744f;
}

.cart-import-example-button > span,
.cart-import-upload-button > span {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    font-size: 19px;
    font-weight: 950;
}

.cart-import-example-button > span {
    color: #15519b;
    background: #d9e9ff;
}

.cart-import-upload-button > span {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.cart-import-example-button strong,
.cart-import-example-button small,
.cart-import-upload-button strong,
.cart-import-upload-button small {
    display: block;
}

.cart-import-example-button strong,
.cart-import-upload-button strong {
    font-size: 11px;
    font-weight: 950;
}

.cart-import-example-button small,
.cart-import-upload-button small {
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.35;
}

.cart-import-example-button small {
    color: #647b99;
}

.cart-import-upload-button small {
    color: #c8e7d9;
}

.cart-import-dialog .cart-import-form {
    display: block;
}

.cart-import-dialog .cart-import-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cart-import-dialog-note {
    padding: 11px 16px;
    border-top: 1px solid #d8e1eb;
    color: #687a90;
    background: #f7f9fc;
    font-size: 9px;
    line-height: 1.5;
}

.cart-import-modal-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .cart-import-columns,
    .cart-import-dialog-actions {
        grid-template-columns: 1fr;
    }

    .cart-import-dialog-heading h2 {
        font-size: 21px;
    }
}


/* ================================================================
   OEMBG WEB ADMIN IMPORT CENTER v20
   ================================================================ */

.admin-import-hero,
.admin-import-preview-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 21px 22px;
    color: #fff;
    background: linear-gradient(115deg, #071a34 0%, #103c72 70%, #1458ad 100%);
}

.admin-import-hero > div:first-child > span,
.admin-import-preview-hero > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.admin-import-hero h2,
.admin-import-preview-hero h2 {
    margin: 6px 0 0;
    font-size: 25px;
}

.admin-import-hero p,
.admin-import-preview-hero p {
    max-width: 720px;
    margin: 7px 0 0;
    color: #afc0d7;
    font-size: 10px;
    line-height: 1.55;
}

.admin-import-central-state {
    min-width: 190px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(4, 23, 48, .35);
    text-align: right;
}

.admin-import-central-state i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #13c878;
    box-shadow: 0 0 0 4px rgba(19, 200, 120, .13);
}

.admin-import-central-state span,
.admin-import-central-state strong,
.admin-import-central-state small {
    display: block;
}

.admin-import-central-state span {
    margin-top: 7px;
    color: #98abc5;
    font-size: 8px;
    font-weight: 950;
}

.admin-import-central-state strong {
    margin-top: 5px;
    font-size: 15px;
}

.admin-import-central-state small {
    margin-top: 6px;
    color: #a9bad0;
    font-size: 8px;
}

.admin-import-stats,
.admin-import-preview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.admin-import-preview-stats {
    grid-template-columns: repeat(5, 1fr);
}

.admin-import-stats article,
.admin-import-preview-stats article {
    min-height: 84px;
    padding: 14px;
    border: 1px solid #ccd7e3;
    background: #fff;
}

.admin-import-stats span,
.admin-import-stats strong,
.admin-import-stats small,
.admin-import-preview-stats span,
.admin-import-preview-stats strong {
    display: block;
}

.admin-import-stats span,
.admin-import-preview-stats span {
    color: #687991;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-import-stats strong,
.admin-import-preview-stats strong {
    margin-top: 9px;
    color: #143f79;
    font-size: 20px;
}

.admin-import-stats small {
    margin-top: 6px;
    color: #7b899a;
    font-size: 8px;
}

.admin-import-version-card {
    color: #fff;
    border-color: #153f77 !important;
    background: #153f77 !important;
}

.admin-import-version-card span,
.admin-import-version-card strong,
.admin-import-version-card small {
    color: #fff;
}

.admin-import-job-card {
    margin-top: 10px;
    border: 1px solid #bfd0e3;
    background: #fff;
}

.admin-import-job-card.job-running,
.admin-import-job-card.job-queued {
    border-top: 4px solid #1764c3;
}

.admin-import-job-card.job-completed {
    border-top: 4px solid #168657;
}

.admin-import-job-card.job-error {
    border-top: 4px solid #b63a46;
}

.admin-import-job-heading,
.admin-import-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    border-bottom: 1px solid #d8e1eb;
    background: #f7f9fc;
}

.admin-import-job-heading span,
.admin-import-panel-heading span {
    color: #1760b7;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-import-job-heading h3,
.admin-import-panel-heading h3 {
    margin: 4px 0 0;
    color: #172f52;
    font-size: 14px;
}

.admin-import-job-heading > strong {
    padding: 6px 9px;
    color: #1558a9;
    border: 1px solid #8fb3df;
    background: #edf4ff;
    font-size: 8px;
    font-weight: 950;
}

.admin-import-panel-heading em {
    color: #5f7087;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.admin-import-job-progress {
    padding: 14px 15px 8px;
}

.admin-import-job-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #51657f;
    font-size: 9px;
}

.admin-import-progress-track {
    height: 9px;
    margin-top: 8px;
    overflow: hidden;
    background: #dce5ef;
}

.admin-import-progress-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1764c3, #18a16a);
    transition: width .35s ease;
}

.admin-import-job-meta {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 8px;
    padding: 0 15px 14px;
}

.admin-import-job-meta > div {
    padding: 9px 10px;
    border: 1px solid #d8e0e9;
    background: #f8fafc;
}

.admin-import-job-meta span,
.admin-import-job-meta strong {
    display: block;
}

.admin-import-job-meta span {
    color: #718097;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-import-job-meta strong {
    margin-top: 5px;
    color: #173e72;
    font-size: 9px;
    word-break: break-word;
}

.admin-import-job-error {
    margin: 0 15px 14px;
    padding: 10px 11px;
    color: #962f39;
    border: 1px solid #ddb0b5;
    background: #fff1f2;
    font-size: 9px;
}

.admin-import-actions-grid,
.admin-import-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.admin-import-panel,
.admin-import-files-panel,
.admin-import-history-panel,
.admin-import-sample-panel,
.admin-import-confirm-panel {
    border: 1px solid #cbd6e2;
    background: #fff;
}

.admin-import-upload-form,
.admin-import-all-form {
    padding: 15px;
}

.admin-import-dropzone {
    display: grid;
    min-height: 156px;
    padding: 20px;
    place-items: center;
    border: 2px dashed #9fb5ce;
    color: #193f73;
    background: #f4f8fd;
    cursor: pointer;
    text-align: center;
}

.admin-import-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.admin-import-dropzone > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: #1764c3;
    font-size: 24px;
    font-weight: 950;
}

.admin-import-dropzone strong {
    margin-top: 11px;
    font-size: 12px;
}

.admin-import-dropzone small {
    max-width: 440px;
    margin-top: 7px;
    color: #6a7a90;
    font-size: 9px;
    line-height: 1.5;
}

.admin-import-upload-form > button,
.admin-import-all-form > button,
.admin-import-confirm-panel form > button {
    width: 100%;
    min-height: 41px;
    margin-top: 10px;
    border: 0;
    color: #fff;
    background: #1764c3;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
}

.admin-import-upload-form > button:disabled,
.admin-import-all-form > button:disabled,
.admin-import-confirm-panel form > button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.admin-import-all-panel > p {
    margin: 0;
    padding: 15px 15px 0;
    color: #65758b;
    font-size: 9px;
    line-height: 1.55;
}

.admin-import-all-panel code {
    color: #174d91;
    font-weight: 900;
}

.admin-import-all-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #687991;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-import-all-form input {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    font-size: 10px;
    font-weight: 850;
}

.admin-import-files-panel,
.admin-import-history-panel {
    margin-top: 10px;
}

.admin-import-files-table-wrap,
.admin-import-history-wrap,
.admin-import-sample-wrap {
    overflow-x: auto;
}

.admin-import-files-table,
.admin-import-history-table,
.admin-import-sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

.admin-import-history-table {
    min-width: 1050px;
}

.admin-import-sample-table {
    min-width: 850px;
}

.admin-import-files-table th,
.admin-import-history-table th,
.admin-import-sample-table th {
    padding: 10px 9px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.admin-import-files-table td,
.admin-import-history-table td,
.admin-import-sample-table td {
    padding: 10px 9px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.admin-import-files-table tbody tr:nth-child(even),
.admin-import-history-table tbody tr:nth-child(even),
.admin-import-sample-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-import-files-table strong,
.admin-import-files-table small {
    display: block;
}

.admin-import-files-table small,
.admin-import-history-table small {
    margin-top: 4px;
    color: #7a899c;
    font-size: 8px;
}

.admin-import-files-table a {
    color: #1755a2;
    font-weight: 950;
    text-decoration: none;
}

.admin-imported-count {
    color: #176541;
    font-weight: 950;
}

.admin-skipped-count {
    color: #9d5a1b;
    font-weight: 950;
}

.admin-import-status {
    display: inline-block;
    padding: 5px 7px;
    border: 1px solid;
    font-size: 8px;
    font-weight: 950;
}

.admin-import-status.status-ok,
.admin-import-status.status-completed {
    color: #176541;
    border-color: #91c7ad;
    background: #eef9f4;
}

.admin-import-status.status-error {
    color: #9e303a;
    border-color: #dba8ad;
    background: #fff1f2;
}

.admin-import-status.status-deleted {
    color: #5c6b7f;
    border-color: #bec8d4;
    background: #f1f4f8;
}

.admin-import-job-list,
.admin-import-report-list {
    display: grid;
}

.admin-import-job-list > a,
.admin-import-report-list > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 9px 12px;
    border-top: 1px solid #dce3eb;
}

.admin-import-job-list > a {
    color: inherit;
    text-decoration: none;
}

.admin-import-job-list > a:first-child,
.admin-import-report-list > div:first-child {
    border-top: 0;
}

.admin-import-job-list > a > div {
    min-width: 0;
    flex: 1;
}

.admin-import-job-list strong,
.admin-import-job-list small,
.admin-import-report-list strong,
.admin-import-report-list span {
    display: block;
}

.admin-import-job-list strong,
.admin-import-report-list strong {
    color: #193d6d;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-import-job-list small,
.admin-import-report-list span {
    margin-top: 4px;
    color: #77869a;
    font-size: 8px;
}

.admin-import-job-list em {
    color: #5f7085;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}

.job-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #73849a;
}

.job-dot.job-running,
.job-dot.job-queued {
    background: #1764c3;
}

.job-dot.job-completed {
    background: #168657;
}

.job-dot.job-error {
    background: #b63a46;
}

/* Preview */
.admin-import-preview-hero {
    margin-top: 10px;
}

.admin-import-preview-hero > div:last-child {
    min-width: 240px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.22);
    text-align: right;
}

.admin-import-preview-hero > div:last-child strong,
.admin-import-preview-hero > div:last-child span {
    display: block;
}

.admin-import-preview-hero > div:last-child strong {
    font-size: 9px;
}

.admin-import-preview-hero > div:last-child span {
    margin-top: 6px;
    color: #b4c4d9;
    font-size: 8px;
}

.preview-ready {
    background: rgba(18, 128, 82, .32);
}

.preview-warning {
    background: rgba(181, 55, 66, .34);
}

.admin-import-preview-warnings {
    margin-top: 10px;
    padding: 12px 14px;
    color: #8b591a;
    border: 1px solid #e4c99a;
    background: #fff8e8;
}

.admin-import-preview-warnings strong {
    font-size: 10px;
}

.admin-import-preview-warnings p {
    margin: 6px 0 0;
    font-size: 9px;
}

.admin-import-sample-panel,
.admin-import-confirm-panel {
    margin-top: 10px;
}

.admin-import-sample-table td {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-import-confirm-panel {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 18px;
    padding: 16px;
}

.admin-import-confirm-panel > div > span {
    color: #1760b7;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-import-confirm-panel h3 {
    margin: 6px 0 0;
    font-size: 15px;
}

.admin-import-confirm-panel p {
    margin: 7px 0 0;
    color: #66778d;
    font-size: 9px;
    line-height: 1.55;
}

.admin-import-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border: 1px solid #cdd7e3;
    background: #f7f9fc;
}

.admin-import-confirm-check input {
    margin-top: 2px;
}

.admin-import-confirm-check span {
    color: #3d506b;
    font-size: 9px;
    line-height: 1.45;
}

.admin-import-discard-form {
    grid-column: 2;
}

.admin-import-discard-form button {
    width: 100%;
    min-height: 36px;
    margin-top: 7px;
    border: 1px solid #d5a5aa;
    color: #9d3039;
    background: #fff1f2;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

@media (max-width: 1150px) {
    .admin-import-stats,
    .admin-import-preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-import-job-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .admin-import-hero,
    .admin-import-preview-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-import-central-state,
    .admin-import-preview-hero > div:last-child {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .admin-import-actions-grid,
    .admin-import-bottom-grid,
    .admin-import-confirm-panel {
        grid-template-columns: 1fr;
    }

    .admin-import-discard-form {
        grid-column: auto;
    }
}

@media (max-width: 540px) {
    .admin-import-stats,
    .admin-import-preview-stats,
    .admin-import-job-meta {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG ADMIN SUPPLIER PROFILES v21
   ================================================================ */

.admin-import-central-state a,
.admin-profiles-hero a {
    display: inline-block;
    margin-top: 9px;
    color: #fff;
    font-size: 8px;
    font-weight: 950;
    text-decoration: none;
}

.admin-profiles-hero,
.admin-profile-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 21px 22px;
    color: #fff;
    background: linear-gradient(115deg, #071a34 0%, #103c72 70%, #1458ad 100%);
}

.admin-profiles-hero > div:first-child > span,
.admin-profile-detail-hero > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.admin-profiles-hero h2,
.admin-profile-detail-hero h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.admin-profiles-hero p,
.admin-profile-detail-hero p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #afc0d7;
    font-size: 10px;
    line-height: 1.55;
}

.admin-profiles-hero > div:last-child {
    min-width: 170px;
    text-align: right;
}

.admin-profiles-hero > div:last-child span,
.admin-profiles-hero > div:last-child strong {
    display: block;
}

.admin-profiles-hero > div:last-child span {
    color: #98abc5;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-profiles-hero > div:last-child strong {
    margin-top: 5px;
    font-size: 9px;
}

.admin-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.admin-profile-stats article {
    min-height: 82px;
    padding: 14px;
    border: 1px solid #ccd7e3;
    background: #fff;
}

.admin-profile-stats span,
.admin-profile-stats strong {
    display: block;
}

.admin-profile-stats span {
    color: #687991;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-profile-stats strong {
    margin-top: 9px;
    color: #143f79;
    font-size: 21px;
}

.profile-stat-oem {
    border-top: 3px solid #1468c8 !important;
}

.profile-stat-aftermarket {
    border-top: 3px solid #e08a27 !important;
}

.admin-profiles-panel {
    margin-top: 10px;
    border: 1px solid #cbd6e2;
    background: #fff;
}

.admin-profiles-filter {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 190px auto auto;
    align-items: end;
    gap: 9px;
    padding: 13px 14px;
    border-bottom: 1px solid #d8e0e9;
    background: #f7f9fc;
}

.admin-profiles-filter label > span {
    display: block;
    margin-bottom: 5px;
    color: #6f7f94;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-profiles-filter input,
.admin-profiles-filter select {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
}

.admin-profiles-filter button,
.admin-profiles-filter > a {
    display: inline-grid;
    min-height: 38px;
    padding: 0 14px;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
}

.admin-profiles-filter button {
    color: #fff;
    background: #1d63c9;
}

.admin-profiles-filter > a {
    color: #53647c;
    background: #e8edf4;
}

.admin-profiles-table-wrap {
    overflow-x: auto;
}

.admin-profiles-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 9px;
}

.admin-profiles-table th {
    padding: 10px 9px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.admin-profiles-table td {
    padding: 10px 9px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.admin-profiles-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-profiles-table tbody tr:hover {
    background: #edf4ff;
}

.admin-profiles-table td small {
    display: block;
    margin-top: 4px;
    color: #7a899c;
    font-size: 8px;
}

.admin-profile-supplier,
.admin-profile-edit {
    color: #1755a2;
    font-weight: 950;
    text-decoration: none;
}

.admin-profile-supplier {
    font-size: 10px;
}

.admin-profile-edit {
    white-space: nowrap;
}

.admin-profile-type {
    display: inline-block;
    padding: 5px 7px;
    border: 1px solid;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-profile-type.type-oem {
    color: #1458a8;
    border-color: #91b4df;
    background: #edf4ff;
}

.admin-profile-type.type-aftermarket {
    color: #915817;
    border-color: #dfbf91;
    background: #fff8e9;
}

/* Profile detail */
.admin-profile-detail-content > .admin-alert,
.admin-profile-detail-content > .admin-success {
    margin-top: 10px;
}

.profile-current-type {
    min-width: 190px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .24);
    text-align: right;
}

.profile-current-type span,
.profile-current-type strong {
    display: block;
}

.profile-current-type span {
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.profile-current-type strong {
    margin-top: 6px;
    font-size: 22px;
}

.profile-current-type.type-oem {
    background: rgba(20, 104, 200, .36);
}

.profile-current-type.type-aftermarket {
    background: rgba(213, 123, 29, .38);
}

.admin-profile-edit-form {
    margin-top: 10px;
}

.admin-profile-settings-card,
.admin-profile-sync-card {
    margin-top: 10px;
    border: 1px solid #cbd6e2;
    background: #fff;
}

.admin-profile-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #d8e1eb;
    background: #f7f9fc;
}

.admin-profile-section-heading > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: #1764c3;
    font-size: 9px;
    font-weight: 950;
}

.admin-profile-section-heading h3 {
    margin: 0;
    color: #172f52;
    font-size: 14px;
}

.admin-profile-section-heading p {
    margin: 4px 0 0;
    color: #6b7b91;
    font-size: 8px;
    line-height: 1.45;
}

.admin-profile-main-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.admin-profile-main-fields label > span {
    display: block;
    margin-bottom: 6px;
    color: #65768d;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-profile-main-fields select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
}

.admin-profile-mapping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
}

.admin-profile-mapping-grid article {
    min-height: 68px;
    padding: 10px;
    border: 1px solid #d4dde7;
    background: #f8fafc;
}

.admin-profile-mapping-grid article span,
.admin-profile-mapping-grid article strong {
    display: block;
}

.admin-profile-mapping-grid article span {
    color: #728198;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-profile-mapping-grid article strong {
    margin-top: 8px;
    color: #183d70;
    font-size: 9px;
    word-break: break-word;
}

.admin-profile-mapping-grid .mapping-missing {
    border-color: #e4d2ae;
    background: #fff9ed;
}

.admin-profile-mapping-grid .mapping-missing strong {
    color: #98601b;
}

.admin-profile-price-summary {
    margin: 0 15px 15px;
    padding: 11px 12px;
    border: 1px solid #c3d4e7;
    background: #edf4fd;
}

.admin-profile-price-summary span,
.admin-profile-price-summary strong {
    display: block;
}

.admin-profile-price-summary span {
    color: #5e7390;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-profile-price-summary strong {
    margin-top: 5px;
    color: #153f79;
    font-size: 10px;
}

.admin-profile-sync-card {
    padding: 15px;
}

.admin-profile-sync-card > label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.admin-profile-sync-card input {
    margin-top: 3px;
}

.admin-profile-sync-card label span,
.admin-profile-sync-card label strong,
.admin-profile-sync-card label small {
    display: block;
}

.admin-profile-sync-card label strong {
    color: #183a67;
    font-size: 10px;
}

.admin-profile-sync-card label small {
    margin-top: 5px;
    color: #687990;
    font-size: 8px;
    line-height: 1.5;
}

.admin-profile-sync-warning {
    margin-top: 12px;
    padding: 9px 10px;
    color: #865418;
    border: 1px solid #e1c694;
    background: #fff8e7;
    font-size: 8px;
    line-height: 1.5;
}

.admin-profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 10px;
    padding: 13px 15px;
    border: 1px solid #cbd6e2;
    background: #fff;
}

.admin-profile-form-actions a,
.admin-profile-form-actions button {
    display: inline-grid;
    min-width: 118px;
    min-height: 40px;
    padding: 0 15px;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
}

.admin-profile-form-actions a {
    color: #53647c;
    background: #e8edf4;
}

.admin-profile-form-actions button {
    color: #fff;
    background: #159255;
}

@media (max-width: 1050px) {
    .admin-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-profile-mapping-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .admin-profiles-hero,
    .admin-profile-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-profiles-hero > div:last-child,
    .profile-current-type {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .admin-profiles-filter,
    .admin-profile-main-fields,
    .admin-profile-mapping-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .admin-profile-stats {
        grid-template-columns: 1fr;
    }

    .admin-profile-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}


/* ================================================================
   PARTNER SEARCH RESPONSIVE TABLE v21.4
   No horizontal scrolling on desktop/tablet landscape.
   ================================================================ */

@media (min-width: 901px) {
    .partner-workspace {
        grid-template-columns:
            minmax(0, 1fr)
            clamp(245px, 20vw, 270px);
    }

    .catalog-panel {
        min-width: 0;
    }

    .results-table-wrap {
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .results-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: clamp(10px, 0.78vw, 12px);
    }

    .results-table th,
    .results-table td {
        min-width: 0;
        padding-right: clamp(4px, 0.55vw, 8px);
        padding-left: clamp(4px, 0.55vw, 8px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .results-table th.select-column {
        width: 38px;
    }

    /* Widths after the radio-button column: total 100%. */
    .results-table th:nth-child(2) { width: 12%; }
    .results-table th:nth-child(3) { width: 17%; }
    .results-table th:nth-child(4) { width: 20%; }
    .results-table th:nth-child(5) { width: 10%; }
    .results-table th:nth-child(6) { width: 7%; }
    .results-table th:nth-child(7) { width: 11%; }
    .results-table th:nth-child(8) { width: 10%; }
    .results-table th:nth-child(9) { width: 13%; }

    .results-table td:nth-child(2),
    .results-table td:nth-child(3),
    .results-table td:nth-child(4),
    .results-table td:nth-child(5),
    .results-table td:nth-child(6),
    .results-table td:nth-child(7) {
        white-space: nowrap;
    }

    .results-table td:nth-child(8),
    .results-table td:nth-child(9) {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .results-table td:nth-child(9) {
        color: #173d70;
        font-weight: 800;
    }
}


/* ================================================================
   OEMBG PDF INVOICES v22
   ================================================================ */

/* Partner header invoice button */
.partner-header {
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(158px, auto)
        auto
        minmax(400px, 1fr);
}

.partner-invoices-link {
    position: relative;
    min-width: 158px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    color: #fff;
    border-left: 1px solid #34445d;
    background: #122540;
    text-decoration: none;
}

.partner-invoices-link:hover,
.partner-invoices-active {
    background: #174f91;
}

.partner-invoice-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: #1767c8;
    font-size: 17px;
    font-weight: 950;
}

.partner-invoice-text strong,
.partner-invoice-text small {
    display: block;
}

.partner-invoice-text strong {
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.partner-invoice-text small {
    margin-top: 4px;
    color: #aebed3;
    font-size: 8px;
}

.partner-invoices-link em {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 5px;
    color: #fff;
    background: #df4d5a;
    font-size: 7px;
    font-style: normal;
    font-weight: 950;
}

/* Partner invoices page */
.partner-invoices-page {
    min-height: 620px;
    padding: 10px;
    background: #e8edf4;
}

.partner-invoices-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(
        115deg,
        #071a34 0%,
        #103c72 72%,
        #1555a4 100%
    );
}

.partner-invoices-hero > div:first-child > span {
    color: #ff8425;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.3px;
}

.partner-invoices-hero h1 {
    margin: 6px 0 0;
    font-size: 25px;
}

.partner-invoices-hero p {
    margin: 7px 0 0;
    color: #b1c1d7;
    font-size: 10px;
}

.partner-invoices-hero > div:last-child {
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.2);
    text-align: right;
}

.partner-invoices-hero > div:last-child span,
.partner-invoices-hero > div:last-child strong {
    display: block;
}

.partner-invoices-hero > div:last-child span {
    color: #a8bad1;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.partner-invoices-hero > div:last-child strong {
    margin-top: 6px;
    font-size: 23px;
}

.partner-invoices-panel {
    margin-top: 10px;
    border: 1px solid #becad8;
    background: #fff;
}

.partner-invoices-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    border-bottom: 1px solid #d7e0ea;
    background: #f7f9fc;
}

.partner-invoices-panel-heading span {
    color: #1760b7;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1px;
}

.partner-invoices-panel-heading h2 {
    margin: 4px 0 0;
    color: #172f52;
    font-size: 15px;
}

.partner-invoices-panel-heading small {
    color: #6d7d92;
    font-size: 9px;
}

.partner-invoices-table-wrap {
    overflow-x: auto;
}

.partner-invoices-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 10px;
}

.partner-invoices-table th {
    padding: 11px 10px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
}

.partner-invoices-table td {
    padding: 13px 10px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.partner-invoices-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.partner-invoices-table td strong {
    color: #173e72;
}

.partner-invoice-new {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 5px;
    color: #fff;
    background: #df4d5a;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.partner-invoice-amount {
    color: #176541;
    font-weight: 950;
}

.partner-invoice-download {
    display: inline-grid;
    min-height: 34px;
    padding: 0 11px;
    place-items: center;
    color: #fff;
    background: #1764c3;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.partner-invoices-empty {
    padding: 38px !important;
    color: #6d7d92;
    text-align: center;
}

/* Admin invoices */
.admin-invoices-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 21px 22px;
    color: #fff;
    background: linear-gradient(
        115deg,
        #071a34 0%,
        #103c72 70%,
        #1458ad 100%
    );
}

.admin-invoices-hero > div:first-child > span {
    color: #ff8425;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.admin-invoices-hero h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.admin-invoices-hero p {
    max-width: 700px;
    margin: 7px 0 0;
    color: #afc0d7;
    font-size: 10px;
    line-height: 1.55;
}

.admin-invoices-hero > div:last-child {
    min-width: 170px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.2);
    text-align: right;
}

.admin-invoices-hero > div:last-child span,
.admin-invoices-hero > div:last-child strong,
.admin-invoices-hero > div:last-child small {
    display: block;
}

.admin-invoices-hero > div:last-child span {
    color: #9fb2cb;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-invoices-hero > div:last-child strong {
    margin-top: 6px;
    font-size: 23px;
}

.admin-invoices-hero > div:last-child small {
    margin-top: 5px;
    color: #b2c2d7;
    font-size: 8px;
}

.admin-invoice-upload-panel,
.admin-invoice-list-panel {
    margin-top: 10px;
    border: 1px solid #cbd6e2;
    background: #fff;
}

.admin-invoice-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #d8e1eb;
    background: #f7f9fc;
}

.admin-invoice-section-heading > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: #1764c3;
    font-size: 9px;
    font-weight: 950;
}

.admin-invoice-section-heading h3 {
    margin: 0;
    color: #172f52;
    font-size: 14px;
}

.admin-invoice-section-heading p {
    margin: 4px 0 0;
    color: #6b7b91;
    font-size: 8px;
}

.admin-invoice-upload-form {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.4fr)
        minmax(150px, .8fr)
        145px
        130px
        minmax(145px, .8fr)
        minmax(210px, 1.1fr)
        auto;
    gap: 9px;
    align-items: end;
    padding: 15px;
}

.admin-invoice-upload-form label > span {
    display: block;
    margin-bottom: 5px;
    color: #65768d;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-invoice-upload-form input,
.admin-invoice-upload-form select {
    width: 100%;
    min-height: 40px;
    padding: 0 9px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 9px;
    font-weight: 750;
}

.admin-invoice-upload-form input[type="file"] {
    padding: 8px;
}

.admin-invoice-upload-form > button {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    color: #fff;
    background: #159255;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-invoice-table-wrap {
    overflow-x: auto;
}

.admin-invoice-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
    font-size: 9px;
}

.admin-invoice-table th {
    padding: 10px 9px;
    color: #263a58;
    background: #e8eef6;
    text-align: left;
    white-space: nowrap;
}

.admin-invoice-table td {
    padding: 10px 9px;
    border-top: 1px solid #e0e6ed;
    vertical-align: middle;
}

.admin-invoice-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-invoice-table td strong,
.admin-invoice-table td small {
    display: block;
}

.admin-invoice-table td strong {
    color: #173e72;
}

.admin-invoice-table td small {
    margin-top: 4px;
    color: #7a899c;
    font-size: 8px;
}

.admin-invoice-amount {
    color: #176541;
    font-weight: 950;
}

.admin-invoice-pdf-link {
    display: block;
    max-width: 170px;
    overflow: hidden;
    color: #1755a2;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-invoice-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-invoice-row-actions form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-invoice-row-actions input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.admin-invoice-row-actions label,
.admin-invoice-row-actions button {
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-invoice-row-actions label {
    display: inline-grid;
    place-items: center;
    color: #15539f;
    border-color: #91b3de;
    background: #edf4ff;
}

.admin-invoice-row-actions button {
    color: #fff;
    border-color: #1764c3;
    background: #1764c3;
}

.admin-invoice-row-actions .admin-invoice-delete {
    color: #9d3039;
    border-color: #d8a7ac;
    background: #fff1f2;
}

@media (max-width: 1250px) {
    .partner-header {
        grid-template-columns:
            minmax(210px, 1fr)
            minmax(145px, auto)
            auto;
    }

    .partner-actions {
        grid-column: 1 / -1;
        border-top: 1px solid #2b3a52;
    }

    .admin-invoice-upload-form {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-invoice-upload-form > button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .partner-header {
        grid-template-columns: 1fr auto auto;
    }

    .partner-invoices-link {
        min-width: 54px;
        padding: 8px;
    }

    .partner-invoice-text {
        display: none;
    }

    .partner-invoices-link em {
        top: 5px;
        right: 4px;
    }

    .partner-balance {
        min-width: 125px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .partner-invoices-hero,
    .admin-invoices-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .partner-invoices-hero > div:last-child,
    .admin-invoices-hero > div:last-child {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .partner-invoices-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-invoice-upload-form {
        grid-template-columns: 1fr;
    }

    .admin-invoice-upload-form > button {
        grid-column: auto;
    }
}


/* ================================================================
   OEMBG INVOICES v22.1 — discreet client-area link
   ================================================================ */

/* Restore the compact three-part header. */
.partner-header {
    grid-template-columns:
        minmax(250px, 1fr)
        auto
        minmax(420px, 1fr);
}

/* The standalone invoice tile is intentionally removed. */
.partner-invoices-link {
    display: none !important;
}

/* Client name remains primary; settings and invoices are small links below. */
.partner-client-box {
    display: flex;
    min-width: 190px;
    flex-direction: column;
    justify-content: center;
    color: inherit;
    background: transparent;
}

.partner-client-box:hover {
    background: transparent;
    box-shadow: none;
}

.partner-client-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 5px;
    color: #6f829f;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.partner-client-mini-link {
    position: relative;
    color: #8ea0b9;
    text-decoration: none;
    transition: color .15s;
}

.partner-client-mini-link:hover,
.partner-client-mini-link-active {
    color: #fff;
}

.partner-client-mini-link-active {
    text-decoration: underline;
    text-decoration-color: #ff7a1a;
    text-underline-offset: 3px;
}

.partner-client-mini-link em {
    display: inline-grid;
    min-width: 15px;
    height: 15px;
    margin-left: 3px;
    padding: 0 4px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #df4d5a;
    font-size: 7px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}

/* Undo the four-column responsive rules added by v22. */
@media (max-width: 1250px) {
    .partner-header {
        grid-template-columns: 1fr auto;
    }

    .partner-balance {
        grid-row: 1;
        grid-column: 2;
    }

    .partner-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .partner-header {
        grid-template-columns: 1fr auto;
    }

    .partner-client-box {
        min-width: 0;
    }

    .partner-client-links {
        flex-wrap: wrap;
        row-gap: 3px;
    }
}


/* ================================================================
   OEMBG IMPORT FIELD MAPPING v23
   ================================================================ */

.admin-import-mapping-panel {
    margin-top: 10px;
    border: 1px solid #bcc9d8;
    background: #fff;
}

.admin-import-mapping-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 17px;
    border-bottom: 1px solid #dce4ed;
    background: #eef5fd;
}

.admin-import-mapping-intro strong {
    color: #173b6c;
    font-size: 11px;
}

.admin-import-mapping-intro p {
    max-width: 780px;
    margin: 5px 0 0;
    color: #5f7188;
    font-size: 9px;
    line-height: 1.5;
}

.admin-import-mapping-intro > span {
    flex: 0 0 auto;
    padding: 8px 10px;
    color: #1457a5;
    border: 1px solid #a9c5e8;
    background: #fff;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-import-profile-fields {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        minmax(220px, .8fr);
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid #e0e6ee;
}

.admin-import-profile-fields label > span,
.admin-import-mapping-grid label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #53667e;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-import-profile-fields input,
.admin-import-profile-fields select,
.admin-import-mapping-grid select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #aab7c7;
    color: #172b48;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.admin-import-profile-fields input:focus,
.admin-import-profile-fields select:focus,
.admin-import-mapping-grid select:focus {
    outline: 2px solid rgba(23, 100, 195, .18);
    border-color: #1764c3;
}

.admin-import-mapping-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 11px;
    padding: 16px 17px;
}

.admin-import-mapping-grid label {
    min-width: 0;
    padding: 11px;
    border: 1px solid #d7e0ea;
    background: #fafbfd;
}

.admin-import-mapping-grid label.mapping-required {
    border-left: 3px solid #ff7a1a;
}

.admin-import-mapping-grid label b {
    padding: 3px 5px;
    color: #a44b08;
    background: #fff0e2;
    font-size: 6px;
    letter-spacing: .3px;
}

.admin-import-mapping-grid label small {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    color: #7a899c;
    font-size: 7px;
    line-height: 1.35;
}

.admin-import-mapping-note {
    padding: 11px 17px;
    color: #5e6e82;
    border-top: 1px solid #e0e6ee;
    background: #fffaf2;
    font-size: 9px;
    line-height: 1.5;
}

.admin-import-mapping-note strong {
    color: #b35c14;
}

@media (max-width: 1180px) {
    .admin-import-mapping-grid {
        grid-template-columns: repeat(2, minmax(210px, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-import-mapping-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-import-profile-fields,
    .admin-import-mapping-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG SPECIAL ORDER PRICES v24
   ================================================================ */

.orders-price-success {
    margin: 10px 0;
    padding: 11px 14px;
    color: #0d6840;
    border: 1px solid #8fd2b3;
    background: #effbf5;
    font-size: 10px;
    font-weight: 900;
}

.order-adjusted-total small,
.order-footer > div small,
.admin-order-total-adjusted del {
    display: block;
    color: #91a0b2;
    font-size: 8px;
    font-weight: 800;
    text-decoration-thickness: 1px;
}

.order-adjusted-total strong,
.order-footer > div strong {
    color: #0c7547;
}

.order-special-price-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 13px;
    border-bottom: 1px solid;
    font-size: 9px;
}

.order-special-price-state strong,
.order-special-price-state span {
    display: block;
}

.order-special-price-state strong {
    font-size: 10px;
}

.order-special-price-state span {
    margin-top: 3px;
    color: #65758a;
}

.order-special-price-state.price-pending {
    color: #9a4d09;
    border-color: #f0c38f;
    background: #fff7ed;
}

.order-special-price-state.price-accepted {
    color: #10623e;
    border-color: #9fd4ba;
    background: #effaf4;
}

.order-price del {
    display: block;
    color: #8d98a7;
    font-size: 8px;
    text-decoration-thickness: 1px;
}

.special-price-value,
.admin-special-price-value {
    display: block;
    margin-top: 3px;
    color: #087247 !important;
    font-weight: 950 !important;
}

.order-price-offer-row td {
    padding: 0 !important;
    border-top: 0 !important;
}

.order-price-offer {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        145px
        auto;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid #d9e2ec;
    border-bottom: 1px solid #d9e2ec;
    background: #f8fbff;
}

.order-price-offer.price-status-pending {
    border-left: 4px solid #ff7a1a;
    background: #fff9f2;
}

.order-price-offer.price-status-accepted {
    border-left: 4px solid #159255;
    background: #f2fbf6;
}

.order-price-offer.price-status-expired,
.order-price-offer.price-status-cancelled {
    border-left: 4px solid #9aa7b6;
    background: #f5f7f9;
}

.order-price-offer-main > span {
    color: #1764c3;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.order-price-offer-main > strong {
    display: block;
    margin-top: 4px;
    color: #173a67;
    font-size: 10px;
}

.order-price-offer-main p {
    margin: 5px 0 0;
    color: #53667e;
    font-size: 9px;
}

.order-price-offer-main small {
    display: block;
    margin-top: 5px;
    color: #8b5a27;
    font-size: 8px;
    font-weight: 850;
}

.order-price-saving {
    padding: 8px 10px;
    border: 1px solid #a6d4bd;
    background: #fff;
    text-align: center;
}

.order-price-saving span,
.order-price-saving strong {
    display: block;
}

.order-price-saving span {
    color: #64758a;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-price-saving strong {
    margin-top: 4px;
    color: #087247;
    font-size: 14px;
}

.order-price-offer form button,
.order-price-accepted-mark {
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    color: #fff;
    background: #159255;
    font-size: 9px;
    font-weight: 950;
    white-space: nowrap;
}

.order-price-offer form button {
    cursor: pointer;
}

.order-price-accepted-mark {
    display: grid;
    place-items: center;
}

/* Admin */
.admin-order-total-adjusted del {
    margin: 4px 0 1px;
}

.admin-order-price-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding: 12px 15px;
    border: 1px solid;
}

.admin-order-price-state > div span,
.admin-order-price-state > div strong {
    display: block;
}

.admin-order-price-state > div span {
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-order-price-state > div strong {
    margin-top: 4px;
    font-size: 12px;
}

.admin-order-price-state p {
    margin: 0;
    color: #64758a;
    font-size: 9px;
}

.admin-order-price-state.price-pending {
    color: #9b4c08;
    border-color: #efbd83;
    background: #fff7ed;
}

.admin-order-price-state.price-accepted {
    color: #0c6941;
    border-color: #90d0ae;
    background: #effaf4;
}

.admin-special-price-panel {
    margin: 0 14px 14px;
    border: 1px solid #c7d4e2;
    background: #f8fbff;
}

.admin-special-price-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 12px;
    border-bottom: 1px solid #d6e1ec;
    background: #eef5fd;
}

.admin-special-price-heading > div span,
.admin-special-price-heading > div strong {
    display: block;
}

.admin-special-price-heading > div span {
    color: #1764c3;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-special-price-heading > div strong {
    margin-top: 3px;
    color: #173a67;
    font-size: 11px;
}

.admin-special-price-heading em {
    padding: 5px 7px;
    font-size: 7px;
    font-style: normal;
    font-weight: 950;
}

.admin-special-price-heading em.price-status-pending {
    color: #9a4c08;
    background: #ffe8cf;
}

.admin-special-price-heading em.price-status-accepted {
    color: #08613b;
    background: #dff6e9;
}

.admin-special-price-heading em.price-status-cancelled,
.admin-special-price-heading em.price-status-expired {
    color: #59687a;
    background: #e4e9ef;
}

.admin-special-price-form {
    display: grid;
    grid-template-columns:
        minmax(130px, .6fr)
        minmax(160px, .7fr)
        minmax(260px, 1.5fr)
        minmax(145px, .6fr)
        auto;
    gap: 9px;
    align-items: end;
    padding: 12px;
}

.admin-special-price-form label > span {
    display: block;
    margin-bottom: 5px;
    color: #62748b;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-special-price-form input {
    width: 100%;
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid #aab8c9;
    color: #172c4a;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.admin-special-price-form input:disabled {
    color: #68788c;
    background: #edf1f5;
}

.admin-special-price-form > button {
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    color: #fff;
    background: #1764c3;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-special-price-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-top: 1px solid #dce4ed;
    background: #fff;
}

.admin-special-price-summary > div {
    min-width: 120px;
    padding: 7px 9px;
    border: 1px solid #d6e0ea;
}

.admin-special-price-summary > div span,
.admin-special-price-summary > div strong {
    display: block;
}

.admin-special-price-summary > div span {
    color: #718096;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-special-price-summary > div strong {
    margin-top: 4px;
    color: #173a67;
    font-size: 10px;
}

.admin-special-price-summary > div:nth-child(3) strong {
    color: #087247;
}

.admin-special-price-summary form {
    margin-left: auto;
}

.admin-special-price-summary form button {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #d89fa5;
    color: #9c3039;
    background: #fff2f3;
    cursor: pointer;
    font-size: 7px;
    font-weight: 950;
}

.admin-special-price-history {
    border-top: 1px solid #dce4ed;
    background: #fff;
}

.admin-special-price-history summary {
    padding: 9px 12px;
    color: #17549e;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

.admin-special-price-history > div {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px;
}

.admin-special-price-history article {
    display: grid;
    grid-template-columns:
        minmax(170px, 1fr)
        140px
        minmax(170px, .8fr);
    gap: 10px;
    padding: 8px 9px;
    border: 1px solid #e0e6ed;
    background: #fafbfd;
    font-size: 8px;
}

.admin-special-price-history article strong {
    color: #173a67;
}

.admin-special-price-history article span {
    color: #087247;
    font-weight: 900;
}

.admin-special-price-history article small {
    color: #718096;
}

.admin-special-price-history article p {
    grid-column: 1 / -1;
    margin: 0;
    color: #5e6e82;
}

@media (max-width: 1180px) {
    .admin-special-price-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .admin-special-price-form > button {
        grid-column: 1 / -1;
    }

    .order-price-offer {
        grid-template-columns: 1fr 145px;
    }

    .order-price-offer form,
    .order-price-accepted-mark {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .order-price-offer {
        grid-template-columns: 1fr;
    }

    .admin-order-price-state,
    .admin-special-price-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-special-price-summary form {
        margin-left: 0;
    }

    .admin-special-price-form {
        grid-template-columns: 1fr;
    }

    .admin-special-price-form > button {
        grid-column: auto;
    }

    .admin-special-price-history article {
        grid-template-columns: 1fr;
    }

    .admin-special-price-history article p {
        grid-column: auto;
    }
}


/* ================================================================
   OEMBG SPECIAL PRICE BALANCE v24.1
   ================================================================ */

.order-price-applying-mark {
    display: grid;
    min-height: 38px;
    padding: 0 13px;
    place-items: center;
    color: #745018;
    border: 1px solid #dfbd77;
    background: #fff5dc;
    font-size: 9px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-special-price-summary > div:nth-child(4) strong {
    color: #1764c3;
}


/* ================================================================
   OEMBG ADMIN SUPPLIER EXCEL EXPORT v25
   ================================================================ */

.admin-order-supplier-export {
    display: grid;
    min-height: 42px;
    grid-template-columns: 28px auto;
    grid-template-rows: auto auto;
    column-gap: 7px;
    align-content: center;
    padding: 5px 10px;
    color: #fff;
    border: 1px solid #2478d8;
    background: #1764c3;
    text-decoration: none;
}

.admin-order-supplier-export > span {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    font-size: 17px;
    font-weight: 950;
}

.admin-order-supplier-export strong,
.admin-order-supplier-export small {
    display: block;
    white-space: nowrap;
}

.admin-order-supplier-export strong {
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-order-supplier-export small {
    margin-top: 2px;
    color: #c7dcf7;
    font-size: 7px;
}

.admin-order-supplier-export:hover {
    background: #0f55aa;
}

.admin-order-items-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-order-items-heading-actions > span {
    max-width: 390px;
    color: #75869b;
    font-size: 8px;
    font-weight: 750;
    text-align: right;
}

@media (max-width: 1080px) {
    .admin-order-supplier-export small {
        display: none;
    }

    .admin-order-supplier-export {
        grid-template-rows: auto;
    }

    .admin-order-supplier-export > span {
        grid-row: 1;
    }
}

@media (max-width: 720px) {
    .admin-order-supplier-export strong {
        display: none;
    }

    .admin-order-supplier-export {
        display: grid;
        min-width: 40px;
        padding: 5px;
    }

    .admin-order-items-heading-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .admin-order-items-heading-actions > span {
        text-align: right;
    }
}


/* ================================================================
   OEMBG LIGHT PARTNER LOGIN v26
   ================================================================ */

.partner-login-page {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: #10253f;
    background:
        radial-gradient(circle at 50% 9%, rgba(33, 116, 230, .08), transparent 27%),
        linear-gradient(135deg, #f9fcff 0%, #fff 48%, #f4f9ff 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.partner-login-page *,
.partner-login-page *::before,
.partner-login-page *::after {
    box-sizing: border-box;
}

.partner-login-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.partner-login-content {
    position: relative;
    z-index: 3;
    width: min(760px, calc(100% - 40px));
    padding: 28px 0 20px;
}

.partner-login-europe {
    position: absolute;
    z-index: 0;
    top: -20px;
    left: -25px;
    width: min(48vw, 720px);
    opacity: .95;
    pointer-events: none;
}

.partner-login-europe svg,
.partner-login-parts svg,
.partner-login-tech svg {
    display: block;
    width: 100%;
    height: auto;
}

.partner-login-europe .europe-shape {
    fill: rgba(87, 145, 215, .08);
    stroke: rgba(59, 126, 215, .13);
    stroke-width: 2;
}

.partner-login-europe .supplier-routes path {
    fill: none;
    stroke: #1873e8;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 4 7;
    opacity: .82;
}

.partner-login-europe .supplier-points circle {
    fill: #1675ef;
    stroke: #fff;
    stroke-width: 4;
}

.partner-login-europe .supplier-points .hub-point {
    fill: #ff7a1a;
}

.partner-login-parts {
    position: absolute;
    z-index: 1;
    left: -35px;
    bottom: -35px;
    width: min(43vw, 630px);
    pointer-events: none;
}

.partner-login-parts .parts-faded {
    fill: rgba(70, 103, 139, .07);
    stroke: rgba(55, 91, 130, .17);
    stroke-width: 7;
}

.partner-login-parts .disc-hole,
.partner-login-parts .disc-drills circle {
    fill: #f7fbff;
    stroke-width: 5;
}

.partner-login-parts .caliper {
    fill: rgba(66, 105, 147, .09);
}

.partner-login-parts .filter-lines {
    fill: none;
    stroke-width: 5;
}

.partner-login-parts .bearing-inner {
    fill: #f7fbff;
}

.partner-login-tech {
    position: absolute;
    z-index: 0;
    right: -70px;
    top: 0;
    width: min(39vw, 620px);
    opacity: .55;
    pointer-events: none;
}

.partner-login-tech .tech-hexagons {
    fill: none;
    stroke: rgba(54, 132, 235, .18);
    stroke-width: 2;
}

.partner-login-tech .tech-circuits {
    fill: none;
    stroke: rgba(31, 119, 236, .3);
    stroke-width: 2;
}

.partner-login-tech .tech-circuits circle {
    fill: rgba(31, 119, 236, .38);
    stroke: none;
}

.partner-login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.partner-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.partner-login-logo-mark {
    width: 92px;
    height: 74px;
    overflow: visible;
}

.partner-login-logo-mark .logo-house {
    fill: none;
    stroke: #071c36;
    stroke-width: 10;
    stroke-linejoin: round;
}

.partner-login-logo-mark .logo-route {
    fill: none;
    stroke: #1674e8;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.partner-login-logo-mark .logo-node {
    fill: #1674e8;
}

.partner-login-logo-mark .logo-gears path {
    fill: #0b2543;
}

.partner-login-logo-mark .logo-gears circle {
    fill: #fff;
}

.partner-login-logo-mark .logo-swoosh-blue {
    fill: #0b65d7;
}

.partner-login-logo-mark .logo-swoosh-orange {
    fill: #ff6a00;
}

.partner-login-wordmark {
    display: flex;
    align-items: baseline;
    letter-spacing: -3px;
    white-space: nowrap;
}

.partner-login-wordmark strong {
    color: #071c36;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 900;
    line-height: 1;
}

.partner-login-wordmark span {
    margin-left: 3px;
    color: #086adf;
    font-size: clamp(30px, 3.7vw, 48px);
    font-weight: 800;
    letter-spacing: -2px;
}

.partner-login-card {
    position: relative;
    border: 1px solid rgba(140, 164, 192, .34);
    border-radius: 24px;
    padding: 34px 52px 28px;
    background: rgba(255, 255, 255, .93);
    box-shadow:
        0 25px 70px rgba(31, 73, 119, .13),
        0 4px 16px rgba(31, 73, 119, .06);
    backdrop-filter: blur(18px);
}

.partner-login-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 30%;
    width: 40%;
    height: 3px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, #1780f7, transparent);
    box-shadow: 0 0 18px rgba(23, 128, 247, .5);
}

.partner-login-card-heading {
    text-align: center;
}

.partner-login-kicker {
    display: block;
    margin-bottom: 8px;
    color: #1470db;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.partner-login-card-heading h1 {
    margin: 0;
    color: #0b2039;
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.2;
}

.partner-login-card-heading p {
    margin: 10px 0 0;
    color: #718199;
    font-size: 16px;
}

.partner-login-error {
    margin: 20px 0 -5px;
    padding: 11px 13px;
    color: #9b2630;
    border: 1px solid #e4a6ab;
    border-radius: 9px;
    background: #fff3f4;
    font-size: 13px;
    font-weight: 700;
}

.partner-login-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.partner-login-form > label > span {
    display: block;
    margin-bottom: 7px;
    color: #172c46;
    font-size: 14px;
    font-weight: 700;
}

.partner-login-field {
    position: relative;
    display: flex;
    min-height: 57px;
    align-items: center;
    border: 1px solid #c8d4e2;
    border-radius: 9px;
    background: #fff;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.partner-login-field:focus-within {
    border-color: #1876e8;
    box-shadow: 0 0 0 4px rgba(24, 118, 232, .1);
}

.partner-login-field > svg {
    flex: 0 0 auto;
    width: 23px;
    margin-left: 16px;
    fill: none;
    stroke: #647a96;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-login-field input {
    min-width: 0;
    flex: 1;
    height: 55px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: #122943;
    background: transparent;
    font: inherit;
    font-size: 15px;
}

.partner-login-field input::placeholder {
    color: #8998ab;
}

.partner-password-toggle {
    display: grid;
    width: 55px;
    height: 55px;
    padding: 0;
    place-items: center;
    border: 0;
    outline: 0;
    color: #657b96;
    background: transparent;
    cursor: pointer;
}

.partner-password-toggle svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.partner-password-toggle:hover {
    color: #086adf;
}

.partner-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: -4px;
}

.partner-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #253a52;
    font-size: 14px;
    cursor: pointer;
}

.partner-remember input {
    width: 18px;
    height: 18px;
    accent-color: #086adf;
}

.partner-login-options a {
    color: #086adf;
    font-size: 14px;
    text-decoration: none;
}

.partner-login-options a:hover {
    text-decoration: underline;
}

.partner-login-submit {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #1579ee 0%, #075bc7 100%);
    box-shadow: 0 9px 18px rgba(7, 91, 199, .19);
    cursor: pointer;
    font-size: 19px;
    font-weight: 800;
    transition:
        transform .12s ease,
        box-shadow .12s ease;
}

.partner-login-submit svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(7, 91, 199, .25);
}

.partner-login-submit:active {
    transform: translateY(0);
}

.partner-login-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    color: #6e7f94;
    font-size: 14px;
}

.partner-login-help svg {
    width: 23px;
    fill: none;
    stroke: #086adf;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-login-footer {
    padding-top: 22px;
}

.partner-login-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.partner-login-features > i {
    width: 1px;
    height: 45px;
    background: #ccd8e6;
}

.partner-login-features article {
    display: flex;
    align-items: center;
    gap: 11px;
}

.partner-login-features article > div:last-child {
    display: grid;
    gap: 4px;
}

.partner-login-features strong {
    color: #112741;
    font-size: 13px;
}

.partner-login-features span {
    color: #6d7e93;
    font-size: 11px;
}

.feature-icon {
    display: grid;
    width: 51px;
    height: 51px;
    place-items: center;
    color: #086adf;
    border: 2px solid #2580ed;
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
    background: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 900;
}

.feature-icon svg {
    width: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-login-footer > p {
    margin: 20px 0 0;
    color: #75859a;
    font-size: 11px;
    text-align: center;
}

.partner-login-footer > p b {
    margin: 0 8px;
    color: #406995;
}

@media (max-width: 1000px) {
    .partner-login-europe {
        width: 60vw;
        opacity: .6;
    }

    .partner-login-parts {
        width: 52vw;
        opacity: .7;
    }

    .partner-login-tech {
        width: 50vw;
    }
}

@media (max-width: 720px) {
    .partner-login-shell {
        align-items: start;
    }

    .partner-login-content {
        width: min(100% - 24px, 560px);
        padding-top: 18px;
    }

    .partner-login-logo-mark {
        width: 67px;
        height: 56px;
    }

    .partner-login-wordmark strong {
        font-size: 38px;
    }

    .partner-login-wordmark span {
        font-size: 27px;
    }

    .partner-login-card {
        padding: 27px 20px 23px;
        border-radius: 18px;
    }

    .partner-login-card-heading p {
        font-size: 14px;
    }

    .partner-login-europe {
        top: 0;
        left: -130px;
        width: 560px;
        opacity: .34;
    }

    .partner-login-parts {
        left: -190px;
        bottom: -20px;
        width: 560px;
        opacity: .45;
    }

    .partner-login-tech {
        right: -230px;
        width: 540px;
        opacity: .3;
    }

    .partner-login-features {
        gap: 12px;
    }

    .partner-login-features > i {
        display: none;
    }

    .partner-login-features article {
        flex: 1;
        justify-content: center;
    }

    .partner-login-features article > div:last-child {
        display: none;
    }

    .partner-login-footer > p {
        margin-top: 14px;
    }
}

@media (max-width: 420px) {
    .partner-login-logo {
        gap: 3px;
    }

    .partner-login-logo-mark {
        width: 58px;
    }

    .partner-login-wordmark strong {
        font-size: 33px;
        letter-spacing: -2px;
    }

    .partner-login-wordmark span {
        font-size: 23px;
        letter-spacing: -1px;
    }

    .partner-login-card-heading h1 {
        font-size: 24px;
    }

    .partner-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .partner-login-help {
        align-items: flex-start;
        font-size: 12px;
        text-align: left;
    }

    .partner-login-form {
        gap: 15px;
    }
}


/* ================================================================
   OEMBG LIGHT PARTNER LOGIN v26.1 — compact desktop refinement
   ================================================================ */

@media (min-width: 721px) {
    .partner-login-shell {
        min-height: 100vh;
        align-items: center;
    }

    .partner-login-content {
        width: min(690px, calc(100% - 40px));
        padding: 14px 0 12px;
    }

    .partner-login-brand {
        margin-bottom: 8px;
    }

    .partner-login-logo {
        transform: scale(.88);
        transform-origin: center bottom;
    }

    .partner-login-card {
        padding: 24px 46px 20px;
        border-radius: 20px;
    }

    .partner-login-card-heading h1 {
        font-size: 32px;
    }

    .partner-login-card-heading p {
        margin-top: 7px;
        font-size: 14px;
    }

    .partner-login-kicker {
        margin-bottom: 5px;
        font-size: 8px;
    }

    .partner-login-form {
        gap: 13px;
        margin-top: 21px;
    }

    .partner-login-form > label > span {
        margin-bottom: 5px;
        font-size: 13px;
    }

    .partner-login-field {
        min-height: 50px;
    }

    .partner-login-field input,
    .partner-password-toggle {
        height: 48px;
    }

    .partner-login-field input {
        font-size: 14px;
    }

    .partner-login-submit {
        min-height: 50px;
        font-size: 17px;
    }

    .partner-login-help {
        margin-top: 17px;
        font-size: 13px;
    }

    .partner-login-footer {
        padding-top: 13px;
    }

    .partner-login-features {
        gap: 22px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }

    .partner-login-footer > p {
        margin-top: 12px;
    }

    .partner-login-parts {
        left: -70px;
        bottom: -85px;
        width: min(39vw, 560px);
        opacity: .42;
        filter: grayscale(1) contrast(.75) brightness(1.18);
    }

    .partner-login-parts .parts-faded {
        fill: rgba(85, 112, 142, .055);
        stroke: rgba(70, 99, 132, .12);
    }

    .partner-login-europe {
        top: -35px;
        left: -35px;
        width: min(43vw, 650px);
        opacity: .75;
    }

    .partner-login-tech {
        right: -90px;
        width: min(35vw, 560px);
        opacity: .4;
    }
}

@media (min-width: 721px) and (max-height: 820px) {
    .partner-login-content {
        transform: scale(.92);
        transform-origin: center center;
    }
}

@media (min-width: 721px) and (max-height: 740px) {
    .partner-login-content {
        transform: scale(.84);
    }
}


/* ================================================================
   OEMBG STRICT PARTNER LOGIN v26.2
   Final wordmark: clean, technical, no symbol and no leading dots.
   ================================================================ */

.partner-login-logo {
    gap: 0 !important;
}

.partner-login-wordmark {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    transform: skewX(-7deg);
    transform-origin: center;
    letter-spacing: -4px;
    filter: drop-shadow(0 4px 8px rgba(13, 55, 102, .08));
}

.partner-login-wordmark strong,
.partner-login-wordmark span {
    font-family:
        "Bahnschrift SemiCondensed",
        "Bahnschrift",
        "Arial Narrow",
        "Arial Black",
        Arial,
        sans-serif;
    font-style: normal;
    font-variation-settings: "wdth" 82;
    line-height: .92;
}

.partner-login-wordmark strong {
    color: #061b36;
    font-size: clamp(48px, 5.2vw, 70px);
    font-weight: 700;
}

.partner-login-wordmark span {
    margin-left: 5px;
    color: #086ae1;
    font-size: clamp(36px, 4vw, 53px);
    font-weight: 650;
    letter-spacing: -3px;
}

.partner-login-wordmark::after {
    content: "";
    position: absolute;
    right: 2%;
    bottom: -8px;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1474e7);
    opacity: .45;
}

.partner-login-brand {
    margin-bottom: 12px;
}

/* Supplier routes remain in the background, but do not create a logo icon. */
.partner-login-europe .supplier-routes path {
    stroke-width: 1.8;
    stroke-dasharray: 3 6;
    opacity: .55;
}

.partner-login-europe .supplier-points circle {
    opacity: .82;
}

.partner-login-europe .supplier-points .hub-point {
    fill: #1675ef;
    r: 8px;
}

/* Strict visual treatment. */
.partner-login-card {
    border-color: rgba(122, 148, 179, .34);
    box-shadow:
        0 22px 58px rgba(24, 66, 112, .10),
        0 3px 10px rgba(24, 66, 112, .045);
}

.partner-login-card::before {
    height: 2px;
    box-shadow: none;
    opacity: .7;
}

.partner-login-submit {
    border-radius: 5px;
    background: linear-gradient(180deg, #0874e8 0%, #075fc8 100%);
}

.partner-login-field {
    border-radius: 6px;
}

.partner-login-kicker {
    letter-spacing: 2.4px;
}

@media (max-width: 720px) {
    .partner-login-wordmark {
        transform: skewX(-6deg);
        letter-spacing: -2px;
    }

    .partner-login-wordmark strong {
        font-size: 40px;
    }

    .partner-login-wordmark span {
        margin-left: 3px;
        font-size: 29px;
        letter-spacing: -2px;
    }

    .partner-login-wordmark::after {
        bottom: -5px;
    }
}

@media (max-width: 420px) {
    .partner-login-wordmark strong {
        font-size: 35px;
    }

    .partner-login-wordmark span {
        font-size: 25px;
    }
}


/* ================================================================
   OEMBG ANGULAR TECHNICAL WORDMARK v26.3
   Custom SVG geometry — no font fallback and no rounded lettering.
   ================================================================ */

.partner-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
}

.partner-login-wordmark,
.partner-login-wordmark::after {
    display: none !important;
}

.partner-login-wordmark-svg {
    display: block;
    width: min(100%, 470px);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 4px 8px rgba(13, 55, 102, .08));
}

.partner-login-wordmark-svg .wordmark-main {
    fill: #061b36;
}

.partner-login-wordmark-svg .wordmark-accent {
    fill: #086ae1;
}

.partner-login-brand {
    margin-bottom: 11px;
}

@media (min-width: 721px) {
    .partner-login-logo {
        transform: none !important;
    }

    .partner-login-wordmark-svg {
        width: 430px;
    }
}

@media (max-width: 720px) {
    .partner-login-wordmark-svg {
        width: min(92vw, 390px);
    }
}

@media (max-width: 420px) {
    .partner-login-wordmark-svg {
        width: min(94vw, 340px);
    }
}


/* ================================================================
   OEMBG CLEAN TECHNICAL WORDMARK v26.4
   Sleek automotive/technical lettering — not blocky, not rounded.
   ================================================================ */

.partner-login-wordmark-svg,
.partner-login-wordmark,
.partner-login-wordmark::after {
    display: none !important;
}

.partner-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
}

.partner-login-wordmark-clean {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    transform: skewX(-8deg) scaleX(1.04);
    transform-origin: center;
    letter-spacing: -4px;
    filter: drop-shadow(0 3px 6px rgba(13, 55, 102, .08));
}

.partner-login-wordmark-clean strong,
.partner-login-wordmark-clean span {
    font-family:
        "Oxanium",
        "Bahnschrift SemiCondensed",
        "Arial Narrow",
        sans-serif;
    font-style: normal;
    line-height: .9;
}

.partner-login-wordmark-clean strong {
    color: #061b36;
    font-size: clamp(49px, 5vw, 68px);
    font-weight: 700;
}

.partner-login-wordmark-clean span {
    margin-left: 5px;
    color: #086ae1;
    font-size: clamp(36px, 3.8vw, 51px);
    font-weight: 600;
    letter-spacing: -3px;
}

.partner-login-brand {
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    .partner-login-wordmark-clean {
        transform: skewX(-7deg) scaleX(1.02);
        letter-spacing: -3px;
    }

    .partner-login-wordmark-clean strong {
        font-size: 41px;
    }

    .partner-login-wordmark-clean span {
        margin-left: 4px;
        font-size: 29px;
        letter-spacing: -2px;
    }
}

@media (max-width: 420px) {
    .partner-login-wordmark-clean strong {
        font-size: 36px;
    }

    .partner-login-wordmark-clean span {
        font-size: 25px;
    }
}


/* ================================================================
   OEMBG ACTIVE ACCESS LINK v26.5
   ================================================================ */

a.partner-login-help {
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    color: #60738b;
    text-decoration: none;
    cursor: pointer;
    transition:
        color .15s ease,
        transform .15s ease;
}

a.partner-login-help svg {
    transition: transform .15s ease;
}

a.partner-login-help:hover,
a.partner-login-help:focus-visible {
    color: #086adf;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.partner-login-help:hover svg,
a.partner-login-help:focus-visible svg {
    transform: translateX(2px);
}

a.partner-login-help:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(8, 106, 223, .16);
    outline-offset: 4px;
}


/* ================================================================
   OEMBG INTERNAL ACCESS REQUESTS v27
   ================================================================ */

.access-request-page {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: #0d2540;
    background:
        radial-gradient(circle at 18% 15%, rgba(15,111,224,.08), transparent 31%),
        linear-gradient(135deg, #f5faff 0%, #fff 52%, #eff6fd 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.access-request-page * {
    box-sizing: border-box;
}

.access-request-shell {
    display: grid;
    min-height: 100vh;
    padding: 30px 16px;
    place-items: center;
}

.access-request-panel {
    width: min(820px, 100%);
    overflow: hidden;
    border: 1px solid #cad7e5;
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 70px rgba(23,65,108,.13);
}

.access-request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid #dce6ef;
    background: #f8fbff;
}

.access-request-brand {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    letter-spacing: -2px;
}

.access-request-brand strong {
    color: #071e39;
    font-size: 29px;
    font-weight: 900;
}

.access-request-brand span {
    color: #0870df;
    font-size: 21px;
    font-weight: 900;
}

.access-request-header > span,
.access-request-title > span,
.access-request-success > span {
    color: #1571dc;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 2px;
}

.access-request-title {
    padding: 30px 34px 14px;
    text-align: center;
}

.access-request-title h1,
.access-request-success h1 {
    margin: 8px 0 0;
    color: #0b223d;
    font-size: 30px;
}

.access-request-title p,
.access-request-success p {
    max-width: 620px;
    margin: 10px auto 0;
    color: #6b7d93;
    font-size: 14px;
    line-height: 1.55;
}

.access-request-error {
    margin: 8px 34px 0;
    padding: 11px 13px;
    color: #9d2530;
    border: 1px solid #e2a2a8;
    border-radius: 7px;
    background: #fff3f4;
    font-size: 13px;
    font-weight: 800;
}

.access-request-form {
    padding: 22px 34px 32px;
}

.access-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.access-request-grid label > span {
    display: block;
    margin-bottom: 6px;
    color: #233b57;
    font-size: 12px;
    font-weight: 850;
}

.access-request-grid input,
.access-request-grid textarea {
    width: 100%;
    border: 1px solid #bdcddd;
    border-radius: 6px;
    outline: 0;
    color: #102a47;
    background: #fff;
    font: inherit;
    font-size: 14px;
}

.access-request-grid input {
    height: 47px;
    padding: 0 12px;
}

.access-request-grid textarea {
    min-height: 100px;
    padding: 11px 12px;
    resize: vertical;
}

.access-request-grid input:focus,
.access-request-grid textarea:focus {
    border-color: #1474e5;
    box-shadow: 0 0 0 4px rgba(20,116,229,.1);
}

.access-request-wide {
    grid-column: 1 / -1;
}

.access-request-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    color: #586b82;
    font-size: 12px;
    line-height: 1.45;
}

.access-request-consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #0870df;
}

.access-request-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 23px;
}

.access-request-actions > a {
    padding: 12px 18px;
    color: #5b6e84;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.access-request-actions > button,
.access-request-primary-link {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #0870df;
    box-shadow: 0 8px 18px rgba(8,112,223,.18);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.access-request-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.access-request-success {
    padding: 62px 34px;
    text-align: center;
}

.access-request-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #148b54;
    font-size: 28px;
    font-weight: 950;
}

.access-request-number {
    width: fit-content;
    margin: 22px auto 0;
    padding: 10px 14px;
    color: #36516f;
    border: 1px solid #bcd0e5;
    background: #f6faff;
    font-size: 13px;
}

.access-request-number strong {
    color: #0870df;
}

.access-request-success > small {
    display: block;
    margin-top: 12px;
    color: #7b8999;
}

.access-request-primary-link {
    margin-top: 25px;
}

/* Admin */
.admin-access-content,
.admin-access-detail-content {
    display: grid;
    gap: 10px;
}

.admin-access-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 8px;
}

.admin-access-stats article {
    padding: 14px 16px;
    border: 1px solid #c8d5e3;
    background: #fff;
}

.admin-access-stats span,
.admin-access-stats strong {
    display: block;
}

.admin-access-stats span {
    color: #718196;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-access-stats strong {
    margin-top: 6px;
    color: #12345c;
    font-size: 20px;
}

.admin-access-stats .stat-new {
    border-top: 3px solid #ff7a1a;
}

.admin-access-filter-card,
.admin-access-list-card,
.admin-access-info-card,
.admin-access-review-card {
    border: 1px solid #c8d5e3;
    background: #fff;
}

.admin-access-filter-card {
    padding: 12px 14px;
}

.admin-access-filter-card form {
    display: grid;
    grid-template-columns: minmax(260px,1fr) 210px auto;
    gap: 10px;
    align-items: end;
}

.admin-access-filter-card label > span,
.admin-access-review-card label > span {
    display: block;
    margin-bottom: 5px;
    color: #6a7c91;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-access-filter-card input,
.admin-access-filter-card select,
.admin-access-review-card select,
.admin-access-review-card textarea {
    width: 100%;
    border: 1px solid #aebdcd;
    color: #162f4e;
    background: #fff;
    font: inherit;
}

.admin-access-filter-card input,
.admin-access-filter-card select,
.admin-access-review-card select {
    min-height: 38px;
    padding: 0 10px;
    font-size: 9px;
}

.admin-access-filter-card button,
.admin-access-review-card button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    color: #fff;
    background: #1764c3;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

.admin-access-list-head,
.admin-access-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #d7e1eb;
    background: #f7faff;
}

.admin-access-list-head span,
.admin-access-card-head span {
    color: #1764c3;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-access-list-head h2,
.admin-access-card-head h3 {
    margin: 4px 0 0;
    color: #173a67;
    font-size: 13px;
}

.admin-access-list-head small {
    color: #7b899a;
    font-size: 8px;
}

.admin-access-table-wrap {
    overflow-x: auto;
}

.admin-access-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8px;
}

.admin-access-table th {
    padding: 9px 10px;
    color: #52677f;
    border-bottom: 1px solid #cbd8e5;
    background: #eaf1f8;
    text-align: left;
    font-size: 7px;
    text-transform: uppercase;
}

.admin-access-table td {
    padding: 10px;
    border-bottom: 1px solid #e1e7ee;
    color: #213a58;
    vertical-align: middle;
}

.admin-access-table td strong,
.admin-access-table td small {
    display: block;
}

.admin-access-table td small {
    margin-top: 3px;
    color: #718196;
}

.admin-access-table td a {
    color: #1764c3;
    text-decoration: none;
}

.admin-access-table .access-row-new {
    background: #fffaf4;
}

.access-status {
    display: inline-block;
    padding: 5px 8px;
    font-size: 7px;
    font-weight: 950;
    white-space: nowrap;
}

.access-status-new { color: #a25008; background: #ffe9d3; }
.access-status-contacted { color: #175fae; background: #e3f0ff; }
.access-status-approved { color: #0c6a40; background: #ddf5e8; }
.access-status-rejected { color: #91333c; background: #fae2e5; }

.admin-access-open {
    font-weight: 950;
    white-space: nowrap;
}

.admin-access-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: #fff;
    background: #084b83;
}

.admin-access-detail-hero > div > span {
    color: #8ed0ff;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-access-detail-hero h2 {
    margin: 5px 0 0;
    font-size: 23px;
}

.admin-access-detail-hero p {
    margin: 5px 0 0;
    color: #c8def1;
    font-size: 8px;
}

.admin-access-detail-grid {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
    gap: 10px;
}

.admin-access-info-card dl {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1px;
    margin: 0;
    background: #dce5ee;
}

.admin-access-info-card dl > div {
    padding: 12px 14px;
    background: #fff;
}

.admin-access-info-card dt {
    color: #718196;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-access-info-card dd {
    margin: 5px 0 0;
    color: #173a67;
    font-size: 10px;
    font-weight: 850;
}

.admin-access-info-card dd a {
    color: #1764c3;
}

.admin-access-message {
    margin: 12px 14px;
    padding: 12px;
    border: 1px solid #d7e1eb;
    background: #f8fafc;
}

.admin-access-message span {
    color: #718196;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-access-message p {
    margin: 7px 0 0;
    color: #354d68;
    font-size: 9px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.admin-access-contact-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
}

.admin-access-contact-actions a {
    padding: 9px 12px;
    color: #1764c3;
    border: 1px solid #a9c5e5;
    background: #f5faff;
    text-decoration: none;
    font-size: 8px;
    font-weight: 950;
}

.admin-access-review-card form {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-access-review-card textarea {
    min-height: 150px;
    padding: 10px;
    resize: vertical;
    font-size: 9px;
}

.admin-access-reviewed {
    display: block;
    padding: 0 14px 14px;
    color: #7b8999;
    font-size: 8px;
}

@media (max-width: 1050px) {
    .admin-access-stats { grid-template-columns: repeat(3,1fr); }
    .admin-access-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .access-request-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 15px 18px;
    }

    .access-request-title,
    .access-request-form,
    .access-request-success {
        padding-right: 18px;
        padding-left: 18px;
    }

    .access-request-grid { grid-template-columns: 1fr; }
    .access-request-wide { grid-column: auto; }

    .access-request-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .access-request-actions > a { text-align: center; }

    .admin-access-stats { grid-template-columns: repeat(2,1fr); }
    .admin-access-filter-card form { grid-template-columns: 1fr; }
    .admin-access-info-card dl { grid-template-columns: 1fr; }
}


/* ================================================================
   OEMBG DEFAULT AFTERMARKET DISCOUNT v28
   ================================================================ */

.admin-client-default-discount {
    padding: 12px;
    border: 1px solid #9fc5ee;
    background: #f3f8ff;
}

.admin-client-default-discount > span {
    color: #0e5fb8 !important;
}

.admin-client-default-discount input {
    border-color: #7cacdf !important;
    background: #fff !important;
}


/* OEMBG PERMANENT ADMIN ORDER DELETE v29 */

.admin-order-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.admin-order-delete-link {
    color: #a52c35 !important;
    text-decoration: none;
    font-size: 7px;
    font-weight: 950;
}

.admin-order-delete-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-order-delete-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(330px, .72fr);
    gap: 20px;
    align-items: center;
    padding: 17px 19px;
    border: 1px solid #dc9ba1;
    border-left: 4px solid #bb2f3b;
    background: #fff8f8;
}

.admin-order-delete-copy > span {
    color: #ad2632;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.admin-order-delete-copy h3 {
    margin: 5px 0 0;
    color: #78202a;
    font-size: 14px;
}

.admin-order-delete-copy p {
    margin: 7px 0 0;
    color: #6e4b50;
    font-size: 8px;
    line-height: 1.55;
}

.admin-order-delete-form {
    display: grid;
    grid-template-columns:
        minmax(190px, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.admin-order-delete-form label > span {
    display: block;
    margin-bottom: 5px;
    color: #6f3c42;
    font-size: 7px;
    font-weight: 850;
}

.admin-order-delete-form label > span strong {
    color: #a41f2c;
}

.admin-order-delete-form input {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #c99096;
    outline: 0;
    color: #62222a;
    background: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
}

.admin-order-delete-form input:focus {
    border-color: #b92b38;
    box-shadow:
        0 0 0 3px rgba(185, 43, 56, .1);
}

.admin-order-delete-form button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    color: #fff;
    background: #b52b37;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

.admin-order-delete-form button:hover {
    background: #98212c;
}

@media (max-width: 980px) {
    .admin-order-delete-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .admin-order-delete-form {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG SUPPLIER DISCOUNT v30
   ================================================================ */

.admin-profile-global-discount {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border: 1px solid #83b7ed;
    background: #f2f8ff;
}

.admin-profile-global-discount > span {
    color: #0c5eaf !important;
}

.admin-profile-global-discount input {
    width: min(260px, 100%);
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #77aadd;
    color: #12395f;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
}

.admin-profile-global-discount input:focus {
    outline: 0;
    border-color: #126fce;
    box-shadow: 0 0 0 3px rgba(18, 111, 206, .1);
}

.admin-profile-global-discount input:disabled {
    cursor: not-allowed;
    opacity: .55;
    background: #edf1f5;
}

.admin-profile-global-discount small {
    display: block;
    max-width: 760px;
    margin-top: 7px;
    color: #5e748c;
    font-size: 8px;
    line-height: 1.5;
}

.admin-profile-price-summary small {
    display: block;
    margin-top: 5px;
    color: #73849a;
    font-size: 7px;
    line-height: 1.45;
}


/* ================================================================
   OEMBG SERVICE REQUESTS / RETURNS / ROW CART v31
   ================================================================ */

.service-inquiry-entry {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #91b9e5;
    color: #0b5eae;
    background: #f2f8ff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.service-inquiry-entry > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid #1473d6;
    border-radius: 50%;
}

.row-cart-column {
    width: 108px;
    text-align: center !important;
}

.row-cart-cell {
    width: 108px;
    padding: 4px 6px !important;
}

.row-cart-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.row-cart-quantity {
    width: 42px;
    height: 29px;
    padding: 0 3px;
    border: 1px solid #9fb6ce;
    color: #12365d;
    background: #fff;
    text-align: center;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
}

.row-cart-button {
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 0;
    color: #fff;
    background: #0871dd;
    cursor: pointer;
}

.row-cart-button:hover {
    background: #075db7;
}

.row-cart-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-button-return {
    margin-top: 5px;
    color: #0b5f69;
    border: 1px solid #82bbc1;
    background: #eaf8fa;
    text-decoration: none;
}

.cart-button-return:hover {
    background: #d8f0f3;
}

/* Client service page */

.service-page {
    min-height: 100vh;
    background: #eef4fa;
}

.service-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .42fr);
    gap: 14px;
    padding: 14px;
}

.service-main-card,
.service-history-card {
    border: 1px solid #9fb2c6;
    background: #fff;
}

.service-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    color: #fff;
    background: #073761;
}

.service-page-heading > div:first-child > span,
.service-history-heading span,
.admin-service-card-head span {
    color: #ff8b1b;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.service-page-heading h1 {
    margin: 7px 0 0;
    font-size: 27px;
}

.service-page-heading p {
    max-width: 660px;
    margin: 7px 0 0;
    color: #cbdced;
    font-size: 11px;
    line-height: 1.5;
}

.service-tabs {
    display: flex;
    gap: 6px;
}

.service-tabs a {
    min-width: 105px;
    padding: 10px 12px;
    color: #d8e8f7;
    border: 1px solid rgba(255,255,255,.25);
    text-align: center;
    text-decoration: none;
    font-size: 9px;
    font-weight: 950;
}

.service-tabs a.active {
    color: #073761;
    background: #fff;
}

.service-message {
    margin: 14px 20px 0;
    padding: 11px 13px;
    color: #17663f;
    border: 1px solid #8bc8aa;
    background: #edf9f3;
    font-size: 10px;
    font-weight: 850;
}

.service-message-error {
    color: #9a2731;
    border-color: #dfa2a8;
    background: #fff2f3;
}

.service-form {
    padding: 22px 24px 26px;
}

.service-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #243d59;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    border: 1px solid #aabdd0;
    outline: 0;
    color: #142f4e;
    background: #fff;
    font: inherit;
    font-size: 11px;
}

.service-form input,
.service-form select {
    min-height: 43px;
    padding: 0 11px;
}

.service-form textarea {
    min-height: 110px;
    padding: 10px 11px;
    resize: vertical;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    border-color: #1475d9;
    box-shadow: 0 0 0 3px rgba(20,117,217,.1);
}

.service-form input:disabled,
.service-form select:disabled {
    cursor: not-allowed;
    background: #edf1f5;
}

.service-form label > small {
    display: block;
    margin-top: 5px;
    color: #738398;
    font-size: 8px;
}

.service-wide {
    grid-column: 1 / -1;
}

.service-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.service-form-actions a {
    padding: 11px 15px;
    color: #65788e;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
}

.service-form-actions button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    color: #fff;
    background: #0871dd;
    cursor: pointer;
    font-size: 9px;
    font-weight: 950;
}

.service-return-note {
    margin-top: 15px;
    padding: 10px 12px;
    color: #725014;
    border: 1px solid #dfc27e;
    background: #fff9e9;
    font-size: 9px;
    line-height: 1.5;
}

.service-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid #cad6e2;
    background: #f5f9fd;
}

.service-history-heading h2 {
    margin: 4px 0 0;
    color: #12365e;
    font-size: 17px;
}

.service-history-heading > strong {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: #0871dd;
    font-size: 12px;
}

.service-history-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    max-height: calc(100vh - 220px);
    overflow: auto;
}

.service-history-list > article {
    padding: 12px;
    border: 1px solid #d1dce7;
    background: #fff;
}

.service-history-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.service-history-main > div > span {
    display: block;
    color: #0e6cc9;
    font-size: 8px;
    font-weight: 950;
}

.service-history-main > div > strong {
    display: block;
    margin-top: 4px;
    color: #173654;
    font-size: 10px;
}

.service-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    color: #6e7f92;
    font-size: 8px;
}

.service-history-list article > p {
    margin: 9px 0 0;
    color: #465d75;
    font-size: 9px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.service-admin-response {
    margin-top: 10px;
    padding: 9px 10px;
    border-left: 3px solid #168751;
    background: #edf8f2;
}

.service-admin-response > span {
    color: #168751;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.service-admin-response p {
    margin: 5px 0 0;
    color: #365a49;
    font-size: 9px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.service-status {
    display: inline-block;
    padding: 5px 8px;
    font-size: 7px;
    font-weight: 950;
    white-space: nowrap;
}

.service-status-new {
    color: #a45108;
    background: #ffe9d3;
}

.service-status-in_progress {
    color: #175fae;
    background: #e2f0ff;
}

.service-status-answered,
.service-status-approved {
    color: #0c6a40;
    background: #dcf5e7;
}

.service-status-rejected {
    color: #92333d;
    background: #fae1e4;
}

.service-status-closed {
    color: #536273;
    background: #e8edf2;
}

.service-empty {
    margin: 22px;
    padding: 40px 24px;
    border: 1px dashed #a9bbcd;
    color: #62758b;
    background: #f7fafd;
    text-align: center;
}

.service-empty strong {
    display: block;
    color: #243f5d;
}

.service-empty p {
    margin: 7px 0 0;
    font-size: 10px;
}

.service-empty a {
    display: inline-block;
    margin-top: 14px;
    color: #0c6bc7;
    font-size: 9px;
    font-weight: 900;
}

.service-empty.compact {
    margin: 10px;
    padding: 28px 15px;
}

/* Admin service */

.admin-service-content,
.admin-service-detail {
    display: grid;
    gap: 10px;
}

.admin-service-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-service-stats article {
    padding: 14px 16px;
    border: 1px solid #c8d5e3;
    background: #fff;
}

.admin-service-stats article.new {
    border-top: 3px solid #ff7a1a;
}

.admin-service-stats span,
.admin-service-stats strong {
    display: block;
}

.admin-service-stats span {
    color: #718196;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-service-stats strong {
    margin-top: 6px;
    color: #12345c;
    font-size: 20px;
}

.admin-service-filter,
.admin-service-list-card,
.admin-service-info,
.admin-service-review {
    border: 1px solid #c8d5e3;
    background: #fff;
}

.admin-service-filter {
    padding: 12px 14px;
}

.admin-service-filter form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 170px 190px auto;
    gap: 9px;
    align-items: end;
}

.admin-service-filter label > span,
.admin-service-review label > span {
    display: block;
    margin-bottom: 5px;
    color: #6a7c91;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-service-filter input,
.admin-service-filter select,
.admin-service-review select,
.admin-service-review textarea {
    width: 100%;
    border: 1px solid #aebdcd;
    color: #162f4e;
    background: #fff;
    font: inherit;
    font-size: 9px;
}

.admin-service-filter input,
.admin-service-filter select,
.admin-service-review select {
    min-height: 38px;
    padding: 0 10px;
}

.admin-service-filter button,
.admin-service-review button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    color: #fff;
    background: #1764c3;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

.admin-service-list-head,
.admin-service-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #d7e1eb;
    background: #f7faff;
}

.admin-service-list-head span {
    color: #1764c3;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-service-list-head h2,
.admin-service-card-head h3 {
    margin: 4px 0 0;
    color: #173a67;
    font-size: 13px;
}

.admin-service-list-head small {
    color: #7b899a;
    font-size: 8px;
}

.admin-service-table-wrap {
    overflow-x: auto;
}

.admin-service-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8px;
}

.admin-service-table th {
    padding: 9px 10px;
    color: #52677f;
    border-bottom: 1px solid #cbd8e5;
    background: #eaf1f8;
    text-align: left;
    font-size: 7px;
    text-transform: uppercase;
}

.admin-service-table td {
    padding: 10px;
    border-bottom: 1px solid #e1e7ee;
    color: #213a58;
    vertical-align: middle;
}

.admin-service-table td strong,
.admin-service-table td small {
    display: block;
}

.admin-service-table td small {
    margin-top: 3px;
    color: #718196;
}

.admin-service-table td a {
    color: #1764c3;
    text-decoration: none;
    font-weight: 950;
}

.admin-service-table .new-row {
    background: #fffaf4;
}

.admin-service-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #fff;
    background: #084b83;
}

.admin-service-hero > div > span {
    color: #8ed0ff;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 1px;
}

.admin-service-hero h2 {
    margin: 5px 0 0;
    font-size: 23px;
}

.admin-service-hero p {
    margin: 5px 0 0;
    color: #c8def1;
    font-size: 8px;
}

.admin-service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 10px;
}

.admin-service-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: #dce5ee;
}

.admin-service-info dl > div {
    padding: 12px 14px;
    background: #fff;
}

.admin-service-info dt {
    color: #718196;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-service-info dd {
    margin: 5px 0 0;
    color: #173a67;
    font-size: 10px;
    font-weight: 850;
}

.admin-service-message {
    margin: 12px 14px;
    padding: 12px;
    border: 1px solid #d7e1eb;
    background: #f8fafc;
}

.admin-service-message span {
    color: #718196;
    font-size: 7px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-service-message p {
    margin: 7px 0 0;
    color: #354d68;
    font-size: 9px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.admin-service-review form {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.admin-service-review textarea {
    min-height: 120px;
    padding: 10px;
    resize: vertical;
}

@media (max-width: 1100px) {
    .service-shell,
    .admin-service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-history-list {
        max-height: none;
    }

    .admin-service-filter form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .service-page-heading {
        flex-direction: column;
    }

    .service-tabs {
        width: 100%;
    }

    .service-tabs a {
        flex: 1;
    }

    .service-form-grid {
        grid-template-columns: 1fr;
    }

    .service-wide {
        grid-column: auto;
    }

    .service-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .service-form-actions a {
        text-align: center;
    }

    .admin-service-stats,
    .admin-service-filter form,
    .admin-service-info dl {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG RETURN BUTTON CENTER FIX v31.1
   ================================================================ */

.cart-button-return {
    display: flex !important;
    width: 100% !important;
    min-height: 39px;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 0 12px !important;
    box-sizing: border-box;
    text-align: center !important;
    line-height: 1 !important;
}


/* ================================================================
   OEMBG SUPPLIER OEM MARKUP v32
   ================================================================ */

.admin-profile-global-markup {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border: 1px solid #e5a66d;
    background: #fff7ef;
}

.admin-profile-global-markup > span {
    color: #9a4d0d !important;
}

.admin-profile-global-markup input {
    width: min(260px, 100%);
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d99558;
    color: #6e3508;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
}

.admin-profile-global-markup input:focus {
    outline: 0;
    border-color: #c2691e;
    box-shadow: 0 0 0 3px rgba(194, 105, 30, .1);
}

.admin-profile-global-markup small {
    display: block;
    max-width: 760px;
    margin-top: 7px;
    color: #795c44;
    font-size: 8px;
    line-height: 1.5;
}

.admin-profile-global-discount.field-disabled,
.admin-profile-global-markup.field-disabled {
    opacity: .52;
}


/* ================================================================
   OEMBG PARTNER PRICE COLUMNS FIX v32.1
   Correct widths after removal of the radio-selection column.
   ================================================================ */

@media (min-width: 901px) {
    /*
     * Current table:
     * 1 Manufacturer
     * 2 Article number
     * 3 Description
     * 4 Retail price
     * 5 Discount
     * 6 Client price
     * 7 Availability
     * 8 Delivery
     * 9 Cart
     */
    .results-table th:nth-child(1) { width: 13%; }
    .results-table th:nth-child(2) { width: 14%; }
    .results-table th:nth-child(3) { width: 20%; }
    .results-table th:nth-child(4) { width: 8%; }
    .results-table th:nth-child(5) { width: 7%; }
    .results-table th:nth-child(6) { width: 13%; }
    .results-table th:nth-child(7) { width: 8%; }
    .results-table th:nth-child(8) { width: 8%; }
    .results-table th:nth-child(9) { width: 9%; }

    .results-table th:nth-child(4),
    .results-table th:nth-child(5),
    .results-table th:nth-child(6),
    .results-table td:nth-child(4),
    .results-table td:nth-child(5),
    .results-table td:nth-child(6) {
        text-align: center;
    }

    .results-table th:nth-child(4),
    .results-table th:nth-child(6) {
        white-space: normal;
        line-height: 1.1;
    }

    .results-table td.price-retail,
    .results-table td.discount-cell,
    .results-table td.price-client {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .results-table td.price-client {
        padding-right: 5px;
        padding-left: 5px;
    }
}

/* Keep full client price visible on narrower screens with table scrolling. */
@media (max-width: 900px) {
    .results-table th:nth-child(4) { width: 92px; }
    .results-table th:nth-child(5) { width: 78px; }
    .results-table th:nth-child(6) { width: 132px; }

    .results-table td.price-client {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
}


/* ================================================================
   OEMBG CLIENT PRICE-LIST ACCESS v33
   ================================================================ */

.admin-client-access-card {
    border-top: 3px solid #1473d1;
}

.admin-client-access-mode {
    display: grid;
    grid-template-columns:
        minmax(280px, .75fr)
        minmax(360px, 1.25fr);
    gap: 16px;
    align-items: end;
    padding: 14px;
    border-bottom: 1px solid #d5e0eb;
    background: #f7faff;
}

.admin-client-access-mode label > span {
    display: block;
    margin-bottom: 6px;
    color: #29425f;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-client-access-mode select {
    width: 100%;
    min-height: 41px;
    padding: 0 10px;
    border: 1px solid #9fb4ca;
    color: #13385f;
    background: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
}

.admin-client-access-mode label > small {
    display: block;
    margin-top: 6px;
    color: #687b90;
    font-size: 8px;
    line-height: 1.45;
}

.admin-client-access-actions {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-client-access-actions button {
    min-height: 39px;
    padding: 0 8px;
    border: 1px solid #9eb9d6;
    color: #145b9d;
    background: #fff;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

.admin-client-access-actions button:hover {
    background: #eaf4ff;
}

.admin-client-access-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.admin-client-price-list-picker {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    transition: opacity .15s ease;
}

.admin-client-price-list-picker.is-disabled {
    opacity: .48;
}

.admin-client-price-list-picker > section {
    border: 1px solid #c5d3e1;
    background: #fff;
}

.admin-client-price-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #9e560d;
    border-bottom: 1px solid #e1c6a7;
    background: #fff7ec;
}

.admin-client-price-list-heading.aftermarket {
    color: #086eaf;
    border-bottom-color: #acd5ef;
    background: #eff8fe;
}

.admin-client-price-list-heading span {
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.admin-client-price-list-heading strong {
    display: grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    color: #fff;
    background: currentColor;
    font-size: 8px;
}

.admin-client-price-list-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-height: 280px;
    overflow: auto;
    background: #dce5ee;
}

.admin-client-price-list-grid label {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #25415f;
    background: #fff;
    cursor: pointer;
    font-size: 8px;
    font-weight: 850;
}

.admin-client-price-list-grid label:hover {
    background: #f5f9fd;
}

.admin-client-price-list-grid input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #126fce;
}

.admin-client-price-list-empty {
    grid-column: 1 / -1;
    padding: 20px 12px;
    color: #76879a;
    background: #fff;
    text-align: center;
    font-size: 8px;
}

.admin-client-access-note {
    margin: 0 14px 14px;
    padding: 10px 12px;
    color: #65521d;
    border: 1px solid #dbc57d;
    background: #fffbea;
    font-size: 8px;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .admin-client-access-mode,
    .admin-client-price-list-picker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-client-access-actions,
    .admin-client-price-list-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG ADMIN READABLE TYPOGRAPHY v33.1
   Larger, clearer typography across the complete Admin panel.
   ================================================================ */

.admin-body,
.admin-login-body {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        Helvetica,
        sans-serif;
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Sidebar */

.admin-sidebar-brand a {
    font-size: 27px !important;
    letter-spacing: -1.4px !important;
}

.admin-sidebar-brand > span {
    font-size: 9px !important;
    letter-spacing: 2px !important;
}

.admin-nav-link {
    min-height: 48px !important;
    gap: 12px !important;
    padding-right: 17px !important;
    padding-left: 17px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.admin-nav-link > span {
    min-width: 19px;
    font-size: 15px !important;
    text-align: center;
}

.admin-sidebar-status strong {
    font-size: 11px !important;
    line-height: 1.3;
}

.admin-sidebar-status small {
    font-size: 9px !important;
    line-height: 1.35;
}

/* Top bar */

.admin-topbar-eyebrow {
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
}

.admin-topbar h1 {
    margin-top: 4px !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
}

.admin-topbar-link,
.admin-logout {
    font-size: 11px !important;
}

.admin-identity > span {
    font-size: 9px !important;
}

.admin-identity > strong {
    font-size: 12px !important;
}

/* Main headings and descriptive copy */

.admin-content {
    font-size: 12px;
    line-height: 1.45;
}

.admin-content h2 {
    font-size: 19px !important;
    line-height: 1.25 !important;
}

.admin-content h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
}

.admin-content p {
    font-size: 11px;
    line-height: 1.55;
}

.admin-content small {
    font-size: 10px !important;
    line-height: 1.45 !important;
}

.admin-back-link {
    font-size: 11px !important;
}

/* Client/profile card headings */

.admin-client-form-heading,
.admin-profile-section-heading,
.admin-panel-heading,
.admin-import-panel-heading,
.admin-service-card-head,
.admin-access-card-head,
.admin-invoice-section-heading,
.admin-order-items-heading,
.admin-special-price-heading {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.admin-client-form-heading > span,
.admin-profile-section-heading > span {
    font-size: 11px !important;
}

.admin-client-form-heading h3,
.admin-profile-section-heading h3,
.admin-panel-heading h2,
.admin-import-panel-heading h2,
.admin-service-card-head h3,
.admin-access-card-head h3 {
    font-size: 16px !important;
}

.admin-client-form-heading p,
.admin-profile-section-heading p,
.admin-import-panel-heading p {
    font-size: 10.5px !important;
    line-height: 1.5 !important;
}

/* Labels and form controls */

.admin-content label > span,
.admin-content dt,
.admin-client-fields label > span,
.admin-profile-main-fields label > span,
.admin-import-profile-fields label > span,
.admin-import-mapping-grid label > span,
.admin-rule-row label > span,
.admin-balance-action-card label > span,
.admin-order-delete-form label > span,
.admin-special-price-form label > span {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: .15px !important;
}

.admin-content input,
.admin-content select,
.admin-content textarea {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}

.admin-content input:not([type="checkbox"]):not([type="radio"]),
.admin-content select {
    min-height: 42px !important;
}

.admin-content textarea {
    padding: 11px 12px !important;
}

.admin-content input[type="checkbox"],
.admin-content input[type="radio"] {
    width: 17px !important;
    height: 17px !important;
}

/* Buttons */

.admin-content button,
.admin-content .admin-topbar-link,
.admin-content .admin-order-open,
.admin-content .admin-client-open,
.admin-content .admin-balance-open,
.admin-content .admin-access-open,
.admin-content .admin-access-contact-actions a,
.admin-content .admin-service-table td a,
.admin-content .admin-profile-form-actions a,
.admin-content .admin-import-actions-grid a {
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.admin-client-save-bar button,
.admin-profile-form-actions button,
.admin-import-actions-grid button,
.admin-order-status-form button,
.admin-special-price-form button,
.admin-access-review-card button,
.admin-service-review button {
    min-height: 42px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
    font-size: 11px !important;
}

/* Tables */

.admin-content table {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}

.admin-content table th {
    padding: 11px 10px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: .15px !important;
}

.admin-content table td {
    padding: 11px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}

.admin-content table td strong {
    font-size: 11.5px !important;
}

.admin-content table td small {
    margin-top: 4px !important;
    font-size: 9.5px !important;
}

/* Metrics and status badges */

.admin-metric > span,
.admin-access-stats span,
.admin-service-stats span,
.admin-client-stats span,
.admin-profile-stats span,
.admin-import-stats span,
.admin-order-stats span,
.admin-balance-detail-stats span {
    font-size: 9px !important;
}

.admin-metric > strong,
.admin-access-stats strong,
.admin-service-stats strong,
.admin-client-stats strong,
.admin-profile-stats strong,
.admin-import-stats strong,
.admin-order-stats strong,
.admin-balance-detail-stats strong {
    font-size: 21px !important;
}

.admin-order-status,
.admin-import-status,
.admin-logistics-status,
.admin-access-status,
.access-status,
.service-status {
    font-size: 9px !important;
    line-height: 1.25 !important;
}

/* Client access-to-price-lists section */

.admin-client-access-mode label > span {
    font-size: 10px !important;
}

.admin-client-access-mode label > small {
    font-size: 10px !important;
}

.admin-client-access-mode select {
    font-size: 12px !important;
}

.admin-client-access-actions button {
    min-height: 42px !important;
    font-size: 10.5px !important;
}

.admin-client-price-list-heading span {
    font-size: 11px !important;
}

.admin-client-price-list-heading strong {
    min-width: 29px !important;
    height: 29px !important;
    font-size: 10px !important;
}

.admin-client-price-list-grid label {
    min-height: 43px !important;
    font-size: 11px !important;
}

.admin-client-access-note {
    font-size: 10px !important;
    line-height: 1.5 !important;
}

/* Import center */

.admin-import-dropzone strong,
.admin-import-confirm-panel strong,
.admin-import-job-heading strong,
.admin-import-preview-hero strong {
    font-size: 13px !important;
}

.admin-import-dropzone p,
.admin-import-confirm-panel p,
.admin-import-job-heading p,
.admin-import-preview-hero p {
    font-size: 10px !important;
}

.admin-import-job-meta,
.admin-import-report-list,
.admin-import-preview-warnings {
    font-size: 10.5px !important;
}

/* Admin login */

.admin-login-heading h1 {
    font-size: 27px !important;
}

.admin-login-heading p,
.admin-login-security,
.admin-login-footer {
    font-size: 11px !important;
}

.admin-login-form label > span {
    font-size: 10px !important;
}

.admin-login-form input {
    min-height: 46px !important;
    font-size: 13px !important;
}

.admin-login-submit {
    min-height: 46px !important;
    font-size: 12px !important;
}

/* Avoid excessive shrinking on common desktop resolutions */

@media (min-width: 1200px) {
    .admin-main {
        min-width: 0;
    }

    .admin-content {
        padding: 18px 16px 90px !important;
    }
}

@media (max-width: 900px) {
    .admin-body {
        font-size: 12px;
    }

    .admin-nav-link {
        font-size: 11px !important;
    }

    .admin-content table {
        font-size: 11px !important;
    }
}


/* ================================================================
   OEMBG CLIENT FOOTER + READABLE TYPOGRAPHY v33.2
   ================================================================ */

.partner-body {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        Helvetica,
        sans-serif;
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Top bar */

.partner-brand {
    font-size: 28px !important;
}

.partner-subtitle {
    font-size: 13px !important;
}

.partner-label {
    font-size: 12px !important;
}

.partner-balance strong {
    font-size: 25px !important;
}

.partner-balance small {
    font-size: 12px !important;
}

.header-action {
    font-size: 14px !important;
}

.partner-client strong {
    font-size: 16px !important;
}

.partner-client-links {
    gap: 7px !important;
    margin-top: 7px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.partner-client-mini-link {
    font-size: 12px !important;
    font-weight: 850 !important;
}

.partner-client-mini-link em {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
}

.header-logout {
    font-size: 13px !important;
}

/* Catalog headings and actions */

.panel-heading h1 {
    font-size: 22px !important;
}

.panel-heading p {
    font-size: 13px !important;
}

.result-counter,
.service-inquiry-entry,
.bulk-search-entry {
    font-size: 11.5px !important;
}

.search-box input {
    font-size: 14px !important;
}

.search-submit {
    font-size: 12.5px !important;
}

/* Search results */

.results-table {
    font-size: 12px !important;
}

.results-table th {
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.results-table td {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.row-cart-quantity {
    font-size: 11px !important;
}

/* Cart */

.cart-heading h2 {
    font-size: 22px !important;
}

.cart-heading p,
.cart-excel-help {
    font-size: 11px !important;
}

.cart-button {
    font-size: 11.5px !important;
}

/* Individual active lists for the logged-in client */

.partner-footer {
    min-height: 72px !important;
    padding: 11px 20px !important;
    font-size: 13.5px !important;
    line-height: 1.75 !important;
}

.partner-footer strong {
    min-width: 250px !important;
    font-size: 13.5px !important;
}

.partner-footer span {
    font-size: 13px !important;
}

@media (max-width: 1000px) {
    .partner-client-links,
    .partner-client-mini-link {
        font-size: 11px !important;
    }

    .partner-footer,
    .partner-footer strong,
    .partner-footer span {
        font-size: 12px !important;
    }
}


/* ================================================================
   OEMBG CLIENT PASSWORD CHANGE v34
   ================================================================ */

.settings-security-badge {
    padding: 6px 9px;
    border: 1px solid #89bea4;
    color: #176741;
    background: #effaf4;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.password-change-success,
.password-change-error {
    margin: 14px 17px 0;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
}

.password-change-success {
    border: 1px solid #76b997;
    color: #155f3d;
    background: #edfaf3;
}

.password-change-success strong,
.password-change-success span {
    display: block;
}

.password-change-success span {
    margin-top: 3px;
}

.password-change-error {
    border: 1px solid #dda0a7;
    color: #922d37;
    background: #fff2f3;
    font-weight: 850;
}

.password-change-form {
    padding: 17px;
}

.password-change-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d8e0e9;
}

.password-change-heading strong {
    display: block;
    color: #172f4d;
    font-size: 15px;
}

.password-change-heading p {
    margin: 4px 0 0;
    color: #697b91;
    font-size: 11px;
    line-height: 1.45;
}

.password-change-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.password-field-current {
    grid-column: 1 / -1;
}

.password-field > span {
    display: block;
    margin-bottom: 7px;
    color: #314762;
    font-size: 11px;
    font-weight: 900;
}

.password-field input {
    width: 100%;
    min-height: 43px;
    padding: 0 11px;
    border: 1px solid #a9b8c9;
    outline: 0;
    color: #172d49;
    background: #fff;
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
    font-size: 13px;
}

.password-field input:focus {
    border-color: #2472c9;
    box-shadow:
        0 0 0 3px rgba(36, 114, 201, .1);
}

.password-change-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #d8e0e9;
}

.password-change-footer p {
    max-width: 710px;
    margin: 0;
    color: #6a7b90;
    font-size: 10.5px;
    line-height: 1.5;
}

.password-change-footer button {
    min-width: 190px;
    min-height: 43px;
    padding: 0 17px;
    border: 0;
    color: #fff;
    background: #126fcf;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.password-change-footer button:hover {
    background: #0d5cab;
}

@media (max-width: 760px) {
    .password-change-grid {
        grid-template-columns: 1fr;
    }

    .password-field-current {
        grid-column: auto;
    }

    .password-change-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .password-change-footer button {
        width: 100%;
    }
}


/* ================================================================
   OEMBG ADMIN ONLINE CLIENTS v35
   ================================================================ */

.admin-online-content {
    display: grid;
    gap: 12px;
}

.admin-online-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    color: #fff;
    background: #073761;
}

.admin-online-head > div:first-child > span {
    color: #63c4ff;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 1.3px;
}

.admin-online-head h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 22px !important;
}

.admin-online-head p {
    max-width: 820px;
    margin: 7px 0 0;
    color: #cbdceb;
    font-size: 11.5px;
    line-height: 1.55;
}

.admin-online-refresh {
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.07);
}

.admin-online-refresh span,
.admin-online-refresh strong,
.admin-online-refresh small {
    display: block;
}

.admin-online-refresh span {
    color: #8eb7d8;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-online-refresh strong {
    margin-top: 4px;
    font-size: 13px;
}

.admin-online-refresh small {
    margin-top: 3px;
    color: #b7cbdd;
    font-size: 9px !important;
}

.admin-online-stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.admin-online-stats article {
    padding: 15px 17px;
    border: 1px solid #c7d4e1;
    background: #fff;
}

.admin-online-stats article.online {
    border-top: 3px solid #18a765;
    background: #f4fcf8;
}

.admin-online-stats span,
.admin-online-stats strong {
    display: block;
}

.admin-online-stats span {
    color: #6c7e92;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-online-stats strong {
    margin-top: 6px;
    color: #15385f;
    font-size: 23px;
}

.admin-online-panel {
    border: 1px solid #c7d4e1;
    background: #fff;
}

.admin-online-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #d5e0ea;
    background: #f6f9fc;
}

.admin-online-panel-heading > div:first-child > span {
    color: #1767b2;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.admin-online-panel-heading h3 {
    margin: 4px 0 0;
    font-size: 16px !important;
}

.admin-online-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #5d7086;
    font-size: 10px;
    font-weight: 850;
}

.admin-online-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-online-legend i,
.admin-online-status i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.admin-online-legend i.online,
.admin-online-status.online i {
    background: #16a462;
    box-shadow:
        0 0 0 4px rgba(22,164,98,.12);
}

.admin-online-legend i.idle,
.admin-online-status.idle i {
    background: #9aa8b7;
}

.admin-online-table-wrap {
    overflow-x: auto;
}

.admin-online-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1120px;
}

.admin-online-table th {
    padding: 11px 10px !important;
    color: #52677e;
    border-bottom: 1px solid #c8d6e3;
    background: #eaf1f7;
    font-size: 10px !important;
    text-align: left;
    text-transform: uppercase;
}

.admin-online-table td {
    padding: 12px 10px !important;
    color: #203b58;
    border-bottom: 1px solid #e0e7ee;
    font-size: 11.5px !important;
    vertical-align: middle;
}

.admin-online-table tr.is-online {
    background: #fbfffd;
}

.admin-online-table tr.is-online td:first-child {
    border-left: 3px solid #19a866;
}

.admin-online-table tr.is-idle td:first-child {
    border-left: 3px solid #9aa8b7;
}

.admin-online-table td strong,
.admin-online-table td small {
    display: block;
}

.admin-online-table td strong {
    font-size: 12px !important;
}

.admin-online-table td small {
    margin-top: 4px;
    color: #728297;
    font-size: 9.5px !important;
}

.admin-online-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    font-size: 10px !important;
    font-weight: 950;
    white-space: nowrap;
}

.admin-online-status.online {
    color: #0d7042;
    background: #e3f7ec;
}

.admin-online-status.idle {
    color: #5e6b79;
    background: #edf1f4;
}

.admin-online-session-detail-row td {
    padding-top: 0 !important;
    background: #f8fafc;
}

.admin-online-session-detail-row details {
    padding: 9px 10px;
}

.admin-online-session-detail-row summary {
    color: #1767b2;
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
}

.admin-online-session-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.admin-online-session-list article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 9px 10px;
    border: 1px solid #d6e0e9;
    background: #fff;
}

.admin-online-session-list article > span {
    grid-row: 1 / 3;
    align-self: center;
    padding: 4px 6px;
    font-size: 8px;
    font-weight: 950;
}

.admin-online-session-list article > span.online {
    color: #0d7042;
    background: #e3f7ec;
}

.admin-online-session-list article > span.idle {
    color: #5e6b79;
    background: #edf1f4;
}

.admin-online-session-list article > strong {
    font-size: 10px !important;
}

.admin-online-session-list article > small {
    margin: 0 !important;
    font-size: 9px !important;
}

.admin-online-empty {
    padding: 54px 25px;
    color: #67798d;
    text-align: center;
}

.admin-online-empty strong {
    display: block;
    color: #26425f;
    font-size: 15px;
}

.admin-online-empty p {
    margin: 7px 0 0;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .admin-online-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-online-refresh {
        min-width: 0;
    }

    .admin-online-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-online-session-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .admin-online-stats {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG LOGIN — HOW IT WORKS v36
   ================================================================ */

.partner-how {
    position: relative;
    overflow: hidden;
    color: #142c48;
    border-top: 1px solid #d8e4ef;
    background:
        linear-gradient(
            180deg,
            #eef6ff 0,
            #f8fbff 160px,
            #ffffff 100%
        );
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.partner-how::before,
.partner-how::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.partner-how::before {
    top: 220px;
    left: -210px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(20, 112, 219, .08);
    box-shadow:
        0 0 0 45px rgba(20, 112, 219, .025),
        0 0 0 95px rgba(20, 112, 219, .018);
}

.partner-how::after {
    right: -190px;
    bottom: 170px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 120, 20, .07);
    box-shadow:
        0 0 0 45px rgba(255, 120, 20, .02),
        0 0 0 90px rgba(255, 120, 20, .015);
}

.partner-how-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 28px;
}

.partner-how-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.partner-how-heading > span {
    display: block;
    color: #126fd4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.partner-how-heading h2 {
    margin: 9px 0 0;
    color: #102944;
    font-size: clamp(29px, 3.5vw, 44px);
    line-height: 1.15;
}

.partner-how-heading p {
    margin: 13px auto 0;
    color: #647991;
    font-size: 15px;
    line-height: 1.6;
}

.partner-how-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.partner-how-timeline::before {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background:
        linear-gradient(
            180deg,
            #1c7de4,
            #22aaa8 36%,
            #ff8b2b 68%,
            #24a869
        );
    opacity: .65;
}

.partner-how-step {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        100px
        minmax(0, 1fr);
    align-items: center;
    min-height: 250px;
}

.partner-how-axis {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.partner-how-axis span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    border: 7px solid #edf6ff;
    border-radius: 50%;
    background: #1678df;
    box-shadow:
        0 0 0 1px rgba(22, 120, 223, .18),
        0 9px 24px rgba(18, 83, 148, .18);
    font-size: 13px;
    font-weight: 900;
}

.step-02 .partner-how-axis span {
    border-color: #ecf9f8;
    background: #20a5a3;
}

.step-03 .partner-how-axis span {
    border-color: #fff4e9;
    background: #f1872c;
}

.step-04 .partner-how-axis span {
    border-color: #edf9f2;
    background: #22a566;
}

.partner-how-card {
    position: relative;
    padding: 24px 26px;
    border: 1px solid #d4e0eb;
    border-radius: 8px;
    background: rgba(255,255,255,.95);
    box-shadow:
        0 12px 32px rgba(28, 67, 107, .07);
}

.partner-how-card-left {
    margin-right: 20px;
    border-right: 3px solid #1678df;
}

.partner-how-card-right {
    margin-left: 20px;
    border-left: 3px solid #20a5a3;
}

.step-03 .partner-how-card-left {
    border-right-color: #f1872c;
}

.step-04 .partner-how-card-right {
    border-left-color: #22a566;
}

.partner-how-tag {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.partner-how-tag.blue {
    color: #0a63bc;
    background: #e6f2ff;
}

.partner-how-tag.teal {
    color: #087e7c;
    background: #e5f7f6;
}

.partner-how-tag.orange {
    color: #a35412;
    background: #fff0df;
}

.partner-how-tag.green {
    color: #147644;
    background: #e8f7ef;
}

.partner-how-card h3 {
    margin: 11px 0 0;
    color: #142c48;
    font-size: 18px;
    line-height: 1.32;
}

.partner-how-card > p {
    margin: 9px 0 0;
    color: #60758d;
    font-size: 12px;
    line-height: 1.62;
}

.partner-how-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.partner-how-points span {
    position: relative;
    padding: 6px 8px 6px 20px;
    color: #38516c;
    border: 1px solid #d8e4ef;
    border-radius: 4px;
    background: #f8fbfe;
    font-size: 10px;
    font-weight: 700;
}

.partner-how-points span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #1678df;
}

.step-02 .partner-how-points span::before {
    background: #20a5a3;
}

.step-03 .partner-how-points span::before {
    background: #f1872c;
}

.step-04 .partner-how-points span::before {
    background: #22a566;
}

.partner-how-summary {
    max-width: 345px;
    padding: 0 16px 0 30px;
}

.partner-how-summary-left {
    justify-self: end;
    padding: 0 30px 0 16px;
    text-align: right;
}

.partner-how-summary strong {
    display: block;
    color: #203c5a;
    font-size: 15px;
}

.partner-how-summary p {
    margin: 7px 0 0;
    color: #718299;
    font-size: 11px;
    line-height: 1.55;
}

.partner-how-benefits {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 42px;
}

.partner-how-benefits article {
    display: flex;
    min-height: 120px;
    align-items: flex-start;
    gap: 14px;
    padding: 19px;
    border: 1px solid #d6e2ed;
    border-radius: 7px;
    background: #fff;
    box-shadow:
        0 8px 24px rgba(28, 67, 107, .05);
}

.partner-how-benefits article > span {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    place-items: center;
    color: #126fd4;
    border: 1px solid #b9d5f2;
    border-radius: 50%;
    background: #edf6ff;
    font-size: 10px;
    font-weight: 900;
}

.partner-how-benefits strong {
    display: block;
    color: #193552;
    font-size: 14px;
}

.partner-how-benefits p {
    margin: 6px 0 0;
    color: #6c7f94;
    font-size: 11px;
    line-height: 1.5;
}

.partner-how-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 28px;
    padding: 24px 27px;
    color: #fff;
    border-radius: 8px;
    background:
        linear-gradient(
            120deg,
            #092e55,
            #0c4b82
        );
    box-shadow:
        0 14px 35px rgba(9, 46, 85, .18);
}

.partner-how-access span,
.partner-how-access strong,
.partner-how-access p {
    display: block;
}

.partner-how-access span {
    color: #73baf3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.partner-how-access strong {
    margin-top: 5px;
    font-size: 18px;
}

.partner-how-access p {
    margin: 5px 0 0;
    color: #c7d9e9;
    font-size: 11px;
}

.partner-how-access a {
    display: inline-flex;
    min-width: 190px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    background: #1478dc;
    box-shadow:
        0 8px 20px rgba(0, 25, 52, .18);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.partner-how-access a:hover {
    background: #0f67bf;
}

.partner-how-access svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-how-footer {
    padding: 25px 0 0;
    color: #74869a;
    font-size: 11px;
    text-align: center;
}

.partner-how-footer b {
    margin: 0 8px;
    color: #44709b;
}

@media (max-width: 860px) {
    .partner-how-inner {
        width: min(100% - 26px, 680px);
        padding-top: 43px;
    }

    .partner-how-heading {
        margin-bottom: 34px;
    }

    .partner-how-timeline::before {
        left: 29px;
        transform: none;
    }

    .partner-how-step {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 15px;
        min-height: 0;
        padding-bottom: 25px;
    }

    .partner-how-axis {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .partner-how-axis span {
        width: 50px;
        height: 50px;
        border-width: 6px;
    }

    .partner-how-card,
    .partner-how-summary {
        grid-column: 2;
        margin: 0;
        padding: 0;
    }

    .partner-how-card {
        grid-row: 1;
        padding: 20px;
        border-right: 1px solid #d4e0eb;
        border-left: 3px solid #1678df;
    }

    .step-02 .partner-how-card {
        border-left-color: #20a5a3;
    }

    .step-03 .partner-how-card {
        border-left-color: #f1872c;
    }

    .step-04 .partner-how-card {
        border-left-color: #22a566;
    }

    .partner-how-summary {
        grid-row: 2;
        max-width: none;
        margin-top: 9px;
        padding: 0 4px;
        text-align: left;
    }

    .partner-how-summary-left {
        justify-self: auto;
    }

    .partner-how-benefits {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .partner-how-benefits article {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .partner-how-inner {
        width: min(100% - 20px, 520px);
    }

    .partner-how-heading h2 {
        font-size: 29px;
    }

    .partner-how-heading p {
        font-size: 13px;
    }

    .partner-how-card h3 {
        font-size: 16px;
    }

    .partner-how-access {
        align-items: stretch;
        flex-direction: column;
    }

    .partner-how-access a {
        width: 100%;
    }
}


/* ================================================================
   OEMBG LOGIN SPLIT FIRST-SCREEN LAYOUT v36.1
   ================================================================ */

.partner-login-how {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 690px;
    padding: 27px 29px 21px;
    border: 1px solid rgba(133, 159, 188, .34);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(244,249,255,.94)
        );
    box-shadow:
        0 24px 65px rgba(29, 70, 115, .11),
        0 4px 15px rgba(29, 70, 115, .05);
    backdrop-filter: blur(16px);
}

.partner-login-how::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 9%;
    width: 34%;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            #1680ed,
            transparent
        );
    opacity: .8;
}

.partner-login-how-heading > span {
    display: block;
    color: #116fd8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.partner-login-how-heading h2 {
    margin: 7px 0 0;
    color: #0b233e;
    font-size: 29px;
    line-height: 1.15;
}

.partner-login-how-heading p {
    max-width: 570px;
    margin: 8px 0 0;
    color: #687b91;
    font-size: 12px;
    line-height: 1.5;
}

.partner-login-how-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.partner-login-how-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    min-height: 139px;
    padding: 15px 14px;
    border: 1px solid #d4e0eb;
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    box-shadow:
        0 7px 18px rgba(25, 66, 108, .045);
}

.partner-login-how-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #1477df;
    box-shadow:
        0 0 0 5px rgba(20,119,223,.08);
    font-size: 10px;
    font-weight: 900;
}

.partner-login-how-step.step-order
.partner-login-how-number {
    background: #16a09d;
    box-shadow:
        0 0 0 5px rgba(22,160,157,.08);
}

.partner-login-how-step.step-status
.partner-login-how-number {
    background: #ee8427;
    box-shadow:
        0 0 0 5px rgba(238,132,39,.08);
}

.partner-login-how-step.step-documents
.partner-login-how-number {
    background: #20a264;
    box-shadow:
        0 0 0 5px rgba(32,162,100,.08);
}

.partner-login-how-step span {
    display: block;
    color: #1472d4;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.partner-login-how-step.step-order span {
    color: #0c8582;
}

.partner-login-how-step.step-status span {
    color: #ae5b14;
}

.partner-login-how-step.step-documents span {
    color: #137543;
}

.partner-login-how-step h3 {
    margin: 5px 0 0;
    color: #17324f;
    font-size: 14px;
    line-height: 1.25;
}

.partner-login-how-step p {
    margin: 6px 0 0;
    color: #6a7c91;
    font-size: 10.5px;
    line-height: 1.48;
}

.partner-login-how-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.partner-login-how-flags span {
    position: relative;
    padding: 6px 9px 6px 21px;
    color: #35506d;
    border: 1px solid #d3dfeb;
    border-radius: 4px;
    background: #fff;
    font-size: 9.5px;
    font-weight: 750;
}

.partner-login-how-flags span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #1477df;
}

.partner-login-how-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 12px;
    padding: 13px 14px;
    color: #fff;
    border-radius: 7px;
    background:
        linear-gradient(
            115deg,
            #092e55,
            #0b4d86
        );
}

.partner-login-how-access span,
.partner-login-how-access strong {
    display: block;
}

.partner-login-how-access span {
    color: #78bff6;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.partner-login-how-access strong {
    margin-top: 4px;
    font-size: 11.5px;
}

.partner-login-how-access a {
    display: inline-flex;
    min-width: 158px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 5px;
    background: #1478dc;
    font-size: 10.5px;
    font-weight: 900;
    text-decoration: none;
}

.partner-login-how-access a:hover {
    background: #0d65bd;
}

.partner-login-how-access svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-login-how-footer {
    margin-top: 13px;
    color: #76889b;
    font-size: 9.5px;
    text-align: center;
}

.partner-login-how-footer b {
    margin: 0 7px;
    color: #47719a;
}

/* Desktop: both sections remain visible in one viewport. */
@media (min-width: 1181px) {
    .partner-login-page {
        overflow-y: hidden;
    }

    .partner-login-shell {
        grid-template-columns:
            minmax(470px, .88fr)
            minmax(570px, 1.12fr);
        gap: clamp(25px, 3vw, 50px);
        width: min(1480px, 100%);
        height: 100svh;
        min-height: 650px;
        margin: 0 auto;
        padding: 16px 30px;
        place-items: center;
    }

    .partner-login-content {
        width: 100%;
        max-width: 560px;
        justify-self: end;
        padding: 5px 0;
    }

    .partner-login-how {
        justify-self: start;
    }

    .partner-login-brand {
        margin-bottom: 7px;
    }

    .partner-login-wordmark-clean strong {
        font-size: 49px;
    }

    .partner-login-wordmark-clean span {
        font-size: 36px;
    }

    .partner-login-card {
        padding: 23px 31px 20px;
        border-radius: 19px;
    }

    .partner-login-kicker {
        margin-bottom: 5px;
        font-size: 8px;
    }

    .partner-login-card-heading h1 {
        font-size: 27px;
    }

    .partner-login-card-heading p {
        margin-top: 7px;
        font-size: 13px;
    }

    .partner-login-form {
        gap: 12px;
        margin-top: 18px;
    }

    .partner-login-form > label > span {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .partner-login-field {
        min-height: 49px;
    }

    .partner-login-field input {
        height: 47px;
        font-size: 13px;
    }

    .partner-password-toggle {
        width: 49px;
        height: 47px;
    }

    .partner-login-options {
        font-size: 12px;
    }

    .partner-remember,
    .partner-login-options a {
        font-size: 12px;
    }

    .partner-login-submit {
        min-height: 49px;
        font-size: 16px;
    }

    .partner-login-help {
        margin-top: 14px;
        font-size: 11.5px;
    }

    .partner-login-help svg {
        width: 19px;
    }

    .partner-login-footer {
        padding-top: 12px;
    }

    .partner-login-features {
        gap: 17px;
    }

    .partner-login-features > i {
        height: 35px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }

    .feature-icon svg {
        width: 23px;
    }

    .partner-login-features strong {
        font-size: 11px;
    }

    .partner-login-features span {
        font-size: 9px;
    }

    .partner-login-europe {
        width: min(34vw, 560px);
        opacity: .62;
    }

    .partner-login-parts {
        width: min(31vw, 470px);
        opacity: .55;
    }

    .partner-login-tech {
        width: min(33vw, 500px);
        opacity: .36;
    }
}

/* Short desktop screens: tighten both columns further. */
@media (min-width: 1181px) and (max-height: 760px) {
    .partner-login-shell {
        min-height: 600px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .partner-login-wordmark-clean strong {
        font-size: 43px;
    }

    .partner-login-wordmark-clean span {
        font-size: 31px;
    }

    .partner-login-card {
        padding: 18px 27px 16px;
    }

    .partner-login-card-heading h1 {
        font-size: 24px;
    }

    .partner-login-card-heading p {
        font-size: 11.5px;
    }

    .partner-login-form {
        gap: 9px;
        margin-top: 13px;
    }

    .partner-login-field {
        min-height: 44px;
    }

    .partner-login-field input {
        height: 42px;
    }

    .partner-password-toggle {
        height: 42px;
    }

    .partner-login-submit {
        min-height: 44px;
    }

    .partner-login-help {
        margin-top: 10px;
    }

    .partner-login-footer {
        padding-top: 8px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .partner-login-how {
        padding: 20px 23px 16px;
    }

    .partner-login-how-heading h2 {
        font-size: 25px;
    }

    .partner-login-how-heading p {
        font-size: 10.5px;
    }

    .partner-login-how-grid {
        gap: 8px;
        margin-top: 12px;
    }

    .partner-login-how-step {
        min-height: 116px;
        padding: 12px;
    }

    .partner-login-how-step h3 {
        font-size: 12.5px;
    }

    .partner-login-how-step p {
        font-size: 9.5px;
    }

    .partner-login-how-flags {
        margin-top: 8px;
    }

    .partner-login-how-access {
        margin-top: 8px;
        padding: 9px 11px;
    }

    .partner-login-how-footer {
        margin-top: 8px;
    }
}

/* Tablet/mobile: login first, compact explanation underneath. */
@media (max-width: 1180px) {
    .partner-login-shell {
        display: grid;
        min-height: 100vh;
        place-items: start center;
        padding: 18px 12px 30px;
    }

    .partner-login-content {
        width: min(100%, 600px);
        padding: 0;
    }

    .partner-login-how {
        width: min(100%, 700px);
        margin-top: 22px;
    }
}

@media (max-width: 650px) {
    .partner-login-how {
        padding: 22px 17px 17px;
        border-radius: 15px;
    }

    .partner-login-how-heading h2 {
        font-size: 25px;
    }

    .partner-login-how-grid {
        grid-template-columns: 1fr;
    }

    .partner-login-how-step {
        min-height: 0;
    }

    .partner-login-how-access {
        align-items: stretch;
        flex-direction: column;
    }

    .partner-login-how-access a {
        width: 100%;
    }
}


/* ================================================================
   OEMBG LOGIN SPLIT TIMELINE VISUAL v36.2
   Keeps the one-screen split, restores the v36 timeline style.
   ================================================================ */

.partner-login-how-timeline-panel {
    max-width: 720px;
    padding: 23px 25px 15px;
    border: 1px solid #cdddea;
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            rgba(231,243,255,.97) 0,
            rgba(247,251,255,.98) 125px,
            rgba(255,255,255,.98) 100%
        );
    box-shadow:
        0 22px 58px rgba(28, 67, 107, .11);
}

.partner-login-how-timeline-panel::before {
    top: -1px;
    left: 18%;
    width: 64%;
    background:
        linear-gradient(
            90deg,
            transparent,
            #1379df,
            #25aaa5,
            transparent
        );
}

.timeline-heading {
    max-width: 560px;
    margin: 0 auto 12px;
    text-align: center;
}

.timeline-heading h2 {
    font-size: 27px;
}

.timeline-heading p {
    margin-right: auto;
    margin-left: auto;
    font-size: 11px;
}

.partner-login-flow {
    position: relative;
    display: grid;
}

.partner-login-flow::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background:
        linear-gradient(
            180deg,
            #197ce1,
            #22aaa6 36%,
            #f08a2d 69%,
            #22a466
        );
    opacity: .62;
}

.partner-login-flow-step {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        58px
        minmax(0, 1fr);
    align-items: center;
    min-height: 101px;
}

.partner-login-flow-axis {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.partner-login-flow-axis span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #fff;
    border: 5px solid #edf6ff;
    border-radius: 50%;
    background: #1779df;
    box-shadow:
        0 0 0 1px rgba(22,120,223,.16),
        0 6px 15px rgba(18,83,148,.16);
    font-size: 9px;
    font-weight: 900;
}

.flow-02 .partner-login-flow-axis span {
    border-color: #ecf9f8;
    background: #20a4a1;
}

.flow-03 .partner-login-flow-axis span {
    border-color: #fff4e9;
    background: #ed872d;
}

.flow-04 .partner-login-flow-axis span {
    border-color: #edf9f2;
    background: #22a466;
}

.partner-login-flow-card {
    padding: 12px 14px;
    border: 1px solid #d4e0eb;
    border-radius: 6px;
    background: rgba(255,255,255,.96);
    box-shadow:
        0 7px 18px rgba(28,67,107,.055);
}

.flow-card-left {
    margin-right: 9px;
    border-right: 3px solid #1779df;
    text-align: right;
}

.flow-card-right {
    margin-left: 9px;
    border-left: 3px solid #20a4a1;
}

.flow-03 .flow-card-left {
    border-right-color: #ed872d;
}

.flow-04 .flow-card-right {
    border-left-color: #22a466;
}

.partner-login-flow-card .partner-how-tag {
    padding: 4px 6px;
    font-size: 7.5px;
}

.partner-login-flow-card h3 {
    margin: 6px 0 0;
    color: #17314d;
    font-size: 12.5px;
    line-height: 1.25;
}

.partner-login-flow-card p {
    margin: 5px 0 0;
    color: #667a90;
    font-size: 9.4px;
    line-height: 1.43;
}

.partner-login-flow-summary {
    max-width: 215px;
    padding-left: 14px;
}

.partner-login-flow-summary.summary-left {
    justify-self: end;
    padding-right: 14px;
    padding-left: 0;
    text-align: right;
}

.partner-login-flow-summary strong {
    display: block;
    color: #24425f;
    font-size: 11px;
}

.partner-login-flow-summary p {
    margin: 4px 0 0;
    color: #74859a;
    font-size: 8.8px;
    line-height: 1.42;
}

.partner-login-flow-bottom {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(235px, .75fr);
    gap: 9px;
    margin-top: 9px;
}

.partner-login-flow-flags {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 5px;
    padding: 8px 9px;
    border: 1px solid #d4e0eb;
    border-radius: 6px;
    background: rgba(255,255,255,.82);
}

.partner-login-flow-flags span {
    position: relative;
    padding: 5px 7px 5px 18px;
    color: #3b536d;
    border: 1px solid #d8e3ed;
    border-radius: 3px;
    background: #f9fbfd;
    font-size: 8.5px;
    font-weight: 750;
}

.partner-login-flow-flags span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 7px;
    width: 5px;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #1779df;
}

.compact-access {
    min-height: 56px;
    margin-top: 0;
    padding: 9px 10px;
}

.compact-access strong {
    font-size: 10.5px;
}

.compact-access a {
    min-width: 91px;
    min-height: 35px;
    padding: 0 9px;
    font-size: 9.5px;
}

.partner-login-how-timeline-panel
.partner-login-how-footer {
    margin-top: 8px;
}

/* Fit comfortably on ordinary desktop heights. */
@media (min-width: 1181px) {
    .partner-login-how-timeline-panel {
        align-self: center;
    }
}

@media (min-width: 1181px) and (max-height: 760px) {
    .partner-login-how-timeline-panel {
        padding: 15px 20px 10px;
    }

    .timeline-heading {
        margin-bottom: 7px;
    }

    .timeline-heading h2 {
        margin-top: 4px;
        font-size: 23px;
    }

    .timeline-heading p {
        margin-top: 4px;
        font-size: 9.5px;
    }

    .partner-login-flow-step {
        min-height: 88px;
    }

    .partner-login-flow-card {
        padding: 9px 11px;
    }

    .partner-login-flow-card h3 {
        font-size: 11.5px;
    }

    .partner-login-flow-card p {
        font-size: 8.5px;
    }

    .partner-login-flow-summary strong {
        font-size: 10px;
    }

    .partner-login-flow-summary p {
        font-size: 8px;
    }

    .partner-login-flow-bottom {
        margin-top: 5px;
    }

    .partner-login-flow-flags {
        padding: 5px 6px;
    }

    .partner-login-flow-flags span {
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 7.7px;
    }

    .compact-access {
        min-height: 47px;
        padding: 6px 8px;
    }

    .partner-login-how-timeline-panel
    .partner-login-how-footer {
        margin-top: 5px;
    }
}

/* Tablet/mobile: preserve timeline identity but use one vertical rail. */
@media (max-width: 1180px) {
    .partner-login-how-timeline-panel {
        max-width: 700px;
    }
}

@media (max-width: 700px) {
    .partner-login-how-timeline-panel {
        padding: 21px 16px 15px;
    }

    .partner-login-flow::before {
        left: 22px;
        transform: none;
    }

    .partner-login-flow-step {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 9px;
        min-height: 0;
        padding-bottom: 12px;
    }

    .partner-login-flow-axis {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .partner-login-flow-axis span {
        width: 39px;
        height: 39px;
        border-width: 4px;
    }

    .partner-login-flow-card {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding: 12px;
        border-right: 1px solid #d4e0eb;
        border-left: 3px solid #1779df;
        text-align: left;
    }

    .flow-02 .partner-login-flow-card {
        border-left-color: #20a4a1;
    }

    .flow-03 .partner-login-flow-card {
        border-left-color: #ed872d;
    }

    .flow-04 .partner-login-flow-card {
        border-left-color: #22a466;
    }

    .partner-login-flow-summary {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
        margin-top: 5px;
        padding: 0 3px;
        text-align: left;
    }

    .partner-login-flow-summary.summary-left {
        justify-self: auto;
        padding: 0 3px;
        text-align: left;
    }

    .partner-login-flow-bottom {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG ADMIN CLIENT LOGIN HISTORY v37
   ================================================================ */

.admin-login-history-panel {
    border: 1px solid #c7d4e1;
    background: #fff;
}

.admin-login-history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    border-bottom: 1px solid #d5e0ea;
    background: linear-gradient(180deg, #f8fbfe, #f2f7fb);
}

.admin-login-history-heading > div:first-child > span {
    color: #1767b2;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.admin-login-history-heading h3 {
    margin: 4px 0 0;
    color: #203a58;
    font-size: 17px !important;
}

.admin-login-history-heading p {
    margin: 5px 0 0;
    color: #6b7c90;
    font-size: 10.5px;
}

.admin-login-history-filters {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.admin-login-history-filters label > span {
    display: block;
    margin-bottom: 5px;
    color: #53687f;
    font-size: 9px !important;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-login-history-filters select,
.admin-login-history-filters input {
    min-height: 39px !important;
    padding: 0 9px;
    border: 1px solid #9fb2c6;
    background: #fff;
    font-size: 11px !important;
}

.admin-login-history-filters select {
    min-width: 155px;
}

.admin-login-history-filters input {
    width: 190px;
}

.admin-login-history-filters button,
.admin-login-history-filters a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #126bc0;
    font-size: 10.5px !important;
    font-weight: 900;
    text-decoration: none;
}

.admin-login-history-filters button {
    color: #fff;
    background: #126bc0;
    cursor: pointer;
}

.admin-login-history-filters a {
    color: #126bc0;
    background: #fff;
}

.admin-login-history-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border-bottom: 1px solid #d9e2eb;
    background: #d9e2eb;
}

.admin-login-history-stats article {
    padding: 13px 15px;
    background: #fff;
}

.admin-login-history-stats span,
.admin-login-history-stats strong {
    display: block;
}

.admin-login-history-stats span {
    color: #6c7e92;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-login-history-stats strong {
    margin-top: 5px;
    color: #15385f;
    font-size: 20px;
}

.admin-login-history-table-wrap {
    overflow-x: auto;
}

.admin-login-history-table {
    width: 100%;
    min-width: 1220px;
    border-collapse: collapse;
}

.admin-login-history-table th {
    padding: 11px 10px !important;
    color: #52677e;
    border-bottom: 1px solid #c8d6e3;
    background: #eaf1f7;
    font-size: 10px !important;
    text-align: left;
    text-transform: uppercase;
}

.admin-login-history-table td {
    padding: 12px 10px !important;
    color: #203b58;
    border-bottom: 1px solid #e0e7ee;
    font-size: 11.5px !important;
    vertical-align: middle;
}

.admin-login-history-table tbody tr:hover {
    background: #f8fbfd;
}

.admin-login-history-table td strong,
.admin-login-history-table td small {
    display: block;
}

.admin-login-history-table td strong {
    font-size: 11.5px !important;
}

.admin-login-history-table td small {
    margin-top: 4px;
    color: #738398;
    font-size: 9px !important;
}

.admin-history-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    font-size: 9.5px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-history-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.admin-history-status.online {
    color: #0b7141;
    background: #e3f7ec;
}

.admin-history-status.online i {
    background: #16a462;
    box-shadow: 0 0 0 3px rgba(22,164,98,.12);
}

.admin-history-status.active {
    color: #1765a6;
    background: #e9f3fc;
}

.admin-history-status.active i {
    background: #2f83ca;
}

.admin-history-status.logout {
    color: #66551d;
    background: #fff8df;
}

.admin-history-status.logout i {
    background: #d29b20;
}

.admin-history-status.expired,
.admin-history-status.ended {
    color: #606d7a;
    background: #edf1f4;
}

.admin-history-status.expired i,
.admin-history-status.ended i {
    background: #96a4b2;
}

.admin-login-history-empty {
    padding: 45px 22px;
    color: #6c7d91;
    text-align: center;
}

.admin-login-history-empty strong {
    display: block;
    color: #29435f;
    font-size: 14px;
}

.admin-login-history-empty p {
    margin: 6px 0 0;
    font-size: 10.5px;
}

.admin-login-history-note {
    padding: 10px 14px;
    color: #6c7d91;
    border-top: 1px solid #d8e2eb;
    background: #f8fafc;
    font-size: 9.5px;
}

@media (max-width: 1100px) {
    .admin-login-history-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-login-history-filters {
        flex-wrap: wrap;
    }

    .admin-login-history-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .admin-login-history-filters,
    .admin-login-history-filters label,
    .admin-login-history-filters select,
    .admin-login-history-filters input,
    .admin-login-history-filters button,
    .admin-login-history-filters a {
        width: 100%;
    }

    .admin-login-history-stats {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   OEMBG CLIENT ORDER SEARCH v38
   ================================================================ */

.orders-view-tabs {
    display: flex;
    align-items: stretch;
    gap: 5px;
    margin: 0 0 14px;
    padding: 5px;
    border: 1px solid #cfdbe7;
    background: #edf3f8;
}

.orders-view-tabs a {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    color: #476079;
    border: 1px solid transparent;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.orders-view-tabs a:hover {
    color: #155ea8;
    background: #f8fbfe;
}

.orders-view-tabs a.active {
    color: #fff;
    border-color: #105fae;
    background:
        linear-gradient(
            180deg,
            #1879d5,
            #1061b3
        );
    box-shadow:
        0 6px 14px rgba(16, 97, 179, .16);
}

.orders-view-tabs a small {
    display: inline-grid;
    min-width: 23px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    color: #1768b6;
    border-radius: 10px;
    background: #fff;
    font-size: 9px;
}

.orders-view-tabs a.active small {
    color: #155fa8;
}

.client-order-search-panel {
    margin-bottom: 15px;
    border: 1px solid #c9d7e4;
    background: #fff;
    box-shadow:
        0 8px 24px rgba(28, 65, 102, .055);
}

.client-order-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 17px;
    border-bottom: 1px solid #d4e0ea;
    background:
        linear-gradient(
            180deg,
            #f8fbfe,
            #f0f6fb
        );
}

.client-order-search-heading > div:first-child > span {
    display: block;
    color: #1768b7;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.client-order-search-heading h2 {
    margin: 4px 0 0;
    color: #1c3856;
    font-size: 17px;
}

.client-order-search-heading p {
    margin: 5px 0 0;
    color: #6b7e92;
    font-size: 10.5px;
}

.client-order-search-result {
    min-width: 120px;
    padding: 9px 12px;
    border-left: 3px solid #1675cc;
    background: #fff;
    text-align: right;
}

.client-order-search-result span,
.client-order-search-result strong {
    display: block;
}

.client-order-search-result span {
    color: #718296;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-order-search-result strong {
    margin-top: 3px;
    color: #155eaa;
    font-size: 18px;
}

.client-order-search-form {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(125px, 1fr));
    gap: 10px;
    padding: 15px 17px 17px;
}

.client-order-search-form label {
    display: block;
    min-width: 0;
}

.client-order-search-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #4b6077;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-order-search-form input,
.client-order-search-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    color: #1f3954;
    border: 1px solid #9fb3c6;
    border-radius: 3px;
    background: #fff;
    font-size: 11.5px;
}

.client-order-search-form input:focus,
.client-order-search-form select:focus {
    border-color: #1974ca;
    outline: 2px solid rgba(25, 116, 202, .10);
}

.client-order-search-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}

.client-order-search-actions button,
.client-order-search-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.client-order-search-actions button {
    color: #fff;
    border: 1px solid #1267b8;
    background:
        linear-gradient(
            180deg,
            #1979d2,
            #1266b6
        );
    cursor: pointer;
}

.client-order-search-actions button:hover {
    background: #105ca6;
}

.client-order-search-actions a {
    color: #435b73;
    border: 1px solid #afbdca;
    background: #fff;
}

.order-search-match-count {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 5px;
    padding: 4px 7px;
    color: #1468b4;
    border: 1px solid #bad5ec;
    border-radius: 3px;
    background: #edf6fe;
    font-size: 8.5px !important;
    font-weight: 900;
}

.order-search-item-match {
    background: #f3f9ff;
}

.order-search-item-match td:first-child {
    box-shadow:
        inset 3px 0 0 #1775cc;
}

.order-supplier-brand strong,
.order-supplier-brand small {
    display: block;
}

.order-supplier-brand strong {
    color: #203d5b;
    font-size: 11px;
}

.order-supplier-brand small {
    margin-top: 3px;
    color: #77889a;
    font-size: 9px;
}

.order-search-empty {
    border: 1px dashed #abc0d3;
    background: #f8fbfe;
}

@media (max-width: 1300px) {
    .client-order-search-form {
        grid-template-columns:
            repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .orders-view-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .orders-view-tabs a {
        padding: 0 8px;
        font-size: 10.5px;
    }

    .client-order-search-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .client-order-search-result {
        text-align: left;
    }

    .client-order-search-form {
        grid-template-columns: 1fr;
    }

    .client-order-search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .client-order-search-actions button,
    .client-order-search-actions a {
        width: 100%;
    }
}


/* ================================================================
   OEMBG CLIENT ORDER SEARCH — UNIQUE VISUAL v38.1
   ================================================================ */

.orders-command-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.orders-command-tabs > a {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    overflow: hidden;
    color: #3c536b;
    border: 1px solid #cad8e5;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f5f9fc);
    box-shadow: 0 8px 22px rgba(26, 61, 97, .055);
    text-decoration: none;
}

.orders-command-tabs > a::after {
    content: "";
    position: absolute;
    top: 0;
    right: -35px;
    width: 120px;
    height: 100%;
    transform: skewX(-18deg);
    background: rgba(20, 109, 193, .035);
}

.orders-command-tabs > a:hover {
    border-color: #8fb6d8;
    transform: translateY(-1px);
}

.orders-command-tabs > a.active {
    color: #fff;
    border-color: #0d5aa4;
    background: linear-gradient(125deg, #0a315a, #0d5f9f 70%, #1577bd);
    box-shadow: 0 13px 28px rgba(11, 70, 120, .20);
}

.orders-command-tabs > a.active::after {
    background: rgba(255,255,255,.075);
}

.orders-command-tab-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #1269b9;
    border: 1px solid #b9d4ea;
    border-radius: 50%;
    background: #edf6fd;
}

.orders-command-tabs > a.active .orders-command-tab-icon {
    color: #fff;
    border-color: rgba(255,255,255,.26);
    background: rgba(255,255,255,.12);
}

.orders-command-tab-icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orders-command-tab-copy {
    position: relative;
    z-index: 1;
    display: block;
}

.orders-command-tab-copy strong,
.orders-command-tab-copy small {
    display: block;
}

.orders-command-tab-copy strong {
    font-size: 13px;
}

.orders-command-tab-copy small {
    margin-top: 4px;
    color: #74869a;
    font-size: 9.5px;
}

.orders-command-tabs > a.active .orders-command-tab-copy small {
    color: #cce1f3;
}

.order-search-studio {
    margin-bottom: 17px;
    overflow: hidden;
    border: 1px solid #bed1e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(26, 63, 101, .085);
}

.order-search-studio-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(58, 167, 235, .22), transparent 28%),
        linear-gradient(120deg, #071f39, #0a456f 58%, #0c669c);
}

.order-search-studio-hero::after {
    content: "";
    position: absolute;
    right: -65px;
    bottom: -95px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255,255,255,.035),
        0 0 0 68px rgba(255,255,255,.02);
}

.order-search-studio-copy {
    position: relative;
    z-index: 1;
    flex: 1;
}

.order-search-eyebrow {
    display: block;
    color: #70c9ff;
    font-size: 8.5px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.order-search-studio-copy h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 21px;
}

.order-search-studio-copy p {
    max-width: 690px;
    margin: 7px 0 0;
    color: #c9deef;
    font-size: 10.5px;
    line-height: 1.55;
}

.order-search-studio-metric {
    position: relative;
    z-index: 1;
    min-width: 92px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(7px);
    text-align: center;
}

.order-search-studio-metric.result {
    border-color: rgba(117, 218, 183, .34);
    background: rgba(28, 157, 113, .18);
}

.order-search-studio-metric span,
.order-search-studio-metric strong,
.order-search-studio-metric small {
    display: block;
}

.order-search-studio-metric span {
    color: #afd1e9;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-search-studio-metric strong {
    margin-top: 2px;
    font-size: 22px;
}

.order-search-studio-metric small {
    margin-top: 1px;
    color: #d4e5f2;
    font-size: 8.5px;
}

.order-search-studio-form {
    display: grid;
    grid-template-columns: .92fr 1fr 1fr;
    gap: 1px;
    background: #d7e1ea;
}

.order-search-group {
    min-width: 0;
    padding: 16px;
    background: #fff;
}

.order-search-group > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.order-search-group-index {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: #116abc;
    border: 1px solid #b8d5ec;
    border-radius: 50%;
    background: #edf6fd;
    font-size: 9px;
    font-weight: 950;
}

.identity-group .order-search-group-index {
    color: #087e7a;
    border-color: #b8dfdc;
    background: #edf9f8;
}

.classification-group .order-search-group-index {
    color: #a45d14;
    border-color: #efd3b8;
    background: #fff5e9;
}

.order-search-group > header strong,
.order-search-group > header small {
    display: block;
}

.order-search-group > header strong {
    color: #203b57;
    font-size: 12px;
}

.order-search-group > header small {
    margin-top: 2px;
    color: #77889b;
    font-size: 8.5px;
}

.order-search-quick-periods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.order-search-quick-periods button {
    min-height: 31px;
    padding: 0 5px;
    color: #4f667d;
    border: 1px solid #c7d5e1;
    border-radius: 4px;
    background: #f7fafc;
    font-size: 8.5px;
    font-weight: 900;
    cursor: pointer;
}

.order-search-quick-periods button:hover,
.order-search-quick-periods button.selected {
    color: #fff;
    border-color: #116abb;
    background: #116abb;
}

.order-search-field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.order-search-field-pair label > span,
.order-search-premium-field > span {
    display: block;
    margin-bottom: 6px;
    color: #52677d;
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-search-field-pair input {
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    color: #213a54;
    border: 1px solid #aabccb;
    border-radius: 4px;
    background: #fff;
    font-size: 10px;
}

.order-search-premium-field {
    display: block;
}

.order-search-premium-field + .order-search-premium-field {
    margin-top: 10px;
}

.order-search-premium-field > div {
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #aabccb;
    border-radius: 4px;
    background: #fff;
}

.order-search-premium-field > div:focus-within {
    border-color: #1471c4;
    box-shadow: 0 0 0 2px rgba(20,113,196,.09);
}

.order-search-premium-field svg {
    width: 36px;
    height: 20px;
    padding: 0 8px;
    color: #47769e;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-search-premium-field input,
.order-search-premium-field select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 9px 0 0;
    color: #213a54;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 10.5px;
}

.order-search-studio-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    background: #f4f8fb;
}

.order-search-studio-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6b7d91;
    font-size: 9px;
}

.order-search-studio-hint span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1d9b68;
    box-shadow: 0 0 0 4px rgba(29,155,104,.10);
}

.order-search-studio-actions > div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-search-studio-actions a,
.order-search-studio-actions button {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}

.order-search-studio-actions a {
    color: #405971;
    border: 1px solid #afbecb;
    background: #fff;
}

.order-search-studio-actions button {
    color: #fff;
    border: 1px solid #0f66b5;
    background: linear-gradient(180deg, #1678d2, #0f62af);
    box-shadow: 0 7px 15px rgba(15,98,175,.16);
    cursor: pointer;
}

.order-search-studio-actions button:hover {
    background: #0c5ca5;
}

.order-search-studio-actions button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-search-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #d7e1ea;
    background: #fbfcfd;
}

.order-search-active-filters > strong {
    margin-right: 3px;
    color: #4c6278;
    font-size: 8.5px;
    text-transform: uppercase;
}

.order-search-active-filters > span {
    padding: 5px 7px;
    color: #165f9e;
    border: 1px solid #c1d9ed;
    border-radius: 3px;
    background: #eef6fc;
    font-size: 8.5px;
    font-weight: 800;
}

.order-search-match-count.unique {
    align-items: center;
    gap: 5px;
}

.order-search-match-count.unique svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-search-item-match {
    position: relative;
    background: linear-gradient(90deg, #eaf5ff, #f8fbfe 42%, #ffffff) !important;
}

.order-search-item-match td:first-child {
    box-shadow: inset 4px 0 0 #1475ca;
}

@media (max-width: 1180px) {
    .order-search-studio-form {
        grid-template-columns: 1fr 1fr;
    }

    .classification-group {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .orders-command-tabs {
        grid-template-columns: 1fr;
    }

    .order-search-studio-hero {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .order-search-studio-copy {
        flex-basis: 100%;
    }

    .order-search-studio-metric {
        flex: 1;
    }

    .order-search-studio-form {
        grid-template-columns: 1fr;
    }

    .classification-group {
        grid-column: auto;
    }

    .order-search-studio-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .order-search-studio-actions > div:last-child {
        width: 100%;
    }

    .order-search-studio-actions a,
    .order-search-studio-actions button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .order-search-field-pair,
    .order-search-quick-periods {
        grid-template-columns: 1fr 1fr;
    }

    .order-search-studio-actions > div:last-child {
        align-items: stretch;
        flex-direction: column;
    }

    .order-search-studio-actions a,
    .order-search-studio-actions button {
        width: 100%;
    }
}


/* ================================================================
   OEMBG BALANCE -> ORDER LINKS v39
   ================================================================ */

.balance-document-order-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 6px 9px;
    color: #0759a6;
    border: 1px solid #b8d4ec;
    border-radius: 4px;
    background:
        linear-gradient(
            180deg,
            #f7fbff,
            #eaf5ff
        );
    box-shadow:
        0 3px 9px rgba(18, 95, 164, .06);
    font-weight: 900;
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.balance-document-order-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-document-order-link svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.balance-document-order-link:hover {
    color: #fff;
    border-color: #0d65b7;
    background:
        linear-gradient(
            180deg,
            #1678d1,
            #0d62b1
        );
    box-shadow:
        0 7px 15px rgba(13, 98, 177, .17);
    transform: translateY(-1px);
}

.balance-document-order-link:focus-visible {
    outline: 3px solid rgba(16, 111, 196, .22);
    outline-offset: 2px;
}

.order-card-direct-open {
    position: relative;
    scroll-margin-top: 18px;
    border-color: #1680d6 !important;
    box-shadow:
        0 0 0 4px rgba(22, 128, 214, .13),
        0 18px 38px rgba(16, 91, 153, .17) !important;
    animation:
        order-direct-open-pulse
        1.15s ease-in-out
        2;
}

.order-card-direct-open > summary {
    background:
        linear-gradient(
            90deg,
            #e8f5ff,
            #f8fbfe 55%,
            #ffffff
        );
}

@keyframes order-direct-open-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 4px rgba(22, 128, 214, .11),
            0 18px 38px rgba(16, 91, 153, .14);
    }

    50% {
        box-shadow:
            0 0 0 8px rgba(22, 128, 214, .18),
            0 20px 42px rgba(16, 91, 153, .22);
    }
}

@media (max-width: 760px) {
    .balance-document-order-link {
        padding: 6px 7px;
    }
}


/* ================================================================
   OEMBG LOGISTICS STATUS TIMESTAMP v40
   ================================================================ */

.client-logistics-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.client-logistics-info > strong {
    color: #173b5f;
    font-size: 10.5px;
    line-height: 1.35;
}

.client-logistics-info > span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    color: #0f65ad;
    border: 1px solid #b9d6ec;
    border-radius: 3px;
    background:
        linear-gradient(
            180deg,
            #f4faff,
            #e7f3fd
        );
    font-size: 8.5px;
    font-weight: 900;
    white-space: nowrap;
}

.client-logistics-info > span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #1680d2;
    box-shadow:
        0 0 0 3px rgba(22, 128, 210, .11);
}

.client-order-extra-info {
    margin-top: 6px;
    color: #6c7e91;
    font-size: 9px;
    line-height: 1.45;
}

.admin-logistics-changed-at {
    display: block;
    margin-top: 6px;
    color: #1767aa;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .client-logistics-info {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ================================================================
   OEMBG ADMIN SIDEBAR FIT + INDEPENDENT SCROLL v40.1
   ================================================================ */

@media (min-width: 821px) {
    .admin-sidebar {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .admin-sidebar-brand {
        flex: 0 0 auto;
    }

    .admin-nav {
        position: relative;
        display: grid;
        flex: 1 1 auto;
        min-height: 0;
        align-content: start;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-color:
            rgba(89, 143, 199, .72)
            rgba(255, 255, 255, .035);
        scrollbar-width: thin;
        scroll-behavior: smooth;
    }

    .admin-nav::-webkit-scrollbar {
        width: 7px;
    }

    .admin-nav::-webkit-scrollbar-track {
        background:
            rgba(255, 255, 255, .025);
    }

    .admin-nav::-webkit-scrollbar-thumb {
        border: 2px solid #08182e;
        border-radius: 8px;
        background:
            rgba(89, 143, 199, .72);
    }

    .admin-nav::-webkit-scrollbar-thumb:hover {
        background:
            rgba(111, 168, 224, .9);
    }

    .admin-nav-link {
        flex: 0 0 auto;
        scroll-margin-block: 70px;
    }

    .admin-sidebar-status {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .admin-nav-has-overflow:not(
        .admin-nav-at-top
    ) {
        box-shadow:
            inset 0 13px 12px -13px
            rgba(0, 0, 0, .82);
    }

    .admin-nav-has-overflow:not(
        .admin-nav-at-bottom
    ) {
        border-bottom:
            1px solid
            rgba(101, 151, 201, .16);
    }
}

/*
   Compact only on short desktop screens.
   Text remains clear, while more menu entries fit at once.
*/
@media (
    min-width: 821px
) and (
    max-height: 840px
) {
    .admin-sidebar-brand {
        padding:
            17px 20px 14px
            !important;
    }

    .admin-sidebar-brand a {
        font-size: 24px !important;
    }

    .admin-sidebar-brand > span {
        margin-top: 2px;
        font-size: 8px !important;
    }

    .admin-nav {
        gap: 2px;
        padding:
            9px 10px 12px
            !important;
    }

    .admin-nav-link {
        min-height: 41px !important;
        gap: 10px !important;
        padding-right: 13px !important;
        padding-left: 13px !important;
        font-size: 11.5px !important;
    }

    .admin-nav-link > span {
        font-size: 14px !important;
    }

    .admin-sidebar-status {
        gap: 8px;
        margin:
            0 10px 8px
            !important;
        padding: 8px 10px;
    }

    .admin-sidebar-status strong {
        font-size: 10px !important;
    }

    .admin-sidebar-status small {
        font-size: 8px !important;
    }
}

@media (
    min-width: 821px
) and (
    max-height: 680px
) {
    .admin-sidebar-status {
        display: none;
    }

    .admin-nav-link {
        min-height: 38px !important;
    }
}


/* ================================================================
   OEMBG ADMIN ORDERS — FIT WITHOUT HORIZONTAL SCROLL v40.3
   ================================================================ */

@media (min-width: 901px) {
    .admin-orders-table-wrap {
        overflow-x: visible;
    }

    .admin-orders-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .admin-orders-col-order {
        width: 18%;
    }

    .admin-orders-col-client {
        width: 21%;
    }

    .admin-orders-col-date {
        width: 17%;
    }

    .admin-orders-col-items {
        width: 8%;
    }

    .admin-orders-col-amount {
        width: 11%;
    }

    .admin-orders-col-status {
        width: 13%;
    }

    .admin-orders-col-actions {
        width: 12%;
    }

    .admin-orders-table th,
    .admin-orders-table td {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-orders-table th {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .admin-orders-table td {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .admin-orders-table td:nth-child(4),
    .admin-orders-table th:nth-child(4) {
        text-align: center;
    }

    .admin-orders-actions-heading {
        text-align: right !important;
    }

    .admin-orders-actions-cell {
        overflow: visible !important;
    }

    .admin-order-row-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        min-width: 0;
        white-space: nowrap;
    }

    .admin-order-open,
    .admin-order-delete-link {
        flex: 0 0 auto;
    }

    .admin-order-open {
        font-size: 9px !important;
    }

    .admin-order-delete-link {
        font-size: 8px !important;
    }
}

/*
   Slightly tighter allocation on common 1366px screens.
*/
@media (
    min-width: 901px
) and (
    max-width: 1450px
) {
    .admin-orders-col-order {
        width: 19%;
    }

    .admin-orders-col-client {
        width: 20%;
    }

    .admin-orders-col-date {
        width: 17%;
    }

    .admin-orders-col-items {
        width: 7%;
    }

    .admin-orders-col-amount {
        width: 11%;
    }

    .admin-orders-col-status {
        width: 13%;
    }

    .admin-orders-col-actions {
        width: 13%;
    }

    .admin-orders-table {
        font-size: 10.5px !important;
    }

    .admin-orders-table th {
        font-size: 9px !important;
    }

    .admin-orders-table td small {
        font-size: 8.5px !important;
    }
}

/*
   On phones and narrow tablets, horizontal scrolling remains available
   because compressing seven columns further would harm readability.
*/
@media (max-width: 900px) {
    .admin-orders-table-wrap {
        overflow-x: auto;
    }

    .admin-orders-table {
        min-width: 900px;
        table-layout: auto;
    }
}


/* ================================================================
   OEMBG ADMIN ORDER THERMAL LABELS v41
   ================================================================ */

.admin-order-labels-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    color: #fff;
    border: 1px solid #1680c9;
    background:
        linear-gradient(
            135deg,
            #0a3156,
            #0c70aa
        );
    box-shadow:
        0 7px 15px
        rgba(11, 75, 117, .14);
    text-decoration: none;
}

.admin-order-labels-link > span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border:
        1px solid
        rgba(255,255,255,.28);
    background:
        rgba(255,255,255,.09);
    font-size: 13px;
}

.admin-order-labels-link strong,
.admin-order-labels-link small {
    display: block;
}

.admin-order-labels-link strong {
    font-size: 10.5px;
    line-height: 1.05;
}

.admin-order-labels-link small {
    margin-top: 3px;
    color: #bcdcf0;
    font-size: 8px;
}

.admin-order-labels-link:hover {
    color: #fff;
    border-color: #ff6c17;
    background:
        linear-gradient(
            135deg,
            #0a3156,
            #d65b12
        );
}

@media (max-width: 1250px) {
    .admin-order-labels-link {
        min-height: 43px;
        padding: 0 9px;
    }

    .admin-order-labels-link > span {
        width: 23px;
        height: 23px;
    }
}

/* OEMBG ORDER LABEL SIZE OPTIONS v41.1 */
.admin-order-labels-link{min-width:145px}
.admin-order-labels-link small{white-space:nowrap}


/* OEMBG LABEL QUANTITY PER ORDER LINE v41.2 */

.small-landscape .s-meta,
.small-portrait .s-meta {
    font-weight: 900;
}

.small-landscape .s-article,
.small-portrait .s-article {
    letter-spacing: -.1pt;
}


/* OEMBG BULK SEARCH DELETE + EXCEL v42 */
.bulk-selection-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px}
.bulk-selection-actions .bulk-delete-results,
.bulk-selection-actions .bulk-export-results{min-height:36px;padding:0 12px;border-radius:3px;font-size:9.5px;font-weight:900;cursor:pointer}
.bulk-selection-actions .bulk-delete-results{color:#a31f2a;border:1px solid #e4aeb4;background:linear-gradient(#fff8f8,#ffecec)}
.bulk-selection-actions .bulk-delete-results:hover:not(:disabled){color:#fff;border-color:#bd2937;background:#bd2937}
.bulk-selection-actions .bulk-export-results{color:#087342;border:1px solid #9fcdb7;background:linear-gradient(#f4fff9,#e6f8ef)}
.bulk-selection-actions .bulk-export-results:hover:not(:disabled){color:#fff;border-color:#09824a;background:#09824a}
.bulk-selection-actions .bulk-delete-results:disabled,
.bulk-selection-actions .bulk-export-results:disabled{color:#8a99a8;border-color:#d0d9e1;background:#edf1f4;cursor:not-allowed;opacity:.68}
@media(max-width:900px){.bulk-selection-actions{justify-content:flex-start}.bulk-selection-actions button{flex:1 1 145px}}


/* ================================================================
   OEMBG LOCAL STOCK ADMIN + CLIENT BADGE v43
   ================================================================ */

.local-stock-cell{white-space:nowrap}
.local-stock-badge{display:inline-flex;min-height:27px;align-items:center;padding:0 9px;border:1px solid #79bf98;border-radius:3px;color:#08723f;background:#eaf8f0;font-size:10px;font-weight:900;white-space:nowrap}
.local-stock-delivery{color:#08723f!important;font-weight:900}

.stock-admin-content{display:flex;flex-direction:column;gap:18px}
.admin-alert-success{border-color:#8bc8a5!important;color:#076c3b!important;background:#eaf8f0!important}
.stock-error-alert{border-color:#e1a2aa!important;color:#9e2632!important;background:#fff0f1!important}
.stock-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:25px 28px;color:#fff;background:linear-gradient(120deg,#061b31,#0b4778);box-shadow:0 12px 30px rgba(6,27,49,.14)}
.stock-hero>div:first-child{max-width:780px}.stock-hero span,.stock-section-heading span,.stock-table-heading span{color:#53aee8;font-size:9px;font-weight:900;letter-spacing:1.1px}.stock-hero h2{margin:7px 0 8px;font-size:25px}.stock-hero p{margin:0;color:#c8dbea;font-size:12px;line-height:1.65}.stock-hero p strong{color:#fff}.stock-hero-state{min-width:200px;padding:16px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.07)}.stock-hero-state small,.stock-hero-state strong{display:block}.stock-hero-state small{color:#9fc8e4;font-size:9px}.stock-hero-state strong{margin-top:5px;font-size:14px}
.stock-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stock-metrics article{padding:17px 18px;border:1px solid #d4dee7;background:#fff}.stock-metrics span,.stock-metrics strong{display:block}.stock-metrics span{color:#6f8193;font-size:9px;font-weight:800;text-transform:uppercase}.stock-metrics strong{margin-top:7px;color:#0a3156;font-size:23px}
.stock-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px}.stock-upload-card,.stock-rules-card,.stock-table-card,.stock-history-card{border:1px solid #d4dee7;background:#fff;box-shadow:0 8px 24px rgba(26,54,79,.055)}.stock-upload-card,.stock-rules-card,.stock-history-card{padding:22px}.stock-section-heading h3,.stock-table-heading h3{margin:4px 0 0;color:#173b5e;font-size:18px}
.stock-upload-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.stock-upload-form label{display:flex;flex-direction:column;gap:6px}.stock-upload-form label>span{color:#344e67;font-size:10px;font-weight:900}.stock-upload-form input,.stock-upload-form select{min-height:43px;padding:0 11px;border:1px solid #bdcad6;background:#fff;color:#173b5e;font-size:11px}.stock-upload-form small{color:#74879a;font-size:9px;line-height:1.4}.stock-file-drop{grid-column:1/-1;padding:15px;border:1px dashed #8eb8d4;background:#f4f9fc}.stock-file-drop input{padding:9px;background:#fff}.stock-recognized-columns{grid-column:1/-1;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px;border:1px solid #d7e4ed;background:#f8fbfd}.stock-recognized-columns strong{margin-right:5px;color:#37546d;font-size:9px}.stock-recognized-columns span{padding:5px 7px;color:#0a5f96;background:#e5f3fc;font-size:8.5px;font-weight:900}.stock-import-button{grid-column:1/-1;min-height:46px;border:0;color:#fff;background:linear-gradient(180deg,#ff7b25,#e95e0a);font-size:11px;font-weight:900;cursor:pointer}
.stock-rule-list{display:grid;gap:10px;margin-top:18px}.stock-rule-list>div{display:flex;gap:11px;padding:11px;border:1px solid #dde5ec;background:#f8fafc}.stock-rule-list b{display:grid;width:25px;height:25px;flex:0 0 25px;place-items:center;color:#fff;background:#0b69a2;font-size:9px}.stock-rule-list p{margin:0}.stock-rule-list strong,.stock-rule-list small{display:block}.stock-rule-list strong{color:#173b5e;font-size:10px}.stock-rule-list small{margin-top:3px;color:#72869a;font-size:9px;line-height:1.4}
.stock-table-card{overflow:hidden}.stock-table-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #dbe3ea}.stock-filter-form{display:flex;align-items:center;gap:7px}.stock-filter-form input,.stock-filter-form select{min-height:36px;padding:0 9px;border:1px solid #bdcad6;background:#fff;font-size:9.5px}.stock-filter-form input{width:240px}.stock-filter-form button,.stock-filter-form a{display:inline-flex;min-height:36px;align-items:center;padding:0 11px;border:1px solid #9cb4c8;color:#173b5e;background:#eef4f8;font-size:9px;font-weight:900;text-decoration:none;cursor:pointer}.stock-table-wrap{overflow:auto}.stock-table{width:100%;min-width:1040px;border-collapse:collapse}.stock-table th{padding:11px 10px;color:#547087;background:#eff4f7;font-size:8.5px;text-align:left;text-transform:uppercase}.stock-table td{padding:10px;border-top:1px solid #e1e7ec;color:#314d65;font-size:9.5px;vertical-align:middle}.stock-row-available{background:#fcfffd}.stock-row-zero{background:#fafbfc;opacity:.75}.stock-qty-form{display:flex;gap:5px}.stock-qty-form input{width:75px;min-height:33px;padding:0 7px;border:1px solid #aebfcd;font-weight:900}.stock-qty-form button{min-height:33px;border:1px solid #82b59a;color:#08713f;background:#eaf8f0;font-size:8.5px;font-weight:900;cursor:pointer}.stock-zero-badge{display:inline-flex;padding:6px 8px;color:#7a8793;border:1px solid #ccd5dc;background:#f1f4f6;font-size:9px;font-weight:800}.stock-delete-button{min-height:31px;border:1px solid #e1a7ad;color:#a52431;background:#fff0f1;font-size:8.5px;font-weight:900;cursor:pointer}.stock-empty-cell{padding:35px!important;text-align:center!important}
.stock-history-list{display:grid;gap:8px;margin-top:16px}.stock-history-list article{display:grid;grid-template-columns:minmax(200px,1fr) auto auto auto auto;align-items:center;gap:15px;padding:11px 12px;border:1px solid #dfe6ec;background:#fafcfd}.stock-history-list strong,.stock-history-list small{display:block}.stock-history-list strong{color:#173b5e;font-size:10px}.stock-history-list small{margin-top:3px;color:#788a9b;font-size:8.5px}.stock-history-list>article>span{color:#4f687e;font-size:9px;font-weight:800}
@media(max-width:1150px){.stock-layout{grid-template-columns:1fr}.stock-metrics{grid-template-columns:repeat(2,1fr)}.stock-table-heading{align-items:flex-start;flex-direction:column}.stock-filter-form{width:100%;flex-wrap:wrap}.stock-filter-form input{flex:1;min-width:220px}.stock-history-list article{grid-template-columns:1fr 1fr}.stock-history-list article>div{grid-column:1/-1}}
@media(max-width:700px){.stock-hero{align-items:flex-start;flex-direction:column}.stock-hero-state{width:100%}.stock-metrics{grid-template-columns:1fr 1fr}.stock-upload-form{grid-template-columns:1fr}.stock-upload-form>*{grid-column:1!important}.stock-filter-form>*{flex:1 1 100%}.stock-history-list article{grid-template-columns:1fr}}


/* ================================================================
   OEMBG LOCAL STOCK AS SEARCH SOURCE v43.2
   ================================================================ */

.local-stock-only-note {
    display: block;
    margin-top: 4px;
    color: #6e7d8c;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
}

.local-stock-inquiry {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: #89510b;
    border: 1px solid #e4c18b;
    border-radius: 3px;
    background: #fff7e8;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.result-row:has(.local-stock-only-note),
.bulk-table tr:has(.local-stock-only-note) {
    background:
        linear-gradient(
            90deg,
            rgba(225, 247, 235, .72),
            rgba(255, 255, 255, 0)
        );
}


/* ================================================================
   OEMBG LOCAL STOCK ACTIVE PRICE LIST v43.3
   ================================================================ */

.stock-table {
    min-width: 1240px;
}

.stock-price-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-price-form > span {
    color: #08713f;
    font-size: 12px;
    font-weight: 950;
}

.stock-price-form input {
    width: 92px;
    min-height: 33px;
    padding: 0 7px;
    border: 1px solid #9ebdac;
    color: #075c36;
    background: #fbfffd;
    font-weight: 950;
}

.stock-price-form button {
    min-height: 33px;
    border: 1px solid #82b59a;
    color: #08713f;
    background: #eaf8f0;
    font-size: 8.5px;
    font-weight: 900;
    cursor: pointer;
}

.stock-cart-active-badge,
.stock-no-price-badge {
    display: inline-flex;
    margin-top: 5px;
    padding: 5px 7px;
    font-size: 8px;
    font-weight: 900;
}

.stock-cart-active-badge {
    color: #08713f;
    border: 1px solid #8fc6a8;
    background: #e8f8ef;
}

.stock-no-price-badge {
    color: #985b0b;
    border: 1px solid #e7c48f;
    background: #fff7e8;
}


/* ================================================================
   OEMBG LOCAL STOCK AFTERMARKET PRICING + SEARCH VISUAL v43.4
   ================================================================ */

.local-stock-price-list-row {
    background:
        linear-gradient(
            90deg,
            rgba(230, 249, 239, .86),
            rgba(255, 255, 255, .96) 54%
        );
}

.result-brand-cell strong,
.local-stock-source-label {
    display: block;
}

.local-stock-source-label {
    width: max-content;
    margin-top: 4px;
    padding: 3px 5px;
    color: #08713f;
    border: 1px solid #9bcdb1;
    border-radius: 2px;
    background: #eaf8f0;
    font-size: 7.5px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.result-description-cell {
    overflow-wrap: anywhere;
}

.results-table .price-retail,
.results-table .discount-cell,
.results-table .price-client,
.bulk-table .price-retail,
.bulk-table .discount-cell,
.bulk-table .price-client {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.results-table .price-retail,
.bulk-table .price-retail {
    color: #425a70;
    font-weight: 800;
}

.results-table .discount-cell,
.bulk-table .discount-cell {
    color: #b45e14;
    font-weight: 950;
}

.results-table .price-client,
.bulk-table .price-client {
    color: #075fca;
    font-size: 12.5px!important;
    font-weight: 950;
}

.local-stock-cell {
    overflow: visible!important;
    white-space: normal!important;
}

.local-stock-badge {
    display: inline-flex;
    min-width: 76px;
    min-height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px 7px;
    overflow: visible;
    line-height: 1.05;
    white-space: normal;
}

.local-stock-badge span,
.local-stock-badge strong {
    display: block;
    white-space: nowrap;
}

.local-stock-badge span {
    font-size: 8px;
    text-transform: uppercase;
}

.local-stock-badge strong {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.local-stock-delivery {
    overflow: visible!important;
    text-align: center;
    white-space: normal!important;
}

.delivery-value {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    white-space: nowrap;
}

@media (min-width: 901px) {
    .results-table {
        min-width: 1000px;
    }

    .results-table th:nth-child(1) { width: 11%; }
    .results-table th:nth-child(2) { width: 12%; }
    .results-table th:nth-child(3) { width: 20%; }
    .results-table th:nth-child(4) { width: 10%; }
    .results-table th:nth-child(5) { width: 8%; }
    .results-table th:nth-child(6) { width: 11%; }
    .results-table th:nth-child(7) { width: 13%; }
    .results-table th:nth-child(8) { width: 7%; }
    .results-table th:nth-child(9) { width: 8%; }

    .results-table td {
        padding-right: 7px;
        padding-left: 7px;
    }
}

.stock-table th small {
    display: block;
    margin-top: 3px;
    color: #7b8e9f;
    font-size: 7px;
    font-weight: 700;
    text-transform: none;
}


/* ================================================================
   OEMBG LOCAL STOCK OEM + AFTERMARKET + TEMPLATE v43.5
   ================================================================ */

.stock-import-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.stock-template-download {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #075f9b;
    border: 1px solid #91bcd7;
    background:
        linear-gradient(
            180deg,
            #f5fbff,
            #e7f4fc
        );
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.stock-template-download:hover {
    color: #fff;
    border-color: #0873b4;
    background: #0873b4;
}

.stock-pricing-table {
    min-width: 1420px;
}

.stock-description-cell {
    min-width: 220px;
    max-width: 360px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.stock-row-type,
.local-stock-type-label {
    display: inline-flex;
    width: max-content;
    margin-top: 5px;
    padding: 3px 6px;
    border-radius: 2px;
    font-size: 7.5px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.stock-row-type-aftermarket,
.local-stock-type-aftermarket {
    color: #0a6599;
    border: 1px solid #9ecae2;
    background: #eaf6fd;
}

.stock-row-type-oem,
.local-stock-type-oem {
    color: #7a4200;
    border: 1px solid #e0ba80;
    background: #fff4df;
}

.stock-pricing-form {
    display: grid;
    min-width: 390px;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.stock-pricing-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-pricing-form label > span {
    color: #657b8e;
    font-size: 7.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.stock-type-field select {
    min-height: 34px;
    padding: 0 7px;
    border: 1px solid #9fb4c5;
    color: #163b5d;
    background: #fff;
    font-size: 9px;
    font-weight: 900;
}

.stock-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stock-price-grid label > div {
    display: flex;
    align-items: center;
    border: 1px solid #a9bdcc;
    background: #fbfdff;
}

.stock-price-grid b {
    padding-left: 7px;
    color: #08713f;
    font-size: 10px;
}

.stock-price-grid input {
    width: 94px;
    min-height: 32px;
    padding: 0 6px;
    border: 0;
    color: #173b5e;
    background: transparent;
    font-size: 10px;
    font-weight: 950;
}

.stock-pricing-form > button {
    min-height: 34px;
    padding: 0 9px;
    color: #08713f;
    border: 1px solid #84b99d;
    background: #eaf8f0;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.stock-oem-active-badge {
    color: #7a4200;
    border-color: #dfb779;
    background: #fff3de;
}

.local-stock-type-label {
    margin-top: 3px;
}

@media (max-width: 700px) {
    .stock-import-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .stock-template-download {
        width: 100%;
    }
}


/* ================================================================
   OEMBG CLEAN B2B PRICE TABLE v43.6
   Neutral, high-legibility price presentation.
   ================================================================ */

.results-table,
.bulk-table {
    color: #1c2f42;
}

.results-table thead th,
.bulk-table thead th {
    color: #24384b;
    border-bottom: 1px solid #c9d3dc;
    background: #eaf0f5;
    font-weight: 900;
}

.results-table tbody td,
.bulk-table tbody td {
    border-bottom: 1px solid #e0e6eb;
}

.results-table .result-row,
.bulk-table tbody tr {
    background: #fff;
}

.results-table .result-row:nth-child(even),
.bulk-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.results-table .result-row:hover,
.bulk-table tbody tr:hover {
    background: #f0f4f7;
}

/* Remove the green full-row tint from local warehouse results. */
.local-stock-price-list-row,
.result-row.local-stock-price-list-row,
.bulk-table tr.local-stock-price-list-row {
    background: inherit !important;
    box-shadow: inset 3px 0 0 #71869a;
}

/* All price columns use one neutral visual language. */
.results-table .price-retail,
.results-table .discount-cell,
.results-table .price-client,
.bulk-table .price-retail,
.bulk-table .discount-cell,
.bulk-table .price-client {
    color: #20364a !important;
    background: transparent !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    white-space: nowrap;
}

.results-table .price-retail,
.bulk-table .price-retail {
    color: #667583 !important;
    font-size: 10.5px !important;
    font-weight: 750 !important;
}

.results-table .discount-cell,
.bulk-table .discount-cell {
    color: #4e5e6c !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
}

.results-table .price-client,
.bulk-table .price-client {
    color: #102a43 !important;
    font-size: 12.5px !important;
    font-weight: 950 !important;
    letter-spacing: -.1px;
}

@media (min-width: 901px) {
    .results-table th:nth-child(4),
    .results-table th:nth-child(5),
    .results-table th:nth-child(6),
    .results-table td:nth-child(4),
    .results-table td:nth-child(5),
    .results-table td:nth-child(6),
    .bulk-table th:nth-child(5),
    .bulk-table th:nth-child(6),
    .bulk-table th:nth-child(7),
    .bulk-table td:nth-child(5),
    .bulk-table td:nth-child(6),
    .bulk-table td:nth-child(7) {
        text-align: right;
    }
}

/* Neutral warehouse labels: clear but not visually noisy. */
.local-stock-source-label,
.local-stock-type-label {
    color: #4a5d6f !important;
    border-color: #c7d1da !important;
    background: #f3f6f8 !important;
}

.local-stock-badge {
    color: #244638 !important;
    border-color: #b7c9c0 !important;
    background: #f2f7f4 !important;
}

.local-stock-delivery,
.local-stock-delivery .delivery-value {
    color: #344b5e !important;
}

.article-number {
    color: #193650;
}

/* Price cells remain easy to scan on compact desktop widths. */
@media (max-width: 1180px) and (min-width: 901px) {
    .results-table .price-retail,
    .results-table .discount-cell,
    .bulk-table .price-retail,
    .bulk-table .discount-cell {
        font-size: 10px !important;
    }

    .results-table .price-client,
    .bulk-table .price-client {
        font-size: 11.5px !important;
    }
}


/* v43.7 - client results restyled to a cleaner Autocarat-like presentation */
.search-box {
    background: #ffffff;
    border-color: #cfd7e3;
}

.search-box input {
    font-size: 14px;
}

.search-submit,
.bulk-search-toggle,
.service-requests-toggle,
.results-counter {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.results-table td:nth-child(5),
.results-table td:nth-child(6),
.results-table td:nth-child(7),
.results-table td:nth-child(8) {
    font-variant-numeric: tabular-nums;
}

.stock-availability,
.availability-chip,
.local-stock-chip {
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}


/* v43.8 - stronger Autocarat-inspired client catalog styling */
:root {
    --ac-blue: #0c7be8;
    --ac-blue-dark: #0869c8;
    --ac-text: #2f3a45;
    --ac-muted: #667789;
    --ac-border: #dfe5ea;
    --ac-header: #edf2f6;
    --ac-row: #ffffff;
    --ac-row-alt: #fbfcfd;
    --ac-hover: #f5f8fb;
}

body,
.search-box input,
.search-submit,
.results-table,
.results-table th,
.results-table td,
.row-cart-quantity,
.row-cart-button,
.bulk-search-toggle,
.service-requests-toggle,
.results-counter {
    font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}

.panel-heading h1 {
    color: var(--ac-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.panel-heading p {
    color: var(--ac-muted) !important;
    font-size: 12px !important;
}

.search-box {
    min-height: 48px !important;
    background: #fff !important;
    border: 1px solid var(--ac-border) !important;
    border-radius: 0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.search-box input {
    color: var(--ac-text) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.search-box input::placeholder {
    color: #8a98a8 !important;
}

.search-submit {
    min-width: 118px !important;
    height: 36px !important;
    margin-right: 8px !important;
    border: 2px solid #8cbff4 !important;
    border-radius: 18px !important;
    background: var(--ac-blue) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35) !important;
}

.search-submit:hover {
    background: var(--ac-blue-dark) !important;
}

.results-counter,
.service-requests-toggle,
.bulk-search-toggle {
    background: #fff !important;
    color: var(--ac-blue-dark) !important;
    border: 1px solid #bfd7ef !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.results-table-wrap {
    background: #fff !important;
    border: 1px solid var(--ac-border) !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    overflow: auto !important;
}

.results-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
    color: var(--ac-text) !important;
}

.results-table th {
    height: 42px !important;
    padding: 8px 14px !important;
    background: var(--ac-header) !important;
    color: var(--ac-text) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    border-bottom: 1px solid var(--ac-border) !important;
    white-space: nowrap !important;
}

.results-table td {
    padding: 11px 14px !important;
    background: var(--ac-row) !important;
    color: var(--ac-text) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-top: 1px solid #e9edf1 !important;
    vertical-align: middle !important;
}

.results-table tbody tr:nth-child(even) td,
.result-row:nth-child(even) td,
.result-row:nth-child(even) {
    background: var(--ac-row-alt) !important;
}

.results-table tbody tr:hover td,
.result-row:hover td,
.result-row:hover {
    background: var(--ac-hover) !important;
}

.article-number {
    color: #153c73 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.price-retail,
.discount-cell,
.price-client {
    white-space: nowrap !important;
}

.price-retail {
    color: #1560b8 !important;
    font-weight: 400 !important;
}

.discount-cell {
    color: var(--ac-muted) !important;
    font-weight: 400 !important;
}

.price-client {
    color: #1560b8 !important;
    font-weight: 700 !important;
}

.stock-availability,
.availability-chip,
.local-stock-chip {
    background: transparent !important;
    color: #2f6f2f !important;
    border: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.row-cart-quantity {
    width: 52px !important;
    height: 28px !important;
    border: 1px solid #b8c7d6 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--ac-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.row-cart-button {
    width: 30px !important;
    height: 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--ac-blue) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.row-cart-button:hover {
    background: var(--ac-blue-dark) !important;
}

.row-cart-button svg {
    width: 15px !important;
    height: 15px !important;
}


/* ================================================================
   OEMBG CLIENT AUTOCARAT PRECISION TUNING v43.8.1
   ================================================================ */

:root {
    --autocarat-blue: #087bd8;
    --autocarat-blue-dark: #0067ba;
    --autocarat-text: #222b35;
    --autocarat-muted: #6e7781;
    --autocarat-border: #d9dfe5;
    --autocarat-header: #eef3f7;
    --autocarat-row-hover: #f7f9fb;
}

.catalog-panel {
    padding: 16px 20px 12px !important;
    border-color: #d1d9e0 !important;
    background: #ffffff !important;
}

.panel-heading {
    align-items: center !important;
}

.panel-heading h1 {
    color: var(--autocarat-text) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
}

.panel-heading p {
    margin-top: 6px !important;
    color: var(--autocarat-muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
}

.panel-heading-actions {
    gap: 8px !important;
}

.result-counter,
.service-inquiry-entry,
.bulk-search-entry {
    min-height: 34px !important;
    padding: 0 13px !important;
    border: 1px solid #c5d8e8 !important;
    border-radius: 0 !important;
    color: #225b89 !important;
    background: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.search-box {
    height: 52px !important;
    margin-top: 13px !important;
    border: 0 !important;
    border-bottom: 1px solid #cfd6dc !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.search-icon {
    color: #3c4d5d !important;
    font-size: 20px !important;
}

.search-box input {
    color: var(--autocarat-text) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.search-submit {
    min-width: 126px !important;
    height: 38px !important;
    margin-right: 5px !important;
    border: 2px solid #a9cff1 !important;
    border-radius: 21px !important;
    color: #ffffff !important;
    background: var(--autocarat-blue) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 83, 156, .16) !important;
}

.search-submit:hover {
    background: var(--autocarat-blue-dark) !important;
}

.results-table-wrap {
    margin-top: 14px !important;
    border: 1px solid var(--autocarat-border) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 9px rgba(18, 42, 66, .06) !important;
}

.results-table {
    min-width: 1080px !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    color: var(--autocarat-text) !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.results-table th {
    height: 39px !important;
    padding: 8px 13px !important;
    color: #27333d !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--autocarat-border) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    text-transform: none !important;
}

.results-table td {
    height: 41px !important;
    padding: 8px 13px !important;
    color: var(--autocarat-text) !important;
    background: #ffffff !important;
    border-top: 1px solid #e4e8ec !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

.results-table tbody tr:nth-child(even) td,
.result-row:nth-child(even) td,
.result-row:nth-child(even) {
    background: #ffffff !important;
}

.results-table tbody tr:hover td,
.result-row:hover td,
.result-row:hover {
    background: var(--autocarat-row-hover) !important;
}

/* Exact desktop column proportions for the current 9-column result table. */
.results-table th:nth-child(1) { width: 11% !important; }
.results-table th:nth-child(2) { width: 16% !important; }
.results-table th:nth-child(3) { width: 27% !important; }
.results-table th:nth-child(4) { width: 10% !important; }
.results-table th:nth-child(5) { width: 8% !important; }
.results-table th:nth-child(6) { width: 11% !important; }
.results-table th:nth-child(7) { width: 8% !important; }
.results-table th:nth-child(8) { width: 7% !important; }
.results-table th:nth-child(9) { width: 9% !important; }

.results-table td:nth-child(4),
.results-table td:nth-child(5),
.results-table td:nth-child(6) {
    text-align: right !important;
}

.results-table td:nth-child(7),
.results-table td:nth-child(8) {
    text-align: center !important;
}

.article-number {
    color: #1f2d39 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.price-retail {
    color: #283746 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.discount-cell {
    color: #737d87 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.price-client {
    color: var(--autocarat-blue) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.local-stock-source-label,
.local-stock-type-label,
.local-stock-badge,
.stock-cart-active-badge {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.local-stock-badge,
.stock-availability,
.availability-chip,
.local-stock-chip {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    color: #286b39 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.row-cart-cell {
    padding-right: 8px !important;
}

.row-cart-form {
    justify-content: flex-end !important;
    gap: 8px !important;
}

.row-cart-quantity {
    width: 54px !important;
    height: 30px !important;
    padding: 0 4px !important;
    border: 1px solid #b7c3ce !important;
    border-radius: 0 !important;
    color: #26333e !important;
    background: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.row-cart-button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--autocarat-blue) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.row-cart-button:hover {
    color: var(--autocarat-blue-dark) !important;
    background: #edf6fd !important;
}

.row-cart-button svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.2 !important;
}

.selected-bar {
    border-color: var(--autocarat-border) !important;
    color: var(--autocarat-muted) !important;
    background: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
}

@media (max-width: 1250px) {
    .results-table {
        min-width: 1000px !important;
    }

    .results-table th,
    .results-table td {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }
}

/* ================================================================
   OEMBG CLIENT LIGHT BLUE PALETTE v43.8.2
   Autocarat-inspired white / light-grey / blue main dashboard
   ================================================================ */

:root {
    --oembg-light-page: #f4f6f8;
    --oembg-light-panel: #ffffff;
    --oembg-light-header: #ffffff;
    --oembg-light-table-head: #eaf1f7;
    --oembg-light-line: #d9e1e8;
    --oembg-light-line-strong: #c3d0dc;
    --oembg-light-text: #263746;
    --oembg-light-muted: #687887;
    --oembg-light-navy: #123c5c;
    --oembg-light-blue: #087dcc;
    --oembg-light-blue-dark: #0566aa;
    --oembg-light-blue-soft: #eaf5fc;
}

body,
.partner-body {
    background: var(--oembg-light-page) !important;
    color: var(--oembg-light-text) !important;
}

/* Main client header */
.partner-header {
    min-height: 88px !important;
    color: var(--oembg-light-text) !important;
    background: var(--oembg-light-header) !important;
    border-bottom: 1px solid var(--oembg-light-line) !important;
    box-shadow: 0 2px 7px rgba(27, 54, 77, .10) !important;
}

.partner-brand-block {
    padding: 15px 25px !important;
}

.partner-brand {
    color: var(--oembg-light-navy) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
}

.partner-subtitle {
    color: var(--oembg-light-muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
}

.partner-label {
    color: #748493 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.partner-balance {
    color: var(--oembg-light-text) !important;
    background: #fbfcfd !important;
    border-color: var(--oembg-light-line) !important;
}

.partner-balance strong {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
}

.partner-balance small {
    color: var(--oembg-light-muted) !important;
}

.partner-actions {
    gap: 14px !important;
}

.header-action {
    min-width: 132px !important;
    color: var(--oembg-light-blue-dark) !important;
    background: #ffffff !important;
    border: 1px solid #bcd4e6 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.header-action:hover {
    color: #ffffff !important;
    background: var(--oembg-light-blue) !important;
    border-color: var(--oembg-light-blue) !important;
}

.partner-client {
    color: var(--oembg-light-text) !important;
    background: #ffffff !important;
    border-color: var(--oembg-light-line-strong) !important;
}

.partner-client strong {
    color: var(--oembg-light-navy) !important;
}

.partner-client-mini-link,
.partner-client-mini-link:visited {
    color: #5d7487 !important;
}

.header-logout {
    color: var(--oembg-light-blue-dark) !important;
    background: #ffffff !important;
    border-color: #bcd4e6 !important;
}

.header-logout:hover {
    color: #ffffff !important;
    background: var(--oembg-light-blue) !important;
    border-color: var(--oembg-light-blue) !important;
}

/* Main workspace */
.partner-workspace {
    width: min(1420px, calc(100% - 26px)) !important;
    margin: 16px auto 22px !important;
    padding: 0 !important;
    gap: 14px !important;
    background: transparent !important;
}

.catalog-panel,
.cart-panel {
    border: 1px solid var(--oembg-light-line) !important;
    background: var(--oembg-light-panel) !important;
    box-shadow: 0 3px 13px rgba(21, 48, 71, .08) !important;
}

.catalog-panel {
    padding: 18px 18px 12px !important;
}

.cart-panel {
    padding: 17px 16px 10px !important;
}

.panel-heading h1,
.cart-heading h2 {
    color: var(--oembg-light-navy) !important;
}

.panel-heading p,
.cart-help {
    color: var(--oembg-light-muted) !important;
}

.result-counter,
.service-inquiry-entry,
.bulk-search-entry {
    color: var(--oembg-light-blue-dark) !important;
    background: #ffffff !important;
    border-color: #bed5e6 !important;
}

.result-counter:hover,
.service-inquiry-entry:hover,
.bulk-search-entry:hover {
    color: #ffffff !important;
    background: var(--oembg-light-blue) !important;
    border-color: var(--oembg-light-blue) !important;
}

/* Search */
.search-box {
    border: 1px solid #cbd6df !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 2px rgba(25, 51, 73, .035) !important;
}

.search-icon {
    color: var(--oembg-light-blue) !important;
}

.search-submit {
    border-color: #87bde4 !important;
    color: #ffffff !important;
    background: var(--oembg-light-blue) !important;
}

.search-submit:hover {
    background: var(--oembg-light-blue-dark) !important;
}

/* Result table: clear differentiated header */
.results-table-wrap {
    border-color: var(--oembg-light-line) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(25, 52, 75, .055) !important;
}

.results-table th {
    color: #29465c !important;
    background: var(--oembg-light-table-head) !important;
    border-top: 1px solid #d1dce6 !important;
    border-bottom: 2px solid #b7c9d8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.results-table td {
    color: var(--oembg-light-text) !important;
    background: #ffffff !important;
    border-top-color: #e5ebf0 !important;
}

.results-table tbody tr:nth-child(even) td,
.result-row:nth-child(even) td,
.result-row:nth-child(even) {
    background: #fbfcfd !important;
}

.results-table tbody tr:hover td,
.result-row:hover td,
.result-row:hover {
    background: #f1f7fb !important;
}

.article-number {
    color: #183d60 !important;
}

.price-retail {
    color: #536474 !important;
}

.discount-cell {
    color: #6f7f8d !important;
}

.price-client {
    color: var(--oembg-light-blue-dark) !important;
}

.row-cart-button {
    color: var(--oembg-light-blue) !important;
}

.row-cart-button:hover {
    color: var(--oembg-light-blue-dark) !important;
    background: var(--oembg-light-blue-soft) !important;
}

/* Cart: preserve readable typography, harmonise the palette */
.cart-counter {
    color: var(--oembg-light-blue-dark) !important;
    background: var(--oembg-light-blue-soft) !important;
}

.cart-list {
    border-color: var(--oembg-light-line) !important;
    background: #fbfcfd !important;
}

.cart-empty {
    border-color: #e2e8ed !important;
    color: #8a99a7 !important;
}

.cart-total {
    color: #ffffff !important;
    background: var(--oembg-light-navy) !important;
}

.cart-button-blue,
.cart-button-orange:not(:disabled) {
    color: #ffffff !important;
    background: var(--oembg-light-blue) !important;
}

.cart-button-blue:hover,
.cart-button-orange:not(:disabled):hover {
    background: var(--oembg-light-blue-dark) !important;
}

.cart-button-dark {
    background: #8796a4 !important;
}

.cart-button-light {
    color: #31495c !important;
    background: #e7edf2 !important;
}

.selected-bar {
    border-color: var(--oembg-light-line) !important;
    color: var(--oembg-light-muted) !important;
    background: #f8fafb !important;
}

/* Footer */
.partner-footer {
    color: #617484 !important;
    background: #ffffff !important;
    border-top: 1px solid var(--oembg-light-line) !important;
}

.partner-footer strong {
    color: var(--oembg-light-navy) !important;
}

.footer-oem,
.footer-aftermarket {
    color: var(--oembg-light-blue-dark) !important;
}

@media (max-width: 900px) {
    .partner-workspace {
        width: calc(100% - 14px) !important;
        margin-top: 8px !important;
    }
}

/* ================================================================
   OEMBG CLIENT DASHBOARD v43.8.3
   Branded blue hybrid: character of Orders page + clean catalog UI
   ================================================================ */

:root {
    --oembg-brand-deep: #073b5d;
    --oembg-brand-navy: #084f78;
    --oembg-brand-blue: #087cc1;
    --oembg-brand-blue-dark: #05659f;
    --oembg-brand-blue-soft: #e8f3fa;
    --oembg-brand-page: #eaf1f6;
    --oembg-brand-panel: #ffffff;
    --oembg-brand-line: #b8cad8;
    --oembg-brand-table-head: #dce8f2;
    --oembg-brand-text: #12344f;
    --oembg-brand-muted: #61798c;
}

body,
.partner-body {
    background: var(--oembg-brand-page) !important;
}

/* Strong branded top bar */
.partner-header {
    min-height: 98px !important;
    color: #ffffff !important;
    background:
        linear-gradient(
            112deg,
            #062f4d 0%,
            #084f78 58%,
            #0876b4 100%
        ) !important;
    border-bottom: 3px solid #0b82c8 !important;
    box-shadow: 0 4px 14px rgba(10, 46, 72, .22) !important;
}

.partner-brand,
.partner-brand:visited {
    color: #ffffff !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    letter-spacing: .015em !important;
}

.partner-subtitle {
    color: #cbe3f4 !important;
}

.partner-label {
    color: #bcd9ec !important;
}

.partner-balance {
    color: #ffffff !important;
    background: rgba(4, 37, 61, .32) !important;
    border-color: rgba(203, 227, 244, .30) !important;
}

.partner-balance small {
    color: #d7e9f5 !important;
}

.header-action {
    color: #ffffff !important;
    background: rgba(4, 44, 72, .38) !important;
    border: 1px solid rgba(212, 235, 249, .48) !important;
    box-shadow: none !important;
}

.header-action:hover {
    color: #ffffff !important;
    background: #0b82c8 !important;
    border-color: #8fd2f5 !important;
}

.partner-client {
    color: #ffffff !important;
    background: rgba(4, 42, 69, .34) !important;
    border-color: rgba(208, 233, 248, .40) !important;
}

.partner-client strong {
    color: #ffffff !important;
}

.partner-client-mini-link,
.partner-client-mini-link:visited {
    color: #d6eaf7 !important;
}

.header-logout {
    color: #ffffff !important;
    background: rgba(4, 42, 69, .25) !important;
    border-color: rgba(208, 233, 248, .45) !important;
}

.header-logout:hover {
    color: #ffffff !important;
    background: #0b82c8 !important;
    border-color: #8fd2f5 !important;
}

/* Workspace and cards */
.partner-workspace {
    width: min(1440px, calc(100% - 24px)) !important;
    margin: 15px auto 24px !important;
    gap: 14px !important;
}

.catalog-panel,
.cart-panel {
    border: 1px solid var(--oembg-brand-line) !important;
    border-top: 4px solid var(--oembg-brand-blue) !important;
    background: var(--oembg-brand-panel) !important;
    box-shadow: 0 4px 14px rgba(17, 62, 94, .10) !important;
}

.panel-heading h1,
.cart-heading h2 {
    color: var(--oembg-brand-text) !important;
    font-weight: 750 !important;
}

.panel-heading p,
.cart-help {
    color: var(--oembg-brand-muted) !important;
}

.result-counter,
.service-inquiry-entry,
.bulk-search-entry {
    color: var(--oembg-brand-blue-dark) !important;
    background: #f8fbfd !important;
    border: 1px solid #9fc7e0 !important;
    font-weight: 700 !important;
}

.result-counter:hover,
.service-inquiry-entry:hover,
.bulk-search-entry:hover {
    color: #ffffff !important;
    background: var(--oembg-brand-blue) !important;
    border-color: var(--oembg-brand-blue) !important;
}

/* Search bar */
.search-box {
    border: 1px solid #a9c1d2 !important;
    background: #f7fbfe !important;
    box-shadow: inset 0 1px 2px rgba(20, 61, 91, .05) !important;
}

.search-icon {
    color: var(--oembg-brand-blue) !important;
}

.search-submit {
    color: #ffffff !important;
    background: var(--oembg-brand-blue) !important;
    border-color: #7fc1e8 !important;
    box-shadow: 0 1px 3px rgba(6, 89, 140, .20) !important;
}

.search-submit:hover {
    background: var(--oembg-brand-blue-dark) !important;
}

/* Clearly separated result table header */
.results-table-wrap {
    border: 1px solid #aebfcd !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.results-table th {
    color: #183e5a !important;
    background:
        linear-gradient(
            180deg,
            #e8f1f8 0%,
            var(--oembg-brand-table-head) 100%
        ) !important;
    border-top: 1px solid #c2d3df !important;
    border-bottom: 2px solid #7fa6c1 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.75) !important;
}

.results-table td {
    color: #253f53 !important;
    background: #ffffff !important;
    border-top-color: #e2e9ee !important;
}

.results-table tbody tr:nth-child(even) td,
.result-row:nth-child(even) td,
.result-row:nth-child(even) {
    background: #f9fbfd !important;
}

.results-table tbody tr:hover td,
.result-row:hover td,
.result-row:hover {
    background: #eef6fb !important;
}

.article-number {
    color: #0b4169 !important;
    font-weight: 750 !important;
}

.price-retail {
    color: #3f5b70 !important;
}

.discount-cell {
    color: #6f8291 !important;
}

.price-client {
    color: #056baa !important;
    font-weight: 800 !important;
}

/* Cart: same readable typography, stronger brand presence */
.cart-counter {
    color: #075f96 !important;
    background: #e7f3fa !important;
    border: 1px solid #c2deef !important;
}

.cart-list {
    background: #f8fbfd !important;
    border-color: #cbd8e2 !important;
}

.cart-total {
    color: #ffffff !important;
    background:
        linear-gradient(
            112deg,
            #073b5d 0%,
            #075f91 100%
        ) !important;
}

.cart-button-blue,
.cart-button-orange:not(:disabled) {
    color: #ffffff !important;
    background: var(--oembg-brand-blue) !important;
}

.cart-button-blue:hover,
.cart-button-orange:not(:disabled):hover {
    background: var(--oembg-brand-blue-dark) !important;
}

.cart-button-dark {
    color: #ffffff !important;
    background: #8397a7 !important;
}

.cart-button-light {
    color: #29485f !important;
    background: #dfeaf2 !important;
}

.row-cart-button {
    color: #0877ba !important;
    background: transparent !important;
}

.row-cart-button:hover {
    color: #055d93 !important;
    background: #e7f3fa !important;
}

.selected-bar {
    color: #526d80 !important;
    background: #f4f8fb !important;
    border-color: #c2d2de !important;
}

/* Branded footer */
.partner-footer {
    color: #c7deed !important;
    background: #062f4d !important;
    border-top: 3px solid #0a75b2 !important;
}

.partner-footer strong {
    color: #ffffff !important;
}

.footer-oem,
.footer-aftermarket {
    color: #7fc9f2 !important;
}

@media (max-width: 900px) {
    .partner-workspace {
        width: calc(100% - 12px) !important;
        margin-top: 7px !important;
    }

    .partner-header {
        border-bottom-width: 2px !important;
    }
}

/* OEMBG V43.8.4 FULL VISIBLE RESULT FIELDS START */

@media (min-width: 1050px) {
    .partner-workspace {
        grid-template-columns: minmax(0, 1fr) 252px !important;
        gap: 12px !important;
    }

    .catalog-panel {
        min-width: 0 !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .cart-panel {
        min-width: 0 !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .results-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .results-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .results-table th,
    .results-table td {
        min-width: 0 !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .results-table th {
        height: auto !important;
        min-height: 44px !important;
        padding: 9px 6px !important;
        font-size: 11px !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        vertical-align: middle !important;
    }

    .results-table td {
        padding: 10px 6px !important;
        font-size: 12px !important;
        line-height: 1.28 !important;
        vertical-align: middle !important;
    }

    .results-table th:nth-child(1) { width: 12% !important; }
    .results-table th:nth-child(2) { width: 11% !important; }
    .results-table th:nth-child(3) { width: 23% !important; }
    .results-table th:nth-child(4) { width: 10% !important; }
    .results-table th:nth-child(5) { width: 7.5% !important; }
    .results-table th:nth-child(6) { width: 10% !important; }
    .results-table th:nth-child(7) { width: 10% !important; }
    .results-table th:nth-child(8) { width: 8% !important; }
    .results-table th:nth-child(9) { width: 8.5% !important; }

    .results-table td:nth-child(1),
    .results-table td:nth-child(3),
    .results-table td:nth-child(7) {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .results-table td:nth-child(2),
    .results-table td:nth-child(4),
    .results-table td:nth-child(5),
    .results-table td:nth-child(6),
    .results-table td:nth-child(8),
    .results-table td:nth-child(9) {
        white-space: nowrap !important;
    }

    .results-table td:nth-child(4),
    .results-table td:nth-child(5),
    .results-table td:nth-child(6) {
        text-align: right !important;
        font-variant-numeric: tabular-nums !important;
    }

    .results-table td:nth-child(7),
    .results-table td:nth-child(8),
    .results-table td:nth-child(9) {
        text-align: center !important;
    }

    .article-number,
    .price-retail,
    .discount-cell,
    .price-client,
    .delivery-value {
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .local-stock-source-label,
    .local-stock-type-label {
        display: flex !important;
        width: max-content !important;
        max-width: 100% !important;
        min-height: 18px !important;
        align-items: center !important;
        margin-top: 3px !important;
        padding: 2px 5px !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .local-stock-cell {
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .local-stock-badge,
    .stock-availability,
    .availability-chip,
    .local-stock-chip {
        display: flex !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .local-stock-badge span,
    .local-stock-badge strong {
        display: block !important;
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    .local-stock-badge span {
        font-size: 8px !important;
    }

    .local-stock-badge strong {
        font-size: 11px !important;
        font-variant-numeric: tabular-nums !important;
    }

    .local-stock-delivery,
    .local-stock-delivery .delivery-value {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .row-cart-cell {
        padding: 6px 3px !important;
        overflow: visible !important;
    }

    .row-cart-form {
        display: grid !important;
        grid-template-columns: 38px 30px !important;
        width: 72px !important;
        max-width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .row-cart-quantity {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 30px !important;
        padding: 0 2px !important;
        font-size: 12px !important;
    }

    .row-cart-button {
        display: inline-flex !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .row-cart-button svg {
        width: 15px !important;
        height: 15px !important;
        flex: 0 0 15px !important;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .results-table th {
        padding-right: 4px !important;
        padding-left: 4px !important;
        font-size: 10px !important;
    }

    .results-table td {
        padding-right: 4px !important;
        padding-left: 4px !important;
        font-size: 11px !important;
    }

    .partner-workspace {
        grid-template-columns: minmax(0, 1fr) 232px !important;
    }
}

/* OEMBG V43.8.4 FULL VISIBLE RESULT FIELDS END */

/* OEMBG V43.8.5 ALIGN DELIVERY AND QUANTITY START */

/* Само вертикално изравняване на Доставка, количество и количка. */
@media (min-width: 900px) {
    .results-table tbody td:nth-child(8),
    .results-table tbody td:nth-child(9) {
        height: 78px !important;
        vertical-align: middle !important;
    }

    .results-table tbody td:nth-child(8) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        text-align: center !important;
    }

    .local-stock-delivery,
    .local-stock-delivery .delivery-value,
    .results-table tbody td:nth-child(8) > span,
    .results-table tbody td:nth-child(8) > div {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 30px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .row-cart-cell {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        vertical-align: middle !important;
    }

    .row-cart-form {
        display: flex !important;
        height: 100% !important;
        min-height: 30px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .row-cart-quantity,
    .row-cart-button {
        align-self: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* OEMBG V43.8.5 ALIGN DELIVERY AND QUANTITY END */

/* === v43.8.7: align result counter with top action buttons === */
.search-actions,
.dashboard-actions,
.dashboard-toolbar-actions,
.search-toolbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.search-actions > *,
.dashboard-actions > *,
.dashboard-toolbar-actions > *,
.search-toolbar-actions > * {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.result-counter {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    line-height: 1 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* OEMBG V43.9.2 HEADER LOGO START */
.partner-brand-block { min-width: 320px !important; }
.partner-brand-logo {
  display:flex !important; width:300px !important; max-width:100% !important;
  height:64px !important; align-items:center !important; justify-content:flex-start !important;
  padding:0 !important; margin:0 !important; overflow:visible !important; text-decoration:none !important;
}
.partner-brand-logo-image {
  display:block !important; width:auto !important; max-width:300px !important;
  height:54px !important; object-fit:contain !important; object-position:left center !important;
}
.partner-subtitle { margin-top:2px !important; }
@media (max-width:950px) {
  .partner-brand-block { min-width:240px !important; }
  .partner-brand-logo { width:220px !important; height:52px !important; }
  .partner-brand-logo-image { max-width:220px !important; height:42px !important; }
}
/* OEMBG V43.9.2 HEADER LOGO END */

/* OEMBG INVOICE STATUS V44.1 START */
.invoice-status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.invoice-status-paid {
    color: #087344;
    border-color: #8ed4b2;
    background: #e7f8ef;
}

.invoice-status-pending {
    color: #8a5700;
    border-color: #e8c476;
    background: #fff6dd;
}

.invoice-status-overdue {
    color: #a51f32;
    border-color: #e5a1aa;
    background: #ffeaed;
}

.invoice-payment-meta {
    display: block;
    margin-top: 5px;
    color: #718095;
    font-size: 8px;
    white-space: nowrap;
}

.partner-invoices-table {
    min-width: 940px;
}

.admin-invoice-upload-panel {
    overflow-x: auto;
}

.admin-invoice-upload-form {
    min-width: 1320px;
    grid-template-columns:
        minmax(230px, 1.3fr)
        minmax(145px, .75fr)
        132px
        132px
        125px
        minmax(135px, .7fr)
        minmax(190px, 1fr)
        auto;
}

.admin-invoice-table {
    min-width: 1580px;
}

.admin-invoice-due-form {
    display: flex;
    min-width: 176px;
    align-items: center;
    gap: 5px;
}

.admin-invoice-due-form input {
    width: 125px;
    min-height: 32px;
    padding: 0 6px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 8px;
    font-weight: 750;
}

.admin-invoice-due-form button {
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #1764c3;
    color: #1764c3;
    background: #fff;
    cursor: pointer;
    font-size: 8px;
    font-weight: 950;
}

.admin-invoice-due-form button:hover {
    color: #fff;
    background: #1764c3;
}

.admin-balance-action-card form {
    grid-template-columns:
        135px
        minmax(230px, 1.2fr)
        minmax(180px, 1fr);
}

.admin-balance-action-card select {
    width: 100%;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid #aeb9c8;
    color: #172741;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
}

.admin-balance-action-card input[readonly] {
    color: #0b6543;
    border-color: #85c7aa;
    background: #eef9f3;
}

.admin-invoice-payment-help {
    display: block;
    margin-top: 5px;
    color: #687c92;
    font-size: 8px;
    line-height: 1.35;
}

.admin-balance-action-card button:disabled {
    cursor: wait;
    opacity: .68;
}

@media (max-width: 1180px) {
    .admin-balance-action-card form {
        grid-template-columns: 1fr;
    }

    .admin-balance-action-card button {
        grid-column: 1;
    }
}
/* OEMBG INVOICE STATUS V44.1 END */

/* OEMBG CLIENT ONBOARDING V44.3 START */
.settings-guide-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 230px;
    min-height: 54px;
    padding: 8px 13px;
    border: 1px solid #8fc8e8;
    border-radius: 3px;
    background: #f5fbff;
    color: #006fae;
    text-decoration: none;
}

.settings-guide-button:hover,
.settings-guide-button:focus-visible {
    border-color: #008bd2;
    background: #e6f5ff;
    outline: none;
}

.settings-guide-button > span:first-child {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.settings-guide-button > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 2px;
}

.settings-guide-button small {
    color: #628399;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.settings-guide-button strong {
    color: #06466e;
    font-size: 13px;
}

.settings-guide-button b {
    font-size: 20px;
}

body.portal-onboarding-open {
    overflow: hidden;
}

.portal-onboarding[hidden] {
    display: none !important;
}

.portal-onboarding {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.portal-onboarding-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 42, 69, 0.72);
    backdrop-filter: blur(3px);
    cursor: default;
}

.portal-onboarding-dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid #9dc9e2;
    border-top: 5px solid #008fd3;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 35, 58, 0.34);
    color: #05314d;
}

.portal-onboarding-close {
    position: absolute;
    z-index: 2;
    top: 13px;
    right: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #c8dce8;
    border-radius: 50%;
    background: #f6fbfe;
    color: #416a82;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.portal-onboarding-close:hover,
.portal-onboarding-close:focus-visible {
    border-color: #008fd3;
    color: #0078ba;
    outline: none;
}

.portal-onboarding-heading {
    padding: 30px 70px 23px;
    text-align: center;
    background: linear-gradient(180deg, #f3faff 0%, #ffffff 100%);
}

.portal-onboarding-heading > span {
    color: #0081c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.portal-onboarding-heading h2 {
    margin: 7px 0 8px;
    color: #052d48;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.portal-onboarding-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #58768a;
    font-size: 14px;
    line-height: 1.55;
}

.portal-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 26px 26px;
}

.portal-onboarding-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 190px;
    padding: 22px 18px;
    overflow: hidden;
    border: 1px solid #c6dce9;
    border-radius: 4px;
    background: #fbfdff;
}

.portal-onboarding-step::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--portal-step-color);
}

.portal-onboarding-step-search {
    --portal-step-color: #078cdb;
}

.portal-onboarding-step-order {
    --portal-step-color: #00a99a;
}

.portal-onboarding-step-invoice {
    --portal-step-color: #f28a2f;
}

.portal-onboarding-step-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--portal-step-color);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--portal-step-color) 14%, transparent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.portal-onboarding-step-label {
    color: var(--portal-step-color);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.portal-onboarding-step h3 {
    margin: 7px 0 9px;
    color: #07324e;
    font-size: 16px;
    line-height: 1.3;
}

.portal-onboarding-step p {
    margin: 0;
    color: #5a7486;
    font-size: 12px;
    line-height: 1.55;
}

.portal-onboarding-footer {
    padding: 20px 26px 24px;
    border-top: 1px solid #d5e5ee;
    background: #f4f9fc;
}

.portal-onboarding-preference {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: fit-content;
    cursor: pointer;
}

.portal-onboarding-preference input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #0088ce;
}

.portal-onboarding-preference span {
    display: grid;
    gap: 3px;
}

.portal-onboarding-preference strong {
    color: #123b54;
    font-size: 13px;
}

.portal-onboarding-preference small {
    color: #688191;
    font-size: 11px;
}

.portal-onboarding-error {
    margin: 12px 0 0;
    padding: 9px 12px;
    border: 1px solid #e7a8a8;
    background: #fff3f3;
    color: #a12828;
    font-size: 12px;
}

.portal-onboarding-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.portal-onboarding-later,
.portal-onboarding-finish {
    min-height: 40px;
    padding: 0 19px;
    border-radius: 3px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.portal-onboarding-later {
    border: 1px solid #a9c6d7;
    background: #ffffff;
    color: #416779;
}

.portal-onboarding-finish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #007dc2;
    background: #087fd0;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(0, 111, 181, 0.2);
}

.portal-onboarding-later:hover,
.portal-onboarding-later:focus-visible {
    border-color: #608fa8;
    color: #174b68;
    outline: none;
}

.portal-onboarding-finish:hover,
.portal-onboarding-finish:focus-visible {
    background: #006eb3;
    outline: 2px solid #a5dcfb;
    outline-offset: 2px;
}

.portal-onboarding-finish:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 820px) {
    .portal-onboarding {
        padding: 14px;
    }

    .portal-onboarding-dialog {
        max-height: calc(100vh - 28px);
    }

    .portal-onboarding-heading {
        padding: 27px 50px 20px;
    }

    .portal-onboarding-steps {
        grid-template-columns: 1fr;
        padding: 0 18px 18px;
    }

    .portal-onboarding-step {
        min-height: 0;
    }

    .portal-onboarding-footer {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .settings-guide-button {
        width: 100%;
    }

    .portal-onboarding {
        padding: 0;
    }

    .portal-onboarding-dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-width: 5px 0 0;
        border-radius: 0;
    }

    .portal-onboarding-heading {
        padding: 27px 42px 19px 22px;
        text-align: left;
    }

    .portal-onboarding-heading h2 {
        font-size: 26px;
    }

    .portal-onboarding-step {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 18px 14px;
    }

    .portal-onboarding-step-number {
        width: 38px;
        height: 38px;
    }

    .portal-onboarding-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .portal-onboarding-finish {
        grid-row: 1;
    }
}
/* OEMBG CLIENT ONBOARDING V44.3 END */
