/* Garra Vip 2.0.14 — responsividade global para desktop, tablet e celular */
:root {
  --gv-touch: 44px;
  --gv-mobile-gap: 1rem;
  --gv-mobile-radius: 14px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 1rem;
  line-height: 1.55;
}

img, svg, video, canvas {
  max-width: 100%;
}

/* Conteúdo do painel */
.content-wrapper .container-xxl,
.content-wrapper .container-fluid {
  width: 100%;
}

.card-title,
.modal-title,
.gestor-page-header h4,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
}

.form-label {
  font-weight: 600;
  margin-bottom: .45rem;
}

.form-text,
.text-muted,
small {
  line-height: 1.45;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 42px;
  font-size: .975rem;
}

textarea.form-control {
  min-height: 92px;
}

.btn {
  min-height: 42px;
  font-weight: 600;
}

.dropdown-menu {
  max-width: min(92vw, 360px);
}

.dropdown-item {
  white-space: normal;
}

/* Menu lateral / navegação */
.menu-vertical .menu-item > .menu-link {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.menu-vertical .menu-inner > .menu-item .menu-link {
  line-height: 1.35;
}

.layout-navbar .navbar-nav .nav-link,
.layout-navbar .navbar-nav .dropdown-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

/* Tabelas */
.fixed-table-body,
.table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fixed-table-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.fixed-table-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(105,108,255,.38);
}

.bootstrap-table .table > thead > tr > th,
.bootstrap-table .table > tbody > tr > td {
  line-height: 1.4;
}

.bootstrap-table .card-view .title,
.bootstrap-table .card-view .value {
  font-size: .95rem;
}

/* Modais: sempre dentro da viewport */
.modal-dialog {
  max-width: min(var(--bs-modal-width, 900px), calc(100vw - 1rem));
}

.modal-content {
  max-width: 100%;
}

/* Página de vendas */
.landing-navbar {
  min-height: 70px;
}

.landing-navbar .app-brand-text {
  font-size: 1.15rem;
}

.landing-navbar .nav-link {
  font-size: 1rem;
}

.landing-hero .hero-text-box {
  max-width: 780px !important;
}

.landing-hero .hero-title {
  font-size: clamp(2rem, 4.4vw, 3.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em;
}

.landing-hero .hero-sub-title {
  max-width: 690px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  line-height: 1.65 !important;
}

.landing-features .features-icon-box {
  padding: 1.15rem;
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.landing-features .features-icon-box:hover {
  transform: translateY(-2px);
  background: rgba(105,108,255,.035);
}

.landing-features .features-icon-box img {
  max-width: 72px;
  height: auto;
}

.landing-features .features-icon-description {
  font-size: 1rem;
  line-height: 1.6;
}

.landing-pricing .card {
  border-radius: 20px !important;
}

.landing-pricing .card .card-header,
.landing-pricing .card .card-body {
  padding: clamp(1.25rem, 2.6vw, 2rem) !important;
}

.landing-pricing .display-5 {
  font-size: clamp(2.25rem, 5vw, 3.3rem);
}

.landing-pricing .card li {
  font-size: 1rem;
  line-height: 1.45;
}

.landing-pricing .js-buy-plan {
  min-height: 48px;
  font-size: 1rem;
}

.landing-faq .accordion-button {
  min-height: 52px;
  font-size: 1rem;
  line-height: 1.4;
}

.landing-faq .accordion-body,
.landing-reviews .card-body p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Checkout */
.gv-checkout .card-body {
  min-width: 0;
}

.gv-checkout #pixPayload {
  font-size: .92rem;
  word-break: break-all;
}

.gv-checkout .input-group {
  align-items: stretch;
}

/* Tablet */
@media (max-width: 991.98px) {
  body {
    font-size: 1rem;
  }

  .content-wrapper .container-xxl,
  .content-wrapper .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .landing-navbar {
    min-height: 64px;
  }

  .landing-nav-menu {
    font-size: 1rem;
  }

  .landing-nav-menu .navbar-nav {
    gap: .35rem;
  }

  .landing-nav-menu .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: .75rem 1rem !important;
  }

  .landing-pricing {
    border-radius: 2rem !important;
  }

  .landing-pricing .row > [class*="col-"] {
    min-width: 0;
  }
}

