table.model {
    overflow-x: auto;
}
th.model {
    background-color: rgba(10, 20, 20, 0.8);
    color: #899;
    font-family: 'Electrolize', Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
td.model {
    background-color: rgba(10, 20, 20, 0.6);
    color: #9aa;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 12px;
    border-bottom: 1px solid #344;
}

th.model_sort {
    background-color: rgba(10, 20, 20, 0.8);
    border: 1px solid #344;
    border-bottom: 2px solid rgba(102, 204, 204, 0.2);
    color: #899;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
    font-family: 'Electrolize', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

td.model_page {
    background-color: rgba(10, 20, 20, 0.6);
    border: 1px solid #344;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #788;
    height: 15px;
    width: 15px;
    padding: 2px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

td.model_page_current {
    background-color: rgba(102, 204, 204, 0.15);
    border-color: rgba(102, 204, 204, 0.4);
    border-radius: 4px;
    color: #6cc;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 0 8px rgba(102, 204, 204, 0.1);
}

th.model_sort_current {
    background-color: rgba(102, 204, 204, 0.12);
    color: #6cc;
    border-bottom-color: rgba(102, 204, 204, 0.5);
}

th.model_page {
    border: 0;
    padding: 2px 5px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #788;
}

th.model_foot {
    background-color: rgba(10, 20, 20, 0.8);
    border: 1px solid #344;
    color: #899;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
    font-family: 'Electrolize', Arial, sans-serif;
    letter-spacing: 0.06em;
}

/* JSON nested tables */
td.json-cell { padding: 2px 4px; vertical-align: top; }
table.json-table { border-collapse: collapse; width: 100%; margin: 0; }
table.json-table th.json-key {
    background-color: rgba(10, 20, 20, 0.9);
    color: #788;
    font-size: 10px;
    font-weight: normal;
    padding: 2px 6px;
    border: 1px solid #344;
    vertical-align: top;
    white-space: nowrap;
    text-align: left;
    font-family: 'Electrolize', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
table.json-table td.json-val {
    background-color: rgba(10, 20, 20, 0.6);
    color: #9aa;
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid #344;
    vertical-align: top;
    font-family: 'Roboto', Arial, sans-serif;
}
.json-toggle-btn {
    cursor: pointer;
    color: #6cc;
    font-size: 11px;
    user-select: none;
    font-family: 'Electrolize', Arial, sans-serif;
}
.json-toggle-btn:hover { text-decoration: underline; }
.json-toggle-btn::before { content: '\25BC '; font-size: 8px; }
.json-collapsed > .json-toggle-btn::before { content: '\25B6 '; }
.json-collapsed > .json-content { display: none; }
.json-toolbar {
    font-size: 10px;
    margin-bottom: 2px;
}
.json-toolbar span {
    cursor: pointer;
    color: #6cc;
    margin-left: 6px;
    user-select: none;
    font-family: 'Electrolize', Arial, sans-serif;
}
.json-toolbar span:hover { text-decoration: underline; }
.json-null { color: #788; font-style: italic; }
.json-bool { color: #e6a756; }
.json-truncated { color: #e65656; font-style: italic; }

/* table loading spinner */
.table-loading {
    float: right;
    width: 14px;
    height: 14px;
    margin: 2px 4px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: table-spin 0.6s linear infinite;
    opacity: 0.6;
}
@keyframes table-spin { to { transform: rotate(360deg); } }
