html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===========================================================================
   NPI design system
   Everything below is prefixed .npi-* so it never collides with Bootstrap.
   Values are taken from the "Pre order flow admin" Figma section.
   =========================================================================== */

:root {
    --npi-primary: #7929fe;
    --npi-primary-hover: #6a1ee6;
    --npi-primary-soft: #f4ecff;

    --npi-text-strong: #181d27;
    --npi-text: #414651;
    --npi-text-muted: #535862;
    --npi-text-disabled: #a4a7ae;

    --npi-border: #e9eaeb;
    --npi-border-strong: #d5d7da;

    --npi-surface: #ffffff;
    --npi-surface-hover: #fafafa;
    --npi-surface-active: #f5f5f5;

    --npi-success-bg: #ecfdf3;
    --npi-success-text: #067647;
    --npi-success-border: #abefc6;

    --npi-neutral-bg: #f5f5f5;
    --npi-neutral-text: #535862;
    --npi-neutral-border: #e9eaeb;

    --npi-danger: #d92d20;
    --npi-danger-bg: #fef3f2;
    --npi-danger-border: #fecdca;

    --npi-radius-sm: 6px;
    --npi-radius: 8px;
    --npi-radius-lg: 12px;

    --npi-sidebar-width: 296px;

    --npi-font: Inter, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* Icons ------------------------------------------------------------------- */

.npi-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.npi-icon-nav {
    width: 1.125rem;
    height: 1.125rem;
}

.npi-icon-sm {
    width: 1rem;
    height: 1rem;
}

.npi-icon-xs {
    width: 1.125rem;
    height: 1.125rem;
}

/* Page header ------------------------------------------------------------- */

.npi-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.npi-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
    color: var(--npi-text-strong);
}

.npi-page-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--npi-text-muted);
}

.npi-page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

/* Buttons ----------------------------------------------------------------- */

.npi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: var(--npi-radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.npi-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.npi-btn:focus-visible {
    outline: 2px solid var(--npi-primary);
    outline-offset: 2px;
}

.npi-btn-primary {
    background: var(--npi-primary);
    color: #fff;
}

.npi-btn-primary:hover:not(:disabled) {
    background: var(--npi-primary-hover);
}

.npi-btn-secondary {
    background: #fff;
    color: var(--npi-text);
    border-color: var(--npi-border-strong);
}

.npi-btn-secondary:hover:not(:disabled) {
    background: var(--npi-surface-hover);
}

.npi-btn-danger {
    background: var(--npi-danger);
    color: #fff;
}

.npi-btn-danger:hover:not(:disabled) {
    background: #b42318;
}

.npi-btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
}

/* Icon buttons (row actions) ---------------------------------------------- */

.npi-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: var(--npi-radius-sm);
    background: transparent;
    color: #717680;
    cursor: pointer;
}

.npi-icon-btn:hover:not(:disabled) {
    background: var(--npi-surface-active);
    color: var(--npi-text-strong);
}

.npi-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.npi-icon-btn-danger:hover:not(:disabled) {
    background: var(--npi-danger-bg);
    color: var(--npi-danger);
}

.npi-icon-btn:focus-visible {
    outline: 2px solid var(--npi-primary);
    outline-offset: 1px;
}

.npi-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

/* Toolbar ----------------------------------------------------------------- */

.npi-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.npi-toolbar-left,
.npi-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.npi-toolbar-label {
    font-size: 0.875rem;
    color: var(--npi-text);
    white-space: nowrap;
}

.npi-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 20rem;
    max-width: 100%;
}

.npi-search-icon {
    position: absolute;
    left: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--npi-text-disabled);
    pointer-events: none;
}

.npi-search-input {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.875rem 0 2.5rem;
    border: 1px solid var(--npi-border-strong);
    border-radius: var(--npi-radius);
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--npi-text-strong);
}

.npi-search-input::placeholder {
    color: var(--npi-text-disabled);
}

.npi-search-input:focus {
    outline: none;
    border-color: var(--npi-primary);
    box-shadow: 0 0 0 3px var(--npi-primary-soft);
}

/* Form controls ----------------------------------------------------------- */

.npi-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.npi-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--npi-text-strong);
}

.npi-required {
    color: #e31b54;
    margin-left: 0.125rem;
}

.npi-hint {
    font-size: 0.75rem;
    color: var(--npi-text-muted);
}

