:root {
    --clr-primary-300: #289137;
    --clr-primary-500: #23722f;
    --clr-primary-700: #1c4b24;

    --clr-neutral-100: #fff;
    --clr-neutral-200: #F3F4F6;
    --clr-neutral-300: #e2e2e2;
    --clr-neutral-400: #c6c6c6;
    --clr-neutral-500: #6b7280;
    --clr-neutral-600: #4b5563;
    --clr-neutral-700: #374151;
    --clr-neutral-800: #1f2937;
    --clr-neutral-900: #2B2B2B;

    --clr-timeline: #F6EDD9;

    --clr-error: #ff0000;

    --clr-corrected: #DBE7C9;
    --clr-missing: #FFECEB;

    --ff-primary: "Ubuntu", sans-serif;

    --ff-body: var(--ff-primary);
    --ff-heading: var(--ff-primary);

    --fw-regular: 400;
    --fw-semi-bold: 500;
    --fw-bold: 700;

    --fs-300: 0.75rem;
    --fs-400: 0.875rem;
    --fs-500: 1.25rem;
    --fs-600: 1.5rem;
    --fs-700: 1.875rem;
    --fs-800: 2.5rem;
    --fs-900: 3.5rem;
  
    --fs-body: var(--fs-400);
    --fs-primary-heading: var(--fs-800);
    --fs-secondary-heading: var(--fs-700);
    --fs-nav: var(--fs-300);
    --fs-button: var(--fs-300);

    --lh-body: 1.5em;

    --ls-body: 0.05em;
}
  
/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  color-scheme: dark light;
}

