@media screen {
  body.ui-shell-r21[data-app-page] .main :is(.topbar:has(h1), .record-heading-r128),
  .page-heading {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    margin: 0 0 12px;
    padding: 7px 13px;
    border: 1px solid #dce7e1;
    border-left: 4px solid #79a58e;
    border-radius: 13px;
    background: linear-gradient(110deg, #eef7f1, #f9fbfa);
    box-shadow: none;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar:has(h1), .record-heading-r128) {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3px 10px;
  }

  body.ui-shell-r21[data-app-page] .main .topbar:has(h1) {
    min-height: 36px;
    padding-block: 1px;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) > div:has(> h1) {
    flex: 1 1 160px;
    min-width: 0;
    width: auto;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) h1,
  .page-heading {
    margin-top: 0;
    color: #294b47;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) h1 {
    margin: 0;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) :is(h1 + p, .record-eyebrow-r128) {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.35;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) > :is(.actions, .record-actions-r128) {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
  }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) .record-icon-r128 {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .flow-path-r125 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 4px 0 10px;
    color: #526c62;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .flow-path-r125 a {
    color: #34664f;
    font-weight: 700;
  }

  body .flow-path-r125 .flow-back-r125 {
    flex-basis: auto;
    margin-left: auto;
    width: 28px;
    height: 28px;
    min-height: 28px;
  }
}

