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

.table-responsive-auto {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  .main-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 90px;
  }

  .main-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-bg {
    height: 70px;
  }

  .main-navbar {
    left: 0;
    right: 0;
  }

  .section .section-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 12px 15px;
  }

  .section .section-header h1 {
    font-size: 20px;
    margin-bottom: 0;
  }

  .section .section-header .section-header-breadcrumb {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .card .card-header {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 60px;
    padding: 12px 15px;
  }

  .card .card-header h4 {
    font-size: 15px;
    line-height: 1.4;
  }

  .card .card-header .card-header-action,
  .card .card-header .btn {
    margin-left: 0;
  }

  .card .card-body {
    padding: 15px;
  }

  .card .card-body .btn,
  .card .card-header .btn {
    white-space: normal;
  }

  .form-inline,
  .form-inline .form-group,
  .form-inline .form-control,
  .form-inline .btn {
    display: block;
    width: 100%;
  }

  .form-inline .form-group,
  .form-inline .form-control {
    margin-bottom: 8px;
  }

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

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: left;
    margin-bottom: 8px;
    white-space: normal;
  }

  .dataTables_wrapper .dataTables_filter input {
    margin-left: 0;
    width: 100%;
  }

  .dataTables_wrapper .dataTables_paginate {
    text-align: center;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 8px;
  }

  .table td,
  .table th {
    white-space: nowrap;
  }

  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-body {
    overflow-x: auto;
  }

  .business-info {
    padding: 8px;
  }

  .nav-pills,
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-pills .nav-item,
  .nav-tabs .nav-item {
    white-space: nowrap;
  }

  .dropdown-menu {
    max-width: calc(100vw - 20px);
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .main-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  .btn-group {
    flex-wrap: wrap;
  }

  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.4rem; }
  h3, .h3 { font-size: 1.2rem; }
}
