/* Todos os ajustes visuais são exclusivos de Vendas no breakpoint mobile existente. */
@media (max-width:650px) {
  body[data-route="vendas"] .topbar {min-height:64px;padding:8px 10px;gap:6px}
  body[data-route="vendas"] .topbar-heading {gap:6px;flex:none}
  body[data-route="vendas"] .topbar h1 {font-size:var(--text-lg)}
  body[data-route="vendas"] .topbar .eyebrow {display:none}
  body[data-route="vendas"] .topbar-actions {gap:6px;flex:1;min-width:0}
  body[data-route="vendas"] .topbar .icon-button {width:40px;height:40px;min-height:40px;flex:none}
  body[data-route="vendas"] .topbar-register-contract {min-height:40px;padding:6px 8px;gap:5px;font-size:var(--text-2xs);white-space:normal;line-height:1.25}
  body[data-route="vendas"] .topbar-register-contract svg {width:16px;height:16px;flex-basis:16px}
  body[data-route="vendas"] main {padding:10px 10px 24px}
  body[data-route="vendas"] .view-root {gap:10px;min-width:0}
  body[data-route="vendas"] .sales-toolbar.sticky-filters {position:static;top:auto}
  body[data-route="vendas"] .sales-sticky-columns {display:none!important}
  body[data-route="vendas"] .sales-toolbar .sales-toolbar-heading {flex-direction:row;align-items:center;padding:12px;gap:8px}
  body[data-route="vendas"] .sales-toolbar-title {flex:1}
  body[data-route="vendas"] .sales-toolbar-title h2 {font-size:var(--text-lg);margin-bottom:4px}
  body[data-route="vendas"] .sales-toolbar-title p {font-size:var(--text-2xs)}
  body[data-route="vendas"] .sales-toolbar .sales-head-actions:empty {display:none}
  body[data-route="vendas"] .sales-toolbar .sales-filters {grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;gap:8px}
  body[data-route="vendas"] .sales-toolbar .sales-search-field {grid-column:auto;min-width:0}
  body[data-route="vendas"] .sales-toolbar .sales-search-field > span:first-child {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body[data-route="vendas"] .sales-toolbar .sales-filters input {height:auto;min-height:42px;font-size:var(--text-md);padding-block:9px}
  body[data-route="vendas"] .sales-toolbar .sales-search-control input::placeholder {font-size:var(--text-sm)}
  body[data-route="vendas"] .sales-mobile-filter-button,
  body[data-route="vendas"] .sales-mobile-actions-button {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:8px 10px;border:1px solid #d7e2ee;background:#fff;border-radius:9px;color:#244a72;font-size:var(--text-xs);font-weight:700}
  body[data-route="vendas"] .sales-mobile-actions-button {width:42px;padding:8px;flex:none}
  body[data-route="vendas"] :is(.sales-mobile-filter-button,.sales-mobile-actions-button) svg {width:18px;height:18px;flex:none}
  body[data-route="vendas"] .sales-mobile-filter-count {background:#eaf3ff;color:#075bc4;border-radius:20px;min-width:17px;padding:2px;font-size:var(--text-2xs)}
  body[data-route="vendas"] .sales-mobile-active-filters {display:flex;gap:5px;flex-wrap:wrap;padding:0 12px 10px}
  body[data-route="vendas"] .sales-mobile-active-filters > span {max-width:100%;overflow-wrap:anywhere;border-radius:6px;background:#edf4fc;color:#355c84;padding:4px 6px;font-size:var(--text-2xs);line-height:1.3}
  body[data-route="vendas"] .sales-mobile-actions {position:fixed;z-index:30;inset:auto 12px auto auto;margin:0;width:min(240px,calc(100vw - 24px));padding:6px;border:1px solid #d7e2ee;border-radius:12px;box-shadow:0 10px 35px #12305226;background:#fff}
  body[data-route="vendas"] .sales-mobile-actions[hidden],
  body[data-route="vendas"] .sales-mobile-actions[popover]:not(:popover-open) {display:none}
  body[data-route="vendas"] .sales-mobile-actions button {display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;text-align:left;font-size:var(--text-sm);white-space:normal}
  body[data-route="vendas"] .sales-mobile-actions button svg {width:18px;height:18px;flex:none}
  body[data-route="vendas"] .sales-mobile-sheet {position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:85dvh;box-sizing:border-box;padding:0;border:0;border-radius:18px 18px 0 0;overflow:hidden;background:#fff;color:#17395d;box-shadow:0 -12px 50px #10294933}
  body[data-route="vendas"] .sales-mobile-sheet[open] {display:flex;flex-direction:column}
  body[data-route="vendas"] .sales-mobile-sheet::backdrop {background:#0b213c80}
  body[data-route="vendas"] .sales-mobile-sheet > header {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px;border-bottom:1px solid #e3eaf3;flex:none}
  body[data-route="vendas"] .sales-mobile-sheet h2 {font-size:var(--text-lg);margin:0}
  body[data-route="vendas"] .sales-mobile-sheet header p {font-size:var(--text-xs);margin-top:4px;color:#687d95}
  body[data-route="vendas"] .sales-mobile-sheet [data-sheet-close] {display:grid;place-items:center;width:44px;min-height:44px;padding:10px;border:1px solid #e3eaf3;background:#f5f8fc;color:#355c84;border-radius:10px;flex:none}
  body[data-route="vendas"] .sales-mobile-sheet [data-sheet-close] svg {width:20px;height:20px}
  body[data-route="vendas"] .sales-mobile-sheet > .sales-toolbar {overflow-y:auto;min-height:0;overscroll-behavior:contain;border:0;border-radius:0}
  body[data-route="vendas"] .sales-mobile-sheet .sales-filters {grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px 10px;border:0}
  body[data-route="vendas"] .sales-mobile-sheet .sales-period-field {grid-column:1/-1}
  body[data-route="vendas"] .sales-mobile-sheet .sales-filter-field > span:first-child {font-size:var(--text-xs)}
  body[data-route="vendas"] .sales-mobile-sheet select {min-height:44px;font-size:var(--text-md);width:100%}
  body[data-route="vendas"] .sales-mobile-sheet .sales-clear-filters {min-width:0;min-height:44px;white-space:normal}
  body[data-route="vendas"] .sales-mobile-sheet footer {padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e3eaf3;flex:none}
  body[data-route="vendas"] .sales-mobile-sheet [data-sheet-apply] {width:100%;min-height:44px;border:1px solid #075bc4;border-radius:9px;background:#075bc4;color:#fff;font-size:var(--text-base);font-weight:700}
  body[data-route="vendas"] .sales-table-wrap {overflow:visible;max-height:none;min-width:0}
  body[data-route="vendas"] .sales-table {display:block;min-width:0;width:100%}
  body[data-route="vendas"] .sales-table > thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body[data-route="vendas"] .sales-table > tbody {display:block}
  body[data-route="vendas"] .sales-table > tbody > tr {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:10px 12px 12px;border-bottom:1px solid #dbe5ef;gap:7px 8px;background:#fff;min-width:0}
  body[data-route="vendas"] .sales-table > tbody > tr > td {padding:0;border:0;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:var(--text-2xs);line-height:1.4}
  body[data-route="vendas"] .sales-table > tbody > tr > td:first-child {grid-column:1/4;grid-row:1;align-self:center;white-space:nowrap;font-size:var(--text-2xs);font-variant-numeric:tabular-nums;color:#536c85}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(2) {grid-column:4/7;grid-row:1;text-align:right;align-self:center}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(2) .pill {font-size:var(--text-2xs);min-width:0;padding:3px 6px;white-space:normal}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(3) {grid-column:1/-1;grid-row:2}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(4) {grid-column:1/4;grid-row:3;font-size:var(--text-sm);font-weight:700;color:#165a9e}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(5) {grid-column:1/4;grid-row:4}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(6) {grid-column:4/7;grid-row:4}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(7) {grid-column:4/7;grid-row:3}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(8) {grid-column:1/3;grid-row:5}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(9) {grid-column:3/5;grid-row:5;font-variant-numeric:tabular-nums;white-space:nowrap}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(10) {grid-column:5/7;grid-row:5}
  body[data-route="vendas"] .sales-table > tbody > tr > td:nth-child(n+8) {border-top:1px solid #edf1f6;padding-top:6px}
  body[data-route="vendas"] .sales-table > tbody > tr:not([data-contract-id]) > td:first-child {grid-column:1/-1;white-space:normal}
  body[data-route="vendas"] .sales-mobile-open-contract {display:flex;align-items:center;width:100%;min-height:44px;padding:0;background:transparent;border:0;color:#1c3c5e;text-align:left;font:inherit;font-size:var(--text-sm);font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
  body[data-route="vendas"] .sales-table .sale-property {display:block;min-height:0}
  body[data-route="vendas"] .sales-mobile-cell-label {display:block;margin-bottom:2px;color:#637b93;font-size:var(--text-2xs);font-weight:500;line-height:1.35;white-space:normal}
  body[data-route="vendas"] .sales-table .sales-brokers {max-width:none;justify-content:flex-start;gap:2px 4px}
  body[data-route="vendas"] .sales-table .sales-fifty-badge {font-size:var(--text-2xs);padding:1px 3px}
  body[data-route="vendas"] .sales-table .days-badge {min-width:0;max-width:100%;padding:2px 5px;font-size:var(--text-2xs);white-space:normal;box-sizing:border-box}
  body[data-route="vendas"] .pagination {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body[data-route="vendas"] .pagination span {grid-column:1/-1;text-align:center;font-size:var(--text-xs)}
  body[data-route="vendas"] .pagination button {min-height:44px}
  body[data-route="vendas"] :is(.sales-mobile-sheet,.sales-mobile-actions,.sales-table) :is(button,summary,select):focus-visible {outline:2px solid #075bc4;outline-offset:2px}
}
