/* CSS for Premium PDF Generation */
.pdf-container {
    width: 210mm;
    /* A4 width */
    min-height: 297mm;
    /* A4 height */
    padding: 0;
    background: white;
    font-family: 'Heebo', sans-serif;
    color: #333;
    position: relative;
    direction: rtl;
    box-sizing: border-box;
    /* Fix spacing issues */
    letter-spacing: normal;
    word-spacing: normal;
    text-rendering: optimizeLegibility;
    font-variant-ligatures: none;
}

.pdf-header {
    background-color: #1e293b;
    /* Dark Blue */
    color: white;
    padding: 20px 40px;
    height: 120px;
    /* Fixed height for consistency */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-header-content {
    text-align: left;
    /* Logo on left or right? User code had logo on right (190, 20). In RTL layout, left is 'end'. */
}

/* In RTL, 'flex-direction: row' puts first item on right.
   If we want "MezuSmart" on the left (English logo) or right?
   User JS code: doc.text("MezuSmart", 190, 20, { align: "right" }); -> Right side.
*/

.pdf-logo-text {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.pdf-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.pdf-body {
    padding: 40px;
}

.pdf-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.pdf-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    font-size: 14px;
}

.pdf-details-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.pdf-table th {
    background-color: #f0f0f0;
    padding: 10px;
    text-align: right;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.pdf-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.pdf-total-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.pdf-total-box {
    background-color: #1e293b;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

.pdf-notes-section {
    margin-top: 40px;
    font-size: 12px;
    color: #555;
}

.pdf-hidurim-section {
    margin-top: 20px;
}

.pdf-hidurim-title {
    color: #d4af37;
    /* Gold */
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.pdf-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
    width: 100%;
}