html, body {
  min-height: 100vh;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

a, button {
    text-decoration: none;
    cursor: pointer;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

/* General Styling */
body {
    display: flex;
    flex-direction: column;
    color: var(--clr-neutral-900);
    font-size: var(--fs-body);
    font-family: var(--ff-body);
    line-height: var(--lh-body); 
    letter-spacing: var(--ls-body); 
    background-image: url( '/app/img/svg/background.svg' );
    background-attachment: fixed;
    background-color: var(--clr-neutral-100);
}

a {
    text-decoration: none;
    color: var(--clr-neutral-900);
}

a:hover, a:focus {
    color: var(--clr-primary-500);
} 

h1, h2, h3{ 
    font-weight: 900;
    line-height: 1.2em;
    padding-bottom: 1em;
    padding-top: 1em;
    text-align: center;
    text-transform: uppercase;
}

h1 {
    font-size: var(--fs-700);
}

h2 {
    font-size: var(--fs-600);
}

h3 {
    font-size: var(--fs-500);
}

main {
    padding: 40px 0;
}

section {
    padding: 40px 0;
}

p {
    padding: 1em 0;
}

b, strong {
    font-weight: var(--fw-bold);
}

/* Table */
table {
    border-collapse: collapse;
}

tbody {
    font-size: var(--fs-300);
}

thead {
    font-size: var(--fs-400);
    font-weight: var(--fw-bold);
    background-color: var(--clr-primary-700);
    color: var(--clr-neutral-100);
}

th, td {
    padding: 0.5em;
    border-bottom: 1px solid var(--clr-neutral-400);
}

tbody tr:nth-child(even) {
    background-color: var(--clr-neutral-200);
}

tbody tr:nth-child(odd) {
    background-color: var(--clr-neutral-100);
}

.corrected {
    background-color: var(--clr-corrected) !important;
}

.missing {
    background-color: var(--clr-missing) !important;
}

.table-wrapper {
    overflow-x: auto;
}

.table-wrapper select, .table-wrapper input{
    width: auto;
}

/* Input */
 input, select {
    margin: 0.5em 0;
    padding: 0.5em;
    width: 100%;
    background-color: var(--clr-neutral-200);
    border: 1px solid var(--clr-neutral-400);
    border-radius: 3px;
    color: var(--clr-neutral-900);
}

input:focus, select:focus {
    outline: 2px solid var(--clr-primary-500);
}

input[type="radio"] {
    width: auto;
}

input:read-only {
    background-color: var(--clr-neutral-100);
    outline: none;
    color: var(--clr-neutral-500);
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--clr-neutral-100);
    margin: 0;
    width: 1.75em;
    height: 1.75em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    display: inline-grid;
    place-content: center;
}

input[type="checkbox"]::before {
    content: "";
    width: 1.5em;
    height: 1.5em;
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    transform: scale(0);
    transform-origin: bottom left;
    box-shadow: inset 1em 1em var(--form-control-color);
    background-color: var(--clr-neutral-900);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}  

label {
    font-size: var(--fs-400);
    font-weight: var(--fw-bold);
}

form .error {
    font-weight: var(--fw-regular);
    color: var(--clr-error);
} 

/* Faq */
details{
    margin: 1em;
    padding: 1em;
    cursor: pointer;
    font-size: var(--fs-400);
    box-shadow: 2px 2px 2px 2px var(--clr-neutral-500);
    border-radius: 0.375rem; 
    line-height: 1.4;
    text-transform: uppercase;
    background-color: var(--clr-neutral-100);
}

details[open] {
    background-color: var(--clr-neutral-200);
}
  
summary {
    padding: 1em;
    list-style: none;
    display: flex;
    justify-content: space-between;  
    transition: height 1s ease;
    font-weight: var(--fw-bold);
}
  
summary::-webkit-details-marker {
    display: none;
}
  
summary:after{
    content: "\002B";
}
  
details[open] summary {
    border-bottom: 1px dashed var(--clr-neutral-900);
    margin-bottom: 1em;
}
  
details[open] summary:after{
    content: "\00D7";
}
  
details[open] div{
    padding: 0.5em 1em;
}

/* Button */
.button {
    display: inline-flex;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    border-radius: 0.1rem;
    padding: 1em 2rem; 
    font-weight: var(--fw-bold);
    font-size: var(--fs-button);
    line-height: 1;
    color: var(--clr-neutral-100);
    background-color: var(--clr-primary-500);
    box-shadow: 0 1.125em 1em -1em var(--clr-accent-500);
    text-transform: uppercase;
}
  
.button[data-type="inverted"] {
    background-color: var(--clr-neutral-300);
    color: var(--clr-primary-500);
    border: 0.1rem solid var(--clr-primary-500);
}
  
.button:hover,
.button:focus-visible {
    background-color: var(--clr-primary-300);
    color: var(--clr-neutral-100);
}
  
.button[data-type="inverted"]:hover,
.button[data-type="inverted"]:focus-visible {
    background-color: var(--clr-neutral-200);
    color: var(--clr-primary-300);
} 

/* Link */
.link {
    display: block; 
    padding: 1rem;
    background-color: var(--clr-neutral-100); 
    text-transform: uppercase; 
    border-left: 4px solid var(--clr-neutral-100);
    cursor: pointer; 
    color:var(--clr-neutral-900);
}

.link:hover, .link.active {
    color: var(--clr-primary-500);
    border-left: 4px solid var(--clr-primary-500);
    background-color: var(--clr-neutral-200);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute; 
    right: 0; 
    z-index: 50;  
    transform-origin: top left; 
    min-width: 12rem; 
    border: 1px solid lightgray;
    border-radius: 0.375rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
}

.dropdown.active .dropdown-content {
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
} 

.container-wide {
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
} 

@media (max-width: 800px) {
    .container {
        width: 94%;
    }
}

/* Grid */
.row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    margin-bottom: 10px;
}


/* Header */
header {
    min-height: 139px;
}

.datebar-wrapper, .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.header-dates {
    display: block;
}

.nav-background {
    background-color: var(--clr-primary-700);
    width: 100%; 
}

.nav-shadow {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,255,255,0) 100%);
    padding: 0.5em;
}