@media screen and (pointer: coarse) {
  body.ui-shell-r21[data-app-page] .main .topbar:has(h1) { min-height: 48px; }

  body.ui-shell-r21[data-app-page] .main :is(.topbar, .record-heading-r128) .record-icon-r128,
  body .flow-path-r125 .flow-back-r125 {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media print {
  .flow-path-r125 { display: none; }
}

@media screen {
  /* O formulário inteiro compartilha a linha de base dos controles. */
  body.ui-shell-r21[data-app-page] .main .compact-search-panel {
    padding:10px 12px;
    margin:0 0 10px;
  }
  body.ui-shell-r21[data-app-page] .main .compact-form-filter .form-group {
    margin:0;
  }
  body.ui-shell-r21[data-app-page] .main .compact-form-filter > .form-group:has(input[name="q"]) {
    flex:0 1 340px;
  }
  body.ui-shell-r21[data-app-page] .main .compact-filter-submit-row {
    flex-basis:205px;
  }
  body.ui-shell-r21[data-app-page] .main .attendance-broker-filter {
    grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) 36px;
    max-width:600px;
  }
  body.ui-shell-r21[data-app-page] .main .compact-form-filter .form-group :is(input,select) {
    display:block;
  }
  @media (max-width:480px) {
    body.ui-shell-r21[data-app-page] .main .compact-form-filter > .form-group:has(input[name="q"]) {
      flex-basis:100%;
    }
  }

  body.ui-shell-r21[data-app-page] .main :is(.metric-grid, .clients-metrics, .finance-summary-r146) {
    gap:8px;
  }
  body.ui-shell-r21[data-app-page] .main :is(.metric-grid > .metric-card, .clients-metric, .finance-summary-r146 > div) {
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    gap:3px;
    min-width:0;
    min-height:0;
    padding:8px 10px;
    overflow-wrap:anywhere;
    border:0;
    border-radius:8px;
    box-shadow:none;
  }
  body.ui-shell-r21[data-app-page] .main :is(.metric-grid > .metric-card, .clients-metric, .finance-summary-r146 > div) > :is(strong,dd) {
    margin:0;
    font-size:1.125rem;
    line-height:1.2;
  }
  body.ui-shell-r21[data-app-page] .main .clients-metrics {
    display:grid;
    grid-auto-flow:column;
    grid-template-columns:none;
    grid-auto-columns:minmax(130px,1fr);
    overflow-x:auto;
    padding:2px;
  }
  body.ui-shell-r21[data-app-page] .main .clients-metric:is(.is-selected,:hover,:focus-visible) {
    transform:none;
    outline:1px solid var(--tone);
    outline-offset:-1px;
    box-shadow:none;
  }
  .clients-metric .clients-metric-icon {width:23px;height:23px}
  .clients-metric .clients-metric-icon svg {width:15px;height:15px}
  .clients-metric .clients-metric-top {gap:4px;font-size:.75rem}
  .clients-metric > small {line-height:1.3}

  .profile-panel {max-width:740px}
  .profile-panel .profile-photo {
    display:grid;
    grid-template-columns:52px minmax(0, 1fr);
    align-items:start;
    gap:10px;
    margin:0 0 10px;
  }
  .profile-panel .profile-avatar {
    width:52px;
    height:52px;
    object-fit:cover;
    border-radius:50%;
  }
  .profile-panel .profile-avatar-empty {
    display:grid;
    place-items:center;
    background:#edf5ef;
    color:#365548;
    font-size:22px;
  }
  .profile-photo-edit {
    min-width:0;
    padding-top:9px;
  }
  body.ui-shell-r21 .main .profile-photo-edit > summary {
    display:inline-flex;
    width:34px;
    height:34px;
    min-height:34px;
    list-style:none;
    cursor:pointer;
  }
  .profile-photo-edit > summary::-webkit-details-marker {display:none}
  .profile-photo-edit[open] > summary {box-shadow:inset 0 -2px #597b69}
  .profile-photo-form {
    display:grid;
    grid-template-columns:minmax(0,1fr) 34px;
    align-items:center;
    gap:6px;
    width:min(100%,310px);
    margin-top:7px;
  }
  .profile-photo-form input[type="file"] {
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    margin:0;
    padding:0;
    font-size:.75rem;
  }
  .profile-photo-form input[type="file"]::file-selector-button {
    min-height:34px;
    margin-inline-end:6px;
    padding:4px 7px;
    border:1px solid #d5e2da;
    border-radius:7px;
    background:#e5efe8;
    color:#365548;
    font:inherit;
    cursor:pointer;
  }
  body.ui-shell-r21 .main .profile-photo-form .record-icon-r128 {
    width:34px;
    height:34px;
    min-height:34px;
  }
  .profile-password {max-width:740px;margin-top:10px}
  .profile-password summary {width:fit-content;cursor:pointer;font-weight:650}
  .profile-password form {max-width:360px;margin-top:10px}
}

@media screen {
  body.ui-shell-r21[data-app-page] .main :is(.property-list-r0101,.simulator-list-r06) {gap:8px}
  body.ui-shell-r21[data-app-page] .main .property-listing-r0101 {padding:10px 12px;gap:9px 12px}
  .property-listing-r0101 .property-listing-media-r0101,
  .property-listing-r0101 .property-listing-media-r0101 img {min-height:104px}
  .property-listing-r0101 .property-listing-location-r0101 {margin-bottom:6px}
  .property-listing-r0101 .property-listing-gallery-r0101 {margin-top:6px}
  body.ui-shell-r21[data-app-page] .main .simulator-list-r06 .simulator-list-main-r06 {padding-block:7px}
  body.ui-shell-r21[data-app-page] .main :is(.simulator-list-r06,.proposal-screen-r146,.commission-screen-compact) .record-icon-r128 {
    flex:0 0 auto;
    width:34px;
    height:34px;
    min-height:34px;
  }
  body.ui-shell-r21[data-app-page] .main .proposal-screen-r146 .proposal-fields-r167 {
    gap:8px 10px;
  }
  .proposal-screen-r146 [data-proposal-plan] > button[type="submit"] {margin-top:8px}
  .clients-metrics:focus-visible {outline:2px solid #527b62;outline-offset:2px}
}

@media screen {
  body.ui-shell-r21[data-app-page] .main .listing-card-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(0,126px));
    grid-auto-rows:minmax(72px,auto);
    justify-content:start;
    gap:8px;
    margin:0 0 10px;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    min-width:0;
    min-height:72px;
    padding:6px 8px;
    border:0;
    border-radius:8px;
    background:var(--wash,#edf5ef);
    color:var(--tone,#294b47);
    box-shadow:none;
    text-decoration:none;
    overflow-wrap:anywhere;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card > span {
    color:var(--tone,#496456);
    font-size:.75rem;
    font-weight:650;
    line-height:1.24;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card > strong {
    font-size:1rem;
    line-height:1.15;
    color:inherit;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card[aria-current="true"] {
    box-shadow:inset 0 -2px var(--tone,#527b62);
  }
  body.ui-shell-r21[data-app-page] .main .listing-card-warning {
    background:#fff4d5;
    color:#765711;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card-warning[aria-current="true"] {
    box-shadow:inset 0 -2px #a67d24;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card-warning > span {color:inherit}
  body.ui-shell-r21[data-app-page] .main a.listing-card:is(:hover,:focus-visible) {
    outline:2px solid var(--tone,#527b62);
    outline-offset:-2px;
  }
  body.ui-shell-r21[data-app-page] .main .listing-card-grid-single-row {
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:126px;
    overflow-x:auto;
  }
  .listing-card-grid-single-row:focus-visible {outline:2px solid #527b62;outline-offset:2px}
  .listing-card > small {font-size:.6875rem;line-height:1.25;}


  body.ui-shell-r21[data-app-page] .main .listing-edge-search > .form-group:has(input[name="q"]) {
    flex:1 1 280px;
  }
  body.ui-shell-r21 .main .listing-edge-search .compact-filter-submit-row {display:contents}
  body.ui-shell-r21[data-app-page] .main .listing-edge-search .compact-filter-submit-row > .form-group {
    flex:0 1 155px;
  }
  body.ui-shell-r21[data-app-page] .main .listing-edge-search :is(.crm-filter-actions-r131,button[type="submit"]) {
    margin-inline-start:auto;
  }
  body.ui-shell-r21[data-app-page] .main .listing-edge-search .crm-filter-actions-r131 button {margin-inline-start:0}
  @media (max-width:480px) {
    body.ui-shell-r21[data-app-page] .main .listing-edge-search > .form-group:has(input[name="q"]) {
      flex-basis:100%;
    }
    body.ui-shell-r21[data-app-page] .main .listing-edge-search .compact-filter-submit-row > .form-group {
      flex:1 1 130px;
    }
  }

  .compact-search-panel:has(.attendance-broker-filter) {container-type:inline-size}
  @container (min-width:710px) {
    body.ui-shell-r21[data-app-page] .main .attendance-broker-filter {
      grid-template-columns:minmax(250px,336px) repeat(3,minmax(0,1fr)) 36px;
      max-width:none;
    }
    .attendance-broker-filter .form-group:has(#attendance-stage) {grid-area:1 / 3}
    .attendance-broker-filter .form-group:has(#filter-ordem) {grid-area:1 / 4}
    .attendance-broker-filter button[type="submit"] {grid-area:1 / 5}
    body.ui-shell-r21[data-app-page] .main .attendance-broker-filter:has(.crm-filter-actions-r131 > a) {
      grid-template-columns:minmax(250px,336px) repeat(3,minmax(0,1fr)) repeat(2,36px);
    }
    .attendance-broker-filter .crm-filter-actions-r131 > a {grid-area:1 / 6}
  }
}
