@media print {
    body {
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    #app-root {
        display: none;
    }

    #print-layout {
        display: block;
        padding: 40px 48px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
        font-size: 14px;
        color: #111827;
        line-height: 1.5;
        min-height: 100vh;
        box-sizing: border-box;
    }
}

@media screen {
    #print-layout {
        display: none;
    }
}

.print-invoice {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.print-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.print-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.print-header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.print-header-company {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.print-header-right {
    text-align: right;
    font-size: 13px;
}

.print-header-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 26px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.print-section-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.print-section {
    flex: 1;
    font-size: 15px;
}

.print-section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.print-section-body {
    white-space: pre-line;
}

.print-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 24px;
    table-layout: fixed;
}

.print-items-table th,
.print-items-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.print-items-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: left;
}

.print-items-table th:last-child,
.print-items-table td:last-child {
    text-align: right;
}

.print-items-table th:nth-child(1),
.print-items-table td:nth-child(1) {
    width: 58%;
}

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

.print-items-table th:nth-child(3),
.print-items-table td:nth-child(3) {
    width: 16%;
}

.print-items-table th:nth-child(4),
.print-items-table td:nth-child(4) {
    width: 16%;
}

.print-summary {
    margin-left: auto;
    max-width: 260px;
    font-size: 15px;
    margin-bottom: 32px;
}

.print-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.print-summary-row span:first-child {
    color: #4b5563;
}

.print-summary-row.is-total {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
}

.print-notes-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.print-notes-body {
    font-size: 13px;
    white-space: pre-line;
}

.print-summary {
    margin-top: auto;
}