/* Celular */
@media (max-width: 767.98px) {
  :root {
    --gv-touch: 48px;
  }

  body {
    font-size: 16px !important;
    line-height: 1.55;
  }

  p,
  li,
  .form-text,
  .text-muted,
  .card-text {
    font-size: .98rem;
  }

  h1, .h1 { font-size: 2rem; line-height: 1.15; }
  h2, .h2 { font-size: 1.65rem; line-height: 1.2; }
  h3, .h3 { font-size: 1.4rem; line-height: 1.25; }
  h4, .h4 { font-size: 1.2rem; }
  h5, .h5 { font-size: 1.08rem; }

  .content-wrapper .container-xxl,
  .content-wrapper .container-fluid {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }

  .card {
    border-radius: var(--gv-mobile-radius) !important;
  }

  .card-body {
    padding: 1rem;
  }

  .btn:not(.btn-icon) {
    min-height: var(--gv-touch);
    padding: .7rem 1rem;
    font-size: .98rem;
  }

  .btn-icon {
    width: var(--gv-touch) !important;
    min-width: var(--gv-touch) !important;
    height: var(--gv-touch) !important;
  }

  .form-control,
  .form-select,
  .input-group-text {
    min-height: var(--gv-touch);
    font-size: 16px !important; /* evita zoom automático no iOS */
    padding-block: .65rem;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .select2-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .select2-container .select2-selection--single {
    min-height: var(--gv-touch);
    display: flex;
    align-items: center;
  }

  .gestor-page-header {
    margin-bottom: 1rem;
  }

  .gestor-page-header h4 {
    font-size: 1.35rem;
  }

  .gestor-page-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .gestor-page-actions .btn,
  .gestor-toolbar-group > .btn,
  .gestor-toolbar-group > .form-select {
    width: 100%;
  }

  .gestor-stat-label {
    font-size: .9rem;
  }

  .gestor-stat-value {
    font-size: 1.35rem;
  }

  .fixed-table-toolbar .search input {
    min-height: var(--gv-touch);
    font-size: 16px !important;
  }

  .bootstrap-table .card-view {
    padding: .48rem 0;
  }

  .bootstrap-table .card-view .title {
    flex: 0 0 38%;
    max-width: 38%;
    font-size: .9rem;
  }

  .bootstrap-table .card-view .value {
    font-size: .95rem;
  }

  .client-actions,
  .server-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(44px, 1fr));
    width: 100%;
    gap: .5rem;
  }

  .client-actions .btn,
  .server-actions .btn {
    min-width: 0;
  }

  /* Menu lateral: alvos maiores para toque */
  .menu-vertical .menu-item > .menu-link {
    min-height: 50px;
    font-size: 1rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
  }

  .menu-vertical .menu-icon {
    font-size: 1.35rem !important;
  }

  /* Landing mobile */
  .layout-navbar .container,
  .landing-navbar.container,
  .landing-navbar {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .landing-navbar {
    min-height: 60px;
    border-radius: 14px;
  }

  .landing-navbar .navbar-brand {
    margin-right: .25rem !important;
  }

  .landing-navbar .app-brand-text {
    font-size: 1.05rem !important;
    white-space: nowrap;
  }

  .landing-navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
  }

  .landing-navbar .navbar-toggler i {
    font-size: 1.45rem !important;
  }

  .landing-navbar .gv-login-btn {
    min-width: 44px;
    min-height: 44px;
    padding: .55rem .7rem;
  }

  .landing-navbar .gv-login-btn .gv-login-text {
    display: none;
  }

  .landing-nav-menu {
    padding: 4rem 1rem 1rem !important;
  }

  .landing-nav-menu .nav-link {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 12px;
  }

  .landing-hero {
    padding-top: 7.2rem !important;
    padding-bottom: 3.25rem !important;
    border-radius: 0 0 1.75rem 1.75rem !important;
  }

  .landing-hero .container {
    padding-inline: 1rem;
  }

  .landing-hero .hero-title {
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }

  .landing-hero .hero-sub-title {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }

  .landing-hero .landing-hero-btn,
  .landing-hero .landing-hero-btn .btn {
    width: 100%;
  }

  .landing-hero .landing-hero-btn .btn {
    min-height: 52px;
    font-size: 1.05rem;
  }

  .section-py {
    padding: 2.75rem 0 !important;
  }

  .landing-features h3,
  .landing-pricing h3,
  .landing-faq h3,
  .landing-reviews h3 {
    font-size: 1.55rem !important;
  }

  .landing-features .features-icon-wrapper {
    gap: .9rem 0 !important;
  }

  .landing-features .features-icon-box {
    text-align: left !important;
    padding: 1rem;
    border: 1px solid rgba(110,120,150,.12);
    box-shadow: 0 8px 22px rgba(31,38,135,.06);
    background: var(--bs-body-bg, #fff);
  }

  .landing-features .features-icon-box > .text-center {
    text-align: left !important;
    margin-bottom: .7rem !important;
  }

  .landing-features .features-icon-box img {
    width: 52px;
  }

  .landing-features .features-icon-box h5 {
    margin-bottom: .5rem !important;
  }

  .landing-features .features-icon-description {
    max-width: none !important;
    margin: 0 !important;
  }

  .landing-reviews,
  .landing-faq,
  .landing-pricing {
    border-radius: 1.5rem !important;
  }

  .landing-reviews .card-body {
    padding: 1rem !important;
  }

  .landing-pricing .container {
    padding-inline: 1rem;
  }

  .landing-pricing .card {
    margin-bottom: .25rem;
  }

  .landing-pricing .card .card-header,
  .landing-pricing .card .card-body {
    padding: 1.15rem !important;
  }

  .landing-pricing .display-5 {
    font-size: 2.35rem !important;
  }

  .landing-pricing .js-buy-plan {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
  }

  .landing-pricing .js-cycle-btn {
    min-width: 115px;
  }

  .landing-faq .faq-image {
    max-width: 13rem !important;
  }

  /* Checkout mobile */
  .gv-checkout {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .gv-checkout .gv-checkout-header {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
  }

  .gv-checkout .gv-checkout-header .btn {
    width: 100%;
  }

  .gv-checkout .card-body {
    padding: 1rem !important;
  }

  .gv-checkout .display-5 {
    font-size: 2.25rem !important;
  }

  .gv-checkout #pixQr {
    max-width: min(240px, 78vw) !important;
  }

  .gv-checkout .input-group {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .gv-checkout .input-group textarea {
    border-radius: 12px 0 0 12px !important;
  }

  .gv-checkout .input-group .btn {
    border-radius: 0 12px 12px 0 !important;
    min-width: 52px;
  }

  /* Modal mobile */
  .modal-dialog,
  .gestor-edit-modal .modal-dialog {
    width: calc(100vw - .5rem) !important;
    max-width: calc(100vw - .5rem) !important;
    margin: .25rem auto !important;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-footer {
    padding: .75rem 1rem 1rem;
  }

  .modal-footer .btn {
    min-height: 48px;
  }

  .modal-body::-webkit-scrollbar {
    width: 7px;
  }
}

/* Celulares muito pequenos */
@media (max-width: 420px) {
  .content-wrapper .container-xxl,
  .content-wrapper .container-fluid {
    padding-left: .65rem !important;
    padding-right: .65rem !important;
  }

  .gestor-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .landing-navbar .app-brand-text {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-hero .hero-title {
    font-size: 1.95rem !important;
  }

  .landing-pricing .js-cycle-btn {
    min-width: 0;
    flex: 1 1 0;
  }

  .client-actions,
  .server-actions {
    grid-template-columns: repeat(2, minmax(44px, 1fr));
  }
}

/* v2.0.16 - formulários e modais mais confortáveis em celular */
.gestor-simple-integration-note,
.gestor-integration-status {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .gestor-edit-modal .modal-content,
  #addClientModal .modal-content,
  #addServidor .modal-content {
    max-height: calc(100dvh - .5rem) !important;
  }

  .gestor-edit-modal .modal-body,
  #addClientModal .modal-body,
  #addServidor .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 1rem !important;
  }

  .gestor-sticky-modal-footer,
  .gestor-edit-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bs-body-bg, #fff);
    padding-bottom: max(.85rem, env(safe-area-inset-bottom)) !important;
  }

  .gestor-sticky-modal-footer .btn,
  .gestor-edit-modal .modal-footer .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .gestor-api-panel summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    line-height: 1.35;
  }
}

