:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-soft: #f9fbfd;
    --text: #172033;
    --muted: #637083;
    --line: #dce4ee;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --blue: #2563eb;
    --blue-soft: #eaf3ff;
    --amber: #b45309;
    --green: #15803d;
    --gray: #64748b;
    --shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

/* PDE - Autorização de atleta */
.pde-form { display: grid; gap: 1.25rem; }
.pde-section { overflow: hidden; }
.pde-section .table-panel__header { border-bottom: 1px solid var(--line); }
.pde-authorization-photo { display: grid; width: 150px; gap: 7px; margin: 18px auto 0 18px; color: var(--muted); font-size: .8rem; font-weight: 700; text-align: center; }
.pde-authorization-photo a { display: block; overflow: hidden; aspect-ratio: 4 / 5; border: 2px solid #65b884; border-radius: 8px; background: #ecfdf5; }
.pde-authorization-photo img { width: 100%; height: 100%; object-fit: cover; }
.pde-step { float: left; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-right: .75rem; border-radius: 999px; background: #0b6b3a; color: #fff; font-weight: 800; }
.pde-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; }
.pde-face-photo-layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 24px; padding: 22px; }
.pde-face-photo-preview { display: grid; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; place-items: center; border: 2px solid #65b884; border-radius: 8px; background: #ecfdf5; color: #166534; font-weight: 800; }
.pde-face-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.pde-face-photo-meta { display: grid; gap: 8px; margin: 14px 0 0; }
.pde-face-photo-meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pde-face-photo-meta dt { color: var(--muted); font-weight: 700; }
.pde-face-photo-meta dd { margin: 0; color: var(--text); font-weight: 800; text-align: right; }
.pde-face-photo-form { display: grid; align-content: start; min-width: 0; gap: 18px; }
.pde-face-photo-consent { align-items: flex-start; border: 1px solid #f59e0b; border-radius: 8px; background: #fffbeb; padding: 14px; }
.pde-face-photo-consent input { flex: 0 0 auto; margin-top: 3px; }
.pde-secure-link-box { display: grid; gap: 14px; margin: 20px; padding: 18px; border: 1px solid #86c9a2; border-radius: 8px; background: #f0fdf4; }
.pde-secure-link-box .field { min-width: 0; }
.pde-secure-link-box .input { width: 100%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.pde-secure-link-email { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 12px; padding-top: 16px; border-top: 1px solid #86c9a2; }
.pde-secure-link-email .input { font-family: inherit; font-size: 1rem; }
.pde-secure-link-email .button { min-height: 44px; }
.pde-location-audit { margin: 20px; padding: 18px; border: 1px solid #93c5fd; border-radius: 8px; background: #eff6ff; }
.pde-location-audit > div:first-child { display: grid; gap: 5px; }
.pde-location-audit strong { overflow-wrap: anywhere; }
.pde-location-audit .pde-face-photo-meta dd { min-width: 0; overflow-wrap: anywhere; }
.public-face-photo-page .topbar .nav,
.public-face-photo-page .topbar__toggle { display: none !important; }
.public-face-photo-page .page { display: grid; min-height: calc(100vh - 154px); background: #eef5f2; }
.public-face-photo-shell { display: grid; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 0; place-items: center; }
.public-face-photo-card { display: grid; width: 100%; gap: 22px; padding: clamp(20px, 4vw, 36px); border: 1px solid #b7c9bc; border-radius: 8px; background: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .1); }
.public-face-photo-card h1 { margin-top: 4px; font-size: 1.8rem; }
.public-face-photo-card form { display: grid; min-width: 0; gap: 18px; }
.public-face-photo-card .success-box,
.public-face-photo-card .error-box { display: grid; gap: 5px; }
.public-face-photo-athlete { display: grid; gap: 4px; padding: 15px 17px; border-left: 5px solid #15803d; background: #f0fdf4; }
.public-face-photo-athlete span,
.public-face-photo-athlete small { color: var(--muted); }
.public-face-photo-preview { width: min(100%, 360px); margin: 0 auto; }
.public-location-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 2px solid #93c5fd; border-radius: 8px; background: #eff6ff; }
.public-location-box > div { display: grid; min-width: 0; gap: 4px; }
.public-location-box .field__label { font-weight: 800; }
.public-location-box strong { color: #1e3a8a; }
.public-location-box small { color: #475569; }
.public-location-box--ready { border-color: #22c55e; background: #f0fdf4; }
.public-location-box--ready strong { color: #166534; }
.public-location-box--error { border-color: #ef4444; background: #fef2f2; }
.public-location-box--error strong { color: #991b1b; }
.pde-span-2 { grid-column: span 2; }
.pde-field-short { max-width: 8rem; }
.pde-company-select,
.pde-company-select + .select2-container .select2-selection--single { background: #dcfce7 !important; border-color: #65b884 !important; }
.pde-company-select + .select2-container .select2-selection__rendered { color: #14532d !important; font-weight: 800; }
.pde-city-select + .select2-container .select2-selection--single { background: #ecfdf5; border-color: #86c9a2; }
.pde-form input.input,
.pde-form textarea.input { background: #e5e7eb; }
.pde-uppercase-input { text-transform: uppercase; }
.table-cell-note { display: block; margin-top: .25rem; color: var(--muted); font-size: .78rem; }
.pde-medical-list { display: grid; gap: 1rem; padding: 1.25rem; }
.pde-question { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.pde-question legend, .pde-signer-choice legend { padding: 0 .35rem; font-weight: 750; }
.pde-choice-row, .pde-signer-choice { display: flex; flex-wrap: wrap; gap: 1rem; }
.pde-choice-row label, .pde-signer-choice label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.pde-conditional { margin-top: 1rem; }
.pde-signer-choice { margin: 1.25rem 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.pde-declaration { margin: 0 1.25rem 1.25rem; padding: 1.15rem; border-left: 4px solid #0b6b3a; border-radius: .4rem; background: #f2f8f5; line-height: 1.55; }
.pde-accept { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1rem; font-weight: 700; }
.pde-accept input { margin-top: .3rem; }
.pde-submit-bar { position: sticky; bottom: .75rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.pde-hub { display: grid; gap: 18px; }
.pde-hub__header { align-items: flex-start; margin-bottom: 0; }
.pde-hub__lead { max-width: 760px; margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.pde-action-groups { display: grid; width: min(100%, 760px); gap: 12px; }
.pde-action-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; box-shadow: 0 10px 24px rgba(15, 23, 42, .14); }
.pde-action-card > strong { width: 100%; color: #fff; font-size: .78rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.pde-action-card .button-row { justify-content: flex-start; }
.pde-action-card--blue { background: #0f3f71; }
.pde-action-card--green { background: #166534; }
.pde-action-subcard { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 11px; background: rgba(255, 255, 255, .10); }
.pde-action-subcard > strong { color: #fff; font-size: .75rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.pde-action-item { display: flex; padding: 6px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 10px; box-shadow: 0 5px 12px rgba(15, 23, 42, .12); }
.pde-action-card--blue .pde-action-item { background: #0b315a; }
.pde-action-card--green .pde-action-item { background: #14532d; }
.pde-action-item .button { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.pde-action-item .button:active,
.pde-action-item .button.is-pressed { transform: translateY(3px) scale(.98); box-shadow: inset 0 3px 7px rgba(15, 23, 42, .38); filter: brightness(.9); }
.pde-authorization-actions { width: min(100%, 420px); }
.pde-authorization-actions__buttons { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
.pde-authorization-actions .button { width: 100%; min-width: 0; justify-content: flex-start; text-align: left; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.pde-authorization-actions .button:active,
.pde-authorization-actions .button.is-pressed { transform: translateY(3px) scale(.98); box-shadow: inset 0 3px 7px rgba(15, 23, 42, .38); filter: brightness(.9); }
.pde-facts { display: grid; overflow: hidden; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.pde-fact { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.pde-fact:last-child { border-right: 0; }
.pde-fact span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.pde-fact strong { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 1.08rem; }
.pde-document { scroll-margin-top: 92px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.pde-document__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid #bfdbfe; background: #eff6ff; }
.pde-document__header h2 { font-size: 1.35rem; }
.pde-document__header p:last-child { margin-top: 7px; color: var(--muted); }
.pde-document__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pde-document__section { min-width: 0; padding: 24px; border-bottom: 1px solid var(--line); }
.pde-document__section--left { border-right: 1px solid var(--line); }
.pde-document__section:nth-last-child(-n + 2) { border-bottom: 0; }
.pde-document__number { display: block; margin-bottom: 9px; color: var(--brand); font-size: .78rem; font-weight: 800; }
.pde-document__section h3 { margin: 0; font-size: 1.05rem; }
.pde-document__section p { margin-top: 11px; color: #475569; line-height: 1.65; }
.pde-document__list { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; color: #475569; line-height: 1.5; }
@media (max-width: 900px) { .pde-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pde-fact:nth-child(2) { border-right: 0; } .pde-fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); } .pde-document__body { grid-template-columns: 1fr; } .pde-document__section--left { border-right: 0; } .pde-document__section:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 800px) { .pde-grid, .pde-face-photo-layout, .pde-secure-link-email { grid-template-columns: 1fr; } .pde-span-2 { grid-column: auto; } .pde-submit-bar { align-items: stretch; flex-direction: column; } .pde-face-photo-preview { width: min(100%, 360px); } .public-location-box { align-items: stretch; flex-direction: column; } .public-location-box .button, .pde-secure-link-email .button { width: 100%; } }
@media (max-width: 640px) { .pde-facts { grid-template-columns: 1fr; } .pde-fact, .pde-fact:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); } .pde-fact:last-child { border-bottom: 0; } .pde-document__header { align-items: stretch; flex-direction: column; padding: 18px; } .pde-document__section { padding: 20px 18px; } }

.pde-official { width: 100%; max-width: 1180px; min-width: 0; margin: 0 auto; overflow: hidden; border: 1px solid #b7c9bc; border-radius: 8px; background: #ffffff; }
.pde-official__letterhead { display: block; width: 100%; max-width: 100%; height: auto; background: #ffffff; }
.pde-official__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px clamp(22px, 4vw, 52px); border-top: 1px solid #d1e3d5; background: #f0fdf4; }
.pde-official__intro > div { min-width: 0; }
.pde-official__intro h1 { max-width: 760px; margin: 5px 0 0; overflow-wrap: anywhere; color: #14532d; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.12; }
.pde-official__intro p:last-child { margin-top: 8px; color: #3f5c49; font-size: 1.05rem; }
.pde-official__actions { flex: 0 0 auto; }
.pde-official__summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px clamp(22px, 4vw, 52px); border-top: 1px solid #bbd2c1; border-bottom: 1px solid #bbd2c1; background: #14532d; }
.pde-official__summary a { border: 1px solid rgba(255, 255, 255, .42); border-radius: 8px; color: #ffffff; padding: 7px 10px; font-size: .84rem; font-weight: 750; }
.pde-official__summary a:hover { background: rgba(255, 255, 255, .14); }
.pde-official__section { scroll-margin-top: 92px; padding: 38px clamp(22px, 5vw, 64px); border-bottom: 1px solid #dce4ee; }
.pde-official__section:last-child { border-bottom: 0; }
.pde-official__section--legal { background: #eff6ff; }
.pde-official__section--soft { background: #f8fafc; }
.pde-official__section--highlight { background: #fffbeb; }
.pde-official__section--conclusion { border-left: 6px solid #15803d; background: #f0fdf4; }
.pde-official__section-number { margin: 0 0 6px; color: #15803d; font-size: .76rem; font-weight: 900; }
.pde-official__section h2 { margin: 0 0 20px; color: #14532d; font-size: 1.5rem; }
.pde-official__section h3 { margin: 26px 0 9px; color: #172033; font-size: 1.02rem; }
.pde-official__section p { max-width: 94ch; margin: 0 0 14px; color: #334155; line-height: 1.72; }
.pde-official__section ul,
.pde-official__section ol { display: grid; gap: 8px; margin: 12px 0 22px; padding-left: 24px; color: #334155; line-height: 1.58; }
.pde-official__roman-list { list-style-type: upper-roman; }
.pde-official__grid { display: grid; gap: 0 30px; margin-top: 18px; }
.pde-official__grid > div { min-width: 0; padding: 0 0 18px; border-bottom: 1px solid #dce4ee; }
.pde-official__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pde-official__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pde-official__resources { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 28px; margin-top: 26px; padding-top: 8px; border-top: 2px solid #b7c9bc; }
.pde-official__resources > div { min-width: 0; }
.pde-official__categories { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0 !important; list-style: none; }
.pde-official__categories li { border-left: 3px solid #15803d; background: #f0fdf4; padding: 9px 12px; font-weight: 700; }
.pde-official__letterhead--footer { border-top: 1px solid #d1e3d5; }

.pde-law__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 34px clamp(22px, 4vw, 52px); border-top: 1px solid #d1e3d5; background: #f0fdf4; }
.pde-law__heading { min-width: 0; }
.pde-law__heading h1 { margin: 5px 0 0; color: #14532d; font-size: 2.35rem; line-height: 1.12; }
.pde-law__heading h1 span { display: block; margin-top: 7px; color: #172033; font-size: 1.28rem; font-weight: 800; }
.pde-law__status { max-width: 680px; margin: 20px 0 0; border-left: 5px solid #eab308; background: #fffbeb; color: #713f12; padding: 11px 14px; font-weight: 900; text-transform: uppercase; }
.pde-law__opening { scroll-margin-top: 92px; padding: 42px clamp(22px, 5vw, 64px); border-bottom: 1px solid #dce4ee; background: #f8fafc; }
.pde-law__opening h2 { max-width: 780px; margin: 0 0 20px; color: #14532d; font-size: 1.55rem; }
.pde-law__ementa { max-width: 88ch; margin: 0; color: #172033; font-size: 1.08rem; font-weight: 750; line-height: 1.72; }
.pde-law__message { scroll-margin-top: 92px; max-width: 900px; margin-top: 30px; border: 1px solid #93c5fd; border-radius: 8px; background: #eff6ff; padding: 20px 22px; }
.pde-law__message h3 { margin: 0 0 8px; color: #1e3a8a; font-size: 1rem; }
.pde-law__message p { margin: 0; color: #334155; line-height: 1.65; }
.pde-law__articles { scroll-margin-top: 92px; border-bottom: 1px solid #dce4ee; }
.pde-law__section-header { padding: 38px clamp(22px, 5vw, 64px) 24px; }
.pde-law__section-header h2 { margin: 0; color: #14532d; font-size: 1.5rem; }
.pde-law__article-list { border-top: 1px solid #dce4ee; }
.pde-law__article { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 20px clamp(22px, 5vw, 64px); border-bottom: 1px solid #dce4ee; }
.pde-law__article:last-child { border-bottom: 0; }
.pde-law__article:nth-child(even) { background: #fffbeb; }
.pde-law__article h3 { margin: 0; color: #14532d; font-size: 1rem; }
.pde-law__article p { margin: 0; color: #334155; line-height: 1.6; }
.pde-law__article p + p { margin-top: 12px; }
.pde-law__preamble { max-width: 88ch; margin: 22px 0 0; color: #334155; font-weight: 750; line-height: 1.65; }
.pde-law__division { scroll-margin-top: 92px; padding: 30px clamp(22px, 5vw, 64px) 24px; border-top: 4px solid #14532d; background: #f0fdf4; text-align: center; }
.pde-law__division span, .pde-law__chapter span { color: #15803d; font-size: .76rem; font-weight: 900; letter-spacing: .08em; }
.pde-law__division h2 { margin: 7px 0 0; color: #14532d; font-size: 1.35rem; }
.pde-law__chapter { padding: 22px clamp(22px, 5vw, 64px); border-top: 1px solid #bbd2c1; background: #f8fafc; text-align: center; }
.pde-law__chapter h3 { margin: 5px 0 0; color: #172033; font-size: 1rem; }
.pde-law__roman-list { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 28px; color: #334155; line-height: 1.6; list-style-type: upper-roman; }
.pde-law--pdf .pde-law__article { display: block; page-break-inside: auto; }
.pde-law--pdf .pde-law__article > h3 { margin-bottom: 8px; }
.pde-law--pdf .pde-law__roman-list { display: block; }
.pde-law--pdf .pde-law__roman-list li { margin-bottom: 7px; }
.pde-law--pdf .pde-official__summary,
.pde-law--pdf .pde-official__actions { display: none; }
.pde-law__annex-section { background: #f0fdf4; }
.pde-law__annexes { margin: 0 !important; padding: 0 !important; list-style: none; }
.pde-law__annexes li { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid #bbd2c1; }
.pde-law__annexes li:last-child { border-bottom: 0; }
.pde-law__annexes strong { color: #14532d; }
.pde-law__annexes span { min-width: 0; color: #334155; }
.pde-comments { width: 100%; max-width: 1180px; margin: 0 auto; }
.pde-comments__header { align-items: flex-end; }
.pde-comments__lead { max-width: 760px; margin: 10px 0 0; color: #526274; font-size: 1.03rem; }
.pde-comments__overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0; border: 1px solid #bbd2c1; border-radius: 8px; background: #f0fdf4; overflow: hidden; }
.pde-comments__overview > div { display: grid; gap: 5px; padding: 18px 22px; border-right: 1px solid #bbd2c1; }
.pde-comments__overview > div:last-child { border-right: 0; }
.pde-comments__overview span { color: #52705c; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.pde-comments__overview strong { color: #14532d; }
.pde-comments__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pde-comments__nav a { border-radius: 8px; background: #14532d; color: #fff; padding: 9px 13px; font-size: .84rem; font-weight: 750; }
.pde-comments__entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid #d4dde7; border-radius: 8px; background: #fff; overflow: hidden; scroll-margin-top: 92px; }
.pde-comments__entry + .pde-comments__entry { margin-top: 18px; }
.pde-comments__range { display: flex; align-items: flex-start; flex-direction: column; padding: 30px 26px; background: #14532d; color: #fff; }
.pde-comments__range span { color: #bbf7d0; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.pde-comments__range strong { margin-top: 7px; font-size: 1.35rem; }
.pde-comments__range a { margin-top: auto; border-bottom: 1px solid rgba(255, 255, 255, .65); color: #fff; font-size: .86rem; font-weight: 750; }
.pde-comments__body { padding: clamp(28px, 5vw, 54px); }
.pde-comments__body h2 { margin: 4px 0 22px; color: #14532d; font-size: 1.75rem; }
.pde-comments__body > p { max-width: 82ch; color: #334155; font-size: 1.06rem; line-height: 1.78; }
.pde-comments__body > p + p { margin-top: 12px; }
.pde-comments__reasons { display: grid; gap: 12px; max-width: 88ch; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: legal-reason; }
.pde-comments__reasons li { position: relative; min-height: 42px; padding: 11px 14px 11px 54px; border: 1px solid #dce4ee; border-radius: 8px; color: #334155; line-height: 1.65; counter-increment: legal-reason; }
.pde-comments__reasons li::before { position: absolute; top: 11px; left: 13px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcfce7; color: #166534; content: counter(legal-reason); font-size: .8rem; font-weight: 900; }
.pde-comments__control { margin-top: 26px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; padding: 22px 24px; }
.pde-comments__control > span, .pde-comments__note span { color: #1e40af; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.pde-comments__control h3, .pde-comments__note h3 { margin: 5px 0 10px; color: #1e3a8a; }
.pde-comments__control p, .pde-comments__note p { margin: 0; color: #334155; line-height: 1.72; }
.pde-comments__control p + p, .pde-comments__note p + p { margin-top: 10px; }
.pde-comments__note { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; margin-top: 18px; border: 1px solid #facc15; border-radius: 8px; background: #fffbeb; padding: 22px 24px; }
.pde-comments__note-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #facc15; color: #713f12; font-size: 1.2rem; font-weight: 900; }
.pde-comments__note span, .pde-comments__note h3 { color: #713f12; }
.pde-comments__next { margin-top: 30px; border-left: 5px solid #eab308; border-radius: 0 8px 8px 0; background: #fffbeb; padding: 22px 24px; }
.pde-comments__next > span { color: #854d0e; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.pde-comments__next h3 { margin: 5px 0 10px; color: #713f12; }
.pde-comments__next p { margin: 0; color: #55461e; line-height: 1.72; }
.pde-comments__next--conclusion { border-left-color: #15803d; background: #f0fdf4; }
.pde-comments__next--conclusion > span, .pde-comments__next--conclusion h3 { color: #14532d; }
.pde-comments__next--conclusion p { color: #334155; }
.pde-comments__final { margin-top: 24px; border: 1px solid #b7c9bc; border-radius: 8px; background: #fff; padding: clamp(28px, 5vw, 54px); scroll-margin-top: 92px; }
.pde-comments__final-header { max-width: 850px; }
.pde-comments__final-header h2 { margin: 5px 0 12px; color: #14532d; font-size: 1.8rem; }
.pde-comments__final-header > p:last-child { margin: 0; color: #526274; font-size: 1.04rem; line-height: 1.7; }
.pde-comments__adjustments { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: final-adjustment; }
.pde-comments__adjustments li { position: relative; min-height: 72px; border: 1px solid #dce4ee; border-radius: 8px; padding: 20px 22px 20px 78px; counter-increment: final-adjustment; }
.pde-comments__adjustments li::before { position: absolute; top: 20px; left: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #14532d; color: #fff; content: counter(final-adjustment); font-weight: 900; }
.pde-comments__adjustments strong { color: #172033; font-size: 1.02rem; }
.pde-comments__adjustments p { margin: 7px 0 0; color: #526274; line-height: 1.68; }
.pde-comments__assessment { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; margin-top: 30px; border-radius: 8px; background: #14532d; color: #fff; padding: 28px; }
.pde-comments__assessment-label { color: #bbf7d0; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.pde-comments__assessment h3 { margin: 0 0 12px; color: #fff; font-size: 1.3rem; }
.pde-comments__assessment p { margin: 0; color: #e7f7ec; line-height: 1.72; }
.pde-comments__assessment p + p { margin-top: 12px; }
.pde-budget { display: grid; gap: 20px; }
.pde-budget-drafts { margin-bottom: 20px; border: 1px solid #e7c84f; border-radius: 8px; background: #fffbeb; overflow: hidden; }
.pde-budget-drafts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; padding: 0 20px 20px; }
.pde-budget-draft-card { display: flex; align-items: stretch; flex-direction: column; border: 1px solid #ead77f; border-radius: 8px; background: #fff; padding: 16px; }
.pde-budget-draft-card--active { border: 2px solid #15803d; background: #f0fdf4; }
.pde-budget-draft-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pde-budget-draft-card__heading small { color: #64748b; font-size: .72rem; }
.pde-budget-draft-card h3 { margin: 13px 0 3px; color: #172033; font-size: 1.04rem; }
.pde-budget-draft-card > p { margin: 0; color: #64748b; font-size: .84rem; }
.pde-budget-draft-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 16px 0; }
.pde-budget-draft-card dl div { border-radius: 6px; background: #f8fafc; padding: 8px; }
.pde-budget-draft-card dt { color: #64748b; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.pde-budget-draft-card dd { margin: 3px 0 0; color: #334155; font-size: .82rem; font-weight: 750; }
.pde-budget-draft-card > .button { margin-top: auto; text-align: center; }
.pde-project-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; border: 1px solid #bbd2c1; border-radius: 8px; background: #f0fdf4; overflow: hidden; }
.pde-project-metrics > div { display: grid; gap: 5px; padding: 18px 20px; border-right: 1px solid #bbd2c1; }
.pde-project-metrics > div:last-child { border-right: 0; }
.pde-project-metrics span { color: #52705c; font-size: .73rem; font-weight: 850; text-transform: uppercase; }
.pde-project-metrics strong { color: #14532d; font-size: 1.25rem; }
.pde-project-filters { grid-template-columns: 1.3fr .55fr .75fr 1.2fr auto; }
.pde-budget-guide { margin-bottom: 20px; border: 1px solid #dce4ee; border-radius: 8px; background: #fff; overflow: hidden; }
.pde-budget-age-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #dce4ee; border-top: 1px solid #dce4ee; }
.pde-budget-age-grid article { min-width: 0; background: #f8fafc; padding: 17px; }
.pde-budget-age-grid strong, .pde-budget-age-grid span { display: block; }
.pde-budget-age-grid strong { color: #14532d; font-size: 1.08rem; }
.pde-budget-age-grid span { margin-top: 3px; color: #15803d; font-size: .76rem; font-weight: 850; text-transform: uppercase; }
.pde-budget-age-grid p { margin: 9px 0 0; color: #526274; font-size: .86rem; line-height: 1.55; }
.pde-budget-guide__checklist { border-top: 1px solid #bbd2c1; background: #f0fdf4; color: #355441; padding: 14px 20px; line-height: 1.55; }
.pde-budget-summary { position: sticky; top: 72px; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #86b894; border-radius: 8px; background: #14532d; box-shadow: 0 8px 22px rgba(20, 83, 45, .18); overflow: hidden; }
.pde-budget-summary > div { display: grid; gap: 5px; padding: 17px 20px; border-right: 1px solid rgba(255, 255, 255, .18); }
.pde-budget-summary > div:last-child { border-right: 0; }
.pde-budget-summary span { color: #bbf7d0; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.pde-budget-summary strong { color: #fff; font-size: 1.2rem; }
.pde-budget-items-header { align-items: center; }
.pde-budget-help { margin: 0 20px 16px; border-left: 4px solid #eab308; background: #fffbeb; color: #713f12; padding: 11px 14px; line-height: 1.55; }
.pde-budget-draft-actions { display: flex; align-items: center; gap: 14px; padding: 0 20px 20px; }
.pde-budget-draft-actions span { color: #526274; font-size: .88rem; }
.pde-budget-items { display: grid; gap: 12px; padding: 0 20px 20px; }
.pde-budget-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 145px; gap: 14px; border: 1px solid #dce4ee; border-radius: 8px; background: #f8fafc; padding: 16px; }
.pde-budget-item__number { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; border-radius: 50%; background: #dcfce7; color: #166534; font-weight: 900; }
.pde-budget-item__fields { display: grid; grid-template-columns: 1.15fr 2fr .75fr .7fr .9fr .8fr .55fr; gap: 10px; }
.pde-budget-item__description { grid-column: span 2; }
.pde-budget-item__notes { grid-column: span 3; }
.pde-budget-item__total { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; padding-left: 12px; border-left: 1px solid #dce4ee; text-align: right; }
.pde-budget-item__total span { color: #64748b; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.pde-budget-item__total strong { color: #14532d; }
.pde-budget-item__total button { margin-top: auto; }
.pde-budget-add-bottom { margin: 0 20px 20px; }

@media (max-width: 820px) {
    .pde-budget-age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pde-budget-item { grid-template-columns: 36px minmax(0, 1fr); }
    .pde-budget-item__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pde-budget-item__total { grid-column: 2; align-items: flex-start; padding: 12px 0 0; border-top: 1px solid #dce4ee; border-left: 0; text-align: left; }
    .pde-official__intro { align-items: stretch; flex-direction: column; }
    .pde-official__intro .pde-official__actions { justify-content: flex-start; }
    .pde-law__header { align-items: stretch; flex-direction: column; }
    .pde-official__grid--three,
    .pde-official__resources { grid-template-columns: 1fr 1fr; }
    .pde-official__categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .pde-official { border-right: 0; border-left: 0; border-radius: 0; }
    .pde-official__grid--two,
    .pde-official__grid--three,
    .pde-official__resources,
    .pde-official__categories { grid-template-columns: 1fr; }
    .pde-official__summary { align-items: stretch; flex-direction: column; }
    .pde-official__summary a { text-align: center; }
    .pde-official__section { padding-top: 30px; padding-bottom: 30px; }
    .pde-official__actions .button { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
    .pde-law__heading h1 { font-size: 1.85rem; }
    .pde-law__article,
    .pde-law__annexes li { grid-template-columns: 1fr; gap: 7px; }
    .pde-comments__overview, .pde-comments__entry { grid-template-columns: 1fr; }
    .pde-comments__overview > div { border-right: 0; border-bottom: 1px solid #bbd2c1; }
    .pde-comments__overview > div:last-child { border-bottom: 0; }
    .pde-comments__range { gap: 7px; padding: 22px; }
    .pde-comments__range a { margin-top: 8px; }
    .pde-comments__note { grid-template-columns: 1fr; }
    .pde-comments__assessment { grid-template-columns: 1fr; gap: 10px; }
    .pde-comments__adjustments li { padding: 68px 18px 20px; }
    .pde-comments__adjustments li::before { top: 18px; left: 18px; }
    .pde-budget-summary { position: static; grid-template-columns: 1fr 1fr; }
    .pde-budget-age-grid { grid-template-columns: 1fr; }
    .pde-budget-summary > div:nth-child(2) { border-right: 0; }
    .pde-budget-item { grid-template-columns: 36px minmax(0, 1fr); }
    .pde-budget-item__fields { grid-template-columns: 1fr; }
    .pde-budget-item__description, .pde-budget-item__notes { grid-column: auto; }
    .pde-budget-item__total { grid-column: 2; align-items: flex-start; padding: 12px 0 0; border-top: 1px solid #dce4ee; border-left: 0; text-align: left; }
    .pde-budget-draft-actions { align-items: stretch; flex-direction: column; }
    .pde-budget-draft-card dl { grid-template-columns: 1fr; }
    .pde-project-metrics { grid-template-columns: 1fr 1fr; }
    .pde-project-metrics > div:nth-child(2) { border-right: 0; }
    .pde-project-filters { grid-template-columns: 1fr; }
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 24px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.topbar__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: #ecfdf5;
    color: var(--brand-strong);
    cursor: pointer;
}

.topbar__toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.topbar__toggle-lines {
    display: grid;
    width: 21px;
    gap: 4px;
}

.topbar__toggle-lines span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.topbar--menu-open .topbar__toggle-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.topbar--menu-open .topbar__toggle-lines span:nth-child(2) {
    opacity: 0;
}

.topbar--menu-open .topbar__toggle-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.brand__mark {
    display: grid;
    width: 65px;
    height: 65px;
    place-items: center;
    border-radius: 13px;
    background: var(--brand-strong);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
}

.brand__text {
    display: grid;
    gap: 1px;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small {
    color: var(--muted);
    font-size: 0.82rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nav form {
    margin: 0;
}

.nav__link,
.nav__pill,
.nav__button,
.button,
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 0 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

.nav__button {
    cursor: pointer;
    background: var(--panel);
    color: var(--text);
}

.nav__icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: #ecfdf5;
    color: var(--brand-strong);
    cursor: pointer;
}

.nav__icon-button:hover {
    border-color: var(--brand-strong);
    background: #dff7ec;
}

.nav__icon-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.nav__icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.nav__link--active,
.button {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.button--danger {
    border-color: #dc2626;
    background: #dc2626;
}

.button--success {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
}

.button--blue {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.button--blue:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.button--warning {
    border-color: var(--amber);
    background: var(--amber);
}

.form-card--quick-preset {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.form-card--quick-preset .form-card__header,
.form-card--quick-preset .form-card__header strong {
    color: #ffffff;
}

.button.button--quick-preset {
    width: fit-content;
    border-color: #facc15;
    background: #facc15;
    color: #422006;
    font-weight: 800;
}

.button.button--quick-preset:hover {
    border-color: #eab308;
    background: #eab308;
}

.button--subtle {
    border-color: var(--line);
    background: #ffffff;
    color: var(--text);
}

.button--subtle:hover {
    background: #f8fafc;
}

.button:hover,
.nav__button:hover,
.pagination__link:hover {
    filter: brightness(0.96);
}

.button:disabled,
.table-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-card .field--disabled {
    opacity: 0.58;
}

.auth-card .input:disabled {
    background: #e5e7eb;
    color: #4b5563;
    cursor: not-allowed;
}

.bulk-action-tooltip {
    display: inline-flex;
}

.button--wide {
    width: 100%;
}

.nav__pill {
    background: var(--panel-soft);
    color: var(--muted);
}

.page {
    flex: 1 0 auto;
    padding: 32px 0 48px;
}

.app-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
}

.app-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.app-footer__meta {
    display: grid;
    min-width: 0;
    gap: 3px;
    font-size: 0.82rem;
}

.app-footer__meta strong {
    color: var(--text);
    font-size: 0.9rem;
}

.app-footer__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.app-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
}

.app-footer__button:hover {
    border-color: #b8c5d4;
    background: #eef3f8;
}

.app-footer__button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.app-footer__button--primary {
    border-color: var(--brand);
    background: #ecfdf5;
    color: var(--brand-strong);
}

.app-footer__button--primary:hover {
    border-color: var(--brand-strong);
    background: #dff7ec;
}

.app-footer__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.page-subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.login-shell {
    display: grid;
    min-height: calc(100vh - 152px);
    place-items: center;
}

.auth-card {
    display: grid;
    width: min(440px, 100%);
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 24px;
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.field span,
.check-field {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.select2-container {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    color: var(--text);
    font-size: 0.92rem;
}

.select2-container .selection {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    color: var(--text);
    line-height: 40px;
    padding-left: 12px;
    padding-right: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.select2-dropdown {
    border-color: var(--line);
    border-radius: 8px;
    color: var(--text);
    overflow: hidden;
}

.select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    border: 1px solid #65b884;
    border-radius: 8px;
    background: #dcfce7;
    color: #14532d;
    font-weight: 700;
    outline: none;
    padding: 0 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #16834b;
    box-shadow: 0 0 0 3px rgba(22, 131, 75, 0.18);
}

.select2-container--default .select2-selection--multiple {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-results__option {
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--brand);
}

.filter-field--statement-account {
    min-width: 0;
}

.filter-field--statement-account .select2-container,
.filter-field--statement-account .select2-selection--single {
    min-width: 0;
    max-width: 100% !important;
}

.filter-field--statement-account .select2-selection__rendered {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ether-header {
    background: #123f3c;
    color: #fff;
    padding: 24px;
    border-radius: 8px;
}

.ether-header .eyebrow,
.ether-header .page-subtitle {
    color: #d5e8e6;
}

.ether-filter-grid {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.ether-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.ether-summary--compact {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.ether-stat--debit {
    border-left-color: #c0392b;
}

.ether-stat--debit strong,
.ether-debit {
    color: #a5281d;
}

.ether-credit {
    color: #137343;
    font-weight: 700;
}

.ether-reference {
    max-width: 320px;
    overflow-wrap: anywhere;
}

.ether-reconciliation {
    margin-bottom: 16px;
}

.ether-match-panel {
    margin: 0 16px 16px;
    overflow: hidden;
    border: 1px solid #bbdfc9;
    border-radius: 8px;
    background: #f2fbf5;
}

.ether-match-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: #116338;
}

.ether-match-panel > summary span {
    font-size: 0.86rem;
    font-weight: 700;
}

.ether-match-panel[open] > summary {
    border-bottom: 1px solid #bbdfc9;
}

.ether-missing-panel {
    margin: 0 16px 16px;
    overflow: hidden;
    border: 1px solid #f2c36b;
    border-radius: 8px;
    background: #fff9e8;
}

.ether-missing-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: #8a4b08;
}

.ether-missing-panel > summary span {
    font-size: 0.86rem;
    font-weight: 700;
}

.ether-missing-panel[open] > summary {
    border-bottom: 1px solid #f2c36b;
}

.ether-launch-action {
    display: grid;
    width: min(420px, 42vw);
    min-width: 280px;
    gap: 8px;
}

.ether-launch-action .select2-container,
.ether-launch-action .select2-selection--single,
.ether-launch-action .select2-selection__rendered {
    width: 100% !important;
    max-width: 100% !important;
}

.ether-launch-action .select2-selection__rendered {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ether-launch-action .button {
    width: 100%;
}

.ether-launch-action[aria-busy="true"] {
    opacity: 0.72;
}

.ether-launch-feedback {
    color: #991b1b;
    font-weight: 700;
}

.ether-launch-result {
    display: grid;
    gap: 6px;
    min-width: 190px;
}

.ether-launch-result small {
    color: #116338;
    font-weight: 700;
}

.data-table tbody tr.ether-launch-row--complete > td {
    background: #f2fbf5;
}

@media (max-width: 720px) {
    .ether-launch-action {
        width: min(300px, 76vw);
        min-width: 240px;
    }
}

.ether-button--success {
    border-color: #137343;
    background: #137343;
}

.ether-badge--danger {
    border-color: #fecaca;
    background: #fee2e2;
    color: #991b1b;
}

.ether-reconciliation .table-wrap,
.table-panel > .table-wrap {
    overflow-x: auto;
}

.ether-reconciliation .table-number,
.table-panel .table-number {
    text-align: right;
    white-space: nowrap;
}

.table-empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1100px) {
    .ether-filter-grid,
    .ether-summary,
    .ether-summary--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ether-filter-grid,
    .ether-summary,
    .ether-summary--compact {
        grid-template-columns: 1fr;
    }
}

.import-counterpart-field {
    width: 340px;
    max-width: 34vw;
    min-width: 240px;
    margin-top: 10px;
}

.import-counterpart-field .input,
.import-counterpart-field .select2-container {
    max-width: 100% !important;
}

.import-counterpart-field .select2-selection--single {
    max-width: 100%;
}

.import-counterpart-field .select2-selection__rendered {
    overflow: hidden;
    padding-right: 28px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-summary {
    margin-bottom: 18px;
}

.import-summary__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: var(--brand);
    cursor: pointer;
    font-weight: 800;
}

.import-summary__toggle::-webkit-details-marker {
    display: none;
}

.import-summary__toggle::after {
    content: 'Mostrar';
    color: var(--muted);
    font-size: 0.82rem;
}

.import-summary[open] .import-summary__toggle::after {
    content: 'Recolher';
}

.import-summary .stat-grid {
    margin-top: 14px;
    margin-bottom: 0;
}

.input--compact {
    min-height: 38px;
}

.input--amount-strong {
    font-size: 1.08rem;
    font-weight: 800;
}

.input--company-highlight,
.input--company-highlight + .select2-container .select2-selection--single {
    background: #fef3c7 !important;
}

.input--company-highlight + .select2-container .select2-selection__rendered {
    color: #854d0e !important;
    font-weight: 800;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-box {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    padding: 12px;
    font-size: 0.92rem;
}

.warning-box {
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    padding: 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.message-list {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding-left: 18px;
}

.error-page {
    display: grid;
    min-height: calc(100vh - 152px);
    place-items: center;
}

.error-panel {
    display: grid;
    width: min(680px, 100%);
    gap: 16px;
    border: 1px solid var(--line);
    border-left: 5px solid #b91c1c;
    border-radius: 8px;
    background: var(--panel);
    padding: 28px;
    box-shadow: var(--shadow);
}

.error-code {
    width: fit-content;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 800;
}

.error-panel p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.error-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.confirm-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(460px, 100%);
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    outline: none;
}

.confirm-modal__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.confirm-modal__dialog p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.confirm-modal__dialog--import-warning {
    width: min(680px, 100%);
    max-height: min(80vh, 720px);
    border-color: #f59e0b;
    overflow-y: auto;
}

.import-lock-warning__list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.import-lock-warning__list li {
    border-left: 4px solid #d97706;
    border-radius: 6px;
    background: #fffbeb;
    padding: 12px 14px;
}

.import-lock-warning__list strong,
.import-lock-warning__list span {
    display: block;
}

.import-lock-warning__list span {
    margin-top: 4px;
    color: #78350f;
    line-height: 1.45;
}

.confirm-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.4fr) repeat(3, minmax(220px, 1fr));
    gap: 14px;
}

.home-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
    display: flex;
    min-height: 168px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 20px;
    box-shadow: var(--shadow);
}

.home-card--primary {
    background: var(--brand-strong);
    color: #ffffff;
}

.home-card__label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-card--primary .home-card__label,
.home-card--primary p {
    color: rgba(255, 255, 255, 0.76);
}

.home-card h2,
.home-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.home-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-strong);
    padding: 0 14px;
    font-size: 0.92rem;
    font-weight: 700;
}

.text-link {
    width: fit-content;
    color: var(--brand-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.button-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.tree-level-card {
    border: 1px solid #d97706;
    border-radius: 8px;
    background: #fcd34d;
    padding: 10px;
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.16);
}

.tree-level-card .button--subtle {
    border-color: #ca8a04;
}

.inline-form {
    display: inline-flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-field {
    display: grid;
    gap: 5px;
}

.inline-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-panel {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 16px;
    box-shadow: var(--shadow);
}

.filter-panel--lancamentos-search {
    border-color: #2f6847;
    background: #397a52;
    box-shadow: 0 16px 32px rgba(22, 101, 52, 0.18);
}

.filter-panel--usuarios-search {
    border-color: #cbd5e1;
    background: #e5e7eb;
}

.whatsapp-transfer-alert {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    width: min(420px, calc(100vw - 32px));
    gap: 14px;
    border: 2px solid #16a34a;
    border-radius: 12px;
    background: #f0fdf4;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.whatsapp-transfer-alert[hidden] {
    display: none;
}

.whatsapp-transfer-alert__header,
.whatsapp-transfer-alert__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.whatsapp-transfer-alert__icon {
    font-size: 1.6rem;
}

.whatsapp-transfer-alert p {
    margin: 0;
    color: #166534;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .whatsapp-transfer-alert {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }
}

.filter-panel--lancamentos-search .filter-field > span {
    color: #ffffff;
}

.filter-panel--lancamentos-search .filter-action-card {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
}

.filter-panel--lancamentos-search .filter-action-card--danger {
    border-color: #991b1b;
    background: #b91c1c;
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

.filter-action-card--danger .button,
.filter-action-card--danger .pagination__link {
    border-color: #ffffff;
    background: #ffffff;
    color: #991b1b;
}

.filter-action-card--green {
    border-color: #14532d;
    background: #166534;
    box-shadow: 0 10px 24px rgba(20, 83, 45, 0.28);
}

.filter-action-card--green .button,
.filter-action-card--green .pagination__link {
    border-color: #ffffff;
    background: #ffffff;
    color: #14532d;
}

.filter-panel--medium-blue {
    border-color: #60a5fa;
    background: #bfdbfe;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.14);
}

.filter-panel--company-transfer {
    border-color: #eab308;
    background: #fef08a;
    box-shadow: 0 16px 32px rgba(161, 98, 7, 0.14);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.filter-field--wide {
    grid-column: span 2;
}

.filter-field--search-compact {
    max-width: 80%;
    width: 100%;
}

.filter-field--company-offset {
    margin-left: -20%;
    min-width: 0;
}

.filter-field--import-account {
    justify-self: start;
    margin-left: 20%;
    width: min(320px, 100%);
    min-width: 0;
}

.filter-field--import-account .input,
.filter-field--import-account .select2-container {
    max-width: min(320px, 100%) !important;
}

.filter-field--import-account .select2-selection--single,
.filter-field--import-account .select2-selection__rendered {
    max-width: 100%;
}

.filter-field--import-account .select2-selection__rendered {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-field .filter-field__label--strong-black {
    color: #000000;
    font-weight: 900;
}

.contas-pagar-filter-card {
    display: grid;
    align-self: stretch;
    gap: 12px;
    border: 2px solid #16a34a;
    border-radius: 10px;
    background: #dcfce7;
    padding: 12px;
}

.contas-pagar-filter-card--accounts {
    grid-column: span 3;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr);
}

.contas-pagar-filter-card--dates {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contas-pagar-filter-card--general {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contas-pagar-filter-card--general .filter-field--search-compact {
    max-width: none;
}

.contas-pagar-filter-card .filter-field > span {
    color: #14532d;
    font-weight: 900;
}

.contas-pagar-bulk-child-card {
    border: 3px solid #16a34a;
    border-radius: 12px;
    background: #dcfce7;
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.18);
    padding: 16px;
}

.contas-pagar-header-actions-card {
    border: 3px solid #16a34a;
    border-radius: 12px;
    background: #dcfce7;
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.18);
    padding: 12px;
}

.contas-pagar-date-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.contas-pagar-date-shortcuts .button {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.filter-action-card {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 12px;
}

.filter-action-card--full-submit .filter-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
}

.filter-action-card--full-submit .button {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
}

.filter-action-card--full-submit .pagination__link {
    justify-self: end;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.camera-workspace {
    display: grid;
}

.camera-workspace--control-mode {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.camera-workspace--control-mode .camera-viewer {
    position: fixed;
    z-index: 12;
    top: var(--camera-control-viewer-top, 12px);
    left: var(--camera-control-viewer-left, 24px);
    width: var(--camera-control-viewer-width, 420px);
}

.camera-workspace--control-mode .camera-viewer__footer {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.camera-workspace--control-mode .camera-control {
    grid-column: 2;
    min-width: 0;
    margin-top: 0;
}

.camera-viewer {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #09110e;
    box-shadow: 0 18px 45px rgba(3, 18, 12, 0.18);
}

.camera-viewer__screen {
    position: relative;
    display: grid;
    width: min(100%, 960px);
    aspect-ratio: 4 / 3;
    margin-inline: auto;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(28, 91, 65, 0.25), transparent 42%),
        #09110e;
}

.camera-viewer__image {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.camera-viewer__brand {
    position: absolute;
    z-index: 2;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.camera-viewer__brand[hidden] {
    display: none;
}

.camera-viewer__brand--monument {
    top: 4%;
    right: 4%;
    width: clamp(46.08px, 8.32%, 84.48px);
    max-height: 21.76%;
}

.camera-viewer__brand--netrubi {
    bottom: 7.5%;
    left: 4%;
    width: clamp(56.32px, 10.24%, 99.2px);
}

.camera-viewer__brand--custom {
    right: 4%;
    bottom: 7.5%;
    width: clamp(52px, 9%, 88px);
    max-height: 18%;
}

.camera-viewer__caption {
    position: absolute;
    z-index: 2;
    bottom: 7.5%;
    left: 50%;
    max-width: 72%;
    transform: translateX(-50%);
    color: var(--camera-overlay-color, #ffffff);
    font-family: inherit;
    font-size: clamp(12px, 1.9vw, 20px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 0 5px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    user-select: none;
}

.camera-viewer__caption[hidden] {
    display: none;
}

.camera-viewer[data-camera-source] .camera-viewer__brand--custom-fullscreen {
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: fill;
}

.camera-viewer__datetime {
    position: absolute;
    z-index: 2;
    top: 4%;
    left: 4%;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: clamp(12px, 1.8vw, 18px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    user-select: none;
}

.camera-viewer__datetime[hidden] {
    display: none;
}

.camera-viewer__message {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    color: #f2f8f5;
    text-align: center;
}

.camera-viewer__message[hidden] {
    display: none;
}

.camera-viewer__message span:last-child {
    color: #a9bcb3;
}

.camera-viewer__spinner {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #55d59d;
    border-radius: 50%;
    animation: camera-spin 0.8s linear infinite;
}

.camera-viewer[data-state="error"] .camera-viewer__spinner {
    display: none;
}

.camera-viewer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    background: #101d18;
    color: #a9bcb3;
}

.camera-viewer__status {
    display: inline-flex;
    align-items: center;
    color: #f2f8f5;
    font-weight: 700;
}

.camera-viewer__status > span:first-child {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #eab308;
}

.camera-viewer[data-state="online"] .camera-viewer__status > span:first-child {
    background: #3bd487;
    box-shadow: 0 0 0 4px rgba(59, 212, 135, 0.14);
}

.camera-viewer[data-state="error"] .camera-viewer__status > span:first-child {
    background: #ef4444;
}

.camera-control {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 14px 32px rgba(3, 18, 12, 0.1);
}

.camera-control__movement-card {
    padding: 18px;
    border: 1px solid #facc15;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    box-shadow: 0 10px 24px rgba(202, 138, 4, 0.16);
}

.camera-control__movement-card .eyebrow,
.camera-control__movement-card .camera-control__header h2 {
    color: #713f12;
}

.camera-control__movement-card .camera-control__header p:last-child,
.camera-control__movement-card .camera-control__status small {
    color: #854d0e;
}

.camera-control__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.camera-control__header h2 {
    margin: 2px 0 5px;
}

.camera-control__header p:last-child {
    margin: 0;
    color: var(--muted);
}

.camera-control__status {
    display: grid;
    justify-items: end;
    gap: 6px;
    max-width: 360px;
    text-align: right;
}

.camera-control__status small {
    color: var(--muted);
    line-height: 1.35;
}

.camera-control__availability {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(22, 137, 90, 0.11);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.camera-control[data-control-state="active"] .camera-control__availability {
    background: rgba(234, 179, 8, 0.15);
    color: #8a6500;
}

.camera-control[data-control-state="error"] .camera-control__availability {
    background: rgba(239, 68, 68, 0.12);
    color: #b42318;
}

.camera-control__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
}

.camera-control__movement-controls {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(280px, 1fr);
    align-items: center;
    gap: 28px;
}

.camera-control__movement-settings {
    display: grid;
    gap: 16px;
}

.camera-control__direction {
    display: grid;
    grid-template-columns: repeat(3, 64px);
    justify-content: center;
    gap: 8px;
}

.camera-control__direction button {
    display: grid;
    place-items: center;
    width: 64px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f3f7f5;
    color: var(--brand);
    font-size: 1.55rem;
    font-weight: 900;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.camera-control__direction button:hover,
.camera-control__direction button:focus-visible,
.camera-control__direction button.is-active,
.camera-control__zoom button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.camera-control__direction button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.camera-control__direction .camera-control__home {
    background: var(--brand);
    color: #ffffff;
    font-size: 1.35rem;
}

.camera-control__settings {
    display: grid;
    gap: 18px;
}

.camera-control__zoom {
    display: flex;
    gap: 10px;
}

.camera-control__zoom button {
    min-width: 112px;
    touch-action: none;
    user-select: none;
}

.camera-control__speed {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) 32px;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.camera-control__speed input {
    width: 100%;
    accent-color: var(--brand);
}

.camera-control__speed output {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.camera-control__audio-sources,
.camera-control__image-visibility,
.camera-control__custom-image {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.camera-control__custom-image {
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.camera-control__image-library {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid #064e3b;
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b, #14532d);
    box-shadow: 0 12px 28px rgba(6, 78, 59, 0.26);
}

.camera-control__layer-library {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(209, 250, 229, 0.38);
}

.camera-control__layer-library-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.camera-control__layer-library-header > div {
    display: grid;
    gap: 4px;
}

.camera-control__layer-library-header > div > span {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.camera-control__layer-library-header small,
.camera-control__layer-library > small {
    color: #d1fae5;
    line-height: 1.45;
}

.camera-control__layer-library-header form {
    display: flex;
    width: min(100%, 470px);
    align-items: center;
    gap: 10px;
}

.camera-control__layer-library-header form .input {
    min-width: 0;
}

.camera-control__layer-library-header form .button {
    flex: 0 0 auto;
}

.camera-control__layer-create-card {
    padding: 14px;
    border: 1px solid #1d4ed8;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24);
}

.camera-control__layer-create-card .input {
    border-color: rgba(255, 255, 255, 0.72);
    background: #fff;
    color: #0f172a;
}

.camera-control__layer-create-card .input::placeholder {
    color: #64748b;
}

.camera-control__layer-create-card .button {
    border-color: #fff;
    background: #fff;
    color: #1d4ed8;
}

.camera-control__layer-create-card .button:hover {
    border-color: #dbeafe;
    background: #dbeafe;
    color: #1e40af;
}

.camera-control__layer-list {
    display: grid;
    gap: 14px;
}

.camera-control__layer-card {
    border-left: 4px solid var(--brand);
}

.camera-control__layer-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.camera-control__layer-header-actions .button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.8rem;
}

.camera-control__layer-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #aebdca;
    border-radius: 10px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
}

.camera-control__layer-empty[hidden] {
    display: none;
}

.camera-control__custom-image-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.camera-control__custom-image-header > div {
    display: grid;
    gap: 3px;
}

.camera-control__custom-image-header span {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

.camera-control__custom-image-header strong {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(22, 137, 90, 0.11);
    color: var(--brand);
    font-size: 0.78rem;
}

.camera-control__audio-sources > span,
.camera-control__image-visibility > span,
.camera-control__custom-image > span {
    color: var(--muted);
    font-weight: 700;
}

.camera-control__custom-image > span {
    color: var(--text);
    font-size: 1rem;
}

.camera-control__audio-sources > div,
.camera-control__image-visibility > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.camera-control__audio-sources button,
.camera-control__image-visibility button {
    min-width: 180px;
}

.camera-control__audio-sources small,
.camera-control__image-visibility small,
.camera-control__custom-image small {
    color: var(--muted);
    line-height: 1.45;
}

.camera-control__audio-sources {
    gap: 10px;
    padding: 16px;
    border: 1px solid #93c5fd;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.camera-control__audio-sources > span {
    color: #1e3a8a;
    font-size: 1rem;
    font-weight: 800;
}

.camera-control__audio-sources small {
    color: #1e40af;
}

.camera-control__facebook-live {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #2563eb;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.24);
}

.camera-control__facebook-live-header,
.camera-control__facebook-live-actions,
.camera-control__facebook-live-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.camera-control__facebook-live-header > div {
    display: grid;
    gap: 3px;
}

.camera-control__facebook-live-header span {
    font-size: 1.05rem;
    font-weight: 850;
}

.camera-control__facebook-live-header small,
.camera-control__facebook-live-details small {
    color: #dbeafe;
}

.camera-control__facebook-live-header strong {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    font-size: 0.8rem;
}

.camera-control__facebook-live > p {
    margin: 0;
    color: #ffffff;
    line-height: 1.45;
}

.camera-control__facebook-live-actions {
    justify-content: flex-start;
}

.camera-control__facebook-authorization {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.24);
}

.camera-control__facebook-authorization > div:first-child {
    display: grid;
    gap: 4px;
}

.camera-control__facebook-authorization small {
    color: #dbeafe;
}

.camera-control__facebook-authorization-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.camera-control__facebook-authorization-actions form {
    margin: 0;
}

.camera-control__facebook-live-actions .button {
    min-width: 210px;
}

.camera-control__facebook-live .button[data-camera-facebook-start] {
    border-color: #16a34a !important;
    background: #16a34a !important;
}

.camera-control__facebook-live .button[data-camera-facebook-start]:hover {
    border-color: #15803d !important;
    background: #15803d !important;
}

.camera-control__facebook-live .button[data-camera-facebook-stop] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
}

.camera-control__facebook-live .button[data-camera-facebook-stop]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.camera-control__facebook-live .button:disabled {
    border-color: #64748b !important;
    background: #64748b !important;
    opacity: 0.68;
}

.camera-control__facebook-live-error {
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.78);
    color: #fee2e2;
    line-height: 1.4;
}

.camera-control__facebook-live[data-state="streaming"] {
    border-color: #22c55e;
}

.camera-control__facebook-live[data-state="streaming"] .camera-control__facebook-live-header strong {
    border-color: #86efac;
    background: #166534;
}

.camera-control__facebook-live[data-state="cooldown"] {
    border-color: #fbbf24;
}

.camera-control__facebook-live[data-state="cooldown"] .camera-control__facebook-live-header strong {
    border-color: #fde68a;
    background: #92400e;
}

.camera-control__facebook-live[data-state="error"] {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
}

.camera-control__image-visibility {
    gap: 10px;
    padding: 16px;
    border: 1px solid #86efac;
    border-radius: 14px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.14);
}

.camera-control__image-visibility > span {
    color: #14532d;
    font-size: 1rem;
    font-weight: 800;
}

.camera-control__image-visibility small {
    color: #166534;
}

.camera-control__custom-image-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.camera-control__custom-image-preview {
    display: grid;
    flex: 0 0 112px;
    width: 112px;
    height: 84px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(45deg, rgba(127, 127, 127, 0.08) 25%, transparent 25%) 0 0 / 16px 16px,
        linear-gradient(-45deg, rgba(127, 127, 127, 0.08) 25%, transparent 25%) 0 8px / 16px 16px,
        var(--panel);
    place-items: center;
}

.camera-control__custom-image-preview[hidden] {
    display: none;
}

.camera-control__custom-image-preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.camera-control__custom-image-preview img[hidden],
.camera-control__custom-image-preview span[hidden] {
    display: none;
}

.camera-control__custom-image-preview span {
    padding: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: center;
}

.camera-control__custom-image form {
    display: grid;
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.camera-control__custom-image form > label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.camera-control__custom-image form > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.camera-control__custom-image-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.camera-control__custom-image-controls > div {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
}

.camera-control__custom-image-controls > div[hidden] {
    display: none;
}

.camera-control__custom-image-controls span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.camera-control__custom-image-controls button {
    width: 100%;
    min-height: 42px;
}

.camera-control__custom-image input[type="file"] {
    width: 100%;
}

.camera-control__preset > label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-weight: 700;
}

.camera-control__preset > div {
    display: flex;
    gap: 10px;
}

.camera-control__preset select {
    flex: 1 1 auto;
}

.camera-control__preset--save {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.camera-control__preset--save .camera-control__preset-id {
    flex: 0 0 88px;
    min-width: 0;
}

.camera-control__preset--save input[type="text"] {
    flex: 1 1 190px;
    min-width: 0;
}

.camera-control__preset--save small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.45;
}

.camera-control__preset-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid #1d4ed8;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24);
}

.camera-control__preset-card .camera-control__preset > label {
    color: #fff;
}

.camera-control__preset-card .camera-control__preset--save {
    border-top-color: rgba(255, 255, 255, 0.38);
}

.camera-control__preset-card .input {
    border-color: rgba(255, 255, 255, 0.72);
    background: #fff;
    color: #0f172a;
}

.camera-control__preset-card .camera-control__preset--save small {
    color: #dbeafe;
}

.camera-control__overlay {
    padding: 18px;
    border: 1px solid #064e3b;
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b, #14532d);
    box-shadow: 0 12px 28px rgba(6, 78, 59, 0.26);
}

.camera-control__overlay > label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.camera-control__overlay > form[data-camera-overlay-form] {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
    align-items: stretch;
    gap: 10px;
}

.camera-control__color {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.camera-control__color input {
    width: 34px;
    height: 34px;
    padding: 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.camera-control__overlay > small {
    display: block;
    margin-top: 10px;
    color: #d1fae5;
    line-height: 1.45;
}

.camera-control__text-preset-library {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(209, 250, 229, 0.38);
}

.camera-control__text-preset-heading {
    display: grid;
    gap: 4px;
}

.camera-control__text-preset-heading strong {
    color: #ffffff;
    font-size: 1rem;
}

.camera-control__text-preset-heading small,
.camera-control__text-preset-library > small {
    color: #d1fae5;
    line-height: 1.45;
}

.camera-control__text-preset-create-card {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(220px, 1fr) auto auto;
    gap: 10px;
    padding: 14px;
    border: 1px solid #1d4ed8;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24);
}

.camera-control__text-preset-list {
    display: grid;
    gap: 12px;
}

.camera-control__text-preset-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d7e2dd;
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.camera-control__text-preset-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.camera-control__text-preset-card-header strong {
    color: var(--text);
    font-size: 1rem;
}

.camera-control__text-preset-card > form {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
}

.camera-control__text-preset-card > form > label:not(.camera-control__color) {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.camera-control__text-preset-card > .button {
    justify-self: start;
    min-width: 180px;
}

.camera-control__text-preset-card > small {
    color: var(--muted);
    line-height: 1.45;
}

.camera-control__text-preset-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed rgba(209, 250, 229, 0.7);
    border-radius: 10px;
    color: #d1fae5;
    text-align: center;
}

.camera-control__text-preset-empty[hidden] {
    display: none;
}

@keyframes camera-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .camera-workspace--control-mode {
        grid-template-columns: 1fr;
    }

    .camera-workspace--control-mode .camera-viewer {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 560px);
        justify-self: center;
    }

    .camera-workspace--control-mode .camera-control {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .camera-viewer__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .camera-control__header {
        flex-direction: column;
    }

    .camera-control__status {
        justify-items: start;
        max-width: none;
        text-align: left;
    }

    .camera-control__custom-image-header {
        flex-direction: column;
    }

    .camera-control__layer-library-header,
    .camera-control__layer-library-header form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .camera-control__layer-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .camera-control__body {
        grid-template-columns: 1fr;
    }

    .camera-control__movement-controls,
    .camera-control__custom-image-controls {
        grid-template-columns: 1fr;
    }

    .camera-control__preset > div,
    .camera-control__zoom,
    .camera-control__audio-sources > div,
    .camera-control__image-visibility > div,
    .camera-control__custom-image-content,
    .camera-control__custom-image form > div {
        flex-direction: column;
        align-items: stretch;
    }

    .camera-control__audio-sources button,
    .camera-control__image-visibility button,
    .camera-control__custom-image button,
    .camera-control__facebook-live-actions .button,
    .camera-control__facebook-authorization-actions,
    .camera-control__facebook-authorization-actions .button,
    .camera-control__facebook-authorization-actions form {
        width: 100%;
    }

    .camera-control__custom-image-preview {
        flex-basis: 84px;
    }

    .camera-control__preset--save .camera-control__preset-id,
    .camera-control__preset--save input[type="text"] {
        width: 100%;
    }

    .camera-control__overlay > form[data-camera-overlay-form],
    .camera-control__text-preset-create-card,
    .camera-control__text-preset-card > form {
        grid-template-columns: 1fr;
    }

    .camera-control__color {
        min-height: 44px;
        justify-content: space-between;
    }

    .camera-control__zoom button {
        width: 100%;
    }
}

.spacing-top {
    margin-top: 18px;
}

.spacing-bottom {
    margin-bottom: 18px;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.summary-list {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.summary-list strong {
    color: var(--text);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 2rem;
    line-height: 1.15;
}

h2 {
    font-size: 1.1rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 108px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: 8px;
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.55rem;
    line-height: 1.1;
}

.stat-card--success {
    border-left-color: var(--green);
}

.stat-card--warning {
    border-left-color: var(--amber);
}

.stat-card--accent {
    border-left-color: var(--blue);
}

.table-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.table-panel__context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #eff6ff;
}

.table-panel__context span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-panel__context strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.table-panel__context small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.table-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.table-panel__header p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.table-panel__header--danger {
    background: #dc2626;
    color: #ffffff;
}

.table-panel__header--danger p {
    color: #ffffff;
}

.table-panel--collapsible > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.table-panel--collapsible > summary::-webkit-details-marker {
    display: none;
}

.table-panel--collapsible > summary::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    content: "Expandir";
    font-size: 0.82rem;
    font-weight: 800;
}

.table-panel--collapsible[open] > summary::after {
    content: "Recolher";
}

.table-panel--collapsible > summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: -3px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
}

.table-auto {
    min-width: 720px;
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--blue-soft);
    color: #1d4f91;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

tfoot td {
    background: #f8fafc;
    color: var(--text);
    font-weight: 900;
    border-top: 2px solid var(--line);
}

.sort-button {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-transform: inherit;
}

.sort-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

.sort-button:hover .sort-label {
    text-decoration: underline;
}

.sort-indicator::before {
    content: "-";
    display: inline-block;
    min-width: 10px;
    color: #1d4f91;
    font-size: 0.72rem;
    opacity: 0.65;
}

th[aria-sort="ascending"] .sort-indicator::before {
    content: "^";
    opacity: 1;
}

th[aria-sort="descending"] .sort-indicator::before {
    content: "v";
    opacity: 1;
}

.text-right .sort-button {
    justify-content: flex-end;
}

td {
    font-size: 0.94rem;
}

td strong,
td span {
    display: block;
}

td span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.84rem;
}

.account-code-cell {
    box-shadow: inset 4px 0 0 rgba(15, 23, 42, 0.08);
}

.account-code-cell--blue {
    background: #dbeafe !important;
}

.account-code-cell--blue strong {
    color: #1d4ed8;
}

.account-code-cell--red {
    background: #fee2e2 !important;
}

.account-code-cell--red strong {
    color: #b91c1c;
}

.account-code-field--blue,
.account-code-field--blue .select2-selection--single {
    background: #dbeafe !important;
}

.account-code-field--blue .select2-selection__rendered {
    color: #1d4ed8 !important;
    font-weight: 800;
}

.account-code-field--red,
.account-code-field--red .select2-selection--single {
    background: #fee2e2 !important;
}

.account-code-field--red .select2-selection__rendered {
    color: #b91c1c !important;
    font-weight: 800;
}

.tree-description {
    padding-left: calc(20px + (var(--tree-level, 0) * 28px));
}

.tree-description strong,
.tree-description__button {
    position: relative;
}

.tree-description--small strong {
    font-size: 0.84rem;
    font-weight: 400;
}

.tree-description__button {
    all: unset;
    display: inline-block;
    color: var(--brand-strong);
    cursor: pointer;
    font-weight: 800;
}

.tree-description__button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.tree-description__button:hover {
    text-decoration: underline;
}

.tree-description[data-tree-level="1"] strong::before,
.tree-description[data-tree-level="2"] strong::before,
.tree-description[data-tree-level="3"] strong::before,
.tree-description[data-tree-level="4"] strong::before,
.tree-description[data-tree-level="5"] strong::before,
.tree-description[data-tree-level="6"] strong::before,
.tree-description[data-tree-level="7"] strong::before,
.tree-description[data-tree-level="8"] strong::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -16px;
    width: 9px;
    border-top: 1px solid #94a3b8;
}

tbody tr:nth-child(odd) {
    background: #fff1f2;
}

tbody tr:nth-child(even) {
    background: #fffbeb;
}

tbody tr:hover {
    background: #eef6ff;
}

.statement-table tbody tr + tr > td {
    border-top: 2px solid #dc2626;
}

.contas-pagar-table tbody tr + tr > td {
    border-top: 3px solid #111827;
}

.contas-pagar-table thead th {
    border-top: 3px solid #111827;
    border-bottom: 3px solid #111827;
}

.contas-pagar-table thead th + th,
.contas-pagar-table tbody td + td,
.contas-pagar-table tfoot td + td {
    border-left: 2px solid #eab308;
}

.contas-pagar-table thead th:first-child {
    border-left: 3px solid #b91c1c;
}

.contas-pagar-table thead th:last-child {
    border-right: 3px solid #b91c1c;
}

.contas-pagar-table tbody tr:first-child > td {
    border-top: 3px solid #111827;
}

.contas-pagar-table tbody tr:last-child > td {
    border-bottom: 3px solid #111827;
}

.contas-pagar-table tbody tr > td:first-child {
    border-left: 3px solid #b91c1c;
}

.contas-pagar-table tbody tr > td:last-child {
    border-right: 3px solid #b91c1c;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.text-right {
    text-align: right;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: var(--brand-strong);
    padding: 0 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.table-action:hover {
    background: #ecfdf5;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.table-actions--stacked {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 160px;
}

.table-actions--stacked .table-action,
.table-actions--stacked form {
    width: 100%;
}

.table-actions--stacked .table-action {
    justify-content: center;
}

.user-action-card {
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    padding: 10px;
    box-shadow: 0 5px 14px rgb(15 23 42 / 10%);
}

.user-action-card .table-action {
    min-height: 40px;
    white-space: normal;
    text-align: center;
}

.whatsapp-payable-recipient {
    position: relative;
    width: 100%;
}

.whatsapp-payable-recipient > summary {
    list-style: none;
    cursor: pointer;
}

.whatsapp-payable-recipient > summary::-webkit-details-marker {
    display: none;
}

.table-actions--stacked .whatsapp-payable-recipient > form {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 10px;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    background: #eff6ff;
    padding: 14px;
    box-shadow: 0 16px 35px rgb(15 23 42 / 22%);
}

.whatsapp-payable-recipient label {
    display: grid;
    gap: 6px;
    color: #1e3a8a;
    font-size: .8rem;
    font-weight: 800;
    text-align: left;
}

.table-transfer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #eff6ff;
    padding: 8px;
}

.table-transfer-card__title {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.table-lancamento-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px;
}

.table-lancamento-card__title {
    margin: 0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.bulk-selection {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.bulk-selection input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.balance-selection {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.balance-selection input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.selection-summary {
    margin-top: 4px;
    color: var(--brand-strong);
    font-weight: 800;
}

.contas-pagar-table tr.is-sum-selected > td {
    background: #f0fdf4;
}

.contas-pagar-table tr.is-sum-selected > td:first-child {
    box-shadow: inset 4px 0 #16a34a;
}

.table-check-form {
    margin: 0;
}

.table-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 4px 9px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.table-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.table-check--success {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.table-check--success input {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

.table-check--danger {
    border-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.table-check--danger input {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.table-check--disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

button.table-action {
    cursor: pointer;
    background: #ffffff;
    font-family: inherit;
}

.table-action--danger {
    border-color: #dc2626;
    color: #b91c1c;
}

.table-action--danger:hover {
    background: #fef2f2;
}

.table-action--warning {
    border-color: var(--amber);
    color: #92400e;
}

.table-action--warning:hover {
    background: #fffbeb;
}

.table-action.table-action--pix-sent {
    border-color: #ca8a04;
    background: #facc15;
    color: #422006;
}

.table-action.table-action--pix-sent:hover {
    border-color: #a16207;
    background: #eab308;
    color: #422006;
}

.table-action.table-action--pix {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.table-action.table-action--pix:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.form-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.form-panel__top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.form-panel__top-actions form {
    margin: 0;
}

.contas-pagar-save-action {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
}

.form-panel__top-actions > .contas-pagar-save-action {
    order: -1;
    flex: 1 0 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}

.form-grid__full {
    grid-column: 1 / -1;
}

.form-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    background: #f8fbff;
    padding: 16px;
}

.form-card__header strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.form-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-card__full {
    grid-column: 1 / -1;
}

.success-box {
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    padding: 12px;
    font-size: 0.92rem;
}

.receipt-shell {
    border-radius: 8px;
    background: #e5e7eb;
    padding: 34px;
}

.receipt-sheet {
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
}

.receipt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    background: #000000;
    color: #ffffff;
    padding: 22px 28px;
}

.receipt-topbar div {
    display: grid;
    gap: 2px;
}

.receipt-topbar strong {
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 0;
}

.receipt-topbar span {
    color: #ffffff;
    font-size: 1.1rem;
}

.receipt-body {
    display: grid;
    gap: 24px;
    padding: 36px 48px 42px;
}

.receipt-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.receipt-title-row h2,
.receipt-section h3 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
}

.receipt-title-row strong {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 900;
}

.receipt-section {
    display: grid;
    gap: 18px;
}

.receipt-divider {
    height: 1px;
    background: #e5e7eb;
}

.receipt-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #111827;
    font-size: 0.98rem;
}

.receipt-line strong {
    flex: 0 0 auto;
    color: #111827;
    font-weight: 900;
}

.receipt-line span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #7a7f87;
    font-weight: 700;
}

.receipt-line--strong span {
    color: #6b7280;
    font-weight: 900;
}

.field-feedback {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.field-feedback--error {
    color: #b91c1c;
}

.field-feedback--success {
    color: #166534;
}

.field-feedback--muted {
    color: var(--muted);
}

.input--invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.input--danger-editable {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.input--danger-editable::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.input--danger-editable:focus {
    border-color: #991b1b;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.input--valid {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.muted-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--muted);
    padding: 12px;
    font-size: 0.92rem;
}

.muted-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.muted-box p {
    margin: 0;
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 0 12px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.check-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.check-card--featured {
    min-height: 70px;
    border-left: 5px solid var(--brand);
    padding: 14px 16px;
    cursor: pointer;
}

.check-card--featured input {
    width: 20px;
    height: 20px;
}

.check-card--featured span {
    font-size: 1rem;
    font-weight: 800;
}

.check-card--danger-outline {
    border: 4px solid #dc2626;
    background: #fef2f2;
    box-shadow: 0 0 0 2px #7f1d1d;
}

.check-card--danger-outline input {
    accent-color: #b91c1c;
}

.check-card--danger-outline .check-card__checkbox-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 4px solid #dc2626;
    border-radius: 50%;
    background: #fee2e2;
    box-shadow: 0 0 0 2px #7f1d1d;
}

.check-card--danger-outline .check-card__checkbox-circle input {
    margin: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions--start {
    justify-content: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge--success {
    background: #dcfce7;
    color: #166534;
}

.badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.badge--muted {
    background: #e2e8f0;
    color: #475569;
}

.badge--neutral {
    background: #dbeafe;
    color: #1d4ed8;
}

.empty-row {
    height: 96px;
    color: var(--muted);
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.pagination__link {
    background: var(--panel);
    color: var(--text);
}

.pagination__link--disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.pagination__status {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid,
    .form-grid,
    .toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contas-pagar-filter-card {
        grid-column: 1 / -1;
    }

    .contas-pagar-filter-card--general {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.internal-message-alert {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 32px));
    border: 1px solid #99f6e4;
    border-left: 5px solid #0f766e;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgb(15 23 42 / 24%);
    padding: 20px;
}

.internal-message-alert[hidden] { display: none; }
.internal-message-alert__eyebrow { display: block; color: #0f766e; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.internal-message-alert strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.internal-message-alert p { margin: 10px 0 16px; color: #334155; line-height: 1.5; }
.internal-message-alert__close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #64748b; cursor: pointer; font-size: 1.6rem; }
.internal-message-alert__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.internal-message-alert__footer small { color: #64748b; }

@media (max-width: 600px) {
    .internal-message-alert { right: 16px; bottom: 16px; }
}

.page-refresh-wait {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.page-refresh-wait[hidden] {
    display: none;
}

.page-refresh-wait__card {
    display: grid;
    width: min(410px, 100%);
    place-items: center;
    gap: 12px;
    border: 1px solid #86c9a2;
    border-radius: 16px;
    background: #fff;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.page-refresh-wait__card strong {
    color: #14532d;
    font-size: 1.2rem;
}

.page-refresh-wait__card > span:last-child {
    color: var(--muted);
    line-height: 1.5;
}

.page-refresh-wait__spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #bbf7d0;
    border-top-color: #15803d;
    border-radius: 50%;
    animation: page-refresh-spin 0.72s linear infinite;
}

.is-refreshing {
    pointer-events: none;
    opacity: 0.68;
}

@keyframes page-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .home-header,
    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        min-height: 0;
        gap: 10px;
        padding: 8px 0;
    }

    .brand__mark {
        width: 52px;
        height: 52px;
        border-radius: 8px;
    }

    .brand__text {
        min-width: 0;
    }

    .brand__text strong,
    .brand__text small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar__toggle {
        display: inline-grid;
    }

    .nav {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        justify-content: flex-start;
        max-height: calc(100dvh - 78px);
        overflow-y: auto;
        padding: 10px 0 4px;
        border-top: 1px solid var(--line);
        overscroll-behavior: contain;
    }

    .nav.nav--mobile-open {
        display: grid;
    }

    .nav > a,
    .nav > button,
    .nav > form,
    .nav > form .nav__button {
        width: 100%;
        min-width: 0;
    }

    .nav__link,
    .nav__pill,
    .nav__button {
        justify-content: flex-start;
        min-height: 44px;
        text-align: left;
    }

    .app-footer__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .app-footer__meta {
        text-align: center;
    }

    .app-footer__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-footer__button {
        min-width: 0;
        padding: 0 8px;
    }

    .app-footer__button--primary {
        grid-column: 1 / -1;
    }

    h1 {
        font-size: 1.55rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .home-grid,
    .home-grid--three {
        grid-template-columns: 1fr;
    }

    .filter-grid,
    .form-grid,
    .toggle-grid {
        grid-template-columns: 1fr;
    }

    .filter-field--wide {
        grid-column: auto;
    }

    .filter-field--search-compact {
        max-width: none;
    }

    .filter-field--company-offset {
        margin-left: 0;
    }

    .contas-pagar-filter-card {
        grid-template-columns: 1fr;
    }

    .contas-pagar-filter-card--general {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .filter-actions .button,
    .filter-actions .pagination__link {
        flex: 1;
    }

    .table-panel__context,
    .table-panel__header,
    th,
    td {
        padding-left: 14px;
        padding-right: 14px;
    }

    .receipt-shell {
        padding: 12px;
    }

    .receipt-topbar,
    .receipt-title-row,
    .receipt-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .receipt-body {
        padding: 24px 18px 28px;
    }
}

.audit-user,
.audit-route {
    min-width: 220px;
}

.audit-user strong,
.audit-user small,
.audit-route strong,
.audit-route small {
    display: block;
    overflow-wrap: anywhere;
}

.audit-user small,
.audit-route small {
    margin-top: 4px;
    color: var(--muted);
}

.audit-permission-summary {
    display: block;
    max-width: 360px;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    font-weight: 750;
}

.audit-stat-date {
    font-size: 1rem !important;
}

.audit-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.audit-detail-grid > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.audit-detail-grid__wide {
    grid-column: 1 / -1;
}

.audit-detail-grid dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.audit-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 700;
}

.audit-permission-sections {
    display: grid;
    gap: 0;
}

.audit-permission-sections > div {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.audit-permission-sections > div:last-child {
    border-bottom: 0;
}

.audit-permission-sections h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.audit-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .audit-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .audit-detail-grid {
        grid-template-columns: 1fr;
    }

    .audit-detail-grid__wide {
        grid-column: auto;
    }
}

/* Padrao visual global dos botoes. */
.button,
.nav__button,
.nav__icon-button,
.app-footer__button,
.home-card__action,
.table-action,
button.table-action,
.pagination__link {
    border-color: var(--green) !important;
    background: var(--green) !important;
    color: #ffffff !important;
}

.button:hover,
.nav__button:hover,
.nav__icon-button:hover,
.app-footer__button:hover,
.home-card__action:hover,
.table-action:hover,
button.table-action:hover,
.pagination__link:hover {
    border-color: #166534 !important;
    background: #166534 !important;
    color: #ffffff !important;
}

.button.button--blue {
    border-color: var(--blue) !important;
    background: var(--blue) !important;
    color: #ffffff !important;
}

.button.button--blue:hover {
    border-color: #1d4ed8 !important;
    background: #1d4ed8 !important;
}

.button[data-camera-audio-source="panasonic"][aria-pressed="true"],
.button[data-camera-audio-source="microphone"][aria-pressed="true"] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-audio-source="panasonic"][aria-pressed="true"]:hover,
.button[data-camera-audio-source="microphone"][aria-pressed="true"]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button[data-camera-audio-source="panasonic"][aria-pressed="false"],
.button[data-camera-audio-source="microphone"][aria-pressed="false"] {
    border-color: var(--green) !important;
    background: var(--green) !important;
    color: #ffffff !important;
}

.button[data-camera-image-visibility][aria-pressed="true"] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-image-visibility][aria-pressed="true"]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button[data-camera-image-visibility][aria-pressed="false"] {
    border-color: var(--green) !important;
    background: var(--green) !important;
    color: #ffffff !important;
}

.button[data-camera-overlay-clear] {
    grid-column: 1 / -1;
    width: 100%;
    border-color: #f97316 !important;
    background: #f97316 !important;
    color: #ffffff !important;
    white-space: nowrap;
}

.button[data-camera-overlay-clear]:hover {
    border-color: #ea580c !important;
    background: #ea580c !important;
}

.button[data-camera-text-preset-delete] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-text-preset-delete]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button[data-camera-custom-image-toggle][aria-pressed="true"] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-custom-image-toggle][aria-pressed="true"]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button[data-camera-custom-image-toggle][aria-pressed="false"] {
    border-color: var(--green) !important;
    background: var(--green) !important;
    color: #ffffff !important;
}

.button[data-camera-custom-image-mode][aria-pressed="true"] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-custom-image-mode][aria-pressed="true"]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button[data-camera-custom-image-mode][aria-pressed="false"] {
    border-color: var(--green) !important;
    background: var(--green) !important;
    color: #ffffff !important;
}

.button[data-camera-layer-visibility][aria-pressed="true"],
.button[data-camera-layer-mode][aria-pressed="true"],
.button[data-camera-layer-delete] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-layer-visibility][aria-pressed="true"]:hover,
.button[data-camera-layer-mode][aria-pressed="true"]:hover,
.button[data-camera-layer-delete]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button[data-camera-layer-visibility][aria-pressed="false"],
.button[data-camera-layer-mode][aria-pressed="false"] {
    border-color: var(--green) !important;
    background: var(--green) !important;
    color: #ffffff !important;
}

.button[data-camera-control-mode][aria-pressed="true"] {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

.button[data-camera-control-mode][aria-pressed="true"]:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.button:disabled,
.table-action:disabled,
.pagination__link--disabled {
    color: #ffffff !important;
    opacity: 0.55;
}

/* Sensação física de pressionamento em todos os controles com aparência de botão. */
button,
.button,
.nav__link,
.nav__pill,
.nav__button,
.nav__icon-button,
.app-footer__button,
.home-card__action,
.table-action,
.pagination__link,
[role="button"] {
    transform-origin: center;
    transition: transform 90ms ease, box-shadow 90ms ease, filter 90ms ease;
}

button:not(:disabled):active,
button.is-pressed:not(:disabled),
.button:not([aria-disabled="true"]):active,
.button.is-pressed:not([aria-disabled="true"]),
.nav__link:active,
.nav__link.is-pressed,
.nav__pill:active,
.nav__pill.is-pressed,
.nav__button:not(:disabled):active,
.nav__button.is-pressed:not(:disabled),
.nav__icon-button:not(:disabled):active,
.nav__icon-button.is-pressed:not(:disabled),
.app-footer__button:not(:disabled):active,
.app-footer__button.is-pressed:not(:disabled),
.home-card__action:active,
.home-card__action.is-pressed,
.table-action:not(:disabled):active,
.table-action.is-pressed:not(:disabled),
.pagination__link:not(.pagination__link--disabled):active,
.pagination__link.is-pressed:not(.pagination__link--disabled),
[role="button"]:not([aria-disabled="true"]):active,
[role="button"].is-pressed:not([aria-disabled="true"]) {
    transform: translateY(3px) scale(0.98);
    box-shadow: inset 0 4px 8px rgba(15, 23, 42, 0.4), 0 1px 1px rgba(15, 23, 42, 0.18) !important;
    filter: brightness(0.88);
}

@media print {
    body {
        background: #ffffff;
    }

    .topbar,
    .app-footer,
    .receipt-actions {
        display: none !important;
    }

    .page {
        padding: 0;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .receipt-shell {
        border-radius: 0;
        background: #ffffff;
        padding: 0;
    }

    .receipt-sheet {
        border: 0;
        border-radius: 0;
    }

    .receipt-body {
        padding: 32px 42px 38px;
    }
}

.passkey-settings {
    display: grid;
    gap: 20px;
    padding: 22px;
}

.table-panel__header--success {
    border-bottom-color: #86efac;
    background: #dcfce7;
}

[data-passkey-login-button][hidden],
[data-passkey-feedback][hidden] {
    display: none !important;
}

.passkey-registration-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.passkey-registration-action {
    display: flex;
    min-height: 42px;
    align-items: stretch;
}

.passkey-registration-action .button {
    white-space: nowrap;
}

.passkey-feedback {
    border-left: 4px solid #0f766e;
    background: #ecfdf5;
    color: #14532d;
    padding: 11px 12px;
    font-size: 0.9rem;
    font-weight: 750;
}

.passkey-feedback--error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.passkey-feedback--success {
    border-left-color: #15803d;
    background: #dcfce7;
    color: #14532d;
}

.passkey-security-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.passkey-device-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.passkey-device-list__heading,
.passkey-device-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.passkey-device-list__heading {
    grid-template-columns: 1fr auto;
}

.passkey-device-list__heading h3 {
    margin: 0;
    font-size: 1rem;
}

.passkey-device-list__heading span,
.passkey-device-row__date span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.passkey-device-row__identity,
.passkey-device-row__date {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.passkey-device-row__identity strong,
.passkey-device-row__date strong {
    overflow-wrap: anywhere;
}

.passkey-domain {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
    padding: 3px 7px;
    font-size: 0.75rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passkey-empty {
    margin: 0;
    padding: 18px 0 4px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .passkey-registration-fields,
    .passkey-device-row {
        grid-template-columns: 1fr;
    }

    .passkey-registration-action .button,
    .passkey-device-row form,
    .passkey-device-row form .button {
        width: 100%;
    }
}
