h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.intake-upload-panel { margin-bottom: var(--sib-sp-5); }
.intake-file-preview { display: block; width: 100%; height: 65vh; border: 0; }
.intake-reextract-host .sib-modal-panel { max-width: 48rem; }
.intake-reextract-form { display: grid; gap: var(--sib-sp-3); width: 100%; max-width: none; }
.intake-reextract-form textarea, .intake-reextract-form select { width: 100%; min-width: 0; box-sizing: border-box; }
.intake-reextract-form textarea { font-size: 1rem; }
.intake-reextract-form p { margin: 0; }
.intake-image-preview { display: block; max-width: 100%; max-height: 65vh; object-fit: contain; margin-inline: auto; }
.sib-document-tabs { flex-wrap: wrap; }
.sib-document-tabs a.btn { border: 1px solid transparent; border-radius: var(--sib-radius-pill); height: 30px; padding: 0 var(--sib-sp-4); background: transparent; color: var(--sib-muted); }
.sib-document-tabs a.btn.active { color: var(--sib-brand); background: var(--sib-surface); border-color: var(--sib-brand-a28); }
.intake-upload-form { display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(16rem, 1fr) auto; gap: var(--sib-sp-4); align-items: end; }
.intake-upload-form p { grid-column: 1 / -1; margin: 0; }
.intake-file-label { min-width: 0; align-content: end; }
.intake-file-label input[type=file] { width: 100%; height: var(--sib-control-h); padding: 0; line-height: var(--sib-control-h); }
.intake-file-label input[type=file]::file-selector-button { height: var(--sib-control-h); margin-inline-end: var(--sib-sp-2); padding-inline: var(--sib-sp-3); vertical-align: middle; }
/* Capture navigation (docs/capture-navigation-261003.md): the mock-up's upload panel. The picker and the
   camera are outline icon buttons (interface norms: at least 34px, accessible label); the file input is
   clip-hidden so it stays focusable and its label is the visible control. */
.intake-upload-actions { display: flex; align-items: center; gap: var(--sib-sp-3); flex-wrap: wrap; min-width: 0; }
/* Centred on both axes whatever the display: the picker is a <label>, and inside .sib-form the label rule
   makes it a flex column, where place-items alone left the icon at the top (owner report 2026-10-06). */
.sib-icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0;
  border: 1px solid var(--sib-line-strong); border-radius: 50%; background: var(--sib-surface); color: var(--sib-text-body); cursor: pointer;
}
.sib-icon-button:hover { border-color: var(--sib-brand-a28); background: var(--sib-brand-tint-bg); color: var(--sib-brand); }
.sib-icon-button[aria-disabled="true"], .sib-icon-button:disabled { opacity: .5; cursor: default; pointer-events: none; }
.sib-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.intake-capture-input:focus-visible + .sib-icon-button { outline: 2px solid var(--sib-brand); outline-offset: 2px; }
.sib-capture-controls { display: flex; align-items: flex-end; justify-content: flex-end; gap: var(--sib-sp-3); flex-wrap: wrap; }
.sib-capture-controls .sib-tabs { margin: 0; }
/* Camera capture (docs/argus-camera-capture-260924.md): the trigger beside the file picker, and the dialog. */
.intake-capture-entry { display: flex; align-items: center; gap: var(--sib-sp-3); white-space: nowrap; color: var(--sib-muted); }
.intake-capture-form { display: grid; gap: var(--sib-sp-3); width: 100%; max-width: none; }
/* Clip-hidden, not display:none: the input stays focusable, so Enter/Space open the chooser and the
   modal focus trap can land on it; the label is the visible control. */
