html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    font-size: 1rem;
}

body.no-select {
    user-select: none;
    -webkit-user-select: none;
}

/* ===== GLOBAL: TOOLBAR BASE ===== */
:root {
    --toolbar-font-size: 12px;
    --toolbar-font-family: 'Segoe UI', Tahoma, sans-serif;
    --toolbar-icon-size: 14px;
    --toolbar-height: 36px;
    --table-font-size: 13px;
    --table-font-family: 'Segoe UI', Tahoma, sans-serif;
}

.app-toolbar {
    display: flex;
    align-items: center;
    height: var(--toolbar-height);
    padding: 0 6px;
    gap: 2px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    flex-shrink: 0;
    font-size: var(--toolbar-font-size);
    font-family: var(--toolbar-font-family);
}

.app-toolbar i {
    font-size: var(--toolbar-icon-size);
}

body {
    overflow-y: scroll;
    -ms-overflow-style: none;
}

body,
.noselect,
input,
label,
table,
th,
td,
div,
span {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

body::-webkit-scrollbar {
    display: none;
}

.dropdown-list {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-menu {
    --mdb-dropdown-item-border-radius: 0.25rem;
    border-radius: 0.25rem !important;
    border: 1px solid rgba(108, 117, 125, 0.18) !important;
    box-shadow: 0 2px 15px -3px rgba(var(--mdb-box-shadow-color-rgb), 0.16), 0 10px 20px -2px rgba(var(--mdb-box-shadow-color-rgb), 0.1) !important;
    z-index: 1050 !important;
}

.dropdown-item {
    max-height: 34px;
    border-bottom: 1px solid #f1f1f1;
}

.select_mode {
    position: relative;
}

.select_mode input {
    background: transparent !important;
    position: relative;
}

.ghost-text {
    position: absolute;
    left: 0.8rem !important;
    top: 0;
    color: #d0d0d0;
    pointer-events: none;
    width: calc(100% - 2rem) !important;
    height: 100%;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    padding: inherit !important;
    background: transparent;
    white-space: pre;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    position: absolute;
    top: 0;
    width: 1rem;
    height: 1.8rem;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    padding-left: 0.2rem;
    right: 0;
    margin-right: 0.3rem;
    color: #6c757d;
    background-color: white;
    z-index: 100;
    cursor: pointer !important;
}

.without-selector {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]:not(.without-selector) {
    padding-right: 0.15rem !important;
}

.without-selector::-webkit-outer-spin-button,
.without-selector::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.form-control[readonly],
input.form-control[disabled],
textarea.form-control[readonly],
textarea.form-control[disabled],
select.form-control[readonly],
select.form-control[disabled] {
    background-color: #ffffff !important;
    opacity: 1 !important;
    cursor: default;
}

.form-outline .form-control[readonly],
.form-outline .form-control[disabled] {
    background-color: #ffffff !important;
}

.title-label-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.title-label-wrapper .title-label {
    position: absolute;
    top: -0.4rem;
    left: 0.6rem;
    background-color: white;
    padding: 0 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1;
    z-index: 1;
}

.title-label-wrapper .content-box {
    position: relative;
    z-index: 0;
}

/* Oracle connect type toggle */
.ora-connect-toggle {
    height: 2.15rem;
}

.ora-toggle-option {
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    color: #6c757d;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.ora-toggle-option + .ora-toggle-option {
    border-left: 1px solid #bdbdbd;
}

.ora-toggle-option.active {
    background: #1266a8;
    color: #fff;
}

.checkbox-outline {
    position: relative;
    border: 1px solid #bdbdbd;
    border-radius: 0.2rem;
    padding: 0.6rem 0.2rem 0.32rem 0.2rem;
    text-align: center;
    transition: border-color 0.3s;
    font-size: 0.8rem;
}

.form-check {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
    position: static;
    margin-right: 1rem;
    margin-bottom: 0.25rem;
}

.form-check .form-check-input {
    width: 1rem !important;
    height: 1rem !important;
    border: .1rem solid #757575 !important;
}

.form-check-label {
    font-size: 0.8em !important;
    line-height: 1 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: baseline !important;
    font-weight: lighter !important;
}

.btn-gradient {
    color: #0A0A0A !important;
    background: linear-gradient(180deg, #f3f3f3 0%, #e3e3e3 100%);
    border: .1rem solid #C5C5C5 !important;
    box-shadow: 0 0 0;
}

.btn-gradient:hover,
.btn-gradient:focus {
    background: linear-gradient(180deg, #f3f3f3 0%, #e3e3e3 100%);
}

.margin-smal {
    padding: .15em .5em !important;
}

/* ===== SQLBUILDER: APP CONTAINER ===== */
#app_container_id {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* ===== MAIN CONTAINER ===== */
#main_container_id {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

/* ===== DATABASE PANEL ===== */
#databaseContainer_id {
    width: 20rem;
    min-width: 180px;
    height: 100%;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Toolbar superior del panel de bases de datos */
#databaseToolbar_id {
    padding: 6px 8px;
    background-color: #e9ecef;
}

.toolbar-btn {
    background: none;
    border: none;
    color: #495057;
    font-size: var(--toolbar-icon-size);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.toolbar-btn:hover {
    background-color: #dee2e6;
    color: #212529;
}

.toolbar-btn:active {
    background-color: #ced4da;
}

/* Listado de bases de datos */
#databaseList_id {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

/* Status bar */
.db-status-bar {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
    background-color: #e9ecef;
    padding: 3px 8px;
    font-size: 11px;
    color: #495057;
}

.db-status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.db-status-progress {
    height: 4px;
    background-color: #ced4da;
    border-radius: 2px;
    overflow: hidden;
}

.db-status-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #125d9d;
    border-radius: 2px;
    transition: width 0.2s ease;
}

/* ===== CONTENT PANEL (70%) ===== */
#contentContainer_id {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== TAB BAR ===== */
.tab-bar-wrapper {
    display: flex;
    align-items: flex-end;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    height: 30px;
    flex-shrink: 0;
    position: relative;
}

#tabBar_id {
    display: flex;
    align-items: flex-end;
    height: 30px;
    flex: 1;
    padding: 0 4px;
    gap: 1px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.tab-nav-btn {
    background: #e9ecef;
    border: none;
    border-left: 1px solid #dee2e6;
    color: #666;
    font-size: 11px;
    width: 22px;
    height: 30px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.tab-nav-btn:hover {
    background-color: #dee2e6;
    color: #333;
}

.tab-nav-btn.tab-nav-left {
    border-left: none;
    border-right: 1px solid #dee2e6;
}

.tab-nav-btn.visible {
    display: flex;
}

.tab-item {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 3px 4px 4px 14px;
    font-size: 12px;
    color: #666;
    background-color: #dde1e5;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.1s;
    height: 26px;
    min-width: 5rem;
}

.tab-item:hover {
    background-color: #f0f0f0;
}

.tab-item.active {
    background-color: #ffffff;
    color: #333;
    border-color: #dee2e6;
    font-weight: 500;
}

.tab-label {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-close {
    font-size: 10px;
    color: #999;
    cursor: pointer;
    padding: 1px 3px;
    border-radius: 3px;
}

.tab-close:hover {
    color: #dc3545;
    background: rgba(0,0,0,0.06);
}

/* ===== TAB CONTENT ===== */
#tabContent_id {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.tab-panel.active {
    display: flex;
}

/* ===== EDITOR TOOLBAR ===== */
#editorToolbar_id {
    gap: 0px;
    background-color: #f5f5f5;
}

.toolbar-separator {
    width: 1px;
    height: 18px;
    background-color: #ccc;
    margin: 0 4px;
}

.toolbar-label {
    color: #333;
    font-weight: 500;
}

.toolbar-label-inactive {
    color: #999;
    font-style: italic;
}

/* ===== QUERY SUB-TABS ===== */
#queryTabBar_id {
    display: flex;
    align-items: flex-end;
    background-color: #f0f0f0;
    border-bottom: 1px solid #dee2e6;
    height: 28px;
    flex-shrink: 0;
    padding: 0 4px;
    gap: 1px;
    overflow-x: auto;
}

#queryTabBar_id::-webkit-scrollbar {
    height: 3px;
}

#queryTabBar_id::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.query-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    color: #666;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.1s;
    height: 24px;
}

