:root {
    --npb-primary: #6d8eb1;
    --npb-accent: #dad85f;
    --npb-white: #ffffff;
    --npb-ink: #17202a;
    --npb-muted: #6b7280;
    --npb-bg: #f4f6f8;
    --npb-border: #e4e8ec;
    --npb-sidebar: #111820;
    --npb-radius: 18px;
}

html,
body.npb-portal-page {
    margin: 0;
    min-height: 100%;
    background: var(--npb-bg);
}

body.npb-portal-page {
    min-width: 320px;
    overflow-x: hidden;
}

body.npb-portal-page.npb-menu-open {
    overflow: hidden;
}

#npb-portal-shell {
    width: 100%;
    min-height: 100vh;
}

.npb-portal,
.npb-portal * {
    box-sizing: border-box;
}

.npb-portal {
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--npb-ink);
}

.npb-portal h1,
.npb-portal h2,
.npb-portal h3,
.npb-portal strong,
.npb-portal .npb-nav-item {
    font-family: "Montserrat", Arial, sans-serif;
}

.npb-portal a {
    text-decoration: none;
}

.npb-app {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: var(--npb-bg);
    overflow: hidden;
}

.npb-sidebar {
    background: var(--npb-sidebar);
    color: #fff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 30;
}

.npb-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.npb-sidebar-brand-copy {
    min-width: 0;
}

.npb-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--npb-primary);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    flex: 0 0 auto;
}

.npb-sidebar-brand strong {
    display: block;
    font-size: 14px;
}

.npb-sidebar-brand span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.npb-sidebar-close {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.npb-nav {
    display: grid;
    gap: 5px;
    padding-top: 24px;
}

.npb-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.npb-nav-item > span {
    color: rgba(218, 216, 95, .7);
    font-size: 10px;
    letter-spacing: .08em;
}

.npb-nav-item em {
    margin-left: auto;
    font-family: "Open Sans", Arial, sans-serif;
    font-style: normal;
    font-size: 9px;
    color: rgba(255, 255, 255, .32);
}

.npb-nav-item.is-active {
    background: rgba(109, 142, 177, .22);
    color: #fff;
}

.npb-nav-item.is-active::before {
    content: "";
    width: 3px;
    height: 22px;
    border-radius: 4px;
    background: var(--npb-accent);
    position: absolute;
    left: 0;
}

.npb-nav-item.is-disabled {
    cursor: not-allowed;
}

.npb-sidebar-footer {
    margin-top: auto;
    padding: 20px 8px 4px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.npb-sidebar-footer span {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.npb-sidebar-footer a {
    display: inline-block;
    margin-top: 7px;
    color: var(--npb-accent);
    font-size: 12px;
}

.npb-sidebar-backdrop {
    display: none;
}

.npb-mobile-header {
    display: none;
}

.npb-main {
    width: 100%;
    min-width: 0;
    padding: clamp(30px, 3.4vw, 58px);
}

.npb-topbar {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 34px;
}

.npb-eyebrow {
    margin: 0 0 8px;
    color: var(--npb-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.npb-topbar h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    word-break: normal;
}

.npb-topbar > div:first-child > p:last-child {
    margin: 10px 0 0;
    color: var(--npb-muted);
    font-size: 14px;
}

.npb-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 9px 13px 9px 9px;
    border: 1px solid var(--npb-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, .05);
    flex: 0 0 auto;
}

.npb-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--npb-primary);
    color: #fff;
    font-weight: 800;
}

.npb-user-chip strong,
.npb-user-chip small {
    display: block;
    white-space: nowrap;
}

.npb-user-chip strong {
    font-size: 12px;
}

.npb-user-chip small {
    margin-top: 2px;
    color: var(--npb-muted);
    font-size: 10px;
}

.npb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.npb-stat-card,
.npb-panel-card {
    background: #fff;
    border: 1px solid var(--npb-border);
    border-radius: var(--npb-radius);
    box-shadow: 0 8px 24px rgba(23, 32, 42, .04);
}

.npb-stat-card {
    min-width: 0;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.npb-stat-card::after {
    content: "";
    width: 48px;
    height: 4px;
    border-radius: 5px;
    background: var(--npb-accent);
    position: absolute;
    top: 0;
    left: 22px;
}

.npb-stat-card span {
    display: block;
    color: var(--npb-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.45;
    overflow-wrap: normal;
    word-break: normal;
}

.npb-stat-card strong {
    display: block;
    margin: 10px 0 8px;
    color: var(--npb-ink);
    font-size: 38px;
    line-height: 1;
}

.npb-stat-card small {
    color: #9299a2;
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: normal;
    word-break: normal;
}

.npb-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
    gap: 20px;
}

.npb-panel-card {
    min-width: 0;
    padding: 26px;
}

.npb-card-heading h2 {
    margin: 0;
    font-size: 19px;
}

.npb-empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.npb-empty-state > span {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(218, 216, 95, .26);
    color: #73711c;
    font-size: 23px;
    font-weight: 800;
}

.npb-empty-state h3 {
    margin: 18px 0 7px;
    font-size: 17px;
}

.npb-empty-state p {
    max-width: 420px;
    margin: 0;
    color: var(--npb-muted);
    font-size: 13px;
    line-height: 1.7;
}

.npb-notice-list {
    margin-top: 18px;
    display: grid;
}

.npb-notice-list article {
    padding: 17px 0;
    border-top: 1px solid var(--npb-border);
}

.npb-notice-list article:first-child {
    border-top: 0;
}

.npb-notice-list strong {
    display: block;
    font-size: 12px;
}

.npb-notice-list p {
    margin: 6px 0 0;
    color: var(--npb-muted);
    font-size: 12px;
    line-height: 1.55;
}

.npb-login-screen,
.npb-message-screen {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f6f8fa, #eef2f5);
}

.npb-login-card,
.npb-message-card {
    width: min(100%, 520px);
    padding: 48px;
    background: #fff;
    border: 1px solid var(--npb-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(23, 32, 42, .12);
}

.npb-login-card .npb-brand-mark {
    margin-bottom: 28px;
}

.npb-login-card h1,
.npb-message-card h2 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -.035em;
}

.npb-login-copy,
.npb-message-card p {
    margin: 10px 0 26px;
    color: var(--npb-muted);
    font-size: 13px;
    line-height: 1.65;
}

#npb-partner-login p {
    margin: 0 0 16px;
}

#npb-partner-login label {
    display: block;
    margin-bottom: 7px;
    color: var(--npb-ink);
    font-size: 11px;
    font-weight: 700;
}

