/**
 * @author Dana Campbell
 * @email danacam28@gmail.com
 * @create date 2021-09-07 12:54:58
 * @modify date 2021-09-09 20:17:51
 * @desc [Doctor's Invoice]
 */

:root {
    --black: #000;
    --white: #fff;
    --cultured-2: #e9ecef;
}

* {
	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.1rem;
    font-weight: 500;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

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);
    padding: 1rem 4%;
}

/* Company Info */
.company-info {
    text-align: right;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1rem 0rem;
    border-bottom: 2px solid var(--cultured-2);
}

.company-info > * {
    flex: 1 1 auto;
}

.company-info div> * {
    display: block;
}
.company-info img {
    max-width: 200px;
}

.company-info h1{
    font-size: 1.8rem;
    font-weight: 500;
}
.company-info address {
    margin-bottom: 1rem;
}

/* Invoice and Billing Info */
.row {
    margin-bottom: 2rem;
}

.row > * {
    flex: 1 1 auto;
}
.row div > * {
    display: block;
}

/* Invoice Details */
.billing-details h2 {
    color: #adb5bd;
}
.billing-details p {
    font-weight: 500;
    margin-bottom: 1rem;
}

.row table tr td {
    padding: 0.3rem 0.6rem;
}
.row table tr td:first-child{
    text-align: right;
    font-weight: 500;
}

.row table tr:last-child td{
    background: var(--cultured-2);
    font-weight: 500;
}

/* Charge Details */
.charge-details {
    overflow-x: auto;
}
.charge-details h2 {
    margin: 2rem 0rem;
}
.charge-details table td,
.charge-details table th{
    padding: 0.8rem 0.3rem;
}
.charge-details table tr th{
    font-weight: 500;
}
.charge-details table tr th:first-child,
.charge-details table tr td:first-child{
    text-align: left;
}
.charge-details table tr td:last-child,
.charge-details table tr th:last-child{
    text-align: right;
}

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

.charge-details table tbody tr td:first-child {
    font-weight: 500;
}
/* Total */
.total {
    margin-left: auto;
    text-align: right;
}
.total td{
    padding: 0.8rem 0.3rem;
}

.total tr td:first-child {
    font-weight: 500;
}
.total tr:not(:last-child) {
    border-bottom: 2px solid var(--cultured-2);
}
/* Note */
.note {
    text-align: center;
    padding: 2rem 0rem 1rem 0rem;
    margin-top: 3rem;
    position: relative;
    font-weight: 500;
}

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

@media (max-width:973px) {
    .row table tr td:first-child{
        text-align: left;
    }
}
@media (max-width:685px) {
    .company-info{
        text-align: left;
    }
    
}