#loader-container {
    background-color: rgba(255, 255, 255, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-spinner {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    animation: spin 2s linear infinite, pulse 1.5s ease-in-out infinite;
}

.spinner-inner {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    perspective: 800px;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 2px solid #007bff;
    border-radius: 50%;
    animation: rotate-ring 2s linear infinite;
    transform-style: preserve-3d;
}

.spinner-dot {
    width: 1rem;
    height: 1rem;
    background-color: #007bff;
    border-radius: 50%;
    animation: bounce 1s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes rotate-ring {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Scroll to top button styles */
#scroll-to-top {
    position: fixed;
    bottom: 35px;
    right: 15px;
    display: none;
    max-width: 40px;
}
.form-check-input {
    clear: left;
}

.form-switch.form-switch-sm {
    margin-bottom: 0.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-sm .form-check-input {
    height: 1rem;
    width: calc(1rem + 0.75rem);
    border-radius: 2rem;
}

.form-switch.form-switch-md {
    margin-bottom: 1rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-md .form-check-input {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
}

.form-switch.form-switch-lg {
    margin-bottom: 1.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-lg .form-check-input {
    height: 2rem;
    width: calc(3rem + 0.75rem);
    border-radius: 4rem;
}

.form-switch.form-switch-xl {
    margin-bottom: 2rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-xl .form-check-input {
    height: 2.5rem;
    width: calc(4rem + 0.75rem);
    border-radius: 5rem;
}
.corner-label {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.corner-label::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 70px 70px 0 0;
    position: absolute;
    top: 0;
    left: 0;
}

.corner-label-production::before {
    border-color: #1cc88a transparent transparent transparent;
}

.corner-label-test::before {
    border-color: #f6c23e transparent transparent transparent;
}

.label-text {
    position: absolute;
    transform: rotate(-45deg);
    white-space: nowrap;
    color: #fff;
    font-family: 'Pacifico', cursive;
    font-size: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.label-text-test {
    top: 17px;
    left: 10px;
}

.label-text-production {
    top: 18px;
}
.not-set {
    color: #dc3545;
    font-style: italic;
}

a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: min-content;
    width: 100%;
    /*width: fit-content;*/
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.kv-grid-table td {
    text-align: center;
    white-space: normal !important;
}

.kv-grid-table th {
    text-align: center;
}

.kv-grid-table a:hover {
    text-decoration: #0a53be;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-item {
    list-style: none;
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: #4e73df; /* Updated color to #4e73df */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.page-link:hover {
    background-color: #ecf0f1;
}

.page-item.active .page-link {
    background-color: #4e73df; /* Updated color to #4e73df */
    color: #fff;
    border: 1px solid #4e73df; /* Updated color to #4e73df */
}

.page-item.disabled .page-link {
    color: #95a5a6;
    pointer-events: none;
    cursor: not-allowed;
}
.current-date-time-widget {
    position: fixed;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: bottom 0.3s ease;
    z-index: 9999;
}
.current-date-time-widget p {
    /*margin: 10px;*/
    margin: 0px 0px 15px 0px;
}
.current-date-time-widget.active {
    bottom: 20px; /* Показываем виджет на половину */
}

@media screen and (min-width: 993px) {
    .current-date-time-widget {
        left: calc(50% + 132px);
    }
}