#npb-partner-login input[type="text"],
#npb-partner-login input[type="password"] {
    width: 100%;
    min-height: 52px;
    padding: 10px 13px;
    border: 1px solid var(--npb-border);
    border-radius: 11px;
    background: #fbfcfd;
    outline: none;
}

#npb-partner-login input[type="text"]:focus,
#npb-partner-login input[type="password"]:focus {
    border-color: var(--npb-primary);
    box-shadow: 0 0 0 3px rgba(109, 142, 177, .12);
}

#npb-partner-login .login-remember label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
    color: var(--npb-muted);
}

#npb-partner-login .button-primary,
.npb-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: var(--npb-primary);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.npb-forgot-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: var(--npb-primary);
    font-size: 11px;
    font-weight: 700;
}

.npb-message-card {
    text-align: center;
}

.npb-status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(218, 216, 95, .3);
    color: #6b6918;
    font-size: 24px;
    font-weight: 800;
}

.npb-message-card .npb-button {
    display: grid;
    place-items: center;
}

@media (max-width: 1260px) {
    .npb-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .npb-app {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .npb-main {
        padding: 32px;
    }

    .npb-nav-item em {
        display: none;
    }
}

@media (max-width: 980px) {
    .npb-app {
        display: block;
        min-height: 100vh;
        overflow: visible;
    }

    .npb-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        min-height: 100vh;
        padding: 22px 20px;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 24px 0 60px rgba(8, 13, 19, .25);
        overflow-y: auto;
        z-index: 1002;
    }

    .npb-app.is-menu-open .npb-sidebar {
        transform: translateX(0);
    }

    .npb-sidebar-close {
        display: grid;
        place-items: center;
    }

    .npb-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8, 13, 19, .48);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1001;
    }

    .npb-app.is-menu-open .npb-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .npb-nav-item em {
        display: inline;
    }

    .npb-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--npb-border);
    }

    .npb-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .npb-mobile-brand .npb-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 12px;
    }

    .npb-mobile-brand strong,
    .npb-mobile-brand span {
        display: block;
    }

    .npb-mobile-brand strong {
        font-size: 13px;
    }

    .npb-mobile-brand span {
        margin-top: 2px;
        color: var(--npb-muted);
        font-size: 11px;
    }

    .npb-menu-toggle {
        width: 46px;
        height: 46px;
        display: grid;
        place-content: center;
        gap: 5px;
        border: 1px solid var(--npb-border);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(23, 32, 42, .05);
        cursor: pointer;
    }

    .npb-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--npb-ink);
    }

    .npb-main {
        min-height: 100vh;
        padding: 28px;
    }

    .npb-topbar {
        margin-bottom: 28px;
    }

    .npb-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .npb-main {
        padding: 20px 16px 28px;
    }

    .npb-mobile-header {
        margin-bottom: 24px;
    }

    .npb-topbar {
        display: block;
    }

    .npb-topbar h1 {
        font-size: clamp(29px, 9vw, 39px);
    }

    .npb-user-chip {
        width: 100%;
        margin-top: 20px;
    }

    .npb-user-chip > div {
        min-width: 0;
    }

    .npb-user-chip strong,
    .npb-user-chip small {
        white-space: normal;
    }

    .npb-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .npb-stat-card {
        padding: 18px;
    }

    .npb-stat-card::after {
        left: 18px;
    }

    .npb-stat-card strong {
        font-size: 32px;
    }

    .npb-panel-card {
        padding: 22px;
    }

    .npb-empty-state {
        min-height: 230px;
        padding: 24px 10px;
    }

    .npb-login-screen,
    .npb-message-screen {
        padding: 22px 14px;
    }

    .npb-login-card,
    .npb-message-card {
        padding: 32px 24px;
    }
}

@media (max-width: 430px) {
    .npb-stats {
        grid-template-columns: 1fr;
    }

    .npb-mobile-brand span {
        display: none;
    }

    .npb-nav-item em {
        display: none;
    }
}

/* V0.2.0 — Inventory */
.npb-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--npb-primary);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.npb-inventory-panel {
    padding: 0;
    overflow: hidden;
}

