:root {
    --primary: #9FCA28;
    --primary-rgb: 159, 202, 40;
    --bg: #f5f7f9;
    --radius: 14px;

    --bar-bg: #2f343a;
    --bar-active: var(--primary);
    --bar-icon: #cfd6de;
    --bar-icon-active: #2f343a;

    --flow-pos-text: #111827;
    --flow-pos-text-muted: #4b5563;
    --flow-pos-border-soft: rgba(17, 24, 39, .12);
    --flow-pos-border-primary-soft: rgba(var(--primary-rgb), .20);
    --flow-pos-surface: #ffffff;
    --flow-pos-surface-soft: #f8fafc;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
}

/* FORM CONTRAST */
.label,
.help,
.input,
.textarea,
.select select,
.checkbox {
    color: #000;
}

.help {
    color: #000 !important;
}

.has-text-grey,
.has-text-grey-light,
.has-text-grey-dark {
    color: #000 !important;
}

.input::placeholder,
.textarea::placeholder {
    color: rgba(0, 0, 0, .78);
}

/* TOPBAR */
.app-topbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 30;
}

.app-topbar .navbar-brand {
    position: relative;
}

.app-topbar .navbar-item {
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.app-topbar .flow-pos-brand-item {
    overflow: visible;
}

.flow-pos-brand-logo {
    display: block;
    height: 48px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transform: scale(1.3);
    transform-origin: left center;
}

/* User dropdown button */
#userMenuBtn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: white;
}

#userMenuBtn:hover {
    background: rgba(255, 255, 255, .1);
}

.dropdown-content {
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.flow-pos-audio-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

#flowPosSessionText {
    color: #fff;
    font-size: .85rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

#flowPosSessionText .flow-pos-session-icon {
    font-size: .75rem;
    margin-right: 4px;
    opacity: .95;
}

/* LAYOUT */
.app-shell {
    display: grid;
    grid-template-columns: 72px 1fr;
    min-height: calc(100vh - 64px);
}

/* SIDEBAR */
.app-sidebar {
    background: var(--bar-bg);
    color: var(--bar-icon);
    border-right: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer;
    text-decoration: none;
    color: var(--bar-icon);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.side-btn:hover {
    background: rgba(255, 255, 255, .06);
}

.side-btn:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb), .65);
    outline-offset: 2px;
}

.side-btn i {
    font-size: 18px;
    line-height: 1;
}

.side-btn.is-active {
    background: var(--bar-active);
    color: var(--bar-icon-active);
    border-color: transparent;
}

/* MAIN */
.app-main {
    padding: 16px;
    background-color: #f5f7f9;
}

.view {
    display: none;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, .06);
    min-height: 60vh;
}

.view.is-active {
    display: block;
}

.flow-pos-upsell-card {
    border: 1px solid rgba(var(--primary-rgb), .4);
    background: linear-gradient(160deg, #ffffff 0%, #f4f8e7 100%);
    border-radius: 16px;
    padding: 18px;
    max-width: 560px;
}

.flow-pos-upsell-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), .2);
    color: #4a5e0f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.flow-pos-upsell-copy {
    color: #222;
    margin-bottom: 14px;
}

.flow-pos-upsell-cta {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #1c2508;
    font-weight: 700;
    text-decoration: none;
}

.flow-pos-upsell-cta:hover,
.flow-pos-upsell-cta:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #152005;
    filter: brightness(.95);
}

.flow-pos-upsell-cta[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

.flow-pos-settings-card {
    height: 100%;
}

.flow-pos-settings-card .title,
.flow-pos-settings-card .label,
.flow-pos-settings-card .help,
.flow-pos-settings-card p {
    color: #000;
}

.flow-pos-settings-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    color: #111;
}

.flow-pos-theme-controls {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
}

.flow-pos-theme-color-input {
    width: 56px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.flow-pos-theme-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.flow-pos-theme-swatch {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #fff;
    padding: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.flow-pos-theme-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* BOTTOM BAR */
.bottom-bar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: var(--bar-bg);
    border-radius: 18px;
    padding: 10px;
}

.bottom-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bottom-item {
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bar-icon);
    cursor: pointer;
    text-decoration: none;
}

