
:root {
    --black: #000;
    --white: #fff;
    --cultured-2: #e9ecef;
    --purple-navy: #595176ff;
    --alice-blue: #E4F0FFff;
    --dodger-blue: #2D8CFFff;
    --slate-gray: #6C757D;
}

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

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
address {
    font-style: normal;
}
table {
    border-collapse: collapse;
}

body{
    padding: 2rem 0rem;
}

/* INVOICE CONTAINER */
.invoice-container {
    width: 80%;
    margin: auto;
    background: var(--white);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    
}

/* Invoice Header */
.invoice-header {
    background: var(--dodger-blue);
    padding: 1rem 4%;
}

.invoice-header > * {
    flex: 1 1 auto;
}

.invoice-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.invoice-header div > * {
    display: block;
    text-align: right;
    color: var(--white);
}

.invoice-header div img {
    margin-left: auto;
}

/* Invoice, Billing Details */
.info {
    padding: 1rem 4%;
}

.info > * {
    flex: 1 1 auto;
}
.info table tr td {
    padding: 0.3rem;
    vertical-align: top;
}
.info table tr td:first-child{
    text-align: right;
    font-weight: 500;
}

.info div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    align-self: normal;
}

.info .total-p{
   font-weight: 500;
   font-size: 1.2rem;
}
/* Charge Details */
.charge-details {
    padding: 1rem 4%;
}

.charge-details table tr th,
.charge-details table tr td{
    padding: 0.8rem 0.6rem;
}

.charge-details table thead tr {
    border-top: 1px solid var(--slate-gray);
    border-bottom: 1px solid var(--slate-gray);
}
.charge-details table tr th {
    color: var(--dodger-blue);
    font-weight: 500;
}

.charge-details table tbody {
    background: var(--alice-blue);
    border-bottom: 1px solid var(--slate-gray);
}

.charge-details tr th:first-child{
    text-align: left;
}
.charge-details tr th:not(:first-child),
.charge-details tr td:not(:first-child){
    text-align: center;
}
/* Total */
.total {
    padding: 0.4rem 4%;
}
.total table {
    margin-left: auto;
}

.total tr td{
    padding: 0.8rem 0.6rem;
}

.total tr td:first-child {
    text-align: right;
}
.total tr td:last-child {
    text-align: right;
}

.total tr:last-child {
    background: var(--alice-blue);
}
/* Note */
.note {
    text-align: center;
    padding: 1rem 0rem;
    margin: 3rem 4%  2rem 4%;
    font-weight: 400;
    border-top: 1px solid var(--alice-blue);
}

/* ./INVOICE CONTAINER */

 @media (max-width:978px) {
    .info div,
    .info table tr td:first-child{
        text-align: left;
    }
}