.npb-inventory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 26px 20px;
}

.npb-inventory-toolbar h2 {
    margin: 0;
    font-size: 22px;
}

.npb-inventory-search-wrap {
    width: min(100%, 420px);
}

.npb-inventory-search-wrap input {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--npb-border);
    border-radius: 12px;
    background: #fbfcfd;
    color: var(--npb-ink);
    font: inherit;
    font-size: 12px;
    outline: none;
}

.npb-inventory-search-wrap input:focus {
    border-color: var(--npb-primary);
    box-shadow: 0 0 0 3px rgba(109, 142, 177, .12);
}

.npb-filter-row {
    display: flex;
    gap: 8px;
    padding: 0 26px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.npb-filter-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--npb-border);
    border-radius: 10px;
    background: #fff;
    color: var(--npb-muted);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.npb-filter-button span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 7px;
    background: var(--npb-bg);
    color: var(--npb-ink);
    font-size: 9px;
}

.npb-filter-button.is-active {
    border-color: var(--npb-primary);
    background: var(--npb-primary);
    color: #fff;
}

.npb-filter-button.is-active span {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.npb-inventory-result-count {
    padding: 12px 26px;
    border-top: 1px solid var(--npb-border);
    border-bottom: 1px solid var(--npb-border);
    color: var(--npb-muted);
    font-size: 10px;
}

.npb-inventory-result-count strong {
    color: var(--npb-ink);
}

.npb-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.npb-inventory-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.npb-inventory-table th,
.npb-inventory-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--npb-border);
    text-align: left;
    vertical-align: middle;
}

.npb-inventory-table th {
    background: #fafbfc;
    color: var(--npb-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.npb-inventory-table td {
    color: var(--npb-ink);
    font-size: 11px;
}

.npb-inventory-table tbody tr:last-child td {
    border-bottom: 0;
}

.npb-inventory-table tbody tr:hover {
    background: #fbfcfd;
}

.npb-inventory-table tr[hidden] {
    display: none;
}

.npb-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.npb-product-cell img,
.npb-product-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    flex: 0 0 auto;
}

.npb-product-cell img {
    object-fit: contain;
    background: #f8fafb;
    border: 1px solid var(--npb-border);
}

.npb-product-placeholder {
    display: grid;
    place-items: center;
    background: var(--npb-primary);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.npb-product-cell strong,
.npb-product-cell small {
    display: block;
}

.npb-product-cell strong {
    font-size: 11px;
    line-height: 1.45;
}

.npb-product-cell small {
    margin-top: 4px;
    color: var(--npb-muted);
    font-size: 9px;
}

.npb-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.npb-status-badge.is-available {
    background: #edf7f0;
    color: #37744b;
}

.npb-status-badge.is-low {
    background: rgba(218, 216, 95, .28);
    color: #6d6b18;
}

.npb-status-badge.is-out {
    background: #f9eeee;
    color: #9a4949;
}

.npb-stock-value,
.npb-partner-price {
    white-space: nowrap;
    font-size: 11px;
}

.npb-partner-price .woocommerce-Price-amount {
    color: var(--npb-ink);
}

.npb-price-missing,
.npb-muted-value {
    color: var(--npb-muted);
    font-size: 10px;
    font-weight: 500;
}

.npb-inventory-empty {
    min-height: 330px;
    border-top: 1px solid var(--npb-border);
}

.npb-no-filter-results {
    padding: 50px 24px;
    text-align: center;
    border-top: 1px solid var(--npb-border);
}

.npb-no-filter-results strong {
    display: block;
    font-size: 15px;
}

.npb-no-filter-results p {
    margin: 7px 0 0;
    color: var(--npb-muted);
    font-size: 12px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 820px) {
    .npb-inventory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .npb-inventory-search-wrap {
        width: 100%;
    }

    .npb-inventory-table thead {
        display: none;
    }

    .npb-inventory-table,
    .npb-inventory-table tbody,
    .npb-inventory-table tr,
    .npb-inventory-table td {
        display: block;
        width: 100%;
    }

    .npb-inventory-table tbody {
        display: grid;
        gap: 12px;
        padding: 0 20px 20px;
    }

    .npb-inventory-table tr {
        border: 1px solid var(--npb-border);
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }

    .npb-inventory-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 48px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--npb-border);
        text-align: right;
    }

    .npb-inventory-table td::before {
        content: attr(data-label);
        color: var(--npb-muted);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        text-align: left;
    }

    .npb-inventory-table td:first-child {
        justify-content: flex-start;
        padding: 16px;
    }

    .npb-inventory-table td:first-child::before {
        display: none;
    }

    .npb-inventory-table td:last-child {
        border-bottom: 0;
    }

    .npb-product-cell {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .npb-inventory-toolbar {
        padding: 22px 18px 16px;
    }

    .npb-filter-row {
        padding: 0 18px 16px;
    }

    .npb-inventory-result-count {
        padding: 11px 18px;
    }

    .npb-inventory-table tbody {
        padding: 0 12px 12px;
    }
}

/* V0.3.0 — creación de pedidos */
.npb-sidebar-footer small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    letter-spacing: .04em;
}

