.ip-page {
    --ip-blue: #0a4074;
    --ip-teal: #0d8f9d;
    --ip-gold: #d9a441;
    --ip-border: #dce5ec;
    --ip-muted: #5f6b7a;
    margin: 12px 0 36px;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

.ip-hero {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--ip-border);
    border-left: 6px solid var(--ip-gold);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 64, 116, .08);
}

.ip-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ip-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.ip-hero h1 {
    margin: 0 0 10px;
    color: var(--ip-blue) !important;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.ip-hero p {
   
    margin: 0 0 14px;
    color: var(--ip-muted);
    font-size: 14px;
    line-height: 1.65;
}

.ip-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ip-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #bfd5e8;
    border-radius: 6px;
    color: var(--ip-blue);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ip-links a:hover {
    color: #fff;
    background: var(--ip-blue);
    text-decoration: none;
}

.ip-directory-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 18px;
    padding: 13px 16px;
    border: 1px solid #bdd8df;
    border-left: 5px solid var(--ip-teal);
    border-radius: 8px;
    background: #f6fbfc;
    box-shadow: 0 8px 18px rgba(10, 64, 116, .05);
}

.ip-directory-switch span {
    color: #234057;
    font-size: 13px;
    font-weight: 700;
}

.ip-directory-switch a {
    color: #075f6b;
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ip-directory-switch a:hover,
.ip-directory-switch a:focus {
    color: var(--ip-blue);
    text-decoration-thickness: 2px;
}

.ip-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ip-stat {
    padding: 15px 16px;
    border: 1px solid var(--ip-border);
    border-top: 4px solid var(--ip-gold);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(10, 64, 116, .05);
}

.ip-stat strong {
    display: block;
    color: var(--ip-blue);
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 5px;
}

.ip-stat span {
    color: var(--ip-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.ip-filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) minmax(150px, .75fr) minmax(180px, .85fr) minmax(140px, .65fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--ip-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(10, 64, 116, .05);
}

.ip-filter label {
    display: block;
    margin-bottom: 6px;
    color: var(--ip-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ip-filter input,
.ip-filter select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c9d9e8;
    border-radius: 6px;
    padding: 8px 10px;
    color: #111827;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.ip-filter select {
    cursor: pointer;
}

#clearIpFilters {
    min-height: 40px;
    border: 1px solid #bfd5e8;
    border-radius: 6px;
    padding: 8px 14px;
    color: var(--ip-blue);
    background: #f7fbfe;
    font-size: 13px;
    font-weight: 800;
}

.ip-table-card {
    border: 1px solid var(--ip-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(10, 64, 116, .07);
}

.ip-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#example_IP {
    width: 100% !important;
    border: 0 !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 13px;
    background: #fff;
}

#example_IP thead th {
    border: 0 !important;
    border-bottom: 3px solid var(--ip-gold) !important;
    padding: 12px 14px !important;
    color: #fff;
    background: var(--ip-blue);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

#example_IP tbody td {
    border: 0 !important;
    border-bottom: 1px solid #e8eef5 !important;
    padding: 14px 14px !important;
    vertical-align: top;
    color: #243447;
    font-size: 13px;
    line-height: 1.6;
    background: #fff;
    transition: background-color .15s ease, box-shadow .15s ease;
}

#example_IP tbody tr:nth-child(even) td {
    background: #fafcfe;
}

#example_IP tbody tr:hover td {
    background: #f1f8fb;
    box-shadow: inset 0 1px 0 #dbeaf3, inset 0 -1px 0 #dbeaf3;
}

#example_IP tbody tr:hover td:first-child {
    box-shadow: inset 4px 0 0 var(--ip-gold), inset 0 1px 0 #dbeaf3, inset 0 -1px 0 #dbeaf3;
}

#example_IP th:nth-child(1),
#example_IP td:nth-child(1) { width: 24%; }
#example_IP th:nth-child(2),
#example_IP td:nth-child(2) { width: 12%; }
#example_IP th:nth-child(3),
#example_IP td:nth-child(3) { width: 16%; }
#example_IP th:nth-child(4),
#example_IP td:nth-child(4) { width: 36%; }
#example_IP th:nth-child(5),
#example_IP td:nth-child(5) {
    width: 12%;
    text-align: center;
}

.ip-name {
    color: #102033;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
}

.ip-muted {
    color: #607086;
    font-size: 12px;
    line-height: 1.5;
}

.ip-page #example_IP tbody td:nth-child(2),
.ip-page #example_IP tbody td:nth-child(3),
.ip-page #example_IP tbody td:nth-child(4) {
    color: #102033;
    font-weight: 400;
}

.ip-page #example_IP .problem-detail-btn {
    border: 1px solid #a9cde5;
    background: #f5fbff;
    color: var(--ip-blue);
    border-radius: 7px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(10, 64, 116, .07);
}

.ip-page #example_IP .problem-detail-btn:before {
    content: "\25C9";
    display: inline-block;
    margin-right: 6px;
    color: var(--ip-teal);
    font-size: 10px;
    line-height: 1;
    vertical-align: 1px;
}

