/**
 * 3GPP Specifications Display styles
 */

.threegpp-specs-table-wrapper {
    margin: 32px 0;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.threegpp-specs-entry-content {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.threegpp-specs-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 0;
    flex-wrap: wrap;
}

.threegpp-specs-controls label {
    color: #334e68;
    font-size: 14px;
    font-weight: 700;
}

.threegpp-specs-controls select {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.2;
    background: #fff;
    min-width: 170px;
    color: #1f2937;
}

.threegpp-specs-loading-message {
    align-items: center;
    color: #0f4c81;
    display: none;
    font-size: 15px;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    min-height: 220px;
    padding: 28px;
}

.threegpp-specs-loading-content {
    display: grid;
    gap: 8px;
    min-width: min(420px, 80vw);
}

.threegpp-specs-loading-content strong {
    color: #0f4c81;
}

.threegpp-specs-loading-progress {
    height: 12px;
    width: 100%;
}

.threegpp-specs-loading-detail {
    color: #486581;
    font-size: 13px;
    font-weight: 600;
}

.threegpp-specs-loading .threegpp-specs-loading-message {
    display: flex;
}

.threegpp-specs-loading .threegpp-specs-table-scroll {
    max-height: 0;
    opacity: 0;
    overflow: hidden !important;
}

.threegpp-specs-loading-spinner {
    animation: threegpp-specs-spin 0.8s linear infinite;
    border: 3px solid #dbeafe;
    border-top-color: #0f6ad8;
    border-radius: 999px;
    display: inline-block;
    height: 24px;
    width: 24px;
}

@keyframes threegpp-specs-spin {
    to {
        transform: rotate(360deg);
    }
}

.threegpp-scroll-hint {
    display: none;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.threegpp-scroll-hint::after {
    content: "\2192";
    margin-left: 8px;
}

.threegpp-specs-can-scroll .threegpp-scroll-hint {
    display: inline-block;
}

#threegpp-specs-table {
    width: 100% !important;
    min-width: 1260px !important;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.threegpp-specs-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-gutter: stable both-edges;
}

.threegpp-specs-table-wrapper table.dataTable thead th,
#threegpp-specs-table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: #334e68;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    padding: 16px 18px !important;
    border-bottom: 1px solid #d9e2ec;
    border-right: 1px solid #e6edf5;
    vertical-align: middle;
    line-height: 1.45;
    box-sizing: border-box;
}

.threegpp-specs-table-wrapper table.dataTable thead th:last-child,
#threegpp-specs-table thead th:last-child,
#threegpp-specs-table tbody td:last-child {
    border-right: none;
}

.threegpp-specs-table-wrapper table.dataTable thead th:first-child,
#threegpp-specs-table thead th:first-child {
    min-width: 190px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(2),
#threegpp-specs-table thead th:nth-child(2) {
    min-width: 135px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(3),
#threegpp-specs-table thead th:nth-child(3) {
    min-width: 70px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(4),
#threegpp-specs-table thead th:nth-child(4) {
    min-width: 135px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(5),
#threegpp-specs-table thead th:nth-child(5) {
    min-width: 320px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(6),
#threegpp-specs-table thead th:nth-child(6) {
    min-width: 120px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(7),
#threegpp-specs-table thead th:nth-child(7) {
    min-width: 90px;
}

.threegpp-specs-table-wrapper table.dataTable thead th:nth-child(8),
#threegpp-specs-table thead th:nth-child(8) {
    min-width: 150px;
}

#threegpp-specs-table tbody td {
    padding: 18px 18px;
    border-bottom: 1px solid #eaf0f6;
    border-right: 1px solid #eef2f7;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: top;
    background: #fff;
}

#threegpp-specs-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

#threegpp-specs-table tbody tr:hover td {
    background: #f5f9ff;
}

#threegpp-specs-table tbody tr:last-child td {
    border-bottom: none;
}

#threegpp-specs-table td:nth-child(3),
#threegpp-specs-table td:nth-child(6),
#threegpp-specs-table td:nth-child(7),
#threegpp-specs-table td:nth-child(8) {
    white-space: nowrap;
}

#threegpp-specs-table td:nth-child(5) {
    min-width: 320px;
}

#threegpp-specs-table a {
    color: #005fcc;
    text-decoration: none;
    font-weight: 600;
    word-break: normal;
    overflow-wrap: anywhere;
    transition: color 0.18s ease;
}

#threegpp-specs-table a:hover {
    color: #0b4aa2;
}