.query-tab:hover {
    background-color: #eaeaea;
}

.query-tab.active {
    background-color: #ffffff;
    color: #333;
    border-color: #dee2e6;
    font-weight: 500;
}

.query-tab-label {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.query-tab-close {
    font-size: 9px;
    color: #999;
    cursor: pointer;
    padding: 1px 2px;
    border-radius: 2px;
    line-height: 1;
}

.query-tab-close:hover {
    color: #dc3545;
    background: rgba(0,0,0,0.06);
}

/* ===== EDITOR AREA ===== */
#editorArea_id {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sqlEditorContainer_id {
    flex: 1;
    min-height: 80px;
    overflow: hidden;
}

#sqlEditorContainer_id .CodeMirror {
    height: 100%;
    font-size: 13px;
    font-family: 'Consolas', 'Courier New', monospace;
    border-bottom: 1px solid #dee2e6;
}

/* ===== RESIZER ===== */
.resizer-h {
    height: 5px;
    background-color: #e0e0e0;
    cursor: ns-resize;
    flex-shrink: 0;
    transition: background-color 0.1s;
}

.resizer-h:hover {
    background-color: #bbb;
}

.resizer-v {
    width: 5px;
    background-color: #e0e0e0;
    cursor: ew-resize;
    flex-shrink: 0;
    transition: background-color 0.1s;
}

