:root {
    --nuevo-pedido-bg: #181825;
    --nuevo-pedido-main: rgba(31, 34, 44, 0.98);
    --nuevo-pedido-panel: rgba(255, 255, 255, 0.04);
    --nuevo-pedido-card: rgba(255, 255, 255, 0.03);
    --nuevo-pedido-card-strong: rgba(255, 255, 255, 0.05);
    --nuevo-pedido-border: rgba(255, 255, 255, 0.08);
    --nuevo-pedido-text: #f5f4fb;
    --nuevo-pedido-muted: #a9abc0;
    --nuevo-pedido-soft: #8e90ac;
    --nuevo-pedido-shadow: 0 24px 44px rgba(9, 9, 18, 0.34);
    --nuevo-pedido-accent: #FF6709;
    --nuevo-pedido-accent-soft: rgba(255, 103, 9, 0.16);
    --nuevo-pedido-success: #2ca35a;
    --nuevo-pedido-success-soft: rgba(44, 163, 90, 0.14);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--meseros-font-family);
    color: var(--nuevo-pedido-text);
    background:
        radial-gradient(circle at top left, rgba(255, 103, 9, 0.08), transparent 20rem),
        radial-gradient(circle at bottom right, rgba(255, 103, 9, 0.06), transparent 24rem),
        var(--nuevo-pedido-bg);
    transition: background 0.25s ease, color 0.25s ease;
}

.nuevo-pedido-shell {
    min-height: 100vh;
    display: flex;
    gap: 1.4rem;
    padding: 1rem;
}

.nuevo-pedido-main {
    flex: 1;
    min-width: 0;
    padding: 1.3rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(35, 35, 52, 0.98), rgba(28, 28, 41, 0.98));
    box-shadow: var(--nuevo-pedido-shadow);
}

.np-toast-stack {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 70;
    display: grid;
    gap: 0.7rem;
    pointer-events: none;
}

.np-toast {
    min-width: 270px;
    max-width: min(360px, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 103, 9, 0.16);
    border-radius: 18px;
    background: rgba(25, 28, 39, 0.96);
    color: #f5f4fb;
    box-shadow: 0 18px 32px rgba(10, 11, 18, 0.24);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.np-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.np-toast-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff8737, var(--nuevo-pedido-accent));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.np-toast-icon svg {
    width: 18px;
    height: 18px;
}

.np-toast-copy {
    display: grid;
    gap: 0.15rem;
}

.np-toast-copy strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.np-toast-copy span {
    color: #cfd2df;
    font-size: 0.82rem;
    line-height: 1.35;
}

.nuevo-pedido-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 1.2rem;
    min-height: calc(100vh - 4.6rem);
}

.nuevo-pedido-catalog-panel,
.nuevo-pedido-summary-panel {
    min-width: 0;
}

.nuevo-pedido-catalog-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.nuevo-pedido-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.nuevo-pedido-greeting h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nuevo-pedido-greeting span {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--nuevo-pedido-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nuevo-pedido-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nuevo-pedido-soft);
}

.nuevo-pedido-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nuevo-pedido-search {
    min-width: 260px;
    max-width: 360px;
    width: 100%;
    min-height: 52px;
    padding: 0.35rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--nuevo-pedido-border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nuevo-pedido-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nuevo-pedido-text);
    font-size: 0.94rem;
}

.nuevo-pedido-search input::placeholder {
    color: var(--nuevo-pedido-muted);
}

.nuevo-pedido-search-icon,
.nuevo-pedido-search-icon svg,
.nuevo-pedido-icon-btn svg,
.np-category-chip-icon svg,
.np-product-badge svg,
.np-service-icon svg,
.np-order-type-icon svg,
.np-mini-icon-btn svg,
.np-qty-btn svg,
.np-order-remove svg,
.np-quick-action-icon svg,
.np-footer-action svg,
.np-product-add-btn svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nuevo-pedido-search-icon svg,
.nuevo-pedido-icon-btn svg,
.np-category-chip-icon svg,
.np-service-icon svg,
.np-order-type-icon svg,
.np-mini-icon-btn svg,
.np-order-remove svg,
.np-quick-action-icon svg,
.np-footer-action svg,
.np-product-add-btn svg {
    width: 18px;
    height: 18px;
}

.nuevo-pedido-icon-btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--nuevo-pedido-text);
}

.nuevo-pedido-search:focus-within,
.nuevo-pedido-icon-btn:hover,
.nuevo-pedido-icon-btn:focus-visible {
    border-color: rgba(255, 103, 9, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 103, 9, 0.12);
    outline: none;
}

