/* ═══ POS Bill Receipt — 7 print layouts ═══ */

.pos-receipt-print-zone {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.pos-receipt {
    box-sizing: border-box;
    color: #1a1a1a;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    background: #fff;
}

.pos-receipt * {
    box-sizing: border-box;
}

.pos-receipt-header {
    text-align: center;
    margin-bottom: 10px;
}

.pos-receipt-brand {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 2px;
    letter-spacing: 0.02em;
}

.pos-receipt-tagline {
    margin: 0;
    font-size: 11px;
    opacity: 0.75;
}

.pos-receipt-meta {
    margin: 10px 0;
    font-size: 11px;
}

.pos-receipt-meta-row,
.pos-receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 4px;
    text-align: left;
}

.pos-receipt-meta-row > span:first-child,
.pos-receipt-total-row > span:first-child {
    flex: 1 1 auto;
    text-align: left;
    color: #475569;
}

.pos-receipt-meta-row > strong,
.pos-receipt-total-row > span:last-child,
.pos-receipt-meta-row > span:last-child {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.pos-receipt-divider {
    border: none;
    border-top: 1px dashed #bbb;
    margin: 8px 0;
}

.pos-receipt-divider-solid {
    border-top-style: solid;
}

.pos-receipt-items {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 11px;
    table-layout: fixed;
}

.pos-receipt-items th,
.pos-receipt-items td {
    padding: 6px 4px;
    text-align: left;
    vertical-align: top;
}

.pos-receipt-items th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #ccc;
}

.pos-receipt-items td.num,
.pos-receipt-items th.num {
    text-align: right;
    white-space: nowrap;
}

.pos-receipt-item-line {
    display: block;
    line-height: 1.35;
}

.pos-receipt-item-line + .pos-receipt-item-line {
    margin-top: 2px;
}

.pos-receipt-item-name,
.pos-receipt-item-line > strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.pos-receipt-item-meta {
    font-size: 9px;
    font-weight: 400;
    color: #475569;
    line-height: 1.3;
}

.pos-receipt-items--detailed col,
.pos-receipt-items--detailed {
    table-layout: fixed;
}

.pos-receipt-items--detailed th:nth-child(1),
.pos-receipt-items--detailed td:nth-child(1) {
    width: 4%;
}

.pos-receipt-items--detailed th:nth-child(2),
.pos-receipt-items--detailed td:nth-child(2) {
    width: 28%;
}

.pos-receipt-col-sku,
.pos-receipt-col-hsn,
.pos-receipt-col-size,
.pos-receipt-items--detailed th:nth-child(3),
.pos-receipt-items--detailed td:nth-child(3),
.pos-receipt-items--detailed th:nth-child(4),
.pos-receipt-items--detailed td:nth-child(4),
.pos-receipt-items--detailed th:nth-child(5),
.pos-receipt-items--detailed td:nth-child(5) {
    font-size: 9px;
    word-break: break-word;
    white-space: normal;
    vertical-align: top;
}

.pos-receipt-items--detailed th:nth-child(3),
.pos-receipt-items--detailed td:nth-child(3) {
    width: 14%;
}

.pos-receipt-items--detailed th:nth-child(4),
.pos-receipt-items--detailed td:nth-child(4) {
    width: 8%;
}

.pos-receipt-items--detailed th:nth-child(5),
.pos-receipt-items--detailed td:nth-child(5) {
    width: 8%;
}

.pos-receipt-items--thermal .pos-receipt-item-meta {
    font-size: 8px;
}

.pos-receipt-totals {
    margin-top: 8px;
    font-size: 11px;
}

.pos-receipt-grand {
    font-size: 14px;
    font-weight: 800;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 2px solid #333;
}

.pos-receipt-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    opacity: 0.8;
}

.pos-receipt-gst-block {
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    font-size: 11px;
    background: #f8fafc;
}

.pos-receipt-gst-block .pos-receipt-meta-row {
    margin-bottom: 5px;
}

.pos-receipt-gst-block .pos-receipt-meta-row:last-child {
    margin-bottom: 0;
}

/* Legacy tax table (if any) — same left/right alignment */
.pos-receipt-tax-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
    margin-top: 6px;
}

.pos-receipt-tax-table th,
.pos-receipt-tax-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    text-align: left;
}

.pos-receipt-tax-table th:not(:first-child),
.pos-receipt-tax-table td:not(:first-child) {
    text-align: right;
}

