:root {
    --pedidos-bg: #181825;
    --pedidos-text: #f5f4fb;
    --pedidos-muted: #a9abc0;
    --pedidos-border: rgba(255, 255, 255, 0.08);
    --pedidos-shadow: 0 24px 44px rgba(9, 9, 18, 0.34);
    --pedidos-accent: #FF6709;
    color-scheme: dark;
}

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

html,
body {
    min-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

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

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

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

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

.pedidos-header {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.pedidos-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pedidos-header-bottom {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pedidos-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8e90ac;
}

.pedidos-title {
    font-size: clamp(1.8rem, 2.6vw, 2.3rem);
    font-weight: 800;
}

.pedidos-subtitle {
    max-width: 42rem;
    color: var(--pedidos-muted);
    font-size: 0.95rem;
}

.pedidos-date {
    color: var(--pedidos-text);
    font-size: 1rem;
    font-weight: 600;
}

.pedidos-tools {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.pedidos-icon-btn {
    width: 46px;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--pedidos-text);
}

.pedidos-fullscreen-btn.is-active {
    background: #FF6709;
    color: #ffffff;
}

.pedidos-icon-btn svg,
.pedidos-search-icon svg,
.status-icon svg {
    width: 18px;
    height: 18px;
}

.pedidos-search {
    min-width: 280px;
    max-width: 360px;
    width: 100%;
    min-height: 46px;
    padding: 0.3rem 0.9rem 0.3rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
}

.pedidos-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--pedidos-text);
    font-size: 0.9rem;
}

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

.pedidos-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pedidos-muted);
}

