:root {
    --primary: #0f4c75;
    --primary-light: #3282b8;
    --primary-dark: #0b2545;
    --accent: #ff6b35;
    --accent-light: #ff8c5a;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #6c757d;
    --border: #e0e4e8;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.header-user {
    font-size: 13px;
    opacity: 0.85;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.25);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.btn-accent:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
}

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

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

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

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    padding: 18px 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card .label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .value.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filters */
.filters {
    padding: 0 24px 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filters select,
.filters input {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: var(--text);
    min-width: 130px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50,130,184,0.1);
}

/* Session list */
.content {
    padding: 0 24px 24px;
}

.session-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.session-table th {
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
    color: var(--text);
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 52px;
    z-index: 10;
}

.session-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    vertical-align: middle;
}

.session-table tr:last-child td {
    border-bottom: none;
}

.session-table tr:hover td {
    background: #f8fafc;
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.status-done {
    background: var(--success-light);
    color: #065f46;
}

.status-pending {
    background: var(--warning-light);
    color: #92400e;
}

.status-analyzing {
    background: var(--info-light);
    color: #1e40af;
}

.status-error {
    background: var(--danger-light);
    color: #991b1b;
}

.status-no_transcript {
    background: #f3f4f6;
    color: #6b7280;
}

/* Contract badges */
.contract-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.contract-done {
    background: var(--success-light);
    color: #065f46;
}

.contract-pending {
    background: var(--warning-light);
    color: #92400e;
}

.contract-no {
    background: var(--danger-light);
    color: #991b1b;
}

.contract-select {
    padding: 4px 8px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.contract-evidence {
    font-size: 13px;
    color: var(--text-light);
    padding: 10px 14px;
    background: var(--info-light);
    border-left: 3px solid var(--info);
    border-radius: 6px;
    margin-bottom: 16px;
}

.feedback-section-label {
    font-size: 13px;
    font-weight: 700;
    margin: 16px 0 8px;
    padding: 0;
}

.good-label { color: var(--success); }
.improve-label { color: var(--warning); }

.score-display {
    font-weight: 800;
    font-size: 16px;
}

.score-high { color: var(--success); }
.score-mid { color: var(--warning); }
.score-low { color: var(--danger); }

/* Detail modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
    padding: 30px 16px;
}

.modal-overlay.active {
    display: block;
}

.modal {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-wide {
    max-width: 1100px;
}

.modal-narrow {
    max-width: 440px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.modal h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 700;
}

.modal h3 {
    font-size: 15px;
    margin: 24px 0 10px;
    color: var(--primary);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
    font-weight: 700;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.detail-meta .meta-item {
    font-size: 13px;
}

.detail-meta .meta-label {
    color: var(--text-light);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-meta .meta-value {
    font-weight: 700;
    color: var(--text);
}

/* Score grid */
.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.score-section {
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border);
}

.score-section h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--primary);
    font-weight: 700;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.score-bar-bg {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 12px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.overall-score-display {
    text-align: center;
    padding: 24px;
    margin: 16px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 16px;
    color: white;
}

.overall-score-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: white !important;
}

.overall-score-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

/* Feedback items */
.feedback-list {
    margin: 8px 0;
}

.feedback-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.feedback-item.good {
    background: var(--success-light);
    border-left: 4px solid var(--success);
}

.feedback-item.improve {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
}

.feedback-item .point {
    font-weight: 600;
    margin-bottom: 4px;
}

.feedback-item .quote {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 6px;
    padding-left: 12px;
    border-left: 2px solid #d1d5db;
}

.summary-box {
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
    border-radius: 10px;
    padding: 16px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid var(--border);
}

.priority-action {
    background: var(--danger-light);
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
}

/* Loading / empty states */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    font-size: 15px;
}

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

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

.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pagination button {
    padding: 6px 14px;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast.warning { background: var(--warning); }

/* Transcript toggle */
.transcript-toggle {
    margin-top: 8px;
}

.transcript-content {
    max-height: 300px;
    overflow-y: auto;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-top: 8px;
    display: none;
}

.transcript-content.show {
    display: block;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 44px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.login-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(50,130,184,0.1);
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15,76,117,0.3);
    transition: all 0.2s;
}

.login-btn:hover {
    box-shadow: 0 6px 16px rgba(15,76,117,0.4);
    transform: translateY(-1px);
}

/* Logout button */
.btn-logout {
    color: white;
    border-color: rgba(255,255,255,0.3);
    font-size: 12px;
    padding: 6px 12px;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* User management table */
.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 16px;
}

.user-table th {
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
    color: var(--text);
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}

.user-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    vertical-align: middle;
}

.user-table tr:last-child td {
    border-bottom: none;
}

.user-table tr:hover td {
    background: #f8fafc;
}