.bottom-item.is-active {
    background: var(--bar-active);
    color: var(--bar-icon-active);
}

.bottom-item i {
    font-size: 18px;
    line-height: 1;
}

.flow-pos-products-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 4px;
}

.flow-pos-products-loader .button.is-loading {
    border: none;
    box-shadow: none;
}

.flow-pos-suspended-loader {
    padding: 10px 0;
}

.flow-pos-products-filters {
    margin-bottom: 10px;
}

#productoGrid {
    margin-top: 2px;
}

.flow-pos-product-card {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transform: translateZ(0) scale(1);
    transform-origin: center;
    transition: transform .95s cubic-bezier(.19, 1, .22, 1), box-shadow .34s ease;
    will-change: transform;
}

.flow-pos-product-card .title,
.flow-pos-product-card .subtitle,
.flow-pos-product-card .card-content,
.flow-pos-product-card .card-content p {
    color: #000;
}

@media (hover: hover) {

    .flow-pos-product-card:hover,
    .flow-pos-product-card:focus-within {
        transform: translateZ(0) scale(1.045);
        box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
    }
}

#cartSection {
    position: relative;
}

.flow-pos-cart-wrap,
.flow-pos-cart-wrap-content {
    background: transparent;
}

.flow-pos-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.flow-pos-cart-panel-head>p {
    color: var(--flow-pos-text);
}

#cartItemsCount {
    font-weight: 600;
    color: var(--flow-pos-text);
}

.flow-pos-cart-list {
    background: var(--flow-pos-surface-soft);
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 12px;
    padding: 10px;
    overflow-x: hidden;
}

.flow-pos-cart-summary {
    border-top: 1px solid rgba(0, 0, 0, .06);
    border-radius: 0;
    box-shadow: none;
    margin-top: 6px;
}

#cartItems .flow-pos-cart-row {
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    background: transparent;
    margin-bottom: 0 !important;
    transition: background-color .2s ease;
}

#cartItems .flow-pos-cart-row:hover {
    background: rgba(15, 23, 42, .03);
    border-radius: 10px;
}

#cartItems .flow-pos-cart-row:last-child {
    border-bottom: none;
}

#cartItems .column {
    min-width: 0;
}

#cartItems .is-size-7 {
    overflow-wrap: anywhere;
    color: #000;
}

#cartHeader {
    color: #000;
}

#cartItems .flow-pos-cart-row .field.has-addons {
    margin-bottom: 0;
    justify-content: center;
}

#cartItems .flow-pos-cart-row .field.has-addons .control {
    display: flex;
}

#cartItems .flow-pos-cart-qty {
    width: 2.15rem;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#cartItems .flow-pos-cart-qty-input {
    width: 3.6rem;
    min-width: 3.6rem;
    height: 2.15rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    -moz-appearance: textfield;
}

#cartItems .flow-pos-cart-qty-input::-webkit-outer-spin-button,
#cartItems .flow-pos-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#cartItems .flow-pos-cart-qty:disabled {
    opacity: .55;
}

#cartActions .button {
    border-radius: 10px;
}

.flow-pos-cart-action-btn {
    --action-bg: #6b7280;
    min-height: 2.45rem;
    font-weight: 600;
    border-radius: 12px !important;
    gap: 6px;
    border: 1px solid var(--action-bg) !important;
    background: var(--action-bg) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .10);
    transition: all .2s ease;
}

.flow-pos-cart-action-btn .icon {
    margin-right: 0;
}

.flow-pos-cart-action-btn:hover,
.flow-pos-cart-action-btn:focus {
    filter: brightness(.94);
    transform: translateY(-1px);
}

