/*
 * IPje.nl Netblocks
 * Version: 1.0.0
 * Developed by Team XITENS
 */

.ipje-netblock-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.ipje-netblock-form .ipje-input {
    width: 100%;
    box-sizing: border-box;
}

.ipje-netblock-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.ipje-netblock-stat {
    border: 1px solid var(--border, #8884);
    background: var(--background, transparent);
    border-radius: 10px;
    padding: 18px;
    min-width: 0;
}

.ipje-netblock-stat span {
    display: block;
    font-size: 13px;
    margin-bottom: 9px;
}

.ipje-netblock-stat strong {
    display: block;
    font-size: clamp(16px, 2vw, 23px);
    color: var(--primary-text, #FF7F00);
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.ipje-netblock-table {
    max-height: 420px;
    overflow: auto;
    margin: 15px 0;
}

.ipje-netblock-table .ipje-table {
    table-layout: auto;
    min-width: 520px;
}

.ipje-netblock-table .ipje-table th,
.ipje-netblock-table .ipje-table td {
    width: auto;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.ipje-netblock-table .ipje-table th:last-child,
.ipje-netblock-table .ipje-table td:last-child {
    width: 75px;
    text-align: center;
}

.ipje-netblock-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

[data-netblock-panel][hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .ipje-netblock-form {
        grid-template-columns: 1fr;
    }

    .ipje-netblock-form .ipje-button {
        width: 100%;
        justify-content: center;
    }

    .ipje-netblock-stats {
        grid-template-columns: 1fr;
    }

    .ipje-netblock-table {
        max-height: 300px;
    }
}

/* Search form alignment fix */

.ipje-netblock-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.ipje-netblock-form .ipje-field {
    margin: 0;
    min-width: 0;
}

.ipje-netblock-form .ipje-input,
.ipje-netblock-form .ipje-button {
    height: 48px;
    box-sizing: border-box;
    margin: 0;
}

.ipje-netblock-form .ipje-button {
    padding: 0 24px;
    white-space: nowrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .ipje-netblock-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ipje-netblock-form .ipje-button {
        width: 100%;
    }
}
