@import url('../../primary-iran-yekan.css');


:root {
    --receipt-width: 65mm;
    --muted: #111;
    --border-dash: 1px dashed rgba(0,0,0,0.2);
    --font-stack: "primary-font";
}

body {
    background: #fff;
    display: flex;
    justify-content: center;
    font-family: var(--font-stack);
    padding: 10px;
    margin: 0;
}

div {
    overflow-wrap: break-word;
}

.receipt {
    width: var(--receipt-width);
    background: #fff;
    padding: var(--padding);
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
    border: 1px solid rgba(0,0,0,0.20);
}


.small {
    font-size: 12px;
    color: var(--muted);
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
}
.header div {
    font-size: 11px;
    flex-direction: row;
}

.customer {
    display: flex;
    flex-direction: row;
    gap: 8px;
    border: 1px solid black;
    padding: 0px 5px;
    border-bottom: none;
}
.customer .info {
    margin: 12px 0;
    font-size: 11px;
    display: flex;
    flex-direction: row;
}
.customer .info div {
    margin: 0 5px;
}

.striped {
    align-self: center;
    margin-left: 15px;
}


.items {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid black;
    margin-bottom: 8px;
}
.items thead {
    background-color:gray;
}
.items th, .items td {
    padding: 5px 0;
    font-size: 12px;
    border: 1px solid black;
}
.items td {
    text-align: center;
    overflow-wrap: break-word;
}
.items thead th {
    font-size: 12px;
    color: black;
}

.items td:nth-child(1) {
    width: 60%;
    max-width: 60%;
    text-align: right;
    padding: 2px;
}

.items td:nth-child(2),
.items th:nth-child(2) {
    width: 10%;
    max-width: 10%;
    text-align: center;
    padding: 2px;
}

.items td:nth-child(3),
.items th:nth-child(3) {
    width: 30%;
    max-width: 30%;
    text-align: center;
    padding: 2px;
}



.separator {
    border-top: 1px dashed rgba(0,0,0,0.2);
    margin: 8px 0;
}


.totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.totals .line {
    display: flex;
    justify-content: space-between
}
.totals .grand {
    font-weight: 700;
    font-size: 16px;
}
.title {
    padding: 5px 0;
}
.cost {
    background-color: #111;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}


.description {
    margin-top: 10mm;
    margin-bottom: 10mm;
}

strong {
    font-size: 14px;
}
.description, .items, .info, .header {
    font-weight: 600;
}


@page {
    size: 65mm auto;
    margin:0;
}
