
:root{
  --graphite:#131A20;
  --graphite-2:#1b252d;
  --yellow:#FDF001;
  --bg:#f5f6f7;
  --panel:#ffffff;
  --text:#202a31;
  --muted:#66727b;
  --line:#dfe4e7;
  --soft:#eef1f3;
  --success:#2f7d4c;
  --warning:#9a6a00;
  --danger:#a33;
  --shadow:0 8px 28px rgba(20,30,38,.06);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
a{color:inherit}
.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#0f151a,#182129);padding:24px}
.login-card{width:min(440px,94vw);background:#fff;border-radius:18px;padding:34px;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.login-brand img{width:64px;height:64px;object-fit:contain}
.login-brand h1{font-size:22px;margin:0}
.login-brand p{margin:4px 0 0;color:var(--muted)}
.field{display:grid;gap:7px;margin:15px 0}
.field label{font-weight:700;font-size:14px}
.field input{border:1px solid #cbd3d8;border-radius:9px;padding:12px 13px;outline:none}
.field input:focus{border-color:#87949c;box-shadow:0 0 0 3px rgba(19,26,32,.06)}
.primary{border:0;background:var(--yellow);color:#111;font-weight:800;border-radius:9px;padding:13px 16px}
.primary.full{width:100%}
.ghost{border:1px solid #bcc7cd;background:#fff;color:var(--text);font-weight:700;border-radius:9px;padding:10px 14px}
.darkghost{border:1px solid #43525c;background:transparent;color:#fff;font-weight:700;border-radius:8px;padding:10px 12px}
.linkbtn{border:0;background:none;padding:12px 0 0;color:#42545f}
.msg{min-height:22px;margin-top:10px;color:var(--danger);font-size:13px}
.app{min-height:100vh;display:grid;grid-template-columns:298px minmax(0,1fr)}
.sidebar{background:var(--graphite);color:#fff;padding:24px 20px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;overflow:auto}
.brand-side{display:flex;align-items:center;gap:13px;padding:6px 4px 28px}
.brand-side img{width:60px;height:60px;object-fit:contain;background:#fff;border-radius:8px}
.brand-side .brand-name{font-weight:800;letter-spacing:.06em;line-height:1.35}
.brand-side .brand-name small{display:block;font-size:12px;letter-spacing:.17em;margin-top:4px}
.side-section{color:#b9c2c8;font-size:14px;letter-spacing:.1em;text-transform:uppercase;margin:10px 7px 14px;display:flex;gap:8px;align-items:center}
.nav{display:grid;gap:5px}
.nav button{border:0;background:transparent;color:#edf1f3;text-align:left;padding:12px 12px;border-radius:8px;font-size:16px;display:flex;gap:10px;align-items:center}
.nav button.active,.nav button:hover{background:var(--yellow);color:#111;font-weight:800}
.nav .icon{width:19px;display:inline-grid;place-items:center}
.sidebar-spacer{flex:1}
.site-private{border:1px solid #46545e;border-radius:7px;padding:9px 11px;color:#e6ebee;font-size:12px;font-weight:800;letter-spacing:.08em;margin-top:22px}
.sidebar .darkghost{width:100%;margin-top:12px;text-align:left}
.logout{border:0;background:none;color:#fff;padding:12px 2px;text-align:left;margin-top:4px}
.main{min-width:0}
.header{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:3}
.header-left{display:flex;align-items:center;gap:12px;font-weight:800}
.header-left img{width:34px;height:34px;object-fit:contain}
.header-right{color:#56636c}
.page{padding:38px 42px 56px;max-width:1500px}
.eyebrow{font-size:15px;letter-spacing:.1em;text-transform:uppercase;color:#66727b;margin-bottom:10px}
.page h1{font-size:38px;font-weight:500;line-height:1.12;margin:0 0 28px}
.banner{background:#fff;border:1px solid var(--line);border-left:4px solid var(--yellow);border-radius:9px;padding:20px 24px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.banner strong{display:block;margin-bottom:4px}
.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 28px;box-shadow:var(--shadow)}
.panel h2,.panel h3{margin:0 0 12px;font-weight:600}
.panel h2{font-size:23px}
.panel h3{font-size:18px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi{font-size:32px;font-weight:800;margin-top:6px}
.kpi-label{color:var(--muted);font-size:14px}
.muted{color:var(--muted)}
.small{font-size:13px}
.stack{display:grid;gap:18px}
.divider{height:1px;background:var(--line);margin:20px 0}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2f4;color:#485861}
.badge.success{background:#e8f5ed;color:#2c7046}
.badge.warn{background:#fff6d8;color:#725300}
.badge.dark{background:#e9edef;color:#25343e}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px}
table{border-collapse:collapse;width:100%;min-width:900px}
th,td{padding:16px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#f4f5f6;color:#5b6871;font-weight:500;position:sticky;top:0}
tr:last-child td{border-bottom:0}
td strong{display:block}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.doc-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 28px}
.doc-icon{font-size:26px;margin-bottom:16px}
.doc-title{font-size:20px;line-height:1.35;margin-bottom:14px}
.meta-list{display:grid;grid-template-columns:110px 1fr;gap:9px 10px;margin:18px 0}
.meta-list .label{color:var(--muted)}
.btn-row{display:flex;gap:10px;flex-wrap:wrap}
.yellow-btn{border:0;background:var(--yellow);color:#111;font-weight:800;border-radius:8px;padding:11px 14px}
.yellow-btn:disabled{opacity:.45;cursor:not-allowed}
.timeline{position:relative;padding-left:28px}
.timeline:before{content:"";position:absolute;left:6px;top:4px;bottom:5px;width:2px;background:var(--yellow)}
.timeline-item{position:relative;padding:0 0 28px 16px}
.timeline-item:before{content:"";position:absolute;left:-27px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--yellow);border:2px solid #fff;box-shadow:0 0 0 1px var(--yellow)}
.timeline-date{font-size:13px;color:#66727b;letter-spacing:.05em;margin-bottom:6px}
.timeline-title{font-size:20px;margin-bottom:5px}
.detail-grid{display:grid;grid-template-columns:220px 1fr;gap:10px 18px}
.detail-grid .label{color:var(--muted)}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:28px 0 14px}
.section-title h2{margin:0;font-size:24px;font-weight:500}
.notice{padding:14px 16px;background:#fff9d7;border:1px solid #efe28b;border-radius:8px;color:#5c5200}
.errorbox{padding:14px 16px;background:#ffecec;border:1px solid #ffc3c3;border-radius:8px;color:#7f2222}
.empty{padding:28px;text-align:center;color:var(--muted)}
.status-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.top-actions{display:flex;gap:10px;align-items:center}
.code-lite{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#f2f4f5;padding:3px 6px;border-radius:5px}
@media(max-width:1100px){.grid-4,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
  .app{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto;min-height:0}
  .header{position:relative;padding:0 20px}
  .page{padding:24px 18px 40px}
  .grid-2,.grid-3,.grid-4,.cards{grid-template-columns:1fr}
  .page h1{font-size:30px}
  .banner{align-items:flex-start;flex-direction:column}
  .detail-grid{grid-template-columns:1fr}
}

/* Melhorias consolidadas V3 */
.badge.danger{background:#fdeaea;color:#8a2f2f}
.header-admin{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.header-admin label{display:flex;align-items:center;gap:8px;color:#56636c;font-size:13px}
.header-admin select,.bulletin-action input{border:1px solid #cbd3d8;border-radius:8px;background:#fff;padding:8px 10px;color:var(--text)}
.folder-stack{display:grid;gap:18px}
.doc-folder{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}
.doc-folder>summary{list-style:none;cursor:pointer;padding:18px 22px;font-size:20px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fafbfb}
.doc-folder>summary::-webkit-details-marker{display:none}
.doc-folder>summary:before{content:'▸';margin-right:9px;color:#68757d}
.doc-folder[open]>summary:before{content:'▾'}
.folder-body{padding:20px}
.year-group{margin-bottom:22px}.year-group:last-child{margin-bottom:0}.year-group h3{margin:0 0 12px;font-size:18px}
.bulletin-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.bulletin-action{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.modal-overlay{position:fixed;inset:0;background:rgba(8,13,17,.64);display:grid;place-items:center;padding:20px;z-index:1000}
.modal-card{position:relative;background:#fff;border-radius:14px;width:min(860px,96vw);max-height:92vh;overflow:auto;padding:30px;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.modal-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:30px;color:#66727b}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
.bulletin-preview section{margin:20px 0}.bulletin-preview ul{padding-left:22px}.bulletin-preview li{margin:6px 0}
.regularity-panel{border-left:4px solid var(--yellow)}
.regularity-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.regularity-status{min-width:230px;border-radius:12px;padding:16px 18px;display:grid;gap:5px}
.regularity-status span{font-size:24px;font-weight:800}.regularity-status small{line-height:1.35}
.regularity-status.success{background:#e8f5ed;color:#23613d}.regularity-status.warn{background:#fff6d8;color:#725300}.regularity-status.danger{background:#fdeaea;color:#8a2f2f}
.regularity-doc{padding:12px 0}.regularity-doc .expiry{font-weight:700;margin-top:4px;color:#2c7046}.regularity-doc .expiry.warn-text{color:#8b6500}
.visit-upcoming{display:flex;align-items:center;justify-content:space-between;gap:16px}
.visit-progress{margin-bottom:16px}.progress-bar{height:8px;background:#e4e8ea;border-radius:999px;overflow:hidden;margin-top:9px}.progress-bar span{display:block;height:100%;background:var(--yellow)}
.visit-step h2{font-size:28px;line-height:1.3}.big-textarea{width:100%;min-height:110px;border:1px solid #cbd3d8;border-radius:9px;padding:12px 13px;resize:vertical;font:inherit}
.answer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.answer-option input{display:none}.answer-option span{display:block;border:1px solid #cbd3d8;border-radius:10px;padding:14px;text-align:center;font-weight:700;cursor:pointer}.answer-option input:checked+span{background:var(--yellow);border-color:#c9bf00;color:#111}
.photo-box{border:1px dashed #bac4ca;border-radius:10px;padding:16px;margin:18px 0;display:grid;gap:8px}.photo-box input{max-width:100%}
@media(max-width:820px){
 .header-admin{gap:6px;align-items:flex-end;flex-direction:column}.header-admin label{font-size:11px}.header-admin select{max-width:190px}
 .bulletin-tools,.regularity-head,.visit-upcoming{align-items:stretch;flex-direction:column}.answer-grid{grid-template-columns:1fr}.regularity-status{min-width:0}
}

/* V4 · recuperação do boletim e do app de vistoria antigos */
.bulletin-v4-tools{border-left:4px solid var(--yellow)}
.bulletin-official{background:#fff;border:1px solid #d7dde1;border-radius:12px;padding:18px;max-width:1180px;margin:0 auto;color:#101820;box-shadow:0 8px 26px rgba(18,27,34,.08)}
.bm-head{display:grid;grid-template-columns:180px 1fr 150px;gap:14px;align-items:stretch}
.bm-brand{display:flex;gap:9px;align-items:flex-start;border-right:3px solid var(--yellow);padding-right:12px}.bm-brand img{width:54px;height:54px;object-fit:contain}.bm-brand strong{font-size:17px;line-height:1.05}.bm-brand small{display:block;font-size:9px;color:#68737a;margin-top:8px;line-height:1.25}
.bm-title h1{font-size:19px;margin:0;font-weight:900;letter-spacing:.01em}.bm-title h2{font-size:15px;margin:2px 0 7px;font-weight:900}.bm-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #cfd7db;border-radius:7px;overflow:hidden}.bm-info-grid>div{padding:6px 8px;border-right:1px solid #d8dfe2;border-bottom:1px solid #d8dfe2;min-height:45px}.bm-info-grid>div:nth-child(3n){border-right:0}.bm-info-grid b,.bm-info-grid span{display:block}.bm-info-grid b{font-size:8px;text-transform:uppercase}.bm-info-grid span{font-size:9px;margin-top:2px}
.bm-updated{background:#111a20;color:#fff;border-radius:8px;display:grid;place-content:center;text-align:center;padding:10px}.bm-updated small{font-size:9px}.bm-updated strong{font-size:14px;color:var(--yellow);margin-top:4px}
.bm-section{margin-top:10px;border:1px solid #d8dfe2;border-radius:8px;overflow:hidden;background:#fff}.bm-section-title{background:#111a20;color:#fff;font-weight:900;font-size:10px;padding:6px 9px;border-left:4px solid var(--yellow)}.bm-section-title.second{margin-top:10px}.bm-summary{font-size:9px;line-height:1.35;margin:8px 9px}
.bm-metrics{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border-top:1px solid #e1e6e9}.bm-metric{padding:7px 5px;text-align:center;border-right:1px solid #dfe4e7;min-height:78px}.bm-metric:last-child{border-right:0}.bm-metric-icon{font-size:18px;line-height:1}.bm-metric-label{font-size:8px;font-weight:700;margin-top:4px}.bm-metric-value{font-size:8px;margin-top:5px;line-height:1.2}.bm-status.success .bm-metric-value{color:#0c8a3a;font-weight:900}.bm-status.warn .bm-metric-value{color:#9a6a00;font-weight:900}.bm-status.danger .bm-metric-value{color:#a33;font-weight:900}
.bm-two-col{display:grid;grid-template-columns:1fr 1.25fr;gap:10px}.bm-section h4{font-size:9px;margin:9px 10px 5px}.bm-check{display:flex;gap:6px;margin:4px 10px;font-size:9px;line-height:1.3}.bm-check b{color:#0b9b45}.bm-check span{display:grid}.bm-check small{font-size:8px;color:#66727b;margin-top:2px}.bm-empty{font-size:9px;color:#66727b;padding:10px}.bm-empty.left{text-align:left}
.bm-table{min-width:0!important;font-size:8px}.bm-table th,.bm-table td{padding:6px 7px;position:static;border-bottom:1px solid #e1e6e9}.bm-table th{background:var(--yellow);color:#111;font-weight:900;font-size:7.5px}.bm-section p{font-size:9px;line-height:1.35;margin:9px 10px}.bm-next-list{padding:6px 9px}.bm-next-row{display:grid;grid-template-columns:70px 1fr;gap:8px;font-size:8.5px;padding:5px 0;border-bottom:1px solid #eceff1}.bm-next-row:last-child{border-bottom:0}.bm-conclusion{margin-bottom:8px}
.bm-footer{background:#111a20;color:#fff;border-radius:7px;display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:0;align-items:center;padding:7px 9px}.bm-footer>div{padding:0 8px;border-right:1px solid #3a474f}.bm-footer>div:last-child{border-right:0}.bm-footer b,.bm-footer span,.bm-footer small{display:block}.bm-footer b{font-size:6.5px;color:var(--yellow)}.bm-footer span,.bm-footer small{font-size:7px}.bm-footer-brand{display:flex!important;align-items:center;gap:6px}.bm-footer-brand img{width:26px;height:26px;object-fit:contain}.bm-footer-brand span{font-weight:800}.bulletin-official.printable{padding:0;border-radius:0}

.legacy-visit-step{max-width:1050px}.legacy-point-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.legacy-ref-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.legacy-ref-grid>div{background:#f7f8f9;border:1px solid var(--line);border-radius:8px;padding:12px}.legacy-ref-grid small,.legacy-ref-grid strong{display:block}.legacy-ref-grid small{font-size:10px;color:var(--muted);letter-spacing:.08em;margin-bottom:4px}.visit-subtitle{font-size:14px;font-weight:900;margin:22px 0 9px;padding-bottom:7px;border-bottom:2px solid var(--yellow)}.visit-checks{display:grid;gap:8px}.visit-check-row{display:grid;grid-template-columns:1fr 170px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.visit-check-row small{display:block;color:var(--muted);margin-top:3px}.visit-check-row select,.visit-fields select{border:1px solid #cbd3d8;border-radius:8px;padding:9px;background:#fff}.issue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.issue-option input{display:none}.issue-option span{display:block;border:1px solid #cbd3d8;border-radius:8px;padding:10px 11px;cursor:pointer;font-size:13px}.issue-option input:checked+span{background:#fff6d8;border-color:#dbc900;font-weight:800}.visit-review{display:grid;gap:14px;margin-top:16px}.visit-review-point{border:1px solid var(--line);border-radius:9px;padding:14px 16px}.visit-review-point h3{margin:8px 0}.visit-review-point p{margin:6px 0;line-height:1.45}
@media(max-width:900px){.bm-head{grid-template-columns:1fr}.bm-brand{border-right:0;border-bottom:3px solid var(--yellow);padding-bottom:10px}.bm-info-grid{grid-template-columns:1fr 1fr}.bm-metrics{grid-template-columns:repeat(2,1fr)}.bm-two-col{grid-template-columns:1fr}.bm-footer{grid-template-columns:1fr 1fr}.legacy-ref-grid,.issue-grid{grid-template-columns:1fr}.visit-check-row{grid-template-columns:1fr}}
@media print{.bulletin-official{box-shadow:none;border:0}.bm-section,.bm-metric,.bm-table tr{break-inside:avoid}}


/* =========================================================
   V5 · MODELO MESTRE FIXO DO BOLETIM MENSAL
   Layout inspirado no boletim institucional anterior.
   O desenho é fixo; somente os dados da competência mudam.
   ========================================================= */
.modal-card.modal-wide{width:min(1320px,98vw);padding:20px}
.bm5-preview-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 auto 12px;max-width:1180px}

.bulletin-master-v5{
  --bm5-dark:#0f171d;
  --bm5-yellow:#fdf001;
  --bm5-line:#d9e0e4;
  --bm5-muted:#66727b;
  background:#fff;
  color:#0f171d;
  border:1px solid #cfd7dc;
  border-radius:9px;
  box-shadow:0 12px 38px rgba(15,23,29,.12);
  width:min(1180px,100%);
  aspect-ratio:297/210;
  margin:0 auto;
  padding:22px;
  box-sizing:border-box;
  overflow:hidden;
  font-family:Arial,Helvetica,sans-serif;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.bm5-header{display:grid;grid-template-columns:170px minmax(0,1fr) 154px;gap:10px;min-height:132px}
.bm5-brand-column{display:flex;flex-direction:column;justify-content:space-between;border-right:3px solid var(--bm5-yellow);padding-right:10px}
.bm5-brand{display:flex;align-items:center;gap:8px}
.bm5-brand img{width:48px;height:48px;object-fit:contain}
.bm5-brand strong{font-size:13px;line-height:1.02;display:block}
.bm5-brand small{display:block;font-size:6.9px;line-height:1.15;color:#67727a;margin-top:4px}
.bm5-client-mark{display:flex;align-items:center;gap:7px;border-top:1px solid #e2e7ea;padding-top:9px;color:#707981}
.bm5-client-mark span{width:26px;height:26px;border:2px solid #7b858d;border-radius:50%;display:grid;place-items:center;font-size:10px}
.bm5-client-mark strong{font-size:8px;line-height:1.1}

.bm5-heading h1{font-size:20px;line-height:1.03;margin:0;color:#111a20;font-weight:900;letter-spacing:-.25px}
.bm5-heading h2{font-size:11px;margin:3px 0 8px;text-transform:uppercase;color:#111a20;letter-spacing:.2px}
.bm5-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #cfd7dc;border-radius:7px;overflow:hidden}
.bm5-info-grid>div{display:flex;gap:5px;padding:6px 7px;min-height:34px;border-right:1px solid #dbe1e5;border-bottom:1px solid #dbe1e5;box-sizing:border-box}
.bm5-info-grid>div:nth-child(3n){border-right:0}
.bm5-info-grid>div:nth-last-child(-n+2){border-bottom:0}
.bm5-info-grid>div:nth-child(4){grid-column:1/3}
.bm5-info-grid>div:nth-child(5){grid-column:3/4;border-right:0}
.bm5-info-grid span{font-size:11px}
.bm5-info-grid p{padding:0!important;margin:0!important;font-size:7.2px!important;line-height:1.14!important}
.bm5-info-grid b,.bm5-info-grid strong{display:block}
.bm5-info-grid b{font-size:6.8px;color:#707b83;margin-bottom:2px}
.bm5-info-grid strong{font-size:7.4px;color:#111a20}
.bm5-updated{background:var(--bm5-dark);border-radius:7px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px}
.bm5-updated span{font-size:19px;margin-bottom:4px}
.bm5-updated small{font-size:7px;font-weight:700}
.bm5-updated strong{font-size:10px;color:var(--bm5-yellow);margin-top:3px}

.bm5-section{border:1px solid var(--bm5-line);border-radius:6px;overflow:hidden;background:#fff;min-width:0}
.bm5-titlebar{background:var(--bm5-dark);color:#fff;border-left:5px solid var(--bm5-yellow);padding:4px 7px;font-size:8.2px;font-weight:900;line-height:1.15;letter-spacing:.08px}
.bm5-summary>p{font-size:7.2px;line-height:1.25;margin:5px 7px!important}
.bm5-metrics{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border-top:1px solid var(--bm5-line)}
.bm5-metric{min-width:0;min-height:62px;padding:5px 4px;border-right:1px solid var(--bm5-line);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.bm5-metric:last-child{border-right:0}
.bm5-metric-icon{font-size:13px;line-height:1;margin-bottom:3px}
.bm5-metric-label{font-size:6.3px;line-height:1.08;font-weight:800;min-height:14px}
.bm5-metric-value{font-size:6.2px;line-height:1.12;margin-top:4px;color:#2c3840;overflow-wrap:anywhere}
.bm5-overall{justify-content:center}
.bm5-status-check{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#1ca64a;color:#fff;font-size:18px;font-weight:900;margin-bottom:2px}
.bm5-overall.warn .bm5-status-check{background:#c99300}
.bm5-overall.danger .bm5-status-check{background:#b63b3b}
.bm5-overall-value{font-size:7.2px;font-weight:900;color:#159142;margin-top:3px}
.bm5-overall.warn .bm5-overall-value{color:#9c7100}
.bm5-overall.danger .bm5-overall-value{color:#a73535}

.bm5-main-grid{
  display:grid;
  grid-template-columns:.94fr 1.18fr;
  grid-template-rows:minmax(132px,1.15fr) minmax(106px,.9fr);
  gap:7px;
  min-height:0;
  flex:1 1 auto;
}
.bm5-activities{grid-column:1;grid-row:1}
.bm5-doc-control{grid-column:2;grid-row:1}
.bm5-pending{grid-column:1;grid-row:2}
.bm5-next{grid-column:2;grid-row:2}
.bm5-activity-body{padding:5px 7px}
.bm5-check{display:flex;gap:5px;align-items:flex-start;font-size:6.8px;line-height:1.15;margin:2.5px 0}
.bm5-checkmark{color:#149947;font-weight:900}
.bm5-check span:last-child{min-width:0}
.bm5-check strong{font-size:6.7px}
.bm5-check small{display:block;color:#67737b;font-size:6.2px;line-height:1.12;margin-top:1px}
.bm5-subtitle{font-size:6.6px;font-weight:900;margin:5px 0 2px;border-top:1px solid #edf0f2;padding-top:4px}
.bm5-note{display:flex;gap:5px;background:#f5f7f8;border-radius:4px;padding:4px 5px;font-size:6.3px;color:#536069;margin-top:5px}
.bm5-empty{padding:7px;font-size:6.5px;color:#6a747b}

.bm5-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:6.1px!important;min-width:0!important}
.bm5-table th{background:var(--bm5-yellow)!important;color:#111!important;font-size:5.8px!important;text-transform:none!important;font-weight:900!important;padding:3.2px 4px!important;border-right:1px solid #d1c800!important;position:static!important}
.bm5-table td{font-size:6.05px!important;line-height:1.1!important;padding:3.1px 4px!important;border-bottom:1px solid #e4e8ea!important;vertical-align:top!important;position:static!important;overflow-wrap:anywhere}
.bm5-table tr:last-child td{border-bottom:0!important}
.bm5-table th:nth-child(1),.bm5-table td:nth-child(1){width:29%}
.bm5-table th:nth-child(2),.bm5-table td:nth-child(2){width:25%}
.bm5-table th:nth-child(3),.bm5-table td:nth-child(3){width:46%}
.bm5-pending-table th:nth-child(1),.bm5-pending-table td:nth-child(1){width:38%}
.bm5-pending-table th:nth-child(2),.bm5-pending-table td:nth-child(2){width:24%}
.bm5-pending-table th:nth-child(3),.bm5-pending-table td:nth-child(3){width:18%}
.bm5-pending-table th:nth-child(4),.bm5-pending-table td:nth-child(4){width:20%}
.bm5-orientation{display:flex;gap:5px;margin:4px 6px;padding-top:4px;border-top:1px solid #e7ebed}
.bm5-orientation>span{font-size:9px}
.bm5-orientation p{margin:0!important;font-size:5.8px!important;line-height:1.12!important;color:#536069}
.bm5-next-list{padding:4px 7px}
.bm5-next-row{display:grid;grid-template-columns:16px 61px 1fr;gap:4px;align-items:start;padding:4px 0;border-bottom:1px solid #e8ecee;font-size:6.4px;line-height:1.12}
.bm5-next-row:last-child{border-bottom:0}
.bm5-next-icon{font-size:8px}
.bm5-next-row b{color:#b48600}

.bm5-conclusion>p{font-size:6.5px;line-height:1.18;margin:5px 7px!important}
.bm5-footer{
  background:var(--bm5-dark);color:#fff;border-radius:6px;
  display:grid;grid-template-columns:1.6fr .9fr 1.25fr 1.08fr .85fr;
  align-items:center;min-height:38px;padding:4px 6px;box-sizing:border-box
}
.bm5-footer>div{min-width:0;padding:0 7px;border-right:1px solid #3a454c}
.bm5-footer>div:last-child{border-right:0}
.bm5-footer b,.bm5-footer span,.bm5-footer small{display:block}
.bm5-footer b{font-size:5.3px;color:var(--bm5-yellow);margin-bottom:2px}
.bm5-footer span,.bm5-footer small{font-size:5.5px;line-height:1.08;overflow-wrap:anywhere}
.bm5-footer-brand{display:flex!important;align-items:center;gap:6px}
.bm5-footer-brand img{width:25px;height:25px;object-fit:contain}
.bm5-footer-brand strong{font-size:7px}
.bm5-footer-brand small{color:#c9d0d4;margin-top:2px}
.bulletin-master-v5.printable{box-shadow:none;border:0;border-radius:0}

@media(max-width:1100px){
  .modal-card.modal-wide{padding:12px}
  .bulletin-master-v5{width:1180px;max-width:none;transform-origin:top left}
  .modal-wide{overflow:auto!important}
}
@media print{
  html,body{background:#fff!important}
  .bulletin-master-v5{break-inside:avoid;page-break-inside:avoid}
  .bm5-section,.bm5-table tr{break-inside:avoid}
}


/* V5.1 — refinamento fiel ao boletim institucional anterior */
.bulletin-master-v5{
  --bm5-doc-yellow:#f4b522;
  gap:8px;
}
.bm5-header{
  grid-template-columns:240px minmax(0,1fr) 170px;
  min-height:150px;
}
.bm5-brand-column{
  padding-right:14px;
  border-right:2px solid var(--bm5-doc-yellow);
}
.bm5-brand{align-items:flex-start;gap:10px}
.bm5-brand img{width:72px;height:72px}
.bm5-brand strong{font-size:18px;font-weight:500;line-height:1.02}
.bm5-brand strong em{font-style:normal;color:var(--bm5-doc-yellow);font-weight:500}
.bm5-brand small{font-size:7px;margin-top:12px;line-height:1.25}
.bm5-client-mark{
  border-top:0;
  padding-top:0;
  align-items:center;
  margin-bottom:4px;
}
.bm5-client-symbol{
  width:44px!important;height:44px!important;border:5px solid #727b83!important;
  border-radius:50%!important;font-size:18px!important;font-weight:900;color:#6f7880
}
.bm5-client-mark strong{font-size:12px;color:#6e777e;letter-spacing:-.4px}
.bm5-client-mark small{display:block;font-size:5.4px;color:#8a9399;margin-top:2px}

.bm5-heading h1{font-size:24px;margin-top:4px}
.bm5-heading h2{font-size:14px;margin:5px 0 10px}
.bm5-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));border-radius:8px}
.bm5-info-grid>div{min-height:48px;padding:8px 9px}
.bm5-info-grid>div:nth-child(4){grid-column:1/2}
.bm5-info-grid>div:nth-child(5){grid-column:2/3}
.bm5-info-grid>div:nth-child(3){grid-row:1/3;grid-column:3;align-items:flex-start}
.bm5-info-grid>div:nth-child(1),.bm5-info-grid>div:nth-child(2){border-bottom:1px solid #dbe1e5}
.bm5-info-grid span{font-size:16px}
.bm5-info-grid p{font-size:8.4px!important}
.bm5-info-grid b{font-size:7.2px}
.bm5-info-grid strong{font-size:8.6px;font-weight:500}
.bm5-updated{min-height:88px;align-self:start;margin-top:2px}
.bm5-updated span{font-size:20px}
.bm5-updated small{font-size:7.5px}
.bm5-updated strong{font-size:13px;color:var(--bm5-doc-yellow)}

.bm5-titlebar{
  border-left:0;
  background:#0b151c;
  color:var(--bm5-doc-yellow);
  padding:5px 9px;
  font-size:9.6px;
}
.bm5-summary{flex:0 0 auto}
.bm5-summary>p{display:none}
.bm5-metrics{min-height:132px}
.bm5-metric{min-height:132px;padding:12px 7px 8px;justify-content:flex-start}
.bm5-metric-icon{font-size:22px;margin-bottom:7px}
.bm5-metric-label{font-size:7.6px;min-height:25px}
.bm5-metric-value{font-size:8.2px;line-height:1.18;margin-top:18px}
.bm5-overall{justify-content:flex-start}
.bm5-overall .bm5-metric-label{margin-bottom:4px}
.bm5-status-check{width:54px;height:54px;font-size:34px;margin:8px auto 2px}
.bm5-overall-value{font-size:16px;margin-top:2px}

.bm5-main-grid{
  grid-template-columns:28% 36% 36%;
  grid-template-rows:235px 155px;
  gap:9px;
  flex:0 0 auto;
}
.bm5-activities{grid-column:1;grid-row:1}
.bm5-doc-control{grid-column:2;grid-row:1}
.bm5-pending{grid-column:3;grid-row:1}
.bm5-orientation-section{grid-column:1;grid-row:2}
.bm5-next{grid-column:2;grid-row:2}
.bm5-activity-body{padding:8px 10px}
.bm5-check{font-size:7.4px;line-height:1.18;margin:7px 0;padding-bottom:5px;border-bottom:1px solid #e5e9eb}
.bm5-check:last-of-type{border-bottom:0}
.bm5-checkmark{
  width:18px;height:18px;border-radius:50%;background:#1aa64a;color:#fff;
  display:grid;place-items:center;font-size:12px;flex:0 0 18px
}
.bm5-check strong{font-size:7.4px;font-weight:500}
.bm5-check small{font-size:6.3px}
.bm5-observation{
  display:flex;align-items:center;gap:7px;background:#fff4cf;border-radius:5px;
  padding:7px 8px;margin-top:8px;font-size:7px;color:#3e4448
}
.bm5-observation span{font-size:14px;color:#d89e00}

.bm5-table{font-size:6.8px!important;height:auto}
.bm5-table th{
  background:#ffd45a!important;
  font-size:6.2px!important;
  padding:5px 5px!important;
}
.bm5-table td{
  font-size:6.35px!important;
  line-height:1.15!important;
  padding:5px 5px!important;
}
.bm5-pending-table th:nth-child(1),.bm5-pending-table td:nth-child(1){width:42%}
.bm5-pending-table th:nth-child(2),.bm5-pending-table td:nth-child(2){width:23%}
.bm5-pending-table th:nth-child(3),.bm5-pending-table td:nth-child(3){width:17%}
.bm5-pending-table th:nth-child(4),.bm5-pending-table td:nth-child(4){width:18%}

.bm5-orientation{
  height:calc(100% - 27px);
  display:grid;
  grid-template-columns:64px 1fr;
  align-items:center;
  gap:12px;
  margin:0;
  padding:12px 14px;
  border-top:0;
  box-sizing:border-box;
}
.bm5-bulb{
  width:48px;height:48px;border:1.5px solid #111;border-radius:50%;
  display:grid;place-items:center;font-size:25px
}
.bm5-orientation p{
  font-size:7.2px!important;
  line-height:1.26!important;
  color:#20272b!important
}
.bm5-next-list{padding:7px 10px}
.bm5-next-row{
  grid-template-columns:18px 88px 1fr;
  padding:7px 0;
  font-size:7px;
  line-height:1.18
}
.bm5-next-row b{color:var(--bm5-doc-yellow)}

.bm5-conclusion{display:none}
.bm5-footer{
  margin-top:auto;
  min-height:50px;
  grid-template-columns:1.55fr .85fr 1.35fr 1.15fr .85fr;
  padding:5px 8px
}
.bm5-footer b{font-size:5.8px}
.bm5-footer span,.bm5-footer small{font-size:6.2px}
.bm5-footer-brand img{width:30px;height:30px}
.bm5-footer-brand strong{font-size:9px}
.bm5-footer-brand strong em{font-style:normal;color:var(--bm5-doc-yellow);font-weight:600}

/* =========================================================
   V5.1 · BOLETIM ADAPTATIVO
   Nunca ocultar conteúdo para manter artificialmente 1 página.
   O modelo visual permanece fixo; a altura cresce conforme os dados.
   ========================================================= */
.bulletin-master-v5{
  aspect-ratio:auto;
  height:auto;
  min-height:0;
  overflow:visible;
  display:flex;
  flex-direction:column;
}
.bm5-header{
  min-height:0;
  height:auto;
  flex:0 0 auto;
  align-items:stretch;
}
.bm5-brand-column{
  min-height:0;
  justify-content:flex-start;
  gap:18px;
}
.bm5-client-mark{
  min-height:48px;
  margin-top:auto;
  margin-bottom:0;
  flex:0 0 auto;
  overflow:visible;
}
.bm5-client-mark>div{min-width:0}
.bm5-client-mark strong,
.bm5-client-mark small{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
}
.bm5-client-symbol{flex:0 0 44px}
.bm5-info-grid,
.bm5-info-grid>div,
.bm5-metric,
.bm5-section,
.bm5-table,
.bm5-table th,
.bm5-table td,
.bm5-next-row,
.bm5-footer>div{
  overflow:visible;
}
.bm5-info-grid strong,
.bm5-metric-value,
.bm5-table th,
.bm5-table td,
.bm5-next-row span,
.bm5-footer span,
.bm5-footer small{
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
}
.bm5-main-grid{
  grid-template-columns:28% 36% 36%;
  grid-template-rows:auto auto;
  grid-auto-rows:auto;
  align-items:start;
  min-height:0;
  flex:0 0 auto;
}
.bm5-activities,.bm5-doc-control,.bm5-pending,.bm5-orientation-section,.bm5-next{
  min-height:0;
  height:auto;
  align-self:start;
}
.bm5-orientation{height:auto;min-height:118px}
.bm5-next{grid-column:2/4}
.bm5-footer{margin-top:8px;flex:0 0 auto}

@media print{
  .bulletin-master-v5{
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    aspect-ratio:auto!important;
    display:block!important;
  }
  .bm5-header,.bm5-summary,.bm5-main-grid,.bm5-footer{break-inside:auto;page-break-inside:auto}
  .bm5-section,.bm5-table tr,.bm5-metric{break-inside:avoid;page-break-inside:avoid}
  .bm5-footer{break-inside:avoid;page-break-inside:avoid}
}
.bm5-client-logo{
  display:block;
  width:100%;
  max-width:210px;
  max-height:58px;
  height:auto;
  object-fit:contain;
  object-position:left center;
  flex:0 1 auto;
}


/* =========================================================
   V5.3 · BOLETIM FIEL AO MODELO INSTITUCIONAL
   Reproduz as proporções do boletim antigo sem sobreposição.
   ========================================================= */
.modal-card.modal-wide{width:min(1240px,98vw);padding:14px;overflow:auto!important}
.bm5-preview-head{max-width:1120px}
.bulletin-master-v5{
  width:1120px!important;
  min-width:1120px!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  overflow:visible!important;
  padding:12px 16px 12px!important;
  gap:7px!important;
  border-radius:0!important;
  box-shadow:none!important;
  border:0!important;
}
.bm5-header{
  display:grid!important;
  grid-template-columns:205px 1fr 150px!important;
  gap:10px!important;
  min-height:135px!important;
  height:135px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
.bm5-brand-column{
  height:135px!important;
  min-height:135px!important;
  padding:0 10px 0 0!important;
  border-right:2px solid #f4b522!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:0!important;
  overflow:visible!important;
}
.bm5-brand{display:flex!important;align-items:flex-start!important;gap:8px!important;height:70px!important}
.bm5-brand img{width:58px!important;height:58px!important;object-fit:contain!important}
.bm5-brand strong{font-size:16px!important;line-height:1.02!important;font-weight:500!important;margin-top:2px!important}
.bm5-brand strong em{font-style:normal!important;color:#f4b522!important;font-weight:500!important}
.bm5-brand small{font-size:5.7px!important;line-height:1.15!important;margin-top:9px!important;color:#66727b!important}
.bm5-client-mark{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
}
.bm5-client-logo{
  width:auto!important;
  max-width:185px!important;
  height:38px!important;
  max-height:38px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
.bm5-heading{min-width:0!important;align-self:stretch!important;overflow:visible!important}
.bm5-heading h1{
  font-size:16px!important;
  line-height:1.02!important;
  margin:1px 0 2px!important;
  font-weight:900!important;
  letter-spacing:-.15px!important;
  white-space:nowrap!important;
}
.bm5-heading h2{font-size:10px!important;line-height:1!important;margin:3px 0 7px!important;font-weight:800!important}
.bm5-info-grid{
  height:86px!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:43px 43px!important;
  border:1px solid #cfd7dc!important;
  border-radius:6px!important;
  overflow:hidden!important;
}
.bm5-info-grid>div{
  min-height:43px!important;
  height:43px!important;
  padding:5px 6px!important;
  display:flex!important;
  gap:5px!important;
  align-items:flex-start!important;
  overflow:hidden!important;
  border-right:1px solid #dbe1e5!important;
  border-bottom:1px solid #dbe1e5!important;
}
.bm5-info-grid>div:nth-child(1){grid-column:1;grid-row:1}
.bm5-info-grid>div:nth-child(4){grid-column:2;grid-row:1}
.bm5-info-grid>div:nth-child(2){grid-column:3;grid-row:1;border-right:0!important}
.bm5-info-grid>div:nth-child(5){grid-column:1;grid-row:2;border-bottom:0!important}
.bm5-info-grid>div:nth-child(3){grid-column:2/4;grid-row:2;border-right:0!important;border-bottom:0!important}
.bm5-info-grid span{font-size:12px!important;line-height:1!important}
.bm5-info-grid p{font-size:6.2px!important;line-height:1.08!important;margin:0!important;padding:0!important}
.bm5-info-grid b{font-size:5.8px!important;margin-bottom:1px!important;color:#59666e!important}
.bm5-info-grid strong{font-size:6.4px!important;font-weight:600!important;line-height:1.08!important;overflow-wrap:anywhere!important}
.bm5-updated{
  width:150px!important;
  min-height:66px!important;
  height:66px!important;
  margin-top:1px!important;
  padding:6px!important;
  align-self:start!important;
  background:#0f171d!important;
  border-radius:7px!important;
  color:#fff!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}
.bm5-updated span{font-size:15px!important;margin-bottom:2px!important}
.bm5-updated small{font-size:5.7px!important;font-weight:700!important;color:#fff!important}
.bm5-updated strong{font-size:9px!important;color:#fdf001!important;margin-top:2px!important}

.bm5-titlebar{background:#0b151c!important;color:#f4b522!important;border-left:0!important;padding:4px 7px!important;font-size:7.6px!important;line-height:1.1!important}
.bm5-summary{margin:0!important;overflow:hidden!important}
.bm5-summary>p{display:block!important;font-size:5.8px!important;line-height:1.14!important;margin:4px 7px!important;color:#47545c!important}
.bm5-metrics{grid-template-columns:repeat(8,minmax(0,1fr))!important;min-height:88px!important;height:88px!important}
.bm5-metric{min-height:88px!important;height:88px!important;padding:6px 4px!important;box-sizing:border-box!important}
.bm5-metric-icon{font-size:14px!important;margin-bottom:3px!important}
.bm5-metric-label{font-size:5.8px!important;line-height:1.05!important;min-height:17px!important}
.bm5-metric-value{font-size:5.6px!important;line-height:1.08!important;margin-top:9px!important}
.bm5-status-check{width:34px!important;height:34px!important;font-size:22px!important;margin:4px auto 1px!important}
.bm5-overall-value{font-size:9px!important;margin-top:1px!important}

.bm5-main-grid{
  display:grid!important;
  grid-template-columns:28% 36% 36%!important;
  grid-template-rows:auto auto!important;
  gap:7px!important;
  align-items:stretch!important;
  min-height:0!important;
  flex:0 0 auto!important;
}
.bm5-activities{grid-column:1!important;grid-row:1/3!important}
.bm5-doc-control{grid-column:2!important;grid-row:1/3!important}
.bm5-pending{grid-column:3!important;grid-row:1!important}
.bm5-next{grid-column:3!important;grid-row:2!important}
.bm5-orientation-section{display:none!important}
.bm5-activity-body{padding:5px 7px!important}
.bm5-check{font-size:5.8px!important;line-height:1.1!important;margin:4px 0!important;padding-bottom:3px!important}
.bm5-checkmark{width:13px!important;height:13px!important;flex:0 0 13px!important;font-size:8px!important}
.bm5-check strong{font-size:5.8px!important;font-weight:500!important}
.bm5-check small{font-size:5.2px!important}
.bm5-observation{font-size:5.4px!important;padding:5px!important;margin-top:5px!important}
.bm5-observation span{font-size:10px!important}
.bm5-empty{font-size:5.6px!important;padding:6px!important}
.bm5-table{font-size:5.3px!important;table-layout:fixed!important}
.bm5-table th{font-size:5px!important;padding:3px 4px!important}
.bm5-table td{font-size:5.15px!important;line-height:1.08!important;padding:3px 4px!important}
.bm5-next-list{padding:4px 7px!important}
.bm5-next-row{grid-template-columns:12px 56px 1fr!important;gap:3px!important;padding:4px 0!important;font-size:5.5px!important;line-height:1.08!important}
.bm5-next-icon{font-size:6px!important}

.bm5-conclusion{display:block!important;flex:0 0 auto!important;margin-top:0!important}
.bm5-conclusion>p{font-size:5.5px!important;line-height:1.12!important;margin:4px 7px!important;color:#4d5960!important}
.bm5-footer{
  margin-top:0!important;
  min-height:34px!important;
  height:34px!important;
  grid-template-columns:1.55fr .85fr 1.35fr 1.15fr .85fr!important;
  padding:3px 5px!important;
}
.bm5-footer b{font-size:4.8px!important}
.bm5-footer span,.bm5-footer small{font-size:4.8px!important;line-height:1.05!important}
.bm5-footer-brand img{width:22px!important;height:22px!important}
.bm5-footer-brand strong{font-size:6px!important}

@media print{
  @page{size:A4 landscape;margin:5mm}
  .bulletin-master-v5{width:287mm!important;min-width:287mm!important;padding:3mm 4mm!important}
  .bm5-header{grid-template-columns:52mm 1fr 38mm!important;height:35mm!important;min-height:35mm!important}
  .bm5-brand-column{height:35mm!important;min-height:35mm!important}
  .bm5-client-logo{max-width:46mm!important;height:9mm!important;max-height:9mm!important}
  .bm5-heading h1{font-size:13.5pt!important}
  .bm5-info-grid{height:22mm!important;grid-template-rows:11mm 11mm!important}
  .bm5-info-grid>div{height:11mm!important;min-height:11mm!important}
  .bm5-updated{width:38mm!important;height:17mm!important;min-height:17mm!important}
  .bm5-summary,.bm5-main-grid,.bm5-conclusion,.bm5-footer{break-inside:avoid!important;page-break-inside:avoid!important}
}

/* =========================================================
   V5.4 · CABEÇALHO FIEL À REFERÊNCIA ANTIGA
   Corrige logo real do cliente e proporções do topo.
   ========================================================= */
.bulletin-master-v5{
  gap:6px;
  padding:14px 18px;
}
.bm5-header{
  grid-template-columns:205px minmax(0,1fr) 165px;
  gap:12px;
  min-height:118px;
  align-items:start;
}
.bm5-brand-column{
  justify-content:flex-start;
  gap:10px;
  padding-right:12px;
  min-height:118px;
}
.bm5-brand{gap:8px;align-items:flex-start}
.bm5-brand img{width:58px;height:58px}
.bm5-brand strong{font-size:15px;font-weight:500;line-height:1.02}
.bm5-brand strong em{color:#f2a400;font-style:normal;font-weight:500}
.bm5-brand small{font-size:5.9px;line-height:1.12;margin-top:5px;color:#4d5961}
.bm5-client-mark{
  border-top:0;
  padding-top:0;
  margin-top:2px;
  min-height:36px;
  display:flex;
  align-items:center;
  overflow:visible;
}
.bm5-client-logo{
  display:block;
  width:165px;
  height:44px;
  max-width:100%;
  object-fit:contain;
  object-position:left center;
}
.bm5-heading{min-width:0;padding-top:0}
.bm5-heading h1{
  font-size:16.6px;
  line-height:1.03;
  letter-spacing:-.15px;
  white-space:nowrap;
  margin:1px 0 0;
}
.bm5-heading h2{
  font-size:10.3px;
  line-height:1.05;
  margin:5px 0 8px;
  white-space:nowrap;
}
.bm5-info-grid{border-radius:6px}
.bm5-info-grid>div{min-height:30px;padding:4px 6px}
.bm5-info-grid span{font-size:10px}
.bm5-info-grid p{font-size:6.5px!important;line-height:1.1!important}
.bm5-info-grid b{font-size:5.9px;margin-bottom:1px}
.bm5-info-grid strong{font-size:6.6px}
.bm5-updated{
  align-self:start;
  height:62px;
  min-height:62px;
  padding:6px;
  box-sizing:border-box;
  border-radius:6px;
}
.bm5-updated span{font-size:14px;margin-bottom:2px}
.bm5-updated small{font-size:5.7px}
.bm5-updated strong{font-size:9.5px;margin-top:2px}
.bm5-summary{margin-top:0}
.bm5-titlebar{padding:3.5px 7px;font-size:7.6px}
.bm5-summary>p{font-size:6.2px;line-height:1.15;margin:4px 7px!important}
.bm5-metric{min-height:55px;padding:4px 3px}
.bm5-metric-icon{font-size:12px;margin-bottom:2px}
.bm5-metric-label{font-size:5.7px;min-height:13px}
.bm5-metric-value{font-size:5.7px;margin-top:3px}
.bm5-status-check{width:25px;height:25px;font-size:16px}
.bm5-overall-value{font-size:6.8px}
@media(max-width:1100px){
  .bulletin-master-v5{width:1180px;max-width:none}
}

/* V5.4 FINAL OVERRIDES — devem prevalecer sobre V5.3 */
.bulletin-master-v5{
  padding:14px 18px!important;
  gap:6px!important;
}
.bm5-header{
  grid-template-columns:205px minmax(0,1fr) 165px!important;
  gap:12px!important;
  min-height:118px!important;
  height:118px!important;
  align-items:start!important;
  overflow:visible!important;
}
.bm5-brand-column{
  justify-content:flex-start!important;
  gap:8px!important;
  padding-right:12px!important;
  min-height:118px!important;
  height:118px!important;
  overflow:visible!important;
}
.bm5-brand{gap:8px!important;align-items:flex-start!important;flex:0 0 auto!important}
.bm5-brand img{width:58px!important;height:58px!important;object-fit:contain!important}
.bm5-brand strong{font-size:15px!important;font-weight:500!important;line-height:1.02!important}
.bm5-brand strong em{color:#f2a400!important;font-style:normal!important;font-weight:500!important}
.bm5-brand small{font-size:5.9px!important;line-height:1.12!important;margin-top:5px!important;color:#4d5961!important}
.bm5-client-mark{
  border-top:0!important;
  padding:0!important;
  margin:3px 0 0!important;
  min-height:38px!important;
  height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
  flex:0 0 38px!important;
}
.bm5-client-logo{
  display:block!important;
  width:165px!important;
  max-width:165px!important;
  height:38px!important;
  max-height:38px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
}
.bm5-heading{min-width:0!important;padding-top:0!important;overflow:visible!important}
.bm5-heading h1{
  font-size:14.2px!important;
  line-height:1!important;
  letter-spacing:-.1px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  margin:2px 0 0!important;
}
.bm5-heading h2{
  font-size:10px!important;
  line-height:1!important;
  margin:5px 0 7px!important;
  white-space:nowrap!important;
}
.bm5-info-grid{
  height:74px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:37px 37px!important;
  border-radius:6px!important;
}
.bm5-info-grid>div{min-height:37px!important;height:37px!important;padding:4px 6px!important;overflow:hidden!important}
.bm5-info-grid span{font-size:10px!important}
.bm5-info-grid p{font-size:6px!important;line-height:1.05!important}
.bm5-info-grid b{font-size:5.6px!important;margin-bottom:1px!important}
.bm5-info-grid strong{font-size:6.2px!important;line-height:1.05!important}
.bm5-updated{
  width:150px!important;
  height:64px!important;
  min-height:64px!important;
  padding:6px!important;
  margin-top:1px!important;
  align-self:start!important;
}
.bm5-updated span{font-size:14px!important;margin-bottom:2px!important}
.bm5-updated small{font-size:5.6px!important}
.bm5-updated strong{font-size:9.4px!important;margin-top:2px!important}
.bm5-summary{margin-top:0!important;clear:both!important}
.bm5-titlebar{padding:3.5px 7px!important;font-size:7.5px!important}
.bm5-summary>p{font-size:5.8px!important;line-height:1.12!important;margin:3px 7px!important}
.bm5-metrics{min-height:78px!important;height:78px!important}
.bm5-metric{min-height:78px!important;height:78px!important;padding:5px 3px!important}
.bm5-metric-icon{font-size:13px!important;margin-bottom:3px!important}
.bm5-metric-label{font-size:5.6px!important;min-height:15px!important}
.bm5-metric-value{font-size:5.5px!important;margin-top:7px!important}
.bm5-status-check{width:31px!important;height:31px!important;font-size:20px!important;margin:3px auto 1px!important}
.bm5-overall-value{font-size:8.5px!important}
@media print{
  .bm5-header{grid-template-columns:52mm 1fr 38mm!important;height:30mm!important;min-height:30mm!important}
  .bm5-brand-column{height:30mm!important;min-height:30mm!important}
  .bm5-client-logo{width:42mm!important;max-width:42mm!important;height:9mm!important;max-height:9mm!important}
  .bm5-heading h1{font-size:11.2pt!important;white-space:nowrap!important}
  .bm5-info-grid{height:18.5mm!important;grid-template-rows:9.25mm 9.25mm!important}
  .bm5-info-grid>div{height:9.25mm!important;min-height:9.25mm!important}
  .bm5-updated{width:38mm!important;height:16mm!important;min-height:16mm!important}
}


/* =========================================================
   V6 - CABECALHO REFEITO DO ZERO
   Classes exclusivas bm6-* para impedir interferencia dos
   overrides acumulados das versoes V5.x.
   ========================================================= */
.bm6-header{
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr) 145px!important;
  column-gap:10px!important;
  align-items:start!important;
  min-height:112px!important;
  height:auto!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.bm6-brand-column{
  min-height:112px!important;
  height:auto!important;
  padding:0 10px 0 0!important;
  border-right:2px solid #f4b522!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.bm6-brand{
  display:flex!important;
  align-items:flex-start!important;
  gap:7px!important;
  min-width:0!important;
}
.bm6-brand>img{
  display:block!important;
  width:50px!important;
  height:50px!important;
  object-fit:contain!important;
  flex:0 0 50px!important;
}
.bm6-brand>div{min-width:0!important;padding-top:1px!important}
.bm6-brand strong{
  display:block!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.02!important;
  font-weight:500!important;
  color:#111820!important;
}
.bm6-brand strong em{font-style:normal!important;color:#f2a400!important;font-weight:500!important}
.bm6-brand small{
  display:block!important;
  margin-top:6px!important;
  font-size:5.2px!important;
  line-height:1.15!important;
  color:#4f5a61!important;
  white-space:nowrap!important;
}
.bm6-client-logo-wrap{
  width:100%!important;
  min-height:32px!important;
  height:32px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin-top:7px!important;
  overflow:visible!important;
}
.bm6-client-logo{
  display:block!important;
  width:auto!important;
  height:30px!important;
  max-width:165px!important;
  max-height:30px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
}
.bm6-client-fallback{display:flex!important;flex-direction:column!important;justify-content:center!important;height:30px!important}
.bm6-client-fallback strong{font-size:9px!important;color:#626d75!important;line-height:1!important}
.bm6-client-fallback small{font-size:5px!important;color:#7e888e!important;margin-top:2px!important}

.bm6-center{
  min-width:0!important;
  overflow:visible!important;
  padding:0!important;
}
.bm6-center h1{
  margin:1px 0 2px!important;
  padding:0!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.15px!important;
  white-space:nowrap!important;
  color:#07131b!important;
}
.bm6-center h2{
  margin:4px 0 7px!important;
  padding:0!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  color:#07131b!important;
}
.bm6-info-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr!important;
  grid-template-rows:minmax(32px,auto) minmax(32px,auto)!important;
  border:1px solid #cfd7dc!important;
  border-radius:6px!important;
  overflow:hidden!important;
  background:#fff!important;
  min-height:66px!important;
  height:auto!important;
}
.bm6-info-cell{
  display:flex!important;
  align-items:flex-start!important;
  gap:4px!important;
  min-width:0!important;
  min-height:32px!important;
  height:auto!important;
  padding:4px 6px!important;
  box-sizing:border-box!important;
  border-right:1px solid #dbe1e5!important;
  border-bottom:1px solid #dbe1e5!important;
  overflow:visible!important;
}
.bm6-info-cell:nth-child(3){border-right:0!important}
.bm6-info-cell:nth-child(4){border-bottom:0!important}
.bm6-info-span2{grid-column:2/4!important;border-right:0!important;border-bottom:0!important}
.bm6-info-cell>span{font-size:10px!important;line-height:1!important;flex:0 0 auto!important;margin-top:1px!important}
.bm6-info-cell p{margin:0!important;padding:0!important;min-width:0!important;font-size:5.5px!important;line-height:1.12!important;color:#253139!important}
.bm6-info-cell b{display:block!important;font-size:5.1px!important;line-height:1.05!important;color:#59666e!important;margin:0 0 1px!important;font-weight:700!important}
.bm6-info-cell strong{display:block!important;font-size:5.8px!important;line-height:1.1!important;font-weight:600!important;color:#111820!important;white-space:normal!important;overflow-wrap:anywhere!important}

.bm6-updated{
  width:145px!important;
  height:64px!important;
  min-height:64px!important;
  padding:6px!important;
  margin:0!important;
  border-radius:6px!important;
  background:#0d171e!important;
  color:#fff!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  box-sizing:border-box!important;
}
.bm6-updated>span{font-size:14px!important;line-height:1!important;margin:0 0 1px!important}
.bm6-updated small{font-size:5.2px!important;line-height:1!important;font-weight:700!important;color:#fff!important;margin:0!important}
.bm6-updated strong{font-size:9px!important;line-height:1!important;font-weight:900!important;color:#f4b522!important;margin-top:3px!important}

/* O resumo sempre comeca depois do header real; sem sobreposicao. */
.bm6-header + .bm5-summary{margin-top:4px!important;clear:both!important;position:relative!important;z-index:1!important}

@media print{
  .bm6-header{
    grid-template-columns:49mm minmax(0,1fr) 37mm!important;
    column-gap:2.5mm!important;
    min-height:29mm!important;
    height:auto!important;
  }
  .bm6-brand-column{min-height:29mm!important;padding-right:2.5mm!important}
  .bm6-brand>img{width:13mm!important;height:13mm!important;flex-basis:13mm!important}
  .bm6-brand strong{font-size:10.5pt!important}
  .bm6-brand small{font-size:3.8pt!important;margin-top:1.3mm!important}
  .bm6-client-logo-wrap{height:8mm!important;min-height:8mm!important;margin-top:1.2mm!important}
  .bm6-client-logo{height:7mm!important;max-height:7mm!important;max-width:42mm!important}
  .bm6-center h1{font-size:9.8pt!important;letter-spacing:-.1pt!important}
  .bm6-center h2{font-size:6.8pt!important;margin:1.2mm 0 1.5mm!important}
  .bm6-info-grid{grid-template-rows:minmax(8.1mm,auto) minmax(8.1mm,auto)!important;min-height:16.4mm!important}
  .bm6-info-cell{min-height:8.1mm!important;padding:1mm 1.5mm!important}
  .bm6-info-cell>span{font-size:7.2pt!important}
  .bm6-info-cell p{font-size:3.9pt!important}
  .bm6-info-cell b{font-size:3.6pt!important}
  .bm6-info-cell strong{font-size:4.1pt!important}
  .bm6-updated{width:37mm!important;height:16mm!important;min-height:16mm!important;padding:1.5mm!important}
  .bm6-updated>span{font-size:10pt!important}
  .bm6-updated small{font-size:3.7pt!important}
  .bm6-updated strong{font-size:6.8pt!important;margin-top:.8mm!important}
}

/* =========================================================
   V6.1 - BOLETIM INTEIRO RECONSTRUIDO NO PADRAO ANTIGO
   Classes bm61-* exclusivas: cabecalho, resumo, corpo e rodape.
   ========================================================= */
.bulletin-master-v61{
  --b61-dark:#08131a;
  --b61-yellow:#f2b300;
  --b61-line:#cfd6da;
  --b61-green:#119837;
  width:min(1180px,100%);
  max-width:1180px;
  margin:12px auto;
  padding:8px;
  background:#fff;
  color:#111820;
  box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
  border-radius:6px;
  overflow:visible;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}
.bulletin-master-v61 *{box-sizing:border-box;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.bm61-header{display:grid;grid-template-columns:210px minmax(0,1fr) 150px;gap:12px;align-items:start;min-height:124px;margin-bottom:8px}
.bm61-brand-column{height:124px;padding-right:10px;border-right:2px solid var(--b61-yellow);display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}
.bm61-brand{display:flex;gap:9px;align-items:flex-start}
.bm61-brand>img{width:58px;height:58px;object-fit:contain;flex:0 0 58px}
.bm61-brand strong{display:block;font-size:17px;line-height:1.02;font-weight:500;color:#111820;margin:0}
.bm61-brand strong em{font-style:normal;color:#f2a400;font-weight:500}
.bm61-brand small{display:block;margin-top:7px;font-size:6px;line-height:1.18;color:#4b565d;white-space:nowrap}
.bm61-client-logo-wrap{height:38px;display:flex;align-items:center;justify-content:flex-start;width:100%;overflow:visible}
.bm61-client-logo{display:block;width:auto;height:36px;max-width:194px;max-height:36px;object-fit:contain;object-position:left center}
.bm61-client-fallback{height:34px;display:flex;flex-direction:column;justify-content:center}.bm61-client-fallback strong{font-size:10px;color:#5f6970}.bm61-client-fallback small{font-size:6px;color:#7c868c;margin-top:2px}
.bm61-center{min-width:0;padding-top:1px}
.bm61-center h1{margin:0 0 5px;font-size:17px;line-height:1;font-weight:900;letter-spacing:-.25px;white-space:nowrap;color:#08131a}
.bm61-center h2{margin:0 0 10px;font-size:11px;line-height:1;font-weight:900;white-space:nowrap;color:#08131a}
.bm61-info-grid{display:grid;grid-template-columns:1fr 1fr .95fr;grid-template-rows:43px 43px;border:1px solid #c9d1d5;border-radius:7px;overflow:hidden;background:#fff}
.bm61-info-cell{display:flex;gap:7px;align-items:flex-start;padding:7px 9px;min-width:0;border-right:1px solid #d6dde1;border-bottom:1px solid #d6dde1}
.bm61-info-cell>span{font-size:15px;line-height:1;flex:0 0 auto;margin-top:1px}.bm61-info-cell p{margin:0;min-width:0;font-size:7px;line-height:1.08;color:#253039}.bm61-info-cell b{display:block;font-size:6.5px;line-height:1;color:#47545c;margin-bottom:3px}.bm61-info-cell strong{display:block;font-size:7.3px;line-height:1.08;color:#111820;font-weight:600;overflow-wrap:anywhere}
.bm61-client{grid-column:1;grid-row:1}.bm61-contract{grid-column:1;grid-row:2;border-bottom:0}.bm61-month{grid-column:2;grid-row:1}.bm61-period{grid-column:2;grid-row:2;border-bottom:0}.bm61-responsible{grid-column:3;grid-row:1/3;border-right:0;border-bottom:0;padding-top:12px}
.bm61-updated{width:150px;height:78px;border-radius:7px;background:var(--b61-dark);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:0;padding:8px}
.bm61-updated>span{font-size:19px;line-height:1;margin-bottom:3px}.bm61-updated small{font-size:6px;line-height:1;font-weight:700;color:#fff}.bm61-updated strong{font-size:11px;line-height:1;font-weight:900;color:var(--b61-yellow);margin-top:5px}
.bm61-section{border:1px solid var(--b61-line);border-radius:5px;overflow:hidden;background:#fff;min-width:0}
.bm61-titlebar{background:var(--b61-dark);color:var(--b61-yellow);padding:5px 9px;font-size:8.6px;font-weight:900;line-height:1.05;letter-spacing:.05px}
.bm61-summary{margin-bottom:8px}
.bm61-metrics{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));min-height:116px}
.bm61-metric{min-width:0;min-height:116px;padding:7px 5px;border-right:1px solid var(--b61-line);display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:flex-start}
.bm61-metric:last-child{border-right:0}.bm61-metric-icon{font-size:18px;line-height:1;margin:1px 0 7px}.bm61-metric-label{font-size:6.8px;line-height:1.05;font-weight:900;min-height:24px;display:flex;align-items:flex-start;justify-content:center}.bm61-metric-value{font-size:7px;line-height:1.12;margin-top:17px;max-width:110px}.bm61-overall{justify-content:flex-start}.bm61-status-check{width:48px;height:48px;border-radius:50%;background:var(--b61-green);color:#fff;font-size:32px;line-height:48px;font-weight:900;margin:8px auto 4px}.bm61-overall-value{font-size:12px;line-height:1;font-weight:900;color:var(--b61-green);margin-top:2px}.bm61-overall.warning .bm61-status-check{background:#d89a00}.bm61-overall.warning .bm61-overall-value{color:#b77f00}
.bm61-main-grid{display:grid;grid-template-columns:30% 36% 34%;grid-template-rows:auto auto;gap:8px;align-items:stretch}
.bm61-activities{grid-column:1;grid-row:1;min-height:248px}.bm61-doc-control{grid-column:2;grid-row:1;min-height:248px}.bm61-pending{grid-column:3;grid-row:1;min-height:248px}.bm61-orientation{grid-column:1;grid-row:2;min-height:145px}.bm61-next{grid-column:2;grid-row:2;min-height:145px}.bm61-activity-body{padding:6px 9px 5px}.bm61-check{display:flex;gap:7px;align-items:flex-start;padding:5px 0;border-bottom:1px solid #e4e8ea;font-size:6.6px;line-height:1.12}.bm61-check:last-of-type{border-bottom:0}.bm61-checkmark{width:17px;height:17px;line-height:17px;border-radius:50%;background:var(--b61-green);color:#fff;text-align:center;font-size:11px;font-weight:900;flex:0 0 17px}.bm61-check strong{font-weight:500}.bm61-check small{display:block;font-size:5.8px;color:#68737a;margin-top:2px}.bm61-observation{display:flex;gap:7px;align-items:center;padding:5px 7px;margin-top:4px;border-radius:4px;background:#fff4cf;color:#3f3a2f;font-size:6.5px;line-height:1.1}.bm61-observation span{font-size:12px;color:#e1a900}.bm61-empty{padding:12px 9px;color:#6d777d;font-size:6.7px}
.bm61-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:6.1px}.bm61-table th{background:#ffd65a;color:#111;font-size:5.8px;font-weight:900;padding:5px 4px;border-right:1px solid #e0b93a;text-align:center}.bm61-table td{font-size:5.9px;line-height:1.08;padding:5px 5px;border-bottom:1px solid #e4e8ea;border-right:1px solid #e4e8ea;vertical-align:top;overflow-wrap:anywhere}.bm61-table th:last-child,.bm61-table td:last-child{border-right:0}.bm61-table tr:last-child td{border-bottom:0}.bm61-table th:nth-child(1),.bm61-table td:nth-child(1){width:29%}.bm61-table th:nth-child(2),.bm61-table td:nth-child(2){width:25%}.bm61-table th:nth-child(3),.bm61-table td:nth-child(3){width:46%}.bm61-pending-table th:nth-child(1),.bm61-pending-table td:nth-child(1){width:42%}.bm61-pending-table th:nth-child(2),.bm61-pending-table td:nth-child(2){width:22%}.bm61-pending-table th:nth-child(3),.bm61-pending-table td:nth-child(3){width:17%}.bm61-pending-table th:nth-child(4),.bm61-pending-table td:nth-child(4){width:19%}
.bm61-orientation-body{display:grid;grid-template-columns:68px 1fr;gap:12px;align-items:center;padding:18px 15px 14px}.bm61-bulb{width:52px;height:52px;border:1.5px solid #111;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px}.bm61-orientation-body p{margin:0;font-size:6.8px;line-height:1.2;color:#26323a}
.bm61-next-list{padding:7px 10px}.bm61-next-row{display:grid;grid-template-columns:15px 78px 1fr;gap:6px;align-items:start;padding:7px 0;border-bottom:1px solid #e4e8ea;font-size:6.6px;line-height:1.1}.bm61-next-row:last-child{border-bottom:0}.bm61-next-icon{font-size:8px}.bm61-next-row b{color:#e0a600}
.bm61-footer{margin-top:28px;min-height:46px;background:var(--b61-dark);color:#fff;border-radius:4px;display:grid;grid-template-columns:250px 155px 245px 235px 1fr;align-items:center;padding:0 10px;overflow:hidden}.bm61-footer>div{min-width:0;padding:0 12px;border-right:1px solid #465159}.bm61-footer>div:last-child{border-right:0}.bm61-footer b,.bm61-footer span,.bm61-footer small{display:block}.bm61-footer b{font-size:5.6px;color:var(--b61-yellow);margin-bottom:2px}.bm61-footer span,.bm61-footer small{font-size:5.8px;line-height:1.08;overflow-wrap:anywhere}.bm61-footer-brand{display:flex!important;align-items:center;gap:8px}.bm61-footer-brand img{width:30px;height:30px;object-fit:contain}.bm61-footer-brand strong{font-size:8px}.bm61-footer-brand strong em{font-style:normal;color:var(--b61-yellow)}.bm61-footer-brand small{color:#c8d0d4;margin-top:2px}

@media print{
  .bulletin-master-v61{width:287mm!important;min-width:287mm!important;max-width:287mm!important;margin:0 auto!important;padding:3mm 4mm!important;border:0!important;border-radius:0!important;background:#fff!important}
  .bm61-header{grid-template-columns:55mm minmax(0,1fr) 40mm!important;gap:2.5mm!important;min-height:31mm!important;margin-bottom:2mm!important}
  .bm61-brand-column{height:31mm!important;padding-right:2.5mm!important}
  .bm61-brand{gap:2mm!important}.bm61-brand>img{width:15mm!important;height:15mm!important;flex-basis:15mm!important}.bm61-brand strong{font-size:11.4pt!important}.bm61-brand small{font-size:4.1pt!important;margin-top:1.6mm!important}.bm61-client-logo-wrap{height:9.5mm!important}.bm61-client-logo{height:9mm!important;max-height:9mm!important;max-width:51mm!important}
  .bm61-center h1{font-size:11.5pt!important;margin:0 0 1.2mm!important}.bm61-center h2{font-size:7.8pt!important;margin:0 0 2mm!important}.bm61-info-grid{grid-template-rows:10mm 10mm!important}.bm61-info-cell{padding:1.5mm 2mm!important;gap:1.5mm!important}.bm61-info-cell>span{font-size:8pt!important}.bm61-info-cell p{font-size:4pt!important}.bm61-info-cell b{font-size:3.8pt!important;margin-bottom:.7mm!important}.bm61-info-cell strong{font-size:4.3pt!important}.bm61-responsible{padding-top:3mm!important}.bm61-updated{width:40mm!important;height:18mm!important;padding:2mm!important}.bm61-updated>span{font-size:12pt!important}.bm61-updated small{font-size:4pt!important}.bm61-updated strong{font-size:7.5pt!important;margin-top:1mm!important}
  .bm61-titlebar{padding:1.2mm 2mm!important;font-size:5.9pt!important}.bm61-summary{margin-bottom:2mm!important}.bm61-metrics{min-height:29mm!important}.bm61-metric{min-height:29mm!important;padding:1.7mm 1mm!important}.bm61-metric-icon{font-size:12pt!important;margin:0 0 1.5mm!important}.bm61-metric-label{font-size:4.5pt!important;min-height:6mm!important}.bm61-metric-value{font-size:4.6pt!important;margin-top:3.8mm!important}.bm61-status-check{width:12.5mm!important;height:12.5mm!important;line-height:12.5mm!important;font-size:21pt!important;margin:1.7mm auto .7mm!important}.bm61-overall-value{font-size:8.2pt!important}
  .bm61-main-grid{gap:2mm!important;grid-template-columns:30% 36% 34%!important}.bm61-activities,.bm61-doc-control,.bm61-pending{min-height:61mm!important}.bm61-orientation,.bm61-next{min-height:34mm!important}.bm61-activity-body{padding:1.5mm 2mm 1.2mm!important}.bm61-check{gap:1.5mm!important;padding:1.3mm 0!important;font-size:4.4pt!important}.bm61-checkmark{width:4.5mm!important;height:4.5mm!important;line-height:4.5mm!important;font-size:7.5pt!important;flex-basis:4.5mm!important}.bm61-check small{font-size:3.8pt!important}.bm61-observation{gap:1.5mm!important;padding:1.2mm 1.5mm!important;margin-top:1mm!important;font-size:4.2pt!important}.bm61-observation span{font-size:7.5pt!important}.bm61-table th{font-size:3.8pt!important;padding:1.1mm .9mm!important}.bm61-table td{font-size:3.8pt!important;line-height:1.05!important;padding:1.1mm 1mm!important}.bm61-orientation-body{grid-template-columns:14mm 1fr!important;gap:3mm!important;padding:4.5mm 4mm 3.5mm!important}.bm61-bulb{width:12mm!important;height:12mm!important;font-size:12pt!important}.bm61-orientation-body p{font-size:4.3pt!important;line-height:1.16!important}.bm61-next-list{padding:1.5mm 2.5mm!important}.bm61-next-row{grid-template-columns:4mm 20mm 1fr!important;gap:1.3mm!important;padding:1.6mm 0!important;font-size:4.2pt!important}.bm61-next-icon{font-size:5.2pt!important}.bm61-footer{margin-top:7mm!important;min-height:11mm!important;grid-template-columns:55mm 39mm 65mm 62mm 1fr!important;padding:0 2mm!important}.bm61-footer>div{padding:0 2.5mm!important}.bm61-footer b{font-size:3.7pt!important}.bm61-footer span,.bm61-footer small{font-size:3.8pt!important}.bm61-footer-brand{gap:1.7mm!important}.bm61-footer-brand img{width:7.5mm!important;height:7.5mm!important}.bm61-footer-brand strong{font-size:5.5pt!important}
}


/* ===== Sistema Eugênio V6.4 — A4 sem sobreposição ===== */
.bulletin-master-v64{--b64-dark:#09141b;--b64-yellow:#f2b300;--b64-line:#cfd7dc;--b64-green:#17a444;box-sizing:border-box;width:287mm;max-width:100%;min-height:200mm;margin:0 auto;padding:0;background:#fff;color:#101820;font-family:Arial,Helvetica,sans-serif;display:flex;flex-direction:column;gap:2mm}
.bulletin-master-v64 *{box-sizing:border-box;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.bm64-header{height:31mm;display:grid;grid-template-columns:49mm minmax(0,1fr) 39mm;gap:3mm;align-items:stretch}
.bm64-brandcol{border-right:.55mm solid var(--b64-yellow);padding-right:3mm;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.bm64-brand{display:flex;gap:2mm;align-items:flex-start}.bm64-brand img{width:13mm;height:13mm;object-fit:contain}.bm64-brandname{font-size:10pt;line-height:1.02;font-weight:500;padding-top:.5mm}.bm64-brandname em{font-style:normal;color:#f2a400}.bm64-tag{font-size:3.7pt;line-height:1.15;color:#4e5a61;margin-top:1mm}.bm64-clientlogo{height:8mm;display:flex;align-items:center}.bm64-clientlogo img{max-width:42mm;max-height:7mm;object-fit:contain;object-position:left center}.bm64-clientfallback{font-size:5pt;font-weight:800;line-height:1.05;color:#5a646b}
.bm64-center h1{font-size:10.2pt;line-height:1;margin:.5mm 0 1.1mm;font-weight:900;white-space:nowrap;letter-spacing:-.1pt}.bm64-center h2{font-size:7.2pt;line-height:1;margin:0 0 1.8mm;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bm64-info{height:19.3mm;border:.3mm solid #ccd5da;border-radius:1.5mm;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr .9fr;grid-template-rows:1fr 1fr}.bm64-icell{display:flex;gap:1.4mm;padding:1.3mm 1.8mm;border-right:.2mm solid #d9e0e4;border-bottom:.2mm solid #d9e0e4;min-width:0;align-items:flex-start}.bm64-icell:nth-child(3){border-right:0;grid-row:1/3;grid-column:3;padding-top:3mm}.bm64-icell:nth-child(4),.bm64-icell:nth-child(5){border-bottom:0}.bm64-icell:nth-child(5){border-right:0}.bm64-ico{font-size:7pt;line-height:1}.bm64-itxt b{display:block;font-size:3.5pt;color:#55626a;line-height:1;margin-bottom:.6mm}.bm64-itxt strong{display:block;font-size:4.2pt;line-height:1.08;font-weight:600;overflow-wrap:anywhere}
.bm64-updated{height:18mm;background:var(--b64-dark);border-radius:1.5mm;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.bm64-cal{font-size:11pt;line-height:1;margin-bottom:1mm}.bm64-updated small{font-size:3.5pt;font-weight:700}.bm64-updated strong{font-size:7.2pt;color:var(--b64-yellow);margin-top:1mm}
.bm64-section{border:.25mm solid var(--b64-line);border-radius:1.4mm;overflow:hidden;background:#fff;min-width:0}.bm64-titlebar{height:5.4mm;background:var(--b64-dark);color:var(--b64-yellow);font-size:5.8pt;font-weight:900;display:flex;align-items:center;padding:0 2mm}.bm64-summary{height:36mm;flex:0 0 36mm}.bm64-summarytext{height:6mm;padding:1mm 1.6mm;font-size:3.7pt;line-height:1.15;border-bottom:.2mm solid #dbe1e5;overflow:hidden}.bm64-metrics{height:24.6mm;display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) 1.18fr}.bm64-metric{border-right:.2mm solid #d8e0e4;padding:1.5mm .8mm .8mm;text-align:center;display:flex;flex-direction:column;align-items:center;min-width:0}.bm64-metric:last-child{border-right:0}.bm64-micon{font-size:10.5pt;line-height:1;margin-bottom:1.3mm}.bm64-mlabel{font-size:4.1pt;line-height:1.05;font-weight:800;min-height:5.3mm;display:flex;align-items:flex-start;justify-content:center}.bm64-mvalue{font-size:4.15pt;line-height:1.1;margin-top:auto;margin-bottom:1mm;overflow-wrap:anywhere}.bm64-checkbig{width:11mm;height:11mm;border-radius:50%;background:var(--b64-green);color:#fff;font-size:18pt;line-height:11mm;font-weight:900;margin:.7mm auto .8mm}.bm64-regular{font-size:7.5pt;font-weight:900;color:#0b9c37}.bm64-overall.warning .bm64-checkbig{background:#d89a00}.bm64-overall.warning .bm64-regular{color:#b77f00}
.bm64-main{flex:1;display:grid;grid-template-columns:30% 36% 34%;gap:2mm;align-items:start;min-height:0}.bm64-col{display:flex;flex-direction:column;gap:2mm;min-width:0}.bm64-activitybody{padding:1.5mm 2mm}.bm64-activity{display:flex;gap:1.5mm;padding:1.2mm 0;border-bottom:.2mm solid #e1e6e9;font-size:4.6pt;line-height:1.1}.bm64-activity:last-of-type{border-bottom:0}.bm64-tick{width:4.2mm;height:4.2mm;border-radius:50%;background:#18a548;color:#fff;flex:0 0 4.2mm;text-align:center;line-height:4.2mm;font-size:7pt;font-weight:900}.bm64-activity small{display:block;font-size:3.8pt;color:#68737a;margin-top:.7mm}.bm64-note{display:flex;gap:1.5mm;background:#fff4cf;padding:1.2mm 1.5mm;border-radius:1mm;margin-top:1.2mm;font-size:4.1pt;line-height:1.12}.bm64-empty{padding:2mm;font-size:4.2pt;color:#66727a}
.bm64-table{width:100%;border-collapse:collapse;table-layout:fixed}.bm64-table th{background:#ffd65a;font-size:3.9pt;line-height:1.05;padding:1.1mm .8mm;text-align:center;border-right:.2mm solid #e0b93a}.bm64-table td{font-size:4pt;line-height:1.08;padding:1.05mm .9mm;border-right:.2mm solid #e2e7e9;border-bottom:.2mm solid #e2e7e9;vertical-align:top;overflow-wrap:anywhere}.bm64-table th:last-child,.bm64-table td:last-child{border-right:0}.bm64-table tr:last-child td{border-bottom:0}.bm64-docs th:nth-child(1),.bm64-docs td:nth-child(1){width:29%}.bm64-docs th:nth-child(2),.bm64-docs td:nth-child(2){width:25%}.bm64-docs th:nth-child(3),.bm64-docs td:nth-child(3){width:46%}.bm64-pending th:nth-child(1),.bm64-pending td:nth-child(1){width:42%}.bm64-pending th:nth-child(2),.bm64-pending td:nth-child(2){width:22%}.bm64-pending th:nth-child(3),.bm64-pending td:nth-child(3){width:17%}.bm64-pending th:nth-child(4),.bm64-pending td:nth-child(4){width:19%}
.bm64-orientationbody{display:grid;grid-template-columns:12mm 1fr;gap:2.5mm;align-items:center;padding:3mm 3.2mm}.bm64-bulb{width:10mm;height:10mm;border:.35mm solid #1b2227;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10pt}.bm64-orientationbody p{font-size:4.5pt;line-height:1.18;margin:0}.bm64-nextlist{padding:1mm 2mm}.bm64-nextrow{display:grid;grid-template-columns:4mm 20mm 1fr;gap:1.2mm;align-items:start;padding:1.45mm 0;border-bottom:.2mm solid #e2e7e9;font-size:4.3pt;line-height:1.08}.bm64-nextrow:last-child{border-bottom:0}.bm64-nextrow b{color:#dca300}
.bm64-footer{height:10.5mm;flex:0 0 10.5mm;background:var(--b64-dark);color:#fff;border-radius:1.1mm;display:grid;grid-template-columns:55mm 39mm 65mm 62mm 1fr;align-items:center;padding:0 2mm;overflow:hidden}.bm64-footer>div{padding:0 2.5mm;border-right:.2mm solid #455159;min-width:0}.bm64-footer>div:last-child{border-right:0}.bm64-footer b{display:block;color:var(--b64-yellow);font-size:3.5pt;margin-bottom:.5mm}.bm64-footer span,.bm64-footer small{display:block;font-size:3.6pt;line-height:1.08}.bm64-fbrand{display:flex!important;align-items:center;gap:1.5mm}.bm64-fbrand img{width:7mm;height:7mm;object-fit:contain}.bm64-fbrand strong{font-size:5.2pt}.bm64-fbrand em{font-style:normal;color:var(--b64-yellow)}
@media print{.bulletin-master-v64{width:287mm!important;max-width:none!important;margin:0!important}.bm64-section,.bm64-table tr,.bm64-footer{break-inside:avoid!important;page-break-inside:avoid!important}}