.pos-receipt--detailed .pos-receipt-items th {
    display: table-cell;
}

/* Shared A4-compatible canvas for every style except thermal */
.pos-receipt:not([data-receipt-type="thermal-80"]) {
    width: 100%;
    max-width: 190mm;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

/* ─── 1. Classic Boutique ─── */
.pos-receipt[data-receipt-type="classic-boutique"] {
    width: 100%;
    max-width: 190mm;
    padding: 18px 20px;
    border: 2px dashed var(--pos-maroon-light);
}

.pos-receipt[data-receipt-type="classic-boutique"] .pos-receipt-header {
    background: linear-gradient(90deg, var(--pos-maroon), var(--pos-maroon-light));
    color: #fff;
    margin: -18px -20px 12px;
    padding: 14px 16px;
    border-radius: 0;
    text-align: center;
}

.pos-receipt[data-receipt-type="classic-boutique"] .pos-receipt-tagline {
    color: rgba(255, 255, 255, 0.85);
}

.pos-receipt[data-receipt-type="classic-boutique"] .pos-receipt-brand {
    color: #fff;
}

.pos-receipt[data-receipt-type="classic-boutique"] .pos-receipt-items th {
    color: var(--pos-maroon);
    background: #fce4ef;
}

.pos-receipt[data-receipt-type="classic-boutique"] .pos-receipt-grand {
    color: var(--pos-maroon);
    border-color: var(--pos-pink);
}

/* ─── 2. Thermal 80mm (narrow slip only) ─── */
.pos-receipt[data-receipt-type="thermal-80"] {
    width: 80mm;
    max-width: 80mm;
    padding: 10px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    margin-left: auto;
    margin-right: auto;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-brand {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-divider {
    border-top-style: dotted;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-items th {
    display: table-cell;
    font-size: 9px;
    padding: 2px 1px;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-items td {
    padding: 2px 1px;
    border-bottom: 1px dotted #ddd;
    font-size: 10px;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-item-line {
    display: block;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-item-name,
.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-item-line > strong {
    font-size: 9px;
    font-weight: 600;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-item-meta {
    font-size: 8px;
}

.pos-receipt[data-receipt-type="thermal-80"] .pos-receipt-grand {
    font-size: 13px;
    border-top: 1px dashed #000;
}

/* ─── 3. GST Detailed ─── */
.pos-receipt[data-receipt-type="gst-detailed"] {
    width: 100%;
    max-width: 190mm;
    padding: 18px 20px;
    border: 1px solid #333;
}

.pos-receipt[data-receipt-type="gst-detailed"] .pos-receipt-brand {
    font-size: 16px;
    text-transform: uppercase;
}

.pos-receipt[data-receipt-type="gst-detailed"] .pos-receipt-gst-block {
    background: #f8fafc;
}

.pos-receipt[data-receipt-type="gst-detailed"] .pos-receipt-items th {
    background: #f1f5f9;
    border-bottom: 2px solid #334155;
}

/* ─── 4. Luxury Gold ─── */
.pos-receipt[data-receipt-type="luxury-gold"] {
    width: 100%;
    max-width: 190mm;
    padding: 22px 24px;
    border: 3px double #c9a227;
    background: linear-gradient(180deg, #fffef9 0%, #faf6eb 100%);
    font-family: Georgia, 'Times New Roman', serif;
}

.pos-receipt[data-receipt-type="luxury-gold"] .pos-receipt-brand {
    font-size: 20px;
    color: #4a1942;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pos-receipt[data-receipt-type="luxury-gold"] .pos-receipt-tagline {
    color: #8b7355;
    font-style: italic;
}

.pos-receipt[data-receipt-type="luxury-gold"] .pos-receipt-divider {
    border-top: 1px solid #c9a227;
}

.pos-receipt[data-receipt-type="luxury-gold"] .pos-receipt-items th {
    color: #4a1942;
    border-bottom: 1px solid #c9a227;
}

.pos-receipt[data-receipt-type="luxury-gold"] .pos-receipt-grand {
    color: #4a1942;
    border-top: 2px double #c9a227;
}

/* ─── 5. Compact Detailed (A4 width, denser type) ─── */
.pos-receipt[data-receipt-type="compact-slip"] {
    width: 100%;
    max-width: 190mm;
    padding: 14px 16px;
    font-size: 11px;
}

.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-brand {
    font-size: 13px;
}

.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-meta,
.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-totals {
    font-size: 10px;
}

.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-items {
    font-size: 10px;
}

.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-items th,
.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-items td {
    display: table-cell;
}

.pos-receipt[data-receipt-type="compact-slip"] .pos-receipt-grand {
    font-size: 12px;
    border-top: 1px solid #000;
}

.pos-receipt-doc-type {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.pos-receipt-address {
    margin: 6px 0 0;
    font-size: 10px;
    opacity: 0.8;
}

.pos-receipt-contact,
.pos-receipt-hours {
    margin: 4px 0 0;
    font-size: 9px;
    opacity: 0.75;
    line-height: 1.35;
}

.pos-receipt-shop-meta {
    margin-bottom: 6px;
}

/* ─── 6. A4 Formal ─── */
.pos-receipt[data-receipt-type="a4-formal"] {
    width: 100%;
    max-width: 190mm;
    padding: 22px 24px;
    border: 1px solid #cbd5e1;
    font-size: 11px;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-header-formal {
    text-align: left;
    border-bottom: 2px solid #334155;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-brand {
    font-size: 17px;
    text-transform: uppercase;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-meta {
    display: block;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-items th {
    background: #334155;
    color: #fff;
    border-bottom: none;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-items td {
    border-bottom: 1px solid #e2e8f0;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-item-name,
.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-item-line > strong {
    font-size: 10px;
    font-weight: 600;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-item-meta {
    font-size: 9px;
    color: #64748b;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-col-sku,
.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-col-hsn,
.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-col-size {
    font-size: 9.5px;
    color: #334155;
}

.pos-receipt[data-receipt-type="a4-formal"] .pos-receipt-grand {
    border-top: 2px solid #334155;
    color: #334155;
}

/* ─── 7. Floral Pink ─── */
.pos-receipt[data-receipt-type="floral-pink"] {
    width: 100%;
    max-width: 190mm;
    padding: 18px 20px;
    border: 2px solid var(--pos-pink);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff8fb 0%, #fff 40%);
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-header-floral {
    text-align: center;
    padding-bottom: 8px;
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-floral-ornament {
    display: block;
    font-size: 11px;
    color: var(--pos-pink);
    letter-spacing: 0.3em;
    margin-bottom: 4px;
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-brand {
    color: var(--pos-maroon);
    font-size: 19px;
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-tagline {
    color: #c2185b;
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-divider {
    border-top-color: #f8bbd0;
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-items th {
    color: var(--pos-maroon);
    background: #fce4ef;
    border-bottom: 1px solid #f48fb1;
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-grand {
    color: #ad1457;
    border-top: 2px solid var(--pos-pink);
}

.pos-receipt[data-receipt-type="floral-pink"] .pos-receipt-footer {
    color: #880e4f;
}

/* Receipt picker on POS */
.pos-receipt-picker {
    margin-bottom: 14px;
}

.pos-receipt-picker-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: start;
}

.pos-receipt-picker-main {
    min-width: 0;
}

.pos-receipt-picker-head {
    margin-bottom: 10px;
}

.pos-receipt-picker-title {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pos-maroon);
}

.pos-receipt-picker-note {
    margin: 0;
    font-size: 0.72rem;
    color: var(--pos-muted);
}

.pos-receipt-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.pos-receipt-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 2px solid var(--pos-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    appearance: none;
    font: inherit;
    color: inherit;
}

.pos-receipt-card:hover {
    border-color: var(--pos-pink);
    transform: translateY(-1px);
}

.pos-receipt-card.is-active {
    border-color: var(--pos-pink);
    background: var(--pos-pink-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos-pink) 18%, transparent);
}

.pos-receipt-card-mock {
    display: grid;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 8px;
    background: #fafafa;
    min-height: 52px;
}

.pos-receipt-mock-line {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #ddd;
}

.pos-receipt-mock-line--title {
    height: 6px;
    width: 70%;
    margin: 0 auto 2px;
}

.pos-receipt-mock-line--short {
    width: 55%;
    margin: 0 auto;
}

.pos-receipt-mock-line--total {
    width: 40%;
    margin: 2px auto 0;
    height: 5px;
}

.mock-classic {
    background: linear-gradient(180deg, var(--pos-maroon) 0%, var(--pos-maroon) 14px, #fff 14px);
}

.mock-classic .pos-receipt-mock-line { background: #e8b4cb; }

.mock-thermal {
    background: #fff;
    border: 1px dashed #999;
    font-family: monospace;
}

.mock-thermal .pos-receipt-mock-line {
    background: #bbb;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.mock-gst {
    background: #fff;
    border: 1px solid #334155;
}

.mock-gst .pos-receipt-mock-line--title { background: #334155; }

.mock-luxury {
    background: linear-gradient(180deg, #faf6eb, #fffef9);
    border: 2px double #c9a227;
}

.mock-luxury .pos-receipt-mock-line { background: #c9a227; opacity: 0.5; }

.mock-compact {
    background: #fff;
}

.mock-compact .pos-receipt-mock-line { height: 3px; }

.mock-a4 {
    background: #fff;
    border: 1px solid #cbd5e1;
}

.mock-a4 .pos-receipt-mock-line--title {
    background: #334155;
    width: 85%;
    margin-left: 0;
}

.mock-floral {
    background: linear-gradient(180deg, #fff8fb, #fff);
    border: 2px solid var(--pos-pink);
    border-radius: 8px;
}

.mock-floral .pos-receipt-mock-line { background: #f48fb1; }

.pos-receipt-card-copy {
    display: grid;
    gap: 2px;
}

.pos-receipt-card-copy strong {
    font-size: 0.72rem;
    color: var(--pos-maroon);
    line-height: 1.2;
}

.pos-receipt-card-copy strong i {
    margin-right: 4px;
    opacity: 0.85;
}

.pos-receipt-card-copy small {
    font-size: 0.64rem;
    color: var(--pos-muted);
    line-height: 1.25;
}

.pos-receipt-preview-head__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pos-receipt-preview-wrap {
    margin-top: 0;
    border: 1px solid var(--pos-border);
    border-radius: 12px;
    overflow: hidden;
    background: #faf7f9;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.pos-receipt-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--pos-card);
    border-bottom: 1px solid var(--pos-border);
    font-size: 0.72rem;
    color: var(--pos-muted);
    flex-shrink: 0;
}

.pos-receipt-preview-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff3e0;
    color: #e65100;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pos-receipt-preview-head strong {
    color: var(--pos-maroon);
    font-size: 0.78rem;
}

.pos-receipt-preview-stage {
    position: relative;
    flex: 1;
    min-height: 320px;
    max-height: 420px;
    overflow: auto;
    padding: 12px;
    background: linear-gradient(180deg, #f3edf1 0%, #faf7f9 100%);
}

.pos-receipt-preview-zoom {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding-bottom: 12px;
}

.pos-receipt-preview-inner {
    flex-shrink: 0;
    width: max-content;
    max-width: 100%;
    box-shadow: 0 10px 28px rgba(107, 21, 53, 0.14);
}

.pos-receipt-preview-stage .pos-receipt-preview-inner {
    zoom: 0.78;
}

@supports not (zoom: 1) {
    .pos-receipt-preview-stage .pos-receipt-preview-inner {
        transform: scale(0.78);
        transform-origin: top center;
    }
}

.pos-receipt-preview-empty {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 16px;
    text-align: center;
    font-size: 0.76rem;
    color: var(--pos-muted);
    background: rgba(250, 247, 249, 0.92);
}

.pos-receipt-preview-empty[hidden] {
    display: none !important;
}

.pos-receipt-selected-hint {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--pos-muted);
}

.pos-receipt-selected-hint strong {
    color: var(--pos-maroon);
}

@media (max-width: 1024px) {
    .pos-receipt-picker-layout {
        grid-template-columns: 1fr;
    }

    .pos-receipt-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .pos-receipt-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Receipt picker buttons (legacy top strip only) */
.pos-receipt-btn:not(.pos-receipt-card):not(.pos-receipt-format-tile) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid var(--pos-border);
    border-radius: 999px;
    background: var(--pos-card);
    color: var(--pos-text);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-receipt-btn:not(.pos-receipt-card):not(.pos-receipt-format-tile):hover {
    border-color: var(--pos-pink);
}

.pos-receipt-btn:not(.pos-receipt-card):not(.pos-receipt-format-tile).is-active {
    border-color: var(--pos-pink);
    background: var(--pos-pink-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos-pink) 20%, transparent);
}

.gc-receipt-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: var(--pos-card);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
}

.gc-theme-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 24px;
    background: var(--pos-card);
    border-bottom: 1px solid var(--pos-border);
}

.gc-theme-strip--compact {
    padding: 10px 16px;
    border-bottom: none;
    gap: 10px;
    margin: 0 16px 8px;
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
}

@media (max-width: 768px) {
    .gc-theme-strip--compact {
        margin: 0 0 8px;
        padding: 10px 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.gc-theme-strip--compact .pos-theme-bar-label {
    margin-right: 0;
}

.gc-theme-dot {
    padding: 6px !important;
    border-radius: 50% !important;
    min-width: 0;
}

.gc-theme-dot span:not(.pos-theme-swatch) {
    display: none;
}

@media print {
    body.pos-printing-receipt * {
        visibility: hidden !important;
    }

    body.pos-printing-receipt .pos-receipt-print-zone,
    body.pos-printing-receipt .pos-receipt-print-zone * {
        visibility: visible !important;
    }

    body.pos-printing-receipt .pos-receipt-print-zone {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: flex !important;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    body.pos-printing-receipt .pos-receipt {
        margin: 0 auto;
    }

    .gc-theme-strip,
    .gc-receipt-strip,
    .pos-theme-bar,
    .pos-receipt-picker,
    .pos-receipt-selected-hint {
        display: none !important;
    }
}

/* ═══ Billing document print page (/billing/record/{id}/print) ═══ */
@page {
    margin: 10mm;
}

@page thermal-receipt {
    size: 80mm auto;
    margin: 2mm;
}

@page a4-receipt {
    size: A4 portrait;
    margin: 12mm;
}

.billing-print-page .billing-print-shell {
    align-items: flex-start;
}

.billing-print-page .billing-print-stage {
    overflow: hidden;
}

.billing-print-page .pos-receipt[data-receipt-type="thermal-80"] {
    width: 72mm;
    max-width: 72mm;
}

.billing-print-page .pos-receipt:not([data-receipt-type="thermal-80"]) {
    width: 100%;
    max-width: 190mm;
}

.billing-print-page .pos-receipt[data-receipt-type="a4-formal"] {
    width: 100%;
    max-width: 190mm;
}

@media print {
    .no-print,
    .billing-print-toolbar {
        display: none !important;
    }

    body.billing-print-page {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .billing-print-shell {
        display: block !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    .billing-print-stage {
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 auto !important;
    }

    .billing-print-page .pos-receipt {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .billing-print-page .pos-receipt[data-receipt-type="thermal-80"],
    .billing-print-page .billing-print-stage--thermal-80 .pos-receipt {
        page: thermal-receipt;
        width: 76mm !important;
        max-width: 76mm !important;
        margin: 0 auto !important;
        padding: 4mm 3mm !important;
    }

    .billing-print-page .pos-receipt:not([data-receipt-type="thermal-80"]),
    .billing-print-page .billing-print-stage:not(.billing-print-stage--thermal-80) .pos-receipt:not([data-receipt-type="thermal-80"]) {
        page: a4-receipt;
        width: 100% !important;
        max-width: none !important;
        min-height: auto;
        margin: 0 auto !important;
    }

    .billing-print-page .pos-receipt[data-receipt-type="a4-formal"],
    .billing-print-page .billing-print-stage--a4-formal .pos-receipt {
        page: a4-receipt;
        width: 100% !important;
        max-width: none !important;
        min-height: auto;
        border: none !important;
        padding: 0 !important;
    }

    .billing-print-page .pos-receipt[data-receipt-type="classic-boutique"] .pos-receipt-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .billing-print-page .pos-receipt-items {
        width: 100%;
    }

    .billing-print-page .pos-receipt-items th,
    .billing-print-page .pos-receipt-items td {
        padding: 5px 4px;
    }

    .billing-print-page .pos-receipt-item-name,
    .billing-print-page .pos-receipt-item-line > strong {
        font-size: 9.5px !important;
        font-weight: 600 !important;
    }

    .billing-print-page .pos-receipt-item-meta {
        font-size: 8.5px !important;
    }

    .billing-print-page .pos-receipt-items--detailed .pos-receipt-col-sku,
    .billing-print-page .pos-receipt-items--detailed .pos-receipt-col-hsn,
    .billing-print-page .pos-receipt-items--detailed .pos-receipt-col-size {
        font-size: 8.5px !important;
    }

    .billing-print-page .pos-receipt-meta-row,
    .billing-print-page .pos-receipt-total-row,
    .billing-print-page .pos-receipt-gst-block .pos-receipt-meta-row {
        justify-content: space-between;
        text-align: left;
    }

    .billing-print-page .pos-receipt-items th.num,
    .billing-print-page .pos-receipt-items td.num {
        text-align: right;
    }
}
