.offers-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.offer-kpi {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
    border-bottom: 4px solid transparent;
}

.offer-kpi.blue { border-bottom-color: #2563eb; }
.offer-kpi.green { border-bottom-color: #16a34a; }

.kpi-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: #dbeafe;
}

.offer-kpi.green .kpi-icon {
    background: #dcfce7;
    color: #16a34a;
}

.offer-kpi span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.offer-kpi strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.05;
}

.offer-kpi p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.offers-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
    margin-bottom: 24px;
}

.offers-panel h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.offers-panel > p {
    color: var(--muted);
    margin-bottom: 20px;
}

.offers-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.offers-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
}

.offers-table th {
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.offers-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
}

.offers-table tr:last-child td {
    border-bottom: none;
}

.offers-table td strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.offers-table td span {
    color: var(--muted);
    font-size: 13px;
}

.supplier-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supplier-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #111827;
    color: white;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
}

.money {
    font-weight: 900;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-suitable,
.status-selected {
    background: #dcfce7;
    color: #166534;
}

.status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-checking {
    background: #fef3c7;
    color: #92400e;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.file-link:hover {
    background: #dbeafe;
}
.file-empty {
    font-size: 22px;
    text-decoration: none;
}

.offers-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

.budget-mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.budget-mini-table th,
.budget-mini-table td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.budget-mini-table th {
    color: var(--muted);
    font-size: 12px;
}

.good-text {
    color: #16a34a;
    font-weight: 900;
}

.budget-progress {
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 20px;
}

.budget-progress span {
    display: block;
    height: 100%;
    background: #16a34a;
    border-radius: inherit;
}

.investor-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.investor-cards div {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fafc;
}

.investor-cards b {
    display: block;
    font-size: 28px;
    margin-bottom: 12px;
}

.investor-cards strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
}

.investor-cards span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1500px) {
    .offers-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .offers-kpi-grid,
    .investor-cards {
        grid-template-columns: 1fr;
    }
}
.offer-group-row td {
    background: #eef4ff;
    border-top: 2px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
    padding: 14px 18px;
}

.offer-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.offer-group-title strong {
    font-size: 15px;
    color: #111827;
}

.offer-group-title span {
    padding: 5px 10px;
    border-radius: 999px;
    background: white;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.status-row-selection td {
    background: #fff1f2;
}

.status-row-selection:hover td {
    background: #ffe4e6;
}

.status-selection {
    background: #fee2e2;
    color: #991b1b;
}

/* ---------- INVESTOR UX ---------- */

.offer-row {
    cursor: pointer;
    transition: all .2s ease;
}

.offer-row:hover {
    background: #f8fafc;
}

.offer-row:hover td {
    background: #f8fafc;
}

.offer-row:hover .money {
    color: #2563eb;
}

.offer-row:hover .supplier-logo {
    transform: scale(1.08);
}

.offer-row:hover .offer-title-link {
    color: #2563eb;
}

.supplier-logo {
    transition: all .2s ease;
}

.offer-title-link {
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    transition: all .2s ease;
}

/* мягкая тень при наведении */

.offer-row:hover {
    box-shadow: inset 4px 0 0 #2563eb;
}

.offer-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    background: #2563eb;
    color: white;

    border-radius: 12px;

    text-decoration: none;
    font-size: 13px;
    font-weight: 800;

    transition: all .2s ease;
}

.offer-detail-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,99,235,.25);
}