.intake-capture-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intake-capture-button { justify-self: start; cursor: pointer; }
.intake-capture-input:focus-visible + .intake-capture-button { outline: 2px solid var(--sib-brand); outline-offset: 2px; }
.intake-capture-input:disabled + .intake-capture-button { opacity: .5; cursor: default; pointer-events: none; }
.intake-capture-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--sib-sp-3); }
.intake-capture-thumbs li { display: grid; gap: var(--sib-sp-1); justify-items: start; min-width: 0; }
.intake-capture-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--sib-surface); border: 1px solid var(--sib-line); border-radius: var(--sib-radius); }
.intake-capture-thumbs span { font-size: var(--sib-fs-sm); color: var(--sib-muted); }
/* TKT-134 (tickets#18), FDR reviewer of 03/11: tokens.css loads after this file and sets button.sib-row-action to 12 px; on the client's Enviar «Remover» is 15 px, its 48 px target comes from the .sib-send-host button rule. */
.sib-send-host .intake-capture-thumbs button.sib-row-action { font-size: 15px; }
.intake-capture-count { margin: 0; }
/* TKT-134, T25 decision 2 + T76 points 4 and 5 (tickets#18): «Enviar documentos» with the prototype's values (v3.css .h1 .lede .card.dashed .h3 .btn); text >= 15 px, buttons >= 48 px. */
.sib-send-head, .sib-send, .sib-send-host { --send-ws: #013B7C; --send-ws-soft: #E8EFF8; --send-ink: #1D2433; --send-muted: #667085; --send-line: #E3E7EE; --send-display: "Poppins", var(--sib-font-family); }
.sib-send-head h1 { font: 700 28px/1.2 var(--send-display); margin: 0 0 6px; color: var(--send-ink); }
.sib-send-head p { margin: 0 0 22px; font-size: 16px; line-height: 1.45; color: var(--send-muted); }
/* The dashes: the prototype's own 1px dashed #E3E7EE was rendered, and the same here, but at 1.25:1 on white it reads as no border (the FDR's reviewer, T01-F).
   The prototype's other dashed colour (.lic, #8A93A3, 3:1) and the weight of the buttons. */
.sib-send .sib-send-drop { background: var(--sib-surface); border: 1.5px dashed #8A93A3; border-radius: 12px; padding: 40px 20px; text-align: center; }
.sib-send .sib-send-drop.is-over { border-color: var(--send-ws); background: var(--send-ws-soft); }
.sib-send .sib-send-drop-title { font: 600 18px var(--send-display); color: var(--send-ink); margin: 0 0 16px; }
.sib-send .sib-send-drop-hint { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: var(--send-muted); }
.sib-send .sib-send-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sib-send .sib-send-btn, .sib-send-host .sib-send-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: auto; min-height: 48px; padding: 10px 20px; border-radius: 8px; border: 1.5px solid var(--send-ws); font: 600 16px var(--send-display); white-space: nowrap; cursor: pointer; margin: 0; }
.sib-send .sib-send-btn.solid, .sib-send-host .sib-send-btn.solid { background: var(--send-ws); color: #fff; }
.sib-send .sib-send-btn.ghost { background: var(--sib-surface); color: var(--send-ws); }
.sib-send .sib-send-btn:disabled, .sib-send .sib-send-btn[aria-disabled="true"], .sib-send-host .sib-send-btn.solid:disabled { border-color: var(--send-line); background: #EEF0F4; color: #8A93A3; cursor: not-allowed; pointer-events: none; opacity: 1; }
.sib-send .intake-capture-input:focus-visible + .sib-send-btn { outline: 2px solid var(--send-ws); outline-offset: 2px; }
.sib-send .sib-send-message, .sib-send .sib-send-readonly { margin: 16px 0 0; font-size: 16px; line-height: 1.45; color: var(--send-ink); overflow-wrap: anywhere; }
.sib-send .sib-notice { margin: 0 0 16px; font-size: 16px; line-height: 1.45; }
.sib-send-host, .sib-send-host label, .sib-send-host p, .sib-send-host span { font-size: 16px; }
.sib-send-host button, .sib-send-host .btn { height: auto; min-height: 48px; padding: 10px 20px; font-size: 16px; }
.intake-list-title { margin-top: var(--sib-sp-5); }
.intake-state-panel { display: flex; align-items: flex-start; gap: var(--sib-sp-3); }
.intake-state-panel p { margin: 0; max-width: 75ch; }
.intake-filters { flex-wrap: wrap; }
.intake-filters input { width: 100%; }
.intake-table td { vertical-align: top; }
.intake-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.intake-filename { min-width: 12rem; max-width: 22rem; overflow-wrap: anywhere; }
.intake-filename > span { display: block; font-weight: var(--sib-fw-semibold); }
.intake-filename > small { display: block; margin-top: var(--sib-sp-1); color: var(--sib-muted); }
.intake-result { min-width: 18rem; max-width: 34rem; overflow-wrap: anywhere; }
.intake-result > button { margin-top: var(--sib-sp-2); margin-right: var(--sib-sp-2); }
.intake-result pre, .intake-review-source { white-space: pre-wrap; overflow-wrap: anywhere; }
.intake-review-fields input, .intake-review-fields select { width: 100%; min-width: 0; }
.intake-review-fields label { min-width: 0; }
.sib-form.intake-upload-form, .sib-form.intake-review-fields { max-width: none; }
.intake-review-host .sib-modal-panel { box-sizing: border-box; }
.intake-review-host .sib-form-heading { min-width: 0; overflow-wrap: anywhere; }
.intake-review-host .sib-form-task { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.extraction-facts-editor, .extraction-facts-editor details, .extraction-facts-editor label { min-width: 0; }
.extraction-facts-editor .sib-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.extraction-facts-editor input, .extraction-facts-editor select { min-width: 0; width: 100%; box-sizing: border-box; }
.extraction-facts-editor .sib-table-wrap { max-width: 100%; margin-block: var(--sib-sp-3); }
.extraction-facts-editor td input { min-width: 8rem; }
.extraction-facts-editor [data-manual-item] { min-width: 15rem; }
.extraction-facts-editor summary { cursor: pointer; padding-block: var(--sib-sp-2); }
.extraction-facts-editor [aria-invalid="true"] { border-color: var(--sib-danger); }
.extraction-reference-list { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sib-sp-2); }
@media (max-width: 720px) {
    .extraction-facts-editor input, .extraction-facts-editor select { font-size: 16px; }
}

@media (max-width: 720px) {
    /* FDR norm (2026-10-11): View and Mode stay one compact two-control row on a phone (390 px), never stacked. */
    .sib-capture-controls { width: 100%; align-items: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sib-sp-2); }
    .sib-capture-controls .sib-view-select { min-width: 0; }
    .sib-capture-controls .sib-view-select select { min-width: 0; max-width: none; width: 100%; }
    .intake-upload-actions .sib-icon-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
    .intake-upload-form { grid-template-columns: 1fr; }
    .intake-upload-form p { grid-column: auto; }
    .intake-capture-entry { white-space: normal; }
    .intake-capture-entry button { flex: 1 1 auto; }
    .intake-capture-button { justify-self: stretch; text-align: center; min-height: 44px; }
    .intake-capture-thumbs { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
    .intake-filters label { flex: 1 1 100%; min-width: 0; }
    .intake-filters select { width: 100%; }
}

/* Share prototype 2026-10-09 (design-system-component-rules, "narrow review tables with a stable field
   set become labelled cards on mobile"): a table wrapped in .sib-table-cards loses its header on a phone
   and each row becomes a card whose cells carry their own label from data-label. The full context stays
   behind View. Used by Capture › Pendentes and Reports › Suppliers / Customers. */
@media (max-width: 720px) {
    .sib-table-cards table, .sib-table-cards tbody, .sib-table-cards tr, .sib-table-cards td { display: block; width: 100%; box-sizing: border-box; }
    .sib-table-cards thead { display: none; }
    .sib-table-cards tr { border: 1px solid var(--sib-line); border-radius: var(--sib-radius); background: var(--sib-surface); padding: var(--sib-sp-2) var(--sib-sp-3); margin-bottom: var(--sib-sp-2); }
    .sib-table-cards td { display: grid; grid-template-columns: minmax(6rem, 38%) 1fr; gap: var(--sib-sp-2); align-items: start; padding: 4px 0; border: 0; text-align: left; max-width: none !important; white-space: normal; overflow: visible; }
    .sib-table-cards td::before { content: attr(data-label); color: var(--sib-muted); font-size: var(--sib-fs-sm); }
    .sib-table-cards td:not([data-label]), .sib-table-cards td[colspan] { grid-template-columns: 1fr; }
    .sib-table-cards td:not([data-label])::before { content: none; }
    .sib-table-cards td.sib-num { text-align: left; }
}
/* FDR Spec (2026-10-11, N-16): the Insights margin carries one tint on its headline tile and on its table row. */
.sib-tile.insights-margin { background: #edf8f5; border-color: #b9d9d2; }
