body.occurrences-active #apontamentos>#pr-filters{display:none!important}
#pr-occurrences header{position:static;display:block;color:#172e42;z-index:auto}.occ-table table{white-space:normal}
#pr-occurrences{min-width:0;padding:12px 0}#pr-occurrences header,#occ-filters,.occ-charts article,.occ-table{background:white;border:1px solid #dbe3ec;border-radius:12px;padding:16px}#pr-occurrences h2{margin:0 0 8px}#pr-occurrences p{line-height:1.5}#occ-filters{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0;align-items:end}#occ-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px}#occ-filters label:has([type=checkbox]){flex-direction:row;align-items:center}#occ-filters input,#occ-filters details{max-width:100%}#occ-filters details{position:relative;min-width:110px}#occ-filters [data-options]{max-height:210px;overflow:auto;min-width:180px}#occ-filters [data-options] label{padding:5px}#occ-filters input[name=q]{width:270px}.occ-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.occ-kpis button{display:grid;gap:7px;text-align:left;background:white;color:#172e42;border:1px solid #dbe3ec;border-top:4px solid #be1721;padding:18px;border-radius:10px}.occ-kpis b{font-size:30px}.occ-kpis button:disabled{opacity:1;cursor:default}.occ-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px}.occ-charts h3{margin:0 0 14px}.occ-bar{display:grid;grid-template-columns:minmax(100px,1fr) 1fr 32px;gap:12px;align-items:center;width:100%;text-align:left;background:white!important;color:#172e42!important;padding:8px!important;border-bottom:1px solid #edf1f5}.occ-bar span{overflow-wrap:anywhere}.occ-track{height:12px;background:#edf1f5;border-radius:3px;overflow:hidden}.occ-track i{display:block;background:#bc1722;height:100%}.occ-table{overflow-x:auto;padding:0}.occ-table table{border-collapse:collapse;width:100%;min-width:800px}.occ-table th,.occ-table td{text-align:left;padding:12px;border-bottom:1px solid #e1e7ee;vertical-align:top;max-width:320px;overflow-wrap:anywhere}.occ-table th{background:#f1f5f9;font-size:12px}.occ-table small{display:block;color:#586e85;margin-top:6px}.occ-status{font-weight:bold}.occ-pages{display:flex;gap:10px;margin:14px 0}#occ-delete{max-width:560px;width:90%;border:1px solid #cbd5e1;border-radius:12px;padding:24px;color:#172e42}#occ-delete::backdrop{background:#0d1d35aa}#occ-delete label{display:grid;gap:8px}#occ-delete textarea{min-height:100px}.occ-error{color:#b91c1c}#occ-delete button{margin-right:10px}@media(max-width:760px){.occ-kpis{grid-template-columns:1fr 1fr}.occ-charts{grid-template-columns:1fr}#occ-filters label,#occ-filters input[name=q]{width:100%}.occ-bar{grid-template-columns:1fr 80px 25px}.occ-table{max-width:100%}}

#pr-occurrences .occ-row-actions{white-space:normal;min-width:180px}
#pr-occurrences .occ-row-actions button{display:block;margin:0 0 6px;width:100%;white-space:normal}
#pr-occurrences .occ-meter-action{background:#910808;color:#fff;border:1px solid #910808;border-radius:7px;padding:9px 12px;font-weight:650;cursor:pointer}
#pr-occurrences .occ-meter-action:hover{background:#720606}
#occ-meter-dialog{width:min(94vw,530px);max-height:90vh;overflow:auto;border:1px solid #dbe3ec;border-radius:12px;padding:22px;color:#172e42}
#occ-meter-dialog::backdrop{background:#0d1d35aa}
#occ-meter-dialog h3{margin:0 0 12px}
#occ-meter-dialog p{line-height:1.4}
#occ-meter-dialog label{display:flex;flex-direction:column;gap:6px;margin:10px 0}
#occ-meter-dialog input,#occ-meter-dialog select{padding:9px;max-width:100%;box-sizing:border-box;border:1px solid #aebdcc;border-radius:6px}
#occ-meter-dialog .occ-meter-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}
#occ-meter-dialog button:disabled{opacity:.55;cursor:wait}

