/* Rex mobile/readability layer: preserves the approved layout and business actions. */
.rex-approved {--rex-muted:#526077}
.rex-approved .page-sub,.rex-approved .card-note {color:var(--rex-muted)}
.rex-approved .content a:not(.btn):not(.nav-item):not(.rex-client-action):not(.rex-pulse-link) {text-underline-offset:3px}
.rex-approved .content p a,.rex-approved .content .card-note a {text-decoration:underline}
.rex-approved .content p a,.rex-approved .content .card-note a,.rex-approved .client-kind,.rex-approved .rex-client-filters button[aria-pressed="true"] {color:#975000}
.rex-approved .mobile-nav [aria-current="page"] {color:#975000}
.rex-approved .mobile-nav [aria-current="page"] span {color:#975000}
.rex-approved .data-table a:not(.btn) {color:#975000;text-decoration:underline}
.rex-approved .mobile-nav span {font-size:12px;line-height:1.2}
.rex-approved .rex-chart-months {font-size:12px;color:var(--rex-muted)}
.rex-approved .rex-chart-months span {font-size:12px}
.rex-approved .content small {font-size:12px;line-height:1.5}
.rex-approved .rex-client-filters button.active,.rex-approved button[data-rex-client-filter][aria-pressed="true"] {color:#975000}
.rex-approved .content {overflow-wrap:break-word}
.rex-approved .content a[href^="http"]:not(.btn) {color:#975000;text-decoration:underline}
html[data-theme="dark"] .rex-approved .content a[href^="http"]:not(.btn) {color:#ffb64f}
html[data-theme="dark"] .rex-approved .rex-breadcrumb span {color:var(--rex-muted)}
.rex-approved .commerce-surface {min-width:0}
html[data-theme="dark"] .rex-approved {--rex-muted:#b0bdce}
html[data-theme="dark"] .rex-approved .mobile-nav [aria-current="page"] span,html[data-theme="dark"] .rex-approved .data-table a:not(.btn) {color:#ffb64f}
html[data-theme="dark"] .rex-approved .content p a,html[data-theme="dark"] .rex-approved .content .card-note a,html[data-theme="dark"] .rex-approved .client-kind,html[data-theme="dark"] .rex-approved .mobile-nav [aria-current="page"],html[data-theme="dark"] .rex-approved .rex-client-filters button.active,html[data-theme="dark"] .rex-approved button[data-rex-client-filter][aria-pressed="true"] {color:#ffb64f}
/* PWA iOS (status bar translucente): não cobrir o topo do conteúdo */
@supports (padding: env(safe-area-inset-top)) {
  body.rex-approved {
    padding-top: env(safe-area-inset-top, 0px);
  }
  /* Evita padding duplo quando o header já empurra o conteúdo */
  body.rex-approved .rex-header {
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  body.rex-approved .mobile-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
}

@media(max-width:860px) {
  .rex-approved .rex-header {gap:10px;min-height:64px}
  .rex-approved .rex-header form {width:100%;max-width:none}
  .rex-approved .rex-intro p {line-height:1.6}
  .rex-approved .rex-intro-actions {display:flex;width:100%;gap:10px}
  .rex-approved .rex-intro-actions .btn {flex:1;justify-content:center;white-space:normal}
  .rex-approved .rex-chart {height:auto;min-height:0}
  .rex-approved .rex-chart svg {height:120px}
  .rex-approved .rex-revenue {min-height:0}
  .rex-approved .rex-chart {margin-bottom:0}
  .rex-approved .mobile-nav {
    padding-bottom:env(safe-area-inset-bottom,0px);
    min-height:calc(64px + env(safe-area-inset-bottom,0px));
    z-index:50;
  }
  .rex-approved .shell.mobile-menu-open .mobile-nav {visibility:hidden;pointer-events:none}
  .rex-approved .shell.mobile-menu-open .sidebar {
    z-index:80 !important;
    padding-top:calc(12px + env(safe-area-inset-top,0px)) !important;
    padding-bottom:calc(28px + env(safe-area-inset-bottom,0px)) !important;
  }
  .rex-approved .shell.mobile-menu-open .drawer-backdrop {z-index:70 !important}
  .rex-approved .content {
    padding-bottom:110px;
    padding-bottom:calc(110px + env(safe-area-inset-bottom,0px));
  }
  .rex-approved .rex-eyebrow {font-size:12px;letter-spacing:.8px}
  .rex-approved .rex-client-action {min-height:48px}
  /* iOS/Android: inputs <16px disparam zoom no foco; botões com touch-action evitam double-tap zoom */
  .rex-approved input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .rex-approved select,
  .rex-approved textarea,
  .rex-approved .rex-client-search input,
  .rex-approved .rex-manage-fields input,
  .rex-approved .rex-manage-fields select,
  .rex-approved .rex-manage-inline input {font-size:16px !important}
  .rex-approved a, .rex-approved button, .rex-approved summary, .rex-approved .btn,
  .rex-approved .rex-ico, .rex-approved .rex-client-tabs button, .rex-approved .nav-item {
    touch-action:manipulation;-webkit-tap-highlight-color:transparent
  }
}
@media(max-width:360px) {
  .rex-approved .mobile-nav span {font-size:11px}
  .rex-approved .commerce-surface h1 {font-size:26px;line-height:1.2;letter-spacing:-.5px}
}
