/* Owned by the deadlines package (see ORG-CONFIG-UI-TRACKER.md). */

/* ── Page chrome (deadlines list, notifications page) ── */
.dl-page { display: flex; flex-direction: column; gap: 1rem; }
.dl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.dl-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #0F1C35; }
.dl-subtitle { margin: 0.2rem 0 0; font-size: 0.8rem; color: #64748B; }
.dl-state { padding: 2rem 1rem; text-align: center; color: #64748B; font-size: 0.85rem; background: #fff; border: 1px solid #E2E8F0; border-radius: 0.75rem; }
.dl-error { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; border-radius: 0.5rem; font-size: 0.85rem; }
.dl-loading { opacity: 0.6; pointer-events: none; }

.dl-btn { padding: 0.4rem 0.85rem; font-size: 0.78rem; font-weight: 600; color: #0F1C35; background: #fff; border: 1px solid #CBD5E1; border-radius: 0.5rem; cursor: pointer; }
.dl-btn:hover:not(:disabled) { background: #F1F5F9; }
.dl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dl-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dl-chip { padding: 0.35rem 0.8rem; font-size: 0.78rem; font-weight: 600; color: #475569; background: #fff; border: 1px solid #CBD5E1; border-radius: 999px; cursor: pointer; }
.dl-chip:hover { background: #F1F5F9; }
.dl-chip.active { background: #0F1C35; border-color: #0F1C35; color: #fff; }

.dl-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dl-field { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.7rem; color: #64748B; }
.dl-field select { min-width: 12rem; padding: 0.4rem 0.6rem; font-size: 0.8rem; border: 1px solid #CBD5E1; border-radius: 0.5rem; background: #fff; color: #0F1C35; }

.dl-table { background: #fff; border: 1px solid #E2E8F0; border-radius: 0.75rem; overflow-x: auto; }
.dl-row { display: grid; grid-template-columns: 1.1fr 2fr 1fr 1fr 1.3fr; gap: 0.75rem; align-items: center; min-width: 640px; padding: 0.7rem 1rem; font-size: 0.82rem; border-bottom: 1px solid #F1F5F9; }
.dl-row:last-child { border-bottom: none; }
.dl-row-head { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: #64748B; background: #F8FAFC; font-weight: 600; }
.dl-row-click { cursor: pointer; }
.dl-row-click:hover, .dl-row-click:focus-visible { background: #F8FAFC; outline: none; }
.dl-ref { font-weight: 600; color: #0F1C35; }
.dl-muted { color: #94A3B8; }

.dl-badge { display: inline-block; padding: 0.15rem 0.55rem; font-size: 0.7rem; font-weight: 600; border-radius: 999px; }
.dl-breached { background: #FEE2E2; color: #B91C1C; }
.dl-at-risk { background: #FEF3C7; color: #B45309; }
.dl-upcoming { background: #DBEAFE; color: #1D4ED8; }
.dl-on-track { background: #DCFCE7; color: #15803D; }
.dl-paused { background: #E2E8F0; color: #475569; }

.dl-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: #64748B; }
.dl-pager-btns { display: flex; align-items: center; gap: 0.6rem; }

/* ── SLA KPI tiles ── */
.kpi-block { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.kpi-period { font-size: 0.72rem; color: #64748B; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; }
.kpi-tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #E2E8F0; border-radius: 0.75rem; border-left-width: 4px; }
.kpi-label { font-size: 0.7rem; color: #64748B; font-weight: 600; }
.kpi-value { font-size: 1.6rem; font-weight: 700; color: #0F1C35; line-height: 1.2; }
.kpi-sub { font-size: 0.7rem; color: #94A3B8; }
.kpi-good { border-left-color: #0F766E; }
.kpi-warn { border-left-color: #D97706; }
.kpi-bad { border-left-color: #EF4444; }
.kpi-neutral { border-left-color: #6366F1; }
.kpi-skeleton { min-height: 5.2rem; border-left-color: #E2E8F0; opacity: 0.6; }

/* ── Notification rows (notifications page) ── */
.nt-row { display: flex; align-items: flex-start; gap: 0.6rem; width: 100%; padding: 0.7rem 0.9rem; text-align: left; background: #fff; border: none; border-bottom: 1px solid #F1F5F9; cursor: pointer; font: inherit; }
.nt-row:hover, .nt-row:focus-visible { background: #F8FAFC; outline: none; }
.nt-row.nt-nolink { cursor: default; }
.nt-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 0.35rem; border-radius: 50%; background: transparent; }
.nt-row.unread .nt-dot { background: #EF4444; }
.nt-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.nt-title { font-size: 0.82rem; color: #334155; }
.nt-row.unread .nt-title { font-weight: 700; color: #0F1C35; }
.nt-message { font-size: 0.76rem; color: #64748B; }
.nt-time { font-size: 0.68rem; color: #94A3B8; }
.nt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nt-page-list { background: #fff; border: 1px solid #E2E8F0; border-radius: 0.75rem; overflow: hidden; }
.nt-page-list .nt-row:last-child { border-bottom: none; }