.action-cell {
    white-space: nowrap;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.role-admin {
    background: var(--info-light);
    color: #1e40af;
}

.role-staff {
    background: #f3f4f6;
    color: #6b7280;
}

/* User add form */
.user-add-form {
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.user-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.form-input {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: var(--text);
    min-width: 120px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50,130,184,0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* Password change form */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50,130,184,0.1);
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
}

/* Analytics */
.analytics-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-big-score {
    text-align: center;
    min-width: 120px;
}

.analytics-big-score .big-number {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}

.analytics-big-score .big-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.analytics-info {
    flex: 1;
}

.analytics-info h2 {
    margin-bottom: 4px;
}

.analytics-info .analytics-meta {
    font-size: 13px;
    color: var(--text-light);
}

.analytics-scores-section {
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.analytics-scores-section h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--primary);
    font-weight: 700;
}

.analytics-score-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.analytics-score-row .score-label {
    min-width: 140px;
    font-weight: 500;
}

.analytics-score-row .score-bar-bg {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    margin: 0 14px;
    overflow: hidden;
}

.analytics-score-row .score-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.analytics-score-row .score-value {
    min-width: 44px;
    text-align: right;
    font-weight: 700;
    font-size: 15px;
}

.analytics-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.analytics-card {
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
}

.analytics-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.analytics-card.strengths {
    background: var(--success-light);
    border-color: #a7f3d0;
}

.analytics-card.strengths h4 {
    color: #065f46;
}

.analytics-card.weaknesses {
    background: var(--warning-light);
    border-color: #fde68a;
}

.analytics-card.weaknesses h4 {
    color: #92400e;
}

.analytics-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-card ul li {
    padding: 4px 0;
    font-size: 14px;
    font-weight: 500;
}

.analytics-card.strengths ul li {
    color: #065f46;
}

.analytics-card.weaknesses ul li {
    color: #92400e;
}

.analytics-contract-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contract-stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 90px;
}

.contract-stat .contract-count {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.contract-stat .contract-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.contract-stat.stat-seiyaku .contract-count { color: var(--success); }
.contract-stat.stat-motikaeri .contract-count { color: var(--warning); }
.contract-stat.stat-miseiyaku .contract-count { color: var(--danger); }
.contract-stat.stat-fumei .contract-count { color: var(--text-light); }

.contract-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
}

.contract-rate .rate-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.contract-rate .rate-label {
    font-size: 11px;
    color: var(--text-light);
}

.analytics-trend-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.analytics-trend-table th {
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.analytics-trend-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
}

.analytics-trend-table tr:last-child td {
    border-bottom: none;
}

.analytics-recent-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.analytics-recent-table th {
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.analytics-recent-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
}

.analytics-recent-table tr:last-child td {
    border-bottom: none;
}

.analytics-recent-table tr:hover td {
    background: #f8fafc;
    cursor: pointer;
}

/* Staff analytics overview table */
.staff-analytics-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 16px;
}

.staff-analytics-table th {
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
    cursor: pointer;
    user-select: none;
}

.staff-analytics-table th:hover {
    background: #e8ebef;
}

.staff-analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    vertical-align: middle;
}

.staff-analytics-table tr:last-child td {
    border-bottom: none;
}

.staff-analytics-table tr:hover td {
    background: #f8fafc;
    cursor: pointer;
}

.analytics-back-btn {
    margin-bottom: 16px;
}

.analytics-mini-bar {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-left: 6px;
}

.analytics-mini-bar-fill {
    height: 100%;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }
    .header-left {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .header h1 { font-size: 15px; }
    .header-actions { justify-content: center; }
    .stats-bar { padding: 12px 16px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px 16px; }
    .stat-card .value { font-size: 26px; }
    .filters { padding: 0 16px 12px; }
    .filters select, .filters input { min-width: 100px; font-size: 12px; }
    .content { padding: 0 16px 16px; }
    .scores-grid { grid-template-columns: 1fr; }
    .modal { padding: 20px 16px; border-radius: 12px; }
    .modal-overlay { padding: 16px 10px; }
    .session-table { font-size: 11px; }
    .session-table th, .session-table td { padding: 8px 8px; }
    .login-card { padding: 32px 24px; }
    .overall-score-number { font-size: 44px; }
    .user-form-row { flex-direction: column; }
    .form-input { width: 100%; min-width: auto; }
    .user-table { font-size: 11px; }
    .user-table th, .user-table td { padding: 8px 6px; }
    .analytics-header { flex-direction: column; text-align: center; }
    .analytics-cards-row { grid-template-columns: 1fr; }
    .analytics-contract-row { justify-content: center; }
    .analytics-score-row .score-label { min-width: 110px; font-size: 12px; }
}

@media (max-width: 480px) {
    .session-table th:nth-child(5),
    .session-table td:nth-child(5),
    .session-table th:nth-child(10),
    .session-table td:nth-child(10) {
        display: none;
    }
}
