/* Autorizador WEB — layout amplo do histórico.
   Carregado depois dos estilos legados para prevalecer sobre as regras com !important. */

.p2-main:has(.aw-page){
  max-width:none!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding-left:clamp(18px,2vw,30px)!important;
  padding-right:clamp(18px,2vw,30px)!important;
}

.p2-main:has(.aw-page) .aw-page{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}

.aw-page .aw-head{
  width:100%!important;
  align-items:center!important;
  gap:18px!important;
  margin-bottom:8px!important;
}

.aw-page .aw-head h1{
  margin:0 0 2px!important;
  font-size:24px!important;
  line-height:1.1!important;
}

.aw-page .aw-head p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.3!important;
}

.aw-page #aw-history-screen.aw-history-screen{
  width:100%!important;
  margin-top:6px!important;
}

.aw-page .aw-history-toolbar{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin:8px 0 10px!important;
}

.aw-page .aw-history-toolbar .aw-history-spacer{
  flex:1 1 24px!important;
  min-width:12px!important;
}

.aw-page .aw-h-btn{
  min-height:34px!important;
  padding:0 11px!important;
  border-radius:8px!important;
  font-size:11px!important;
  flex:0 0 auto!important;
}

.aw-page .aw-h-btn.refresh{
  margin-left:0!important;
}

.aw-page .aw-history-card{
  width:100%!important;
  max-width:none!important;
  border-radius:10px!important;
  box-shadow:0 7px 18px rgba(43,53,49,.045)!important;
}

.aw-page .aw-history-table-wrap{
  width:100%!important;
  max-width:none!important;
  overflow:auto!important;
  min-height:0!important;
  scrollbar-width:thin!important;
}

.aw-page .aw-history-table{
  width:100%!important;
  min-width:1280px!important;
  table-layout:auto!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}

.aw-page .aw-history-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:11px 12px!important;
  font-size:10.5px!important;
  white-space:nowrap!important;
}

.aw-page .aw-history-table tbody td{
  padding:12px!important;
  font-size:11.3px!important;
  line-height:1.35!important;
  vertical-align:middle!important;
}

.aw-page .aw-history-table td strong{
  font-size:11.4px!important;
  line-height:1.35!important;
}

.aw-page .aw-history-table td small{
  margin-top:3px!important;
  font-size:9.8px!important;
  line-height:1.35!important;
}

.aw-page .aw-history-table th:nth-child(1),
.aw-page .aw-history-table td:nth-child(1){min-width:190px!important;width:15%!important}

.aw-page .aw-history-table th:nth-child(2),
.aw-page .aw-history-table td:nth-child(2){min-width:145px!important;width:11%!important}

.aw-page .aw-history-table th:nth-child(3),
.aw-page .aw-history-table td:nth-child(3){min-width:225px!important;width:18%!important}

.aw-page .aw-history-table th:nth-child(4),
.aw-page .aw-history-table td:nth-child(4){min-width:235px!important;width:18%!important}

.aw-page .aw-history-table th:nth-child(5),
.aw-page .aw-history-table td:nth-child(5){min-width:215px!important;width:17%!important}

.aw-page .aw-history-table th:nth-child(6),
.aw-page .aw-history-table td:nth-child(6){min-width:125px!important;width:10%!important;white-space:nowrap!important}

.aw-page .aw-history-table th:nth-child(7),
.aw-page .aw-history-table td:nth-child(7){min-width:165px!important;width:165px!important}

.aw-page .aw-history-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
}

.aw-page .aw-history-actions button{
  min-height:31px!important;
  padding:0 8px!important;
  font-size:9.8px!important;
  border-radius:7px!important;
}

.aw-page .aw-documents{
  margin-top:5px!important;
  padding:6px 8px!important;
}

@media(max-width:1180px){
  .p2-main:has(.aw-page){
    padding-left:16px!important;
    padding-right:16px!important;
  }
  .aw-page .aw-history-table{min-width:1220px!important}
}

@media(max-width:760px){
  .aw-page .aw-head{align-items:flex-start!important}
  .aw-page .aw-history-toolbar{gap:6px!important}
  .aw-page .aw-history-toolbar .aw-history-spacer{display:none!important}
  .aw-page .aw-h-btn{padding:0 9px!important}
}
