
.cadastro-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cadastro-filters select{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;min-width:150px}
.cadastro-grid td,.cadastro-grid th{vertical-align:middle}
.cadastro-grid .mono{font-family:Consolas,monospace;font-size:12px}
.cadastro-grid .nowrap{white-space:nowrap}
.modalbox.wide{width:min(980px,100%)}
.lookup-wrap{display:flex;align-items:stretch;gap:6px}.lookup-wrap input{flex:1;min-width:0}.lookup-btn{width:42px;min-width:42px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--navy);font-size:20px;font-weight:800;cursor:pointer}.lookup-btn:hover{background:var(--pale)}

/* Padrão dos grids de cadastro */
.cadastro-card{display:flex;flex-direction:column;min-height:0}
.cadastro-toolbar{
  position:sticky;
  top:72px;
  z-index:12;
  background:#fff;
}
.cadastro-tablewrap{
  overflow-x:auto;
  overflow-y:visible;
  position:relative;
}
.cadastro-grid thead th{
  
  
  z-index:10;
  background:#fafbfc;
  box-shadow:0 1px 0 var(--line);
}
.cadastro-pager{
  position:relative;
  z-index:11;
  background:#fff;
  gap:14px;
}
.cadastro-pager,.pager-left,.pager-right{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.pager-left,.pager-right{gap:10px;flex-wrap:wrap}
.pager-left label{display:flex;align-items:center;gap:7px}
.pager-left select{
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.pager-btn{padding:7px 10px}
.pager-btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){
  .cadastro-toolbar{top:72px}
  .cadastro-pager{align-items:flex-start;flex-direction:column}
}

/* O grid mantém visualmente 10 linhas mesmo quando não há registros. */
.cadastro-grid tbody tr{height:44px}
.cadastro-grid tbody tr.cad-placeholder td{
  height:44px;
  color:transparent;
  pointer-events:none;
  background:#fff;
}
.cadastro-grid tbody tr.cad-placeholder:last-child td{
  border-bottom:0;
}

/* Cabeçalho do grid: sempre imediatamente acima da primeira linha. */
.cadastro-grid thead{
  display:table-header-group;
}
.cadastro-grid thead th{
  position:relative !important;
  top:auto !important;
  background:#dbe7f3 !important;
  color:#17324d !important;
  font-weight:700 !important;
  border-top:1px solid #c2d2e2 !important;
  border-bottom:1px solid #aebfd0 !important;
  height:42px;
  vertical-align:middle;
}
.cadastro-grid tbody tr{
  height:44px;
}

/* Correção definitiva do fluxo visual do cadastro */
.cadastro-toolbar{
  position:relative !important;
  top:auto !important;
  z-index:2 !important;
  background:#fff !important;
}
.cadastro-tablewrap{
  position:relative !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
}
.cadastro-grid{
  margin-top:0 !important;
}
.cadastro-grid thead{
  display:table-header-group !important;
}
.cadastro-grid thead th{
  position:static !important;
  top:auto !important;
  background:#c8d9ea !important;
  color:#17324d !important;
  font-weight:700 !important;
  height:42px !important;
  vertical-align:middle !important;
  border-top:1px solid #afc3d7 !important;
  border-bottom:1px solid #96aec5 !important;
}

/* Navegação: resposta visual imediata enquanto os dados são carregados */
.cadastro-loading{
  min-height:120px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:24px;
}
.cad-loading-line{
  height:4px;
  width:100%;
  border-radius:4px;
  background:linear-gradient(90deg,#dbe7f3 0%,#0d3a63 50%,#dbe7f3 100%);
  background-size:200% 100%;
  animation:mmxLoading 1s linear infinite;
}
.cad-loading-text{font-size:13px;color:#61758a}
@keyframes mmxLoading{from{background-position:100% 0}to{background-position:-100% 0}}

/* Botão de consulta CNPJ/CEP */
.lookup-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:16px !important;
}

.cad-loading-line,.cad-loading-text,.cadastro-loading{display:none!important}


/* Padrão MMX OS: todos os cabeçalhos dos grids na mesma cor */
.tablewrap table thead th,
.cadastro-grid thead th{
  background:#062d55 !important;
  color:#ffffff !important;
  border-top:1px solid #062d55 !important;
  border-bottom:1px solid #062d55 !important;
  font-weight:800 !important;
}
.wrapcell{white-space:normal!important;min-width:220px;line-height:1.35}
.module-tabs{display:flex;gap:4px;padding:12px 18px 0;background:#fff;border-bottom:1px solid var(--line)}
.module-tabs button{border:0;background:transparent;padding:10px 14px;font-weight:800;color:var(--muted);border-bottom:3px solid transparent}
.module-tabs button.active{color:var(--navy);border-bottom-color:var(--navy)}
.form-section{margin:18px 0 12px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;font-weight:900;color:var(--navy)}
.supplier-form .field textarea{min-height:85px}


/* MMX OS - grade com cabecalho fixo ao exibir 20/50/100 registros */
.tablewrap.mmx-scroll-grid,
.cadastro-tablewrap.mmx-scroll-grid{
  max-height:560px !important;
  overflow-y:auto !important;
  overflow-x:auto !important;
  scrollbar-gutter:stable;
}
.tablewrap.mmx-scroll-grid table thead th,
.cadastro-tablewrap.mmx-scroll-grid .cadastro-grid thead th{
  position:sticky !important;
  top:0 !important;
  z-index:30 !important;
  background:#062d55 !important;
  color:#fff !important;
  box-shadow:0 1px 0 #062d55;
}
.tablewrap.mmx-scroll-grid::-webkit-scrollbar,
.cadastro-tablewrap.mmx-scroll-grid::-webkit-scrollbar{width:12px;height:12px}
.tablewrap.mmx-scroll-grid::-webkit-scrollbar-thumb,
.cadastro-tablewrap.mmx-scroll-grid::-webkit-scrollbar-thumb{background:#a8b7c6;border-radius:8px;border:3px solid #f5f7f9}
.tablewrap.mmx-scroll-grid::-webkit-scrollbar-track,
.cadastro-tablewrap.mmx-scroll-grid::-webkit-scrollbar-track{background:#f5f7f9}

/* Mensagens proprias do MMX OS */
.mmx-dialog-text{font-size:14px;line-height:1.55;color:#33485d;white-space:pre-line}
.mmx-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.mmx-dialog-warning{padding:12px 14px;border-radius:9px;background:#fff6f6;color:#9d2020;border:1px solid #f3c9c9;margin-top:12px}

/* MMX OS - padrão definitivo: vazio compacto; grade de 10 linhas somente após existir cadastro */
.cad-empty-message,.mmx-empty-row{height:92px!important}
.cad-empty-message td,.mmx-empty-row td{height:92px!important;text-align:center!important;color:#6b7d90!important;background:#fff!important}
.cadastro-grid tbody tr.empty-only{height:92px!important}
.grid-link{border:0;background:transparent;padding:0;color:#0b4a7d;font:inherit;font-weight:700;cursor:pointer;text-align:left}.grid-link:hover{text-decoration:underline}
.contract-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}.contract-summary .full{grid-column:1/-1}.contract-summary .span2{grid-column:span 2}.contract-summary .item{border-bottom:1px solid #dbe4ec;padding:0 0 10px}.contract-summary .label{font-size:11px;text-transform:uppercase;color:#64748b;margin-bottom:4px}.contract-summary .value{font-size:13px;color:#0f172a;white-space:pre-wrap}.contract-summary-actions{display:flex;justify-content:flex-end;margin-top:18px}
@media(max-width:900px){.contract-summary{grid-template-columns:1fr 1fr}.contract-summary .span2{grid-column:span 2}}


/* Ativos: grade compacta para tentar exibir todas as colunas sem espaços excessivos.
   Textos longos quebram linha e a altura cresce conforme o conteúdo. */
.cadastro-grid-ativos{
  width:100%;
  min-width:1380px;
  table-layout:fixed;
  font-size:11px;
}
.cadastro-grid-ativos thead th{
  white-space:normal !important;
  overflow-wrap:anywhere;
  line-height:1.15;
  padding:8px 6px !important;
  height:auto !important;
}
.cadastro-grid-ativos tbody tr{
  height:auto !important;
  min-height:64px;
}
.cadastro-grid-ativos tbody td{
  height:auto !important;
  min-height:64px;
  vertical-align:middle !important;
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.25;
  padding:8px 6px !important;
}
/* Código */
.cadastro-grid-ativos th:nth-child(1),
.cadastro-grid-ativos td:nth-child(1){width:72px;white-space:nowrap!important}
/* Empresa: nome longo em 2/3 linhas. */
.cadastro-grid-ativos th:nth-child(2),
.cadastro-grid-ativos td:nth-child(2){width:158px}
/* Estabelecimento */
.cadastro-grid-ativos th:nth-child(3),
.cadastro-grid-ativos td:nth-child(3){width:105px}
/* Setor */
.cadastro-grid-ativos th:nth-child(4),
.cadastro-grid-ativos td:nth-child(4){width:92px}
/* Local */
.cadastro-grid-ativos th:nth-child(5),
.cadastro-grid-ativos td:nth-child(5){width:128px}
/* Ativo */
.cadastro-grid-ativos th:nth-child(6),
.cadastro-grid-ativos td:nth-child(6){width:180px}
/* Categoria */
.cadastro-grid-ativos th:nth-child(7),
.cadastro-grid-ativos td:nth-child(7){width:145px}
/* Fabricante / Modelo: compactos quando não há informação. */
.cadastro-grid-ativos th:nth-child(8),
.cadastro-grid-ativos td:nth-child(8){width:92px}
.cadastro-grid-ativos th:nth-child(9),
.cadastro-grid-ativos td:nth-child(9){width:82px}
/* Série / Patrimônio */
.cadastro-grid-ativos th:nth-child(10),
.cadastro-grid-ativos td:nth-child(10){width:86px}
.cadastro-grid-ativos th:nth-child(11),
.cadastro-grid-ativos td:nth-child(11){width:82px}
/* Criticidade / Status */
.cadastro-grid-ativos th:nth-child(12),
.cadastro-grid-ativos td:nth-child(12){width:82px;text-align:center}
.cadastro-grid-ativos th:nth-child(13),
.cadastro-grid-ativos td:nth-child(13){width:72px;text-align:center}
/* Ações */
.cadastro-grid-ativos th:nth-child(14),
.cadastro-grid-ativos td:nth-child(14){width:54px;white-space:nowrap!important;text-align:center}
/* Células vazias não criam aparência de blocos grandes. */
.cadastro-grid-ativos tbody td:empty{padding-left:3px!important;padding-right:3px!important}
@media(min-width:1800px){
  .cadastro-grid-ativos{min-width:100%}
}
@media(max-width:1200px){
  .cadastro-grid-ativos{min-width:1320px;font-size:10.5px}
}

/* Ativos: filtros encadeados por Empresa > Estabelecimento > Ativo */
.cadastro-grid-ativos~*{}
.cadastro-filters .cad-extra-filter-empresa_id{min-width:250px;max-width:320px}
.cadastro-filters .cad-extra-filter-estabelecimento_id{min-width:210px;max-width:280px}
.cadastro-filters .cad-extra-filter-descricao{min-width:230px;max-width:320px}
@media(max-width:1200px){
 .cadastro-filters .cad-extra-filter-empresa_id,
 .cadastro-filters .cad-extra-filter-estabelecimento_id,
 .cadastro-filters .cad-extra-filter-descricao{min-width:180px;max-width:240px}
}

/* Fornecedores: grid compacto com endereço completo e quebra de linha */
.cadastro-grid-fornecedores{table-layout:fixed;min-width:1170px;font-size:11px}
.cadastro-grid-fornecedores tbody tr{height:58px}
.cadastro-grid-fornecedores td,.cadastro-grid-fornecedores th{padding:8px 7px}
.cadastro-grid-fornecedores td{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.cadastro-grid-fornecedores th:nth-child(1),.cadastro-grid-fornecedores td:nth-child(1){width:118px;white-space:nowrap}
.cadastro-grid-fornecedores th:nth-child(2),.cadastro-grid-fornecedores td:nth-child(2){width:190px}
.cadastro-grid-fornecedores th:nth-child(3),.cadastro-grid-fornecedores td:nth-child(3){width:78px}
.cadastro-grid-fornecedores th:nth-child(4),.cadastro-grid-fornecedores td:nth-child(4){width:225px}
.cadastro-grid-fornecedores th:nth-child(5),.cadastro-grid-fornecedores td:nth-child(5){width:118px}
.cadastro-grid-fornecedores th:nth-child(6),.cadastro-grid-fornecedores td:nth-child(6){width:112px;white-space:nowrap}
.cadastro-grid-fornecedores th:nth-child(7),.cadastro-grid-fornecedores td:nth-child(7){width:150px}
.cadastro-grid-fornecedores th:nth-child(8),.cadastro-grid-fornecedores td:nth-child(8){width:165px}
.cadastro-grid-fornecedores th:nth-child(9),.cadastro-grid-fornecedores td:nth-child(9){width:76px;text-align:center}
.cadastro-grid-fornecedores th:nth-child(10),.cadastro-grid-fornecedores td:nth-child(10){width:56px;text-align:center;white-space:nowrap}

/* Contratos: documentos, aditivos e ZapSign */
.contract-modal-subtitle{font-size:12px;color:#5d7186;margin:-4px 0 16px;line-height:1.45}
.contract-upload-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(180px,.8fr) auto;gap:10px;align-items:end;padding-bottom:16px;border-bottom:1px solid var(--line)}
.contract-save-file{height:40px;margin-bottom:1px}
.contract-list{margin-top:16px;border:1px solid var(--line);border-radius:10px;overflow:auto;max-height:300px}
.contract-list table{width:100%;min-width:650px;border-collapse:collapse}
.contract-list th,.contract-list td{padding:9px 10px;height:auto!important;vertical-align:middle}
.contract-list th{background:#f3f6f9!important;color:#17324d!important;font-size:11px}
.contract-file-actions{white-space:nowrap!important;text-align:right}
.contract-file-actions .btn{padding:6px 9px;margin-left:4px;font-size:11px}
.contract-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.contract-aditivo-grid,.zapsign-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 12px}
.contract-aditivo-grid .full,.zapsign-grid .full{grid-column:1/-1}
.contract-aditivo-save{display:flex;justify-content:flex-end;margin:10px 0 4px}
.zs-ok{display:inline-block;background:#e7f6ee;color:#117845;border:1px solid #bfe7d0;border-radius:999px;padding:4px 8px;font-weight:800;font-size:10px}
.zs-off{display:inline-block;background:#fff0f0;color:#a12626;border:1px solid #f0c9c9;border-radius:999px;padding:4px 8px;font-weight:800;font-size:10px}
@media(max-width:900px){.contract-upload-row{grid-template-columns:1fr}.contract-aditivo-grid,.zapsign-grid{grid-template-columns:1fr 1fr}.contract-save-file{width:100%}}
@media(max-width:620px){.contract-aditivo-grid,.zapsign-grid{grid-template-columns:1fr}}

/* Ordens de Serviço — controle operacional em tempo real */
.os-autorefresh{display:flex;align-items:center;gap:8px;font-size:11px;color:#587086;white-space:nowrap;padding-top:8px}
.os-pulse{width:8px;height:8px;border-radius:50%;background:#18a66b;box-shadow:0 0 0 0 rgba(24,166,107,.38);animation:osPulse 1.8s infinite}
@keyframes osPulse{0%{box-shadow:0 0 0 0 rgba(24,166,107,.38)}70%{box-shadow:0 0 0 7px rgba(24,166,107,0)}100%{box-shadow:0 0 0 0 rgba(24,166,107,0)}}
.os-grid-wrap{overflow:auto;max-width:100%;position:relative}
.os-grid{min-width:1460px;font-size:10px;table-layout:fixed}
.os-grid th,.os-grid td{padding:7px 5px;vertical-align:middle;line-height:1.2;white-space:normal}
.os-grid thead th{font-size:9px;letter-spacing:.02em}
.os-grid tbody tr{height:64px}
.os-grid th:nth-child(1),.os-grid td:nth-child(1){width:145px}
.os-grid th:nth-child(2),.os-grid td:nth-child(2){width:102px}
.os-grid th:nth-child(3),.os-grid td:nth-child(3){width:106px}
.os-grid th:nth-child(4),.os-grid td:nth-child(4){width:238px}
.os-grid th:nth-child(5),.os-grid td:nth-child(5){width:88px;text-align:center}
.os-grid th:nth-child(6),.os-grid td:nth-child(6){width:82px;text-align:center}
.os-grid th:nth-child(7),.os-grid td:nth-child(7){width:92px;text-align:center}
.os-grid th:nth-child(8),.os-grid td:nth-child(8){width:98px;text-align:center}
.os-grid th:nth-child(9),.os-grid td:nth-child(9){width:108px}
.os-grid th:nth-child(10),.os-grid td:nth-child(10){width:98px;text-align:center}
.os-grid th:nth-child(11),.os-grid td:nth-child(11){width:108px}
.os-grid th:nth-child(12),.os-grid td:nth-child(12){width:108px}
.os-grid th:nth-child(13),.os-grid td:nth-child(13){width:94px}
.os-grid th:nth-child(14),.os-grid td:nth-child(14){width:66px;text-align:center;white-space:nowrap}
.os-company{overflow-wrap:anywhere}.os-fixed{white-space:nowrap!important;font-size:9.6px}.os-tech{overflow-wrap:anywhere}
.os-desc b{display:block;font-size:10px;margin-bottom:2px}.os-desc span{display:block;color:#41586d;overflow-wrap:anywhere;font-size:9.6px;line-height:1.25}
.os-th-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}.os-th-stack small{font-size:8px;font-weight:800;color:inherit;text-transform:uppercase;margin-top:2px}
.os-date-stack{display:flex;flex-direction:column;gap:1px;line-height:1.08;align-items:center;text-align:center}.os-date-stack>b{font-size:9.6px;white-space:nowrap}.os-date-stack>span{font-size:9px;color:#40576b;white-space:nowrap}.os-date-stack>small{font-size:8.3px;font-weight:800;color:#687c8e;line-height:1.05}.os-date-stack .os-elapsed{display:block;color:#6d8092;margin-top:2px;font-size:8.5px;font-weight:700}
.os-deadline{display:block;border-radius:6px;padding:4px 5px;margin:-3px -2px}.os-deadline.late{background:#fff0f0;border:1px solid #f3bbbb;color:#a62020}.os-deadline.late .os-date-stack>small{color:#c62828}
.os-live{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #d4dfe9;background:#f4f7fa;color:#385169;border-radius:6px;padding:4px 5px;white-space:nowrap;line-height:1.05}.os-live b{font-size:8.4px}.os-live small{font-size:8.7px;font-weight:800;margin-top:2px}.os-live.warn{background:#fff8dd;border-color:#f2d982;color:#8a6100}.os-live.late{background:#fff0f0;border-color:#f1aaaa;color:#c32222}.os-live.done{background:#eaf8f1;border-color:#bfe7d1;color:#157548}
.os-actionmenu>button{width:30px;height:28px;font-size:18px}.os-actionmenu .menu{min-width:190px;z-index:60}
.os-context{display:flex;flex-direction:column;gap:4px;background:#f3f7fb;border:1px solid #d9e4ed;border-radius:8px;padding:10px 12px;margin-bottom:14px}.os-context b{font-size:13px}.os-context span{font-size:11px;color:#597086}
.os-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding-bottom:12px;border-bottom:1px solid var(--line)}.os-detail-head h2{margin:0 0 3px}.os-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;margin:14px 0}.os-detail-grid div{border:1px solid var(--line);border-radius:8px;padding:9px}.os-detail-grid label,.os-detail-text label{display:block;font-size:9px;font-weight:800;color:#63798c;text-transform:uppercase;margin-bottom:4px}.os-detail-grid span{font-size:11px}.os-detail-text{border:1px solid var(--line);border-radius:8px;padding:10px}.os-detail-text p{margin:0;line-height:1.5}.os-mini-summary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.os-mini-summary span{background:#eef4f8;border:1px solid #d8e4ec;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700}.os-detail-list{border-top:1px solid var(--line);padding-top:10px;margin-top:10px;font-size:10.5px}.os-detail-list>b{display:block;margin-bottom:7px}.os-detail-list>div{padding:4px 0}.os-file-link{display:block;border:0;background:none;color:#075f9d;text-decoration:underline;padding:3px 0;cursor:pointer;font:inherit}.os-material-total{text-align:right;margin:8px 0 12px}.os-add-material{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
@media(max-width:900px){.os-detail-grid{grid-template-columns:1fr 1fr}.os-autorefresh{display:none}}

/* Fluxo técnico / materiais */
.os-placeholder td{height:42px!important}
.os-material-requests{border:1px solid #d9e4ed;background:#f7fafc;border-radius:9px;padding:10px 12px;margin:10px 0 14px}.os-material-requests>b{display:block;margin-bottom:7px}.os-material-requests>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #e4ebf1;font-size:10px}.os-material-requests>div:first-of-type{border-top:0}.os-material-requests small{white-space:nowrap;color:#718396}.ma-grid{font-size:10px}.ma-grid td{vertical-align:middle}.ma-desc{display:block;color:#60768a;margin-top:3px;line-height:1.25}.ma-grid th:nth-child(1){width:120px}.ma-grid th:nth-child(2){width:180px}.ma-grid th:nth-child(3){width:360px}.ma-grid th:nth-child(4){width:120px}.ma-grid th:nth-child(5){width:180px}.ma-grid th:nth-child(6){width:130px}.ma-grid th:nth-child(7){width:95px}.ma-grid th:nth-child(8){width:70px;text-align:center}

/* Meus Atendimentos — grid compacto e legível */
.ma-tablewrap{overflow-x:auto}
.ma-grid{table-layout:fixed;min-width:1210px;font-size:10px}
.ma-grid thead th{padding:8px 6px;text-align:left;white-space:normal;line-height:1.1}
.ma-grid tbody tr:not(.cad-placeholder){height:68px}
.ma-grid tbody td{padding:8px 6px;white-space:normal;line-height:1.22;vertical-align:middle}
.ma-grid .ma-code{width:112px;white-space:nowrap}
.ma-grid .ma-company{width:150px;overflow-wrap:anywhere}
.ma-grid .ma-diagnostico{width:270px}
.ma-grid .ma-prioridade{width:96px;text-align:center}
.ma-grid .ma-status{width:96px;text-align:center}
.ma-grid .ma-tecnico{width:145px;overflow-wrap:anywhere}
.ma-grid .ma-abertura{width:106px;text-align:center}
.ma-grid .ma-tempo{width:82px;text-align:center;white-space:nowrap}
.ma-grid .ma-acoes{width:56px;text-align:center;white-space:nowrap}
.ma-grid th:nth-child(1){width:112px}.ma-grid th:nth-child(2){width:150px}.ma-grid th:nth-child(3){width:270px}.ma-grid th:nth-child(4){width:96px;text-align:center}.ma-grid th:nth-child(5){width:96px;text-align:center}.ma-grid th:nth-child(6){width:145px}.ma-grid th:nth-child(7){width:106px;text-align:center}.ma-grid th:nth-child(8){width:82px;text-align:center}.ma-grid th:nth-child(9){width:56px;text-align:center}
.ma-desc{display:block;color:#60768a;margin-top:4px;line-height:1.25;max-height:2.5em;overflow:hidden}
.ma-tecnico-filter{min-width:210px;max-width:280px}

.ma-tech-fixed{min-width:250px;min-height:38px;border:1px solid #d9e4ed;background:#f7fafc;border-radius:8px;padding:6px 12px;display:flex;align-items:center;gap:10px}.ma-tech-fixed span{font-size:9px;text-transform:uppercase;color:#718396;font-weight:700;letter-spacing:.04em}.ma-tech-fixed strong{font-size:11px;color:#17334d;font-weight:700}


/* 15/09/2026 — OS com 5 linhas e responsividade refinada */
.os-page-size{color:#8293a3;margin-left:4px;white-space:nowrap}
.os-placeholder td{height:64px!important;background:#fff!important;border-bottom:1px solid var(--line)!important}
@media(max-width:1380px){
 .os-grid{min-width:1320px}
 .os-grid th:nth-child(1),.os-grid td:nth-child(1){width:130px}
 .os-grid th:nth-child(2),.os-grid td:nth-child(2){width:96px}
 .os-grid th:nth-child(3),.os-grid td:nth-child(3){width:100px}
 .os-grid th:nth-child(4),.os-grid td:nth-child(4){width:210px}
 .os-grid th:nth-child(12),.os-grid td:nth-child(12){width:100px}
}
@media(max-width:1080px){
 .os-grid-wrap{border-top:1px solid var(--line);-webkit-overflow-scrolling:touch}
 .os-grid{min-width:1260px}
 .os-autorefresh{display:none}
 .os-pager{font-size:11px}
}
@media(max-width:720px){
 .os-grid{min-width:1180px;font-size:9.5px}
 .os-grid th,.os-grid td{padding:6px 4px}
 .os-grid tbody tr,.os-placeholder td{height:58px!important}
}
