/* TSF Staff Audit System — minimal custom CSS on top of Bootstrap 5.3 */

:root {
    --tsf-primary:        #0f3d6e;
    --tsf-primary-dark:   #0a2a4d;
    --tsf-accent:         #f5a623;
    --tsf-success:        #1f9d55;
    --tsf-danger:         #c53030;
}

/* Tighter type scale on phones */
@media (max-width: 575.98px) {
    body { font-size: 0.95rem; }
    .display-6 { font-size: 1.75rem; }
}

/* Brand colour overrides */
.btn-primary, .bg-primary { background-color: var(--tsf-primary) !important; border-color: var(--tsf-primary) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--tsf-primary-dark) !important; border-color: var(--tsf-primary-dark) !important; }
.text-primary { color: var(--tsf-primary) !important; }

/* Bottom-nav safe-area on iOS */
.fixed-bottom { padding-bottom: env(safe-area-inset-bottom); }
main { padding-bottom: 80px; }    /* room for bottom-nav on phones */
@media (min-width: 768px) { main { padding-bottom: 1rem; } }

/* Tap targets ≥44px on phones */
.btn { min-height: 38px; }
.btn-lg, .form-control-lg { min-height: 48px; }

/* Score input styling — used in the audit form (Phase C) */
.score-input {
    width: 4.25rem;
    text-align: center;
    font-weight: 600;
}

/* Quick-remark chips */
.chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #1f2d3d;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    margin: 2px 4px 2px 0;
}
.chip:hover { background: #dde6f1; border-color: #c5d2e2; }

/* Last-visit inline hint */
.prev-visit-hint {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

/* Skip-mode row dimming */
tr.is-skipped, .is-skipped {
    opacity: 0.55;
    background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0,0,0,0.025) 6px, rgba(0,0,0,0.025) 12px);
}

/* Absent-row dimming */
.is-absent {
    opacity: 0.5;
    background: #fff7ec;
}

/* Threshold colour — used in dashboards */
.pct-low    { color: var(--tsf-danger); font-weight: 600; }
.pct-mid    { color: #b07b00; }
.pct-high   { color: var(--tsf-success); font-weight: 600; }