.nuevo-pedido-category-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.np-category-chip {
    min-height: 44px;
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--nuevo-pedido-text);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.np-category-chip-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.np-category-chip.is-active {
    background: linear-gradient(180deg, #ff7f2f, var(--nuevo-pedido-accent));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(255, 103, 9, 0.22);
    color: #fff;
}

.np-category-chip-arrow {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex: 0 0 44px;
    line-height: 0;
}

.np-category-chip-arrow svg {
    width: 18px;
    height: 18px;
}

.nuevo-pedido-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.np-product-card {
    padding: 1rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 32px rgba(8, 9, 17, 0.16);
    display: grid;
    gap: 0.9rem;
    min-height: 100%;
}

.np-product-image-wrap {
    min-height: 186px;
    border-radius: 22px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.np-product-image-wrap img {
    width: min(170px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 999px;
    box-shadow: 0 18px 28px rgba(12, 12, 24, 0.22);
}

.np-product-copy {
    display: grid;
    gap: 0.3rem;
}

.np-product-copy h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.np-product-copy p {
    margin: 0;
    color: var(--nuevo-pedido-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.np-product-relationship-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.2rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 103, 9, 0.1);
    color: #ffb27b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.np-product-meta {
    display: grid;
    gap: 0.85rem;
    margin-top: auto;
}

.np-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.np-product-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.np-product-badge svg {
    width: 16px;
    height: 16px;
}

.np-product-badge.tone-sand {
    background: rgba(205, 185, 155, 0.2);
    color: #e2ccb0;
}

.np-product-badge.tone-teal {
    background: rgba(58, 194, 192, 0.16);
    color: #70deda;
}

.np-product-badge.tone-plum {
    background: rgba(195, 72, 143, 0.16);
    color: #f1a7d3;
}

.np-product-badge.tone-lime {
    background: rgba(92, 199, 106, 0.16);
    color: #9fe4a8;
}

.np-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.np-product-footer strong {
    font-size: 1.14rem;
    font-weight: 800;
}

.np-product-add-btn {
    min-height: 40px;
    padding: 0.58rem 0.88rem;
    border: 0;
    border-radius: 14px;
    background: var(--nuevo-pedido-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(255, 103, 9, 0.22);
}

.np-product-add-btn:hover,
.np-product-add-btn:focus-visible {
    background: #ff7d22;
    color: #fff;
    outline: none;
}

.nuevo-pedido-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.np-service-card {
    padding: 0.95rem 1rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
}

.np-service-card.is-active {
    background: rgba(255, 103, 9, 0.08);
    border-color: rgba(255, 103, 9, 0.38);
}

.np-service-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: rgba(255, 103, 9, 0.1);
    color: var(--nuevo-pedido-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.np-service-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.np-service-copy strong {
    font-size: 0.98rem;
    font-weight: 800;
}

.np-service-copy small {
    color: var(--nuevo-pedido-muted);
    font-size: 0.79rem;
    font-weight: 600;
}

.nuevo-pedido-footer-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.np-footer-action {
    min-height: 54px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 103, 9, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 103, 9, 0.96), #ef780f);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(255, 103, 9, 0.18);
}

.np-footer-action:hover,
.np-footer-action:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #ff8a3d, var(--nuevo-pedido-accent));
    outline: none;
}

.nuevo-pedido-summary-panel {
    padding: 1rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 32px rgba(8, 9, 17, 0.18);
    display: grid;
    align-content: start;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.nuevo-pedido-summary-panel::-webkit-scrollbar {
    width: 8px;
}

.nuevo-pedido-summary-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 103, 9, 0.18);
    border-radius: 999px;
}

.np-order-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.np-order-type-card {
    min-height: 88px;
    padding: 0.8rem 0.45rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--nuevo-pedido-text);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.np-order-type-card.is-active {
    background: linear-gradient(180deg, #ff7f2f, var(--nuevo-pedido-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 28px rgba(255, 103, 9, 0.22);
}

.np-order-type-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.np-customer-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.np-customer-select {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0.72rem 0.85rem 0.72rem 1rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--nuevo-pedido-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.np-customer-select-label {
    display: block;
    min-width: 0;
    text-align: left;
}

.np-customer-select-caret {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.np-customer-select-caret svg {
    width: 14px;
    height: 14px;
}

.np-customer-actions {
    display: flex;
    gap: 0.6rem;
}

.np-mini-icon-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--nuevo-pedido-text);
}

.np-summary-board {
    padding: 0.2rem 0;
}

.np-summary-head,
.np-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto auto auto auto auto;
    gap: 0.65rem;
    align-items: center;
}

.np-summary-head {
    padding: 0 0.2rem 0.8rem;
    color: var(--nuevo-pedido-muted);
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
}

.np-summary-head span:last-child {
    justify-self: end;
    margin-right: 0.5rem;
}

.np-summary-list {
    display: grid;
    gap: 0.35rem;
}

.np-order-row {
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid var(--nuevo-pedido-border);
}

.np-order-row-primary {
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.np-order-row-primary.is-selected {
    border-bottom-color: rgba(255, 103, 9, 0.18);
    background: rgba(255, 103, 9, 0.04);
}

.np-order-row-secondary {
    padding-top: 0.05rem;
    padding-bottom: 0.35rem;
    border-bottom: 0;
    background: transparent;
}

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

.np-order-description strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
}

.np-order-primary-name {
    line-height: 1.35;
}

.np-order-secondary-count {
    display: inline-flex;
    margin-top: 0.45rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 103, 9, 0.1);
    color: #ffb27b;
    font-size: 0.7rem;
    font-weight: 800;
}

.np-order-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.np-order-tags span {
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 103, 9, 0.12);
    color: #ffb27b;
    font-size: 0.72rem;
    font-weight: 700;
}