.resizer-v:hover {
    background-color: #bbb;
}

/* ===== RESULT AREA ===== */
#resultArea_id {
    flex: 1;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#resultTabs_id {
    display: flex;
    gap: 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.result-tab {
    padding: 4px 14px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.1s;
}

.result-tab:hover {
    color: #333;
}

.result-tab.active {
    color: #125d9d;
    border-bottom-color: #125d9d;
    font-weight: 500;
}

#resultContent_id {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.result-panel {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: auto;
}

.result-panel.active {
    display: block;
}

/* ===== MESSAGES PANEL ===== */
#messagesPanel_id {
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
}

.msg-line {
    padding: 2px 0;
}

.msg-time {
    color: #999;
    margin-right: 6px;
}

.msg-error {
    color: #dc3545;
}

.msg-success {
    color: #2e7d32;
}

.msg-info {
    color: #666;
}

/* ===== DATABASE LIST ITEMS ===== */
.db-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.1s;
    gap: 2px;
    height: 28px;
}
.db-item:hover {
    background-color: #e9ecef;
}
.db-item.active {
    background-color: #d6e4f0;
}
.db-icon {
    font-size: 12px;
    color: #e8a840;
    flex-shrink: 0;
}
.db-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.toolbar-icon-img {
    width: 16px;
    height: 16px;
}
.db-label {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.db-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}
.db-item:hover .db-remove {
    display: flex;
}
.db-remove:hover {
    color: #dc3545;
    background: rgba(0,0,0,0.05);
}
.db-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* ===== DATABASE TREE VIEW ===== */
.db-tree {
    padding-left: 12px;
    user-select: none;
}

.tree-node {
    margin: 0;
}

.tree-category {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.1s;
}

.tree-category:hover {
    background-color: #e9ecef;
}

.tree-toggle-area {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.tree-toggle {
    font-size: 10px;
    color: #666;
    width: 12px;
    text-align: center;
    transition: transform 0.15s;
    cursor: pointer;
}

.tree-cat-icon {
    font-size: 12px;
    color: #e8a840;
    width: 16px;
    text-align: center;
}
.tree-cat-icon-img {
    width: 20px;
    height: 19px;
    flex-shrink: 0;
}

.tree-cat-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.tree-children {
    padding-left: 18px;
}

.tree-leaf {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    gap: 5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.1s;
}

.tree-leaf:hover {
    background-color: #e9ecef;
}

.tree-leaf-icon {
    font-size: 11px;
    color: #6c8ebf;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.tree-leaf-icon-img {
    width: 18px;
    height: 15px;
    flex-shrink: 0;
}

.tree-leaf-label {
    font-size: 12px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-leaf-empty .tree-leaf-label {
    color: #aaa;
    font-style: italic;
}

.tree-loading,
.tree-loading-inline {
    padding: 6px 12px;
    font-size: 12px;
    color: #888;
}

.tree-error,
.tree-error-inline {
    padding: 6px 12px;
    font-size: 12px;
    color: #dc3545;
}

/* ===== CONTEXT MENU ===== */
.ctx-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    z-index: 10000;
    min-width: 140px;
    padding: 4px 0;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.1s;
}

.ctx-item:hover {
    background-color: #e9ecef;
}

.ctx-item i {
    font-size: 12px;
    color: #666;
    width: 14px;
    text-align: center;
}

.ctx-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 2px 8px;
}

.ctx-active-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #125d9d;
    border-radius: 50%;
    margin-right: 2px;
    vertical-align: middle;
}

/* ===== TREE FILTER BADGE ===== */
.tree-filter-badge {
    font-size: 9px;
    color: #125d9d;
    margin-left: 4px;
}

