/* Supervisor Dashboard Styles */
.supervisor-dashboard {
    max-width: 1400px;
}

.supervisor-dashboard__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--surface-border);
}

.supervisor-dashboard__header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand);
}

.supervisor-dashboard__scope {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats Grid */
.supervisor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.supervisor-stat {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supervisor-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.supervisor-stat__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.supervisor-stat__content {
    flex: 1;
}

.supervisor-stat__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand);
}

.supervisor-stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.supervisor-stat--created {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.supervisor-stat--created .supervisor-stat__value,
.supervisor-stat--created .supervisor-stat__label {
    color: white;
}

.supervisor-stat--closed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.supervisor-stat--closed .supervisor-stat__value,
.supervisor-stat--closed .supervisor-stat__label {
    color: white;
}

.supervisor-stat--approaching {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.supervisor-stat--approaching .supervisor-stat__value,
.supervisor-stat--approaching .supervisor-stat__label {
    color: white;
}

.supervisor-stat--overdue {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.supervisor-stat--overdue .supervisor-stat__value,
.supervisor-stat--overdue .supervisor-stat__label {
    color: white;
}

/* Grid Layout */
.supervisor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .supervisor-grid {
        grid-template-columns: 1fr;
    }
}

/* Panels */
.supervisor-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.supervisor-panel__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    background: var(--surface-alt);
}

.supervisor-panel__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand);
}

.supervisor-panel__body {
    padding: 1.5rem;
}

/* Priority Rows */
.priority-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface-border);
}

.priority-row:last-child {
    border-bottom: none;
}

.priority-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
}

.priority-count {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--brand);
}

/* Action Links */
.supervisor-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.75rem;
}

.supervisor-action-link:last-child {
    margin-bottom: 0;
}

.supervisor-action-link:hover {
    background: var(--surface-border);
    transform: translateX(4px);
}

.supervisor-action-link__icon {
    font-size: 1.5rem;
}

/* Table Styles */
.supervisor-panel .table {
    margin: 0;
}

.supervisor-panel .table thead th {
    background: var(--surface-alt);
    border-bottom: 2px solid var(--surface-border);
    font-weight: 600;
    color: var(--brand);
    padding: 1rem;
}

.supervisor-panel .table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.supervisor-panel .table tbody tr[data-ticket-row-href] {
    cursor: pointer;
    transition: background 0.2s ease;
}

.supervisor-panel .table tbody tr[data-ticket-row-href]:hover {
    background: var(--surface-alt);
}

/* System Status Indicator */
.system-status-indicator {
    display: flex;
    align-items: center;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.system-status--alert {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.system-status--alert:hover {
    background: #f5c6cb;
}

.system-status--ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.status-text {
    font-weight: 600;
}
