path {
    stroke: var(--primary-color);
}

* {
    font-weight: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--primary-color);
}

h1,
p,
h2 {
    color: var(--primary-color);
}

.istok-web-regular {
    font-family: "Istok Web", serif;
    font-weight: 400;
    font-style: normal;
}

.istok-web-bold {
    font-family: "Istok Web", serif;
    font-weight: 700;
    font-style: normal;
}

.istok-web-black {
    font-family: "Istok Web", serif;
    font-weight: 900;
    font-style: normal;
}

.istok-web-regular-italic {
    font-family: "Istok Web", serif;
    font-weight: 400;
    font-style: italic;
}

.istok-web-bold-italic {
    font-family: "Istok Web", serif;
    font-weight: 700;
    font-style: italic;
}

#header {
    background-color: var(--white-transparent-60);
    width: auto;
    border-radius: 24px;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    height: 54px;
}

#header .left-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 16px;
    gap: 12px;
}

.title {
    font-size: 20px;
}

#container {
    width: 100%;
    height: calc(100vh - 16px);
    display: flex;
    flex-direction: column;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#union-box {
    margin-top: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    align-items: end;
}

#top-box-row {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: row;
}

#name {
    font-size: 24px;
    flex-grow: 1;
    margin-left: 24px;
}

#top-box {
    width: 80px;
    height: 55px;
    background-color: var(--white-transparent-60);
    border-radius: 20px 20px 0 0;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#top-box-row-up {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 55px;
    width: 100%;
}

#bottom-box {
    width: 100%;
    flex-grow: 1;
    min-height: 0;
    position: relative;
    overflow-y: auto;
    padding-bottom: 16px;
    display: grid;
    grid-template-rows: auto;
    padding-top: 8px;
    gap: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-mask-image: -webkit-linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0px,
    black 4px,
    black calc(100% - 4px),
    rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0px,
    black 4px,
    black calc(100% - 4px),
    rgba(0, 0, 0, 0) 100%);
}

#bottom-box::-webkit-scrollbar {
    display: none;
}

.row-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.chart-section {
    background-color: var(--white-transparent-60);
    border-radius: 20px;
    min-height: 100%;
    padding: 16px;
    display: flex;
    gap: 6px;
    flex-direction: column;
}

.table-section {
    gap: 4px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.text-section {
    background-color: var(--white-transparent-60);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 850px) {
    #menu-expand-icon {
        display: none;
    }
}

.text-section-title {
    font-weight: bold;
    text-align: center;
    color: var(--secondary-color);
    font-size: 24px;
}

.text-section-hint {
    opacity: .8;
    color: var(--primary-color);
    text-align: center;
    font-size: 16px;
}

.chart-section-container {
    flex-direction: column;
    display: flex;
    height: calc(100% - 24px);
}

.chart-canvas {
    flex: 1;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}

.chart-canvas.has-multiple-value {
    max-height: calc(100% - 36px);
}

.chart-canvas:not(:has(.has-multiple-value)) {
    margin-top: 6px;
}

.chart-title {
    font-size: 16px;
    font-weight: bold;
}


.table-title {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    width: min-content;
    align-items: center;
    margin-left: 16px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-title svg {
    width: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-title path {
    stroke: var(--secondary-color);
}

.table-title a {
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.table-title:hover a {
    color: var(--secondary-color);
    margin-left: 8px;
}

.table-title:hover svg {
    width: 20px;
}

.menu:hover ~ .sidebar {
    left: 0;
}

.menu {
    width: 24px;
    display: flex;
    visibility: visible;
    align-items: center;
    opacity: 1;
    justify-content: center;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:disabled, select:disabled, input:read-only {
    opacity: .6;
    cursor: default;
}

.menu.shrink {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

.group-text {
    font-size: 16px;
    color: var(--primary-color);
    opacity: .8;
    margin-left: 16px;
    margin-top: 16px;
}

#search-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    border-radius: 16px;
    height: 40px;
    padding-left: 8px;
    gap: 8px;
    min-width: 20vw;
    padding-right: 8px;
    margin-right: auto;
    margin-left: auto;
}

#search-container:has(input) {
    background-color: var(--background-gradient-start);
}

#search-input:focus {
    outline: none;
}

.no-animation {
    transition: none !important;
}

#loading {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--transparent-black-50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--white);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.table-container {
    width: 100%;
    overflow: auto;
    border-radius: 20px;
    flex-grow: 1;
    background-color: var(--white-transparent-60);
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.table-container table {
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    overflow: hidden;
}

.table-container ::-webkit-scrollbar {
    display: none;
}

thead,
tbody {
    display: block;
    width: 100%;
    position: relative;
}

thead::after {
    content: '';
    position: absolute;
    left: 16px;
    width: calc(100% - 16px);
    height: 1px;
    background-color: var(--transparent-black-10);
}

tr {
    width: 100%;
    flex-wrap: nowrap;
    display: flex;
    transition: .1s;
}

th,
td {
    padding-left: 16px;
    position: relative;
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    display: inline-flex;
    height: 54px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 16px;
}

th {
    background-color: var(--secondary-color);
    color: var(--white);
}

td {
    cursor: pointer;
}

.file-link path {
    stroke: var(--secondary-color);
}

.custom-checkbox .checkmark-icon path {
    stroke: var(--white);
}

th[data-col="checkbox"], td[data-col="checkbox"] {
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 100px;
    max-lines: 1;
}

th {
    gap: 4px;
}

th:not([data-col="checkbox"]), td:not([data-col="checkbox"]) {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background-color: var(--background-gradient-start-30);
}

tbody tr:hover {
    background-color: var(--secondary-color-20);
}

td::before,
th::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 25px;
    background-color: var(--transparent-black-20);
    border: 1px;
}

td:last-child::before,
th:last-child::before {
    display: none;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    display: flex;
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid var(--highlight-color);
    background-color: var(--background-color-f4);
    align-items: center;
    justify-content: center;
}

.custom-checkbox input:checked + .checkmark {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
}

.custom-checkbox .checkbox-input:checked + .checkmark .checkmark-icon {
    display: block;
}

.custom-checkbox .checkmark-icon {
    display: none;
}

.file-link {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
    color: var(--secondary-color);
}

.file-link:focus {
    border: none;
    outline: none;
}