@charset "utf-8";

@media (max-width: 991.98px) {
  html,
  body {
    max-width: 100%;
  }

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

  .card,
  .alert,
  .modal-content,
  .dropdown-menu,
  .list-group-item {
    overflow-wrap: anywhere;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html,
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  .container,
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .row {
    --bs-gutter-x: 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn,
  .form-control,
  .form-select,
  .input-group-text {
    min-height: 44px;
  }

  .form-check-input {
    transform: scale(1.08);
    margin-top: 0.2em;
  }

  .app-main {
    padding: 1rem !important;
  }

  .page-wrapper {
    padding: 0 0.5rem 1rem !important;
  }

  .page-wrapper .sidebar {
    width: 100% !important;
    min-height: auto !important;
  }

  .page-wrapper .client-main {
    width: 100% !important;
  }

  .page-wrapper .nav-btn {
    min-height: 44px;
    justify-content: flex-start;
  }

  .step-tabs .tab {
    min-width: 0 !important;
    flex: 1 1 calc(50% - 0.5rem) !important;
  }

  .dataTables_wrapper {
    overflow-x: auto;
  }

  .dataTables_wrapper table.dataTable {
    min-width: 720px;
  }

  table.table:not(.dataTable) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Fallback for legacy inline fixed widths in old templates */
  [style*="min-width:260px"],
  [style*="min-width: 260px"],
  [style*="min-width:280px"],
  [style*="min-width: 280px"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  [style*="width:280px"],
  [style*="width: 280px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  #searchGlobal,
  #filterStatus,
  #filterPay {
    width: 100% !important;
    max-width: 100% !important;
  }

  #dtButtons {
    width: 100%;
  }

  #dtButtons .btn {
    width: 100%;
    margin-bottom: 0.4rem;
  }

  .modal-dialog {
    margin: 0.5rem auto;
    max-width: calc(100% - 1rem);
  }

  .modal-body {
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  h1,
  .h1 {
    font-size: 1.55rem;
  }

  h2,
  .h2 {
    font-size: 1.35rem;
  }

  h3,
  .h3 {
    font-size: 1.2rem;
  }

  .btn-group,
  .btn-group-vertical {
    width: 100%;
  }

  .btn-group > .btn,
  .btn-group-vertical > .btn {
    flex: 1 1 auto;
  }
}