.npb-inline-button,
.npb-secondary-button,
.npb-submit-order {
    min-height: 44px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.npb-inline-button,
.npb-submit-order {
    border: 1px solid var(--npb-primary);
    background: var(--npb-primary);
    color: #fff;
}

.npb-inline-button:hover,
.npb-submit-order:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(109, 142, 177, .22);
    color: #fff;
}

.npb-secondary-button {
    border: 1px solid var(--npb-border);
    background: #fff;
    color: var(--npb-ink);
}

.npb-order-topbar {
    margin-bottom: 26px;
}

.npb-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.npb-order-sections {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.npb-order-section {
    padding: 28px;
}

.npb-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.npb-section-heading > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(218, 216, 95, .25);
    color: #73711c;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.npb-section-heading h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.02em;
}

.npb-section-heading > div > p:last-child {
    margin: 6px 0 0;
    color: var(--npb-muted);
    font-size: 12px;
    line-height: 1.55;
}

.npb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.npb-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.npb-field-wide {
    grid-column: 1 / -1;
}

.npb-field > span {
    color: var(--npb-ink);
    font-size: 11px;
    font-weight: 700;
}

.npb-field > span small {
    margin-left: 5px;
    color: var(--npb-muted);
    font-weight: 500;
}

.npb-field input,
.npb-field select,
.npb-field textarea,
.npb-order-search-wrap input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--npb-border);
    border-radius: 11px;
    background: #fbfcfd;
    color: var(--npb-ink);
    padding: 10px 13px;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.npb-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}

.npb-field input:focus,
.npb-field select:focus,
.npb-field textarea:focus,
.npb-order-search-wrap input:focus {
    border-color: var(--npb-primary);
    box-shadow: 0 0 0 3px rgba(109, 142, 177, .12);
}

.npb-field input:disabled {
    color: var(--npb-muted);
    background: #f4f6f8;
}

.npb-products-heading {
    align-items: center;
}

.npb-products-heading > div:nth-child(2) {
    flex: 1 1 auto;
}

.npb-order-search-wrap {
    width: min(100%, 280px);
    margin-left: auto;
}

.npb-order-product-list {
    display: grid;
    gap: 10px;
}

.npb-order-product {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) minmax(100px, .7fr) minmax(110px, .65fr) 124px;
    gap: 16px;
    align-items: center;
    min-height: 78px;
    padding: 13px 16px;
    border: 1px solid var(--npb-border);
    border-radius: 14px;
    background: #fff;
    position: relative;
}

.npb-order-product[hidden] {
    display: none;
}

.npb-order-product.is-unavailable {
    background: #fafbfc;
    opacity: .72;
}

.npb-order-product-status,
.npb-order-product-price {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.npb-order-product-status small,
.npb-order-product-price small {
    color: var(--npb-muted);
    font-size: 9px;
}

.npb-order-product-price strong {
    font-size: 12px;
    white-space: nowrap;
}

.npb-quantity-control {
    display: grid;
    grid-template-columns: 34px 46px 34px;
    align-items: center;
    justify-content: end;
}

.npb-quantity-control button,
.npb-quantity-control input {
    height: 38px;
    border: 1px solid var(--npb-border);
    background: #fff;
    color: var(--npb-ink);
    text-align: center;
}

.npb-quantity-control button {
    font-size: 18px;
    cursor: pointer;
}

.npb-quantity-control button:first-child {
    border-radius: 10px 0 0 10px;
}

.npb-quantity-control button:last-child {
    border-radius: 0 10px 10px 0;
}

.npb-quantity-control input {
    width: 46px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 0;
    font-size: 12px;
    -moz-appearance: textfield;
}

.npb-quantity-control input::-webkit-outer-spin-button,
.npb-quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.npb-quantity-control button:disabled,
.npb-quantity-control input:disabled {
    cursor: not-allowed;
    background: #f1f3f5;
    color: #9ca3aa;
}

.npb-product-unavailable-reason {
    position: absolute;
    right: 16px;
    bottom: 3px;
    color: var(--npb-muted);
    font-size: 8px;
}

.npb-order-summary {
    position: sticky;
    top: 24px;
    padding: 26px;
}

.npb-order-summary h2 {
    margin: 0;
    font-size: 21px;
}

.npb-summary-items {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 18px 0;
    border-top: 1px solid var(--npb-border);
    border-bottom: 1px solid var(--npb-border);
}

.npb-summary-empty {
    margin: 0;
    color: var(--npb-muted);
    font-size: 11px;
    line-height: 1.55;
}

.npb-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.npb-summary-item strong,
.npb-summary-item span {
    display: block;
}

.npb-summary-item strong {
    font-size: 11px;
    line-height: 1.45;
}

.npb-summary-item span {
    margin-top: 3px;
    color: var(--npb-muted);
    font-size: 9px;
}

.npb-summary-item > b {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    white-space: nowrap;
}

.npb-summary-totals {
    display: grid;
    gap: 12px;
}

.npb-summary-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--npb-muted);
    font-size: 11px;
}

.npb-summary-totals strong {
    color: var(--npb-ink);
    white-space: nowrap;
}

.npb-summary-grand-total {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--npb-border);
    align-items: center;
}

.npb-summary-grand-total span {
    color: var(--npb-ink);
    font-weight: 700;
}

.npb-summary-grand-total strong {
    font-size: 19px;
}

.npb-summary-note,
.npb-submit-help,
.npb-success-note {
    color: var(--npb-muted);
    font-size: 9px;
    line-height: 1.55;
}

