@font-face{font-family:Inter;src:url(../../assets/inter.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{--blue:#004fc6;--ink:#10233d;--mute:#526479;--line:#dbe3ed;--bg:#f5f8fc;font:100% Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}h1,h2,h3,p,dl,dd,ol{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #218cff;outline-offset:3px}.sr,.skip:not(:focus){position:absolute;clip:rect(0,0,0,0);overflow:hidden;width:1px;height:1px}[hidden]{display:none!important}header{background:white;border-bottom:1px solid var(--line)}.head,main{max-width:1200px;padding:0 clamp(18px,4.5vw,65px);margin:auto}.head{height:74px;display:flex;align-items:center;gap:20px}.home img{display:block;width:104px}.head-label{border-left:1px solid var(--line);padding-left:17px;font-size:.92rem}.head nav{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:.91rem;font-weight:550;color:var(--blue)}.head nav a:hover{text-decoration:underline}main{padding-top:clamp(26px,4vw,55px);padding-bottom:32px}.top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.over{color:var(--blue);font-size:.76rem;font-weight:660;letter-spacing:.11em;text-transform:uppercase}h1{font-size:clamp(2.7rem,4.4vw,4rem);letter-spacing:-.07em;line-height:1.08;margin:8px 0 10px;font-weight:600}.local-note,#description,#empty p{color:var(--mute);line-height:1.55}.primary{display:inline-flex;justify-content:center;align-items:center;min-height:44px;border:0;border-radius:7px;padding:12px 17px;background:var(--blue);color:white;font-weight:600;font-size:.95rem}.primary:hover{background:#003c96}.stats{margin:29px 0;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);background:white;border-radius:11px;overflow:hidden}.stat{border:0;border-right:1px solid var(--line);background:white;text-align:left;padding:17px 22px}.stat:last-child{border-right:0}.stat:hover,.stat[aria-pressed=true]{background:#edf5ff}.stat-label{display:block;color:var(--mute);font-size:.91rem}.stat-label:before,.badge:before{display:inline-block;content:"";width:7px;height:7px;border-radius:50%;background:var(--dot);margin-right:8px;vertical-align:1px}.new{--dot:#a76516}.work{--dot:#075bbb}.done{--dot:#2e7957}.stat strong{display:block;font-size:2.2rem;letter-spacing:-.06em;font-weight:600;margin-top:5px}.inbox{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.inbox-head,.filters{display:flex;align-items:center;gap:13px}.inbox-head{padding:23px 23px 13px;justify-content:space-between}.inbox-head h2,dialog h2{font-size:1.48rem;letter-spacing:-.05em}.inbox-head small,.date,.subject small,.local-note,#history small,form label span{color:var(--mute);font-size:.84rem}.filters{padding:4px 23px 20px}.search,select,textarea{border:1px solid #c9d5e1;border-radius:6px;background:white}.search{display:flex;gap:7px;align-items:center;padding:0 11px;flex:1}.search input{border:0;outline:none;min-width:0;width:100%;height:41px;font-size:.91rem;background:transparent}.search:focus-within{outline:2px solid var(--blue)}select{min-height:42px;cursor:pointer;font-size:.88rem;padding:7px 29px 7px 11px;appearance:none;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23384d63' stroke-width='1.5'/%3E%3C/svg%3E") right 9px center/14px no-repeat}
.table-head,.case-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.72fr) .45fr;align-items:center;gap:15px;padding:13px 23px}.table-head{background:#f4f7fa;color:var(--mute);font-size:.82rem}.case-row{width:100%;text-align:left;border:0;border-top:1px solid var(--line);background:white;min-height:72px}.case-row:hover{background:#f3f7fd}.subject{min-width:0}.subject strong{font-size:.97rem;font-weight:580;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.subject small{display:block;margin-top:4px;font-size:.78rem}.bld{font-size:.89rem}.badge{display:inline-flex;align-items:center;border-radius:20px;font-size:.78rem;white-space:nowrap;font-weight:560;padding:5px 9px}.badge.new{color:#835013;background:#fcf2dc}.badge.work{color:#004da7;background:#e8f1ff}.badge.done{color:#256342;background:#e4f3e9}.badge:before{width:5px;height:5px;margin-right:5px}.local-note{margin:15px 0}#empty{text-align:center;padding:33px}#empty button{border:0;background:transparent;text-decoration:underline;color:var(--blue);margin-top:8px}
dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(500px,100%);max-width:none;height:100dvh;max-height:none;border:0;border-left:1px solid var(--line);padding:26px;color:var(--ink);box-shadow:-8px 0 44px #10233d20;overflow-y:auto}dialog::backdrop{background:#0f1d313f}.d-top{display:flex;align-items:center;justify-content:space-between}.d-top button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:white;font-size:1.7rem;line-height:1}.d-top+h2{font-size:2.05rem;margin:13px 0}.d-top~p{white-space:pre-line;overflow-wrap:anywhere}dl{margin:17px 0;border-top:1px solid var(--line)}dl>div{display:grid;grid-template-columns:105px 1fr;gap:9px;border-bottom:1px solid var(--line);padding:9px 0;font-size:.9rem}dt{color:var(--mute)}dd{overflow-wrap:anywhere}#photo{width:auto;max-width:100%;max-height:200px;border-radius:6px}form{display:grid;gap:8px;margin:20px 0}form label{font-size:.91rem;font-weight:570}form select{margin-bottom:8px}textarea{padding:10px;resize:vertical}#feedback{color:var(--blue)}dialog h3{font-size:1.1rem}#history{padding:0 0 0 13px;list-style:none;border-left:2px solid var(--line);margin:14px 0}#history li{margin:0 0 13px;font-size:.9rem;overflow-wrap:anywhere}#history small{display:block;margin-top:3px}.skip:focus{display:block;padding:7px}
@media(max-width:740px){.top{align-items:flex-start;flex-direction:column;gap:15px}.head{gap:10px;height:62px}.home img{width:83px}.head-label{font-size:.78rem;padding-left:10px}.head nav{font-size:.83rem}.stats{margin:20px 0}.stat{padding:13px 10px}.stat-label{font-size:.79rem}.stat-label:before{width:5px;height:5px;margin-right:5px}.stat strong{font-size:1.8rem}.filters{flex-wrap:wrap;padding:3px 13px 13px;gap:7px}.search{flex-basis:100%}.filters>label:not(.search){min-width:0;flex:1}select{width:100%}.inbox-head{padding:15px 13px}.inbox-head h2{font-size:1.2rem}.case-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:12px 13px}.table-head{display:none}.subject{grid-row:1;grid-column:1}.subject small{display:none}.status-cell{grid-column:2;grid-row:1 / span 2}.bld{grid-column:1;grid-row:2;color:var(--mute);font-size:.82rem}.date{display:none}.top .primary{min-height:41px}.local-note{font-size:.8rem}dialog{padding:18px}.top h1{margin:4px 0 6px}.sub{font-size:.93rem}}


/* Administração */
:root { --bg: #f7f9fc; --ink: #10233d; --line: #d9e3ee; }
.head { height: 67px; }
.head nav a { display: inline-flex; align-items: center; min-height: 44px; }
main { padding-top: clamp(24px, 3vw, 38px); }
.top { align-items: center; }
.top .over { color: #486581; font-size: .87rem; text-transform: none; letter-spacing: 0; }
.top h1 { color: var(--blue); margin: .13em 0 0; font-weight: 620; font-size: clamp(2.7rem, 3.9vw, 3.6rem); }
.actions { display: flex; align-items: center; gap: 19px; }
.qr-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: .94rem; font-weight: 580; }
.qr-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.primary { border-radius: 5px; }
.overview { display: grid; grid-template-columns: 1.07fr 1fr; gap: 16px; margin: 24px 0; }
.next-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 18px 32% 16px 21px; border: 1px solid #c5d9f1; border-radius: 8px;
  background: #eff6fe; display: flex; flex-direction: column; align-items: flex-start;
}
.next-card::after {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: 29%; height: 84%; background: url(../../assets/fachada-gravura.webp) left top / cover no-repeat;
  mix-blend-mode: darken; pointer-events: none;
}
.kicker { color: #45617d; font-size: .84rem; font-weight: 550; }
#next-title { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.13; letter-spacing: -.048em; font-weight: 630; margin: 7px 0 4px; overflow-wrap: anywhere; }
#next-meta { font-size: .85rem; line-height: 1.4; color: var(--mute); }
#next-open { border: 0; background: transparent; color: var(--blue); padding: 8px 0; min-height: 44px; margin: 1px 0 -6px; font-size: .89rem; font-weight: 620; text-decoration: underline; text-underline-offset: 3px; }
.overview .stats { margin: 0; border-radius: 8px; }
.overview .stat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; padding: 15px clamp(10px, 1.6vw, 24px); }
.stat strong { font-size: clamp(2.2rem, 3.3vw, 3.4rem); line-height: 1; font-weight: 540; font-variant-numeric: tabular-nums; margin: 0; }
.stat[aria-pressed=true] { box-shadow: inset 0 -3px 0 var(--blue); background: #ebf3ff; }
.stat:focus-visible { outline-offset: -4px; }
.inbox { border-radius: 8px; }
.inbox-head h2 { font-weight: 620; }
.case-row:focus-visible { outline-offset: -3px; }
#ref, .subject small { font-variant-numeric: tabular-nums; }
.d-top .over { font-size: .86rem; letter-spacing: .06em; }
#subject { color: var(--blue); overflow-wrap: anywhere; }
#history li { position: relative; }
#history li::before { content: ""; position: absolute; top: .34em; left: -17px; width: 6px; height: 6px; border: 1px solid #aac2e0; border-radius: 50%; background: white; }
#history li:first-child::before { background: var(--blue); border-color: var(--blue); }
@media (max-width: 860px) {
  .overview { grid-template-columns: 1.1fr 1fr; gap: 12px; }
  .overview .stat { padding: 15px 9px; }
}
@media (max-width: 740px) {
  .head { height: 58px; }
  .head .home img { width: 96px; }
  .head-label { font-size: .82rem; }
  .top { align-items: flex-start; gap: 12px; }
  .actions { flex-wrap: wrap; gap: 12px; }
  .actions .primary { order: -1; min-height: 44px; font-size: .9rem; padding: 10px 13px; }
  .overview { grid-template-columns: 1fr; gap: 9px; margin: 17px 0; }
  .next-card { padding: 12px 30% 10px 14px; }
  .next-card::after { width: 27%; height: 91%; }
  #next-title { font-size: 1.27rem; }
  .overview .stat { padding: 11px 9px; gap: 6px; }
  .stat strong { font-size: 1.73rem; }
  .inbox-head small { white-space: nowrap; }
}