.flow-pos-cart-action-btn:disabled,
.flow-pos-cart-action-btn[disabled],
.flow-pos-cart-pay .button:disabled,
.flow-pos-cart-pay .button[disabled] {
    opacity: .52 !important;
    filter: none !important;
    transform: none !important;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.flow-pos-cart-action-btn .icon,
.flow-pos-cart-action-btn .icon i {
    color: currentColor;
}

.flow-pos-modal-action-btn {
    min-width: 132px;
    min-height: 2.45rem;
    justify-content: center;
}

.flow-pos-modal-action-btn.button.is-light {
    border-color: rgba(148, 163, 184, .5);
    color: #334155;
    background: #f8fafc;
}

.flow-pos-modal-action-btn.button.is-light:hover,
.flow-pos-modal-action-btn.button.is-light:focus {
    background: #eef2f7;
    border-color: rgba(148, 163, 184, .72);
}

.flow-pos-close-modal-body {
    position: relative;
}

.flow-pos-close-intro {
    color: #0f172a;
    margin-bottom: 16px;
}

.flow-pos-close-summary-wrap {
    position: relative;
}

.flow-pos-close-hero {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
}

.flow-pos-close-expected-card {
    border: 1px solid rgba(15, 23, 42, .12);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    color: #0f172a;
}

.flow-pos-close-expected-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

.flow-pos-close-expected-value {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
}

.flow-pos-close-expected-meta {
    font-size: .8rem;
    color: #64748b;
}

.flow-pos-close-inputs .label {
    color: #0f172a;
}

.flow-pos-close-difference-card {
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.flow-pos-close-difference-label {
    font-size: .78rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.flow-pos-close-difference-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.flow-pos-close-difference-status {
    font-size: .85rem;
    font-weight: 600;
    color: #0f172a;
}

.flow-pos-close-difference--pending {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, .5);
}

.flow-pos-close-difference--balanced {
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, .4);
}

.flow-pos-close-difference--balanced .flow-pos-close-difference-value,
.flow-pos-close-difference--balanced .flow-pos-close-difference-status {
    color: #15803d;
}

.flow-pos-close-difference--shortage {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, .4);
}

.flow-pos-close-difference--shortage .flow-pos-close-difference-value,
.flow-pos-close-difference--shortage .flow-pos-close-difference-status {
    color: #b91c1c;
}

.flow-pos-close-difference--overage {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, .4);
}

.flow-pos-close-difference--overage .flow-pos-close-difference-value,
.flow-pos-close-difference--overage .flow-pos-close-difference-status {
    color: #1d4ed8;
}

.flow-pos-close-summary {
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #f8fafc;
    color: #000;
}

.flow-pos-close-summary--compact {
    background: #ffffff;
}

.flow-pos-close-summary-row span,
.flow-pos-close-summary-row strong {
    color: #000;
}

.flow-pos-close-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .86rem;
    padding: 4px 0;
}

.flow-pos-close-summary-row strong {
    font-size: .9rem;
}

.flow-pos-close-summary-row--separator {
    border-top: 1px dashed rgba(15, 23, 42, .14);
    margin-top: 4px;
    padding-top: 8px;
}

.flow-pos-close-details {
    border: 1px dashed rgba(148, 163, 184, .4);
    border-radius: 10px;
    padding: 8px 12px 2px;
    margin-bottom: 12px;
    background: #f8fafc;
}

.flow-pos-close-details summary {
    cursor: pointer;
    font-size: .85rem;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
}

.flow-pos-close-details[open] summary {
    margin-bottom: 12px;
}

.flow-pos-close-notes {
    margin-top: 8px;
}

.flow-pos-close-notes.flow-pos-close-notes--required .textarea {
    border-color: rgba(220, 38, 38, .6);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, .15);
}

.flow-pos-close-loader {
    background: rgba(255, 255, 255, .76);
    backdrop-filter: blur(1px);
}

.flow-pos-close-summary-wrap .flow-pos-close-loader {
    border-radius: 12px;
}

.flow-pos-close-modal-body>.flow-pos-close-loader {
    border-radius: 12px;
}

.flow-pos-close-loader .button.is-loading {
    border: none;
    box-shadow: none;
}

.flow-pos-cart-action-btn.is-active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 4px rgba(var(--primary-rgb), .36), 0 8px 16px rgba(15, 23, 42, .18);
    transform: translateY(-1px);
}

