/* ---- Employee Manager (Business) + Employee-side pages ---- */

.employee-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.employee-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ui-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.employee-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.employee-stat-tile {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 16px;
}

.employee-stat-label {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--app-text-muted);
}

.employee-stat-value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--app-text);
}

.employee-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.employee-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-text);
}

.employee-section-link {
    background: transparent;
    border: none;
    color: var(--ui-primary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.employee-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.employee-team-card,
.employee-list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.employee-team-card {
    flex-direction: column;
    align-items: flex-start;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ui-primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.employee-card-name {
    margin: 8px 0 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--app-text);
}

.employee-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.employee-badge--onjob {
    background: rgba(111, 214, 127, 0.18);
    color: #6fd67f;
}

.employee-badge--offjob {
    background: rgba(255, 255, 255, 0.1);
    color: var(--app-text-muted);
}

.employee-badge--inactive {
    background: rgba(248, 113, 113, 0.15);
    color: var(--ui-danger);
}

.employee-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-list-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-text);
}

.employee-list-sub {
    font-size: 0.8rem;
    color: var(--app-text-muted);
}

.employee-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.employee-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.employee-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 12px 14px;
}

.employee-activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1rem;
}

.employee-activity-icon--clockin {
    background: rgba(88, 166, 255, 0.18);
    color: #58a6ff;
}

.employee-activity-icon--timeoff {
    background: rgba(168, 130, 245, 0.18);
    color: #a882f5;
}

.employee-activity-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.employee-activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
}

.employee-activity-meta {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

/* Filter chips (Time Off status filters, attendance range toggle) */

.employee-filter-row {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
    overflow-x: auto;
}

.employee-filter-chip {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.employee-filter-chip.active {
    background: var(--ui-primary);
    border-color: var(--ui-primary);
    color: #fff;
}

/* Time off rows */

.timeoff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeoff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-left: 3px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 12px 14px;
}

.timeoff-row--submitted {
    border-left-color: #58a6ff;
}

.timeoff-row--accepted {
    border-left-color: #6fd67f;
}

.timeoff-row--rejected {
    border-left-color: var(--ui-danger);
}

.timeoff-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--app-surface-raised);
    color: var(--app-text-muted);
    flex-shrink: 0;
}

.timeoff-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeoff-row-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
}

.timeoff-row-meta {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.timeoff-status-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.timeoff-status-badge--submitted {
    background: rgba(88, 166, 255, 0.18);
    color: #58a6ff;
}

.timeoff-status-badge--accepted {
    background: rgba(111, 214, 127, 0.18);
    color: #6fd67f;
}

.timeoff-status-badge--rejected {
    background: rgba(248, 113, 113, 0.15);
    color: var(--ui-danger);
}

.timeoff-decision-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.timeoff-decision-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-text);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.timeoff-decision-btn--accept {
    background: rgba(111, 214, 127, 0.15);
    border-color: transparent;
    color: #6fd67f;
}

.timeoff-decision-btn--reject {
    background: rgba(248, 113, 113, 0.12);
    border-color: transparent;
    color: var(--ui-danger);
}

.timeoff-row-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
}

.timeoff-row-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Employee detail (Business viewing one employee) */

.employee-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.employee-detail-info {
    flex: 1;
    min-width: 0;
}

.employee-detail-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--app-text);
}

.employee-detail-sub {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--app-text-muted);
}

.employee-status-toggle {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-text);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.employee-status-toggle--active {
    background: rgba(111, 214, 127, 0.15);
    border-color: transparent;
    color: #6fd67f;
}

.employee-status-toggle--inactive {
    background: rgba(248, 113, 113, 0.12);
    border-color: transparent;
    color: var(--ui-danger);
}

/* Attendance */

.attendance-total-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ui-primary-muted);
    border-radius: var(--app-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.attendance-total-label {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--ui-primary);
}

.attendance-total-value {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ui-primary);
}

.attendance-shift-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attendance-shift-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 12px 14px;
}

.attendance-shift-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ui-primary-muted);
    color: var(--ui-primary);
    flex-shrink: 0;
}

.attendance-shift-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attendance-shift-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
}

.attendance-shift-date {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.attendance-shift-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text-secondary);
    white-space: nowrap;
}

/* Clock in/out */

.clock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.clock-status {
    font-size: 0.9rem;
    color: var(--app-text-muted);
}

.clock-button {
    width: 100%;
    max-width: 240px;
    padding: 16px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.clock-button--in {
    background: var(--ui-primary);
    color: #fff;
}

.clock-button--out {
    background: rgba(248, 113, 113, 0.15);
    color: var(--ui-danger);
}

/* Earning */

.earning-total-card {
    background: var(--ui-primary-muted);
    border-radius: var(--app-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.earning-total-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ui-primary);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.earning-total-label {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ui-primary);
}

.earning-total-value {
    margin: 2px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--app-text);
}

.earning-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border);
}

.earning-history-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.earning-history-month {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.earning-history-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
}

.earning-history-amount {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--app-text);
}

/* Assigned jobs list (Employee Manager's per-employee Jobs tab, and Employee's My Jobs page) */

.assigned-job-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assigned-job-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.assigned-job-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.assigned-job-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--app-text);
}

.assigned-job-meta {
    font-size: 0.8rem;
    color: var(--app-text-muted);
}

/* Job assignment chips (JobView.razor, Business only) */

.job-assign-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-assign-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.job-assign-chip.active {
    background: var(--ui-primary-muted);
    border-color: var(--ui-primary);
    color: var(--ui-primary);
}

/* ---- Revenue Analytics ---- */

.revenue-stat-delta {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.revenue-stat-delta--positive {
    color: #6fd67f;
}

.revenue-stat-delta--negative {
    color: var(--ui-danger);
}

.revenue-weekly-delta {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text-muted);
}

.revenue-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    padding: 0 4px;
    margin-bottom: 8px;
}

.revenue-bar-column {
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.revenue-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
    background: var(--ui-primary-muted);
}

.revenue-bar--negative {
    background: rgba(248, 113, 113, 0.35);
}

.revenue-activity-icon--positive {
    background: rgba(111, 214, 127, 0.18);
    color: #6fd67f;
}

.revenue-activity-icon--negative {
    background: rgba(168, 130, 245, 0.18);
    color: #a882f5;
}

.revenue-activity-icon--pending {
    background: rgba(245, 185, 66, 0.18);
    color: #f5b942;
}

.revenue-activity-trailing {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.revenue-activity-amount {
    font-size: 0.9rem;
    font-weight: 700;
}

.revenue-activity-amount--positive {
    color: #6fd67f;
}

.revenue-activity-amount--negative {
    color: var(--app-text);
}

.revenue-activity-amount--pending {
    color: #f5b942;
}

.revenue-activity-date {
    font-size: 0.75rem;
    color: var(--app-text-muted);
}
