/* ===== table-dashboard-viewer.css ===== */
    .tdv-wrapper {
        max-width: 560px;
        margin: 0 auto;
    }
    .tdv-cmp-card {
        border-radius: 5px;
        overflow: hidden;
        border: 1px solid var(--bs-border-color);
        width: 100%;
    }
    .tdv-cmp-header {
        padding: 6px 12px;
        background: var(--bs-tertiary-bg, rgba(var(--bs-emphasis-color-rgb), .08));
        color: var(--bs-emphasis-color);
        font-size: 0.85rem;
        font-weight: 600;
        text-align: center;
        border-bottom: 1px solid var(--bs-border-color);
    }
    .tdv-cmp-body {
        background: var(--bs-body-bg);
    }
    .tdv-feature-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 12px 5px 16px;
        border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.08));
        min-height: 32px;
    }
    .tdv-feature-row:last-child { border-bottom: none; }
    .tdv-feature-label {
        color: var(--bs-body-color);
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tdv-feature-value {
        color: var(--bs-emphasis-color);
        font-weight: 600;
        font-size: 0.85rem;
        text-align: right;
        flex-shrink: 0;
        padding-left: 12px;
        font-variant-numeric: tabular-nums;
    }
    .tdv-val-editable {
        background: rgba(56,189,248,0.08);
        padding: 2px 8px;
        border-radius: 4px;
        border: 1px solid rgba(56,189,248,0.15);
        transition: background 0.15s, border-color 0.15s;
    }
    .tdv-val-editable::after {
        content: "\f303";
        font-family: "Font Awesome 5 Pro";
        font-weight: 300;
        font-size: 0.6rem;
        margin-left: 6px;
        opacity: 0.35;
        vertical-align: middle;
    }
    .tdv-writable:hover .tdv-val-editable {
        background: rgba(56,189,248,0.15);
        border-color: rgba(56,189,248,0.35);
        color: #38bdf8;
    }
    .tdv-writable:hover .tdv-val-editable::after {
        opacity: 0.8;
    }
    .tdv-bit-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        vertical-align: middle;
        box-shadow: 0 0 4px currentColor;
    }
    .tdv-writable {
        cursor: pointer;
        transition: background 0.15s;
    }
    .tdv-writable:hover {
        background: rgba(56, 189, 248, 0.08);
    }
    .tdv-cmd-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 4px;
        padding: 3px 10px;
        color: #e2e8f0;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: filter 0.15s, transform 0.1s;
        white-space: nowrap;
    }
    .tdv-cmd-btn:hover {
        filter: brightness(1.15);
    }
    .tdv-cmd-btn:active {
        transform: scale(0.98);
    }
    .tdv-bit-toggle {
        display: inline-flex;
        align-items: center;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 1px 8px;
        border-radius: 4px;
    }
    .tdv-bit-on {
        color: #4ade80;
        background: rgba(34,197,94,.15);
    }
    .tdv-bit-off {
        color: #94a3b8;
        background: rgba(148,163,184,.1);
    }



/* ===== table-dashboard-editor.css ===== */
    .tde-panel-header {
        background: var(--bs-secondary-bg);
        color: var(--bs-body-color);
        border-bottom: 1px solid var(--bs-border-color);
    }
    .tde-available-item {
        background: var(--bs-body-bg);
        border-color: var(--bs-border-color) !important;
        color: var(--bs-body-color);
    }

    /* Component cards */
    .tde-cmp-card {
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid var(--bs-border-color);
        margin-bottom: 8px;
        transition: opacity 0.15s;
    }
    .tde-cmp-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 10px;
        gap: 6px;
        min-height: 38px;
        background: var(--bs-tertiary-bg, rgba(var(--bs-emphasis-color-rgb), .08));
        color: var(--bs-emphasis-color);
        border-bottom: 1px solid var(--bs-border-color);
    }
    .tde-grip {
        color: var(--bs-secondary-color);
        cursor: grab;
        font-size: 0.8rem;
    }
    .tde-hdr-btn {
        background: none;
        border: none;
        color: var(--bs-secondary-color);
        padding: 2px 5px;
        font-size: 0.75rem;
        cursor: pointer;
        border-radius: 3px;
        transition: color 0.15s, background 0.15s;
    }
    .tde-hdr-btn:hover { color: var(--bs-emphasis-color); background: rgba(var(--bs-emphasis-color-rgb), .1); }
    .tde-hdr-btn:disabled { opacity: 0.3; cursor: default; }
    .tde-hdr-btn-danger:hover { color: #f87171; background: rgba(248,113,113,0.15); }

    .tde-cmp-body {
        background: var(--bs-body-bg);
    }
    .tde-feature-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 12px 5px 16px;
        border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.08));
        min-height: 32px;
    }
    .tde-feature-row:last-child { border-bottom: none; }
    .tde-feature-label {
        color: var(--bs-body-color);
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tde-feature-value {
        color: var(--bs-emphasis-color);
        font-weight: 600;
        font-size: 0.85rem;
        text-align: right;
        flex-shrink: 0;
        padding-left: 12px;
        font-variant-numeric: tabular-nums;
    }

    .tde-dragging { opacity: 0.3; }
    .tde-drop-bar {
        height: 3px;
        background: var(--bs-info, #38bdf8);
        border-radius: 2px;
        margin: 2px 0;
    }
    .tde-dropzone-bottom { height: 24px; }

    .tde-bit-dot {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        vertical-align: middle;
        box-shadow: 0 0 4px currentColor;
    }
    .tde-write-icon {
        flex-shrink: 0;
        opacity: 0.4;
        color: #38bdf8;
        font-size: 0.75rem;
        margin-right: 6px;
    }
    .tde-cmd-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 4px;
        padding: 3px 10px;
        color: #e2e8f0;
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .tde-bit-toggle {
        display: inline-flex;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 4px;
    }
    .tde-bit-on {
        color: #4ade80;
        background: rgba(34,197,94,.15);
    }
    .tde-bit-off {
        color: #94a3b8;
        background: rgba(148,163,184,.1);
    }



