/* SGQIA UX / 0.9.8.59 - padronização visual incremental.
   Somente apresentação: sem esconder ações/permissões e sem modificar funcionalidades. */
:root{--sgqux-line:#e0e9e3;--sgqux-muted:#607469;--sgqux-ink:#193329;--sgqux-soft:#f6faf7}
/* Consistência: o mesmo ritmo tipográfico vale para os quatro módulos. */
.platform-layout.sgq-clean-shell .platform-content{font-size:14px;line-height:1.58}
.platform-layout.sgq-clean-shell .platform-content .panel{border-color:var(--sgqux-line);box-shadow:0 5px 20px rgba(23,54,40,.035)}
.platform-layout.sgq-clean-shell .platform-content .panel-head h2{font-size:18px;line-height:1.35;letter-spacing:-.015em;font-weight:750}
.platform-layout.sgq-clean-shell .platform-content .panel-head p{font-size:13px;line-height:1.55;color:var(--sgqux-muted)}
.platform-layout.sgq-clean-shell .platform-content .form-grid label{font-size:13px;line-height:1.45;font-weight:650;color:#294438;min-width:0}
.platform-layout.sgq-clean-shell .platform-content .form-grid label>small{font-size:12px;line-height:1.5;font-weight:400;color:var(--sgqux-muted)}
.platform-layout.sgq-clean-shell .platform-content .btn{font-size:13px;font-weight:700}
.platform-layout.sgq-clean-shell .platform-content .btn.small{font-size:12px}
.platform-layout.sgq-clean-shell .platform-content .section-details>summary{font-size:13px;line-height:1.55}
.platform-layout.sgq-clean-shell .platform-content .table{font-size:13px;line-height:1.5}
.platform-layout.sgq-clean-shell .platform-content :is(input,select,textarea){max-width:100%}
.platform-layout.sgq-clean-shell .platform-content :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #83be9f;outline-offset:3px}
.platform-layout.sgq-clean-shell .platform-content .muted{color:var(--sgqux-muted)}
/* Ficha documental: título e opções estruturadas, sem cartões concorrentes. */
.platform-layout.sgq-clean-shell .platform-content .lean-doc-head{margin-bottom:15px}
.platform-layout.sgq-clean-shell .platform-content .lean-doc-head h1.sgqux-doc-code{font-size:clamp(25px,2.4vw,31px);line-height:1.15;margin:3px 0 5px;letter-spacing:-.025em;overflow-wrap:anywhere}
.platform-layout.sgq-clean-shell .platform-content .lean-doc-head p.sgqux-doc-title{font-size:clamp(15px,1.3vw,18px);line-height:1.45;font-weight:540;max-width:900px;color:#405a50;margin:0 0 11px;letter-spacing:0}
.platform-layout.sgq-clean-shell .platform-content .lean-doc-head p:not(.sgqux-doc-title){font-size:12px}
.platform-layout.sgq-clean-shell .platform-content .sgqd-document-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.platform-layout.sgq-clean-shell .platform-content .sgqd-document-shortcut{display:flex;gap:9px;align-items:center;flex:0 1 auto;min-height:49px;padding:9px 13px;border-radius:11px;box-shadow:none;transform:none}
.platform-layout.sgq-clean-shell .platform-content .sgqd-document-shortcut>span{width:29px;height:29px;flex:0 0 29px;font-size:16px}
.platform-layout.sgq-clean-shell .platform-content .sgqd-document-shortcut strong{font-size:13px;line-height:1.25}
.platform-layout.sgq-clean-shell .platform-content .sgqd-document-shortcut small{display:none}
.platform-layout.sgq-clean-shell .platform-content .sgqux-primary-shortcut{border-color:#b0cfbd;background:#edf6ef}
.platform-layout.sgq-clean-shell .platform-content .security-note{font-size:13px;line-height:1.6}
/* Documento externo: um resumo e duas tarefas que só se expandem quando necessárias. */
.platform-layout.sgq-clean-shell .platform-content .sgqux-external{padding:24px 26px;border-radius:15px;scroll-margin-top:18px}
.sgqux-external-head{align-items:start;margin-bottom:20px!important}
.sgqux-external-head .sgqux-eyebrow{display:block;color:var(--client-primary,#1f6b4f);font-size:11px;line-height:1.4;letter-spacing:.06em;font-weight:750;text-transform:uppercase;margin-bottom:5px}
.sgqux-external-head h2{margin:0;font-size:18px}
.sgqux-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--sgqux-soft);border:1px solid var(--sgqux-line);border-radius:12px;padding:17px 10px;margin:0 0 20px}
.sgqux-meta-grid>div{min-width:0;padding:0 13px;border-right:1px solid #e1ebe5}
.sgqux-meta-grid>div:last-child{border-right:0}
.sgqux-meta-grid dt{color:var(--sgqux-muted);font-size:12px;font-weight:550;margin-bottom:5px}
.sgqux-meta-grid dd{font-size:14px;line-height:1.45;margin:0;color:var(--sgqux-ink);font-weight:700;overflow-wrap:anywhere}
.sgqux-task{border:1px solid var(--sgqux-line);border-radius:12px;background:#fff;overflow:hidden;margin-top:10px}
.sgqux-task>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 19px;cursor:pointer;color:var(--sgqux-ink)}
.sgqux-task>summary::-webkit-details-marker{display:none}
.sgqux-task>summary:hover,.sgqux-task>summary:focus-visible{background:#f5faf7}
.sgqux-task[open]>summary{border-bottom:1px solid var(--sgqux-line);background:#f7faf8}
.sgqux-task-title{display:grid;gap:4px;min-width:0}
.sgqux-task-title strong{font-size:14px;line-height:1.35;font-weight:750}
.sgqux-task-title small{font-size:12px;line-height:1.55;color:var(--sgqux-muted);font-weight:400}
.sgqux-task-chevron{color:var(--client-primary,#1f6b4f);font-size:19px;font-weight:600;transition:transform .15s}
.sgqux-task[open]>.sgqux-task-chevron,.sgqux-task[open]>summary .sgqux-task-chevron{transform:rotate(180deg)}
.sgqux-task-body{padding:20px}
.sgqux-task-body .form-grid{gap:15px 18px}
.sgqux-task-body .form-grid .actions{justify-content:flex-end;margin-top:3px}
.sgqux-task-body input[type=file]{border:1px solid var(--sgqux-line);border-radius:9px;padding:10px}
.sgqux-optional{border:1px dashed #dce7df;border-radius:9px;padding:10px 13px;margin-top:0}
.sgqux-optional>summary{font-size:13px;font-weight:600;color:#526e5e}
.sgqux-optional[open] label{margin-top:13px;display:block}
.sgqux-task .external-doc-check{font-weight:450!important;font-size:13px!important;line-height:1.55!important}
.sgqux-task .external-doc-check input{min-width:18px;flex-shrink:0}
.sgqux-task-secondary{background:#fbfdfb}
/* Menos peso visual em áreas auxiliares, sem esconder conteúdos. */
.platform-layout.sgq-clean-shell .platform-content .sgqd-distribution>summary,.platform-layout.sgq-clean-shell .platform-content .sgqd-admin>summary{padding:16px 19px}
.platform-layout.sgq-clean-shell .platform-content .sgqd-distribution>summary strong,.platform-layout.sgq-clean-shell .platform-content .sgqd-admin>summary strong{font-size:14px;font-weight:750}
.platform-layout.sgq-clean-shell .platform-content .sgqd-distribution>summary small,.platform-layout.sgq-clean-shell .platform-content .sgqd-admin>summary small{font-size:12px}
.platform-layout.sgq-clean-shell .platform-content .lean-history-details>summary{font-size:14px;line-height:1.45}
@media(max-width:900px){.sgqux-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:15px}.sgqux-meta-grid>div:nth-child(2){border-right:0}}
@media(max-width:620px){
 .platform-layout.sgq-clean-shell .platform-content .sgqux-external{padding:17px 15px}
 .sgqux-external-head{display:block}.sgqux-external-head .btn{margin-top:12px}
 .sgqux-task>summary{padding:14px}.sgqux-task-body{padding:15px}
 .sgqux-meta-grid{padding:12px 5px;gap:14px 0}.sgqux-meta-grid>div{padding:0 9px}.sgqux-meta-grid dd{font-size:13px}
 .platform-layout.sgq-clean-shell .platform-content .sgqd-document-shortcut{flex:1 1 auto}
 .sgqux-task-body .form-grid .actions .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.sgqux-task-chevron{transition:none}}


/* SGQIA UX HARMONIA 01, 2026-10-29 — todos os módulos e administração.
   Camada final de CSS: mantém rotas, estados, validações, controle de acesso e JS.
   Nunca ocultar ações de submissão nem usar display:none em conteúdo de operação. */
:root{
 --sgqx-ink:#20362e;--sgqx-muted:#5c7167;--sgqx-outline:#dce7e0;
 --sgqx-shadow:0 4px 18px rgba(17,47,33,.038);
 --sgqx-surface:#fff;--sgqx-tint:#f5f9f6;--sgqx-radius:15px;
}
/* Leitura harmoniosa sem afetar navegação lateral e identidade do laboratório. */
.platform-layout.sgq-clean-shell .platform-content{
 color:var(--sgqx-ink);font-size:14px;line-height:1.6;
 padding-top:27px;max-width:1430px;
}
.platform-layout.sgq-clean-shell .platform-content :is(h1,h2,h3,h4){
 text-wrap:pretty;overflow-wrap:anywhere;color:#1d342a;
}
.platform-layout.sgq-clean-shell .platform-content :is(.page-head h1,.lean-header h1,.sgq-module-intro h1,.sgqr-heading,.sgq41-heading h1,.sgqe-heading h1,.sgq45-heading h1){
 font-size:clamp(24px,2.15vw,31px);line-height:1.23;letter-spacing:-.025em;font-weight:760;
}
.platform-layout.sgq-clean-shell .platform-content :is(.panel-head h2,.card h2,.sgq41-profile-head h2,.sgqe-panel-heading h2){font-size:17px;line-height:1.4;letter-spacing:-.012em;font-weight:740}
.platform-layout.sgq-clean-shell .platform-content :is(.panel h3,.card h3){font-size:15px;line-height:1.4;font-weight:720}
.platform-layout.sgq-clean-shell .platform-content :is(.page-head p,.lean-header p,.sgq-module-intro p,.sgq41-heading p,.sgqe-heading p,.sgqr-lead){font-size:14px;line-height:1.62;color:var(--sgqx-muted)}
.platform-layout.sgq-clean-shell .platform-content :is(.eyebrow,.sgq-module-eyebrow,.sgqe-eyebrow,.sgqr-eyebrow){font-size:11px;line-height:1.5;letter-spacing:.07em}
.platform-layout.sgq-clean-shell .platform-content :is(.muted,.panel-head p,.panel-subtitle,.sgq41-footnote,.sgqe-tip,.sgqr-info){color:var(--sgqx-muted);line-height:1.56}
/* Superfícies comuns — evitar sombras fortes e excesso de bordas. */
.platform-layout.sgq-clean-shell .platform-content :is(.panel,.card,.sgq41-roster,.sgq41-manage,.sgq41-workarea,.sgq45-quick-entry,.sgq-work-card,.sgqr-action,.sgqcat-card,.sgqe-equipment,.sgq41-metric,.sgqe-metrics>div,.lean-metric,.lean-hero-card,.sgq51-summary,.sgqrd-tabs){border-color:var(--sgqx-outline);box-shadow:var(--sgqx-shadow)}
.platform-layout.sgq-clean-shell .platform-content :is(.panel,.card){border-radius:var(--sgqx-radius)}
.platform-layout.sgq-clean-shell .platform-content :is(.sgq41-roster,.sgq41-manage,.sgq41-workarea,.sgq45-quick-entry){border-radius:var(--sgqx-radius)}
.platform-layout.sgq-clean-shell .platform-content :is(.panel-head,.sgqe-panel-heading){gap:12px}
.platform-layout.sgq-clean-shell .platform-content :is(.panel-head p,.sgqe-panel-heading p){font-size:13px}
.platform-layout.sgq-clean-shell .platform-content :is(.panel,.card,.sgqe-panel){scroll-margin-top:28px}
/* Cartões de ação: menor altura e densidade uniforme. */
.platform-layout.sgq-clean-shell .platform-content :is(.sgq-work-card,.sgqr-action){min-height:175px;box-shadow:var(--sgqx-shadow);border-radius:14px;padding:19px 20px}
.platform-layout.sgq-clean-shell .platform-content :is(.sgq-work-card strong,.sgqr-action strong){font-size:16px;line-height:1.4}
.platform-layout.sgq-clean-shell .platform-content :is(.sgq-work-card small,.sgqr-action>span:not(.sgqr-icon):not(.sgqr-action-go)){font-size:13px;line-height:1.5}
.platform-layout.sgq-clean-shell .platform-content :is(.sgq-work-card-icon,.sgqr-icon){margin-bottom:12px}
.platform-layout.sgq-clean-shell .platform-content :is(.lean-hero-card,.lean-metric,.sgq41-metric,.sgqe-metrics>div){padding:17px}
.platform-layout.sgq-clean-shell .platform-content :is(.lean-hero-card strong,.lean-metric strong,.sgq41-metric strong,.sgqe-metrics>div strong){font-size:clamp(24px,2.5vw,34px);line-height:1.2;font-weight:760;letter-spacing:-.025em}
/* Formulários legíveis em todos os módulos, sem forçar largura de checkbox, radio e hidden. */
.platform-layout.sgq-clean-shell .platform-content :is(.form-grid label,.sgqe-form label,.sgqe-filters label,.sgq41-toolbar label,.sgqcat-filters label,.sgqr-filters label,.sgqp-search-label){font-size:13px;line-height:1.45;font-weight:650;color:#31493d;min-width:0}
.platform-layout.sgq-clean-shell .platform-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:14px;line-height:1.45;min-width:0;max-width:100%;border-radius:10px;border-color:#ccdcd2;background:#fff;color:#20352b;box-shadow:none}
.platform-layout.sgq-clean-shell .platform-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:41px}
.platform-layout.sgq-clean-shell .platform-content textarea{min-height:80px;resize:vertical}
.platform-layout.sgq-clean-shell .platform-content :is(input[type=checkbox],input[type=radio]){width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;max-width:17px;max-height:17px;padding:0!important;margin:0 8px 0 0!important;flex:0 0 17px;vertical-align:middle;accent-color:var(--client-primary,#267451)}
.platform-layout.sgq-clean-shell .platform-content :is(input[type=file]){padding:8px;min-height:43px;font-size:13px;max-width:100%}
.platform-layout.sgq-clean-shell .platform-content :is(.form-grid small,.form-grid label>small,.sgqe-form small,.sgqe-filters small){font-size:12px!important;line-height:1.5;font-weight:400;color:var(--sgqx-muted)}
.platform-layout.sgq-clean-shell .platform-content :is(.form-grid.two,.sgqe-form){column-gap:17px;row-gap:16px}
.platform-layout.sgq-clean-shell .platform-content :is(.btn,.sgq51-action,.sgq41-action){font-size:13px;line-height:1.35;letter-spacing:0;font-weight:700;box-shadow:none}
.platform-layout.sgq-clean-shell .platform-content .btn{border-radius:10px;min-height:39px;padding:9px 13px;white-space:normal;text-align:center}
.platform-layout.sgq-clean-shell .platform-content .btn.small{font-size:12px;min-height:32px;padding:6px 10px}
.platform-layout.sgq-clean-shell .platform-content .btn:hover{transform:none;filter:brightness(.985)}
.platform-layout.sgq-clean-shell .platform-content :is(.actions,.sgqe-actions){gap:10px}
/* Resumos recolhíveis, consistentes; nunca alterar atributo open ou comportamento. */
.platform-layout.sgq-clean-shell .platform-content :is(details.section-details,details.sgq41-manage,details.sgq41-roster,details.sgqe-advanced,details.sgq41-workarea){border-color:var(--sgqx-outline);box-shadow:none}
.platform-layout.sgq-clean-shell .platform-content :is(details.section-details>summary,details.sgq41-manage>summary,details.sgq41-roster>summary,details.sgqe-advanced>summary,details.sgq41-workarea>summary){font-size:14px;line-height:1.5;font-weight:700;color:#2d4d3d;cursor:pointer}
.platform-layout.sgq-clean-shell .platform-content :is(details.section-details>summary,details.sgq41-manage>summary,details.sgq41-roster>summary,details.sgqe-advanced>summary,details.sgq41-workarea>summary):hover{background:#f5faf7}
.platform-layout.sgq-clean-shell .platform-content details>summary:focus-visible{outline:3px solid #84c5a0;outline-offset:2px;border-radius:9px}
.platform-layout.sgq-clean-shell .platform-content :is(.badge,.count-chip,.sgqcat-tag,.sgqe-state,.sgq41-person-state){font-size:11px;line-height:1.4;font-weight:700;letter-spacing:0}
/* Tabelas longas: manter cabeçalhos visíveis e rolagem somente na área da tabela, não na página inteira. */
.platform-layout.sgq-clean-shell .platform-content :is(.table,.sgq41-table,.sgqr-table){font-size:13px;line-height:1.5}
.platform-layout.sgq-clean-shell .platform-content :is(.table th,.sgq41-table th,.sgqr-table th){font-size:12px;line-height:1.35;text-transform:none;letter-spacing:0;color:#4e6658;font-weight:720}
.platform-layout.sgq-clean-shell .platform-content :is(.table td,.sgq41-table td){font-size:13px;line-height:1.5}
.platform-layout.sgq-clean-shell .platform-content :is(.sgq41-table-wrap,.table-wrap,.sgqcat-table-wrap){max-width:100%;overflow-x:auto}
/* Registros, pessoal e equipamentos: tamanho das cartas e informações consistentes. */
.platform-layout.sgq-clean-shell .platform-content :is(.sgqcat-card h3,.sgqe-id strong,.sgqp-person-card strong,.sgq42-person-identity strong){font-size:14px;line-height:1.45}
.platform-layout.sgq-clean-shell .platform-content :is(.sgqcat-card small,.sgqe-id small,.sgqp-person-card small,.sgq42-person-identity small){font-size:12px;line-height:1.5;color:var(--sgqx-muted)}
.platform-layout.sgq-clean-shell .platform-content :is(.sgqcat-card,.sgqe-equipment,.sgqp-person-card){border-radius:12px;box-shadow:none}
.platform-layout.sgq-clean-shell .platform-content :is(.sgqr-info,.sgqe-tip,.security-note,.success-note){border-radius:11px}
/* Super Master (interface distinta, mas mesmo padrão de leitura). */
.owner-layout .owner-content{font-size:14px;line-height:1.58;color:#24382f}
.owner-layout .owner-content :is(h1){font-size:clamp(25px,2.35vw,32px);line-height:1.2;letter-spacing:-.025em}
.owner-layout .owner-content :is(h2){font-size:18px;line-height:1.4;letter-spacing:-.01em}
.owner-layout .owner-content :is(.card,.panel){border-color:var(--sgqx-outline);border-radius:15px;box-shadow:var(--sgqx-shadow)}
.owner-layout .owner-content :is(.muted,.panel-head p){color:var(--sgqx-muted);font-size:13px;line-height:1.55}
.owner-layout .owner-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){font-size:14px;max-width:100%;min-width:0;border-radius:10px}
.owner-layout .owner-content :is(input[type=checkbox],input[type=radio]){width:17px!important;height:17px!important;min-height:17px!important;min-width:17px!important;max-width:17px;padding:0!important;flex:0 0 17px;accent-color:#287b59}
.owner-layout .owner-content :is(.btn){font-size:13px;font-weight:700;box-shadow:none}
.owner-layout .owner-content :is(table){max-width:100%}
@media(max-width:900px){
 .platform-layout.sgq-clean-shell .platform-content{padding:22px 18px 40px}
 .platform-layout.sgq-clean-shell .platform-content :is(.sgq-work-card,.sgqr-action){min-height:150px}
}
@media(max-width:620px){
 .platform-layout.sgq-clean-shell .platform-content{padding:18px 14px 34px;font-size:14px}
 .platform-layout.sgq-clean-shell .platform-content :is(.page-head,.lean-header,.panel-head,.sgqe-heading,.sgq41-heading){gap:12px}
 .platform-layout.sgq-clean-shell .platform-content :is(.page-head h1,.lean-header h1,.sgq-module-intro h1,.sgqr-heading,.sgq41-heading h1,.sgqe-heading h1){font-size:24px;line-height:1.25}
 .platform-layout.sgq-clean-shell .platform-content :is(.panel,.card){padding:16px}
 .platform-layout.sgq-clean-shell .platform-content :is(.form-grid.two,.sgqe-form){grid-template-columns:minmax(0,1fr);gap:13px}
 .platform-layout.sgq-clean-shell .platform-content :is(.sgq-work-card,.sgqr-action){min-height:unset;padding:17px}
 .platform-layout.sgq-clean-shell .platform-content :is(.lean-metric,.sgq41-metric,.sgqe-metrics>div){padding:13px}
 .platform-layout.sgq-clean-shell .platform-content :is(.sgqe-metrics,.sgq41-metrics,.lean-metrics){gap:9px}
}
@media(prefers-reduced-motion:reduce){
 .platform-layout.sgq-clean-shell .platform-content *,
 .owner-layout .owner-content *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
@media(max-width:620px){
 .platform-layout.sgq-clean-shell .platform-content .sgqd-distribution>summary,
 .platform-layout.sgq-clean-shell .platform-content .sgqd-admin>summary{display:flex;flex-wrap:wrap;gap:7px 10px;align-items:flex-start}
 .platform-layout.sgq-clean-shell .platform-content .sgqd-distribution>summary>span:first-child,
 .platform-layout.sgq-clean-shell .platform-content .sgqd-admin>summary>span:first-child{flex:1 1 74%;min-width:0}
 .platform-layout.sgq-clean-shell .platform-content .sgqd-summary-metrics{order:3;flex:1 1 100%;margin-left:0;font-size:12px;line-height:1.4;white-space:normal}
 .platform-layout.sgq-clean-shell .platform-content .lean-history-details>summary small{display:block;margin:5px 0 0;font-size:12px}
}
