:root { --wb-azul: #0b3d63; --wb-azul2: #0f4c7a; --wb-laranja: #f28c28; --bs-body-bg: #f3f5f8; }
body { font-size: .925rem; background: var(--bs-body-bg); }
.topbar { background: var(--wb-azul); }
.sidebar { width: 260px; min-height: 100vh; background: var(--wb-azul) !important; color: #dbe6f0; flex-shrink: 0; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar .brand { display: flex; gap: .6rem; align-items: center; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.sidebar .brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.sidebar .brand small { color: #9fb7cc; }
.sidebar .sec { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #8fb0cc; padding: .9rem 1rem .3rem; }
.sidebar .nav-link { color: #dbe6f0; padding: .32rem 1rem; border-left: 3px solid transparent; font-size: .88rem; }
.sidebar .nav-link i { width: 1.3rem; display: inline-block; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,.1); border-left-color: var(--wb-laranja); color: #fff; }
.sidebar .userbox { padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; font-size: .85rem; }
.sidebar .userbox a { color: var(--wb-laranja); text-decoration: none; }
.sidebar .userbox small { color: #9fb7cc; }
.content { padding: 1.25rem 1.5rem; min-width: 0; }
@media (max-width: 576px) { .content { padding: 1rem; } }
.page-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; color: var(--wb-azul); font-weight: 600; }
.card { border: 0; box-shadow: 0 1px 3px rgba(16,40,70,.08); border-radius: .6rem; }
.card-header { background: #fff; font-weight: 600; color: var(--wb-azul); border-bottom: 1px solid #eef1f5; }
.btn-primary { background: var(--wb-azul); border-color: var(--wb-azul); }
.btn-primary:hover { background: var(--wb-azul2); border-color: var(--wb-azul2); }
.btn-accent { background: var(--wb-laranja); color: #fff; border: 0; }
.btn-accent:hover { background: #d97817; color: #fff; }
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .75rem; text-transform: uppercase; color: #5b6b7c; letter-spacing: .03em; font-weight: 600; white-space: nowrap; }
.table td { vertical-align: middle; }
.kpi { padding: 1rem 1.1rem; }
.kpi .v { font-size: 1.6rem; font-weight: 700; color: var(--wb-azul); line-height: 1.1; }
.kpi .l { color: #66778a; font-size: .8rem; }
.kpi i { font-size: 1.6rem; color: var(--wb-laranja); }
.alert-list .list-group-item { font-size: .88rem; }
.form-label { font-size: .82rem; color: #445566; margin-bottom: .2rem; font-weight: 500; }
.form-text { font-size: .75rem; }
fieldset legend { font-size: 1rem; font-weight: 600; color: var(--wb-azul); border-bottom: 1px solid #e3e8ee; padding-bottom: .3rem; margin-bottom: .8rem; }
.foto-func { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: #e9eef3; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--wb-azul); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 600; }
.matriz th.rot { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .72rem; text-transform: none; }
.matriz td { text-align: center; padding: .25rem; }
.matriz td.nome { text-align: left; white-space: nowrap; }
.cell { display: inline-block; width: 22px; height: 22px; border-radius: 4px; line-height: 22px; color: #fff; font-size: .7rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0b3d63, #12588c); padding: 1rem; }
.login-card { max-width: 400px; width: 100%; }
.nav-tabs .nav-link { color: #445566; font-size: .88rem; }
.nav-tabs .nav-link.active { color: var(--wb-azul); font-weight: 600; }
.text-azul { color: var(--wb-azul); }
@media print { .sidebar, .no-print, .topbar { display: none !important; } .content { padding: 0; } }