.nav-logo {
    text-decoration: none;
    font-size: var(--fs-600);
    color: var(--clr-neutral-100);
    font-weight: var(--fw-bold); 
    line-height: 1em;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu {
    display: flex;
    align-items: center;
    font-size: var(--fs-nav);
    font-weight: var(--fw-bold);
    gap: 2rem;
    text-transform: uppercase;
}

.menu > li {
    position: relative;
    display: inline-block;
    cursor: pointer;
    
}

.menu > li > div, .menu > li > a  {
    color: var(--clr-neutral-100);
    padding: 1rem 0;
}

.menu > li > div:hover, .menu > li > div:focus {
    color: var(--clr-primary-500);
}

.menu > li > ul {
    display: none;
    position: absolute; 
    right: 0; 
    z-index: 50;  
    transform-origin: top left; 
    min-width: 12rem; 
    border: 1px solid lightgray;
    border-radius: 0.375rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
}

.menu li.active ul {
    display: block;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 1200px) {
    .header-dates {
        display: none;
    }

    .datebar-wrapper {
        justify-content: center;
    }

    .primary-navigation {
        display: none;

        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1.4rem 0.5rem;
        background: var(--clr-neutral-100);
        box-shadow: 0 0 0.75em rgb(0, 0, 0, 0.05);
    }

    .primary-navigation.active {
        display: block;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        background: transparent;
        border: 0;
        color: var(--clr-neutral-100);
        font-size: var(--fs-800);
        float: right;
    }
  
    .menu {
      display: grid;
      gap: 2rem;
      text-align: center;
      font-weight: var(--fw-bold);
      color: var(--clr-neutral-900);
      padding: 0;
      width: 100%;
    }

    .menu > li > div, .menu > li > a {
        color: var(--clr-neutral-900);
        font-size: var(--fs-500);
    }

    .menu > li > ul {
        display: none;
        position: relative;
        width: 100%; 
        border: 0;
        border-radius: 0; 
        box-shadow: none; 
        margin-top: 1rem;
    }

    .menu li.active ul {
        display: block;
    }
}

/* Secondary Navigation*/
.entry-menu > li > ul {
    display: none;
}

.entry-menu li.active ul {
    display: block;
}

.entry-menu > li > a {
    color: var(--clr-neutral-900);
    font-weight: var(--fw-bold);
}

.entry-layout {
    display: flex;
}

.entry-layout > div:nth-of-type(1) {
    width: 20%;
}

.entry-layout > div:nth-of-type(2) {
    width: 80%;
    padding: 0px 20px;
}

.entry-layout .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 800px) {
    .entry-layout {
        display: block;
    }
    
    .entry-layout > div:nth-of-type(1) {
        width: 100%;
        border-bottom: 1px solid var(--clr-neutral-300);
    }
    
    .entry-layout > div:nth-of-type(2) {
        width: 100%;
        padding: 0px 10px;
    }

    .entry-layout.card {
        padding: 0px;
    }

    .entry-layout .header {
        flex-direction: column;
        margin-bottom: 2rem;
    }
}