.flow-pos-cart-action-btn--discount {
    --action-bg: #16a34a;
}

.flow-pos-cart-action-btn--primary {
    --action-bg: var(--primary);
}

.flow-pos-cart-action-btn--charges {
    --action-bg: #dc2626;
}

.flow-pos-cart-action-btn--shipping {
    --action-bg: #2563eb;
}

.flow-pos-cart-action-btn--suspended {
    --action-bg: #0f766e;
}

.flow-pos-cart-action-btn--pause {
    --action-bg: #7c3aed;
}

.flow-pos-cart-action-btn--clear {
    --action-bg: #ea580c;
}

.flow-pos-suspended-actions {
    margin-bottom: 0 !important;
    gap: 6px;
}

.flow-pos-suspended-action-btn {
    min-height: 2rem;
    padding: 0 .68rem;
    border-radius: 10px !important;
    font-size: .75rem;
    box-shadow: none;
}

.flow-pos-suspended-action-btn:hover,
.flow-pos-suspended-action-btn:focus {
    transform: none;
    filter: brightness(.96);
}

#flowPosDiscountQuick .button[data-type],
#flowPosChargesQuick .button[data-type],
#flowPosShippingQuick .button[data-type] {
    min-height: 2.2rem;
    border-radius: 10px;
    font-weight: 600;
    border-width: 1px;
    transition: all .18s ease;
    box-shadow: none;
}

#flowPosDiscountQuick .button[data-type] {
    background: rgba(22, 163, 74, .10);
    border-color: rgba(22, 163, 74, .25);
    color: #166534;
}

#flowPosChargesQuick .button[data-type] {
    background: rgba(220, 38, 38, .10);
    border-color: rgba(220, 38, 38, .24);
    color: #b91c1c;
}

#flowPosShippingQuick .button[data-type] {
    background: rgba(37, 99, 235, .10);
    border-color: rgba(37, 99, 235, .24);
    color: #1d4ed8;
}

#flowPosDiscountQuick .button[data-type]:hover,
#flowPosDiscountQuick .button[data-type]:focus,
#flowPosChargesQuick .button[data-type]:hover,
#flowPosChargesQuick .button[data-type]:focus,
#flowPosShippingQuick .button[data-type]:hover,
#flowPosShippingQuick .button[data-type]:focus {
    filter: brightness(.96);
    transform: translateY(-1px);
}

#flowPosDiscountQuick .button[data-type][disabled],
#flowPosChargesQuick .button[data-type][disabled],
#flowPosShippingQuick .button[data-type][disabled] {
    opacity: .45;
    filter: none;
    transform: none;
    cursor: not-allowed;
}

.flow-pos-cart-pay .button {
    min-height: 2.8rem;
    border-radius: 12px;
    font-weight: 600;
}

.flow-pos-cart-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.flow-pos-cart-loader .button.is-loading {
    border: none;
    box-shadow: none;
}

.flow-pos-empty-card {
    margin-top: 8px;
    border: 1px dashed rgba(0, 0, 0, .08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: none;
}

.flow-pos-customer-picker {
    position: relative;
}

.flow-pos-customer-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.flow-pos-customer-selected-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#clienteSelectedName {
    color: var(--flow-pos-text);
}

.flow-pos-customer-results {
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    padding: 6px;
    margin-top: 8px;
    max-height: 240px;
    overflow: auto;
    border-radius: 12px;
    background: #fff;
}

.flow-pos-customer-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    text-align: left;
}

.flow-pos-customer-result-item:hover {
    background: #f6f8fa;
}

.flow-pos-customer-result-item .is-size-7 {
    line-height: 1.2;
}

.flow-pos-customer-form-section {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}

.flow-pos-customer-form-section>p {
    color: var(--flow-pos-text);
}

#flowPosCustomerCreateModal .label {
    font-size: .75rem;
    margin-bottom: .35rem;
}

#flowPosCustomerFallbackDomain {
    color: var(--flow-pos-text);
}

strong {
    color: var(--flow-pos-text) !important;
}

