/**
 * @author Dana Campbell
 * @email danacam28@gmail.com
 * @create date 2021-09-07 19:51:10
 * @modify date 2021-09-09 20:18:07
 * @desc [Invoice]
 */

:root {
    --black: #000;
    --eerie-black: #131515;
    --white: #fff;
    --cultured-2: #E9ECEF;
    --cerulean-blue: #3C56BAff;
    --slate-gray: #6C757D;
}

* {
	margin: 0;
	padding: 0;
    font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
	scroll-behavior: smooth;
    letter-spacing: 0.5px;
    color: var(--slate-gray);
	
}
a {
    text-decoration: none;
    color: var(--slate-gray);
}

h2{
    font-size: 1.2rem;
    font-weight: 500;
}
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}
table {
    border-collapse: collapse;
}

address {
    font-style: normal;
}
body{
    padding: 2rem 0rem;
}

/* INVOICE CONTAINER */
.invoice-container {
    width: 80%;
    margin: auto;
    background: var(--white);
    padding: 2rem 4%;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
/* Invoice Header */
.invoice-header > * {
    flex: 1 1 auto;
}

.invoice-header img {
    max-width: 210px;
    margin-left:auto;
}

.invoice-header h1 {
    margin-bottom: 0.8rem;
    color: var(--cerulean-blue);
}
/* Company and Recipient Info */
.info {
    line-height: 1.7;
    margin: 2rem 0rem;
}

.info div > * {
    display: block;
}

.info div:last-child {
    text-align: right;
}

.info h2 {
    color: var(--eerie-black);
}
/* Invoice Details */
.row {
    margin-bottom: 2rem;
    border-top: 1px solid var(--cultured-2);
    padding-top: 2rem;
}

.row div:last-child {
    text-align: right;
}
.row div > * {
    display: block;
}

.row div:last-child p{
    color: var(--cerulean-blue);
    font-weight: 500;
    font-size: 1.5rem;
}
/* Charge Details */
.charge-details tr th:not(:last-child){
    text-align: left;
}
.charge-details tr td:not(:last-child) {
    text-align: left;
}
.charge-details tr th:last-child,
.charge-details tr td:last-child{
    text-align: right;
}

.charge-details tr th:nth-child(2),
.charge-details tr th:nth-child(3),
.charge-details tr td:nth-child(2),
.charge-details tr td:nth-child(3) {
    text-align: center;
}
.charge-details tr {
    border-bottom: 1px solid var(--cultured-2);
}
.charge-details tr th,
.charge-details tr td{
    padding: 0.8rem 0.8rem;
}

/* Total */
.total {
    margin-left: auto;
}

.total tr td:last-child {
    text-align: right;
}
.total tr:last-child td{
    color: var(--cerulean-blue);
    font-weight: 500;
}
.total tr td {
    padding: 0.8rem 0.8rem;
}
.total tr:not(:last-child){
    border-bottom: 1px solid var(--cultured-2);
}

/* Note */
.note {
    text-align: center;
    width: 100%;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--cultured-2);
}
/* INVOICE CONTAINER */

@media (max-width:973px) {
    .info div:last-child {
        text-align: left;
    }
    
}
@media (max-width:770px) {
    .invoice-header{
        text-align: left;
    }
    
}