/*TODO: cambiar colores por variables*/

table.holded-visor-table {
    margin-bottom: 0;
}

table.holded-visor-table tr:not(.remainder-row) {
    border-bottom: 1px white solid;
}

table.holded-visor-table tr:has(.project-name) {
    border: none;
}

table.holded-visor-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
}

table.holded-visor-table thead th:nth-child(2) {
    z-index: 3;
    left: 0;
}

table.holded-visor-table tbody th:not(.category-name) {
    background-color: #171718;
    position: sticky;
    left: 0;
}

table.holded-visor-table tbody th:not(.category-name, .project-name) {
    background: linear-gradient(to right, #171718 66.5%, transparent 0);
}

table.holded-visor-table tr.project-row,
table.holded-visor-table tr.total-category {
    border-top: 1px white solid;
}

table.holded-visor-table thead tr th,
table.holded-visor-table tbody tr th.category-name,
table.holded-visor-table tbody tr th.hv-label {
    padding: 4px 10px 4px 10px;
}

table.holded-visor-table tbody tr th.category-name {
    border-right: 1px white solid;
}

table.holded-visor-table tbody tr th.project-name {
    padding-left: 10px;
}

table.holded-visor-table tbody tr td:not(.hv-label) {
    text-align: center;
}

table.holded-visor-table tbody tr.remainder-row .debt {
    color: red;
}

table.holded-visor-table thead th {
    background-color: #1851E3;
    color: #F7F7F8;
}

.hv-table-outer {
    overflow-x: auto;
    max-height: calc(100vh - 140px);
    margin-bottom: 50px;
    width: clamp(550px, 100%, 1100px);
    scrollbar-color: #f7f7f8 transparent;
    scrollbar-width: thin;
}

span.category-container {
    display: block;
    height: calc(100vh - 200px);
    position: 10vh;
    position: sticky;
    top: 0;
}

.hv-container {
    width: 100%;
    padding: 20px;
}


/* === LOADING SCREEN STYLES === */

.hv-loader {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: black;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hv-loader .loading-text {
    max-width: 65%;
    font-size: clamp(2rem, 10vw, 8rem);
    font-family: Satoshi, sans-serif;
    font-weight: bolder;
    line-height: 0.65;
    display: inline-flex;
    gap: 2px;
}


/* BOUNCING */

.hv-loader .bounce-letter {
    display: inline-block;
    animation-name: bounce;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(-10px) scale(1.1);
    }
    20% {
        transform: translateY(3px) scale(0.95);
    }
    30% {
        transform: translateY(0);
    }
}


/* SPINNER */

.loader-spinner {
    width: clamp(0.65rem, 6vw, 5rem);
    height: clamp(0.65rem, 6vw, 5rem);
    border: clamp(4px, 1vw, 1rem) solid rgba(244, 244, 244, 0.15);
    border-top-color: #F7F7F8;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* SLIDER */

.loader-slider {
    width: 80%;
    height: 8px;
    margin: 70px auto;
    background-color: rgba(244, 244, 244, 0.15);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.slider-block {
    width: 20%;
    height: 100%;
    background-color: #f7f7f8;
    border-radius: 4px;
    position: absolute;
    animation: slide 1.2s infinite alternate cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slide {
    0% {
        left: 0;
    }
    100% {
        left: calc(80%);
    }
}


/* PROGRESS BAR - ARREGLAR */

.hv-progress-bar {
    width: 80%;
    height: 8px;
    margin: 70px auto;
    background-color: rgba(244, 244, 244, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #f7f7f8;
    border-radius: 4px;
    transition: width 0.3s ease;
}