.np-order-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.np-qty-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--nuevo-pedido-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.np-qty-btn svg {
    width: 14px;
    height: 14px;
}

.np-order-qty-value,
.np-order-rate,
.np-order-disc,
.np-order-total {
    font-size: 0.88rem;
    font-weight: 700;
}

.np-order-disc {
    color: var(--nuevo-pedido-muted);
}

.np-order-total {
    justify-self: end;
}

.np-order-description-secondary {
    padding-left: 0.8rem;
    position: relative;
}

.np-order-description-secondary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 103, 9, 0.28);
}

.np-order-secondary-group {
    display: block;
    margin-bottom: 0.12rem;
    color: var(--nuevo-pedido-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-order-secondary-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--nuevo-pedido-muted);
}

.np-order-qty-static {
    min-height: 32px;
    padding-inline: 0.58rem;
    opacity: 0.8;
}

.np-order-secondary-anchor {
    width: 34px;
    height: 34px;
}

.np-configurator {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--nuevo-pedido-border);
    display: grid;
    gap: 0.85rem;
}

.np-configurator-head strong,
.np-observation-field span {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--nuevo-pedido-text);
}

.np-configurator-head span {
    display: block;
    margin-top: 0.2rem;
    color: var(--nuevo-pedido-muted);
    font-size: 0.8rem;
}

.np-configurator-head {
    text-align: center;
}

.np-config-empty {
    width: 100%;
    padding: 0.75rem 0.35rem 0.2rem;
    display: grid;
    place-items: center;
}

.np-config-empty-img {
    width: min(240px, 80%);
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
}

.np-configurator-groups {
    display: grid;
    gap: 0.75rem;
}

/* Reutiliza estilos del modal (carrito) pero adaptado al panel oscuro */
.np-configurator .carrito-choice {
    color: var(--nuevo-pedido-text);
}

.np-configurator .carrito-choice:hover,
.np-configurator .carrito-choice:focus-visible,
.np-configurator .carrito-choice.is-selected {
    background: transparent;
}

.np-configurator .carrito-choice-control {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
}

.np-configurator .carrito-choice-label,
.np-configurator .carrito-choice-price {
    color: var(--nuevo-pedido-text);
}

.theme-dark .np-configurator .carrito-choice,
.theme-dark .np-configurator .carrito-choice-label,
.theme-dark .np-configurator .carrito-choice-price {
    color: #ffffff !important;
}

.theme-dark .np-configurator .carrito-choice-label {
    opacity: 1 !important;
}

.theme-dark .np-configurator .carrito-choice-price {
    opacity: 0.92 !important;
}

.np-configurator .carrito-choice.is-selected .carrito-choice-control {
    background: #2f8458;
    border-color: #2f8458;
    color: #ffffff;
}

.np-configurator .carrito-choice.is-radio.is-selected .carrito-choice-control {
    background: transparent;
    color: transparent;
    box-shadow: inset 0 0 0 7px #2f8458;
}

.np-config-group {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 0.7rem;
}

.np-config-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.np-config-group-head strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.np-config-group-type {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 103, 9, 0.1);
    color: #ffb27b;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.np-config-choice-list {
    display: grid;
    gap: 0.2rem;
}

.np-observation-field {
    display: grid;
    gap: 0.55rem;
}

.np-configurator.is-empty .np-observation-field {
    display: none;
}

.np-observation-field textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--nuevo-pedido-text);
    font-size: 0.9rem;
    line-height: 1.5;
    outline: 0;
}

.np-observation-field textarea::placeholder {
    color: var(--nuevo-pedido-muted);
}

.np-order-remove {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #ff8e76;
    justify-self: end;
}

.np-add-observation {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.4rem 0;
    border: 0;
    background: transparent;
    color: var(--nuevo-pedido-text);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: left;
}

.np-add-observation-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.np-add-observation-icon svg {
    width: 16px;
    height: 16px;
}

.np-summary-totals {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--nuevo-pedido-border);
    display: grid;
    gap: 0.55rem;
}

.np-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--nuevo-pedido-muted);
    font-size: 0.92rem;
}

.np-total-line strong {
    color: var(--nuevo-pedido-text);
    font-weight: 800;
}

.np-total-line-due {
    margin-top: 0.25rem;
    color: var(--nuevo-pedido-text);
    font-size: 1.05rem;
}

.np-total-line-due strong {
    color: var(--nuevo-pedido-accent);
    font-size: 1.9rem;
    letter-spacing: -0.04em;
}

.np-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.np-quick-action {
    min-height: 74px;
    padding: 0.78rem 0.65rem;
    border: 1px solid var(--nuevo-pedido-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--nuevo-pedido-text);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.np-quick-action.is-active {
    background: linear-gradient(180deg, #ff7f2f, var(--nuevo-pedido-accent));
    border-color: transparent;
    color: #fff;
}

.np-quick-action-danger {
    color: #ff907b;
}

.np-quick-action-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.theme-light {
    --nuevo-pedido-bg: #f3ede4;
    --nuevo-pedido-main: rgba(255, 255, 255, 0.98);
    --nuevo-pedido-panel: rgba(37, 39, 54, 0.04);
    --nuevo-pedido-card: rgba(255, 255, 255, 0.92);
    --nuevo-pedido-card-strong: rgba(255, 255, 255, 0.98);
    --nuevo-pedido-border: rgba(37, 39, 54, 0.08);
    --nuevo-pedido-text: #252736;
    --nuevo-pedido-muted: #726b79;
    --nuevo-pedido-soft: #9b948d;
    --nuevo-pedido-shadow: 0 24px 44px rgba(180, 166, 148, 0.22);
    color-scheme: light;
}

body.theme-light {
    background:
        radial-gradient(circle at top left, rgba(255, 103, 9, 0.08), transparent 20rem),
        radial-gradient(circle at bottom right, rgba(255, 194, 121, 0.18), transparent 24rem),
        var(--nuevo-pedido-bg);
}

body.theme-light .nuevo-pedido-main,
body.theme-light .nuevo-pedido-summary-panel,
body.theme-light .np-product-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 238, 0.98));
}

body.theme-light .nuevo-pedido-search,
body.theme-light .nuevo-pedido-icon-btn,
body.theme-light .np-category-chip,
body.theme-light .np-service-card,
body.theme-light .np-order-type-card,
body.theme-light .np-customer-select,
body.theme-light .np-mini-icon-btn,
body.theme-light .np-order-qty,
body.theme-light .np-order-remove,
body.theme-light .np-quick-action {
    background: rgba(37, 39, 54, 0.04);
}

body.theme-light .np-order-type-icon {
    background: rgba(37, 39, 54, 0.06);
}

body.theme-light .np-category-chip.is-active,
body.theme-light .np-order-type-card.is-active,
body.theme-light .np-quick-action.is-active {
    background: linear-gradient(180deg, #ff8737, var(--nuevo-pedido-accent));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(255, 103, 9, 0.18);
}

body.theme-light .np-category-chip.is-active .np-category-chip-icon,
body.theme-light .np-order-type-card.is-active .np-order-type-icon,
body.theme-light .np-quick-action.is-active .np-quick-action-icon {
    color: #ffffff;
}

body.theme-light .np-order-type-card.is-active .np-order-type-icon {
    background: rgba(255, 255, 255, 0.18);
}

body.theme-light .np-customer-select-caret {
    background: rgba(37, 39, 54, 0.06);
}

body.theme-light .np-product-image-wrap {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.92), transparent 64%),
        linear-gradient(180deg, rgba(246, 241, 233, 0.86), rgba(255, 255, 255, 0.98));
}

body.theme-light .np-product-badge.tone-sand {
    background: rgba(192, 173, 143, 0.22);
    color: #8b6f4f;
}

body.theme-light .np-product-badge.tone-teal {
    background: rgba(71, 182, 180, 0.18);
    color: #1f8f8a;
}