/* Bills */
.bill {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
footer{
    background-color: var(--clr-neutral-900);
    color: var(--clr-neutral-100);
    margin-top: auto;
}

footer > div > .row {
    padding-top: 2em;
    padding-bottom: 2em;
}

.footer-col > div {
   padding: .8em 0;
}

.footer-col > a, .footer-row > div > a {
    color: var(--clr-neutral-100);
    text-transform: uppercase;
    font-weight: 900;
    font-size: var(--fs-300);
    margin: 1em;
    display: inline-block;
}

.footer-col > a {
    display: block;
    margin: 1em 0;
}

footer a:hover {
    color: var(--clr-primary-500);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

.footer-divider {
    border-bottom: 1px dashed var(--clr-neutral-100);
}

@media (max-width: 1200px) {
    .footer-row {
        flex-direction: column-reverse;
        gap: 2em;
    }
}

/* Card */
.card {
    padding: 1.5em;
    border: 1px solid var(--clr-neutral-300);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
    background-color: var(--clr-neutral-100);
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
}

/* Dates */
.dates .card, .features .card {
    text-align: center; 
    padding: 2em;
}

.dates .card  > div:nth-of-type(1) {
    color: var(--clr-primary-500);
    font-size: var(--fs-600);
    padding-bottom: 0.6em;
}

.dates .card  > div:nth-of-type(2) {
    color: var(--clr-primary-500);
    font-size: var(--fs-400);
    padding-bottom: 0.8em;
}

.dates .card  > div:nth-of-type(3) {
    font-size: var(--fs-300);
    text-transform: uppercase;
    font-weight: var(--fw-bold);
    padding-bottom: 0.2em;
}

.dates .card  > div:nth-of-type(4) {
    font-size: var(--fs-300);
}

/* Timeline */
.timeline {
    background-color: var(--clr-timeline);
}

.timeline h1 {
    margin-bottom: 2em;
}

.timeline-row {
    display: flex; 
    justify-content: flex-start; 
    width: 100%; 
}

.timeline-row .card {
    position: relative;
    width: 80%;
    text-align: left;
    margin: 0.5em;
}

.timeline-row .card::after {
    position: absolute;
    top: 25px;
    left: -10px;
    rotate: 45deg;
    background-color: var(--clr-neutral-100);
    width: 20px;
    height: 20px;
    content: "";
}

.timeline-row .divider {
    border-bottom: 1px dashed var(--clr-neutral-900);
}

.timeline-row .card p {
    line-height: 1.2;
}

.timeline-row .number {
    position: relative;
    display: flex;
    justify-content: center;
    width: 20%;
}

.timeline-row .number::after {
    width: 4px;
    height: 100%;
    background-color: var(--clr-primary-500);
    content: '';
}

.timeline-row .number > div {
    position: absolute;
    top: 20px;
    border-radius: 50%;
    background-color: var(--clr-neutral-100);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: var(--fw-bold);
    box-shadow: 0 0 0.75em rgb(0, 0, 0, 0.05);
}

/* Features */
.features .card > p {
    font-size: var(--fs-500);
    font-weight: var(--fw-bold);
}

.features .card svg {
    fill: var(--clr-primary-500);
    height: 66px;
}
  
/* Login */
.login .active {
    border-bottom: 2px solid var(--clr-primary-500);
}

.login .inactive {
    color: var(--clr-neutral-400);
}

.login .inactive:hover {
    border-bottom: 2px solid var(--clr-primary-500);
}

.warning {
    padding: 1em;
    background-color: #ffcfcf;
    border: 1px solid red;
    border-radius: 10px;
    text-align: justify;
}

.info {
    padding: 1em;
    background-color: #faffdd;
    border: 1px solid yellow;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: justify;
}

/* Register */
.button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab {
    padding: 0.4em 0.5em;
    font-size: 0.8rem;
    border-radius: 100%;
    border: 1px solid var(--clr-primary-500)
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.overlay{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8) url("/app/img/spinner.gif") center no-repeat;
}

body.loading{
    overflow: hidden;   
}

body.loading .overlay{
    display: block;
}

/* Autocomplete */
.autocomplete-suggestions { background: var(--clr-neutral-100); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); cursor: pointer; overflow: auto; }
.autocomplete-suggestion { padding: 1em 0.5em;  overflow: hidden; white-space: nowrap;}
.autocomplete-selected { font-weight: var(--fw-bold); background: var(--clr-neutral-200); }
.autocomplete-suggestions strong { color: var(--clr-primary-500); }

/* Utility classes */
.text-primary-300 { color: var(--clr-primary-300); }
.text-primary-500 { color: var(--clr-primary-500); }
.text-primary-700 { color: var(--clr-primary-700); }

.text-neutral-100 { color: var(--clr-neutral-100); }
.text-neutral-200 { color: var(--clr-neutral-200); }
.text-neutral-300 { color: var(--clr-neutral-300); }
.text-neutral-400 { color: var(--clr-neutral-400); }
.text-neutral-500 { color: var(--clr-neutral-500); }
.text-neutral-600 { color: var(--clr-neutral-600); }
.text-neutral-700 { color: var(--clr-neutral-700); }
.text-neutral-800 { color: var(--clr-neutral-800); }
.text-neutral-900 { color: var(--clr-neutral-900); }

.bg-primary-300 { background-color: var(--clr-primary-300); }
.bg-primary-500 { background-color: var(--clr-primary-500); }
.bg-primary-700 { background-color: var(--clr-primary-700); }
  
.bg-neutral-100 { background-color: var(--clr-neutral-100); }
.bg-neutral-200 { background-color: var(--clr-neutral-200); }
.bg-neutral-300 { background-color: var(--clr-neutral-300); }
.bg-neutral-900 { background-color: var(--clr-neutral-900); }

.fw-regular { font-weight: var(--fw-regular); }
.fw-semi-bold { font-weight: var(--fw-semi-bold); }
.fw-bold { font-weight: var(--fw-bold); }

.fs-primary-heading { font-size: var(--fs-primary-heading); }
.fs-secondary-heading { font-size: var(--fs-secondary-heading); }
  
.fs-300 { font-size: var(--fs-300); }
.fs-400 { font-size: var(--fs-400); }
.fs-500 { font-size: var(--fs-500); }
.fs-600 { font-size: var(--fs-600); }
.fs-700 { font-size: var(--fs-700); }
.fs-800 { font-size: var(--fs-800); }
.fs-900 { font-size: var(--fs-900); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }