{
/* Container */
}
.estimate-or-invoice-details {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 48px 48px 62px 48px;
}

{
/* Header */
}
.header {
    display: flex;
    justify-content: space-between;
}
{
/* First child */
}
.header > div:first-child {
    display: flex;
    gap: 12px;
}
.header > div:first-child > img {
    width: 72px;
    height: 72px;
}
.header > div:first-child > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.header > div:first-child > div > p:first-child {
    color: #0b2551;
    font-size: 20px;
    font-weight: 500;
}
.header > div:first-child > div > div > p {
    color: #31363b;
    font-size: 14px;
}
{
/* Last child */
}
.header > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.header > div:last-child > p {
    color: #31363b;
    font-size: 12px;
}
.header > div:last-child > div {
    display: flex;
    gap: 12px;
}
.header > div:last-child > div > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header > div:last-child > div > div > p {
    font-size: 12px;
}
.header > div:last-child > div > div > p:first-child {
    color: #31363b;
}
.header > div:last-child > div > div > p:last-child {
    color: #0b2551;
    font-weight: 600;
}

{
/* Contact info */
}
.contact-info {
    position: relative;
    padding: 24px 0;
    border-top: 2px solid #ffb400;
    margin-top: 12px;
}
.contact-info > p {
    color: #717478;
    font-size: 14px;
}
.contact-info > p:first-child {
    margin-bottom: 12px;
}
.contact-info > p > span {
    color: #31363b;
    font-size: 16px;
    font-weight: 500;
}
.contact-info > div {
    position: absolute;
    top: -1px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 55px;
    background-color: #ffb400;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 0 0 2px 2px;
}
.contact-info > div > p:first-child {
    color: #31363b;
    font-size: 14px;
}
.contact-info > div > p:last-child {
    color: #0b2551;
    font-weight: 500;
}

{
/* Table */
}
.table {
    width: 100%;
    overflow-x: auto;
    border-top: 2px solid #ffb400;
}
.table > table {
    width: 100%;
    min-width: 440px;
}
.table > table > thead > tr {
    height: 24px;
}
.table > table > tbody > tr {
    height: 32px;
}
.table th,
.table td {
    font-size: 12px;
    text-align: left;
}
.table th:last-child,
.table td:last-child {
    text-align: right;
}
.table th:nth-child(3),
.table td:nth-child(3) {
    padding: 0 8px;
}
.table th {
    color: #0b2551;
    font-weight: 600;
}
.table td {
    color: #717478;
}

{
/* Total */
}
.total {
    align-self: flex-end;
    width: 263px;
}
.total > div {
    background-color: #f3f4f6;
    padding: 12px;
}
{
/* First child */
}
.total > div:first-child {
    margin-bottom: 4px;
}
.total > div:first-child > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.total > div:first-child > div:last-child {
    margin-bottom: 0;
}
.total > div:first-child > div > p {
    font-size: 14px;
}
.total > div:first-child > div > p:first-child {
    color: #717478;
}
.total > div:first-child > div > p:last-child {
    color: #31363b;
    font-weight: 500;
}
{
/* Last child */
}
.total > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total > div:last-child > p {
    font-weight: 500;
}
.total > div:last-child > p:first-child {
    color: #31363b;
    font-size: 18px;
}
.total > div:last-child > p:last-child {
    color: #0b2551;
    font-size: 20px;
}

{
/* File and message */
}
.file-and-message {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}
.file-and-message > div:first-child {
    flex-grow: 1;
    height: 144px;
    background-color: #f3f4f6;
}
.file-and-message > div:last-child {
    width: 263px;
}
.file-and-message > div:last-child > p:first-child {
    color: #31363b;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}
.file-and-message > div:last-child > p:last-child {
    color: #717478;
    font-size: 12px;
}

{
/* Footer */
}
.footer {
    margin-top: 24px;
}
.footer > p {
    color: #0b2551;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}
.footer > div {
    display: flex;
    gap: 24px;
    margin-top: 44px;
}
.footer > div > p {
    flex-grow: 1;
    color: #31363b;
    font-size: 14px;
}
