                                                                            

                                                                                   
                                                        
.receipt-table,
.receipt-vat-table {
    min-width: 0;
}

                                                                                      
                               
#receipt-actions.receipt-screen-actions .pill-btn {
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad-card);
    border-radius: var(--radius-lg);
    font-weight: 600;
    background: var(--header-action-fill);
    color: var(--white);
}

body.receipt-print-page {
    font-family: Arial, Helvetica, sans-serif;
    padding: 20px;
    color: var(--grey-900);
    background: var(--white);
}

body.receipt-print-page .receipt-shell {
    justify-content: flex-start;
}

body.receipt-print-page .panel.receipt-panel {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
}

body.receipt-print-page.receipt-print-page--thermal {
    width: var(--receipt-paper-width, 80mm);
    max-width: var(--receipt-paper-width, 80mm);
    padding: var(--receipt-pad-top, 2.5mm) var(--receipt-pad-right, 1.5mm) var(--receipt-pad-bottom, 3.5mm) var(--receipt-pad-left, 2.5mm);
    margin: 0 auto;
    box-sizing: border-box;
}

body.receipt-print-page.receipt-print-page--thermal .receipt-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

body.receipt-print-page.receipt-print-page--thermal .panel.receipt-panel {
    width: var(--receipt-content-width, 72mm) !important;
    max-width: var(--receipt-content-width, 72mm) !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

                                                                                  
                                                                                
body.receipt-print-page.receipt-print-page--thermal .receipt-table,
body.receipt-print-page.receipt-print-page--thermal .receipt-table thead,
body.receipt-print-page.receipt-print-page--thermal .receipt-table tbody,
body.receipt-print-page.receipt-print-page--thermal .receipt-table tr {
    display: table;
    width: 100% !important;
    table-layout: fixed;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table thead {
    display: table-header-group;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table tbody {
    display: table-row-group;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table tr {
    display: table-row;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table th,
body.receipt-print-page.receipt-print-page--thermal .receipt-table td {
    display: table-cell !important;
    padding: 2px 2px !important;
                                                                                        
                                    
    font-size: 11px !important;
    line-height: 1.25 !important;
    vertical-align: top;
    word-break: break-word;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table th.receipt-col-unit,
body.receipt-print-page.receipt-print-page--thermal .receipt-table th.receipt-col-qty,
body.receipt-print-page.receipt-print-page--thermal .receipt-table th.receipt-col-amount,
body.receipt-print-page.receipt-print-page--thermal .receipt-table tbody td.receipt-cell-right {
    text-align: right !important;
    white-space: nowrap;
    width: auto !important;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table th.receipt-col-qty,
body.receipt-print-page.receipt-print-page--thermal .receipt-table tbody td:nth-child(3) {
    width: 22px !important;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-table th.receipt-col-unit,
body.receipt-print-page.receipt-print-page--thermal .receipt-table th.receipt-col-amount,
body.receipt-print-page.receipt-print-page--thermal .receipt-table tbody td:nth-child(2),
body.receipt-print-page.receipt-print-page--thermal .receipt-table tbody td:nth-child(4) {
    width: 38px !important;
}
body.receipt-print-page.receipt-print-page--thermal .receipt-desc-row {
    display: block !important;
}
@media print {
    body.receipt-print-page {
        padding: 0;
    }

    body.receipt-print-page.receipt-print-page--thermal {
        width: var(--receipt-paper-width, 80mm);
        max-width: var(--receipt-paper-width, 80mm);
        margin: 0 auto;
    }

    body.receipt-print-page.receipt-print-page--thermal .panel.receipt-panel {
        margin: 0 auto !important;
    }
}

                                                                            
.receipt-panel {
    padding-left: 8px;
    padding-right: 8px;
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.panel.receipt-panel {
    width: min(95vw, 980px) !important;
    display: inline-block !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box;
    padding: var(--space-sm);
}

.receipt-shell {
    display: flex;
    justify-content: center;
}

                                                   
.receipt-panel-reset {
    background: transparent;
    padding: 0;
    overflow: visible;
}

.receipt-empty-box {
    display: inline-block;
    padding: 16px 20px;
}

.receipt-screen-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-sm);
    margin: 8px 0 16px;
}

.receipt-screen-actions:empty {
    display: none;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
}

.receipt-business {
    flex: 1 1 50%;
    max-width: 48%;
}

.receipt-business-name {
    margin-bottom: 6px;
    font-size: 1.375rem;
    font-weight: 700;
}

.receipt-business-phone {
    margin-top: 6px;
}

.receipt-meta {
    flex: 1 1 40%;
    max-width: 48%;
    text-align: right;
}

.receipt-meta-row {
    margin-top: 6px;
}

.receipt-meta-row--spaced {
    margin-top: 8px;
}

                                                                                    
                                                                                     
.receipt-amended-note {
    font-style: italic;
    color: var(--muted-strong);
}

.receipt-duplicate-note {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 0;
    border-bottom: 1px dashed var(--ink);
    margin-bottom: 8px;
}

.receipt-items {
    margin-bottom: 10px;
    padding: 8px 0;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
}

.receipt-items--compact {
    padding-top: 6px;
}

.receipt-items-head--compact,
.receipt-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 0 10px;
    width: 100%;
}

.receipt-items-head--compact {
    padding: 0 6px 6px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    border-bottom: 1px solid #e0e0e0;
}

.receipt-items-head-unit,
.receipt-item-unit {
    text-align: right;
    white-space: nowrap;
}

.receipt-items-head-qty,
.receipt-item-qty {
    text-align: right;
    white-space: nowrap;
}

.receipt-item-row {
    padding: 5px 6px;
    border-bottom: 1px solid #f4f4f4;
}

.receipt-item-row:last-child {
    border-bottom: 0;
}

.receipt-item-name {
    min-width: 0;
    overflow-wrap: break-word;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
    padding: 6px;
    text-align: left;
}

.receipt-table thead th {
    font-size: var(--font-size-sm);
}

.receipt-table tbody td {
    border-bottom: 1px solid #f4f4f4;
}

.receipt-desc-cell {
    width: 100%;
}

.receipt-desc-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap-sm);
    width: 100%;
}

.receipt-desc-text {
    min-width: 0;
}

                                                                                      
                                                                                    
                                                                                 
.receipt-line-allergen {
    font-weight: 700;
}
@media (max-width: 900px) {
    .receipt-col-qty,
    .receipt-col-amount,
    .receipt-table tbody td:nth-child(3),
    .receipt-table tbody td:nth-child(4) {
        display: none;
    }

    .receipt-table tbody td:first-child {
        display: table-cell;
        width: auto;
    }

    .receipt-table tbody tr {
        display: table-row;
    }

    .receipt-desc-cell {
        display: table-cell;
        width: auto;
    }

    .receipt-desc-row {
        display: block;
        width: 100%;
    }

    .receipt-desc-text {
        min-width: 0;
    }

    .receipt-table .receipt-col-unit,
    .receipt-table thead th:nth-child(2),
    .receipt-table tbody td:nth-child(2) {
        display: table-cell;
        width: 86px;
        text-align: right !important;
        white-space: nowrap;
    }
}

.receipt-col-unit,
.receipt-col-qty,
.receipt-col-amount,
.receipt-cell-right {
    text-align: right !important;
}

.receipt-col-unit,
.receipt-col-amount {
    width: 120px;
}

.receipt-col-qty {
    width: 64px;
}

.receipt-empty {
    padding: 12px !important;
}

.receipt-totals {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 24px;
    margin-top: 12px;
}

.receipt-totals-card {
    width: 260px;
    font-size: var(--font-size-sm);
    text-align: right;
}

.receipt-total-block {
    margin-top: 8px;
}

.receipt-total-block:first-child {
    margin-top: 0;
}

.receipt-total-value {
    display: block;
    margin-top: 6px;
    font-weight: 700;
}

.receipt-total-block--grand .receipt-total-value {
    font-size: var(--font-size-base);
    font-weight: 800;
}

.receipt-footer {
    margin-top: 18px;
    font-size: var(--font-size-sm);
    color: var(--grey-600);
}

.receipt-company {
    margin-top: 18px;
    font-size: var(--font-size-sm);
    color: var(--grey-900);
    text-align: center;
}

                                                                                    
                                             
.receipt-vat-summary {
    margin-top: 18px;
}

.receipt-vat-summary-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.receipt-vat-table {
    border-collapse: collapse;
    margin-top: 4px;
    font-size: var(--font-size-sm);
}

.receipt-vat-table th,
.receipt-vat-table td {
    padding: 2px 0 2px 20px;
    text-align: right;
}

.receipt-vat-table th:first-child,
.receipt-vat-table td:first-child {
    padding-left: 0;
    text-align: left;
}

.receipt-vat-table thead th {
    font-weight: 600;
    color: var(--muted-strong);
}

@media (max-width: 599px) {
    .receipt-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .receipt-business-name {
        font-size: 1.85rem;
        font-weight: 700;
    }

    .receipt-business,
    .receipt-meta {
        max-width: 100%;
    }

    .receipt-meta {
        text-align: left;
    }

    .receipt-meta-row {
        font-size: 1.02rem;
    }

    .receipt-meta-row strong {
        font-weight: 700;
    }

    .receipt-table thead th:first-child {
        font-size: 1.05rem;
        font-weight: 700;
    }

    .receipt-table thead th {
        font-size: 0.88rem;
    }

    .receipt-col-qty,
    .receipt-col-amount,
    .receipt-table tbody td:nth-child(3),
    .receipt-table tbody td:nth-child(4) {
        display: none;
    }

    .receipt-table tbody tr {
        display: table-row;
    }

    .receipt-table tbody td:first-child {
        font-size: 0.9rem;
        line-height: 1.2;
        display: table-cell;
        width: auto;
    }

    .receipt-desc-cell {
        display: table-cell;
        width: auto;
    }

    .receipt-desc-row {
        display: block;
    }

    .receipt-table tbody td {
        font-size: 0.78rem;
        padding: 5px 4px;
        vertical-align: top;
    }

    .receipt-table .receipt-col-unit,
    .receipt-table thead th:nth-child(2),
    .receipt-table tbody td:nth-child(2) {
        display: table-cell;
        width: 86px;
        text-align: right !important;
        white-space: nowrap;
    }

    .receipt-table tbody td:last-child,
    .receipt-table thead th:last-child {
        text-align: right;
    }

    .receipt-totals {
        justify-content: stretch;
    }

    .receipt-totals-card {
        width: 100%;
        font-size: 1.08rem;
    }

    .receipt-total-block {
        font-size: 1.08rem;
    }

    .receipt-total-value {
        font-size: 1.26rem;
    }

    .receipt-total-block--grand .receipt-total-value {
        font-size: 1.42rem;
    }

    .receipt-meta-row:last-child,
    .receipt-meta-row:nth-child(1),
    .receipt-meta-row:nth-child(2),
    .receipt-meta-row:nth-child(3) {
        font-family: inherit;
    }
}
