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

body {
  min-width: 0;
}

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

.content-wrapper,
.right-side,
.main-footer {
  min-width: 0;
}

.content {
  max-width: 100%;
}

.box,
.box-body,
.box-footer,
.modal-content {
  min-width: 0;
}

.box-header > .box-title {
  display: block;
  line-height: 1.3;
  white-space: normal;
}

.table-responsive {
  border: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
  margin-bottom: 0;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  vertical-align: middle;
}

.form-control,
.input-group,
.select2-container,
.select2-container .select2-choice,
.select2-container .select2-choices {
  max-width: 100%;
}

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

.select2-container .select2-choice {
  min-height: 34px;
}

textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.login-logo img,
.sidebar .login-logo img {
  height: auto;
  max-height: 70px;
  width: auto;
}

.main-header .logo {
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-header > h1 {
  line-height: 1.25;
}

.content-header > h1 > small {
  display: inline-block;
  line-height: 1.3;
}

.modal-body {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.dataTables_wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper table.dataTable {
  width: 100% !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  max-width: 100%;
}

@media screen and (max-width: 991px) {
  .content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .box-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {
    right: 0;
  }
}

@media screen and (max-width: 767px) {
  .content {
    padding: 10px;
  }

  .content-header {
    padding: 10px;
  }

  .content-header > h1 {
    font-size: 22px;
  }

  .box-header,
  .box-body,
  .box-footer {
    padding: 10px;
  }

  #ajax-content .box-body > [class*="col-xs-"],
  #ajax-content .box-footer > [class*="col-xs-"],
  #ajax-content form > [class*="col-xs-"],
  #ajax-content form .row > [class*="col-xs-"],
  #ajax-content .form-group > [class*="col-xs-"],
  #ajax-content .content > .row > [class*="col-xs-"],
  #ajax-content .page-content > .row > [class*="col-xs-"] {
    float: none;
    width: 100%;
  }

  #ajax-content [class*="col-xs-"] + [class*="col-xs-"] {
    margin-top: 8px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .input-group {
    width: 100%;
  }

  .select2-container .select2-choice {
    min-height: 38px;
    line-height: 38px;
  }

  .select2-container .select2-choice .select2-arrow b {
    background-position-y: 6px;
  }

  .btn {
    white-space: normal;
  }

  .box-footer .pull-right,
  .modal-footer .pull-right {
    float: none !important;
  }

  .box-footer .btn,
  .modal-footer .btn {
    margin-bottom: 6px;
  }

  .box-footer .btn + .btn,
  .modal-footer .btn + .btn {
    margin-left: 0;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: left;
  }

  .dataTables_wrapper .dataTables_filter input {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
  }

  .pagination {
    display: block;
    white-space: normal;
  }

  .pagination > li > a,
  .pagination > li > span {
    margin-bottom: 4px;
  }

  .modal-dialog,
  .modal-dialog[style*="width"] {
    margin: 10px;
    width: auto !important;
  }

  .main-footer {
    text-align: center;
  }

  .main-footer .pull-right {
    float: none !important;
  }

  #ajax-content #nome-cliente {
    font-size: 22px !important;
    line-height: 1.25;
    word-break: break-word;
  }

  #ajax-content #tags,
  #ajax-content #qtd,
  #ajax-content #vProd,
  #ajax-content #subtotal,
  #ajax-content #valortotal {
    font-size: 22px !important;
    height: 48px !important;
  }

  #ajax-content .btn > h4 {
    font-size: 16px;
    margin: 0 0 4px;
  }

  #ajax-content .app-action-cell {
    min-width: 112px;
    white-space: normal;
  }

  #ajax-content .action-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  #ajax-content .action-buttons a,
  #ajax-content .action-buttons button {
    font-size: 16px;
  }

  #ajax-content .app-action-header {
    min-width: 112px;
  }

  #ajax-content .action-buttons a,
  #ajax-content .action-buttons button:not(.btn),
  #ajax-content .app-action-cell > a,
  #ajax-content .app-action-cell > button:not(.btn) {
    align-items: center;
    background: #f9fafb;
    border: 1px solid #d2d6de;
    border-radius: 4px;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0 8px;
    text-decoration: none;
    touch-action: manipulation;
  }

  #ajax-content .action-buttons button.btn,
  #ajax-content .app-action-cell > button.btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  #ajax-content .action-buttons a + a,
  #ajax-content .action-buttons button + button {
    margin-left: 0;
  }

  #ajax-content .app-action-cell .fa {
    font-size: 18px;
    line-height: 1;
  }
}

@media screen and (max-width: 480px) {
  .content-header > h1 {
    font-size: 20px;
  }

  .table > thead > tr > th,
  .table > tbody > tr > th,
  .table > tfoot > tr > th,
  .table > thead > tr > td,
  .table > tbody > tr > td,
  .table > tfoot > tr > td {
    padding: 6px;
  }

  .btn-lg {
    font-size: 16px;
    padding: 8px 12px;
  }
}