#threegpp-specs-table .threegpp-purchase-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f6ad8 0%, #0b57b7 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(15, 106, 216, 0.18);
}

#threegpp-specs-table .threegpp-purchase-link:hover {
    color: #fff;
    background: linear-gradient(180deg, #0d60c4 0%, #094b9b 100%);
}

.threegpp-specs-error,
.threegpp-specs-message {
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 4px solid #dc2626;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.5;
}

.threegpp-specs-message {
    border-left-color: #16a34a;
    background-color: #f6fff8;
}

#threegpp-specs-table.dataTable thead th.sorting,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting,
#threegpp-specs-table thead th.sorting {
    background-image: none !important;
}

table.dataTable thead th.sorting {
    background-image: none !important;
}

#threegpp-specs-table.dataTable thead th,
#threegpp-specs-table.dataTable thead th.sorting,
#threegpp-specs-table.dataTable thead th.sorting_asc,
.threegpp-specs-table-wrapper table.dataTable thead th,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting_asc,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting_desc,
#threegpp-specs-table.dataTable thead th.sorting_desc {
    padding: 16px 18px !important;
    box-sizing: border-box !important;
}

.threegpp-specs-table-wrapper table.dataTable thead th.sorting::after,
#threegpp-specs-table thead th.sorting::after {
    content: " \2195" !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    margin-left: 4px !important;
    display: inline !important;
}

.threegpp-specs-table-wrapper table.dataTable thead th.sorting_asc::after,
#threegpp-specs-table thead th.sorting_asc::after {
    content: " \2191" !important;
    font-size: 12px !important;
    color: #0f6ad8 !important;
    margin-left: 4px !important;
    display: inline !important;
}

.threegpp-specs-table-wrapper table.dataTable thead th.sorting_desc::after,
#threegpp-specs-table thead th.sorting_desc::after {
    content: " \2193" !important;
    font-size: 12px !important;
    color: #0f6ad8 !important;
    margin-left: 4px !important;
    display: inline !important;
}

#threegpp-specs-table thead th.sorting::before,
#threegpp-specs-table thead th.sorting_asc::before,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting::before,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting_asc::before,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting_desc::before,
#threegpp-specs-table thead th.sorting_desc::before {
    display: none !important;
    content: "" !important;
}

#threegpp-specs-table.dataTable thead th.sorting_asc,
#threegpp-specs-table.dataTable thead th.sorting_desc,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting_asc,
.threegpp-specs-table-wrapper table.dataTable thead th.sorting_desc,
#threegpp-specs-table thead th.sorting_asc,
#threegpp-specs-table thead th.sorting_desc {
    background-image: linear-gradient(180deg, #edf5ff 0%, #dbeafe 100%) !important;
    color: #0f4c81;
}

.dataTables_wrapper {
    padding: 18px 20px 20px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    overflow-x: visible !important;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.threegpp-specs-table-wrapper .dataTables_wrapper,
.threegpp-specs-table-wrapper .dataTables_scroll,
.threegpp-specs-table-wrapper .dataTables_scrollHead,
.threegpp-specs-table-wrapper .dataTables_scrollBody {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

.threegpp-specs-table-wrapper .dataTables_scrollHeadInner,
.threegpp-specs-table-wrapper .dataTables_scrollBody table {
    min-width: 1260px !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: #334e68;
    font-size: 14px;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
.threegpp-specs-controls select:focus {
    outline: none;
    border-color: #0f6ad8;
    box-shadow: 0 0 0 3px rgba(15, 106, 216, 0.12);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 999px;
    padding: 6px 12px;
    margin: 0 2px;
    transition: all 0.18s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0f6ad8;
    color: #fff !important;
    border-color: #0f6ad8;
}

.dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: 14px;
}

@media screen and (max-width: 1100px) {
    #threegpp-specs-table thead th:nth-child(5),
    #threegpp-specs-table td:nth-child(5) {
        min-width: 260px;
    }
}

@media screen and (max-width: 768px) {
    .threegpp-specs-table-wrapper {
        margin: 18px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .threegpp-specs-controls {
        padding: 16px 14px 0;
        align-items: flex-start;
    }

    .threegpp-specs-controls label {
        width: 100%;
    }

    .threegpp-specs-controls select {
        width: 100%;
    }

    .threegpp-scroll-hint {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .dataTables_wrapper {
        padding: 14px;
    }

    #threegpp-specs-table {
        min-width: 1120px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    #threegpp-specs-table thead th,
    #threegpp-specs-table tbody td {
        padding: 14px 14px;
    }
}