.ip-page #example_IP .problem-detail-btn:hover,
.ip-page #example_IP .problem-detail-btn:focus {
    border-color: var(--ip-blue);
    background: var(--ip-blue);
    color: #fff;
    box-shadow: 0 6px 14px rgba(10, 64, 116, .18);
}

.ip-page #example_IP .problem-detail-btn:hover:before,
.ip-page #example_IP .problem-detail-btn:focus:before {
    color: #fff;
}

.ip-empty {
    margin: 0;
    padding: 16px;
    color: #8a2f20;
    background: #fff7f4;
    border-left: 4px solid #ff6347;
}

.ip-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-top: 1px solid var(--ip-border);
    background: linear-gradient(180deg, #f8fbfd, #f2f7fa);
    font-size: 13px;
}

.ip-table-footer .dataTables_length,
.ip-table-footer .dataTables_info,
.ip-table-footer .dataTables_paginate {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #243447;
    font-size: 13px;
}

.ip-table-footer .dataTables_length {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 11px !important;
    border: 1px solid #d7e4ee;
    border-radius: 7px;
    background: #fff;
    font-weight: 700;
}

.ip-table-footer .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #102033;
    font-size: 13px;
    font-weight: 700;
}

.ip-table-footer .dataTables_length select {
    min-width: 58px;
    min-height: 30px;
    border: 1px solid #c9d9e8;
    border-radius: 6px;
    padding: 4px 24px 4px 8px;
    background-color: #fff;
    color: #102033;
    font-size: 13px;
    font-weight: 700;
}

.ip-table-footer .dataTables_info {
    flex: 1 1 260px;
    text-align: center;
    color: #415166;
    font-weight: 600;
}

.ip-table-footer .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.ip-table-footer .dataTables_paginate .paginate_button {
    min-width: 34px;
    min-height: 34px;
    margin: 0 !important;
    border: 1px solid #c9d9e8 !important;
    border-radius: 6px !important;
    padding: 7px 10px !important;
    color: var(--ip-blue) !important;
    background: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none !important;
}

.ip-table-footer .dataTables_paginate .paginate_button.previous,
.ip-table-footer .dataTables_paginate .paginate_button.next {
    min-width: 70px;
}

.ip-table-footer .dataTables_paginate .paginate_button.current,
.ip-table-footer .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--ip-blue) !important;
    background: var(--ip-blue) !important;
    color: #fff !important;
}

.ip-table-footer .dataTables_paginate .paginate_button:hover,
.ip-table-footer .dataTables_paginate .paginate_button:focus {
    border-color: var(--ip-blue) !important;
    background: #eef7fc !important;
    color: var(--ip-blue) !important;
}

.ip-table-footer .dataTables_paginate .paginate_button.disabled,
.ip-table-footer .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .48;
    border-color: #d7e4ee !important;
    background: #fff !important;
    color: #6b7280 !important;
    cursor: default;
}

#example_IP_processing {
    border: 1px solid var(--ip-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ip-blue);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(10, 64, 116, .12);
}

@media (max-width: 900px) {
    .ip-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ip-hero { padding: 16px; }
    .ip-directory-switch {
        align-items: flex-start;
        flex-direction: column;
    }

    .ip-stats,
    .ip-filter-panel { grid-template-columns: 1fr; }

    .ip-table-card {
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .ip-table-scroll { overflow-x: visible; }

    #example_IP,
    #example_IP tbody,
    #example_IP tr,
    #example_IP td {
        display: block;
        width: 100% !important;
    }

    #example_IP {
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
        background: transparent;
    }

    #example_IP thead { display: none; }

    #example_IP tbody tr {
        border: 1px solid var(--ip-border);
        border-left: 5px solid var(--ip-gold);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 8px 18px rgba(10, 64, 116, .06);
        overflow: hidden;
    }

    #example_IP tbody td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        border-bottom: 1px solid #e5edf4 !important;
        padding: 11px 12px !important;
        text-align: left !important;
        overflow-wrap: anywhere;
        box-shadow: none !important;
    }

    #example_IP tbody td:last-child { border-bottom: 0 !important; }

    #example_IP tbody td::before {
        content: attr(data-label);
        color: var(--ip-blue);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .4px;
        text-transform: uppercase;
    }

    #example_IP tbody tr:nth-child(even) td,
    #example_IP tbody tr:hover td { background: transparent; }

    #example_IP tbody td:last-child .problem-detail-btn {
        width: 100%;
        justify-content: center;
    }

    .ip-table-footer {
        display: block;
        border: 1px solid var(--ip-border);
        border-radius: 8px;
        background: #fff;
        padding: 12px;
    }

    .ip-table-footer .dataTables_length,
    .ip-table-footer .dataTables_info,
    .ip-table-footer .dataTables_paginate {
        margin: 8px 0 !important;
        text-align: center;
    }

    .ip-table-footer .dataTables_length,
    .ip-table-footer .dataTables_length label,
    .ip-table-footer .dataTables_paginate {
        justify-content: center;
        width: 100%;
    }

    .ip-table-footer .dataTables_paginate { flex-wrap: wrap; }
}