.npb-summary-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(218, 216, 95, .16);
}

.npb-submit-order {
    width: 100%;
    margin-top: 20px;
}

.npb-submit-order:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.npb-submit-help {
    margin: 10px 0 0;
    text-align: center;
}

.npb-form-alert {
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid #e6c6c6;
    border-radius: 14px;
    background: #fff7f7;
    color: #7a3434;
}

.npb-form-alert strong {
    display: block;
    font-size: 12px;
}

.npb-form-alert ul {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 11px;
    line-height: 1.7;
}

.npb-order-success {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
}

.npb-success-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(218, 216, 95, .26);
    color: #73711c;
    font-size: 28px;
    font-weight: 800;
}

.npb-order-success h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -.035em;
}

.npb-order-success > p:not(.npb-eyebrow):not(.npb-success-note) {
    max-width: 650px;
    margin: 12px auto 0;
    color: var(--npb-muted);
    font-size: 13px;
    line-height: 1.65;
}

.npb-success-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0;
}

.npb-success-summary > div {
    padding: 18px;
    border: 1px solid var(--npb-border);
    border-radius: 13px;
    background: #fbfcfd;
    text-align: left;
}

.npb-success-summary span,
.npb-success-summary strong {
    display: block;
}

.npb-success-summary span {
    color: var(--npb-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.npb-success-summary strong {
    margin-top: 7px;
    font-size: 12px;
}

.npb-order-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.npb-success-note {
    margin: 20px auto 0;
}

@media (max-width: 1180px) {
    .npb-order-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .npb-order-product {
        grid-template-columns: minmax(190px, 1.2fr) minmax(92px, .7fr) minmax(96px, .6fr) 118px;
        gap: 12px;
    }
}

@media (max-width: 980px) {
    .npb-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .npb-order-summary {
        position: static;
        order: -1;
    }

    .npb-summary-items {
        max-height: 240px;
        overflow: auto;
    }
}

@media (max-width: 760px) {
    .npb-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .npb-field-wide {
        grid-column: auto;
    }

    .npb-products-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .npb-order-search-wrap {
        width: 100%;
        margin: 4px 0 0 50px;
    }

    .npb-order-product {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 15px;
    }

    .npb-order-product .npb-product-cell {
        grid-column: 1 / -1;
    }

    .npb-order-product-status,
    .npb-order-product-price {
        justify-self: start;
    }

    .npb-quantity-control {
        grid-column: 1 / -1;
        justify-content: start;
    }

    .npb-product-unavailable-reason {
        right: 15px;
        bottom: 15px;
    }

    .npb-success-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .npb-order-section,
    .npb-order-summary,
    .npb-order-success {
        padding: 20px;
    }

    .npb-section-heading {
        gap: 12px;
    }

    .npb-section-heading h2 {
        font-size: 18px;
    }

    .npb-order-search-wrap {
        margin-left: 0;
    }

    .npb-order-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .npb-order-product .npb-product-cell,
    .npb-quantity-control {
        grid-column: auto;
    }

    .npb-order-product-status,
    .npb-order-product-price {
        grid-template-columns: auto auto;
        align-items: center;
        gap: 8px;
    }

    .npb-success-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .npb-order-success-actions {
        display: grid;
    }
}

/* V0.4.0 — pedidos Partner y detalle de operación. */
.npb-card-heading-split,
.npb-orders-toolbar,
.npb-order-status-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.npb-text-link,
.npb-back-link {
    color: var(--npb-primary);
    font-size: 11px;
    font-weight: 700;
}

.npb-text-link:hover,
.npb-back-link:hover {
    text-decoration: underline;
}

.npb-recent-orders {
    margin-top: 18px;
    border-top: 1px solid var(--npb-border);
}

.npb-recent-order {
    display: grid;
    grid-template-columns: 105px minmax(170px, 1fr) minmax(90px, auto) minmax(105px, auto) 22px;
    gap: 16px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--npb-border);
    color: var(--npb-ink);
}

.npb-recent-order:hover .npb-recent-order-arrow {
    transform: translateX(3px);
}

.npb-recent-order-number strong,
.npb-recent-order-number small,
.npb-recent-order-recipient strong,
.npb-recent-order-recipient small {
    display: block;
}

.npb-recent-order-number strong,
.npb-recent-order-recipient strong,
.npb-recent-order-total {
    font-size: 11px;
}

.npb-recent-order-number small,
.npb-recent-order-recipient small {
    margin-top: 3px;
    color: var(--npb-muted);
    font-size: 9px;
}

.npb-recent-order-total {
    font-weight: 700;
    white-space: nowrap;
}

.npb-recent-order-arrow {
    color: var(--npb-primary);
    font-size: 17px;
    transition: transform .2s ease;
}

.npb-recent-orders-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.npb-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.npb-order-status.is-received {
    color: #6d5c13;
    background: rgba(218, 216, 95, .27);
}

.npb-order-status.is-processing {
    color: #41678d;
    background: rgba(109, 142, 177, .16);
}

.npb-order-status.is-shipped {
    color: #235d6b;
    background: #e3f3f6;
}

.npb-order-status.is-completed {
    color: #2e6c46;
    background: #e8f5ec;
}

.npb-order-status.is-issue {
    color: #8a3d3d;
    background: #fbeaea;
}

.npb-orders-panel {
    padding: 0;
    overflow: hidden;
}

.npb-orders-toolbar {
    padding: 26px 28px 18px;
}

.npb-orders-toolbar h2 {
    margin: 0;
    font-size: 21px;
}

.npb-orders-search {
    width: min(360px, 40%);
}

.npb-orders-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--npb-border);
    border-radius: 12px;
    background: #fbfcfd;
    color: var(--npb-ink);
    font: inherit;
    font-size: 11px;
    outline: none;
}

