/* Receipt styles - extracted from print.html (80mm thermal) */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 20px;
    background: #f2f2f2;
    font-family: "Arial", sans-serif;
    color: #111;
}

.receipt {
    width: 80mm;
    max-width: 80mm;
    margin: auto;
    background: #fff;
    padding: 5mm 4mm;
    box-shadow: 0 0 12px rgba(0,0,0,0.12);
}

.center { text-align: center; }

.logo {
    width: 55px;
    height: 55px;
    margin: 0 auto 6px;
    border: 3px solid #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-weight: bold;
}

.shop-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.shop-subtitle {
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}

.address {
    font-size: 9.5px;
    line-height: 1.4;
    margin-top: 5px;
}

.contact {
    font-size: 9px;
    margin-top: 2px;
}

.divider {
    border-top: 1px dashed #222;
    margin: 9px 0;
}

.receipt-title {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
}

.info {
    width: 100%;
    font-size: 9.5px;
    line-height: 1.7;
}

.info td {
    padding: 0;
    vertical-align: top;
}

.info .label {
    font-weight: bold;
    width: 20%;
}

.info .value {
    width: 30%;
}

.items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 7px;
    font-size: 9.5px;
}

.items th {
    background: #111;
    color: white;
    padding: 6px 3px;
    font-size: 9px;
}

.items td {
    padding: 5px 2px;
    vertical-align: top;
}

.items .item {
    text-align: left;
    width: 47%;
}

.items .qty {
    text-align: center;
    width: 12%;
}

.items .price {
    text-align: right;
    width: 20%;
}

.items .amount {
    text-align: right;
    width: 21%;
}

.summary {
    width: 100%;
    font-size: 10px;
    margin-top: 5px;
}

.summary td { padding: 3px 0; }

.summary .label { text-align: left; }
.summary .amount { text-align: right; }

.total-row {
    font-size: 15px;
    font-weight: 900;
    border-top: 1px dashed #111;
    border-bottom: 1px dashed #111;
}

.total-row td { padding: 7px 0; }

.payment {
    width: 100%;
    font-size: 10px;
    margin-top: 6px;
}

.payment td { padding: 3px 0; }
.payment .right { text-align: right; }

.thank-you {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-top: 12px;
}

.features {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin: 12px 0;
    font-size: 8px;
    font-weight: bold;
}

.feature {
    width: 33%;
    border-right: 1px solid #222;
    padding: 3px;
}

.feature:last-child { border-right: none; }

.feature-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 3px;
}

.barcode {
    text-align: center;
    margin-top: 12px;
}

.barcode-svg {
    display: block;
    width: 85%;
    margin: auto;
}

.barcode-number {
    font-size: 9px;
    letter-spacing: 1px;
    margin-top: 5px;
}

.footer {
    text-align: center;
    font-size: 8px;
    line-height: 1.5;
    margin-top: 9px;
}

@media print {
    @page {
        size: 80mm auto;
        margin: 0;
    }
    body {
        padding: 0;
        margin: 0;
        background: #fff;
    }
    .receipt {
        width: 80mm;
        max-width: 80mm;
        box-shadow: none;
        margin: 0;
        padding: 4mm;
    }
}
