/**
 * @author Dana Campbell
 * @email danacam28@gmail.com
 * @create date 2021-09-04 14:19:30
 * @modify date 2021-09-09 20:19:04
 * @desc [Invoice Template]
 */
:root {
    --black: #000;
    --white: #fff;
    --pastel-green: #cdf5b7;
}

* {
	margin: 0;
	padding: 0;
    font-family: 'Roboto', sans-serif;
	box-sizing: border-box;
	scroll-behavior: smooth;
    letter-spacing: 0.5px;
	
}
a {
    text-decoration: none;
    color: var(--black);
}
h2{
    font-size: 1.1rem;
    font-weight: 500;
}

table {
    border-collapse: collapse;
}

body{
    padding: 2rem 0rem;
}

/* INVOICE CONTAINER */
.invoice-container {
    width: 80%;
    margin: auto;
    background: var(--white);
    box-shadow: 0 0 5px var(--pastel-green);
    padding-bottom: 1rem;
}

/* Company Info */
.company-info {
    padding: 3rem 4% 6rem 4%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--pastel-green);;
    text-align: right;
    line-height: 1.8;
}

.company-info > * {
    flex: 1 1 auto;
}
.company-info img {
    /* height: 150px; */
    max-width: 200px;
}


.company-info h1{
    font-size: 1.2rem;
}

.company-info address, .company-info a{
   font-size: 0.9rem; 
}
.company-info a {
    display: block;
    color: var(--black);
}


/* Invoice and Billing Info */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin: -80px 4% 0px 4%;
    padding: 1rem 2%;
    background: var(--white); 
    line-height: 1.8;
    border: 1px solid var(--pastel-green);
}

.row > * {
    flex: 1 1 auto;
}
.row h2,.row time, .row a{
    display: block;
}

/* Invoice Details */
.billing-details {
    text-align: right;
}
.billing-details:not(:first-child){
    font-size: 0.9rem;  
}

/* Charge Details */
.charge-details {
    padding: 0.8rem 4%;
    overflow-x: auto;
}
.charge-details h2 {
    margin: 2rem 0rem;
}

.charge-details table tbody {
    margin-top: 4rem;
}

.charge-details thead {
    margin-bottom: 20px;
}
.charge-details table th {
    font-weight: 500;
    font-size: 1rem;
}
.charge-details table th, 
.charge-details table td {
    padding: 0.5rem 0.3rem;
    text-align: center;
}

.charge-details table tr {
    border-bottom: 1px solid var(--pastel-green);
}
.charge-details table tr th:not(:last-child),
.charge-details table tr td:not(:last-child){
    border-right: 1px solid var(--pastel-green);
}
/* Total */
.total {
    padding: 0.8rem 4% 0.8rem 4%;
}

.total table {
    margin-left: auto;
    text-align: center;
}
.total table tr td{
    padding: 0.5rem;
}
.total table tr:not(:last-child) {
    border-bottom: 1px solid var(--pastel-green);
}
.total table tr:last-child {
    background: var(--pastel-green);
    font-weight: 500;
}

/* Note */
.note {
    text-align: center;
    padding: 2rem 0rem 1rem 0rem;
    margin-top: 3rem;
    position: relative;
}

.note::before {
    content: "";
    height: 1px;
    width: 92%;
    background: var(--pastel-green);
    position: absolute;
    top: 0;
    left: 0;right:0;
    margin: auto;
}
/* ./INVOICE CONTAINER */