:root { --navy: #0f2340; --accent: #1f6feb; --sidebar-w: 240px; }
body { background: #f4f6fa; color: #1d2733; font-size: .94rem; }
.sidebar { width: var(--sidebar-w); min-height: 100vh; background: var(--navy); flex-shrink: 0; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar .brand { padding: 18px 20px; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; gap: .5rem; align-items: center; }
.sidebar .nav-link { color: rgba(255,255,255,.72); padding: .5rem 1.25rem; display: flex; gap: .7rem; align-items: center; border-left: 3px solid transparent; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .nav-link.active { color: #fff; background: rgba(31,111,235,.35); border-left-color: #5aa0ff; }
.sidebar .nav-heading { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 1rem 1.25rem .3rem; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.content { flex: 1; }
.topbar { background: #fff; border-bottom: 1px solid #e3e8ef; height: 56px; position: sticky; top: 0; z-index: 100; }
.card { border: 0; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,35,64,.08); }
.card-header { background: transparent; font-weight: 600; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.4rem; margin: 0; font-weight: 700; }
.kpi .value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.kpi .icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6c7a89; white-space: nowrap; }
.table thead th a { color: inherit; text-decoration: none; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid #dbe3ee; padding: 0 0 14px 14px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kanban-col { flex: 0 0 270px; background: #e9eef6; border-radius: 12px; padding: 10px; min-height: 240px; }
.kanban-col.drag-over { outline: 2px dashed var(--accent); background: #dde8f8; }
.kanban-col h2 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: grab; }
.kcard.dragging { opacity: .4; }
.kcard .amt { font-weight: 700; color: var(--accent); }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.bar-row .label { width: 120px; flex-shrink: 0; font-size: .85rem; }
.bar-row .bar { flex: 1; background: #e9eef6; border-radius: 6px; height: 22px; overflow: hidden; }
.bar-row .bar > span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-row .num { width: 110px; text-align: right; font-size: .85rem; font-weight: 600; flex-shrink: 0; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f2340, #1c3f73 60%, #1f6feb); padding: 16px; }
.login-card { width: 100%; max-width: 400px; }

.quote-doc { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,35,64,.08); }
@media print {
    .sidebar, .topbar, footer, .no-print, .alert { display: none !important; }
    body { background: #fff; }
    .content { padding: 0 !important; }
    .quote-doc { box-shadow: none; padding: 0; }
}
