*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #111827; min-height: 100vh; }

/* ── Header ── */
header {
    background: #0d1117;
    display: flex; align-items: center;
    padding: 0 24px; height: 52px;
    position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 8px; margin-right: 28px; text-decoration: none; }
.logo-icon {
    width: 30px; height: 30px; background: #00BFA5; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 15px; font-weight: 700; color: #fff; }
.logo-sub  { font-size: 14px; font-weight: 400; color: #9CA3AF; margin-left: 5px; }

nav { display: flex; gap: 2px; flex: 1; }
.nav-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 500; color: #9CA3AF; cursor: pointer; user-select: none;
}
.nav-tab.active { background: #fff; color: #111827; font-weight: 600; }
.soon-badge {
    background: #2D3748; color: #9CA3AF;
    font-size: 9px; font-weight: 700; letter-spacing: .6px;
    padding: 2px 5px; border-radius: 3px; text-transform: uppercase;
}

.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.clock { text-align: right; }
.clock-time { font-size: 16px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.clock-date { font-size: 11px; color: #9CA3AF; margin-top: 1px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-dot  { width: 8px; height: 8px; background: #00BFA5; border-radius: 50%; flex-shrink: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; }
.user-role { font-size: 11px; color: #9CA3AF; }
.icon-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid #2D3748; background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #9CA3AF; flex-shrink: 0;
}
.icon-btn:hover { border-color: #4B5563; color: #D1D5DB; }

/* ── Page ── */
main { padding: 28px 32px; }
.page-title { font-size: 26px; font-weight: 700; color: #111827; line-height: 1.2; }
.page-sub   { font-size: 13px; color: #6B7280; margin: 5px 0 22px; padding-bottom: 22px; }

/* ── Cards ── */
.card {
    background: #fff; border-radius: 14px;
    padding: 20px 24px; margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
}
.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 16px; }
.card-title    { font-size: 14px; font-weight: 600; color: #111827; }
.card-subtitle { font-size: 12px; color: #9CA3AF; margin-top: 3px; }
.card-count    { font-size: 13px; color: #6B7280; font-weight: 500; white-space: nowrap; margin-top: 2px; }

.legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #4B5563; white-space: nowrap; }
.swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.chart-wrap { position: relative; }
.chart-help {
    display: flex; align-items: flex-start; gap: 6px;
    margin-top: 10px; font-size: 12px; color: #6B7280; line-height: 1.6;
}
.help-icon { flex-shrink: 0; margin-top: 2px; }

/* ── Table ── */
.req-table { width: 100%; border-collapse: collapse; }
.req-table thead th {
    font-size: 11px; font-weight: 600; color: #9CA3AF;
    text-transform: uppercase; letter-spacing: .7px;
    padding: 10px 8px 10px 0; text-align: left;
    border-bottom: 1px solid #F3F4F6;
}
.req-table tbody tr { border-bottom: 1px solid #F3F4F6; cursor: pointer; transition: background .1s; }
.req-table tbody tr:last-child { border-bottom: none; }
.req-table tbody tr:hover { background: #FAFAFA; }
.req-table td { padding: 14px 8px 14px 0; font-size: 14px; color: #374151; vertical-align: middle; }
.req-table td:first-child { color: #6B7280; font-size: 13px; font-variant-numeric: tabular-nums; }

.dir-up   { display: inline-flex; align-items: center; gap: 5px; color: #00BFA5; font-weight: 600; }
.dir-down { display: inline-flex; align-items: center; gap: 5px; color: #3B82F6; font-weight: 600; }

.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.s-delivered { border: 1.5px solid #00BFA5; color: #00BFA5; }
.s-committed { border: 1.5px solid #9CA3AF; color: #374151; }
.s-pending   { border: 1.5px solid #E5E7EB; color: #9CA3AF; }

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.btn-cancel {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid #E5E7EB; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #9CA3AF; font-size: 10px; line-height: 1; padding: 0;
}
.btn-cancel:hover { border-color: #9CA3AF; color: #6B7280; }
.row-chevron { color: #D1D5DB; font-size: 18px; line-height: 1; }
