.page-content-container {
    display: flex; flex-direction: column; width: 100%; border: 1px solid #E2E8F0;
    border-radius: 20px; height: calc(100vh - 50px) !important; overflow: hidden;
    background: #fff; position: relative !important; box-shadow: var(--shadow-sm);
}
.page-content-container.padded { padding: 24px; overflow-y: auto; }

.table-top-header {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #E2E8F0; background: #fff; flex-shrink: 0;
}

.table-filter-bar { display: flex; gap: 6px; padding: 10px 20px; border-bottom: 1px solid #E2E8F0; background: #fff; flex-shrink: 0; }

.table-container { max-width: 100%; width: 100%; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
.table-container table { width: 100%; border-collapse: collapse; text-align: left; }

.table-container thead { position: sticky; top: 0; z-index: 2; }
.table-container thead th {
    padding: 10px 20px; background: #F8FAFC; font-size: 12px; font-weight: 600;
    line-height: 16px; color: #64748B; text-transform: uppercase; letter-spacing: 0.4px;
    border-bottom: 1px solid #E2E8F0; white-space: nowrap;
}

.table-container tbody { background: #fff; }
.table-container tbody tr { border-bottom: 1px solid #F1F5F9; background: #fff; transition: background-color 0.15s ease; }
.table-container tbody tr:last-child { border-bottom: none; }
.table-container tbody tr:hover { background-color: #F8FAFC; }
.table-container tbody tr td { padding: 11px 20px; vertical-align: middle; font-size: 13px; color: #475569; }

.table-container tfoot { text-align: center; }
.table-container tfoot .footer-nav { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #E2E8F0; }

.master-detail-wrapper { display: flex; flex-direction: row; flex: 1; overflow: hidden; gap: 0; min-height: 0; }
.master-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; transition: all 0.3s ease; }

.detail-panel {
    width: 480px; min-width: 480px; border-left: 1px solid #E2E8F0;
    background: var(--background-surface-secondary); display: flex; flex-direction: column;
    overflow-y: auto; padding: 20px; animation: detailSlideInRight 0.25s ease-out;
}
.detail-panel .table-container { border: 1px solid #E2E8F0; border-radius: 12px; flex: unset; }

.detail-panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.detail-panel-header .detail-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.detail-panel-header h5 { font-size: 15px; font-weight: 600; color: #1E293B; letter-spacing: -0.3px; }

.detail-panel-close {
    margin-left: auto; background: none; border: 1px solid #E2E8F0; border-radius: 8px;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #94A3B8; font-size: 14px; transition: all 0.15s ease;
}
.detail-panel-close:hover { background: #F8FAFC; color: #475569; border-color: #CBD5E1; }

.table-container tbody tr.row-selected { background: var(--brand-50); border-left: 3px solid var(--brand-500); }
.table-container tbody tr.row-selected td:first-child { padding-left: 17px; }
.table-container tbody tr.row-selected:hover { background: var(--brand-100); }

@keyframes detailSlideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