.pedidos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-chip,
.filter-chip-link {
    border: 0;
    border-radius: 10px;
    min-height: 46px;
    padding: 0.72rem 1rem;
    color: #f2f1f8;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.filter-chip.is-active,
.filter-chip-link.is-active {
    background: #1b7f74;
    color: #ffffff;
}

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

.pedidos-detail-modal .modal-dialog {
    max-width: 1100px;
    width: calc(100% - 2rem);
}

.pedidos-modal-content {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: #f9f8f5;
    color: #252234;
}

.carrito-modal .modal-dialog {
    max-width: 540px;
    width: calc(100% - 2rem);
}

.carrito-modal-content {
    border: 0;
    border-radius: 26px;
    background: #fbfaf7;
    overflow: hidden;
}

.carrito-modal-media {
    position: relative;
    height: 150px;
    background: linear-gradient(180deg, #fffaf0, #f7f3ea);
}

.carrito-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrito-modal-header {
    padding: 0.95rem 1.05rem 0.1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 0;
}

.carrito-modal-head-copy {
    min-width: 0;
}

.carrito-modal-title {
    margin: 0;
    text-align: left;
    color: #1d2430;
    font-size: clamp(1.35rem, 1.9vw, 1.9rem);
    line-height: 1.02;
    font-weight: 800;
}

.carrito-modal-subtitle {
    margin: 0.4rem 0 0;
    color: #71707a;
    font-size: 0.84rem;
    font-weight: 500;
}

.carrito-modal-actions-head {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.carrito-favorite-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 18px;
    background: rgba(233, 84, 92, 0.08);
    color: #dd4c57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-favorite-btn svg {
    width: 20px;
    height: 20px;
}

.carrito-favorite-btn.is-active {
    background: rgba(233, 84, 92, 0.14);
    color: #d93d4a;
}

.carrito-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 18px;
    background: rgba(31, 35, 48, 0.06);
    color: #7c7984;
    font-size: 1.35rem;
    line-height: 1;
}

.carrito-modal-body {
    display: grid;
    gap: 0.8rem;
    padding: 0 1.05rem 1.1rem;
}

.carrito-modal-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carrito-qty-box,
.carrito-price-pill {
    min-height: 56px;
    padding: 0 0.75rem;
    border-radius: 15px;
    background: #f1f1ef;
}

.carrito-qty-box {
    min-width: 185px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.carrito-price-pill {
    min-width: 128px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #267a4d;
    font-size: 1.35rem;
    font-weight: 800;
}

.carrito-qty-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5d6a6f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-qty-btn svg {
    width: 20px;
    height: 20px;
}

.carrito-qty-btn.is-add {
    background: #2f8458;
    color: #ffffff;
    box-shadow: 0 14px 20px rgba(47, 132, 88, 0.18);
}

.carrito-qty-value {
    min-width: 2ch;
    text-align: center;
    color: #1e2330;
    font-size: 1.45rem;
    font-weight: 800;
}

.carrito-divider {
    height: 1px;
    background: rgba(31, 35, 48, 0.12);
}

.carrito-group {
    display: grid;
}

.carrito-group-title {
    margin: 0 0 0.7rem;
    color: #1d2430;
    font-size: 1.12rem;
    font-weight: 800;
}

.carrito-choice {
    min-height: 58px;
    padding: 0 0.35rem;
    border: 0;
    border-top: 1px solid rgba(31, 35, 48, 0.09);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: #1b2230;
    text-align: left;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.carrito-choice:last-child {
    border-bottom: 1px solid rgba(31, 35, 48, 0.09);
}

.carrito-choice:hover,
.carrito-choice:focus-visible {
    background: rgba(47, 132, 88, 0.04);
}

.carrito-choice-control {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid #d8d8de;
    background: #ffffff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-choice-control svg {
    width: 14px;
    height: 14px;
}

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

.carrito-choice.is-selected {
    background: rgba(47, 132, 88, 0.05);
}

.carrito-choice.is-radio .carrito-choice-control {
    border-radius: 999px;
}

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

.carrito-choice-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.carrito-choice-price {
    font-size: 0.88rem;
    font-weight: 700;
}

.carrito-note {
    display: grid;
    gap: 0.8rem;
}

.carrito-note-toggle {
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    background: transparent;
    color: #293141;
    font-size: 0.86rem;
    font-weight: 700;
}

.carrito-note-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #f1f1ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-note-toggle-icon svg {
    width: 14px;
    height: 14px;
}

.carrito-note-input {
    min-height: 78px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 36, 50, 0.12);
    background: #ffffff;
    resize: none;
    font-size: 0.9rem;
}

.carrito-submit-btn {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: #2f8458;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(47, 132, 88, 0.18);
}

.pedidos-modal-header {
    padding: 1.75rem 1.8rem 0;
    border-bottom: 0;
    align-items: flex-start;
}

.pedidos-info-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #f9f8f5;
    color: #252234;
}

.pedidos-info-header {
    padding: 1.55rem 1.8rem 0.55rem;
    border-bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pedidos-info-eyebrow {
    color: #8b8493;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pedidos-info-title {
    font-size: 1.85rem;
    font-weight: 800;
}

.pedidos-info-body {
    padding: 0.5rem 1.8rem 1.8rem;
}

.pedidos-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.35rem;
}

.pedidos-info-main,
.pedidos-info-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.pedidos-info-customer {
    margin-bottom: 0;
}

.pedidos-info-ticket,
.pedidos-info-summary-card {
    padding: 1.2rem;
    border-radius: 22px;
    background: #f0efec;
}

.pedidos-info-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pedidos-info-ticket-head h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.pedidos-info-ticket-head span,
.pedidos-info-summary-label {
    color: #7a7483;
    font-size: 0.92rem;
    font-weight: 700;
}

.pedidos-info-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0.7rem 0 1rem;
    padding: 0 1rem;
    border-radius: 14px;
    background: #ffffff;
    color: #252234;
    font-size: 1rem;
    font-weight: 800;
}

.pedidos-info-summary-list {
    display: grid;
    gap: 0.2rem;
}

