#xml-invoice-app {
    font-family: 'Times New Roman', Times, serif;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    background: transparent;
}

#xml-invoice-app .upload-section {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

#xml-invoice-app .upload-section input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 4px;
}

#xml-invoice-app .invoice-wrapper {
    background-color: white;
    width: 800px;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border: 1px solid #1a5276;
    background-image: 
        repeating-linear-gradient(45deg, rgba(26, 82, 118, 0.1) 25%, transparent 25%, transparent 75%, rgba(26, 82, 118, 0.1) 75%, rgba(26, 82, 118, 0.1)),
        repeating-linear-gradient(45deg, rgba(26, 82, 118, 0.1) 25%, white 25%, white 75%, rgba(26, 82, 118, 0.1) 75%, rgba(26, 82, 118, 0.1));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    display: none; /* Hidden by default until file is loaded */
}

#xml-invoice-app .invoice-inner-border {
    border: 2px solid #1a5276;
    background-color: white;
    padding: 10px;
    margin: 20px;
}

#xml-invoice-app .invoice-content {
    border: 2px solid #1a5276;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#xml-invoice-app .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

#xml-invoice-app .logo-area {
    width: 25%;
    font-weight: bold;
    font-size: 16px;
    color: #1a5276;
    font-family: Arial, sans-serif;
}

#xml-invoice-app .title-area {
    width: 50%;
    text-align: center;
    color: #1a5276;
}
#xml-invoice-app .title-area h2 {
    margin: 0;
    font-size: 22px;
    text-transform: uppercase;
    color: #1a5276;
    padding: 0;
    border: none;
    line-height: 1.2;
}
#xml-invoice-app .title-area p { margin: 5px 0 0 0; font-size: 14px; font-style: italic; }
#xml-invoice-app .date-area { margin-top: 5px; font-style: italic; font-size: 14px; }

#xml-invoice-app .info-area {
    width: 25%;
    font-size: 13px;
    color: #1a5276;
    text-align: right;
    line-height: 1.5;
}

#xml-invoice-app .info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 10px;
    color: #1a5276;
    border: none;
}
#xml-invoice-app .info-table td { padding: 3px 0; vertical-align: top; border: none; }
#xml-invoice-app .info-table td:first-child { width: 160px; font-style: italic; }
#xml-invoice-app .info-table td.bold-text { font-weight: bold; font-style: normal; }

#xml-invoice-app .divider {
    border-top: 1px solid #1a5276;
    margin: 5px 0;
}

#xml-invoice-app .items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0px;
    font-size: 13px;
    color: #1a5276;
}
#xml-invoice-app .items-table th, 
#xml-invoice-app .items-table td {
    border: 1px solid #1a5276;
    padding: 5px;
    text-align: center;
}
#xml-invoice-app .items-table th { background-color: #ebf5fb; font-style: italic; color: #1a5276; }
#xml-invoice-app .items-table td.text-left { text-align: left; }
#xml-invoice-app .items-table td.text-right { text-align: right; }
#xml-invoice-app .items-table th span { display: block; font-size: 11px; font-weight: normal; }

#xml-invoice-app .footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    color: #1a5276;
    font-weight: bold;
    padding: 0 40px;
    height: 120px;
}
#xml-invoice-app .footer div span { display: block; font-weight: normal; font-style: italic; font-size: 13px; margin-top: 5px; }

#xml-invoice-app .bottom-note {
    text-align: center;
    color: #1a5276;
    font-size: 12px;
    font-style: italic;
    margin-top: 20px;
    border-top: 1px solid #1a5276;
    padding-top: 5px;
}

#xml-invoice-app .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 60px;
    color: rgba(26, 82, 118, 0.05);
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

#xml-invoice-app .z-index-1 { position: relative; z-index: 1; }

@media print {
    body * {
        visibility: hidden;
    }
    #xml-invoice-app, #xml-invoice-app * {
        visibility: visible;
    }
    #xml-invoice-app {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 0;
    }
    #xml-invoice-app .upload-section { display: none; }
    #xml-invoice-app .invoice-wrapper { box-shadow: none; width: 100%; border: none; background: none; }
    #xml-invoice-app .invoice-inner-border { margin: 0; }
}