#flowPosCustomerShippingFields>p {
    color: var(--flow-pos-text);
}

.flow-pos-adjustment-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.flow-pos-adjustment-clear {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(107, 114, 128, .26);
    background: #fff;
    color: #6b7280;
    transition: all .2s ease;
}

.flow-pos-adjustment-clear.button.is-danger.is-light {
    border-color: rgba(107, 114, 128, .26);
    background: #fff;
    color: #6b7280;
}

.flow-pos-adjustment-clear:hover,
.flow-pos-adjustment-clear:focus {
    border-color: rgba(239, 68, 68, .35);
    color: #ef4444;
    background: #fff5f5;
}

.flow-pos-adjustment-clear.button.is-danger.is-light:hover,
.flow-pos-adjustment-clear.button.is-danger.is-light:focus {
    border-color: rgba(239, 68, 68, .35);
    color: #ef4444;
    background: #fff5f5;
}

.flow-pos-adjustment-spacer {
    width: 2rem;
    height: 2rem;
    display: inline-block;
}

.flow-pos-totals {
    margin-bottom: 0;
}

#cartTotalsTable {
    margin-bottom: 0;
}

.flow-pos-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: 10px 4px;
}

.flow-pos-summary-label {
    color: #000;
    font-weight: 500;
    letter-spacing: .01em;
}

.flow-pos-summary-value {
    min-width: 120px;
    color: #000;
}

#cartDiscountRow #cartDescuento {
    color: #0f766e;
}

#cartChargesRow #cartCargos,
#cartShippingRow #cartEnvio {
    color: #374151;
}

#cartTotal {
    font-size: 1.08rem;
    font-weight: 700;
    color: #111827;
}

.flow-pos-summary-total {
    border-top: 1px solid rgba(17, 24, 39, .14);
    border-bottom: none;
    padding-top: 12px;
}

.flow-pos-summary-total .flow-pos-summary-label {
    color: #111827;
    font-weight: 700;
}

.flow-pos-payment-modal-card {
    width: min(860px, 95vw);
}

.flow-pos-order-success-modal-card {
    width: min(980px, 95vw);
}

.flow-pos-payment-summary {
    border: 1px solid rgba(var(--primary-rgb), .28);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbef 100%);
    padding: 14px;
}

.flow-pos-payment-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.flow-pos-payment-summary-title {
    color: #111827;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
}

.flow-pos-payment-method-title {
    color: #111827;
    font-size: .78rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.flow-pos-payment-metrics {
    margin: 0;
}

.flow-pos-payment-metric {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flow-pos-payment-metric-label {
    color: #4b5563;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    margin: 0 0 4px;
}

.flow-pos-payment-metric-value {
    color: #111827;
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    word-break: break-word;
}

.flow-pos-payment-metric--active {
    border-width: 2px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}

.flow-pos-payment-metric--remaining {
    border-color: #f59e0b;
    background: #fffbeb;
}

.flow-pos-payment-metric--remaining .flow-pos-payment-metric-value {
    color: #b45309;
    font-size: clamp(1.3rem, 2.3vw, 1.95rem);
}

.flow-pos-payment-metric--change {
    border-color: #10b981;
    background: #ecfdf5;
}

.flow-pos-payment-metric--change .flow-pos-payment-metric-value {
    color: #047857;
    font-size: clamp(1.3rem, 2.3vw, 1.95rem);
}

.flow-pos-payment-status {
    margin: 10px 0 0;
    border-radius: 12px;
    padding: .7rem .85rem;
    font-weight: 700;
}

.flow-pos-payment-lines {
    display: grid;
    gap: 10px;
}

.flow-pos-payment-line {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 10px;
    background: #fff;
}

.flow-pos-payment-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.flow-pos-payment-line-title {
    margin: 0;
    color: #111827;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 700;
}

.flow-pos-payment-line .columns {
    margin-bottom: 0;
}

.flow-pos-payment-line .column {
    padding: 0.38rem;
}

.flow-pos-payment-line .label {
    color: #111827;
    font-size: .72rem;
    margin-bottom: .3rem;
}

.flow-pos-payment-line .input,
.flow-pos-payment-line .select select {
    height: 40px;
}

.flow-pos-payment-actions .button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.flow-pos-order-success-summary {
    margin-top: 12px;
    display: block;
}

.flow-pos-ticket-pdf-iframe {
    position: absolute;
    width: 1px;
    height: 1px;
    top: -9999px;
    left: -9999px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.flow-pos-order-summary-card {
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--flow-pos-border-primary-soft);
    border-radius: 16px;
    background: var(--flow-pos-surface);
    color: var(--flow-pos-text);
    overflow: hidden;
}

.flow-pos-order-summary-header {
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--flow-pos-surface) 100%);
    border-bottom: 1px solid var(--flow-pos-border-soft);
}