.npi-input,
.npi-select {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 1px solid var(--npi-border-strong);
    border-radius: var(--npi-radius);
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--npi-text-strong);
}

.npi-input::placeholder {
    color: var(--npi-text-disabled);
}

.npi-input:focus,
.npi-select:focus {
    outline: none;
    border-color: var(--npi-primary);
    box-shadow: 0 0 0 3px var(--npi-primary-soft);
}

.npi-textarea {
    height: auto;
    min-height: 4.5rem;
    padding: 0.625rem 0.875rem;
    resize: vertical;
    line-height: 1.375rem;
}

.npi-input-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-transform: uppercase;
}

.npi-select-sm {
    width: auto;
    min-width: 4.5rem;
    height: 2.25rem;
    padding: 0 0.5rem;
}

/* Toggle ------------------------------------------------------------------ */

.npi-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.npi-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.npi-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.npi-toggle-track {
    display: block;
    position: relative;
    width: 2.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--npi-border-strong);
    transition: background-color 0.15s ease;
}

.npi-toggle-thumb {
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2);
    transition: transform 0.15s ease;
}

.npi-toggle input:checked + .npi-toggle-track {
    background: var(--npi-primary);
}

.npi-toggle input:checked + .npi-toggle-track .npi-toggle-thumb {
    transform: translateX(1rem);
}

.npi-toggle input:focus-visible + .npi-toggle-track {
    box-shadow: 0 0 0 3px var(--npi-primary-soft);
}

/* Table ------------------------------------------------------------------- */

.npi-table-section {
    margin-bottom: 1.5rem;
}

.npi-table-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.npi-table-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--npi-text-strong);
}

.npi-table-count {
    font-size: 0.875rem;
    color: var(--npi-text-muted);
}

.npi-table-card {
    border: 1px solid var(--npi-border);
    border-radius: var(--npi-radius-lg);
    background: #fff;
    overflow: hidden;
}

.npi-table-scroll {
    overflow-x: auto;
}

.npi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.npi-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--npi-text-muted);
    background: var(--npi-surface-hover);
    border-bottom: 1px solid var(--npi-border);
    white-space: nowrap;
}

.npi-table tbody td {
    padding: 1rem;
    color: var(--npi-text);
    border-bottom: 1px solid var(--npi-border);
    vertical-align: middle;
}

.npi-table tbody tr:last-child td {
    border-bottom: none;
}

.npi-table tbody tr:hover td {
    background: var(--npi-surface-hover);
}

.npi-table .npi-col-narrow {
    width: 3.5rem;
}

.npi-table .npi-col-action {
    width: 6rem;
    text-align: right;
}

.npi-cell-strong {
    color: var(--npi-text-strong);
    font-weight: 500;
}

.npi-cell-muted {
    color: var(--npi-text-disabled);
}

.npi-table-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--npi-border);
    background: #fff;
}

.npi-table-message {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--npi-text-muted);
}

.npi-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--npi-border-strong);
    border-top-color: var(--npi-primary);
    border-radius: 50%;
    animation: npi-spin 0.7s linear infinite;
    vertical-align: -0.2rem;
}

.npi-spinner-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 2px;
}

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

/* Pills ------------------------------------------------------------------- */

.npi-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.125rem;
    white-space: nowrap;
}

.npi-pill-success {
    background: var(--npi-success-bg);
    color: var(--npi-success-text);
    border-color: var(--npi-success-border);
}

.npi-pill-neutral {
    background: var(--npi-neutral-bg);
    color: var(--npi-neutral-text);
    border-color: var(--npi-neutral-border);
}

.npi-pill-danger {
    background: var(--npi-danger-bg);
    color: var(--npi-danger);
    border-color: var(--npi-danger-border);
}

.npi-pill-info {
    background: #eff4ff;
    color: #3538cd;
    border-color: #c7d7fe;
}

.npi-pill-warning {
    background: #fffaeb;
    color: #b54708;
    border-color: #fedf89;
}

/* Pagination -------------------------------------------------------------- */
 
.npi-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--npi-border-strong);
    border-radius: var(--npi-radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    overflow: hidden;
}

.npi-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 2.5rem;
    height: 2.375rem;
    padding: 0 0.875rem;
    justify-content: center;
    border: none;
    border-right: 1px solid var(--npi-border-strong);
    border-radius: 0;
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--npi-text);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.npi-page-btn:last-child {
    border-right: none;
}

