/*
 * Mikhmon Responsive Enhancement
 * Additive overrides: preserves the original theme and application behavior.
 */
:root {
  color-scheme: light;
  --mh-gap: 12px;
  --mh-radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; font: inherit; }
button, input[type="button"], input[type="submit"], a { touch-action: manipulation; }
.wrapper, .content-wrapper, .main-container, .container, .row {
  min-width: 0;
  max-width: 100%;
}
.main-container { width: 100%; }
table {
  max-width: 100%;
  border-collapse: collapse;
}
.table, .table-responsive, .table-container {
  max-width: 100%;
}
.table-responsive, .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
td, th { overflow-wrap: anywhere; }
.form-control, input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="date"], input[type="time"], select, textarea {
  min-height: 38px;
  max-width: 100%;
}
textarea { resize: vertical; }
.btn, button, input[type="submit"], input[type="button"] {
  min-height: 36px;
  cursor: pointer;
}
pre, code { max-width: 100%; overflow-x: auto; }
.row { margin-left: 0; margin-right: 0; }
[class*="col-"] { min-width: 0; }
@media (max-width: 768px) {
  body { font-size: 14px; }
  .wrapper, .content-wrapper, .main-container, .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  .main-container { padding-left: 10px !important; padding-right: 10px !important; }
  .row { margin-left: -5px; margin-right: -5px; }
  [class*="col-"] { padding-left: 5px; padding-right: 5px; }
  h1 { font-size: 23px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  .box, .panel, .well, .card {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .table, table { font-size: 12px; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { white-space: nowrap; }
  input, select, textarea { width: 100%; }
  .btn, button, input[type="submit"], input[type="button"] {
    margin: 2px 1px;
    white-space: normal;
  }
  .form-group { margin-bottom: 12px; }
  .navbar, .navbar-header { max-width: 100%; }
  .dropdown-menu { max-width: calc(100vw - 20px); }
}
@media (max-width: 480px) {
  body { font-size: 13px; }
  .main-container { padding-left: 7px !important; padding-right: 7px !important; }
  h1 { font-size: 21px; }
  h2 { font-size: 18px; }
  .btn, button, input[type="submit"], input[type="button"] {
    min-height: 40px;
    padding: 8px 10px;
  }
  .table, table { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
