/* =========================================================
   Отчет дня: подробное описание при наведении + задачи
   ========================================================= */

.report-filter-grid {
    grid-template-columns: 1.1fr .8fr .9fr 1fr !important;
}

#adminReportManager {
    min-height: 42px;
}

.admin-report-row-hover {
    cursor: help;
}

.admin-report-row-hover:hover td {
    background: #f8fafc !important;
}

.admin-report-hover-box {
    position: fixed;
    display: none;
    width: 460px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    z-index: 2147483647;

    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dbe4ee;
    border-left: 6px solid #f59e0b;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);

    color: #111827;
    font-size: 13px;
}

.admin-report-hover-title {
    margin-bottom: 10px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.admin-report-hover-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 12px;
}

.admin-report-hover-stats div {
    padding: 8px;
    border-radius: 11px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.admin-report-hover-stats span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 3px;
}

.admin-report-hover-stats strong {
    color: #111827;
    font-size: 14px;
}

.admin-report-hover-box h4 {
    margin: 10px 0 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.admin-report-hover-line {
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    margin-bottom: 5px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.admin-report-hover-line strong {
    color: #111827;
}

.admin-report-hover-line span {
    color: #64748b;
    line-height: 1.25;
}

.admin-report-hover-line.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.admin-report-hover-line.danger strong {
    color: #991b1b;
}

.admin-report-hover-line.done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.admin-report-hover-line.done strong,
.admin-report-hover-line.done span {
    color: #166534;
}

.admin-report-hover-ok,
.admin-report-hover-empty {
    padding: 7px 8px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.admin-report-hover-empty {
    background: #f8fafc;
    color: #64748b;
}

/* Раскрытый подробный отчет */
.admin-report-detail-item.task {
    align-items: flex-start !important;
}

.admin-report-detail-item.task-done {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.admin-report-detail-item.task-done strong,
.admin-report-detail-item.task-done span {
    color: #166534 !important;
}

.admin-report-detail-item.task-undone {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}

.admin-report-task-reason {
    display: block;
    width: 100%;
    color: #9a3412;
    font-weight: 800;
}

.admin-report-task-reason.muted {
    color: #991b1b;
}

.green-mark {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534 !important;
    font-weight: 900;
}

.admin-report-detail-item.planned {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.done-bottom {
    margin-bottom: 0;
}

@media (max-width: 950px) {
    .report-filter-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-report-hover-box {
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
}
