/* HDSA Orçamentação v1.0.0 */
:root { --azul: #0f3d6e; --azul2: #134a85; --sidebar-w: 250px; --topo-h: 56px; }
body { background: #f1f4f9; font-size: .95rem; }
.topbar { background: var(--azul); height: var(--topo-h); box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index: 1040; }
.sidebar { background: #0b2f55; color: #fff; }
@media (min-width: 992px) {
  .sidebar { position: fixed; top: var(--topo-h); bottom: 0; left: 0; width: var(--sidebar-w); overflow-y: auto; background-color: #0b2f55 !important; }
  .sidebar .offcanvas-body { overflow-y: auto; }
  .conteudo { margin-left: var(--sidebar-w); }
}
.offcanvas-lg.sidebar { --bs-offcanvas-bg: #0b2f55; --bs-offcanvas-color: #fff; --bs-offcanvas-width: 270px; }
.sidebar .nav-link { color: rgba(255,255,255,.78); display: flex; align-items: center; gap: .65rem; padding: .55rem 1.1rem; 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(255,255,255,.1); border-left-color: #ffc107; }
.sidebar .nav-link .bi { font-size: 1.1rem; width: 1.2rem; }
.menu-titulo { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 1rem 1.1rem .3rem; }
.conteudo { padding: calc(var(--topo-h) + 1.2rem) 1.2rem 2rem; min-height: 100vh; }
.conteudo-publico { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: linear-gradient(135deg, #0f3d6e 0%, #1d6fb8 100%); }
.cartao-publico { width: 100%; max-width: 440px; }
.cabecalho-pagina { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.cabecalho-pagina h1 { font-size: 1.45rem; margin: 0; font-weight: 600; color: #1e293b; }
.card { border: 0; box-shadow: 0 1px 3px rgba(15,23,42,.08); border-radius: .7rem; }
.card-header { background: #fff; border-bottom: 1px solid #eef1f5; font-weight: 600; }
.kpi { border-radius: .7rem; padding: 1rem 1.1rem; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.08); height: 100%; }
.kpi .kpi-rot { color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi .kpi-val { font-size: 1.45rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.kpi .kpi-ic { font-size: 1.6rem; opacity: .85; }
.kpi .kpi-sub { font-size: .8rem; color: #64748b; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.notif-menu { width: 340px; max-width: 92vw; max-height: 420px; overflow-y: auto; }
.notif-item { white-space: normal; border-bottom: 1px solid #f1f5f9; }
.notif-item.nao-lida { background: #eef6ff; }
.area-ponto { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; }
.linhas-orc input.form-control, .linhas-orc select.form-select { padding: .25rem .4rem; font-size: .88rem; min-width: 70px; }
.linhas-orc td.desc input { min-width: 220px; }
.totais-box { background: #0f3d6e; color: #fff; border-radius: .7rem; padding: 1rem 1.2rem; }
.totais-box .lbl { opacity: .75; font-size: .8rem; }
.totais-box .val { font-size: 1.2rem; font-weight: 700; }
.nav-tabs .nav-link { color: #475569; }
.nav-tabs .nav-link.active { font-weight: 600; color: #0f3d6e; }
.vazio { text-align: center; color: #94a3b8; padding: 2.5rem 1rem; }
.vazio .bi { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
.esp-grupo { border-left: 4px solid #cbd5e1; }
.cursor { cursor: pointer; }
@media (max-width: 575.98px) {
  .conteudo { padding: calc(var(--topo-h) + .8rem) .6rem 1.5rem; }
  .cabecalho-pagina h1 { font-size: 1.2rem; }
  .kpi .kpi-val { font-size: 1.15rem; }
  .table-responsive-stack thead { display: none; }
  .table-responsive-stack tr { display: block; border: 1px solid #e2e8f0; border-radius: .5rem; margin-bottom: .6rem; background: #fff; }
  .table-responsive-stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0 !important; padding: .35rem .7rem !important; text-align: right; }
  .table-responsive-stack td::before { content: attr(data-label); font-weight: 600; color: #64748b; text-align: left; }
  .table-responsive-stack td.acoes::before { content: ''; }
}
@media print {
  .topbar, .sidebar, .no-print { display: none !important; }
  .conteudo { margin: 0 !important; padding: 0 !important; }
  body { background: #fff; }
}
/* v1.1.0 — documentos */
.doc-drop { border: 2px dashed #94a3b8; border-radius: .7rem; padding: 1.4rem; text-align: center; color: #475569; cursor: pointer; background: #f8fafc; transition: .15s; }
.doc-drop.sobre, .doc-drop:hover { border-color: #0d6efd; background: #eef5ff; color: #0d6efd; }
.doc-item .min-w-0 { min-width: 0; }
.accordion-button:not(.collapsed) { background: #f1f5fb; color: #0f3d6e; }
/* v1.2.0 — linha de estado das propostas */
.estado-passos .passo { font-size: .8rem; padding: .25rem .6rem; border-radius: 1rem; background: #eef2f7; color: #64748b; white-space: nowrap; }
.estado-passos .passo.feito { background: #d1fae5; color: #047857; }
.estado-passos .passo.atual { background: #0f3d6e; color: #fff; font-weight: 600; }
