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

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 48;
}

body {
    --primary: #333f;
    --secondary: #111f;
    --background-primary: #fff;
    --background-secondary: #f6f6f6;
}

body.dark {
    --primary: #dddf;
    --secondary: #aaa;
    --background-primary: #333f;
    --background-secondary: #222;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: "Sarabun", sans-serif;
    font-weight: 300;

    color: var(--primary);
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #29e;
    border-radius: 5px;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
}

h2 {
    margin: 10px 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

h3 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

body {
    overflow: hidden;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

.panel {
    margin-left: 100px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    background-color: var(--background-secondary);
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

.panel > * {
    flex: 0 0 auto;
}

.banner {
    margin: 0;
    background-color: #0000;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px;
}

h1 {
    margin: 0;
}

.account {
    margin: 0;
}

.space {
    margin: 0;
    padding: 20px 40px;
    flex: 0 1 auto;
    background-color: #0000;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    align-content: flex-start;
    gap: 20px;
}

.card {
    border-radius: 20px;
    background: var(--background-primary);
    box-shadow: 0px 4px 10px 0px #0000001a;

    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: stretch;

    overflow: hidden;

    transition: all 0.2s ease-in-out;
}

.card.none {
    background: #0000;
    box-shadow: none;
}

.card-a {
    flex: 1 0 auto;
    min-width: 300px;
    width: 25%;
    height: 700px;
}

.card-b {
    flex: 1 0 auto;
    min-width: 500px;
    width: 50%;
    height: 700px;
}

.card-c {
    width: 100%;
    height: 500px;
}

.card-d {
    width: 100%;
    height: auto;
}

.card:has(.collapse-button input[type="checkbox"]:checked) {
    height: 100px;
}

.header {
    padding: 20px 40px;
    margin: 0px;
    margin-bottom: 0;
    height: 100px;
    flex: 0 0 auto;
    background-color: #0000;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.header > .title {
    font-size: 36px;
    font-weight: 500;
    color: var(--primary);

    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.body {
    padding: 20px 40px;
    margin: 0px;
    margin-top: 0;
    flex: 1 1 auto;
    background-color: #0000;

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
}

.body.verticle {
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 20px;
}

.card.none > .body {
    padding: 0;
    background-color: #0000;
}

.label {
    margin: 0px;
    flex: 0 1 auto;
    background-color: #0000;
    overflow-x: auto;

    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    align-content: flex-start;
    gap: 10px;
}

.card > .label {
    padding: 20px 40px;
    height: 30%;
}

.header > .label {
    padding: 0px 5px;
    flex: 0 0 auto;
    height: 100%;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    gap: 10px;
}

.body > .graphic,
.body > .label {
    width: 50%;
    height: 100%;
    gap: 40px;
}

.tile {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    align-content: flex-start;
    gap: 20px;
    overflow-x: auto;
}

.minicard {
    background: var(--background-primary);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;

    flex: 0 0 auto;
    height: 35%;
    aspect-ratio: 1.2/1;
    margin: 0px 0px;
    min-width: 100px;

    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

.card-c .minicard {
    height: 60%;
}

.key {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary);
}

.value {
    font-size: 40px;
    font-weight: 500;
    color: var(--primary);
}

.label > .minicard {
    min-width: 120px;
    height: 50px;
    padding: 0px 10px;
    border-radius: 5px;
}

.minicard > div {
    width: 100%;
    padding-left: 10px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
}

.label .key {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin: 0px;
}

.label .value {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary);
    margin: 0px;
}

.body > .label > .minicard {
    width: 25%;
    height: 20%;
}

/* ========================================= */

.progress_bar {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.info_bar {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