.pedidos-info-total {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(37, 34, 52, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pedidos-info-total span,
.pedidos-info-total strong {
    color: #252234;
    font-size: 1.55rem;
    font-weight: 800;
}

.pedidos-info-pay-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: #FF6709;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 14px 24px rgba(255, 103, 9, 0.2);
}

.pedidos-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #252234;
}

.pedidos-modal-close {
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 999px;
    background: #f0ede8;
    color: #7d7787;
    opacity: 1;
    text-shadow: none;
}

.pedidos-modal-body {
    padding: 1.25rem 1.8rem 1.8rem;
}

.pedidos-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.8rem;
}

.pedidos-modal-section-title {
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #252234;
}

.pedidos-modal-right {
    display: flex;
    flex-direction: column;
}

.pedidos-modal-method-title {
    margin-bottom: 1rem;
}

.pedidos-modal-customer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.pedidos-modal-badge {
    min-width: 54px;
    min-height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #0f817b;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

.pedidos-modal-customer-copy h3 {
    margin: 0 0 0.15rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.pedidos-modal-customer-copy p,
.pedidos-modal-customer-time span {
    margin: 0;
    color: #6f6978;
    font-size: 0.9rem;
    font-weight: 600;
}

.pedidos-modal-customer-time {
    display: grid;
    gap: 0.25rem;
    text-align: right;
}

.pedidos-modal-customer-time strong {
    color: #39344a;
    font-size: 1rem;
    font-weight: 700;
}

.pedidos-modal-ticket {
    padding: 1.15rem 1.15rem 1.4rem;
    border-radius: 20px;
    background: #f0efec;
    position: relative;
}

.pedidos-modal-ticket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 20px;
    background:
        radial-gradient(circle at 10px -2px, transparent 11px, #f9f8f5 11px);
    background-size: 20px 20px;
}

.pedidos-modal-ticket h4 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.pedidos-modal-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pedidos-modal-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.pedidos-modal-item-copy {
    display: grid;
    gap: 0.25rem;
}

.pedidos-modal-item-copy span {
    color: #322d40;
    font-size: 0.98rem;
    font-weight: 600;
}

.pedidos-modal-item-copy strong,
.pedidos-modal-item-qty,
.pedidos-modal-summary-row strong {
    color: #252234;
    font-size: 0.98rem;
    font-weight: 700;
}

.pedidos-modal-item-qty {
    padding-top: 0.1rem;
}

.pedidos-modal-summary-row,
.pedidos-modal-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pedidos-modal-summary-row {
    margin-bottom: 0.7rem;
    color: #645f6f;
    font-size: 0.98rem;
}

.pedidos-modal-total-row {
    margin-top: 1.5rem;
    color: #252234;
}

.pedidos-modal-total-row span,
.pedidos-modal-total-row strong {
    font-size: 1.85rem;
    font-weight: 800;
}

.pedidos-payment-methods {
    width: 100%;
    max-width: 100%;
}

.pedidos-payment-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.pedidos-payment-tab {
    min-height: 42px;
    border: 1px solid rgba(39, 34, 48, 0.12);
    border-radius: 11px;
    background: #191c2d;
    color: #f6f4ef;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(25, 28, 45, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pedidos-payment-tab.is-active {
    background: linear-gradient(180deg, #ff7f2f, #FF6709);
    border-color: rgba(255, 103, 9, 0.22);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(255, 103, 9, 0.22);
}

.pedidos-payment-tab:hover,
.pedidos-payment-tab:focus-visible {
    transform: translateY(-1px);
}

.pedidos-payment-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.pedidos-payment-option {
    min-height: 64px;
    padding: 0.75rem 0.45rem 0.65rem;
    border: 1px solid rgba(39, 34, 48, 0.08);
    border-radius: 14px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.38rem;
    background: #ffffff;
    color: #8d8897;
    box-shadow: 0 6px 14px rgba(37, 34, 52, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pedidos-payment-option.is-active {
    border-color: rgba(255, 103, 9, 0.28);
    color: #252234;
    box-shadow: 0 10px 20px rgba(255, 103, 9, 0.12);
}

.pedidos-payment-option:hover,
.pedidos-payment-option:focus-visible {
    border-color: rgba(255, 103, 9, 0.22);
    transform: translateY(-1px);
}

.pedidos-payment-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.pedidos-payment-option-icon svg {
    width: 22px;
    height: 22px;
}

.pedidos-payment-option-label {
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pedidos-payment-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pedidos-payment-amount {
    margin: 0.95rem 0 1.3rem;
    color: #252234;
    font-size: 3rem;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.04em;
    text-align: right;
}

.pedidos-payment-quick {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.pedidos-payment-quick-btn,
.pedidos-payment-submit {
    border: 0;
    border-radius: 14px;
    background: #FF6709;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
}

.pedidos-payment-quick-btn {
    min-height: 42px;
    background: #edf4f2;
    color: #0f817b;
    text-transform: none;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(15, 129, 123, 0.04);
}

.pedidos-payment-pad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.pedidos-payment-key {
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #252234;
    font-size: 2rem;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
}

.pedidos-payment-key-delete svg {
    width: 24px;
    height: 24px;
}

.pedidos-payment-submit {
    width: 100%;
    min-height: 56px;
    font-size: 1rem;
    box-shadow: 0 14px 24px rgba(255, 103, 9, 0.22);
}

.order-card {
    border-radius: 26px;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(24, 24, 36, 0.96), rgba(20, 20, 30, 0.96));
    border: 1px solid var(--pedidos-border);
    box-shadow: 0 18px 30px rgba(10, 10, 18, 0.16);
}

.order-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.order-table-badge {
    min-width: 56px;
    min-height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 103, 9, 0.92), #ff8b3d);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.table-badge-teal {
    background: linear-gradient(135deg, #0f817b, #156e73);
    color: #ffffff;
}

.table-badge-orange {
    background: linear-gradient(135deg, #ff8e35, #FF6709);
    color: #ffffff;
}

.table-badge-gold {
    background: linear-gradient(135deg, #ffd75a, #ffbf3c);
    color: #2f2922;
}

.table-badge-lilac {
    background: linear-gradient(135deg, #a28bff, #8f77f5);
    color: #ffffff;
}

.order-summary h2 {
    margin: 0 0 0.15rem;
    font-size: 1.16rem;
    font-weight: 800;
}

.order-summary p {
    margin: 0;
    color: var(--pedidos-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.order-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
}

.status-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.status-note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pedidos-muted);
    font-size: 0.76rem;
    text-align: right;
}

.status-note::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.status-finalizada .status-title {
    background: rgba(76, 210, 132, 0.18);
    color: #30bf68;
    border: 1px solid rgba(76, 210, 132, 0.1);
}

.status-finalizada .status-note {
    color: #55c788;
}

.status-barra .status-title {
    background: rgba(82, 160, 255, 0.16);
    color: #2f7eea;
    border: 1px solid rgba(82, 160, 255, 0.08);
}

.status-barra .status-note {
    color: #6e89b8;
}

.status-cocina .status-title {
    background: rgba(255, 196, 60, 0.18);
    color: #b37a00;
    border: 1px solid rgba(255, 196, 60, 0.08);
}

.status-cocina .status-note {
    color: #b98a22;
}

.status-nuevo .status-title {
    background: rgba(255, 103, 9, 0.14);
    color: #FF6709;
    border: 1px solid rgba(255, 103, 9, 0.08);
}

.status-nuevo .status-note {
    color: #d67f43;
}

.order-time-row,
.order-items-head,
.order-item-row,
.order-total-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 96px;
    gap: 0.75rem;
    align-items: center;
}

.order-time-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.85rem 0 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--pedidos-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.order-time-row strong {
    color: #f4f4fb;
    font-size: 0.9rem;
}

.order-items-head {
    padding: 0.9rem 0 0.55rem;
    color: var(--pedidos-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-items-head span:nth-child(2),
.order-items-head span:nth-child(3),
.order-item-row span:nth-child(2),
.order-item-row strong {
    text-align: right;
}

.order-items-list {
    display: grid;
    gap: 0.55rem;
}

.order-item-row span:first-child {
    color: #f0f0f8;
    font-size: 0.9rem;
}

.order-item-row span:nth-child(2) {
    color: var(--pedidos-muted);
    font-size: 0.88rem;
}

.order-item-row strong {
    font-size: 0.92rem;
}

.order-total-row {
    padding-top: 0.95rem;
    margin-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.order-total-row span {
    grid-column: 1 / 3;
    font-size: 1.02rem;
    font-weight: 700;
}

.order-total-row strong {
    text-align: right;
    font-size: 1.45rem;
    font-weight: 800;
}

.order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.15rem;
}

.order-btn {
    min-height: 52px;
    border: 0;
    border-radius: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
}

.order-btn-soft {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.order-btn-primary {
    background: #FF6709;
    color: #ffffff;
    box-shadow: none;
}

body.theme-light {
    --pedidos-bg: #f3efe8;
    --pedidos-text: #2c2734;
    --pedidos-muted: #726b79;
    --pedidos-border: rgba(60, 52, 75, 0.08);
    --pedidos-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(--pedidos-bg);
}

body.theme-light .pedidos-main,
body.theme-light .order-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 240, 0.98));
}

body.theme-light .filter-chip,
body.theme-light .filter-chip-link {
    color: #403a48;
    background: rgba(39, 34, 48, 0.06);
}

body.theme-light .filter-chip.is-active,
body.theme-light .filter-chip-link.is-active {
    background: #1b7f74;
    color: #ffffff;
}

body.theme-light .order-table-badge {
    color: #ffffff;
}

body.theme-light .table-badge-gold {
    color: #2f2922;
}

body.theme-light .order-summary p,
body.theme-light .status-note,
body.theme-light .order-time-row,
body.theme-light .order-items-head,
body.theme-light .order-item-row span:nth-child(2) {
    color: #726b79;
}

body.theme-light .pedidos-date,
body.theme-light .order-summary h2,
body.theme-light .order-item-row span:first-child,
body.theme-light .order-time-row strong,
body.theme-light .order-total-row strong,
body.theme-light .order-total-row span,
body.theme-light .pedidos-search input,
body.theme-light .pedidos-icon-btn {
    color: #2c2734;
}

body.theme-light .pedidos-search,
body.theme-light .pedidos-icon-btn {
    background: rgba(39, 34, 48, 0.05);
}

body.theme-light .pedidos-search-icon {
    color: #726b79;
}

body.theme-light .pedidos-fullscreen-btn.is-active {
    background: #FF6709;
    color: #ffffff;
}

body.theme-light .pedidos-modal-content {
    background: #f9f8f5;
    color: #252234;
}

body.theme-light .order-time-row,
body.theme-light .order-total-row {
    border-top-color: rgba(39, 34, 48, 0.08);
}

body.theme-light .order-time-row {
    border-bottom-color: rgba(39, 34, 48, 0.08);
}

body.theme-light .order-btn-soft {
    background: rgba(39, 34, 48, 0.12);
    color: #ffffff;
    border: 1px solid rgba(39, 34, 48, 0.08);
}

body.theme-light .order-btn-primary {
    color: #ffffff;
}

body.theme-light .status-finalizada .status-title {
    color: #2ca35a;
}

body.theme-light .status-finalizada .status-note {
    color: #4cb978;
}

body.theme-light .status-barra .status-title {
    color: #2f7eea;
}

body.theme-light .status-barra .status-note {
    color: #6886b8;
}

body.theme-light .status-cocina .status-title {
    color: #b37a00;
}

body.theme-light .status-cocina .status-note {
    color: #b0882d;
}

body.theme-light .status-nuevo .status-title {
    color: #FF6709;
}

body.theme-light .status-nuevo .status-note {
    color: #cf7d47;
}

body.theme-light {
    scrollbar-color: rgba(39, 34, 48, 0.18) transparent;
}

body.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(39, 34, 48, 0.18);
}

@media (max-width: 1199.98px) {
    .orders-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-time-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        align-items: start;
    }

    .order-time-row strong {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .pedidos-shell {
        flex-direction: column;
        padding: 0.85rem;
    }

    .pedidos-header-top,
    .pedidos-header-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .pedidos-tools {
        width: 100%;
    }

    .pedidos-filters {
        width: 100%;
    }

    .pedidos-search {
        max-width: none;
    }

    .pedidos-modal-grid {
        grid-template-columns: 1fr;
    }

    .pedidos-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .orders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .carrito-modal .modal-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .pedidos-detail-modal .modal-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .pedidos-main {
        padding: 1.2rem;
        border-radius: 26px;
    }

    .order-top {
        grid-template-columns: auto 1fr;
    }

    .order-status {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .order-time-row,
    .order-items-head,
    .order-item-row,
    .order-total-row {
        grid-template-columns: minmax(0, 1fr) 60px 82px;
    }

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

    .pedidos-search {
        min-width: 0;
    }

    .pedidos-modal-header,
    .pedidos-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pedidos-modal-header {
        padding-top: 1rem;
    }

    .pedidos-modal-body {
        padding-top: 0.85rem;
        padding-bottom: 1rem;
    }

    .carrito-modal-header,
    .carrito-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .carrito-modal-header {
        padding-top: 1rem;
    }

    .pedidos-modal-title {
        font-size: 1.45rem;
    }

    .pedidos-modal-grid {
        gap: 1rem;
    }

    .pedidos-modal-ticket {
        padding: 0.95rem 0.95rem 1.15rem;
    }

    .carrito-modal-content {
        border-radius: 28px;
    }

    .carrito-modal-media {
        height: 180px;
    }

    .carrito-modal-header {
        align-items: center;
    }

    .carrito-modal-head-copy {
        flex: 1;
        text-align: center;
    }

    .carrito-modal-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .carrito-modal-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .carrito-favorite-btn,
    .carrito-modal-close {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .carrito-favorite-btn svg {
        width: 24px;
        height: 24px;
    }

    .carrito-qty-box,
    .carrito-price-pill {
        min-height: 72px;
        border-radius: 20px;
    }

    .carrito-qty-box {
        min-width: 0;
        flex: 1 1 100%;
    }

    .carrito-price-pill {
        min-width: 0;
        width: 100%;
        justify-content: center;
        padding: 0 1rem;
        font-size: 1.8rem;
    }

    .carrito-qty-btn {
        width: 50px;
        height: 50px;
    }

    .carrito-qty-value {
        font-size: 1.9rem;
    }

    .carrito-group-title {
        font-size: 1.35rem;
    }

    .carrito-choice {
        min-height: 72px;
        padding: 0 0.3rem;
        gap: 0.75rem;
    }

    .carrito-choice-control {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .carrito-choice-label,
    .carrito-choice-price {
        font-size: 1rem;
    }

    .carrito-submit-btn {
        min-height: 64px;
        font-size: 1.12rem;
    }

    .pedidos-modal-customer {
        grid-template-columns: auto 1fr;
    }

    .pedidos-modal-customer-time {
        grid-column: 1 / -1;
        text-align: left;
    }

    .pedidos-payment-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pedidos-payment-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pedidos-payment-amount {
        margin: 1rem 0 0.9rem;
        font-size: 2.2rem;
    }

    .pedidos-payment-key {
        min-height: 50px;
        font-size: 1.55rem;
    }

    .pedidos-payment-submit {
        min-height: 50px;
    }
}
