/* Outage page specific styles */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    display: block;
}

.event-container {
    position: relative;
    width: 1000px;
    margin: 0 auto;
}

.event-container--wide {
    width: 1200px;
}

.event-container--compact {
    width: 900px;
}

.outage-details {
    margin-left: 0;
    width: 100%;
}

#outageIdFilter::placeholder {
    font-size: 13px;
}

#confirmPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.form-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.form-section.active {
    max-height: 10000px;
    opacity: 1;
    overflow: visible;
}

#exportPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.modal-dialog {
    margin: 0 auto;
}

.modal-dialog-word {
    margin: 400px auto 0 auto !important;
}

button.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    margin-left: 10px;
}

#outageForm .card,
#editOutageForm .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

#outageForm .card-header,
#editOutageForm .card-header {
    border-bottom: 2px solid #dee2e6;
}

#outageForm label,
#editOutageForm label {
    font-weight: 500;
    color: #495057;
}

.filter-container {
    position: fixed;
    top: 300px;
    left: 1px;
    width: 203px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.filter-container .form-group {
    margin-bottom: 15px;
}

.filter-container .form-check {
    margin-bottom: 10px;
}

.filter-container label {
    font-weight: bold;
}

.filter-container .text-center a {
    width: 100%;
}

.outage-toggle {
    width: 1200px;
    margin-left: 0;
}

.outage-toggle--compact {
    width: 900px;
}

.outage-details.open {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 10px;
    width: auto;
    opacity: 1;
    margin-top: -1px;
    margin-left: 0;
}

.outage-details-container {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 10px;
    width: auto;
    max-width: 1800px;
    opacity: 1;
    margin-top: -1px;
    margin-left: 0;
}

.outage-details-container--compact {
    max-width: 1050px;
}

/* Кнопка прокрутки вверх */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

.scroll-to-top-btn.show {
    display: flex;
}
