﻿.skeleton *:empty {
    background: white;
    background-position: -500px 0;
    animation: skeletonShine 1s linear 0s infinite normal forwards;
    background-image: linear-gradient(135deg,white 0%,#edeef1 20%,white8 40%,white 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
}

.skeleton__section + .skeleton__section {
    margin-top: 16px;
}

.skeleton__section--actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton__section--card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
}

.skeleton__section--calendar {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton__header {
    margin-bottom: 6px;
    height: 32px;
    width: 200px;
    max-width: 35%;
}

.skeleton__header--long {
    width: 300px;
    max-width: 85%;
}

.skeleton__hr {
    height: 2px;
    width: 100%;
    margin-bottom: 16px;
}

.skeleton__p {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

    .skeleton__p:last-child {
        width: 45%;
    }

.skeleton__p--short {
    max-width: 120px;
}

.skeleton__button {
    height: 24px;
    width: 56px;
    margin-bottom: 8px;
}

    .skeleton__button:nth-child(2n) {
        width: 72px;
    }

    .skeleton__button:nth-child(3n+1) {
        width: 48px;
    }

.skeleton__input {
    height: 32px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton__input--half {
    width: 50%;
}

.skeleton__tr {
    display: flex;
    gap: 12px;
}

    .skeleton__tr:first-child .skeleton__td {
        height: 24px;
        margin-bottom: 12px;
    }

.skeleton__td {
    flex: 1 1 100%;
    height: 16px;
    margin: 4px 0;
}

    .skeleton__td:nth-child(2) {
        flex-basis: 500%;
    }

    .skeleton__td:nth-child(3) {
        flex-basis: 300%;
    }

    .skeleton__td:nth-child(4) {
        flex-basis: 900%;
    }

    .skeleton__td:nth-child(5) {
        flex-basis: 700%;
    }

.skeleton__img {
    height: 64px;
    width: 64px;
    border-radius: 8px;
}

.skeleton__icon {
    height: 24px;
    width: 24px;
    border-radius: 4px;
}

.skeleton__block {
    height: 56px;
    width: 100%;
    margin-bottom: 12px;
}

.skeleton__block--empty {
    background: none !important;
}

.skeleton__block--xs {
    height: 12px;
}

.skeleton__block--s {
    height: 24px;
}

.skeleton__block--l {
    height: 92px;
}

.skeleton__block--xl {
    height: 128px;
}

.skeleton__group {
    height: 24px;
    width: 200px;
    max-width: 35%;
    margin-top: 16px;
    margin-bottom: 12px;
}

.skeleton__tree {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

    .skeleton__tree * {
        margin: 0;
    }

    .skeleton__tree .skeleton__p {
        width: 100%;
        max-width: none;
    }

.skeleton__tree--0 {
    padding-left: 0;
}

.skeleton__tree--1 {
    padding-left: 16px;
}

.skeleton__tree--2 {
    padding-left: 24px;
}

.skeleton__btn {
    height: 35px;
    width: 35px;
    border-radius: 3px;
    
}
.skeleton__btn__icon {
    height: 24px;
    width: 24px;
    border-radius: 3px;
}
.skeleton__section--actions--rigth {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    margin-bottom: 16px;
}
@keyframes skeletonShine {
    to {
        background-position: 500px 0;
    }
}


.skeleton-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skeleton-card {
    width: 320px;
    height: 180px;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient( 90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100% );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5f5e5ebf;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: sans-serif;
    z-index: 9999;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #00d1b2;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}