/* Supplier ranking shares the operational table filters; no page-level horizontal scroll. */
#pr-occurrences .occ-suppliers{grid-column:1/-1;min-width:0}
#pr-occurrences .occ-chart-hint{font-size:12px;color:#586e85;margin-top:-6px}
#pr-occurrences .occ-suppliers .occ-bar{grid-template-columns:minmax(0,2fr) minmax(50px,1fr) 45px}
#pr-occurrences .occ-table table{min-width:0}
#pr-occurrences .occ-table th,#pr-occurrences .occ-table td{max-width:280px}
@media(max-width:760px){#pr-occurrences .occ-suppliers .occ-bar{grid-template-columns:minmax(0,1fr) 65px 28px}}


/* Uniform, searchable filter controls for Apontamentos > Ocorrencias */
#pr-occurrences #occ-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch;padding:18px;overflow:visible}
#pr-occurrences #occ-filters *{box-sizing:border-box}
#pr-occurrences .occ-basic-filters{display:grid;grid-template-columns:minmax(140px,190px) minmax(140px,190px) minmax(230px,1fr);gap:12px;align-items:end;min-width:0}
#pr-occurrences .occ-basic-filters>label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#344458;min-width:0}
#pr-occurrences .occ-basic-filters input{height:42px;width:100%;min-width:0;max-width:none;border:1px solid #d0d9e3;border-radius:8px;padding:9px 11px;background:#fff;color:#172e42;font-size:13px}
#pr-occurrences .occ-basic-filters input:focus,#pr-occurrences .occ-filter-search-label input:focus{outline:2px solid #910808;outline-offset:1px}
#pr-occurrences .occ-filter-dimensions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-width:0}
#pr-occurrences #occ-filters details.occ-filter-select{min-width:0;width:100%;max-width:none;position:relative}
#pr-occurrences .occ-filter-select>summary{display:flex;flex-direction:column;justify-content:space-between;min-height:65px;width:100%;padding:10px 12px;border:1px solid #d0d9e3;border-radius:9px;background:#f8fafc;cursor:pointer;list-style:none;user-select:none;gap:4px}
#pr-occurrences .occ-filter-select>summary::-webkit-details-marker{display:none}
#pr-occurrences .occ-filter-select>summary::marker{content:''}
#pr-occurrences .occ-filter-heading{display:block;font-size:12px;color:#344458;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
#pr-occurrences .occ-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#536579;font-size:12px;line-height:1.3}
#pr-occurrences .occ-filter-arrow{font-size:17px;color:#910808;font-weight:bold;transition:transform .15s}
#pr-occurrences .occ-filter-select[open] .occ-filter-arrow{transform:rotate(180deg)}
#pr-occurrences .occ-filter-select.occ-has-selection>summary{border-color:#910808;background:#fff7f7}
#pr-occurrences .occ-filter-select.occ-has-selection .occ-filter-summary{font-weight:700;color:#910808}
#pr-occurrences .occ-filter-select[open]>summary{border-color:#910808;box-shadow:0 0 0 2px #91080814}
#pr-occurrences .occ-filter-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:80;width:min(350px,calc(100vw - 45px));min-width:240px;max-width:calc(100vw - 45px);padding:12px;background:#fff;box-shadow:0 12px 28px #0e203528;border:1px solid #d0d9e3;border-radius:10px;display:grid;gap:10px}
#pr-occurrences .occ-filter-select:nth-last-child(-n+2) .occ-filter-menu{left:auto;right:0}
#pr-occurrences .occ-filter-search-label{display:flex;flex-direction:column;gap:6px;width:100%;font-weight:700;font-size:12px;color:#344458}
#pr-occurrences .occ-filter-search-label input{display:block;width:100%;height:39px;max-width:none;min-width:0;border:1px solid #d0d9e3;background:#fff;color:#172e42;border-radius:7px;padding:7px 10px;font-size:13px}
#pr-occurrences .occ-filter-choices{min-width:0;width:100%;max-height:234px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;border:1px solid #e7ebf1;border-radius:7px;padding:4px}
#pr-occurrences .occ-filter-choices label.occ-filter-choice{display:flex;flex-direction:row;align-items:flex-start;gap:9px;width:100%;min-width:0;padding:8px 7px;border-radius:5px;color:#172e42;font-size:12px;font-weight:500;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}
#pr-occurrences .occ-filter-choices label.occ-filter-choice:hover{background:#f2f5fa}
#pr-occurrences .occ-filter-choices label[hidden]{display:none!important}
#pr-occurrences .occ-filter-choices input[type=checkbox]{width:16px;height:16px;min-width:16px;margin:1px 0 0;accent-color:#910808}
#pr-occurrences .occ-filter-choices span{min-width:0;overflow-wrap:anywhere}
#pr-occurrences .occ-filter-no-results{margin:4px 0!important;color:#66788b;font-size:12px}
#pr-occurrences .occ-filter-menu-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e7ebf1;padding-top:9px}
#pr-occurrences .occ-filter-menu-actions button{padding:7px 9px;border:1px solid #d0d9e3;border-radius:6px;background:#fff;color:#344458;font-size:11px;font-weight:700;cursor:pointer}
#pr-occurrences .occ-filter-menu-actions button:hover{background:#f2f5fa}
#pr-occurrences .occ-filter-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #e6ebf1;padding-top:14px}
#pr-occurrences .occ-filter-footer .occ-include-removed{display:inline-flex;flex-direction:row;align-items:center;gap:8px;width:auto;margin:0;color:#344458;font-weight:600;white-space:nowrap}
#pr-occurrences .occ-include-removed input{accent-color:#910808}
#pr-occurrences .occ-filter-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;min-width:0}
#pr-occurrences .occ-filter-buttons button{border:1px solid #d0d9e3;background:#fff;color:#344458;padding:10px 14px;border-radius:8px;font-size:12px;font-weight:750;min-height:40px}
#pr-occurrences .occ-filter-buttons button.occ-apply{background:#910808;border-color:#910808;color:#fff}
#pr-occurrences .occ-filter-buttons button:hover{filter:brightness(.96)}
@media(max-width:1100px){
 #pr-occurrences .occ-filter-dimensions{grid-template-columns:repeat(3,minmax(0,1fr))}
 #pr-occurrences .occ-filter-select:nth-last-child(-n+2) .occ-filter-menu{left:0;right:auto}
 #pr-occurrences .occ-filter-select:nth-child(3n) .occ-filter-menu{left:auto;right:0}
}
@media(max-width:740px){
 #pr-occurrences .occ-basic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #pr-occurrences .occ-basic-filters>label:last-child{grid-column:1/-1}
 #pr-occurrences .occ-filter-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #pr-occurrences .occ-filter-select .occ-filter-menu{position:static;margin-top:5px;box-shadow:none;width:100%;max-width:100%;min-width:0;padding:9px}
 #pr-occurrences .occ-filter-select>summary{min-height:60px}
 #pr-occurrences .occ-filter-footer{align-items:flex-start}
 #pr-occurrences .occ-filter-buttons{width:100%;justify-content:flex-start}
}
@media(max-width:430px){
 #pr-occurrences #occ-filters{padding:12px;gap:12px}
 #pr-occurrences .occ-basic-filters{grid-template-columns:1fr}
 #pr-occurrences .occ-basic-filters>label:last-child{grid-column:auto}
 #pr-occurrences .occ-filter-dimensions{grid-template-columns:1fr}
 #pr-occurrences .occ-filter-buttons{display:grid;grid-template-columns:1fr 1fr}
 #pr-occurrences .occ-filter-buttons button.occ-apply{grid-column:1/-1}
}
