@reference "../app/globals.css";

.container {
    align-self: center;
}

.invoicePreview {
    background-color: var(--md-sys-color-surface-container-lowest);
    width: 900px;
    border-radius: 6px;
    min-height: 1122.52px;
    height: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.logo {
    height: 120px;
    width: 120px;
}

.logo img,
.signature-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.basicInfo {
    display: flex;
    justify-content: space-between;
}

.detailsRow {
    display: flex;
    gap: 16px;
}

.detailsCol {
    flex: 1;
    padding: 16px 0;
}

.detailsCol.left {
    text-align: right;
}

.detailsCol.right {
    text-align: left;
}

.separatorVertical {
    border-left: 1px solid #ccc;
    margin: 0 16px;
}

.itemTable {
    width: 100%;
    border-collapse: collapse;
}

.itemTable th {
    text-align: left;
    padding: 8px 0;
}

.itemTable td {
    padding: 4px 0;
}

.itemNameDesc {
    display: flex;
    flex-direction: column;
    width: 200px;
}

.itemDescription {
    color: #666;
}

.summary {
    display: flex;
}

.summary .left {
    flex: 1;
}

.summary .right {
    flex: 1;
    display: flex;
}

.summary .labels,
.summary .values {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary .values {
    align-items: flex-end;
}

.amountDue {
    font-weight: 500;
    font-size: 16px;
}

.signaturePayment {
    display: flex;
}

.signature-container {
    width: 100%;
    height: 120px;
    padding: 16px;
}

.footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.footer p:first-child {
    font-weight: 500;
}