.npi-page-btn:hover:not(:disabled) {
    background: var(--npi-surface-hover);
    color: var(--npi-text-strong);
}

.npi-page-btn:disabled {
    color: var(--npi-text-disabled);
    cursor: not-allowed;
    background: #fff;
}

.npi-page-btn.active {
    background: var(--npi-surface-active);
    color: var(--npi-text-strong);
    font-weight: 600;
}

.npi-page-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.375rem;
    padding: 0 0.5rem;
    border-right: 1px solid var(--npi-border-strong);
    color: var(--npi-text-muted);
    font-size: 0.875rem;
    user-select: none;
}

/* Modal ------------------------------------------------------------------- */

.npi-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(12, 14, 18, 0.5);
}

.npi-modal {
    width: 100%;
    max-width: 25rem;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--npi-radius-lg);
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.12), 0 8px 8px -4px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.npi-modal-md { max-width: 32rem; }
.npi-modal-lg { max-width: 44rem; }
.npi-modal-xl { max-width: 64rem; }
.npi-modal-2xl { max-width: 80rem; }

.npi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--npi-border);
}

.npi-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--npi-text-strong);
}

.npi-modal-close {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--npi-radius-sm);
    background: transparent;
    color: var(--npi-text-muted);
    cursor: pointer;
}

.npi-modal-close:hover {
    background: var(--npi-surface-active);
    color: var(--npi-text-strong);
}

.npi-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.npi-modal-body > .npi-field:last-child {
    margin-bottom: 0;
}

.npi-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--npi-border);
}

.npi-modal-error {
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--npi-danger-border);
    border-radius: var(--npi-radius);
    background: var(--npi-danger-bg);
    color: var(--npi-danger);
    font-size: 0.8125rem;
}

.npi-modal-text {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--npi-text);
}

.npi-modal-note {
    padding: 0.625rem 0.75rem;
    border-radius: var(--npi-radius);
    background: var(--npi-surface-active);
    color: var(--npi-text-muted);
    font-size: 0.8125rem;
}

.npi-modal-note-warn {
    background: #fffaeb;
    color: #b54708;
}

@media (max-width: 640.98px) {
    .npi-search { width: 100%; }
    .npi-toolbar-left, .npi-toolbar-right { width: 100%; }
    .npi-toolbar-right { justify-content: flex-end; }
}

/* Stat cards -------------------------------------------------------------- */

.npi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.npi-stat-card {
    padding: 1rem 1.125rem;
    border: 1px solid var(--npi-border);
    border-radius: var(--npi-radius-lg);
    background: #fff;
}

.npi-stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.npi-stat-value {
    display: block;
    margin: 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    color: var(--npi-text-strong);
}

.npi-stat-caption {
    display: block;
    font-size: 0.75rem;
    color: var(--npi-text-muted);
}

.npi-stat-blue   { background: #eff4ff; border-color: #c7d7fe; }
.npi-stat-blue   .npi-stat-label { color: #3538cd; }
.npi-stat-green  { background: #ecfdf3; border-color: #abefc6; }
.npi-stat-green  .npi-stat-label { color: #067647; }
.npi-stat-red    { background: #fef3f2; border-color: #fecdca; }
.npi-stat-red    .npi-stat-label { color: #b42318; }
.npi-stat-purple { background: #f4ecff; border-color: #ddc7fe; }
.npi-stat-purple .npi-stat-label { color: #6927d3; }
.npi-stat-amber  { background: #fffaeb; border-color: #fedf89; }
.npi-stat-amber  .npi-stat-label { color: #b54708; }

/* Misc -------------------------------------------------------------------- */

.npi-link-btn {
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--npi-primary);
    cursor: pointer;
    white-space: nowrap;
}

.npi-link-btn:hover { text-decoration: underline; }

.npi-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.npi-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.npi-detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--npi-text-muted);
}

.npi-detail-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--npi-text-strong);
}

/* Expandable rows & Nested subtable --------------------------------------- */

.npi-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--npi-text);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.12s ease;
}

.npi-expand-btn:hover {
    color: var(--npi-text-strong);
}

.npi-expand-caret {
    display: inline-flex;
    align-items: center;
    color: var(--npi-text-strong);
}

.npi-subtable-cell {
    padding: 0 !important;
    background: #ffffff !important;
}

.npi-subtable-wrap {
    padding: 0.75rem 1rem 1.25rem 1rem;
}

.npi-subtable-card {
    border: 1px solid var(--npi-border);
    border-radius: var(--npi-radius-lg);
    background: #ffffff;
    overflow: hidden;
}

.npi-subtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: #ffffff;
}

.npi-subtable thead th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--npi-text-muted);
    background: var(--npi-surface-hover);
    border-bottom: 1px solid var(--npi-border);
    white-space: nowrap;
}

