.action{display:inline-block;background:#2257a0;color:white;padding:.55rem .8rem;border-radius:6px;text-decoration:none;font-weight:650}
.result-tabs a{padding:.35rem .5rem}
.result-tabs a[aria-current=page]{font-weight:bold;border-bottom:2px solid}
fieldset{display:flex;gap:12px;flex-wrap:wrap;width:100%;border:1px solid #cad5e3;border-radius:6px;padding:12px}
.picker{position:relative}
.picker [role=listbox]{position:absolute;z-index:2;min-width:100%;max-height:13rem;overflow:auto;background:white;border:1px solid #9daec3;border-radius:6px;box-shadow:0 4px 12px #0002}
.picker [role=option]{padding:7px 10px;cursor:pointer}
.picker [aria-selected=true],.picker [role=option]:hover{background:#e2edff}
.report td,.report th{padding:5px 7px;font-size:.82rem;overflow-wrap:anywhere}
.report:not(.general-map) tr:last-child td,.general-map .map-summary tr:last-child td{font-weight:bold}
@page{size:A4;margin:10mm}
@media print{
 body{background:white;color:black}
 main{max-width:none;padding:0}
 h1{font-size:15pt;margin:0 0 4mm}
 .report p{margin:0 0 2mm}
 .report .scroll{overflow:visible}
 .report table{table-layout:fixed}
 .report thead{display:table-header-group}
 .report tr{break-inside:avoid}
 .report th,.report td{font-size:8pt;padding:1mm;border-bottom:1px solid #aaa}
}


.general-map table{table-layout:fixed;font-variant-numeric:tabular-nums}
.general-map .report-heading{font-size:1rem;line-height:1.4;padding:9px;background:#f5f8fc}
.general-map .report-heading strong{color:#142d53;font-size:1.2em}
.general-map tbody+tbody{border-top:1px solid #d5dfe9}
.general-map .lot-primary td{font-weight:650}
.general-map .lot-secondary td,.general-map .lot-note td{font-weight:400;color:#405069;padding-top:0}
.general-map .lot-note td{white-space:pre-wrap}
.general-map td{border:0}
.general-map .lot-primary td:nth-child(n+4),.general-map thead tr:nth-child(2) th:nth-child(n+4),
.general-map .map-summary :is(td,th):nth-child(n+2){text-align:right}
.general-map .map-summary :is(td,th):first-child{width:52%}
.general-map .map-summary :is(td,th):last-child{width:22%}
.general-map .map-summary tr+tr{border-top:1px solid #d5dfe9}
@media screen and (max-width:620px){.general-map .scroll>table{min-width:590px}}
@media print{
 main:has(.general-map)>h1{display:none}
 .general-map .report-heading{font-size:10pt;background:white;padding:2mm 1mm}
 .general-map tbody{break-inside:avoid;page-break-inside:avoid}
 .general-map .lot-primary{break-after:avoid}
 .general-map .lot-note{break-before:avoid}
 .general-map h2{font-size:11pt;break-after:avoid}
 .general-map td,.general-map th{padding:1mm}
 .general-map .lot-secondary td,.general-map .lot-note td{color:black}
}

.picker dialog{width:min(860px,calc(100% - 24px));max-height:calc(100% - 24px);border:1px solid #aabbd0;border-radius:10px;color:#172946}
.picker dialog::backdrop{background:#142d5366}
.client-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0}
.picker dialog .scroll{max-height:45vh;overflow:auto}
.picker dialog th{position:sticky;top:0;background:#edf3f9}
.picker dialog tbody tr{cursor:pointer}
.picker dialog tbody tr:hover,.picker dialog tbody tr:focus-within{background:#eef5ff}
.picker dialog tbody button{background:transparent;color:#2257a0;border:0;padding:0;text-align:left}
.picker dialog button:disabled{opacity:.5;cursor:default}

.result-tabs a{color:#173c72;background:#e6eef9;border-radius:6px;text-decoration:none;font-weight:600}
.result-tabs a:hover{background:#d3e2f5}
.result-tabs a[aria-current=page]{color:#fff;background:#2257a0;border-bottom:0}
.lot-section{padding:16px;align-items:end}
.lot-section legend{padding:0 6px;color:#173c72;font-weight:700}
.lot-section>label{flex:1 1 160px;min-width:0}
.lot-section>label:has(input[name=descricao]),.lot-section>label:has(input[name=obs]){flex-basis:100%}
.lot-section .picker{flex:1 1 310px;min-width:0}
.lot-section .picker>button{margin-top:8px}
.lot-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%}

[data-order]{width:95px}
.duplicate{background:#ffe4e4;border:2px solid #b92020}
[data-copy-dialog]{width:min(800px,95vw);max-height:90vh;border:1px solid #aabbd0;border-radius:10px}
[data-copy-dialog]>label{display:block;margin:12px 0}
[data-copy-dialog] textarea{width:100%;font:14px monospace;padding:10px}
@media print{
 .battery-invalid{display:block}
 body:has(.battery-invalid) main>*:not(.battery-invalid){display:none}
 body:has(.battery-invalid) .battery-invalid{display:block}
}

.battery td{font-weight:400!important}
.battery th:nth-child(1){width:12%}
.battery th:nth-child(2){width:9%}
.battery th:nth-child(3){width:9%;white-space:nowrap}
.battery th:nth-child(4){width:27%}
.battery th:nth-child(5){width:27%}
.battery th:nth-child(6){width:16%}

.batch-selection{display:block}
.batch-actions{display:flex;flex-wrap:wrap;gap:10px}
.batch-reports .batch-map{display:block;background:white;padding:12px;margin-bottom:24px}
.batch-selection td:first-child{width:65px}
@media print{
 main:has(.batch-reports)>h1{display:none}
 .batch-reports .batch-map{padding:0;margin:0;break-before:page;page-break-before:always}
 .batch-reports .batch-map:first-child{break-before:auto;page-break-before:auto}
 .batch-reports .batch-map>h2{font-size:14pt;break-after:avoid}
}

.ranking td{font-weight:400!important}
.ranking tbody tr:first-child td{font-weight:650!important}
@media print{.report h2,.report h3{break-after:avoid}}
