/* Main container */
.invoice-container {
    background: #fff;
    color: #222;
    margin: 20px auto;
    max-width: 900px;
   
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    padding: 0;
}
.invoice-container th {
    background: #ffffff;
    font-weight: bold;
    text-align: center;
    color: black!important;
    font-weight: 1000;
}




/* Header and client details */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 18px 0 18px;
	font-family: Lato; 
	font-size:16px;
}

.invoice-header > div:first-child {
    flex: 2;
}

.invoice-header > div:last-child {
    flex: 1;
    padding: 12px 16px;
    margin-left: 18px;
    min-width: 260px;
}

.invoice-header img {
    max-height: 40px;
    margin-bottom: 8px;
}

.invoice-header h2 {
    margin: 0 0 8px 0;
    font-size: 2em;
    font-weight: bold;
}

.invoice-header p {
    margin: 2px 0;
    font-size: 15px;
}

#client_details h3 {
    margin-top: 0;
    font-size: 1.1em;
    font-weight: bold;
}

#client_details p {
    margin: 3px 0;
    font-size: 14px;
}

/* Subject & Kind Attention */
.subject-row, .kind-attention-row {
   
    background: #fff;
    border: none;
    padding: 6px 18px 0 18px;
    font-family: Lato; 
	font-size:16px;
}

.subject-row {
    margin-top: 10px;
	background-color: #ffffff !important;
}

.kind-attention-row {
    margin-bottom: 10px;
	background-color: #ffffff !important;
}

/* Table styling */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid #222;
    padding: 0px 8px !important;
    text-align: left;
    vertical-align: middle;
}

.invoice-table th {
    background: #eaeaea;
    font-weight: bold;
    text-align: center;
}

.invoice-table td {
    background: #fff;
}

.invoice-table tfoot td {
    font-weight: bold;
    background: #fafafa;
}


@media print {
    .prints,
    .download {
        display: none !important;
    }

    .invoice-header img,
    .invoice-container img[src*="seal.png"] {
        display: none !important;
    }
}




/* Print styles */
@media print {
    button {
        display: none;
    }
    .invoice-container {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }
    .bank-details {
        page-break-inside: avoid;
    }
}

/* Hide logo and seal only when printing (including Save as PDF) */
@media print {
    .invoice-header img,
    .invoice-container img[src*="seal.png"] {
        display: none !important;
    }
}

/* Responsive styles */
@media (max-width: 700px) {
    .invoice-container {
        max-width: 100%;
        font-size: 13px;
        padding: 0;
    }
    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .invoice-header > div:last-child {
        margin-left: 0;
        margin-top: 10px;
        min-width: 0;
        width: 100%;
    }
    .invoice-table,
    .invoice-table th,
    .invoice-table td {
        font-size: 12px;
        padding: 4px 5px;
    }
    .bank-details {
        font-size: 12px;
        padding: 5px;
    }
}
