:root{--ink:#14253b;--muted:#66748a;--green:#3255da;--mint:#e8f3ee;--bg:#f4f6fa;--line:#e4e9f1;--white:#fff;--amber:#a46a19;--red:#b23d3d}
*{box-sizing:border-box}
body{margin:0;font:14px/1.5 'Segoe UI',system-ui,sans-serif;color:var(--ink);background:var(--bg)}
button,input,select{font:inherit}
button,select{cursor:pointer}
button{border:0;border-radius:8px;padding:10px 15px;background:var(--green);color:white;font-weight:600}
button.secondary{background:white;border:1px solid var(--line);color:var(--ink)}
button.ghost{background:transparent;color:var(--green);padding:6px 9px}
button:disabled{opacity:.45;cursor:not-allowed}
input,select{background:white;border:1px solid #dce4de;border-radius:8px;padding:10px 12px;color:var(--ink);min-width:0}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #86a4ff;outline-offset:2px}
.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.side{background:#10243c;color:#d9e5f3;padding:28px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;margin:0 7px 38px}
.mark{width:39px;height:39px;display:grid;place-items:center;border:1px solid #819cba;border-radius:9px;font-size:25px;font-weight:700;letter-spacing:-2px;color:#fff}
.brand b{display:block;color:white;font-size:21px;letter-spacing:3px;line-height:1}
.brand small{font-size:10px;letter-spacing:.8px;color:#a6bcd4}
.navlabel{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;margin:0 12px 9px;color:#9db3cd}
.nav button{width:100%;text-align:left;display:flex;align-items:center;gap:10px;background:transparent;color:#d5e3f2;padding:12px;margin-bottom:4px;font-weight:500}
.nav button.active{background:#284665;color:white}
.nav svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidefoot{margin-top:auto;padding:16px 10px;border-top:1px solid #324c67;font-size:12px}
.sidefoot strong{color:white;display:block}
.main{min-width:0}
.top{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:15px}
.crumb{color:var(--muted);font-size:12px}
.topright{display:flex;align-items:center;gap:10px}
.demo{background:#fff3d9;color:#85601b;font-size:11px;font-weight:700;letter-spacing:.5px;border-radius:5px;padding:5px 8px;white-space:nowrap}
.avatar{border-radius:50%;background:#dceee5;color:var(--green);width:35px;height:35px;display:grid;place-items:center;font-weight:700}
.content{max-width:1500px;padding:30px 32px 48px;margin:auto}
.head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}
.head h1{font-size:27px;letter-spacing:-.8px;margin:0 0 4px;font-weight:650}
.head p{margin:0;color:var(--muted)}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.3px;font-weight:700;color:var(--green);margin-bottom:7px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.kpi,.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 4px #183d2b04}
.kpi{padding:18px 19px}
.kpi label{color:var(--muted);font-size:12px}
.kpi strong{display:block;font-size:32px;line-height:1.25;letter-spacing:-1px;margin:9px 0 6px}
.kpi small{color:var(--muted);font-size:11px}
.kpi .accent{color:var(--green)}
.kpi .warn{color:var(--amber)}
.panel{padding:20px;margin-bottom:18px;min-width:0}
.panel h2{font-size:16px;margin:0 0 4px}
.panel .sub{color:var(--muted);font-size:12px;margin:0 0 18px}
.cols{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}
.banner{background:#e7f2ec;border:1px solid #d3e7dc;border-radius:10px;padding:16px 18px;display:flex;align-items:center;gap:16px;margin-bottom:20px}
.banner b{display:block}
.banner span{color:#526c5f;font-size:12px}
.banner button{margin-left:auto;white-space:nowrap}
.bar{height:7px;background:#e9efeb;border-radius:9px;overflow:hidden}
.bar>i{display:block;height:100%;background:#469876;border-radius:9px}
.area{margin:17px 0}
.areahead{display:flex;justify-content:space-between;margin-bottom:7px;font-size:13px}
.areahead span{color:var(--muted);font-size:12px}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.filters input{flex:1;min-width:160px}
.filters select{max-width:180px}
.tablewrap{overflow:auto}
table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}
th{padding:12px 10px;background:#f5f8f6;color:#67766e;font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:600}
td{border-bottom:1px solid #edf1ee;padding:13px 10px;font-size:13px}
tr:last-child td{border-bottom:0}
td small{display:block;color:var(--muted);font-size:11px}
.movement-supplier-name{max-width:28ch;white-space:normal;overflow-wrap:anywhere;line-height:1.35;margin-top:3px}
.person{display:flex;align-items:center;gap:10px}
.initials{width:34px;height:34px;display:grid;place-items:center;background:#e6eee9;color:#386653;border-radius:9px;font-size:11px;font-weight:700}
.pill{display:inline-block;border-radius:5px;font-size:11px;padding:4px 8px;font-weight:600;background:#edf0ed;color:#6b7770}
.pill.ok{background:#e5f3e9;color:#25764e}
.pill.pending{background:#fff0d9;color:#996019}
.pill.review{background:#e8effb;color:#46679e}
.pill.bad{background:#fbe9e6;color:#a6433f}
.pct{min-width:90px}
.pct b{font-size:12px;display:block;margin-bottom:5px}
.empty{padding:30px;text-align:center;color:var(--muted)}
.footnote{color:var(--muted);font-size:11px;margin:12px 0 0}
.step{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);align-items:flex-start}
.step:last-child{border-bottom:0}
.stepnum{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#eaf0ec;color:#587063;font-weight:700;font-size:12px}
.stepnum.done{background:#e0f2e7;color:#24744e}
.step small{display:block;color:var(--muted);margin-top:4px}
.step button{margin-left:auto;white-space:nowrap}
.right{text-align:right}
.muted{color:var(--muted)}
.modalback{position:fixed;inset:0;background:#142f2870;display:grid;place-items:center;z-index:5;padding:18px}
.modal{background:white;border-radius:14px;width:min(650px,100%);max-height:90vh;overflow:auto;padding:25px;box-shadow:0 16px 65px #112e2940}
.modalhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:20px}
.modalhead h2{margin:0;font-size:21px}
.modalhead p{margin:4px 0;color:var(--muted)}
.allocation{display:grid;grid-template-columns:1fr 92px 40px;gap:8px;margin:10px 0;align-items:center}
.allocation input{width:100%}
.total{display:flex;align-items:center;justify-content:space-between;background:#f0f6f2;padding:14px;border-radius:8px;margin:16px 0}
.total.bad{background:#fcece7;color:var(--red)}
.modalfoot{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}
.notice{background:#f4f6fa;border:1px solid var(--line);border-radius:8px;padding:12px;color:#607268;font-size:12px}
.toast{position:fixed;bottom:22px;right:24px;max-width:420px;padding:14px 20px;background:#173f33;color:#fff;border-radius:9px;box-shadow:0 8px 30px #0002;z-index:10}
.money{font-variant-numeric:tabular-nums}
.sectionlabel{font-size:12px;font-weight:600;display:block;margin:12px 0 6px}
.tagline{font-size:11px;color:#9db3cd;margin-top:4px}
.mobilebrand{display:none}
 @media(max-width:850px){
.shell{grid-template-columns:74px 1fr}
.side{padding:20px 10px}
.brand{margin:0 7px 32px}
.brand div:last-child,.navlabel,.nav button span,.sidefoot{display:none}
.nav button{justify-content:center}
.top{padding:0 15px}
.content{padding:22px 16px}
.kpis{grid-template-columns:repeat(2,1fr)}
.cols{grid-template-columns:1fr}
.head{flex-direction:column}
.topright select{max-width:135px}
.crumb{display:none}
.mobilebrand{display:block;font-weight:700}
.banner{flex-wrap:wrap}
.banner button{margin:0}
}
@media(max-width:480px){
.shell{display:block}
.side{position:static;height:auto;padding:8px;display:block}
.brand,.navlabel,.sidefoot{display:none}
.nav{display:flex;overflow:auto;gap:3px}
.nav button{width:auto;margin:0;flex:1;padding:10px}
.nav button span{display:none}
.top{height:auto;padding:10px}
.topright{flex-wrap:wrap;gap:5px}
.avatar{display:none}
.content{padding:16px 10px}
.kpi{padding:12px}
.kpi strong{font-size:25px}
.panel{padding:12px}
.allocation{grid-template-columns:1fr 75px 32px}
.head h1{font-size:23px}
}

 .nav button span{display:block}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fields label{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:12px}.fields input,.fields select{width:100%}.tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}.tabs button{padding:8px 12px}.metric{font-size:24px;font-weight:650}.hint{font-size:12px;color:var(--muted)}.modal{width:min(850px,100%)}.cellinput{width:110px;padding:8px}.companychips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.companychips button{font-size:12px}.tag{font-size:11px;color:var(--muted);font-weight:600}.warning{color:var(--amber)}.no-wrap{white-space:nowrap}.top select{max-width:200px}@media(max-width:850px){.nav button span{font-size:9px}.nav button{padding:8px 0;display:block;text-align:center}.fields{grid-template-columns:1fr}.topright{flex-wrap:wrap}.top select{max-width:145px}}

:root{color-scheme:light;--green:#3255da;--mint:#eaf0ff;--line:#e4e9f1}
body{font-size:14px}
.side{padding-top:29px}
.brand small{display:block;margin-top:5px}
.nav button{border-radius:8px}
.nav button:hover,.nav button.active{background:#284665;color:white}
.nav button i{font-style:normal;width:21px;text-align:center;font-size:17px;line-height:1}
.nav button span{display:block;white-space:nowrap}
.main .top{position:sticky;top:0;z-index:2}
.content{max-width:1560px}
.head{min-height:50px;align-items:center}
.head h1{font-size:28px;line-height:1.2;margin-bottom:6px}
.filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.filters label:first-child{flex:2;min-width:200px}
.filters label:not(:first-child){flex:1;min-width:100px}
.filters select{width:100%;max-width:none}
input,select{border-color:#dbe2ec}
th{background:#f0f4fa;color:#435673}
.pill.review,.initials{background:#eaf0ff;color:#3255a7}
.pill.hml,.demo.hml{background:#dce9ff;color:#2b4b9b}
.bar{margin-top:6px;min-width:78px;background:#e8eef6}
.bar>i{background:#5473d4}
.modal{border:1px solid var(--line);width:min(850px,calc(100% - 24px));max-height:calc(100dvh - 28px)}
.modal::backdrop{background:#10243c66}
.modal h3,.panel h3{font-size:14px;margin:18px 0 10px}
.modal .sub,.sub{color:var(--muted)}
.tabs{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:14px}
.tabs button{padding:8px 12px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fields label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}
.fields input,.fields select,.mapping-fields input,.mapping-fields select{width:100%}
.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.formgrid label{display:flex;flex-direction:column;min-width:0;gap:5px;color:var(--muted);font-size:12px}
.formgrid input,.formgrid select{width:100%}
.formgrid select[multiple]{min-height:115px}
.formgrid>button{align-self:end;justify-self:start}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:22px;align-items:start}
.profile-layout h3{margin-top:0}
#profile-source{margin-top:12px}
#profile-source[hidden]{display:none}
.profile-roster{border:1px solid var(--line);background:var(--bg);padding:14px;border-radius:12px}
.profile-user{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:8px;margin:0 0 5px;text-align:left;flex-wrap:wrap}
.profile-center-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:16px;flex-wrap:wrap}
.profile-center-head span,.profile-layout label{font-size:12px;color:var(--muted)}
.profile-center-head h3{margin:0 0 8px}
#profile-centers input[type="search"]{display:block;width:100%;margin:4px 0 6px}
.profile-center-list{max-height:235px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.profile-center-list>p{padding:0 10px}
.profile-center{display:flex;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid var(--line)}
.profile-center strong{color:var(--ink);margin-right:6px}
@media(max-width:900px){.profile-layout{grid-template-columns:minmax(0,1fr)}}
.allocation select{width:100%}
.dlist dd{overflow-wrap:anywhere}
.mapping-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.hint{font-size:12px;color:var(--muted)}
.dlist{margin:0}.dlist div{background:#f4f6fa;border-radius:8px;padding:11px 13px}
.dlist dt{color:var(--muted);font-size:12px}.dlist dd{margin:3px 0 0}
.cellinput{width:108px;padding:6px 8px;text-align:right;font-variant-numeric:tabular-nums}
input[readonly]{background:#f3f5f8;color:#596b83}
.sheet thead th:first-child,.sheet tbody td:first-child{position:sticky;left:0;z-index:1;box-shadow:1px 0 #e4e9f1}
.sheet tbody td:first-child{background:white}
.sheet td{padding:8px}
.sheet .ghost{padding:0;text-align:left}
.sheet .tablewrap{max-height:56vh;border:1px solid var(--line);border-radius:8px}
.sheet thead th{position:sticky;top:0;z-index:1}.sheet thead th:first-child{z-index:2}
.grid-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.grid-summary .tablewrap{max-height:260px}
.grid-summary .panel{margin-bottom:0}
.connection-banner{flex-wrap:wrap;background:#eff5ff;border-color:#dce7f7;margin:8px 0 0}
.connection-banner span{color:#526581}
.connection-banner button{margin-left:0}
.connection-banner div{margin-right:auto}
.notice{margin:12px 0 0;background:#f2f5fa;color:#394e6c}
.notice ul{margin:8px 0 0;padding-left:19px}
pre{overflow:auto;max-height:52vh;padding:13px;background:#f2f5fa;border-radius:8px;font-size:12px}
.toast{background:#142b49;z-index:9}
.toast.error{background:#8b2031}
dialog[open]~.toast{display:none}
dialog .dialog-feedback{color:#a12c3d;margin:0;font-size:13px}
@media(max-width:850px){
  .shell{grid-template-columns:156px 1fr}.side{padding:18px 9px}
  .brand div:last-child{display:block}.brand{gap:6px;margin:8px 4px 25px}
  .brand b{font-size:15px;letter-spacing:2px}.brand small{font-size:7px}
  .mark{width:27px;height:27px;font-size:18px;flex:none}
  .nav button{justify-content:flex-start;padding:9px 6px;gap:4px;font-size:11px}
  .top{height:65px}.grid-summary{grid-template-columns:1fr}
}
@media(max-width:600px){
  .shell{display:block}.side{position:static;height:auto;padding:6px}
  .brand{display:none}.nav{display:flex;overflow:auto;gap:2px}
  .nav button{width:auto;flex:none;margin:0}
  .main .top{height:auto;padding:9px 12px}
  .topright{width:100%;flex-wrap:wrap;gap:6px}
  #competencia,#company{padding:8px;max-width:150px}
  .head{align-items:flex-start}.head h1{font-size:24px}
  .fields,.mapping-fields,.formgrid{grid-template-columns:1fr}
}

/* Identidade do portal Hausen usada pela Qualidade. */
:root{--ink:#203048;--muted:#6b798d;--green:#3159aa;--bg:#f5f7fa;--line:#e3e8ef;--hausen-navy:#162a44;--hausen-orange:#fa4700}
.side{background:var(--hausen-navy);overflow-y:auto}
.brand{display:grid;justify-items:start;gap:5px;margin:0 8px 28px}
.brand img{display:block;width:min(100%,168px);height:auto}
.brand small{margin:0 0 0 4px;color:#c5d0e0;font-size:11px;letter-spacing:.025em}
.nav button.active{box-shadow:inset 3px 0 var(--hausen-orange);background:#264464}
.crumb strong{font-weight:650;color:var(--ink)}
.panel,.kpi{border-radius:15px;box-shadow:0 8px 26px rgba(27,41,74,.055)}
.guide-steps{list-style-position:inside;counter-reset:guide-step;padding:0;margin:10px 0 0;list-style:none}
.guide-steps li{counter-increment:guide-step;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.guide-steps li::before{content:counter(guide-step);display:grid;place-items:center;background:#eaf0ff;color:var(--green);border-radius:8px;min-height:34px;font-weight:700}
.panel .guide-steps h3{margin:0 0 3px}
.guide-steps p{margin:0;color:var(--muted);max-width:75ch}
.guide-steps button{width:fit-content}
@media(max-width:850px){.brand{margin:4px 5px 22px}.brand img{width:min(100%,120px)}.brand small{font-size:10px}}
@media(max-width:600px){
  .brand{display:flex;align-items:center;gap:10px;margin:4px 8px 8px}
  .brand img{width:108px}
  .brand small{margin:0}
  .guide-steps li{grid-template-columns:30px minmax(0,1fr)}
  .guide-steps button{grid-column:2}
}
