:root{font:16px/1.5 system-ui,sans-serif;color:#182a30;background:#f2f5f4;--ink:#142c31;--muted:#52636a;--line:#d9e2e1;--accent:#136959;--dark:#10292d}
*{box-sizing:border-box}body{margin:0}a{color:var(--accent);text-underline-offset:3px}button,input,select,textarea{font:inherit}button,a,input,textarea,select,summary{outline-offset:4px}button{cursor:pointer}small{display:block;color:var(--muted)}p{margin:.5rem 0 1rem}h1,h2,h3{margin:0 0 .65rem;line-height:1.17}h1{font-size:clamp(2rem,5vw,3.2rem);letter-spacing:-.055em}h2{font-size:1.32rem;letter-spacing:-.025em}h3{font-size:1rem}main,.top-inner,footer{max-width:1190px;margin:auto;padding-inline:clamp(16px,4vw,42px)}main{min-height:74vh;padding-block:32px}.top{background:var(--dark);color:white}.top-inner{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:1rem}.brand{display:flex;align-items:center;gap:15px;color:white;text-decoration:none;font-weight:750}.brand img{width:95px;height:40px;object-fit:contain;background:#fff;border-radius:4px;padding:4px}.top small{color:#b7ceca;font-weight:400}.identity{display:flex;align-items:center;gap:15px;font-size:.86rem}.identity>div{text-align:right}.notice{text-align:center;background:#e6efdc;color:#304d31;font-size:.83rem;padding:7px}.top-version{font-size:.85rem;color:#b7ceca}
.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:clamp(15px,3vw,25px);min-width:0}.entry{display:grid;grid-template-columns:1.05fr .95fr;min-height:440px;margin:32px 0;gap:18px}.intro{background:linear-gradient(145deg,#123237,#1a534a);color:white;border-radius:13px;padding:clamp(25px,5vw,55px);align-content:center}.intro p{color:#d0e5df;max-width:40ch}.intro ol{margin:28px 0 0;padding-left:23px;line-height:2.2}.login{align-content:center;padding:clamp(22px,4vw,45px)}.login button{margin-top:21px;width:100%}.login small{margin-top:10px}
.primary,.secondary,.ghost{border:1px solid transparent;border-radius:7px;padding:10px 16px;font-weight:700;white-space:normal}.primary{background:var(--accent);color:white}.secondary{background:#fff;border-color:#a8bbb7;color:var(--ink)}.ghost{background:transparent;border-color:#628582;color:white}.primary:hover{background:#104d43}.secondary:hover{background:#eef6f2}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.unit{font-size:.82rem;font-weight:700;color:var(--muted);margin:0 0 6px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.metrics strong{display:block;font-size:2rem;line-height:1.2;margin-top:7px}.metrics span{color:var(--muted)}.filters{display:flex;align-items:end;gap:12px;margin-bottom:21px}.filters>div:first-child{flex:1}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:.8rem;background:#f2f6f5}td a{font-weight:700}.badge{display:inline-block;font-size:.78rem;font-weight:750;color:#234e45;background:#e1f0e9;padding:5px 9px;border-radius:999px}.state-H{background:#fff0ce;color:#674900}.state-O{background:#edf0f1;color:#43555b}.state-S{background:#e1edf9;color:#264e72}
label,legend{display:block;font-weight:700;font-size:.92rem;margin:9px 0 5px}input:not([type=checkbox]),textarea,select{width:100%;border:1px solid #abbdba;border-radius:7px;padding:9px 11px;background:white;color:var(--ink)}textarea{resize:vertical}.field{margin:15px 0}.field small{margin-top:5px}.choices{display:flex;flex-wrap:wrap;gap:5px 14px}.choices label{font-weight:500;margin:3px 0}.choices input{accent-color:var(--accent)}fieldset{padding:0;border:0;margin:0}legend{padding:0}.back{display:inline-block;margin-bottom:14px}.progress{display:flex;list-style:none;padding:0;gap:12px;margin:0 0 18px}.progress li{background:white;border:1px solid var(--line);border-radius:8px;padding:9px 11px;flex:1;font-size:.85rem;font-weight:650}.progress li.current{border-color:var(--accent);background:#e6f3ee}.progress li span{display:inline-grid;place-items:center;background:#e8eeed;border-radius:50%;height:25px;width:25px;margin-right:7px}.progress .complete span{background:var(--accent);color:white}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:20px}.tabs a{padding:8px 0;text-decoration:none;color:var(--muted);font-weight:650}.tabs [aria-current]{border-bottom:3px solid var(--accent);color:var(--ink)}.editor{display:grid;grid-template-columns:minmax(175px,.7fr) minmax(0,2fr);gap:15px;margin-bottom:15px}.form-columns,.sidebar{display:grid;gap:14px;align-content:start}.sidebar a{display:block;margin-top:9px}.handoff p,.read-field p,.chain p,.audit p{white-space:pre-wrap;overflow-wrap:anywhere}.form-actions{display:flex;justify-content:flex-end;gap:9px}.previous,.return,.outcome{margin-bottom:12px}.previous summary span{float:right;color:var(--muted);font-size:.8rem}summary{cursor:pointer;font-weight:700}.read-field{border-top:1px solid var(--line);margin-top:10px;padding-top:9px}.read-field p{margin-bottom:0}.record-meta{color:var(--muted);font-size:.78rem;margin-top:13px}.alert,.gate-messages p{border-left:4px solid #aa6909;background:#fff3d9;padding:10px 14px;margin:10px 0 15px}.alert ul{margin:0;padding-left:20px}.audit{padding-left:22px}.audit li{padding:10px 0;border-bottom:1px solid var(--line)}.chain{list-style:none;margin:24px 0;padding:0;max-width:720px}.chain li{position:relative;display:flex;gap:14px;align-items:start;border:1px solid var(--line);border-left:6px solid var(--node);border-radius:9px;padding:12px 15px;margin-bottom:27px}.chain b{white-space:nowrap}.chain p{margin:3px 0 0}.red{--node:#b52b37}.grey{--node:#8b969a}.blue{--node:#2469aa}.yellow{--node:#d5a321}.muted{color:var(--muted)}footer{display:flex;justify-content:space-between;gap:15px;padding-block:18px;color:var(--muted);font-size:.8rem;border-top:1px solid var(--line)}[hidden]{display:none!important}
@media(max-width:700px){.entry,.editor{grid-template-columns:1fr}.sidebar{display:block}.sidebar>.panel:first-child{display:none}.metrics{gap:6px}.metrics .panel{padding:10px;font-size:.8rem}.filters{flex-wrap:wrap}.filters>div:first-child{flex-basis:100%}.brand img{width:72px}.brand{gap:7px}.brand span{font-size:.83rem}.identity{gap:7px}.identity>div{max-width:100px}.progress li{font-size:.72rem;padding:5px}.progress li span{display:grid;margin-bottom:3px}.table-wrap td{min-width:110px}.form-actions button{flex:1}}
.save-state{align-self:center;margin-right:auto}
.report-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.investigation-report .report-tools{justify-content:space-between;margin-bottom:20px}
.investigation-report .panel{margin-top:15px}
@page{size:A4;margin:15mm}
@media print{
  body{background:#fff;color:#111}
  .top,.notice,footer,.report-tools{display:none}
  main{max-width:none;margin:0;padding:0;min-height:0}
  .investigation-report{font-size:10pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .investigation-report h1{font-size:23pt}
  .investigation-report h2{font-size:14pt;break-after:avoid}
  .investigation-report .panel{padding:10px;border-radius:4px}
  .investigation-report .chain li,.investigation-report .read-field{break-inside:avoid}
  .investigation-report .chain li{margin-bottom:19px;padding:6px 9px}
}

/* Identidade THERION usada na plataforma COPSOQ */
:root{--ink:#151a3b;--dark:#151a3b;--accent:#176b94;--therion-blue:#2b96ce;--therion-green:#9ccc3a;--line:#dfe7ee;color:var(--ink);background:#f3f6f9}
.top{border-bottom:4px solid var(--therion-green)}
.top small,.top-version{color:#d7e3f1}
.intro{background:linear-gradient(105deg,#151a3b,#247faa)}
.intro p{color:#dcebf5}
.primary:hover{background:#145675}
.secondary:hover{background:#e7f3f8}
.notice{background:#e9f5d3;color:#3c601a}
.progress li.current{background:#e7f3f8}
.tabs [aria-current]{border-color:var(--therion-green)}
.identity-card{border-top:4px solid var(--therion-blue)}
.report-cover{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--line);border-bottom:4px solid var(--therion-green);border-radius:8px;background:white;color:var(--ink);break-inside:avoid}
.report-cover img{width:78px;height:64px;object-fit:contain}
.report-cover p{margin-bottom:6px}
.diagram-note{color:var(--muted)}
.chain{max-width:none}
.chain li{background:var(--node-fill,#f7f9fb);}
.chain b{min-width:2.8rem;color:var(--ink)}
.red{--node-fill:#fce9eb}.grey{--node-fill:#f0f3f6}.blue{--node-fill:#e5f1fb}.yellow{--node-fill:#fff5d5}
@media(max-width:700px){.sidebar>.identity-card:first-child{display:block;margin-bottom:12px}}

.sector-match{border-left:4px solid var(--therion-green);padding-left:8px}.sector-reference li{margin-block:8px}

.chain{max-width:640px;margin:16px auto}
.chain li{display:block;text-align:center;border:2px solid var(--node);margin-bottom:28px;padding:9px 14px}
.chain li:last-child{margin-bottom:0}
.chain-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:8px}
.chain-title b{min-width:auto;color:var(--ink)}
.chain-arrow{position:absolute;left:50%;top:100%;height:25px;width:16px;transform:translateX(-50%);color:#151a3b}
.chain-arrow::before,.chain-arrow::after{content:'';position:absolute;left:50%}
.chain-arrow::before{top:0;height:19px;border-left:2px solid currentColor}
.chain-arrow::after{top:11px;width:8px;height:8px;border-right:2px solid;border-bottom:2px solid;transform:translateX(-40%) rotate(45deg)}
@media print{
  .investigation-report .chain{max-width:155mm;margin:10px auto}
  .investigation-report .chain li{margin-bottom:23px;padding:6px 12px}
  .investigation-report .chain li:last-child{margin-bottom:0}
  .investigation-report .chain-arrow{transform:translateX(-50%) scaleY(.82);transform-origin:top}
}

/* Section headings in the printable investigation report. */
.investigation-report > .panel > h2 {
  margin: 0 0 .8em;
  padding: .45em .75em;
  border: 1px solid #151a3b;
  border-left: .4em solid #789b26;
  border-radius: 3px;
  background: #e7f3f8;
  color: #151a3b;
}
@media print {
  .investigation-report > .panel > h2 {
    break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.follow-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:16px;align-items:start}
.follow-grid .panel{margin-bottom:16px}
.follow-form{margin-block:12px}
.follow-form button{margin-top:10px}
.follow-form .follow-check{font-weight:400}
.follow-list,.follow-tree{padding-inline-start:22px}
.follow-list li,.follow-tree li{margin-bottom:10px;overflow-wrap:anywhere}
.follow-tree{list-style:none;border-left:2px solid #a5b5cb;margin:10px 0 0 14px}
.follow-tree>li{position:relative}
.follow-tree>li::before{content:'';position:absolute;left:-22px;top:1.2em;width:20px;border-top:2px solid #a5b5cb}
.follow-node{border:1px solid #a5b5cb;background:#f5f8fc;border-radius:8px;padding:12px;overflow-wrap:anywhere}
.follow-root{background:#151a3b;color:#fff;border-bottom:4px solid #9ccc3a}
.follow-open{border-left:4px solid #a76a16}
.follow-supported{border-left:4px solid #287e58}
.follow-refuted{border-left:4px solid #9f3c47}
@media(max-width:800px){.follow-grid{grid-template-columns:1fr}}
@media print{.follow-node,.follow-list li{break-inside:avoid}.follow-root{color:#151a3b;background:#e7f3f8}}

.follow-graph{margin:0 0 20px;padding:16px;background:#f7f9fc;border:1px solid #c9d5e3;border-radius:8px}
.follow-graph figcaption{font-size:.9rem;color:#33415a;margin-bottom:12px}
.graph-event{display:grid;gap:4px;max-width:34rem;margin:auto;padding:12px 16px;color:#fff;background:#151a3b;border:2px solid #151a3b;border-bottom:4px solid #9ccc3a;border-radius:7px;text-align:center;overflow-wrap:anywhere}
.graph-event small{color:inherit}
.graph-links{padding:16px 0 0;margin:0;list-style:none}
.graph-first{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:16px}
.graph-nested{border-left:2px solid #8296af;margin-left:14px;padding-left:14px}
.graph-links>li{position:relative;min-width:0}
.graph-links>li:before{content:'';display:block;position:absolute;left:50%;height:16px;top:-16px;border-left:2px solid #8296af}
.graph-first>li:after{content:'';position:absolute;top:-16px;left:-8px;right:-8px;border-top:2px solid #8296af}
.graph-first>li:first-child:after{left:50%}
.graph-first>li:last-child:after{right:50%}
.graph-nested>li:before{border-left:none;border-top:2px solid #8296af;width:14px;left:-14px;top:18px}
.graph-card{padding:10px 12px;background:#fff;border:1px solid #8296af;border-left-width:4px;border-radius:7px;display:grid;gap:6px;overflow-wrap:anywhere}
.graph-state{font-size:.85rem;font-weight:700}
.follow-open .graph-state{color:#79500f}
.follow-supported .graph-state{color:#206744}
.follow-refuted .graph-state{color:#8d303a}
.follow-node:target{outline:3px solid #2b96ce;scroll-margin-top:12px}
@media(max-width:600px){.graph-first{grid-template-columns:1fr}.graph-first>li:after{display:none}.graph-nested{margin-left:5px;padding-left:9px}.graph-nested>li:before{left:-9px;width:9px}}
@media print{.follow-graph{break-inside:auto}.graph-card,.graph-event{break-inside:avoid}.graph-event{color:#151a3b;background:#e7f3f8}.graph-first{grid-template-columns:repeat(2,minmax(0,1fr))}}
.graph-first{grid-template-columns:repeat(2,minmax(0,1fr))}
.graph-first:has(>li:only-child){grid-template-columns:1fr}
.graph-first:has(>li:nth-child(3)){grid-template-columns:1fr;border-left:2px solid #8296af;padding-left:18px}
.graph-first:has(>li:nth-child(3))>li:after{display:none}
.graph-first:has(>li:nth-child(3))>li:before{border-left:none;border-top:2px solid #8296af;left:-18px;top:18px;width:18px;height:0}
@media(max-width:600px){.graph-first{grid-template-columns:1fr}}

.follow-tabs{flex-wrap:wrap}
.follow-analysis-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}
.follow-analysis-workspace .panel{min-width:0}
@media(max-width:800px){.follow-analysis-workspace{grid-template-columns:1fr}}

.fit-links .graph-card{margin-top:10px}
.fit-edge{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.fit-edge span{color:#33415a}
.report-method{margin-top:24px}
.investigation-report .report-method>.panel>h2,.investigation-report .report-method>h2{padding:8px 12px;background:#e7f3f8;color:#151a3b;border-left:4px solid #9ccc3a}
@media print{.report-method>h2{break-after:avoid}.fit-edge,.fit-links .graph-card{break-inside:avoid}}
.fit-elements>li::before,.fit-elements>li::after{display:none}

.follow-form [aria-invalid="true"]{outline:2px solid #9f3c47;outline-offset:2px}
.follow-field-error{display:block;color:#8d303a;margin:6px 0}
.follow-form :user-invalid{outline:2px solid #9f3c47;outline-offset:2px}
.follow-form textarea[id^="follow-measure-"]:target{outline:2px solid #2b96ce;outline-offset:2px;scroll-margin-top:3rem}

.admin-catalog-section {
  margin-top: 24px;
}
.admin-section-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 6px;
  border-inline-start: 5px solid var(--therion-green, #9ccc3a);
  background: #151a3b;
  color: white;
}