/* v2.0.20 — menu dos três pontinhos sempre acima das linhas da tabela */
.client-actions .dropdown-menu.show {
  z-index: 20500 !important;
}

/*
 * Bootstrap Table pinta as linhas seguintes sobre o dropdown em algumas larguras.
 * Quando existe um menu aberto, elevamos a linha, a célula e o dropdown que o contém.
 */
.bootstrap-table tbody tr:has(.client-actions .dropdown-menu.show),
#table tbody tr:has(.client-actions .dropdown-menu.show) {
  position: relative !important;
  z-index: 20490 !important;
}

.bootstrap-table tbody td:has(.client-actions .dropdown-menu.show),
#table tbody td:has(.client-actions .dropdown-menu.show) {
  position: relative !important;
  z-index: 20495 !important;
  overflow: visible !important;
}

.client-actions .dropdown:has(.dropdown-menu.show) {
  position: relative !important;
  z-index: 20500 !important;
}

/* Enquanto o menu estiver aberto ele não pode ser recortado pelo container rolável. */
body:has(.client-actions .dropdown-menu.show) .client-table-shell,
body:has(.client-actions .dropdown-menu.show) .client-table-shell .card-body,
body:has(.client-actions .dropdown-menu.show) .client-table-shell .bootstrap-table,
body:has(.client-actions .dropdown-menu.show) .client-table-shell .fixed-table-container,
body:has(.client-actions .dropdown-menu.show) .client-table-shell .fixed-table-body {
  overflow: visible !important;
}

