@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/******************** ROOT VARIABLES ********************/
:root {
    --color-primary: #7380cc;
    --color-danger: #ff7782;
    --color-success: #41f1b6;
    --color-warning: #ffbb55;
    --color-white: #fff;
    --color-info-dark: #7d8da1;
    --color-info-light: #dce1eb;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-primary-variant: #111e88;
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;

    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;

    --card-padding: 3rem;
    --padding-1: 1.2rem;

    --box-shadow: 0 2rem 3rem var(--color-light);
}

/******************** DARK THEME VARIABLES ********************/
.dark-theme {
    --color-background: #181a1e;
    --color-white: #000000;
    --color-dark: #efeffd;
    --color-dark-variant: #ffffff;
    --color-light: rgba(0, 0, 0, 0.4);
    --box-shadow: 0 2rem 3rem --color-light;
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: none;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    color: var(--color-dark);
    background: var(--color-white);
}

.container {
    display: grid;
    width: 80%;
    margin: 2rem auto;
    gap: 1.8rem;
}

a {
    color: var(--color-dark);
}

img {
    display: block;
    width: 100%;
}

h1 {
    font-weight: 800;
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 0.87rem;
}

h4 {
    font-size: 0.8rem;
}

h5 {
    font-size: 0.77rem;
}

small {
    font-size: 0.75rem;
}

.logo {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.logo img {
    width: 150px;
}

.logo .logo-light {
    display: block;
}

.logo .logo-dark {
    display: none;
}

.dark-theme .logo .logo-light {
    display: none;
}

.dark-theme .logo .logo-dark {
    display: block;
}

main .receipt {
    padding: 1.5rem;
}

main .receipt-content {
    border-radius: var(--border-radius-3);
    padding: var(--card-padding);
    border: solid 0.5px var(--color-dark-variant);
    transition: all 300ms ease;
    margin-bottom: 3rem;
}

main .receipt-content table {
    width: 100%;
    border-collapse: collapse;
}

main .receipt-content table:hover {
    box-shadow: none;
}

main table th {
    font-weight: 600;
}

main table thead th {
    height: 2.8rem;
    border-bottom: 1px solid var(--color-dark);
    color: var(--color-dark-variant);
}
main table tbody td {
    height: 2.8rem;
    color: var(--color-dark-variant);
}
main table tbody .receipt-items td {
    border-bottom: 0.5px solid var(--color-dark);
}
main table tbody .receipt-totals td span {
    padding-bottom: 0.7rem;
    border-bottom: 0.5px solid var(--color-dark);
}

main .receipt-header {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    background-color: #00F5D2;
    color: #000000;
    padding: 10px;
    border-radius: 10px;
}

main .receipt-header .receipt-summary {
    display: flex;
}

main .receipt-header .moir-url {
    display: flex;
}

main .receipt-header .moir-url {
    align-items: end;
    padding-bottom: 7px;
}

main .receipt-summary .summary-item {
    margin-right: 4rem;
}

main .receipt-summary .summary-item .title {
    font-weight: 400;
    font-size: 1.3rem;
}

main .receipt-summary .summary-item .subtitle {
    font-size: 1.8rem;
    font-weight: 450;
}

main .receipt-table thead tr th:nth-child(1),
main .receipt-table tbody tr.receipt-items td:nth-child(1) {
    text-align: left;
}

main .receipt-table thead tr th:nth-child(2),
main .receipt-table tbody tr.receipt-items td:nth-child(2) {
    text-align: center;
}

main .receipt-table tr {
    text-align: right;
}

main .receipt-table tbody .table-address {
    text-align: left;
    vertical-align: bottom;
}

main .receipt-footnote .title {
    font-weight: 400;
    font-size: 1.3rem;
}

/******************** MEDIA QUERIES: TABLETS AND SMALL LAPTOPS ********************/
@media screen and (max-width: 1200px) {
    .container {
        width: 87%;
    }
    /* 
    main table thead tr th:last-child,
    main table thead tr th:first-child {
        display: none;
    }

    main table tbody tr td:last-child,
    main table tbody tr td:first-child {
        display: none;
    } */
}

/******************** MEDIA QUERIES: MOBILE ********************/
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    main .receipt-content {
        position: relative;
        margin: 3rem 0 0 0;
        width: 100%;
    }

    main .receipt-content table {
        width: 100%;
        margin: 0;
    }

    main .receipt-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    main .receipt-header .receipt-summary {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    main .receipt-summary .summary-item {
        margin: 0;
        align-items: center;
        text-align: center;
    }

    main .receipt-header .moir-url {
        margin-top: 1rem;
    }

    main .receipt-content {
        position: relative;
        padding: 2rem;
        width: 100%;
    }

    main .receipt-table thead tr th:nth-child(1),
    main .receipt-table tbody tr.receipt-items td:nth-child(1) {
        width: 25%;
    }

    main .receipt-table thead tr th:nth-child(2),
    main .receipt-table tbody tr.receipt-items td:nth-child(2) {
        width: 25%;
    }

    main .receipt-table thead tr th:nth-child(3),
    main .receipt-table tbody tr.receipt-items td:nth-child(3) {
        width: 25%;
    }

    main .receipt-table thead tr th:nth-child(3),
    main .receipt-table tbody tr.receipt-items td:nth-child(3) {
        width: 25%;
    }
}
