/* OSPrimeApp 5.7 — Clientes */
#page-clients,
#page-clients > .panel {
  min-width: 0;
}
#page-clients .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
#page-clients .inline-search {
  max-width: 100%;
}
.list-search-label { display: block; font-weight: 600; margin: 0 0 8px; }
.list-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; color: var(--layout-muted, #afbed2); font-size: 14px; line-height: 1.5; }
.list-pagination:empty { display: none; }
.list-pagination-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.list-pagination .btn:disabled { opacity: .5; cursor: default; }
@media (min-width: 769px) {
  html body.premium-ui.mc-ux-536 #clientsTable .client-row-actions {
    display:flex !important; flex-wrap:nowrap !important; gap:6px !important;
  }
  html body.premium-ui.mc-ux-536 #clientsTable .client-row-actions .mini-btn {
    min-width:0 !important; padding:8px 10px !important; margin:0 !important;
    white-space:nowrap; flex:0 0 auto;
  }
}
#clientsTable td[data-label="Telefone"],#clientsTable td[data-label="CPF/RG"] {
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
#historyList .history-main { min-width:0; overflow-wrap:anywhere; }
#historyList .history-side { flex-shrink:0; }
@media(max-width:480px) {
  html body.premium-ui.mc-ux-536 #historyList .history-card { grid-template-columns:minmax(0,1fr) !important; gap:12px; }
  #historyList .history-main { flex:1 1 100%; }
  html body.premium-ui.mc-ux-536 #historyList .history-side { width:100%; text-align:left !important; }
}
.history-client-filter:not([hidden]) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 0; margin-bottom: 16px; border-bottom: 1px solid var(--border-dim, #334155); }
.history-client-filter > div { min-width: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.history-client-filter small { display: block; margin-top: 6px; color: var(--layout-muted, #afbed2); line-height: 1.5; }
@media (max-width: 768px) {
  .list-pagination-actions { width: 100%; justify-content: space-between; gap: 8px; }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable {
    display: block; width: 100% !important; min-width: 0 !important;
  }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable tbody { display: block; }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable tr[data-client] {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px;
    padding: 18px 0; border-bottom: 1px solid var(--border-dim,#334155);
  }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable tr[data-client] td {
    display: block; position: static !important; min-width: 0 !important; width: auto !important;
    padding: 0 !important; border: 0 !important; box-shadow: none !important;
    background: transparent !important; white-space: normal !important;
    overflow: visible; overflow-wrap: anywhere; text-align: left;
  }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    color: var(--layout-muted,#afbed2); font-size: 12px; font-weight: 400;
  }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable td:first-child,
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable td:last-child { grid-column: 1 / -1; }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable td:first-child { font-size: 16px !important; font-weight: 650; }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable .client-row-actions {
    display: flex !important; flex-wrap: wrap; gap: 8px;
  }
  html body.premium-ui.mc-ux-536 #page-clients #clientsTable .mini-btn { flex: 1 1 80px; min-height: 44px !important; }
}
