/* --- Управление сегментами (админ) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center; align-items: center;
}
.modal-content {
    background: #fff;
    margin: 60px auto;
    padding: 32px 24px;
    border-radius: 12px;
    max-width: 900px;
    min-width: 500px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    position: relative;
}
.close {
    position: absolute;
    right: 18px; top: 12px;
    font-size: 32px;
    color: #888;
    cursor: pointer;
}
.close:hover { color: #f00; }

.manage-segments-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}
.manage-segments-form select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}
#msSegmentTableContainer {
    margin-top: 18px;
    max-height: 350px;
    overflow-y: auto;
}
.manage-segments-inline #msSegmentTableContainer {
    max-height: none;
    overflow: visible;
}
#msSegmentTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    background: #fafbfc;
}
#msSegmentTable th, #msSegmentTable td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
    font-size: 15px;
}
#msSegmentTable th {
    background: #e3eafc;
    font-weight: bold;
}
.danger-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 15px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
}
.danger-btn:hover {
    background: #b71c1c;
}

/* Стили для модального окна детальной информации о задаче */
.task-detail-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.task-detail-item strong {
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

.task-detail-item ul {
    margin: 5px 0;
    padding-left: 20px;
}

.task-detail-item li {
    margin-bottom: 3px;
    color: #6c757d;
}

#taskDetailsModal .modal-content {
    max-width: 500px;
    padding: 25px;
}

#taskDetailsModal h2 {
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.details-btn {
    height: 36px;
    min-width: 120px;
    font-size: 18px;
    padding: 0 28px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    margin-left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.details-btn:hover {
    background: #0056b3;
    box-shadow: 0 4px 16px rgba(0,123,255,0.10);
    transform: translateY(-2px) scale(1.04);
}