/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #161b22; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

/* ── Nav links ─────────────────────────────── */
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8b949e;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: #1c2330; color: #e6edf3; }
.nav-link.active { background: #0f766e22; color: #14b8a6; }
.nav-link.active svg { color: #14b8a6; }

/* ── KPI Cards ─────────────────────────────── */
.kpi-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px 18px;
}
.kpi-label { font-size: 0.75rem; color: #8b949e; margin-bottom: 4px; }
.kpi-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.kpi-sub   { font-size: 0.7rem; color: #8b949e; }

/* ── Input fields ──────────────────────────── */
.input-field {
    background: #1c2330;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.8125rem;
    color: #e6edf3;
    outline: none;
    transition: border-color 0.15s;
}
.input-field:focus { border-color: #14b8a6; }
.input-field::placeholder { color: #484f58; }

/* ── Table rows ────────────────────────────── */
.inv-row { cursor: pointer; transition: background 0.1s; }
.inv-row:hover { background: rgba(20,184,166,0.06); }
.inv-row.selected { background: rgba(20,184,166,0.1); }
.inv-row.overdue  { border-left: 3px solid #ef4444; }
.inv-row.due-soon { border-left: 3px solid #f59e0b; }

/* ── Kanban ────────────────────────────────── */
.kanban-col {
    width: 220px;
    flex-shrink: 0;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
}
.kanban-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #30363d;
}
.kanban-body { padding: 8px; max-height: 480px; overflow-y: auto; }
.kanban-card {
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 6px;
    color: #c9d1d9;
    margin-bottom: 4px;
    transition: background 0.1s;
}
.kanban-card:hover { background: #1c2330; }

/* ── Spinner ───────────────────────────────── */
.spinner {
    width: 28px; height: 28px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #14b8a6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Refresh icon animation ────────────────── */
.spinning { animation: spin 0.7s linear infinite; }

/* ── Modal animation ───────────────────────── */
#invoice-modal > div { animation: modal-in 0.18s ease-out; }
@keyframes modal-in {
    from { opacity:0; transform:scale(0.96) translateY(8px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ── Badge ─────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