body.theme-light .np-product-badge.tone-plum {
    background: rgba(181, 67, 133, 0.18);
    color: #a02b70;
}

body.theme-light .np-product-badge.tone-lime {
    background: rgba(92, 179, 104, 0.16);
    color: #378146;
}

body.theme-light .np-order-tags span {
    color: #c37038;
}

body.theme-light .np-product-relationship-note {
    color: #c37038;
}

body.theme-light .np-order-secondary-count {
    color: #c37038;
}

body.theme-light .np-toast {
    background: rgba(255, 255, 255, 0.96);
    color: #252736;
    box-shadow: 0 20px 36px rgba(178, 164, 145, 0.22);
}

body.theme-light .np-toast-copy span {
    color: #726b79;
}

body.theme-light .np-config-group,
body.theme-light .np-observation-field textarea,
body.theme-light .np-order-row-primary.is-selected {
    background: rgba(37, 39, 54, 0.04);
}

body.theme-light .np-config-group-type {
    color: #c37038;
}

body.theme-light .np-configurator .carrito-choice-control {
    border-color: rgba(39, 34, 48, 0.22);
}

body.theme-light .np-configurator .carrito-choice-label,
body.theme-light .np-configurator .carrito-choice-price {
    color: #252736;
}


body.theme-light .np-quick-action-danger {
    color: #d56b53;
}

body.page-loading .nuevo-pedido-toolbar,
body.page-loading .np-category-chip,
body.page-loading .np-product-card,
body.page-loading .np-service-card,
body.page-loading .np-footer-action,
body.page-loading .nuevo-pedido-summary-panel {
    position: relative;
    overflow: hidden;
}

body.page-loading .nuevo-pedido-toolbar::after,
body.page-loading .np-category-chip::after,
body.page-loading .np-product-card::after,
body.page-loading .np-service-card::after,
body.page-loading .np-footer-action::after,
body.page-loading .nuevo-pedido-summary-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: nuevo-pedido-skeleton 1.4s infinite;
}

body.page-loading .np-product-card img,
body.page-loading .nuevo-pedido-toolbar *:not(.nuevo-pedido-toolbar-actions),
body.page-loading .np-category-chip *,
body.page-loading .np-product-card *,
body.page-loading .np-service-card *,
body.page-loading .np-footer-action *,
body.page-loading .nuevo-pedido-summary-panel * {
    opacity: 0;
}

@keyframes nuevo-pedido-skeleton {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 1499.98px) {
    .nuevo-pedido-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .nuevo-pedido-layout {
        grid-template-columns: 1fr;
    }

    .nuevo-pedido-summary-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 991.98px) {
    .nuevo-pedido-shell {
        flex-direction: column;
        gap: 1rem;
    }

    .nuevo-pedido-main {
        padding: 1rem;
    }

    .nuevo-pedido-toolbar {
        flex-direction: column;
    }

    .nuevo-pedido-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .nuevo-pedido-search {
        max-width: none;
    }

    .nuevo-pedido-service-grid,
    .nuevo-pedido-footer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .nuevo-pedido-shell {
        padding: 0.75rem;
    }

    .nuevo-pedido-main {
        padding: 0.9rem;
        border-radius: 28px;
    }

    .nuevo-pedido-greeting h1 {
        font-size: 1.9rem;
    }

    .nuevo-pedido-search {
        min-width: 0;
        width: 100%;
    }

    .nuevo-pedido-icon-btn {
        flex: 1;
        width: auto;
    }

    .nuevo-pedido-product-grid,
    .np-order-type-grid,
    .np-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np-summary-head {
        display: none;
    }

    .np-order-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.8rem;
    }

    .np-order-description {
        grid-column: 1 / -1;
    }

    .np-order-qty {
        justify-self: start;
    }

    .np-order-rate,
    .np-order-disc,
    .np-order-total,
    .np-order-remove,
    .np-order-secondary-anchor {
        justify-self: end;
    }
}

@media (max-width: 575.98px) {
    .nuevo-pedido-category-row,
    .nuevo-pedido-toolbar-actions {
        gap: 0.55rem;
    }

    .nuevo-pedido-product-grid,
    .nuevo-pedido-service-grid,
    .nuevo-pedido-footer-actions,
    .np-order-type-grid,
    .np-quick-actions {
        grid-template-columns: 1fr;
    }

    .np-customer-row {
        flex-wrap: wrap;
    }

    .np-customer-actions {
        width: 100%;
    }

    .np-mini-icon-btn {
        flex: 1;
        width: auto;
    }
}
