.qa-shifts-muted {
    display: inline-block;
    color: var(--color-text-muted, #64748b);
    font-size: var(--font-size-sm, 13px);
}

.qa-shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

.qa-shifts-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 28px;
    text-align: center;
}

.qa-shifts-pill--on    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.qa-shifts-pill--break { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.qa-shifts-pill--off   { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.qa-roster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.qa-roster-row--break { background: #fffbeb; border-color: #fde68a; }
.qa-roster-row--off   { background: #ffffff; }

.qa-roster-row-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0f172a;
}

.qa-roster-row-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.qa-roster-row-dot--on    { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.qa-roster-row-dot--break { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); }
.qa-roster-row-dot--off   { background: #94a3b8; }

.qa-roster-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
    color: #475569;
}

.qa-roster-row-branch {
    font-weight: 500;
}

.qa-roster-row-time {
    font-variant-numeric: tabular-nums;
}

.qa-roster-row-name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.qa-roster-row-name-link:hover {
    border-bottom-color: currentColor;
}

.qa-shifts-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3, 12px);
}

.qa-shifts-totals-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qa-shifts-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

.qa-shifts-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.qa-shifts-stat-value--accent {
    color: #1d4ed8;
}

.qa-shifts-date-input {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 220px;
}

.qa-shift-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-shift-card--open {
    border-color: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18);
}

.qa-shift-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.qa-shift-card-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qa-shift-card-day {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.qa-shift-card-time {
    font-size: 13px;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.qa-shift-card-branch {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.qa-shift-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qa-shift-card-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 56px;
}

.qa-shift-card-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.qa-shift-card-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.qa-shift-card-stat--net .qa-shift-card-stat-value {
    color: #1d4ed8;
}

.qa-shift-card-chevron {
    font-size: 14px;
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.qa-shift-card-detail {
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-shift-event-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: flex-start;
}

.qa-shift-event-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 4px;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.qa-shift-event-dot--start       { background: #16a34a; }
.qa-shift-event-dot--end         { background: #1d4ed8; }
.qa-shift-event-dot--break-start { background: #d97706; }
.qa-shift-event-dot--break-end   { background: #f59e0b; }

.qa-shift-event-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.qa-shift-event-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.qa-shift-event-meta {
    font-size: 12px;
    color: #475569;
}

.qa-shift-event-note {
    font-size: 12px;
    color: #475569;
    font-style: italic;
    margin-top: 2px;
}

.qa-shift-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qa-shift-timeline-track {
    position: relative;
    height: 14px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.qa-shift-timeline-segment {
    position: absolute;
    top: 0;
    height: 100%;
}

.qa-shift-timeline-segment--worked {
    background: #16a34a;
}

.qa-shift-timeline-segment--worked-active {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.qa-shift-timeline-segment--break {
    background: #f59e0b;
}

.qa-shift-timeline-segment--break-active {
    background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 6px, #fbbf24 6px, #fbbf24 12px);
}

.qa-shift-timeline-axis {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.qa-shifts-link {
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.qa-shifts-link:hover { border-bottom-color: currentColor; }

.qa-ts-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.qa-ts-totals-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 84px;
}

.qa-ts-totals-card--primary {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.qa-ts-totals-value {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.qa-ts-totals-card--primary .qa-ts-totals-value {
    color: #1d4ed8;
}

.qa-ts-totals-sub {
    font-size: 12px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.qa-ts-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    color: #334155;
    white-space: nowrap;
}
.qa-ts-pill strong { font-weight: 700; color: #0f172a; }
.qa-ts-pill--accent {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.qa-ts-pill--accent strong { color: #1d4ed8; }

.qa-ts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.qa-ts-table thead th {
    text-align: left;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}
.qa-ts-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    vertical-align: middle;
}
.qa-ts-table tbody tr:last-child td { border-bottom: 1px solid #e2e8f0; }
.qa-ts-table tfoot td {
    padding: 10px 12px;
    background: #f8fafc;
    border-top: 2px solid #cbd5e1;
    color: #0f172a;
    font-size: 13px;
}
.qa-ts-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.qa-ts-num-strong { color: #1d4ed8; font-weight: 700; }

.qa-ts-row-clickable { cursor: pointer; transition: background 120ms ease; }
.qa-ts-row-clickable:hover { background: #f8fafc; }

.qa-ts-row-open td { background: #fffbeb; }
.qa-ts-row-subtotal td {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.qa-ts-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}
.qa-ts-badge--warn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.qa-ts-disclaimer {
    font-size: 12px;
    color: #64748b;
    padding: 8px 12px;
    border-left: 3px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
}

@media print {
    .qa-ts-no-print { display: none !important; }
    .qa-ts-print-header { display: block !important; padding-bottom: 12px; border-bottom: 2px solid #0f172a; margin-bottom: 16px; }
    .qa-ts-print-header h1 { font-size: 18px; margin: 0 0 4px 0; color: #0f172a; }
    .qa-ts-print-header div { font-size: 11px; color: #475569; }
    body { background: #ffffff !important; color: #0f172a !important; }
    .qa-ts-table { font-size: 11px; }
    .qa-ts-table thead th { background: #ffffff !important; color: #0f172a !important; border-bottom: 1.5px solid #0f172a !important; }
    .qa-ts-table tbody td { padding: 6px 8px; }
    .qa-ts-totals { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .qa-ts-totals-card { padding: 8px 10px; min-height: auto; box-shadow: none !important; border-color: #cbd5e1 !important; background: #ffffff !important; }
    .qa-ts-totals-value { font-size: 18px; }
    .qa-ts-pill { background: #ffffff !important; border-color: #cbd5e1 !important; }
    .qa-ts-row-open td { background: #ffffff !important; }
    .qa-ts-row-subtotal td { background: #ffffff !important; font-style: italic; }
    .qa-ts-disclaimer { background: #ffffff; }
    table, tr, td, th { page-break-inside: avoid; }
    a { text-decoration: none !important; color: #0f172a !important; }
}
