/* =========================================================
   Админ-панель: модальное окно "Все закрытые сделки"
   ========================================================= */

.all-closed-nav-btn {
    border-color: #16a34a !important;
    color: #166534 !important;
    background: #ffffff !important;
}

.all-closed-nav-btn:hover {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #16a34a !important;
}

.all-closed-modal-box {
    width: 1180px !important;
    max-width: 96vw !important;
}

.all-closed-filter {
    display: grid;
    grid-template-columns: 180px 180px 1fr;
    gap: 10px;
    align-items: end;

    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #16a34a;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.all-closed-filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
    justify-content: flex-end;
}

.all-closed-filter-actions button {
    width: auto !important;
    min-width: 96px !important;
    height: 38px !important;
    min-height: 38px !important;
    white-space: nowrap !important;
}

.all-closed-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.all-closed-summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
}

.all-closed-table-wrap {
    max-height: 58vh;
    overflow: auto !important;
}

.all-closed-table-wrap table {
    min-width: 1120px !important;
}

.all-closed-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-bottom: 2px solid #bbf7d0 !important;
}

.all-closed-row td {
    background: #ffffff !important;
}

.all-closed-row:hover td {
    background: #f7fff9 !important;
}

@media (max-width: 950px) {
    .all-closed-modal-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .all-closed-filter {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .all-closed-filter-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .all-closed-filter-actions button {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 12px !important;
    }

    .all-closed-table-wrap {
        max-height: 62vh;
    }

    .all-closed-table-wrap table {
        min-width: 0 !important;
    }
}