.flow-pos-order-summary-kicker {
    margin: 0 0 6px;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--flow-pos-text-muted);
    font-weight: 700;
}

.flow-pos-order-summary-title {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--flow-pos-text);
}

.flow-pos-order-summary-meta-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.flow-pos-order-summary-meta-item {
    border: 1px solid var(--flow-pos-border-soft);
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--flow-pos-surface);
    min-width: 0;
}

.flow-pos-order-summary-meta-label {
    display: block;
    margin: 0 0 3px;
    font-size: .72rem;
    color: var(--flow-pos-text-muted);
}

.flow-pos-order-summary-meta-value {
    display: block;
    font-size: .83rem;
    color: var(--flow-pos-text);
    line-height: 1.3;
    word-break: break-word;
}

.flow-pos-order-summary-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--flow-pos-border-soft);
}

.flow-pos-order-summary-card>.flow-pos-order-summary-section:last-child {
    border-bottom: 0;
}

.flow-pos-order-summary-section-title {
    margin: 0 0 10px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--flow-pos-text-muted);
    font-weight: 700;
}

.flow-pos-order-summary-op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 14px;
}

.flow-pos-order-summary-op-item {
    min-width: 0;
}

.flow-pos-order-summary-op-label {
    display: block;
    margin: 0 0 2px;
    font-size: .72rem;
    color: var(--flow-pos-text-muted);
}

.flow-pos-order-summary-op-value {
    display: block;
    font-size: .85rem;
    color: var(--flow-pos-text);
    line-height: 1.3;
    word-break: break-word;
}

.flow-pos-order-summary-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.flow-pos-order-summary-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.flow-pos-order-summary-table thead th {
    text-align: left;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--flow-pos-text-muted);
    font-weight: 700;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--flow-pos-border-soft);
}

.flow-pos-order-summary-table tbody td {
    vertical-align: top;
    padding: 10px 0;
    border-bottom: 1px dashed var(--flow-pos-border-soft);
    font-size: .84rem;
    color: var(--flow-pos-text);
}

.flow-pos-order-summary-table tbody tr:last-child td {
    border-bottom: 0;
}

.flow-pos-order-summary-table td.is-total {
    font-weight: 700;
    white-space: nowrap;
}

.flow-pos-order-summary-product {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.flow-pos-order-summary-thumb {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    border: 1px solid var(--flow-pos-border-soft);
    background: var(--flow-pos-surface);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--flow-pos-text-muted);
}

.flow-pos-order-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flow-pos-order-summary-product-name {
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.flow-pos-order-summary-payments {
    display: grid;
    gap: 8px;
}

.flow-pos-order-summary-payment-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--flow-pos-border-soft);
    border-radius: 10px;
    background: var(--flow-pos-surface-soft);
}

.flow-pos-order-summary-payment-main strong {
    display: block;
    font-size: .85rem;
    color: var(--flow-pos-text);
    margin: 0 0 2px;
}

.flow-pos-order-summary-payment-main span {
    font-size: .75rem;
    color: var(--flow-pos-text-muted);
}

.flow-pos-order-summary-payment-amount {
    font-size: .85rem;
    color: var(--flow-pos-text);
    white-space: nowrap;
}

.flow-pos-order-summary-totals {
    display: grid;
    gap: 6px;
}