/* ===== FILTER POPUP ===== */
.filter-row {
    min-height: 36px;
    flex-shrink: 0;
}

.filter-row .form-outline {
    margin-bottom: 0 !important;
}

#filterRows_id .dropdown-menu {
    position: fixed !important;
    width: auto !important;
    min-width: 8rem !important;
    max-width: 10rem !important;
}

.filter-remove-btn:hover {
    color: #b71c1c !important;
}

/* ===== TABLE EDITOR ===== */
.te-toolbar {
}

.te-filter-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.te-filter-label {
    color: #666;
    font-weight: 600;
    flex-shrink: 0;
}

.te-filter-input {
    flex: 1;
    min-width: 100px;
    max-width: 400px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 6px;
    font-size: inherit;
    font-family: 'Consolas', 'Courier New', monospace;
    outline: none;
}

.te-filter-input:focus {
    border-color: #228ad6;
}

.te-status {
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.te-col-dropdown {
    position: relative;
    flex-shrink: 0;
}
.te-col-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-size: inherit;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}
.te-col-dropdown-btn:hover {
    border-color: #228ad6;
    background: #f0f7ff;
}
.te-col-dropdown-btn i {
    font-size: 11px;
}
.te-col-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 2px;
    min-width: 220px;
    max-height: 380px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 100;
    padding: 0;
    display: none;
    flex-direction: column;
}
.te-col-dropdown-menu.open {
    display: flex;
}
.te-col-dd-header {
    flex-shrink: 0;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
}
.te-col-dd-actions {
    padding: 4px 10px 4px;
    font-size: 11px;
}
.te-col-dd-filter {
    width: calc(100% - 16px);
    margin: 4px 8px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 6px;
    font-size: 11px;
    outline: none;
}
.te-col-dd-filter:focus {
    border-color: #228ad6;
}
.te-col-dd-list {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0;
}
.te-col-dd-actions a {
    color: #1565c0;
    text-decoration: none;
}
.te-col-dd-actions a:hover {
    text-decoration: underline;
}
.te-col-dd-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.te-col-dd-item:hover {
    background: #f0f7ff;
}
.te-col-dd-item input {
    margin: 0;
    cursor: pointer;
    accent-color: #1565c0;
}

.te-grid-container {
    flex: 1;
    overflow: auto;
    position: relative;
}

.tab-panel[data-tab^="te_"] {
    display: none;
    flex-direction: column;
    height: 100%;
}

.tab-panel[data-tab^="te_"].active {
    display: flex;
}

/* ===== SUB-TABS ===== */
.te-subtab-bar {
    height: 32px;
    padding: 0 4px;
    gap: 0;
    background: #eef1f5;
    overflow-x: auto;
}

.te-subtab {
    padding: 4px 12px;
    cursor: pointer;
    color: #555;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    user-select: none;
    transition: color 0.15s, border-color 0.15s;
}

.te-subtab:hover {
    color: #1565c0;
    background: #e3eaf3;
}

.te-subtab.active {
    color: #1565c0;
    border-bottom-color: #1565c0;
    font-weight: 600;
}

.te-subtab i {
    margin-right: 3px;
}

.te-subtab-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.te-subtab-panel.active {
    display: flex;
}

/* ===== META GRIDS (Columnas, Restricciones, etc.) ===== */
.te-meta-grid {
    flex: 1;
    overflow: auto;
}

.te-meta-table {
    width: 100%;
}

.te-col-check {
    width: 3rem !important;
    min-width: 3rem !important;
    max-width: 3rem !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.te-col-check .form-check-input {
    margin: 0 auto;
    display: block;
}

.te-meta-row {
    cursor: pointer;
}

/* ===== SPLIT PANELS (Restricciones, Indices) ===== */
.te-split-top {
    flex: 1;
    min-height: 80px;
    overflow: auto;
    border-bottom: 1px solid #dee2e6;
}

.te-split-bottom {
    flex: 0 0 auto;
    max-height: 35%;
    min-height: 60px;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.te-detail-label {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    padding: 4px 8px;
    background: #f4f4f4;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.te-detail-grid {
    flex: 1;
    overflow: auto;
}

/* ===== SQL TAB ===== */
.te-sql-toolbar {
    height: 32px;
    gap: 4px;
}

.te-sql-content {
    flex: 1;
    overflow: auto;
    background: #fafafa;
}

.te-ddl-pre {
    margin: 0;
    padding: 12px;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

/* ===== LOADING INDICATOR ===== */
.te-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 12px;
}