.npb-orders-search input:focus {
    border-color: var(--npb-primary);
    box-shadow: 0 0 0 3px rgba(109, 142, 177, .12);
}

.npb-orders-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px 20px;
    border-bottom: 1px solid var(--npb-border);
}

.npb-orders-filters button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--npb-border);
    border-radius: 10px;
    background: #fff;
    color: var(--npb-muted);
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.npb-orders-filters button span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f0f3f5;
    color: var(--npb-ink);
    font-size: 8px;
}

.npb-orders-filters button.is-active {
    border-color: var(--npb-primary);
    background: var(--npb-primary);
    color: #fff;
}

.npb-orders-filters button.is-active span {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.npb-orders-count {
    padding: 12px 28px;
    border-bottom: 1px solid var(--npb-border);
    color: var(--npb-muted);
    font-size: 9px;
}

.npb-orders-table-head,
.npb-order-row {
    display: grid;
    grid-template-columns: minmax(115px, .75fr) minmax(190px, 1.25fr) minmax(85px, .55fr) minmax(110px, .7fr) minmax(125px, .8fr) 92px;
    gap: 16px;
    align-items: center;
}

.npb-orders-table-head {
    min-height: 44px;
    padding: 0 28px;
    border-bottom: 1px solid var(--npb-border);
    background: #fafbfd;
    color: var(--npb-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.npb-order-row {
    min-height: 82px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--npb-border);
}

.npb-order-row:last-child {
    border-bottom: 0;
}

.npb-order-row:hover {
    background: #fbfcfd;
}

.npb-order-cell {
    min-width: 0;
}

.npb-order-cell > strong,
.npb-order-cell > small {
    display: block;
}

.npb-order-cell > strong {
    color: var(--npb-ink);
    font-size: 10px;
    line-height: 1.4;
}

.npb-order-cell > small {
    margin-top: 3px;
    color: var(--npb-muted);
    font-size: 8.5px;
    line-height: 1.4;
}

.npb-order-number-cell strong {
    color: var(--npb-primary);
    font-size: 12px;
}

.npb-order-action-cell {
    text-align: right;
}

.npb-order-action-cell a {
    color: var(--npb-primary);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.npb-order-action-cell a span {
    display: inline-block;
    margin-left: 3px;
    transition: transform .2s ease;
}

.npb-order-action-cell a:hover span {
    transform: translateX(3px);
}

.npb-mobile-cell-label {
    display: none;
}

.npb-orders-empty {
    min-height: 360px;
}

.npb-order-detail-topbar .npb-back-link {
    display: inline-block;
    margin-bottom: 16px;
}

.npb-order-status-card {
    margin-bottom: 20px;
    padding: 28px;
}

.npb-order-status-summary {
    align-items: center;
}

.npb-order-status-summary > div:first-child {
    max-width: 700px;
}

.npb-order-status-large {
    min-height: 34px;
    padding: 8px 14px;
    font-size: 11px;
}

.npb-order-status-summary p:last-child {
    margin: 12px 0 0;
    color: var(--npb-muted);
    font-size: 12px;
    line-height: 1.65;
}

.npb-order-number-box {
    min-width: 170px;
    padding: 18px 20px;
    border: 1px solid var(--npb-border);
    border-radius: 14px;
    background: #fbfcfd;
    text-align: right;
}

.npb-order-number-box span,
.npb-order-number-box strong,
.npb-order-number-box small {
    display: block;
}

.npb-order-number-box span {
    color: var(--npb-muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.npb-order-number-box strong {
    margin: 4px 0;
    font-size: 20px;
}

.npb-order-number-box small {
    font-size: 10px;
    font-weight: 700;
}

.npb-order-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
    position: relative;
}

.npb-order-timeline::before {
    content: "";
    height: 2px;
    background: var(--npb-border);
    position: absolute;
    top: 18px;
    left: 12.5%;
    right: 12.5%;
}

.npb-timeline-step {
    min-width: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.npb-timeline-dot {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border: 2px solid var(--npb-border);
    border-radius: 50%;
    background: #fff;
    color: #9aa1aa;
    font-size: 10px;
    font-weight: 800;
}

.npb-timeline-step.is-current .npb-timeline-dot,
.npb-timeline-step.is-done .npb-timeline-dot {
    border-color: var(--npb-primary);
    background: var(--npb-primary);
    color: #fff;
}

.npb-timeline-step.is-done .npb-timeline-dot {
    border-color: var(--npb-accent);
    background: var(--npb-accent);
    color: #5d5b10;
}

.npb-timeline-step strong,
.npb-timeline-step small {
    display: block;
}

.npb-timeline-step strong {
    font-size: 10px;
}

.npb-timeline-step small {
    margin-top: 3px;
    color: var(--npb-muted);
    font-size: 8px;
}

.npb-order-issue-banner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid #eccaca;
    border-radius: 12px;
    background: #fff7f7;
    color: #7a3434;
}

.npb-order-issue-banner strong {
    font-size: 11px;
}

.npb-order-issue-banner span {
    font-size: 9px;
}

.npb-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.npb-detail-card {
    min-height: 220px;
}

.npb-detail-list {
    margin: 20px 0 0;
}

.npb-detail-list > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid var(--npb-border);
}

.npb-detail-list dt {
    color: var(--npb-muted);
    font-size: 9px;
}

.npb-detail-list dd {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.npb-address-block {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    color: var(--npb-muted);
    font-size: 11px;
    line-height: 1.5;
}

.npb-address-block strong {
    color: var(--npb-ink);
    font-size: 12px;
}

.npb-order-items-card {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.npb-order-items-card > .npb-card-heading {
    padding: 26px 28px 20px;
}

.npb-items-count {
    color: var(--npb-muted);
    font-size: 10px;
    font-weight: 700;
}

.npb-order-items-list {
    border-top: 1px solid var(--npb-border);
}

.npb-order-item-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(120px, .65fr) minmax(80px, .4fr) minmax(120px, .65fr);
    gap: 20px;
    align-items: center;
    min-height: 86px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--npb-border);
}

.npb-order-item-row > div:not(.npb-product-cell) span,
.npb-order-item-row > div:not(.npb-product-cell) strong {
    display: block;
}

.npb-order-item-row > div:not(.npb-product-cell) span {
    color: var(--npb-muted);
    font-size: 8px;
}

.npb-order-item-row > div:not(.npb-product-cell) strong {
    margin-top: 5px;
    font-size: 10px;
}

.npb-order-total-box {
    width: min(420px, 100%);
    margin-left: auto;
    padding: 22px 28px 26px;
}

.npb-order-total-box > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    color: var(--npb-muted);
    font-size: 10px;
}

.npb-order-total-box strong {
    color: var(--npb-ink);
}

.npb-order-total-grand {
    margin-top: 6px;
    padding-top: 15px !important;
    border-top: 1px solid var(--npb-border);
    color: var(--npb-ink) !important;
    font-size: 12px !important;
}

.npb-order-total-grand strong {
    font-size: 16px;
}

.npb-order-notes-card {
    margin-bottom: 20px;
}

.npb-order-notes-card > p {
    margin: 18px 0 0;
    color: var(--npb-muted);
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .npb-recent-order {
        grid-template-columns: 90px minmax(150px, 1fr) minmax(90px, auto) minmax(100px, auto) 18px;
        gap: 10px;
    }

    .npb-orders-table-head,
    .npb-order-row {
        grid-template-columns: minmax(105px, .75fr) minmax(165px, 1.2fr) 70px 100px 110px 82px;
        gap: 10px;
    }
}

@media (max-width: 980px) {
    .npb-orders-toolbar {
        align-items: stretch;
    }

    .npb-orders-search {
        width: min(330px, 48%);
    }

    .npb-orders-table-head {
        display: none;
    }

    .npb-orders-table-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 18px;
    }

    .npb-order-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        min-height: 0;
        padding: 20px;
        border: 1px solid var(--npb-border);
        border-radius: 14px;
        background: #fff;
    }

    .npb-order-row:last-child {
        border-bottom: 1px solid var(--npb-border);
    }

    .npb-order-number-cell,
    .npb-order-row .npb-order-cell:nth-child(2),
    .npb-order-action-cell {
        grid-column: 1 / -1;
    }

    .npb-order-row .npb-order-cell:nth-child(2) {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--npb-border);
    }

    .npb-order-action-cell {
        padding-top: 8px;
        text-align: left;
    }

    .npb-mobile-cell-label {
        display: block;
        margin-bottom: 4px;
        color: var(--npb-muted);
        font-size: 8px;
    }

    .npb-order-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .npb-order-item-row {
        grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(90px, .5fr));
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .npb-recent-order {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
    }

    .npb-recent-order-number,
    .npb-recent-order-recipient {
        grid-column: 1;
    }

    .npb-recent-order-total,
    .npb-recent-order .npb-order-status {
        grid-column: 2;
        justify-self: end;
    }

    .npb-recent-order-arrow {
        display: none;
    }

    .npb-orders-toolbar {
        flex-direction: column;
    }

    .npb-orders-search {
        width: 100%;
    }

    .npb-orders-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }

    .npb-orders-filters button {
        flex: 0 0 auto;
    }

    .npb-orders-table-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .npb-order-status-summary {
        align-items: flex-start;
    }

    .npb-order-number-box {
        min-width: 145px;
    }

    .npb-order-timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 24px;
    }

    .npb-order-timeline::before {
        width: 2px;
        height: auto;
        top: 18px;
        bottom: 18px;
        left: 17px;
        right: auto;
    }

    .npb-timeline-step {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        min-height: 65px;
        text-align: left;
    }

    .npb-timeline-dot {
        margin: 0;
    }

    .npb-order-item-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .npb-order-item-row .npb-product-cell {
        grid-column: 1 / -1;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--npb-border);
    }
}

