@charset "UTF-8";

.dhip-container {
    display: grid;
    gap: 18px;
    max-width: none;
    margin: 0;
}

.dhip-search-section,
.dhip-summary-section,
.dhip-results-section,
.dhip-empty-section,
.dhip-error-section {
    border: 1px solid rgba(150, 115, 90, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 241, 235, 0.92) 100%);
    box-shadow: 0 10px 30px rgba(82, 54, 38, 0.06);
}

.dhip-search-section,
.dhip-summary-section,
.dhip-results-section,
.dhip-empty-section,
.dhip-error-section {
    padding: 20px;
}

.dhip-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 110px auto;
    gap: 12px;
    align-items: center;
}

.dhip-input,
.dhip-select,
.dhip-page-input {
    min-width: 0;
}

.dhip-hint,
.dhip-empty-section p,
#dhip-error-message {
    margin: 14px 0 0;
}

.dhip-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dhip-summary-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(150, 115, 90, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.dhip-summary-card span {
    color: #6b7280;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dhip-summary-card strong {
    min-width: 0;
    color: #1f2937;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.dhip-unique-ips {
    margin-top: 18px;
}

.dhip-unique-ips h3,
.dhip-results-head h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.dhip-ip-list,
.dhip-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dhip-ip-chip,
.dhip-value-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    background: #ebfaf6;
    color: #0d7667;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dhip-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dhip-page-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dhip-page-label {
    color: #6b7280;
    font-weight: 800;
}

.dhip-page-btn {
    min-height: 44px !important;
    padding: 10px 14px !important;
}

.dhip-table-wrap {
    overflow: auto;
    border: 1px solid rgba(150, 115, 90, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
}

.dhip-results-table {
    width: 100%;
    border-collapse: collapse;
}

.dhip-results-table th,
.dhip-results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(150, 115, 90, 0.12);
    text-align: left;
    vertical-align: top;
}

.dhip-results-table th {
    background: #f7efe8;
    color: #6b5f58;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dhip-results-table tbody tr:last-child td {
    border-bottom: none;
}

.dhip-results-table td {
    color: #1f2937;
    overflow-wrap: anywhere;
}

.dhip-muted {
    color: #9aa2af;
}

.dhip-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dhip-spin 0.8s linear infinite;
}

@keyframes dhip-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .dhip-search-box,
    .dhip-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dhip-search-section,
    .dhip-summary-section,
    .dhip-results-section,
    .dhip-empty-section,
    .dhip-error-section {
        padding: 16px;
        border-radius: 20px;
    }

    .dhip-search-box,
    .dhip-summary-grid {
        grid-template-columns: 1fr;
    }

    .dhip-results-head {
        display: grid;
        align-items: start;
    }

    .dhip-page-controls,
    .dhip-page-btn {
        width: 100%;
    }

    .dhip-page-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dhip-results-table,
    .dhip-results-table thead,
    .dhip-results-table tbody,
    .dhip-results-table tr,
    .dhip-results-table td {
        display: block;
    }

    .dhip-results-table thead {
        display: none;
    }

    .dhip-results-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .dhip-results-table tr {
        padding: 14px;
        border: 1px solid rgba(150, 115, 90, 0.12);
        border-radius: 16px;
        background: #ffffff;
    }

    .dhip-results-table td {
        display: grid;
        gap: 6px;
        padding: 8px 0;
        border: none;
    }

    .dhip-results-table td::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}