@media (max-width: 767.98px) {
  .client-actions .dropdown-menu.show {
    min-width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .client-actions .dropdown-menu.show .dropdown-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }
}

/* ======================================================================
 * v2.0.21 — cobrança por quantidade de telas + experiência mobile real
 * ====================================================================== */
.client-price-cell {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  line-height: 1.2;
}

.client-price-cell strong {
  font-size: 1rem;
}

.client-price-cell small {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .78rem;
  white-space: nowrap;
}

.client-price-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(var(--bs-primary-rgb, 105, 108, 255), .24);
  border-radius: 16px;
  background: rgba(var(--bs-primary-rgb, 105, 108, 255), .07);
}

.client-price-preview > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.client-price-preview-label {
  font-weight: 700;
  font-size: .95rem;
}

.client-price-preview small {
  color: var(--bs-secondary-color, #6c757d);
  overflow-wrap: anywhere;
}

.client-price-preview strong {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--bs-primary, #696cff);
  white-space: nowrap;
}

/* Até tablet pequeno já usamos a experiência de cards da lista de clientes. */
@media (max-width: 991.98px) {
  body {
    font-size: 16.5px;
  }

  .layout-page .content-wrapper,
  .content-wrapper {
    overflow-x: hidden;
  }

  .content-wrapper .container-xxl,
  .content-wrapper .container-fluid,
  .gv-client-page {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }

  .gestor-page-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .85rem !important;
    align-items: stretch !important;
  }

  .gestor-page-header h4 {
    font-size: 1.55rem !important;
    line-height: 1.2;
    margin-bottom: .35rem;
  }

  .gestor-page-header p,
  .text-muted {
    line-height: 1.5;
  }

  .gestor-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .75rem !important;
    padding: .85rem !important;
    border-radius: 18px !important;
  }

  .gestor-toolbar-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem !important;
    width: 100%;
  }

  .gestor-toolbar-group .btn,
  .gestor-toolbar-group .form-select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px;
  }

  .fixed-table-toolbar {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: .65rem;
    align-items: center;
    margin-bottom: .75rem;
  }

  .fixed-table-toolbar .search {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  .fixed-table-toolbar .search input {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
  }

  .fixed-table-toolbar .columns,
  .fixed-table-toolbar .bs-bars {
    float: none !important;
    margin: 0 !important;
  }

  /* A tabela de clientes passa a parecer uma lista nativa de aplicativo. */
  .gv-client-page .client-table-shell {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .gv-client-page .client-table-shell > .card-body {
    padding: 0 !important;
  }

  .gv-client-page .bootstrap-table,
  .gv-client-page .fixed-table-container,
  .gv-client-page .fixed-table-body {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .gv-client-page .bootstrap-table .table {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .gv-client-page .bootstrap-table .table > tbody > tr {
    display: block !important;
    margin: 0 0 12px !important;
    padding: .35rem .95rem .85rem !important;
    border: 1px solid var(--bs-border-color, rgba(67, 89, 113, .12)) !important;
    border-radius: 18px !important;
    background: var(--bs-body-bg, #fff) !important;
    box-shadow: 0 8px 24px rgba(30, 41, 59, .06);
    overflow: hidden;
  }

  .gv-client-page .bootstrap-table .table > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .gv-client-page .bootstrap-table .card-views {
    display: grid;
    gap: 0;
    width: 100%;
  }

  .gv-client-page .bootstrap-table .card-view {
    display: grid !important;
    grid-template-columns: minmax(105px, 36%) 1fr;
    gap: .75rem;
    align-items: start;
    padding: .68rem 0 !important;
    border-bottom: 1px solid var(--bs-border-color, rgba(67, 89, 113, .10));
  }

  .gv-client-page .bootstrap-table .card-view:last-child {
    border-bottom: 0;
  }

  .gv-client-page .bootstrap-table .card-view .title {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .82rem !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .025em;
  }

  .gv-client-page .bootstrap-table .card-view .value {
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    font-size: 1.02rem !important;
    font-weight: 550;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .gv-client-page .bootstrap-table .card-view .badge {
    font-size: .9rem;
    padding: .5rem .65rem;
  }

  .gv-client-page .client-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .6rem !important;
    width: 100% !important;
    margin-top: .15rem;
  }

  .gv-client-page .client-actions > .btn,
  .gv-client-page .client-actions > .dropdown > .btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 13px !important;
  }

  .gv-client-page .client-actions > .dropdown {
    width: 100%;
  }

  .client-price-cell strong {
    font-size: 1.08rem;
  }

  .client-price-cell small {
    white-space: normal;
    font-size: .84rem;
  }

  .fixed-table-pagination {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .7rem;
    padding: .5rem .15rem 1rem;
  }

  .fixed-table-pagination .pagination-detail,
  .fixed-table-pagination .pagination {
    float: none !important;
    margin: 0 !important;
  }

  .fixed-table-pagination .pagination {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  /* Tipografia e alvos de toque maiores em todo o painel. */
  body,
  .layout-wrapper {
    font-size: 17px !important;
  }

  .layout-navbar {
    min-height: 64px;
  }

  .layout-navbar .navbar-nav .nav-link,
  .layout-navbar .form-control {
    font-size: 1rem !important;
  }

  .menu-vertical .menu-item > .menu-link {
    min-height: 54px !important;
    font-size: 1.05rem !important;
    border-radius: 12px;
  }

  .menu-vertical .menu-icon {
    font-size: 1.45rem !important;
  }

  .card {
    border-radius: 18px !important;
  }

  .card-header,
  .card-body {
    padding: 1rem !important;
  }

  .form-label {
    margin-bottom: .48rem;
    font-size: 1rem !important;
    font-weight: 650 !important;
  }

  .form-text,
  small,
  .small {
    font-size: .88rem;
    line-height: 1.45;
  }

  .form-control,
  .form-select,
  .input-group-text {
    min-height: 52px !important;
    border-radius: 13px;
    font-size: 16px !important;
    padding: .72rem .85rem !important;
  }

  .input-group > .form-control:not(:last-child),
  .input-group > .form-select:not(:last-child) {
    border-radius: 13px 0 0 13px !important;
  }

  .input-group > .btn:last-child,
  .input-group > .input-group-text:last-child {
    border-radius: 0 13px 13px 0 !important;
  }

  .btn:not(.btn-icon) {
    min-height: 50px !important;
    border-radius: 13px !important;
    font-size: 1rem !important;
    font-weight: 600;
  }

  .btn-icon {
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 13px !important;
  }

  /* Modais viram uma tela de edição confortável, como um app móvel. */
  .modal-dialog,
  .gestor-edit-modal .modal-dialog,
  #addClient .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
  }

  .modal-content,
  .gestor-edit-modal .modal-content,
  #addClient .modal-content {
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .modal-header,
  .gestor-edit-modal .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: max(1rem, env(safe-area-inset-top)) 1rem .9rem !important;
    background: var(--bs-body-bg, #fff);
    border-bottom: 1px solid var(--bs-border-color, rgba(67,89,113,.12));
  }

  .modal-title,
  .modal-body h3 {
    font-size: 1.35rem !important;
    font-weight: 700;
  }

  .modal-body,
  .gestor-edit-modal .modal-body,
  #addClient .modal-body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    padding: 1rem !important;
    padding-bottom: 6.5rem !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer,
  .gestor-sticky-modal-footer {
    position: sticky !important;
    bottom: 0;
    z-index: 11 !important;
    display: grid !important;
    grid-template-columns: 1fr 1.25fr;
    gap: .65rem;
    padding: .8rem 1rem max(.8rem, env(safe-area-inset-bottom)) !important;
    background: var(--bs-body-bg, #fff) !important;
    border-top: 1px solid var(--bs-border-color, rgba(67,89,113,.12));
    box-shadow: 0 -8px 22px rgba(30,41,59,.06);
  }

  .modal-footer .btn,
  .gestor-sticky-modal-footer .btn {
    width: 100% !important;
    margin: 0 !important;
  }

  .gv-client-form .row,
  .gv-client-form.row {
    --bs-gutter-y: 1rem;
  }

  .client-price-preview {
    align-items: flex-start;
    padding: 1rem;
    border-radius: 16px;
  }

  .client-price-preview strong {
    font-size: 1.55rem;
  }

  .accordion-item,
  .accordion-button {
    border-radius: 14px !important;
  }

  .accordion-button {
    min-height: 52px;
    font-size: 1rem;
    font-weight: 600;
  }

  .alert {
    border-radius: 14px !important;
    font-size: .98rem;
    line-height: 1.5;
  }

  /* Em telas estreitas as ações superiores ficam em uma coluna para não espremer texto. */
  .gestor-toolbar-group {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .gv-client-page .bootstrap-table .card-view {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: .55rem;
  }

  .client-price-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .client-price-preview strong {
    justify-self: start;
  }
}