@media (max-width: 540px) {
    .npb-orders-toolbar {
        padding: 22px 20px 16px;
    }

    .npb-orders-filters {
        padding: 0 20px 17px;
    }

    .npb-orders-count {
        padding: 11px 20px;
    }

    .npb-orders-table-body {
        padding: 14px;
    }

    .npb-order-row {
        padding: 17px;
    }

    .npb-order-status-summary {
        flex-direction: column;
    }

    .npb-order-number-box {
        width: 100%;
        text-align: left;
    }

    .npb-order-status-card {
        padding: 21px;
    }

    .npb-detail-card {
        min-height: 0;
    }

    .npb-detail-list > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .npb-order-items-card > .npb-card-heading {
        padding: 22px 20px 16px;
    }

    .npb-order-item-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px 20px;
    }

    .npb-order-item-row > div:last-child {
        text-align: right;
    }

    .npb-order-total-box {
        padding: 20px;
    }
}

/* V0.5.0 — corrección de filtros y módulo de seguimientos. */
.npb-portal [hidden] {
    display: none !important;
}

.npb-order-tracking-card {
    margin-bottom: 24px;
}

.npb-tracking-detail {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.4fr) minmax(240px, auto);
    gap: 24px;
    align-items: center;
    padding: 0 28px 28px;
}