.npi-subtable tbody td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--npi-border);
    vertical-align: middle;
    color: var(--npi-text);
}

.npi-subtable tbody tr:last-child td {
    border-bottom: none;
}

.npi-subtable tbody tr:hover td {
    background: var(--npi-surface-hover);
}

.npi-thumb-box {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9fafb;
    border: 1px solid var(--npi-border);
    overflow: hidden;
}

.npi-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.npi-pill-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
}

.npi-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #f2f4f7;
    border-radius: var(--npi-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--npi-text);
    line-height: 1.25;
    white-space: nowrap;
}

.npi-thumb {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: cover;
    border-radius: var(--npi-radius-sm);
    border: 1px solid var(--npi-border);
    background: var(--npi-surface-active);
}

/* Capacity chips ---------------------------------------------------------- */

.npi-capacity {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--npi-border-strong);
    border-radius: 999px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--npi-text);
    background: #fff;
}

.npi-capacity-full {
    border-color: var(--npi-danger-border);
    background: var(--npi-danger-bg);
    color: var(--npi-danger);
}

/* Form page (full-page entry forms) --------------------------------------- */

.npi-form-card {
    border: 1px solid var(--npi-border);
    border-radius: var(--npi-radius-lg);
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.npi-form-card-title {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--npi-text-strong);
}

.npi-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.npi-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.npi-form-actions-split {
    justify-content: space-between;
}

@media (max-width: 720px) {
    .npi-form-grid { grid-template-columns: 1fr; }
    .npi-detail-grid { grid-template-columns: 1fr; }
}

/* Segmented toggle (Target Product Type) ---------------------------------- */

.npi-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.npi-segment-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--npi-border-strong);
    border-radius: var(--npi-radius);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--npi-text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.npi-segment-option.active {
    background: var(--npi-primary);
    border-color: var(--npi-primary);
    color: #fff;
}

.npi-segment-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    flex: 0 0 auto;
    position: relative;
}

.npi-segment-option.active .npi-segment-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}

/* Product Import Styles --------------------------------------------------- */

.npi-import-dropzone {
    border: 2px dashed var(--npi-border-strong);
    border-radius: var(--npi-radius-lg);
    background: var(--npi-surface-active);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.npi-import-dropzone:hover,
.npi-import-dropzone.drag-over {
    border-color: var(--npi-primary);
    background: #f0f9ff;
}

.npi-import-dropzone-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    color: var(--npi-primary);
}

.npi-import-step-card {
    border: 1px solid var(--npi-border);
    border-radius: var(--npi-radius-md);
    background: #fff;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.npi-import-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.npi-import-step-num {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--npi-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.npi-preview-table-wrap {
    max-height: 24rem;
    overflow: auto;
    border: 1px solid var(--npi-border);
    border-radius: var(--npi-radius);
}

.npi-error-list {
    max-height: 12rem;
    overflow-y: auto;
    font-size: 0.8125rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--npi-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* Login & Auth Form Inputs ------------------------------------------------ */

.npi-login-input {
    font-weight: 400 !important;
}

.npi-login-input::placeholder {
    color: #9CA3AF !important;
    opacity: 0.65 !important;
    font-weight: 400 !important;
}

.npi-login-input::-webkit-input-placeholder {
    color: #9CA3AF !important;
    opacity: 0.65 !important;
    font-weight: 400 !important;
}

.npi-login-input::-moz-placeholder {
    color: #9CA3AF !important;
    opacity: 0.65 !important;
    font-weight: 400 !important;
}

/* Remove increment / decrement spin buttons from numeric inputs */
input.npi-no-spinner::-webkit-outer-spin-button,
input.npi-no-spinner::-webkit-inner-spin-button,
.npi-no-spinner::-webkit-outer-spin-button,
.npi-no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input.npi-no-spinner[type=number],
.npi-no-spinner[type=number],
.npi-no-spinner {
    -moz-appearance: textfield !important;
}

