.mip-detail-panel {
    margin-top: 18px;
}

.mip-detail-heading {
    align-items: flex-end;
}

.mip-table-tools {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.mip-search-field {
    display: grid;
    gap: 5px;
    min-width: 250px;
}

.mip-search-field span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mip-search-field input {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #d7e0db;
    border-radius: 9px;
    background: #fff;
    color: #182230;
    outline: none;
}

.mip-search-field input:focus {
    border-color: #008e53;
    box-shadow: 0 0 0 3px rgba(0, 142, 83, .10);
}

.mip-clear-search {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d7e0db;
    border-radius: 9px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-weight: 700;
}

.mip-clear-search:hover {
    background: #f8faf9;
}

.mip-detail-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 14px;
    color: #667085;
    font-size: 12px;
}

.mip-table-section + .mip-table-section {
    margin-top: 22px;
}

.mip-table-section-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 9px;
}

.mip-table-section-header h4 {
    margin: 0;
    color: #174d38;
    font-size: 15px;
}

.mip-table-section-header span {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.mip-table-scroll {
    overflow-x: auto;
    border: 1px solid #dfe7e2;
    border-radius: 12px;
    background: #fff;
}

.mip-market-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.mip-market-table th,
.mip-market-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf1ee;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
}

.mip-market-table th:first-child,
.mip-market-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    background: inherit;
}

.mip-market-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef6f1;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.mip-market-table thead th:first-child {
    z-index: 3;
    background: #eef6f1;
}

.mip-market-table tbody tr:nth-child(even) {
    background: #fbfcfb;
}

.mip-market-table tbody tr:hover {
    background: #f3f8f5;
}

.mip-market-table tbody tr:hover td:first-child {
    background: #f3f8f5;
}

.mip-market-table tbody tr:nth-child(even) td:first-child {
    background: #fbfcfb;
}

.mip-market-table td:first-child {
    color: #182230;
    font-weight: 700;
    background: #fff;
}

.mip-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
}

.mip-sort-indicator {
    color: #98a2b3;
    font-size: 9px;
}

.mip-sort-button.is-active .mip-sort-indicator {
    color: #007d42;
}

.mip-positive {
    color: #027a48;
    font-weight: 800;
}

.mip-negative {
    color: #b42318;
    font-weight: 800;
}

.mip-neutral {
    color: #667085;
}

.mip-detail-empty {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed #cfd9d3;
    border-radius: 12px;
    color: #667085;
    text-align: center;
}

@media (max-width: 780px) {
    .mip-detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mip-table-tools {
        width: 100%;
    }

    .mip-search-field {
        min-width: 0;
        flex: 1;
    }

    .mip-detail-meta {
        flex-direction: column;
        gap: 4px;
    }
}

@media print {
    .mip-table-tools {
        display: none;
    }

    .mip-table-scroll {
        overflow: visible;
        border: 0;
    }

    .mip-market-table {
        min-width: 0;
        font-size: 9px;
    }

    .mip-market-table th,
    .mip-market-table td {
        padding: 5px 6px;
        white-space: normal;
    }

    .mip-market-table th:first-child,
    .mip-market-table td:first-child {
        position: static;
    }
}