.npb-tracking-detail > div:not(.npb-tracking-detail-actions) span,
.npb-tracking-cell .npb-mobile-cell-label {
    display: block;
    margin-bottom: 5px;
    color: var(--npb-muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.npb-tracking-detail strong {
    display: block;
    font-size: 13px;
}

.npb-tracking-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.npb-secondary-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--npb-border);
    border-radius: 12px;
    background: #fff;
    color: var(--npb-primary);
    font: 700 10px "Montserrat", Arial, sans-serif;
    cursor: pointer;
}

.npb-secondary-button:hover,
.npb-copy-link:hover {
    border-color: var(--npb-primary);
}

.npb-tracking-pending {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 28px 28px;
    padding: 20px;
    border: 1px dashed #d7dde3;
    border-radius: 14px;
    background: #fafbfd;
}

.npb-tracking-pending > span {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(218, 216, 95, .28);
    color: #6c6a10;
    font-size: 22px;
    flex: 0 0 auto;
}

.npb-tracking-pending strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.npb-tracking-pending p {
    margin: 0;
    color: var(--npb-muted);
    font-size: 10px;
    line-height: 1.6;
}

.npb-tracking-table-head,
.npb-tracking-row {
    display: grid;
    grid-template-columns: minmax(105px, .7fr) minmax(170px, 1.15fr) minmax(125px, .8fr) minmax(130px, .85fr) minmax(170px, 1.05fr) minmax(105px, auto);
    gap: 14px;
    align-items: center;
}

.npb-tracking-table-head {
    min-height: 44px;
    padding: 0 28px;
    border-bottom: 1px solid var(--npb-border);
    background: #fafbfd;
    color: var(--npb-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.npb-tracking-row {
    min-height: 88px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--npb-border);
}

.npb-tracking-row:last-child {
    border-bottom: 0;
}

.npb-tracking-row:hover {
    background: #fbfcfd;
}

.npb-tracking-cell {
    min-width: 0;
}

.npb-tracking-cell > strong,
.npb-tracking-cell > small {
    display: block;
}

.npb-tracking-cell > strong {
    color: var(--npb-ink);
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.npb-tracking-cell > small {
    margin-top: 3px;
    color: var(--npb-muted);
    font-size: 8.5px;
    line-height: 1.45;
}

.npb-copy-link {
    display: inline-flex;
    margin-top: 6px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--npb-primary);
    font: 700 8.5px "Montserrat", Arial, sans-serif;
    cursor: pointer;
}

.npb-tracking-action-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.npb-tracking-action-cell a {
    color: var(--npb-primary);
    font: 700 9px "Montserrat", Arial, sans-serif;
    white-space: nowrap;
}

.npb-tracking-link {
    color: #62710c !important;
}

@media (max-width: 1180px) {
    .npb-tracking-table-head,
    .npb-tracking-row {
        grid-template-columns: 100px minmax(150px, 1fr) 115px 110px minmax(145px, 1fr) 95px;
        gap: 10px;
    }
}

@media (max-width: 980px) {
    .npb-tracking-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .npb-tracking-detail-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .npb-tracking-table-head {
        display: none;
    }

    .npb-tracking-table-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 18px;
    }

    .npb-tracking-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        min-height: 0;
        padding: 20px;
        border: 1px solid var(--npb-border);
        border-radius: 14px;
        background: #fff;
    }

    .npb-tracking-row:last-child {
        border-bottom: 1px solid var(--npb-border);
    }

    .npb-tracking-row .npb-tracking-cell:nth-child(1),
    .npb-tracking-row .npb-tracking-cell:nth-child(2),
    .npb-tracking-action-cell {
        grid-column: 1 / -1;
    }

    .npb-tracking-row .npb-tracking-cell:nth-child(2) {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--npb-border);
    }

    .npb-tracking-action-cell {
        align-items: flex-start;
        padding-top: 8px;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .npb-tracking-table-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .npb-tracking-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 0 20px 22px;
    }

    .npb-tracking-detail-actions {
        grid-column: auto;
    }

    .npb-tracking-detail-actions > * {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .npb-tracking-pending {
        margin: 0 20px 22px;
        align-items: flex-start;
    }

    .npb-tracking-table-body {
        padding: 14px;
    }

    .npb-tracking-row {
        padding: 17px;
    }
}
