/* GERADO por tools/build_styles.py. Edite styles/sources; consulte styles/README.md. */
/* fonte: integrations/mtr.css */
.mtr-modal { width: min(1280px, 95vw); border: 1px solid #d7e4dd; border-radius: 18px; box-shadow: 0 24px 80px #193b3440; }
.mtr-modal::backdrop { background: #15392a70; }
.mtr-heading { --ui-modern-line: #dce7e1; }
.mtr-heading h2,.mtr-heading h3,.mtr-heading p { margin: 4px 0; }
.mtr-body { padding: 22px 26px; }
.mtr-toolbar { --ui-filter-gap: 12px; }
.mtr-modal label,#mtrIntegrationPane label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.mtr-modal input,.mtr-modal select,.mtr-modal textarea,#mtrIntegrationPane input,#mtrIntegrationPane select { font: inherit; padding: 9px 12px; border: 1px solid #cbdad1; border-radius: 8px; background: white; color: #203b2e; min-width: 0; }
.mtr-modal textarea { width: 100%; box-sizing: border-box; }
.mtr-modal button { cursor: pointer; }
.mtr-modal button:disabled { cursor: wait; opacity: .55; }
.mtr-table-wrap { border: 1px solid #dce7e1; border-radius: 10px; background: white; }
.mtr-modal table { min-width: 850px; font-size: 14px; }
.mtr-modal th,.mtr-modal td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid #e7eee9; }
.mtr-modal th { background: #edf4f0; color: #426453; font-size: 12px; }
.mtr-modal small { display: block; margin-top: 5px; color: #64776c; }
.mtr-modal td:last-child { min-width: 130px; }
.mtr-pdf { display: inline-block; color: #136541; font-weight: 600; padding: 10px 4px; }
.mtr-warning,.mtr-modal small.mtr-warning { color: #9a4e16; }
.mtr-notice:not(:empty) { padding: 12px 15px; border-radius: 8px; background: #e4f3e9; }
.mtr-notice.is-error { background: #fff1e3; color: #824019; }
.mtr-pending { margin-top: 20px; padding: 16px; background: white; border: 1px solid #dce7e1; border-radius: 10px; }
.mtr-pending summary { cursor: pointer; font-weight: 650; }
.mtr-pdf-preview-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid #dce7e1; overflow-wrap: anywhere; }
#mtrPdfImport { min-width: 0; margin: 12px 0; }
#mtrPdfFiles { width: 100%; box-sizing: border-box; }
#mtrPdfRows .mtr-choice { padding: 0; margin: 0; border: 0; }
@media (max-width: 800px) { .mtr-pdf-preview-row { grid-template-columns: 1fr; } }
.mtr-choice-list { max-height: 340px; overflow: auto; background: white; padding: 12px; border-radius: 10px; margin: 15px 0; }
.mtr-modal label.mtr-choice { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid #e7eee9; font-weight: normal; }
.mtr-choice input,#mtrIntegrationPane input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; }
.mtr-suggestion { padding: 16px; margin: 12px 0; border: 1px solid #bfdacb; border-radius: 10px; background: #edf7f0; }
.mtr-suggestion p { margin: 10px 0; }
.mtr-suggestion.is-warning { border-color: #e6c9a9; background: #fff4e8; }
.mtr-weight-summary { padding: 14px; border-radius: 8px; background: #e5efe9; font-weight: 600; }
#mtrLinkForm details { margin: 14px 0; }
#mtrLinkForm summary { cursor: pointer; }
.mtr-rule { display: grid; grid-template-columns: 2fr 2fr 1.2fr auto; gap: 12px; align-items: end; padding: 14px 0; border-bottom: 1px solid #dce7e1; }
#mtrIntegrationPane .nfse-integration-switch { display: flex; align-items: center; gap: 10px; }
#mtrIntegrationPane h4 { margin: 25px 0 10px; }
@media(max-width: 800px) { .mtr-body,.mtr-heading { padding: 16px; } .mtr-rule { grid-template-columns: 1fr; } .mtr-toolbar label { flex: 1 1 150px; } .mtr-heading { align-items: start; } }

[data-mtr-pending-id]:focus { outline:3px solid #16834b; outline-offset:-3px; background:#edf7ef; }

.mtr-tracking-tabs, .mtr-tracking-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.mtr-tracking-actions { justify-content: space-between; }
.mtr-tracking-tabs [aria-pressed="true"] { color: var(--brand-mid); background: var(--surface-alt); border-color: var(--brand-mid); }
#mtrPending input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; }
#mtrPending td:last-child { color: var(--muted); }

/* The alerted document stays in its category queue alongside other suppliers. */
.biomass-email-item.is-alert-highlight, .expenses-email-item.is-alert-highlight {
  border: 2px solid #16834b; background: #edf7ef;
}
#mtrChoices .mtr-choice:has(input:disabled) { opacity: .65; }

.mtr-modal table {width:100%;min-width:0;table-layout:fixed;}
.mtr-modal td,.mtr-modal th {white-space:normal;overflow-wrap:anywhere;padding:10px 8px;}
.mtr-modal td:last-child {min-width:0;}
.mtr-modal td:last-child button {max-width:100%;white-space:normal;}
.mtr-document-table th:nth-child(1) {width:13%;}.mtr-document-table th:nth-child(2) {width:24%;}.mtr-document-table th:nth-child(3) {width:14%;}.mtr-document-table th:nth-child(4) {width:18%;}.mtr-document-table th:nth-child(5) {width:16%;}.mtr-document-table th:nth-child(6) {width:15%;}
.mtr-pdf-nav {display:flex;gap:12px;align-items:center;justify-content:space-between;margin:16px 0;}
.mtr-pdf-workspace {display:grid;grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);gap:24px;align-items:start;}
.mtr-pdf-workspace>aside {background:#f4f8f6;border:1px solid #dce7e1;border-radius:10px;padding:16px;}
.mtr-pdf-workspace h3 {margin:0 0 12px;}.mtr-pdf-workspace p {font-size:14px;line-height:1.45;}
.mtr-pdf-viewer {margin-top:12px;border:1px solid #dce7e1;border-radius:8px;background:white;overflow:hidden;}
.mtr-pdf-viewer [data-mtr-preview-page] {max-height:430px;overflow:auto;padding:8px;}
.mtr-pdf-viewer canvas {display:block;width:100%;height:auto;}
.mtr-pdf-page-controls {display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px;border-top:1px solid #dce7e1;}
.mtr-pdf-page-controls span {font-size:12px;color:var(--muted);text-align:center;}
.mtr-pdf-original {color:var(--green);font-weight:600;font-size:14px;}
.mtr-pdf-choices {max-height:320px;overflow:auto;border:1px solid #dce7e1;border-radius:8px;}
#mtrPdfRows .mtr-pdf-choices .mtr-choice {padding:12px;border-bottom:1px solid #dce7e1;align-items:start;}
.mtr-pdf-workspace .mtr-toolbar {margin-top:16px;}
.mtr-pdf-workspace #mtrPdfNoteSearch {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;}
.mtr-pdf-workspace .mtr-weight-summary {margin:16px 0;}
.mtr-pdf-workspace #mtrPdfSearchStatus:empty {display:none;}
#mtrPdfChecked {width:18px;height:18px;}
@media(max-width:700px) {
 .mtr-pdf-workspace {grid-template-columns:1fr;}.mtr-pdf-viewer [data-mtr-preview-page]{max-height:270px;}
 .mtr-modal table,.mtr-modal tbody,.mtr-modal tr,.mtr-modal td {display:block;width:auto;}
 .mtr-modal thead{display:none;}.mtr-modal tr{padding:12px;border-bottom:2px solid #dce7e1;}
 .mtr-modal td{border:0;padding:5px 0;}.mtr-modal td:last-child{display:flex;align-items:center;gap:12px;}
 .mtr-modal .mtr-toolbar {flex-wrap:wrap;}.mtr-modal{max-height:94dvh;}
}

.mtr-pdf-workspace > * {min-width:0;overflow-wrap:anywhere;}
.mtr-pdf-nav {flex-wrap:wrap;}
#mtrPdfImport button {max-width:100%;white-space:normal;}
#mtrPdfImport input:not([type=checkbox]) {max-width:100%;box-sizing:border-box;}

/* Keep full supplier names readable without crossing numeric/action columns. */
.mtr-row-actions {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;}
.mtr-row-actions > * {max-width:100%;box-sizing:border-box;white-space:normal;}
.mtr-row-actions .mtr-pdf {padding:6px 0;}
.mtr-modal .ui-document-identity {min-width:0;overflow-wrap:anywhere;white-space:normal;}
#mtrPending th:has(input[type=checkbox]) {width:32px;}
.mtr-choice > span {min-width:0;overflow-wrap:anywhere;}
@media(max-width:700px) {.mtr-row-actions{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 16px;}.mtr-modal td:last-child{flex-wrap:wrap;}}
.mtr-pdf-date{padding:16px;border:1px solid #dce7e1;border-radius:10px;background:#f4f8f6;margin:12px 0 20px}
.mtr-pdf-date p{margin:8px 0 12px;line-height:1.45}
.mtr-pdf-date>div{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.mtr-pdf-date label{display:grid;gap:6px;max-width:100%}
.mtr-pdf-date input{width:190px}
.mtr-pdf-date small{color:#62756b}
.mtr-pdf-date-confirmed{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;color:#315b48}
/* fonte: finance/investment-reports.css */
.investment-workspace { padding: 20px; display: grid; gap: 18px; min-width: 0; }
.investment-toolbar, .investment-import-form header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.investment-toolbar h3, .investment-import-form h2 { margin: 0 0 6px; }
.investment-toolbar p, .investment-import-form header p { margin: 0; color: var(--muted); }
.investment-toolbar button { flex-shrink: 0; }
.investment-status { padding: 12px 16px; border: 1px solid #ebd395; border-radius: 10px; background: #fff9e9; display: flex; gap: 16px; flex-wrap: wrap; }
.investment-status.is-complete { background: #eff9f3; border-color: #bde2cc; }
.investment-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.investment-totals article { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.investment-totals article strong { font-size: 1.25rem; color: var(--green); overflow-wrap: anywhere; }
.investment-totals span, .investment-totals small { color: var(--muted); }
.investment-reports, .investment-import-reports { display: grid; gap: 12px; }
.investment-report { border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 0; }
.investment-report-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(100px, 1fr)); gap: 12px; align-items: start; }
.investment-report-heading > div { display: grid; gap: 6px; min-width: 0; }
.investment-report-heading small, .investment-report-heading span { color: var(--muted); }
.investment-report-heading strong, .investment-report small { overflow-wrap: anywhere; }
.investment-report details { margin-top: 12px; }
.investment-report summary, .investment-managerial summary, .investment-calculation summary, .investment-counterpart summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 6px 0; }
.investment-report-months { padding: 10px 0; display: grid; gap: 8px; }
.investment-report-months > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.investment-report-months span { overflow-wrap: anywhere; }
.investment-report button { margin-top: 10px; }
.investment-managerial, .investment-calculation, .investment-counterpart { padding: 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.investment-comparison { min-width: 0; }
.investment-comparison h3 { margin-bottom: 6px; }
.investment-comparison .tax-table td { white-space: nowrap; }
.investment-explanation { padding: 14px; background: var(--surface); border-radius: 10px; margin-top: 12px; }
.investment-explanation p { margin: 8px 0 0; }
.investment-import-dialog { width: min(920px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: white; overflow: auto; }
.investment-import-dialog::backdrop { background: rgba(24, 45, 36, .45); backdrop-filter: blur(3px); }
.investment-import-form { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.investment-import-form header { padding: 20px; border-bottom: 1px solid var(--line); }
.investment-import-form header small { color: var(--green); font-weight: 800; }
.investment-import-form header button { flex-shrink: 0; }
.investment-import-body { display: grid; gap: 16px; padding: 20px; min-width: 0; }
.investment-file-label { display: grid; gap: 8px; }
.investment-file-label input { max-width: 100%; min-width: 0; width: 100%; }
.investment-import-notice:empty { display: none; }
.investment-import-notice { padding: 12px; background: #fff9e9; border-radius: 8px; overflow-wrap: anywhere; }
.investment-confirm { display: flex !important; align-items: flex-start; gap: 10px; }
.investment-confirm input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.investment-comparison-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.investment-comparison-fields label { min-width: 0; display: grid; gap: 6px; }
.investment-comparison-fields input, .investment-comparison-fields textarea { width: 100%; min-width: 0; }
.investment-comparison-fields .wide { grid-column: 1 / -1; }
.investment-import-form footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); background: white; position: sticky; bottom: 0; }
@media (max-width: 700px) {
  .investment-workspace { padding: 12px; gap: 14px; }
  .investment-toolbar { flex-wrap: wrap; }
  .investment-totals { grid-template-columns: 1fr; gap: 8px; }
  .investment-totals article { padding: 12px; }
  .investment-report-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investment-report-heading > div:first-child { grid-column: 1 / -1; }
  .investment-report-months > div { grid-template-columns: 1fr 1fr; }
  .investment-report-months > div > span:first-child { grid-column: 1 / -1; }
  .investment-import-body, .investment-import-form header { padding: 14px; }
  .investment-comparison-fields { grid-template-columns: 1fr; }
  .investment-import-form footer { padding: 12px; }
  .investment-import-form footer button { flex: 1; padding-inline: 8px; }
}

.quarter-decision{padding:20px;display:grid;gap:14px;min-width:0}.quarter-decision p{margin:0;overflow-wrap:anywhere}.quarter-decision>button{justify-self:start}.quarter-decision .investment-totals article{min-width:0}

.investment-realizations { display: grid; gap: 12px; min-width: 0; }
.investment-realizations h3, .investment-realizations p { margin: 0; }
.investment-realizations p { color: var(--muted); line-height: 1.45; }
.investment-realization-row { display: grid; grid-template-columns: minmax(130px, 1.25fr) repeat(3, minmax(100px, 1fr)) minmax(90px, .8fr); align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.investment-realization-row > div { display: grid; gap: 6px; min-width: 0; }
.investment-realization-row span, .investment-realization-row small { color: var(--muted); overflow-wrap: anywhere; }
.investment-realization-row strong { overflow-wrap: anywhere; }
.investment-realization-dialog { width: min(680px, calc(100vw - 32px)); }
.investment-impact { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.investment-impact h3, .investment-impact p { margin: 0; }
.investment-impact-row { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.investment-impact-row > * { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 1100px) {
  .investment-realization-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investment-realization-row > div:first-child { grid-column: 1 / -1; }
  .investment-impact-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .investment-realization-row { padding: 12px; gap: 12px; }
  .investment-realization-row > button, .investment-realization-row > span { grid-column: 1 / -1; }
}
