:root { --brand: #12355b; --brand-2: #1d5c96; }
body { background: #f4f6f9; }
.bg-brand { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.navbar .nav-link.active { background: rgba(255,255,255,.15); border-radius: .375rem; }
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: #dbe6f3; color: var(--brand); font-weight: 600; flex-shrink: 0; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: #6c757d; font-size: .85rem; }
a .stat-card:hover { transform: translateY(-2px); transition: .15s; }
.card { border-radius: .75rem; }
.card-header { background: #fff; font-weight: 600; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table-sm td, .table-sm th { font-size: .9rem; }
.editor-wrap .ql-toolbar { border-radius: .5rem .5rem 0 0; background: #fafbfc; }
.editor-wrap .ql-container { border-radius: 0 0 .5rem .5rem; min-height: 160px; font-size: .95rem; background: #fff; }
.editor-wrap.tall .ql-container { min-height: 260px; }
.rich-content { background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; padding: 1rem; overflow-x: auto; }
.rich-content img { max-width: 100%; height: auto; }
.rich-content table { border-collapse: collapse; }
.rich-content td, .rich-content th { border: 1px solid #ccc; padding: 4px 8px; }
.rich-content p:last-child { margin-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: #dee2e6; }
.timeline li { position: relative; padding-left: 50px; margin-bottom: 1.25rem; }
.timeline .dot { position: absolute; left: 6px; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; }
.dot.done { background: #198754; } .dot.pending { background: #ffc107; color: #333; } .dot.waiting { background: #adb5bd; }
.steps-bar { display: flex; gap: 4px; }
.steps-bar span { flex: 1; height: 6px; border-radius: 3px; background: #dee2e6; }
.steps-bar span.on { background: #198754; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 1rem; }
.login-card { width: 100%; max-width: 400px; }
.file-chip { display: inline-flex; align-items: center; gap: .4rem; background: #eef2f7; border-radius: 2rem; padding: .25rem .75rem; margin: 0 .4rem .4rem 0; font-size: .85rem; }
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0 !important; }
@media (max-width: 576px) { .stat-card .stat-value { font-size: 1.3rem; } }
