/* Form in filtri */
.filters-panel .form-group {
    margin-bottom: 8px;
}

.filters-panel .form-group label {
    font-size: 11px;
    margin-bottom: 2px;
}

.filters-panel .form-group input {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 28px;
}/* Scrollbar sinistra personalizzata */
.left-scrollbar::-webkit-scrollbar {
    width: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.left-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.left-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}/* CSS copiato dal progetto originale - file troppo grande, creo versione compressa con parti essenziali */

/* ===== CSS RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* ===== VARIABILI CSS TEMA DARK ===== */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #6b7280;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --border-color: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 6px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    
    --transition: all 0.2s ease-in-out;
}

/* ===== UTILITIES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 36px;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    min-height: 28px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.2);
}

.error-message {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.8);
    width: 100%;
    max-width: 400px;
    margin: 20px;
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.login-form .btn {
    width: 100%;
    margin-top: 8px;
}

.login-info {
    margin-top: 16px;
    padding: 12px;
    background-color: var(--surface-hover);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.login-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

.login-info small {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
}

/* ===== MAIN APP ===== */
.main-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ===== HEADER ===== */
.app-header {
    height: var(--header-height);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.header-left h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--surface-hover);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.user-level {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ===== CONTAINER PRINCIPALE ===== */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 90;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.nav-group-header:hover {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.nav-group-toggle {
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.nav-group.collapsed .nav-group-toggle {
    transform: rotate(-90deg);
}

.nav-queries {
    padding-left: 20px;
    margin-top: 4px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-group.collapsed .nav-queries {
    max-height: 0;
}

.nav-query {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-query:hover {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.nav-query.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--background-color);
}

.content-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px; /* Ridotto da 20px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 50px; /* Altezza ridotta */
    max-height: 50px;
}

.content-title h2 {
    font-size: 18px; /* Ridotto da 20px */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px; /* Ridotto da 4px */
}

.query-description {
    color: var(--text-secondary);
    font-size: 12px; /* Ridotto da 13px */
    line-height: 1.2;
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== DROPDOWN ===== */
.export-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    z-index: 1000;
    display: none;
}

.export-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.dropdown-item:hover {
    background-color: var(--surface-hover);
}

/* ===== DATA CONTAINER ===== */
.data-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.welcome-screen,
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.welcome-content,
.loading-content {
    max-width: 400px;
    padding: 40px;
}

.welcome-content i,
.spinner-large {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.spinner-large {
    color: var(--primary-color);
}

.welcome-content h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.welcome-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== DATA GRID ===== */
.data-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* DOPPIA SCROLLBAR */
.table-scroll-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Importante per permettere scroll */
    overflow: hidden;
}

.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.table-scroll-top-inner {
    height: 1px;
}

.table-container {
    flex: 1;
    overflow: auto !important;
    background: var(--surface-color);
    min-height: 0;
    max-height: calc(100vh - 240px); /* Ancora più spazio per la griglia */
    position: relative;
}

/* Scrollbar verticale sinistra - NUOVA */
.table-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Indicatore scroll sinistra */
.table-container.has-scroll::before {
    opacity: 0.3;
}

/* Forza scrollbar sempre visibile */
.table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.table-container::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.05);
}

/* Sincronizzazione scrollbar */
.table-scroll-top::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.table-scroll-top::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background-color: var(--surface-hover);
    padding: 8px; /* Ridotto da 12px */
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.data-table th:hover {
    background-color: var(--primary-color);
    color: white;
}

.data-table th.sortable::after {
    content: '';
    margin-left: 8px;
    opacity: 0.3;
}

.data-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.data-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

.data-table td {
    padding: 6px 8px; /* Ridotto da 10px 8px */
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:hover {
    background-color: var(--surface-hover);
}

.data-table tr:nth-child(even) {
    background-color: rgba(30, 41, 59, 0.5);
}

/* ===== FILTERS PANEL ===== */
.filters-panel {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    max-height: 200px; /* Limita altezza massima */
    overflow-y: auto; /* Scroll se necessario */
    position: relative;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background: var(--surface-color);
    z-index: 10;
    padding-bottom: 8px;
}

.filters-header h3 {
    font-size: 14px; /* Ridotto da 16px */
    font-weight: 600;
    color: var(--text-primary);
}

.filters-content {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.filters-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    background: var(--surface-color);
    z-index: 10;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.record-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== PAGINATION ===== */
.pagination-container {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
    flex-shrink: 0;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-number {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 12px;
    min-width: 28px;
    text-align: center;
}

.page-number:hover {
    background-color: var(--background-color);
}

.page-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
}

.toast {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast-icon {
    font-size: 16px;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 13px;
    color: var(--text-primary);
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 85;
    display: none;
}

.overlay.show {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        height: calc(100vh - var(--header-height));
        transform: translateX(-100%);
        z-index: 200;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .user-info {
        display: none;
    }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== BADGE ===== */
.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-warning {
    background-color: var(--warning-color);
}

.badge-success {
    background-color: var(--success-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}

/* ===== MASTER-DETAIL STYLES ===== */
.actions-column {
    width: 70px; /* Ridotto da 80px */
    text-align: center;
    background-color: var(--surface-hover);
    position: sticky;
    left: 0;
    z-index: 5;
    white-space: nowrap; /* Impedisce wrap dei pulsanti */
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    padding: 2px 4px; /* Ridotto padding */
    margin: 0 1px; /* Ridotto margine */
    border-radius: 3px; /* Ridotto border radius */
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px; /* Ridotto font */
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px; /* Ridotto da 28px */
    height: 24px; /* Ridotto da 28px */
    vertical-align: middle;
}

.btn-icon:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wrench-icon {
    font-size: 14px; /* Ridotto da 16px */
}

/* Detail row styles */
.detail-row {
    background-color: var(--background-color);
    border-left: 4px solid var(--primary-color);
}

.detail-row.expanded {
    animation: slideDown 0.3s ease;
}

.detail-row.collapsing {
    animation: slideUp 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

.detail-cell {
    padding: 0 !important;
    background-color: var(--background-color);
}

.detail-container {
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--border-radius);
    margin: 10px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.detail-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.detail-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background-color: var(--surface-color);
}

.detail-table th {
    background-color: var(--surface-hover);
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-size: 12px;
}

.detail-table th:hover {
    background-color: var(--primary-color);
    color: white;
}

.detail-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.detail-table tr:hover {
    background-color: var(--surface-hover);
}

.detail-table tr.highlight-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning-color);
}

.no-data {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Form controls in modal */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.2);
}

.form-control.readonly {
    background-color: var(--surface-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}
