:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #102547;
  background: #f4f8fd;
  --navy: #062d60;
  --blue: #086bce;
  --ink: #102547;
  --muted: #536983;
  --line: #dce8f4;
  --soft: #edf6ff;
  --sidebar: clamp(238px, 17.3vw, 292px);
  --topbar: clamp(74px, 6vw, 99px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1982df; outline-offset: 3px; }
h1, h2, p { margin: 0; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; min-height: 42px; border: 1px solid transparent; border-radius: 9px;
  background: #0969c5; color: #fff; font-weight: 650; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #0755a2; }
.btn.secondary { background: #edf5ff; color: #155994; border-color: #d7e8f9; }
.btn.secondary:hover:not(:disabled) { background: #dfedfe; }
.btn.small { min-height: 36px; font-size: .85rem; padding: 6px 12px; }
.btn svg { width: 18px; height: 18px; }

label, .field-label, dt { display: block; color: #3c5373; font-weight: 650; font-size: .84rem; margin-bottom: 6px; }
input:not([type=hidden]):not([type=radio]), select, textarea {
  display: block; width: 100%; min-height: 42px; min-width: 0; padding: 9px 11px;
  color: var(--ink); background: #fff; border: 1px solid #cadbed; border-radius: 8px;
}
input:not([type="hidden"]):is([type="date"], [inputmode="decimal"]) { min-height: 36px; padding-block: 6px; }
input[type="date"] { max-width: 10rem; }
input[inputmode="decimal"] { max-width: 11rem; }
textarea { resize: vertical; }
input::placeholder { color: #627891; }
.notice { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; color: #244b71; background: #eaf3fd; }
.notice.error { color: #972943; background: #fff0f4; }
.notice.success { color: #0e613a; background: #e0f6e9; }
.loading, .empty { padding: 36px 14px; text-align: center; color: var(--muted); }
.empty strong { color: var(--ink); }
.empty p { margin-top: 5px; }
.badge {
  display: inline-block; border-radius: 999px; padding: 5px 10px; color: #435b75;
  background: #eaf0f7; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.badge.active { color: #14633c; background: #e0f6e9; }

.login-bg {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at 87% 90%, #85c9f6 0%, transparent 51%),
    radial-gradient(ellipse at 0 100%, #167ac9 0%, transparent 54%),
    linear-gradient(135deg, #06264e, #0759a2);
}
.login-card {
  width: min(100%, 410px); padding: 24px 36px 32px; border-radius: 22px; background: #fff;
  box-shadow: 0 24px 70px #04234f59; text-align: center;
}
.login-logo { width: 182px; height: 136px; object-fit: contain; display: block; margin: 0 auto 4px; }
.eyebrow { display: block; color: #1165b2; letter-spacing: .14em; font-size: .7rem; font-weight: 750; margin-bottom: 8px; }
.login-card h1 { font-size: 1.85rem; letter-spacing: -.045em; }
.login-card p { margin-top: 6px; color: var(--muted); }
.login-card form { text-align: left; margin-top: 26px; }
.login-card input { margin-bottom: 15px; }
.login-card .btn { width: 100%; margin-top: 5px; }
.login-hint { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; font-size: .82rem; color: var(--muted); }

.app-frame {
  height: 100dvh; display: grid; grid-template: var(--topbar) minmax(0, 1fr) / var(--sidebar) minmax(0, 1fr);
  overflow: hidden;
}
.app-frame.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(10px, 2vw, 32px);
  background: linear-gradient(105deg, #062d61, #062956); color: #fff; z-index: 5;
  padding: 0 clamp(14px, 2.5vw, 42px); box-shadow: 0 2px 8px #0a386925;
}
.top-brand { display: flex; align-items: center; gap: 11px; padding-right: clamp(16px, 2vw, 32px); border-right: 1px solid #2872aa; }
.brand-mark { width: 54px; height: 54px; position: relative; overflow: hidden; flex: none; }
.brand-mark img { width: 117px; max-width: none; position: absolute; left: -33px; top: -4px; }
.brand-type { display: flex; flex-direction: column; white-space: nowrap; }
.brand-type strong { color: white; font-size: clamp(24px, 2.4vw, 40px); font-weight: 780; font-style: italic; line-height: .95; letter-spacing: -.02em; }
.brand-type small { font-size: clamp(10px, 1vw, 16px); margin-top: 4px; }
.top-actions { display: flex; gap: clamp(6px, 1.1vw, 18px); align-items: center; margin-left: auto; }
.icon-btn {
  border: 0; border-radius: 8px; background: transparent; color: inherit; display: grid;
  place-items: center; width: 44px; height: 44px; padding: 0;
}
.icon-btn:hover, .top-details[open] > summary { background: #ffffff1c; }
.topbar .icon-btn svg { width: 25px; height: 25px; }
.hamburger svg { width: 32px !important; height: 32px !important; }
.topbar .icon-btn:focus-visible, .topbar summary:focus-visible { outline-color: #92d0ff; }
.top-details { position: relative; }
.top-details summary { cursor: pointer; list-style: none; }
.top-details summary::-webkit-details-marker { display: none; }
.profile { display: flex; align-items: center; gap: 9px; border-radius: 10px; padding: 5px 7px; }
.profile:hover { background: #ffffff1c; }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(#5bb6ff, #2884d0); border: 1px solid #8ccaff80;
}
.avatar svg { width: 22px; height: 22px; }
.profile-name { max-width: 164px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.profile-chevron svg { width: 15px; height: 15px; }
.top-popover {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(280px, calc(100vw - 28px));
  padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  box-shadow: 0 12px 32px #0727452f; z-index: 10;
}
.top-popover p { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.top-popover .btn { margin-top: 12px; }
.drawer-scrim { display: none; }

.sidebar {
  display: flex; flex-direction: column; padding: 26px 12px 12px; border-right: 1px solid #d5e7f7;
  background: linear-gradient(145deg, #eff6fd, #e7f2fd); overflow: auto; scrollbar-width: thin;
}
.nav {
  display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 8px 14px;
  border-radius: 9px; font-size: .96rem; font-weight: 570; margin-bottom: 3px;
}
.nav svg { flex: none; width: 21px; height: 21px; color: #0d579e; }
.nav:hover { background: #dceefe; }
.nav[aria-current] { background: linear-gradient(105deg, #d2eaff, #acd5fa); box-shadow: inset 4px 0 #0a6ac7; color: #0857a5; font-weight: 750; }
.nav-group { margin: 19px 0 6px 14px; color: #506b88; text-transform: uppercase; letter-spacing: .12em; font-size: .69rem; font-weight: 750; }
.nav-dropdown { margin-top: 6px; }
.nav-dropdown > summary { cursor: pointer; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary > svg:last-child { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.nav-dropdown[open] > summary > svg:last-child { transform: rotate(180deg); }
.nav-submenu { margin-left: 12px; border-left: 1px solid #bfd8ec; padding-left: 5px; }
.nav-submenu .nav { font-size: .86rem; }
.collapsed .nav-submenu { margin-left: 0; padding-left: 0; border: 0; }
.collapsed .nav-dropdown > summary > svg:last-child { display: none; }
@media (max-width: 960px), (pointer: coarse) {
  .nav-dropdown .nav { min-height: 44px; }
}
.sidebar-status {
  display: flex; align-items: center; gap: 8px; margin: auto 5px 0; padding: 14px 7px 2px;
  color: #426285; font-size: .76rem; white-space: nowrap;
}
.sidebar-status span { width: 8px; height: 8px; background: #1e80ce; border-radius: 50%; }
.collapsed .nav { justify-content: center; padding-inline: 0; }
.collapsed .nav > span { position: absolute; width: 1px; height: 1px; clip-path: inset(100%); overflow: hidden; }
.collapsed .nav-group { font-size: 0; height: 1px; background: #ccdfef; margin: 12px 6px; }
.collapsed .sidebar-status { display: none; }
.main { min-width: 0; overflow: auto; background: #f4f8fd; }

.home {
  min-height: 100%; position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(28px, 3.3vw, 56px) clamp(24px, 3vw, 50px) 92px;
  background: radial-gradient(ellipse at 84% 12%, #cfe3fb 0%, transparent 52%), linear-gradient(128deg, #f7faff, #e6f0fd);
}
.home-curves { pointer-events: none; position: absolute; inset: 0; z-index: -1; }
.home-curves svg { width: 100%; height: 100%; stroke: none; }
.home-head, .title-lockup { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 28px); }
.title-icon {
  flex: none; display: grid; place-items: center; width: clamp(54px, 5vw, 81px); height: clamp(54px, 5vw, 81px);
  border: 1px solid #519ce2; border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, #5aacf2, #187ed7); box-shadow: 0 8px 18px #1e78c42e;
}
.title-icon svg { width: 62%; height: 62%; stroke-width: 1.65; }
.home h1 { color: #091e42; font-size: clamp(32px, 3vw, 52px); letter-spacing: -.055em; line-height: 1.08; }
.home-head p { margin-top: 5px; font-size: clamp(.94rem, 1.5vw, 1.35rem); color: #24466b; }
.home-content { position: relative; margin-top: clamp(26px, 3.2vw, 54px); }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.module-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(9px, 1vw, 17px);
  min-height: clamp(130px, 14vw, 218px); padding: 16px 9px; border-radius: clamp(14px, 1.55vw, 24px);
  border: 1px solid #fff; background: linear-gradient(150deg, #ffffff, #f7fbff);
  color: #091d43; box-shadow: 0 9px 24px #174d841a; text-align: center;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.module-card:hover { transform: translateY(-3px); border-color: #9bc9ee; box-shadow: 0 14px 28px #174d8425; }
.module-card strong { font-size: clamp(.98rem, 1.58vw, 1.58rem); line-height: 1.12; letter-spacing: -.035em; }
.module-icon { color: #086bcb; }
.module-icon svg { width: clamp(43px, 5.15vw, 83px); height: clamp(43px, 5.15vw, 83px); stroke-width: 1.75; }
.home-brand { display: none; }
@media (min-width: 1300px) {
  .home-content { padding-right: 18.5%; }
  .home-brand {
    display: block; position: absolute; width: 20%; right: -2%; top: -75px;
  }
  .home-brand img { display: block; width: 100%; transform: scale(1.3); transform-origin: center 58%; }
}

.operational { padding: clamp(19px, 3vw, 44px); }
.breadcrumb { margin-bottom: 16px; color: #56728d; font-size: .85rem; }
.breadcrumb a { color: #0865b9; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb span { padding: 0 6px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.heading .title-icon { width: 52px; height: 52px; border-radius: 12px; }
.heading .title-lockup { gap: 13px; }
.heading h1 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.04; letter-spacing: -.045em; }
.heading p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
h1[tabindex="-1"]:focus { outline: none; }
.panel {
  padding: clamp(14px, 1.8vw, 26px); border-radius: 15px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 8px 26px #224b7710;
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel h2 { font-size: 1.08rem; }
.panel p { margin-top: 5px; font-size: .9rem; color: var(--muted); }
.pending h2 { margin: 16px 0 5px; }
.pending .btn { margin-top: 18px; }
.filters { display: grid; grid-template-columns: .65fr 1.35fr 1fr; gap: 13px; align-items: end; margin: 18px 0; }
.filter-actions, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-actions { grid-column: 1 / -1; }
.simple-search { display: flex; align-items: end; gap: 9px; margin: 16px 0; }
.simple-search > div { flex: 1; max-width: 420px; }
.title-search { flex-wrap: wrap; }
.title-search > div:first-child { flex-basis: 240px; }
.title-search > div:nth-child(2) { flex: 0 0 135px; }
.title-search > div:nth-child(3) { flex: 0 1 205px; }
.plan-panel + .plan-panel { margin-top: 14px; }
.plan-fields { align-items: end; }
.plan-actions { margin-top: 12px; }
.plan-list-name { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.plan-list-name button { flex: none; }
.plan-tree-node { display: flex; align-items: center; min-height: 24px; white-space: nowrap; }
.plan-tree-indent { position: relative; width: 14px; height: 24px; border-left: 1px dotted #9cadc0; flex: none; }
.plan-tree-indent:nth-last-child(3)::after { content: ''; position: absolute; top: 50%; width: 10px; border-top: 1px dotted #9cadc0; }
.plan-tree-indent + .plan-tree-toggle, .plan-tree-indent + .plan-tree-spacer { margin-left: -4px; }
.plan-tree-toggle, .plan-tree-spacer { width: 22px; height: 22px; margin-right: 6px; flex: none; }
.plan-tree-toggle { border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #316397; line-height: 1; }
.plan-tree-toggle:hover { background: #e9f3fc; }
.plan-tree-group { font-weight: 650; }
tr:has([data-plan-title]), tr:has([data-plan-title]) button { font-weight: 700; }
.results { margin-top: 16px; }
.treasury-totals { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.treasury-totals > div { flex: 1 1 145px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.treasury-totals dt { color: var(--muted); font-size: .85rem; }
.treasury-totals dd { margin: 5px 0 0; font-size: 1.2rem; font-weight: 700; }
.treasury-note { color: var(--muted); margin-bottom: 12px; }
.treasury-detail { border-bottom: 1px solid var(--line); padding: 12px 0; }
.treasury-detail h3 { margin: 0; }
.treasury-detail dd { margin: 0; }
.treasury-fields, .treasury-detail .table-wrap { margin-top: 10px; }
.title-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; margin: 0; }
.title-details > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.title-details > .wide { grid-column: span 2; }
.title-details dt, .title-details dd { margin: 0; }
.title-details dd { min-width: 0; }
.parcel-tree > tbody > tr > td { padding: 5px 12px; }
.parcel-tree .parcel-history > td { padding-block: 4px 10px; }
.parcel-history-branch { margin-inline-start: 10px; padding-inline-start: 13px; border-inline-start: 1px dotted #9cadc0; }
.parcel-history-branch .table-wrap { margin-top: 4px; }
.parcel-history-branch td, .parcel-history-branch th {
  padding: 5px 6px;
  font-size: .75rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.parcel-row-actions { flex-wrap: nowrap; }
.parcel-document { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.parcel-receipt-actions { flex-wrap: nowrap; gap: 4px; }
.parcel-receipt-actions .btn { flex: none; width: 30px; min-height: 30px; padding: 0; }
.parcel-receipt-actions svg { width: 16px; height: 16px; }
.title-detail-footer [data-generate-boletos] { margin-inline-end: auto; }
.boleto-generation > div + div { margin-top: 12px; }
.boleto-generation-grid .table-wrap { max-height: min(38dvh, 390px); }
.boleto-generation-grid thead { position: sticky; top: 0; }
.boleto-generation-grid td { padding-block: 6px; }
.boleto-generation-grid tr.boleto-generation-active { background: #e0efff; }
.boleto-generation input[type=checkbox] { width: auto; min-height: 0; padding: 0; accent-color: var(--blue); }
.boleto-generation-selection { gap: 8px 14px; }
.boleto-generation-information { white-space: pre-wrap; overflow-wrap: anywhere; }
.boleto-generation-preview { padding-bottom: 12px; }
.parcel-context {
  position: fixed; inset: auto; margin: 0; padding: 4px; width: min(255px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 6px 20px #10254733;
}
.parcel-context-title { padding: 6px 9px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.parcel-context [role="group"] { border-top: 1px solid var(--line); padding-block: 3px; }
.parcel-context button {
  display: block; width: 100%; padding: 5px 9px; border: 0; border-radius: 4px;
  color: inherit; background: transparent; font-size: .83rem; text-align: left;
}
.parcel-context button:hover:not(:disabled), .parcel-context button:focus-visible { background: #eaf3fd; outline-offset: -2px; }
.parcel-context button:disabled { color: var(--muted); opacity: .7; }
.treasury-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px; }
.treasury-pair input[type="date"] { min-width: 0; }
.treasury-classification { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: end; gap: 8px; margin-bottom: 10px; }
.installment-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.installment-tools > div { width: 105px; }
.installment-selection { margin: 7px 0 0; font-size: .85rem; color: var(--muted); }
.installment-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin: 14px 0; }
.installment-totals > div { display: grid; gap: 3px; background: #edf5fd; padding: 8px 12px; border-radius: 8px; }
.installment-totals strong, .installment-totals output { font-size: 1.15rem; font-weight: 700; }
.installment-grid { max-height: min(44dvh, 430px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.installment-grid thead { position: sticky; top: 0; z-index: 1; }
.installment-grid tbody th, .installment-grid td { padding: 5px 8px; }
.installment-grid .installment-selected > * { background: #d9ecff; }
.installment-grid input[type="date"] { min-width: 0; }
@media (max-width: 650px) { .treasury-classification { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; text-align: left; width: 100%; }
th, td { padding: 11px 12px; font-size: .86rem; overflow-wrap: anywhere; }
th { background: #edf5fd; color: #385779; font-size: .79rem; }
td { border-top: 1px solid #eaf0f7; }
tbody tr:nth-child(even) { background: #fafcff; }
.pagination {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  color: var(--muted); font-size: .82rem; margin-top: 14px;
}
.retry { margin: 0 0 12px; }

.modal {
  width: min(860px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto;
  padding: 0; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: #fff;
  box-shadow: 0 20px 65px #051f4d58;
}
.modal.parcel-change-modal { width: min(440px, calc(100vw - 28px)); }
.modal::backdrop { background: #081d3e80; }
.modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 1; padding: 16px 21px; border-bottom: 1px solid var(--line);
  background: #f3f8fe;
}
.modal-head h2 { font-size: 1.25rem; }
.modal-head p { margin-top: 3px; font-size: .87rem; color: var(--muted); }
.modal .icon-btn:hover { background: #e2eefb; }
.modal-body { padding: 17px 21px 0; }
.modal-body > .notice, .modal-body > .loading { margin-bottom: 16px; }
.record-code { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: #f1f7fd; border-radius: 8px; }
.record-code .field-label { margin-bottom: 0; }
.person-tabs { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); }
.person-tabs button {
  border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
  padding: 9px 11px; color: #284762; background: #f1f7fd; font-weight: 650;
}
.person-tabs button[aria-selected="true"] { color: #fff; background: #0969c3; }
.person-panel { padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person-panel .form-grid { gap: 10px 12px; }
@media (min-width: 780px) {
  .person-panel .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person-panel .form-field.long { grid-column: span 2; }
}
.form-field.wide { grid-column: 1 / -1; }
.form-grid.title-first-row { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; margin-bottom: 10px; }
@media (max-width: 650px) { .form-grid.title-first-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.convention-form:not([data-sicredi]) [data-sicredi-detail] { display: none; }
.sicredi-guide {
  margin: 0 0 12px; padding: 8px 11px; border-left: 3px solid #0969c3;
  background: #edf5fd; color: #264867; font-size: .84rem;
}
.sicredi-guide > strong:first-child { display: block; margin-bottom: 2px; }
.sicredi-field-tag {
  display: inline-block; margin-left: 3px; padding: 1px 5px; border-radius: 4px;
  color: #224e76; background: #e9f1fa; font-size: .72rem; font-weight: 650; white-space: nowrap;
}
.sicredi-field-tag.required { color: #06477d; background: #d9ecff; }
.sicredi-field-tag.automatic { color: #465773; background: #edf0f5; }
.sicredi-field-hint { display: block; margin-top: 4px; color: #415774; font-size: .76rem; }
.radio-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.radio-field legend { margin-bottom: 6px; padding: 0; color: #3c5373; font-size: .84rem; font-weight: 650; }
.radio-options { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; min-height: 38px; }
.radio-option { display: inline-flex; align-items: center; gap: 5px; margin: 0; min-height: 32px; color: var(--ink); font-weight: 400; cursor: pointer; }
.radio-option input { margin: 0; accent-color: var(--blue); }
.radio-legacy { color: var(--muted); font-size: .84rem; }
.read-value { display: block; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .93rem; }
.form-field input[aria-invalid="true"] { border-color: #972943; }
.field-error { margin-top: 4px; color: #972943; font-size: .84rem; }
.modal-footer {
  position: sticky; bottom: 0; margin-inline: -21px; padding: 12px 21px;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: #fff;
}
.person-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.btn.danger { background: #fdf0f0; color: #9e2929; }
.btn.danger:hover:not(:disabled) { background: #f9dddd; }
.lookup-control { min-width: 0; }
.lookup-clear, .lookup-add { width: 34px; height: 36px; flex: none; color: #316397; }
.lookup-clear:hover, .lookup-add:hover { background: #e9f3fc; }
.lookup-clear svg, .lookup-add svg { width: 16px; height: 16px; }
.radio-options .lookup-clear { width: 26px; height: 30px; }
.lookup-combo {
  position: relative; display: flex; align-items: center; min-width: 0; padding-right: 3px;
  border: 1px solid #cadbed; border-radius: 8px; background: #fff;
}
.lookup-combo:focus-within { outline: 2px solid #1982df; outline-offset: 2px; }
.lookup-combo input.lookup-input { flex: 1; min-height: 40px; padding-right: 4px; border: 0; background: transparent; }
.lookup-combo .lookup-input:focus-visible { outline: none; }
.lookup-combo .icon-btn { width: 29px; height: 32px; flex: none; }
.lookup-combo .icon-btn:focus-visible { outline-offset: -2px; }
.lookup-toggle { color: #316397; }
.lookup-toggle svg { width: 17px; height: 17px; }
.lookup-inline-results {
  position: absolute; z-index: 3; inset-inline: 0; top: calc(100% + 4px);
  max-height: min(225px, var(--lookup-available-height, 225px));
  overflow: auto; overscroll-behavior: contain; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px #10254726;
}
.lookup-inline-results.lookup-above { top: auto; bottom: calc(100% + 4px); }
.lookup-inline-results.lookup-empty { pointer-events: none; }
.lookup-inline-results [role="option"] { cursor: pointer; }
.lookup-inline-results [aria-selected="true"] { background: #e9f3fc; }
.lookup-create { width: min(540px, calc(100vw - 28px)); }
.lookup-create .form-grid { margin-bottom: 16px; }
.choices { margin: 0; padding: 0; list-style: none; }
.choice {
  display: flex; gap: 8px; align-items: center; text-align: left; width: 100%; padding: 11px;
  background: #fff; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.choice:hover { background: #eff7ff; }
.choice small { margin-left: auto; color: var(--muted); }

@media (max-width: 960px) {
  .app-frame, .app-frame.collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: var(--topbar); bottom: 0; left: 0; width: min(292px, 86vw); z-index: 4;
    visibility: hidden; transform: translateX(-100%); transition: transform .17s, visibility .17s;
  }
  .drawer-open .sidebar { visibility: visible; transform: none; }
  .drawer-open .drawer-scrim {
    display: block; position: fixed; inset: var(--topbar) 0 0; z-index: 3; border: 0; background: #071c3a64;
  }
  .collapsed .nav { justify-content: flex-start; padding-inline: 14px; }
  .collapsed .nav > span { position: static; width: auto; height: auto; clip-path: none; }
  .collapsed .nav-group { font-size: .69rem; height: auto; background: none; margin: 19px 0 6px 14px; }
  .collapsed .sidebar-status { display: flex; }
}
@media (max-width: 650px) {
  :root { --topbar: 65px; }
  .topbar { gap: 5px; padding: 0 9px; }
  .top-brand { gap: 3px; padding-right: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark img { width: 88px; left: -25px; top: -3px; }
  .brand-type strong { font-size: 23px; }
  .brand-type small, .profile-name, .profile-chevron { display: none; }
  .top-actions { gap: 0; }
  .topbar .icon-btn { width: 38px; }
  .topbar .icon-btn svg { width: 21px; height: 21px; }
  .topbar .hamburger svg { width: 24px !important; height: 24px !important; }
  .profile { padding: 4px; }
  .avatar { width: 31px; height: 31px; }
  .avatar svg { width: 19px; height: 19px; }
  .top-details { position: static; }
  .top-popover { top: calc(var(--topbar) - 2px); right: 9px; }
  .home { padding: 24px 15px 56px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card { min-height: 117px; }
  .operational { padding: 16px 12px 30px; }
  .heading { align-items: flex-start; }
  .heading .title-icon { width: 40px; height: 40px; }
  .heading p { font-size: .85rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filter-name { grid-column: 1 / -1; grid-row: 1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .title-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap table { min-width: 570px; }
  .modal { max-height: calc(100dvh - 20px); }
  .modal-head { padding-inline: 14px; }
  .modal-body { padding-inline: 14px; }
  .modal-footer { margin-inline: -14px; padding-inline: 14px; }
}
@media (max-width: 360px) {
  .fullscreen { display: none; }
  .login-card { padding-inline: 22px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
}

.form-grid.parcel-change-fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 10px;
}
.modal.boleto-recalculation-modal { width: min(650px, calc(100vw - 28px)); }
.retorno-import { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(210px, 1.2fr) minmax(260px, 1.2fr) auto; gap: 12px; align-items: end; }
.retorno-import .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.retorno-import > div { min-width: 0; }
.retorno-import input[type="file"] { padding: 8px; }
.retorno-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.retorno-summary > div { padding: 10px; border-radius: 8px; background: var(--light, #f1f7fe); }
.retorno-summary span { display: block; font-size: .76rem; color: var(--muted); }
.retorno-summary strong { display: block; font-size: 1rem; margin-top: 4px; white-space: nowrap; }
.retorno-subtitle { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
.retorno-grid table { min-width: 1200px; }
.retorno-grid th, .retorno-grid td { padding: 8px; font-size: .78rem; }
.retorno-grid th { white-space: nowrap; }
.retorno-grid input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; vertical-align: middle; }
.retorno-grid td:nth-child(1), .retorno-grid td:nth-child(2), .retorno-grid td:nth-child(5),
.retorno-grid td:nth-child(n+6):nth-child(-n+10) { white-space: nowrap; }
.retorno-grid .badge { white-space: nowrap; }
.retorno-details dd { margin: 3px 0 0; }
@media (max-width: 1150px) {
  .retorno-import { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.parameter-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.sicredi-api-panel { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6faff; }
.sicredi-api-panel h3 { margin: 0; font-size: 1rem; }
.sicredi-api-panel [data-api-feedback] { margin: 8px 0; font-size: .85rem; }
.modal.sicredi-query-modal { width: min(720px, calc(100vw - 28px)); }
.sicredi-query-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 16px 0; }
.sicredi-query-details > div { min-width: 0; }
.sicredi-query-details dt { font-size: .8rem; font-weight: 700; color: #345174; }
.sicredi-query-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
@media (max-width: 440px) { .sicredi-query-details { grid-template-columns: minmax(0, 1fr); } }
.parameter-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.parameter-results td:nth-child(2) { min-width: 200px; }
.parameter-results td:nth-child(3), .parameter-results td:nth-child(4) { min-width: 140px; max-width: 300px; }
@media (max-width: 800px) {
  .retorno-import { grid-template-columns: minmax(0, 1fr); }
  .retorno-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.boleto-recalculation { display: grid; gap: 12px; }
.boleto-recalculation .form-grid, .boleto-recalculation .title-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 400px) {
  .boleto-recalculation .form-grid, .boleto-recalculation .title-details { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
[data-new-batch].panel { padding: 16px; }
[data-new-batch] .panel-head { margin-bottom: 6px; }
.batch-fields { grid-template-columns: 190px 130px minmax(140px, 1.1fr) minmax(125px, .7fr) minmax(150px, 1fr); gap: 7px 10px; margin-bottom: 10px; align-items: end; }
.batch-fields .radio-options { gap: 6px; flex-wrap: nowrap; }
.batch-fields .radio-option { gap: 3px; font-size: 12px; }
.batch-fields input:not([type="radio"]):not([type="hidden"]), .batch-search input:not([type="hidden"]), .batch-fields .lookup-combo, .batch-search .lookup-combo { min-height: 34px; height: 34px; }
.batch-fields label, .batch-fields legend, .batch-search label { font-size: 12px; }
.batch-fields .lookup-input, .batch-search .lookup-input { padding: 5px 8px; font-size: 12px; }
.batch-fields .lookup-combo .icon-btn, .batch-search .lookup-combo .icon-btn { width: 25px; height: 27px; flex-basis: 25px; }
.batch-fields input[type="date"], .batch-search input[type="date"] { max-width: 140px; padding: 5px 7px; font-size: 12px; }
.batch-search { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) auto; gap: 8px 12px; align-items: end; padding-top: 10px; border-top: 1px solid var(--line, #d7e5f4); }
.batch-period { display: flex; align-items: end; gap: 6px; }
.batch-period > div { width: 138px; }
.batch-period .btn { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.batch-fields > .wide { grid-column: 1 / -1; }
.batch-grid [data-selected] { min-width: 0; }
.batch-grid table td { overflow-wrap: normal; word-break: normal; }
.batch-grid { overflow-x: auto; margin: 8px 0; }
[data-candidates].batch-grid { max-height: 285px; overflow: auto; }
.batch-grid table { font-size: 12px; }
.batch-grid td, .batch-grid th { padding: 4px 6px; line-height: 1.2; }
[data-candidates].batch-grid td { padding-block: 2px; height: 24px; font-size: 12px; }
.batch-grid td:has(.batch-amount), .batch-grid td:has(output), .batch-grid th { white-space: nowrap; }
.batch-grid .batch-amount { width: 90px; min-width: 80px; height: 27px; min-height: 27px; padding: 3px 5px; font-size: 12px; text-align: right; }
.batch-grid .btn.small { min-height: 27px; height: 27px; padding: 3px 7px; }
.batch-grid input[type="checkbox"] { width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; vertical-align: middle; }
[data-title-results] table { table-layout: fixed; }
[data-title-results] th, [data-title-results] td { height: 24px; padding: 2px 6px; font-size: 12px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
[data-title-results] th:nth-child(1) { width: 7%; }
[data-title-results] th:nth-child(2) { width: 7%; }
[data-title-results] th:nth-child(3) { width: 9%; }
[data-title-results] th:nth-child(4) { width: 19%; }
[data-title-results] th:nth-child(5) { width: 23%; }
[data-title-results] th:nth-child(6) { width: 10%; }
[data-title-results] th:nth-child(7), [data-title-results] th:nth-child(8) { width: 9%; }
[data-title-results] th:nth-child(9) { width: 7%; }
[data-title-results] .btn.small { height: 19px; min-height: 19px; padding: 1px 6px; font-size: 11px; line-height: 15px; }
.batch-total { padding: 6px 0; font-size: 15px; font-weight: 700; }
@media (max-width: 1150px) { .batch-search { grid-template-columns: repeat(2, minmax(0, 1fr)); } .batch-period { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .batch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .batch-search { grid-template-columns: minmax(0, 1fr); } .batch-period { flex-wrap: wrap; } }

/* Densidade compartilhada: computador compacto; telas pequenas e toque confortáveis. */
.table-check { display: inline-flex; align-items: center; justify-content: center; margin: 0; cursor: pointer; }
@media (min-width: 961px) and (pointer: fine) {
  :root { --sidebar: 224px; --topbar: 56px; --field-height: 32px; --grid-row-height: 24px; }
  body { font-size: 13px; }
  .topbar { padding-inline: 20px; gap: 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 93px; left: -26px; top: -3px; }
  .brand-type strong { font-size: 27px; }
  .brand-type small { font-size: 10px; margin-top: 2px; }
  .top-brand { gap: 7px; padding-right: 18px; }
  .topbar .icon-btn { width: 34px; height: 34px; }
  .topbar .icon-btn svg { width: 21px; height: 21px; }
  .avatar { width: 31px; height: 31px; }
  .sidebar { padding: 12px 8px 8px; }
  .nav { min-height: 32px; padding: 5px 10px; gap: 8px; font-size: 13px; line-height: 1.2; margin-bottom: 2px; }
  .nav svg { width: 18px; height: 18px; }
  .nav-group { margin: 12px 0 4px 10px; font-size: 10px; }
  .sidebar-status { padding: 8px 4px 2px; font-size: 11px; }
  .operational { padding: 14px 18px; }
  .breadcrumb { margin-bottom: 8px; font-size: 12px; }
  .heading { margin-bottom: 12px; gap: 10px; }
  .heading .title-icon { width: 36px; height: 36px; border-radius: 9px; }
  .heading .title-lockup { gap: 9px; }
  .heading h1 { font-size: 24px; }
  .heading p { margin-top: 3px; font-size: 12px; }
  .home { padding: 20px 24px 38px; }
  .home h1 { font-size: 30px; }
  .home-head p { font-size: 14px; }
  .home-head .title-icon { width: 48px; height: 48px; }
  .home-content { margin-top: 20px; }
  .module-grid { gap: 12px; }
  .module-card { min-height: 110px; gap: 8px; padding: 12px 8px; border-radius: 14px; }
  .module-card strong { font-size: 16px; }
  .module-icon svg { width: 46px; height: 46px; }
  .panel, [data-new-batch].panel { padding: 12px; border-radius: 11px; }
  .panel h2 { font-size: 15px; }
  .panel p { font-size: 12px; }
  .filters, .simple-search { gap: 8px; margin: 10px 0; }
  .filter-grid:not(.batch-search) { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); align-items: end; gap: 8px; margin: 10px 0; }
  .filter-actions, .row-actions { gap: 6px; }
  .form-grid, .person-panel .form-grid { gap: 8px 10px; }
  label, .field-label, dt, .radio-field legend { font-size: 12px; margin-bottom: 3px; }
  :is(.operational, .modal, .login-card) input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
  :is(.operational, .modal, .login-card) select { min-height: var(--field-height); height: var(--field-height); padding: 5px 8px; font-size: 13px; }
  :is(.operational, .modal, .login-card) textarea { min-height: 64px; padding: 6px 8px; font-size: 13px; }
  input[type="date"] { max-width: 145px; }
  input[inputmode="decimal"] { max-width: 150px; }
  :is(.operational, .modal) input[type="checkbox"] { width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; vertical-align: middle; }
  .radio-options { min-height: 32px; gap: 2px 8px; }
  .radio-option { min-height: 28px; gap: 4px; font-size: 12px; }
  :is(.operational, .modal, .login-card) .btn { min-height: 32px; padding: 5px 11px; font-size: 13px; gap: 5px; }
  :is(.operational, .modal) .btn.small { min-height: 27px; padding: 3px 8px; font-size: 12px; }
  .btn svg { width: 15px; height: 15px; }
  .notice { margin-bottom: 9px; padding: 8px 10px; font-size: 13px; }
  .loading, .empty { padding: 22px 10px; }
  .badge { padding: 1px 5px; font-size: 11px; line-height: 17px; }
  .modal { border-radius: 12px; }
  .modal-head { padding: 10px 14px; gap: 8px; }
  .modal-head h2 { font-size: 17px; }
  .modal-head p { margin-top: 2px; font-size: 12px; }
  .modal-head .icon-btn { width: 32px; height: 32px; }
  .modal-body { padding: 10px 14px 0; }
  .modal-footer { margin-inline: -14px; padding: 8px 14px; gap: 6px; }
  .record-code { padding: 5px 8px; gap: 6px; margin-bottom: 8px; }
  .record-code .field-label { margin: 0; }
  .person-tabs { gap: 4px; }
  .person-tabs button { padding: 6px 9px; font-size: 12px; }
  .person-panel { padding: 10px; margin-bottom: 10px; }
  .read-value { font-size: 13px; line-height: 1.3; }
  .treasury-detail { padding: 8px 0; }
  .title-details { gap: 3px 10px; font-size: 12px; }
  .treasury-note { margin-bottom: 8px; }
  .treasury-classification { margin-bottom: 7px; gap: 6px; }
  .treasury-totals { gap: 8px; margin-bottom: 8px; }
  .treasury-totals > div { padding: 8px 10px; }
  .treasury-totals dd { font-size: 17px; margin-top: 3px; }
  .lookup-combo { min-height: var(--field-height); height: var(--field-height); }
  :is(.operational, .modal) .lookup-combo input.lookup-input { height: 30px; min-height: 30px; padding: 4px 7px; font-size: 13px; }
  :is(.operational, .modal) .lookup-combo .icon-btn { width: 25px; height: 27px; }
  .choice { padding: 6px 8px; font-size: 12px; }
  .radio-options .lookup-clear { height: 26px; width: 24px; }
  .pagination { margin-top: 8px; gap: 7px; font-size: 12px; }
  .plan-tree-node, .plan-tree-indent { height: 19px; min-height: 19px; }
  .plan-tree-toggle, .plan-tree-spacer { height: 18px; width: 18px; margin-right: 4px; }
  .plan-list-name, .plan-list-name .row-actions { flex-wrap: nowrap; gap: 4px; }
  .plan-list-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  :is(.operational, .modal) :is(th, td),
  :is(.operational, .modal) :is(.batch-grid, .retorno-grid, .parcel-history-branch, .installment-grid) :is(th, td),
  :is(.operational, .modal) .parcel-tree > tbody > tr > td {
    height: var(--grid-row-height); padding: 2px 6px; font-size: 12px; line-height: 1.15; white-space: nowrap; overflow-wrap: normal; word-break: normal;
  }
  :is(.operational, .modal) td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
  :is(.operational, .modal) :is(td, th) :is(.btn, .btn.small) { min-height: 19px; height: 19px; padding: 1px 6px; font-size: 11px; line-height: 15px; }
  :is(.operational, .modal) :is(td, th) :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]), select) { height: 19px; min-height: 19px; padding: 1px 4px; font-size: 12px; }
  :is(.operational, .modal) td .row-actions { flex-wrap: nowrap; gap: 3px; }
  :is(.operational, .modal) .parcel-receipt-actions .btn { width: 21px; height: 19px; min-height: 19px; padding: 0; }
  .parcel-receipt-actions svg { width: 13px; height: 13px; }
  .parameter-text { display: block; -webkit-line-clamp: unset; white-space: nowrap; text-overflow: ellipsis; }
  .table-check { width: 14px; min-height: 14px; height: 14px; }
  .installment-tools { gap: 6px; }
  .installment-totals { margin: 8px 0; gap: 6px; }
  .installment-totals > div { padding: 6px 8px; }
  .installment-totals strong, .installment-totals output { font-size: 16px; }
  .parcel-context button { padding: 4px 8px; font-size: 12px; }
  .login-card { padding: 20px 28px 24px; }
  .login-card form { margin-top: 18px; }
  .login-card input { margin-bottom: 10px; }
}

@media (max-width: 960px), (pointer: coarse) {
  :is(.operational, .modal, .login-card) input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
  :is(.operational, .modal, .login-card) select { min-height: 44px; height: 44px; padding: 9px 10px; font-size: 16px; }
  :is(.operational, .modal, .login-card) textarea { min-height: 84px; font-size: 16px; }
  :is(.operational, .modal, .login-card) :is(.btn, .btn.small) { min-height: 44px; height: auto; padding: 9px 12px; font-size: 14px; }
  :is(.operational, .modal) :is(.lookup-combo, .lookup-combo input.lookup-input) { min-height: 44px; height: 44px; font-size: 16px; }
  :is(.operational, .modal) .lookup-combo .icon-btn { width: 44px; height: 44px; flex-basis: 44px; }
  .radio-options { min-height: 44px; gap: 5px 10px; flex-wrap: wrap; }
  .radio-option { min-height: 44px; padding-inline: 2px; font-size: 14px; }
  .radio-option input { width: 18px; height: 18px; }
  :is(.operational, .modal) input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; }
  :is(.operational, .modal) :is(th, td),
  :is(.operational, .modal) :is(.batch-grid, .retorno-grid, .parcel-history-branch, .installment-grid) :is(th, td),
  :is(.operational, .modal) .parcel-tree > tbody > tr > td { height: 44px; padding: 6px 8px; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
  .table-check { min-height: 44px; min-width: 44px; }
  :is(.operational, .modal) .parcel-receipt-actions .btn { width: 44px; min-height: 44px; height: 44px; padding: 0; }
  .parcel-receipt-actions svg { width: 18px; height: 18px; }
  [data-title-results] table { table-layout: auto; min-width: 900px; }
  [data-title-results] th:nth-child(n) { width: auto; }
  [data-title-results] td { white-space: nowrap; }
  :is(.operational, .modal) .plan-tree-toggle, :is(.operational, .modal) .plan-tree-spacer { width: 36px; height: 36px; }
  :is(.operational, .modal) .person-tabs button { min-height: 44px; padding: 9px 12px; }
  .parcel-context button { min-height: 44px; padding: 9px 10px; }
  .batch-fields .radio-options { flex-wrap: wrap; }
  .batch-grid .batch-amount { width: 100px; min-width: 85px; }
}
@media (max-width: 650px) {
  .batch-fields { grid-template-columns: minmax(0, 1fr); }
  .batch-fields input[type="date"], .batch-search input[type="date"] { max-width: 165px; }
  .batch-period { gap: 8px; }
  .batch-period > div { width: min(165px, calc(50% - 4px)); }
  .retorno-import, .retorno-filters { grid-template-columns: minmax(0, 1fr); }
  .simple-search { flex-wrap: wrap; }
  .simple-search > div { flex-basis: 100%; max-width: none; }
  .filter-grid:not(.batch-search) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

.reconciliation-toolbar { display:flex; align-items:end; gap:8px; flex-wrap:wrap; margin:12px 0; }
.reconciliation-toolbar input[type=date] { width:150px; }
.reconciliation-toolbar [data-rec-summary] { align-self:center; font-size:12px; }
