/* V1263 — Gestão de Documentos › Novo/Editar documento: painel mais largo, seções no padrão do sistema,
   campos numéricos sem setas, área de anexo e rodapé fixo com Cancelar/Salvar. */

/* V1268: largura definida pelo sistema — vai do menu lateral até a borda direita */
#side-panel.sgq-docform-painel .side-panel-body{overflow-x:hidden;padding-bottom:0!important}

.sgqf-v1263{display:flex;flex-direction:column;padding-bottom:6px}
.sgqf-v1263 .sgqf-sec{display:flex;align-items:baseline;gap:10px;margin:18px 0 10px;padding-bottom:7px;border-bottom:1px solid #e4edf7}
.sgqf-v1263 .sgqf-sec:first-child{margin-top:2px}
.sgqf-v1263 .sgqf-sec h4{margin:0!important;padding:0 0 0 10px!important;border:0!important;border-left:3px solid #f58216!important;background:none!important;color:#1d4f91!important;font-size:14.5px!important;font-weight:800!important;line-height:1.35!important;text-transform:none!important;letter-spacing:normal!important}
.sgqf-v1263 .sgqf-sec span{font-size:12px;color:#7a8ea3}

.sgqf-v1263 .sgqf-grid{display:grid;gap:12px 14px;align-items:start}
.sgqf-v1263 .sgqf-grid.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.sgqf-v1263 .sgqf-grid.g5{grid-template-columns:repeat(5,minmax(0,1fr))}
.sgqf-v1263 .sgqf-span2{grid-column:span 2}
.sgqf-v1263 .sgqf-span4{grid-column:1/-1}
.sgqf-v1263 .field{margin:0!important;min-width:0}
.sgqf-v1263 .field>label{display:block;margin:0 0 5px!important;font-size:12px!important;font-weight:650!important;color:#33485f!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sgqf-v1263 .field>label em,.sgqf-rodape em{font-style:normal;color:#d1462f;font-weight:800}
.sgqf-v1263 .field input,.sgqf-v1263 .field select{width:100%!important;min-width:0;height:38px!important;margin:0!important;box-sizing:border-box}
.sgqf-v1263 .field textarea{width:100%!important;min-height:72px;margin:0!important;box-sizing:border-box;resize:vertical}
.sgqf-v1263 .field small{display:block;margin-top:4px;font-size:11px;line-height:1.35;color:#7a8ea3}
.sgqf-v1263 .field small.sgqf-cat b{color:#1d4f91}
.sgqf-v1263 .sgqf-erro input,.sgqf-v1263 .sgqf-erro select{border-color:#d1462f!important;box-shadow:0 0 0 3px rgba(209,70,47,.12)!important}
.sgqf-v1263 .sgqf-erro>label{color:#b42318!important}

/* campo com unidade (dias) */
.sgqf-v1263 .sgqf-un{position:relative}
.sgqf-v1263 .sgqf-un input{padding-right:44px!important}
.sgqf-v1263 .sgqf-un span{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-size:12px;color:#7a8ea3;pointer-events:none}
.sgqf-v1263 input[type=number]{-moz-appearance:textfield;appearance:textfield}
.sgqf-v1263 input[type=number]::-webkit-outer-spin-button,.sgqf-v1263 input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* anexo */
.sgqf-v1263 .sgqf-drop{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1.5px dashed #b9cde6;border-radius:10px;background:#f7faff;color:#4d6680;font-size:13px;cursor:pointer;transition:background .12s,border-color .12s}
.sgqf-v1263 .sgqf-drop:hover,.sgqf-v1263 .sgqf-drop.arrastando{background:#edf5ff;border-color:#1766b3}
.sgqf-v1263 .sgqf-drop.com-arquivo{border-style:solid;border-color:#9fd3b5;background:#f1faf4}
.sgqf-v1263 .sgqf-drop svg{flex:0 0 26px;width:26px;height:26px;fill:none;stroke:#1766b3;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sgqf-v1263 .sgqf-drop b{color:#1766b3}
.sgqf-v1263 .sgqf-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sgqf-v1263 .sgqf-nota{margin:16px 0 0;padding:10px 12px;border:1px solid #d8e5f5;border-radius:8px;background:#f7faff;color:#4d6680;font-size:12.5px}

/* rodapé fixo */
.sgqf-rodape{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px -24px 0;padding:12px 24px;border-top:1px solid #e4edf7;background:#fff;box-shadow:0 -6px 14px rgba(18,49,94,.06)}
.sgqf-rodape>span{font-size:12px;color:#7a8ea3}
.sgqf-rodape>div{display:flex;gap:10px}
.sgqf-rodape button{min-height:40px!important;padding:0 18px!important;margin:0!important}
.sgqf-rodape .sgqf-cancelar{border:1px solid #cddbea!important;border-radius:8px!important;background:#fff!important;color:#1d4f91!important;font-weight:700!important;box-shadow:none!important;cursor:pointer}
.sgqf-rodape .sgqf-cancelar:hover{background:#f0f6fd!important}

@media(max-width:900px){
  .sgqf-v1263 .sgqf-grid.g4,.sgqf-v1263 .sgqf-grid.g5{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .sgqf-v1263 .sgqf-grid.g4,.sgqf-v1263 .sgqf-grid.g5{grid-template-columns:minmax(0,1fr)}
  .sgqf-v1263 .sgqf-span2{grid-column:auto}
}

/* V1265 — situação do documento (novo × existente) */
.sgqf-v1263 .sgqf-origem{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sgqf-v1263 .sgqf-op{display:flex;align-items:flex-start;gap:10px;margin:0!important;padding:12px 14px;border:1.5px solid #d8e5f5;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .12s,background .12s}
.sgqf-v1263 .sgqf-op:hover{border-color:#9ec2ea}
.sgqf-v1263 .sgqf-op.ativo{border-color:#f58216;background:#fff8f1}
.sgqf-v1263 .sgqf-op input{flex:0 0 16px;width:16px!important;height:16px!important;margin:2px 0 0!important;accent-color:#f58216}
.sgqf-v1263 .sgqf-op span{display:flex;flex-direction:column;gap:3px;min-width:0}
.sgqf-v1263 .sgqf-op b{font-size:13.5px;color:#173f68}
.sgqf-v1263 .sgqf-op small{font-size:12px;line-height:1.4;color:#637994}
.sgqf-v1263 .sgqf-existente{margin-top:12px;padding:14px;border:1px solid #f6d9bd;border-radius:10px;background:#fffaf5}
.sgqf-v1263 .sgqf-existente[hidden]{display:none!important}
.sgqf-v1263 .sgqf-pre input{padding-left:46px!important;padding-right:10px!important}
.sgqf-v1263 .sgqf-pre span.pre{left:11px;right:auto}
.sgqf-v1263 .sgqf-calc{display:flex;align-items:center;height:38px;padding:0 12px;border:1px dashed #cddbea;border-radius:8px;background:#f7faff;color:#1d4f91;font-weight:700;font-size:13px;box-sizing:border-box}
.sgqf-v1263 .sgqf-calc.vencida{color:#b42318;border-color:#f3b8b0;background:#fff5f4}
@media(max-width:700px){.sgqf-v1263 .sgqf-origem{grid-template-columns:minmax(0,1fr)}}

/* V1267 — revisão em vigor (novo e edição) */
.sgqf-v1263 .sgqf-revisao{padding:14px;border:1px solid #f6d9bd;border-radius:10px;background:#fffaf5}
.sgqf-v1263 .sgqf-revisao.travada{background:#f7f9fc;border-color:#dde5ef}
.sgqf-v1263 .sgqf-revisao input:disabled{background:#eef2f7!important;color:#4d6680!important;cursor:not-allowed}
.sgqf-v1263 .sgqf-trava{grid-column:1/-1;margin:0;font-size:12px;color:#637994}

/* V1289 — código montado pelo tipo + número + nome, conferido enquanto digita */
.sgqf-v1263 .sgqf-codigo:empty{display:none}
.sgqf-v1263 .sgqf-codigo{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;padding:9px 12px;border-radius:8px;font-size:13px;line-height:1.4;border:1px solid #d8e5f5;background:#f7faff;color:#4c6480}
.sgqf-v1263 .sgqf-codigo b{color:#173f68}
.sgqf-v1263 .sgqf-codigo em{font-style:normal;color:#7a8ea3}
.sgqf-v1263 .sgqf-codigo.ok{border-color:#bfe3cc;background:#f2fbf5}
.sgqf-v1263 .sgqf-codigo.ok b{color:#1e7a46}
.sgqf-v1263 .sgqf-codigo.erro{border-color:#f3b8b0;background:#fff5f4;color:#7a2a20}
.sgqf-v1263 .sgqf-codigo.erro b{color:#b42318}
.sgqf-v1263 .sgqf-cod-usar{margin-left:auto;min-height:30px;padding:0 12px;border:1px solid #1d4f91;border-radius:7px;background:#fff;color:#1d4f91;font-weight:700;font-size:12.5px;cursor:pointer}
.sgqf-v1263 .sgqf-cod-usar:hover{background:#1d4f91;color:#fff}
.sgqf-v1263 .sgqf-cod-info{color:#7a8ea3}

/* V1292 — Identificação primeiro, cartão do código e Revisão em vigor em 3 colunas */
.sgqf-v1263 .sgqf-grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sgqf-v1263 .sgqf-span3{grid-column:span 3}
.sgqf-v1263 .sgqf-codigo{display:flex;align-items:center;gap:10px 14px;min-height:52px;padding:10px 16px}
.sgqf-v1263 .sgqf-cod-rot{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7a8ea3}
.sgqf-v1263 .sgqf-cod-val{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1 1 auto}
.sgqf-v1263 .sgqf-codigo .sgqf-cod-pill{display:inline-block;padding:5px 12px;border-radius:8px;background:#1d4f91;color:#fff!important;font-size:15px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.sgqf-v1263 .sgqf-cod-nome{color:#173f68;font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgqf-v1263 .sgqf-cod-ok{color:#1e7a46;font-weight:700;font-size:12px;white-space:nowrap}
.sgqf-v1263 .sgqf-cod-muda{padding:3px 9px;border-radius:999px;background:#fff6ec;color:#9a5b00;font-size:12px;font-weight:600;white-space:nowrap}
.sgqf-v1263 .sgqf-cod-muda s{color:#b4651c}
.sgqf-v1263 .sgqf-codigo.ok{border-color:#cfe0f3;background:#f7faff}
@media(max-width:900px){.sgqf-v1263 .sgqf-grid.g3{grid-template-columns:minmax(0,1fr)}.sgqf-v1263 .sgqf-span3,.sgqf-v1263 .sgqf-span4{grid-column:1 / -1}.sgqf-v1263 .sgqf-codigo{flex-wrap:wrap}}