.flow-pos-order-summary-total-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    font-size: .84rem;
    color: var(--flow-pos-text-muted);
}

.flow-pos-order-summary-total-row strong {
    color: var(--flow-pos-text);
    white-space: nowrap;
}

.flow-pos-order-summary-total-row.is-grand-total {
    margin-top: 3px;
    padding-top: 8px;
    border-top: 1px solid var(--flow-pos-border-soft);
    font-size: .95rem;
    font-weight: 700;
    color: var(--flow-pos-text);
}

.flow-pos-order-summary-empty {
    margin: 0;
    font-size: .84rem;
    color: var(--flow-pos-text-muted);
}

.flow-pos-order-success-summary.is-hidden {
    display: none;
}

.flow-pos-toast-stock {
    background: #0f4c5c;
    border: 1px solid #136f86;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 76, 92, .28);
    border-radius: 12px;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .flow-pos-product-card {
        transform: none !important;
        transition: box-shadow .2s ease !important;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #flowPosOrderSuccessModal,
    #flowPosOrderSuccessModal * {
        visibility: visible !important;
    }

    #flowPosOrderSuccessModal {
        position: static !important;
        display: block !important;
        background: #fff !important;
    }

    #flowPosOrderSuccessModal .modal-background,
    #flowPosOrderSuccessModal .modal-card-head,
    #flowPosOrderSuccessModal .modal-card-foot,
    #flowPosOrderSuccessMessage {
        display: none !important;
    }

    #flowPosOrderSuccessModal .modal-card {
        width: auto !important;
        max-width: none !important;
        box-shadow: none !important;
        border: 0 !important;
        margin: 0 !important;
    }

    #flowPosOrderSuccessModal .modal-card-body {
        padding: 0 !important;
    }

    .flow-pos-order-success-summary {
        display: block !important;
        margin: 0 !important;
    }

    .flow-pos-order-summary-card {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
}

/* MOBILE */
@media(max-width:1023px) {
    .flow-pos-brand-logo {
        height: 42px;
        max-height: 42px;
        transform: scale(1.15);
    }

    #flowPosSessionText {
        display: none !important;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }

    .bottom-bar {
        display: block;
    }

    .app-main {
        padding-bottom: 110px;
    }

    .flow-pos-payment-modal-card {
        width: min(96vw, 820px);
    }

    .flow-pos-payment-summary-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-pos-payment-method-title {
        text-align: left;
    }

    .flow-pos-payment-metric {
        min-height: 86px;
    }

    .flow-pos-payment-metric-value {
        font-size: 1.25rem;
    }

    .flow-pos-payment-metric--remaining .flow-pos-payment-metric-value,
    .flow-pos-payment-metric--change .flow-pos-payment-metric-value {
        font-size: 1.45rem;
    }

    .flow-pos-order-summary-meta-grid,
    .flow-pos-order-summary-op-grid {
        grid-template-columns: 1fr;
    }

    .flow-pos-order-summary-table {
        min-width: 0;
    }

    .flow-pos-order-summary-table thead {
        display: none;
    }

    .flow-pos-order-summary-table tbody tr {
        display: block;
        border: 1px solid var(--flow-pos-border-soft);
        border-radius: 12px;
        padding: 8px 10px;
        margin-bottom: 8px;
        background: var(--flow-pos-surface);
    }

    .flow-pos-order-summary-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px dashed var(--flow-pos-border-soft);
        padding: 7px 0;
        text-align: right;
    }

    .flow-pos-order-summary-table tbody td:last-child {
        border-bottom: 0;
    }

    .flow-pos-order-summary-table tbody td::before {
        content: attr(data-title);
        font-size: .72rem;
        font-weight: 700;
        color: var(--flow-pos-text-muted);
        text-transform: uppercase;
        letter-spacing: .05em;
        text-align: left;
    }

    .flow-pos-order-summary-table tbody td:first-child {
        display: block;
        text-align: left;
    }

    .flow-pos-order-summary-table tbody td:first-child::before {
        display: block;
        margin-bottom: 6px;
    }

    #cartActions .column {
        width: 100%;
    }
}