.vd-classic-admin-source {
    position: absolute;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.vd-dashboard-shell #main_content,
.vd-dashboard-shell #main_content.vd-page-content {
    overflow-x: auto;
    min-height: 320px;
    position: relative;
}

.vd-dashboard-shell .vd-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vd-dashboard-shell #main_content .vd-admin-actions .btn-primary {
    background: #ea6c41;
    border-color: #ea6c41;
    color: #fff;
}

.vd-dashboard-shell #main_content .vd-admin-actions .btn-primary:hover {
    background: #d85a30;
    border-color: #d85a30;
    color: #fff;
}

.vd-dashboard-shell #main_content.vd-loading {
    min-height: 400px;
    opacity: 0.55;
    pointer-events: none;
}

.vd-content-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: rgba(255, 255, 255, 0.65);
}

.vd-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #ea6c41;
    border-radius: 50%;
    animation: vd-spin 0.7s linear infinite;
}

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

/* Tables — replace legacy black headers */
.vd-dashboard-shell #main_content table {
    width: 100% !important;
    max-width: 100%;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.vd-dashboard-shell #main_content table.vd-data-table {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.vd-dashboard-shell #main_content table thead th,
.vd-dashboard-shell #main_content table .vd-table-header-row td,
.vd-dashboard-shell #main_content table .vd-table-header-row th,
.vd-dashboard-shell #main_content table tr[bgcolor="#000000"] td,
.vd-dashboard-shell #main_content table tr[bgcolor="black"] td {
    background: #f8f9fb !important;
    color: #4a5568 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #ea6c41 !important;
    padding: 10px 12px !important;
    white-space: nowrap;
}

.vd-dashboard-shell #main_content table tbody td {
    padding: 9px 12px !important;
    border-top: 1px solid #edf2f7 !important;
    color: #4a5568;
    font-size: 13px;
    vertical-align: middle !important;
    white-space: normal;
}

.vd-dashboard-shell #main_content table tbody tr:hover td {
    background: #fafbfc;
}

.vd-dashboard-shell #main_content center {
    text-align: left;
}

.vd-dashboard-shell #main_content .vd-text,
.vd-dashboard-shell #main_content font {
    font-family: inherit !important;
    color: #4a5568 !important;
    font-size: 13px !important;
}

.vd-dashboard-shell #main_content b,
.vd-dashboard-shell #main_content strong {
    color: #212121;
    font-weight: 600;
}

.vd-dashboard-shell #main_content input[type="text"],
.vd-dashboard-shell #main_content input[type="password"],
.vd-dashboard-shell #main_content select,
.vd-dashboard-shell #main_content textarea {
    max-width: 100%;
}

.vd-dashboard-shell #main_content .form-control {
    border-radius: 4px;
    border-color: #e2e8f0;
    box-shadow: none;
}

.vd-dashboard-shell #main_content .btn-default {
    background: #fff;
    border-color: #d1d9e6;
    color: #4a5568;
}

.vd-dashboard-shell #main_content .btn-default:hover {
    background: #f8f9fb;
    border-color: #ea6c41;
    color: #ea6c41;
}

.vd-dashboard-shell #main_content a {
    color: #ea6c41;
    text-decoration: none;
}

.vd-dashboard-shell #main_content a:hover {
    color: #d45a30;
    text-decoration: underline;
}

.vd-dashboard-shell #main_content .head_style,
.vd-dashboard-shell #main_content .head_style_selected,
.vd-dashboard-shell #main_content .subhead_style,
.vd-dashboard-shell #main_content .subhead_style_selected {
    background: transparent !important;
}

/* DataTables controls */
.vd-dashboard-shell #main_content .dataTables_wrapper .vd-dt-top,
.vd-dashboard-shell #main_content .dataTables_wrapper .dataTables_length,
.vd-dashboard-shell #main_content .dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.vd-dashboard-shell #main_content .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 10px;
    margin-left: 8px;
}

.vd-dashboard-shell #main_content .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 6px;
}

.vd-dashboard-shell #main_content .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 2px;
}

.vd-dashboard-shell #main_content .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #ea6c41 !important;
    border-color: #ea6c41 !important;
    color: #fff !important;
}

.vd-dashboard-shell #main_content .dataTables_empty {
    padding: 32px !important;
    color: #94a3b8;
    font-style: italic;
}

.vd-dashboard-shell #audio_chooser_span {
    position: fixed;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    width: 740px;
    height: 440px;
    bottom: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 10000;
    display: none;
    border-radius: 6px;
    padding: 12px;
}

.vd-dashboard-shell #audio_chooser_span iframe {
    margin-top: 10px;
}

.vd-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

/* Strip any leaked classic admin chrome from extracted content */
.vd-dashboard-shell #main_content .vd-extracted-content > center > table > tbody > tr > td:first-child,
.vd-dashboard-shell #main_content table img[width="170"],
.vd-dashboard-shell #main_content table img[height="45"][width="170"] {
    display: none !important;
}

.vd-dashboard-shell #main_content .head_style,
.vd-dashboard-shell #main_content .head_style_selected,
.vd-dashboard-shell #main_content .subhead_style,
.vd-dashboard-shell #main_content .subhead_style_selected,
.vd-dashboard-shell #main_content .horiz_line {
    display: none !important;
}

.vd-dashboard-shell #main_content form {
    max-width: 100%;
}

.vd-dashboard-shell #main_content .vd-extracted-content > table:first-child tr:first-child td {
    background: transparent !important;
    color: #212121 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-bottom: none !important;
    padding-top: 0 !important;
}

/* SPA: sidebar never transitions */
#vd-sidebar {
    will-change: auto;
}
