/*
 * SmProvider Default Modern Theme
 * This file only changes the visual presentation of the default panel theme.
 * No Twig variables, form names, IDs, routes or backend actions are changed.
 */

:root {
  --sm-primary: #075ff7;
  --sm-primary-hover: #0453dc;
  --sm-primary-dark: #0a45b8;
  --sm-primary-soft: #eaf2ff;
  --sm-primary-softer: #f4f8ff;
  --sm-bg: #f4f7fb;
  --sm-surface: #ffffff;
  --sm-surface-soft: #f8fafc;
  --sm-heading: #111827;
  --sm-text: #344054;
  --sm-muted: #667085;
  --sm-border: #e4e9f1;
  --sm-border-strong: #d4dce8;
  --sm-success: #14966d;
  --sm-success-soft: #e9f8f2;
  --sm-warning: #d97706;
  --sm-warning-soft: #fff5e7;
  --sm-danger: #d92d20;
  --sm-danger-soft: #fff0ef;
  --sm-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --sm-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
  --sm-shadow-lg: 0 24px 64px rgba(16, 24, 40, 0.14);
  --sm-radius-sm: 9px;
  --sm-radius: 14px;
  --sm-radius-lg: 20px;
  --sm-sidebar-width: 250px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sm-bg);
}

body.sm-theme {
  min-height: 100vh;
  margin: 0;
  color: var(--sm-text);
  background:
    radial-gradient(circle at 85% 0%, rgba(7, 95, 247, 0.055), transparent 28%),
    var(--sm-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sm-theme a {
  color: var(--sm-primary);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.sm-theme a:hover,
body.sm-theme a:focus {
  color: var(--sm-primary-hover);
  text-decoration: none;
}

body.sm-theme h1,
body.sm-theme h2,
body.sm-theme h3,
body.sm-theme h4,
body.sm-theme h5,
body.sm-theme h6 {
  color: var(--sm-heading);
  font-weight: 750;
  letter-spacing: -0.02em;
}

body.sm-theme ::selection {
  color: #fff;
  background: var(--sm-primary);
}

body.sm-theme ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.sm-theme ::-webkit-scrollbar-track {
  background: transparent;
}

body.sm-theme ::-webkit-scrollbar-thumb {
  background: #cfd7e4;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

body.sm-theme ::-webkit-scrollbar-thumb:hover {
  background-color: #aeb8c8;
}

/* ------------------------------
   Authenticated desktop sidebar
   ------------------------------ */
@media (min-width: 992px) {
  body.sm-auth > .navbar {
    position: fixed;
    z-index: 1035;
    top: 18px;
    bottom: 18px;
    left: 18px;
    width: var(--sm-sidebar-width);
    min-height: 0;
    margin: 0;
    overflow: hidden auto;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-lg);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--sm-shadow);
    backdrop-filter: blur(14px);
  }

  body.sm-auth.sm-rtl > .navbar {
    right: 18px;
    left: auto;
  }

  body.sm-auth > .navbar .container-fluid {
    width: 100%;
    padding: 0;
  }

  body.sm-auth > .navbar .navbar-header {
    float: none;
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--sm-border);
  }

  body.sm-auth > .navbar .navbar-brand {
    float: none;
    width: 100%;
    height: auto;
    min-height: 82px;
    padding: 21px 22px;
    display: flex;
    align-items: center;
    color: var(--sm-heading);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.035em;
  }

  body.sm-auth > .navbar .navbar-brand img {
    display: block;
    max-width: 185px;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
  }

  body.sm-auth.sm-rtl > .navbar .navbar-brand img {
    object-position: right center;
  }

  body.sm-auth > .navbar .navbar-toggle {
    display: none;
  }

  body.sm-auth > .navbar #navbar,
  body.sm-auth > .navbar .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 15px 12px 12px;
    overflow: visible !important;
    border: 0;
    box-shadow: none;
  }

  body.sm-auth > .navbar .navbar-nav {
    float: none !important;
    width: 100%;
    margin: 0;
  }

  body.sm-auth > .navbar .navbar-left-block {
    flex: 1 0 auto;
  }

  body.sm-auth > .navbar .navbar-right-block {
    flex: 0 0 auto;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sm-border);
  }

  body.sm-auth > .navbar .navbar-nav > li {
    float: none;
    width: 100%;
    margin: 3px 0;
  }

  body.sm-auth > .navbar .navbar-nav > li > a {
    min-height: 44px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #4a5568;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 650;
    line-height: 22px;
  }

  body.sm-auth > .navbar .navbar-nav > li > a:hover,
  body.sm-auth > .navbar .navbar-nav > li > a:focus {
    color: var(--sm-primary);
    background: var(--sm-primary-softer);
  }

  body.sm-auth > .navbar .navbar-nav > li.active > a,
  body.sm-auth > .navbar .navbar-nav > li.active > a:hover,
  body.sm-auth > .navbar .navbar-nav > li.active > a:focus {
    color: var(--sm-primary);
    background: var(--sm-primary-soft);
    box-shadow: inset 3px 0 0 var(--sm-primary);
  }

  body.sm-auth.sm-rtl > .navbar .navbar-nav > li.active > a,
  body.sm-auth.sm-rtl > .navbar .navbar-nav > li.active > a:hover,
  body.sm-auth.sm-rtl > .navbar .navbar-nav > li.active > a:focus {
    box-shadow: inset -3px 0 0 var(--sm-primary);
  }

  body.sm-auth > .navbar .navbar-icon {
    width: 19px;
    min-width: 19px;
    color: #8b98ab;
    font-size: 17px;
    text-align: center;
  }

  body.sm-auth > .navbar li.active .navbar-icon,
  body.sm-auth > .navbar a:hover .navbar-icon {
    color: var(--sm-primary);
  }

  body.sm-auth > .navbar .badge {
    margin-left: auto;
    padding: 7px 10px;
    color: #fff;
    background: var(--sm-primary);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
  }

  body.sm-auth.sm-rtl > .navbar .badge {
    margin-right: auto;
    margin-left: 0;
  }

  body.sm-auth > .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 5px 0 0;
    padding: 7px;
    border: 1px solid var(--sm-border);
    border-radius: 11px;
    box-shadow: none;
  }

  body.sm-auth > .container,
  body.sm-auth > .container-fluid {
    width: auto;
    max-width: none;
    margin-right: 18px;
    margin-left: calc(var(--sm-sidebar-width) + 36px);
    padding: 28px 24px 0;
  }

  body.sm-auth.sm-rtl > .container,
  body.sm-auth.sm-rtl > .container-fluid {
    margin-right: calc(var(--sm-sidebar-width) + 36px);
    margin-left: 18px;
  }

  body.sm-auth > .container:last-of-type,
  body.sm-auth > .container-fluid:last-of-type {
    padding-bottom: 30px;
  }
}

/* ------------------------------
   Public top navigation
   ------------------------------ */
body.sm-guest > .navbar {
  min-height: 72px;
  margin: 0 0 34px;
  border: 0;
  border-bottom: 1px solid rgba(228, 233, 241, .9);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sm-shadow-sm);
  backdrop-filter: blur(14px);
}

body.sm-guest > .navbar .navbar-brand {
  height: 72px;
  padding: 18px 15px;
  display: flex;
  align-items: center;
  color: var(--sm-heading);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

body.sm-guest > .navbar .navbar-brand img {
  max-width: 190px;
  max-height: 38px;
  object-fit: contain;
}

body.sm-guest > .navbar .navbar-nav > li > a {
  min-height: 72px;
  padding-top: 25px;
  padding-bottom: 25px;
  color: #4b5565;
  font-weight: 650;
}

body.sm-guest > .navbar .navbar-nav > li > a:hover,
body.sm-guest > .navbar .navbar-nav > li.active > a {
  color: var(--sm-primary);
  background: transparent;
}

body.sm-guest > .container {
  padding-bottom: 22px;
}

/* ------------------------------
   Cards / wells / panels
   ------------------------------ */
body.sm-theme .well,
body.sm-theme .panel,
body.sm-theme .modal-content {
  color: var(--sm-text);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  background: var(--sm-surface);
  box-shadow: var(--sm-shadow-sm);
}

body.sm-theme .well {
  min-height: 20px;
  margin-bottom: 22px;
  padding: 24px;
}

body.sm-theme .well-float {
  overflow: hidden;
}

body.sm-theme .table-well {
  padding: 0;
  overflow-x: auto;
}

body.sm-theme .panel-heading {
  padding: 16px 20px;
  color: var(--sm-heading);
  border-color: var(--sm-border);
  border-radius: var(--sm-radius) var(--sm-radius) 0 0;
  background: var(--sm-surface-soft);
  font-weight: 750;
}

body.sm-theme .panel-body {
  padding: 20px;
}

body.sm-theme .panel-footer {
  padding: 15px 20px;
  border-color: var(--sm-border);
  border-radius: 0 0 var(--sm-radius) var(--sm-radius);
  background: var(--sm-surface-soft);
}

body.sm-theme .border-solid {
  border: 1px solid var(--sm-border);
}

body.sm-theme .border-rounded {
  border-radius: 11px;
}

/* ------------------------------
   Forms
   ------------------------------ */
body.sm-theme .form-group {
  margin-bottom: 19px;
}

body.sm-theme .control-label,
body.sm-theme label {
  margin-bottom: 7px;
  color: var(--sm-heading);
  font-size: 13px;
  font-weight: 700;
}

body.sm-theme .form-control {
  height: 46px;
  padding: 10px 13px;
  color: var(--sm-heading);
  border: 1px solid var(--sm-border-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.sm-theme textarea.form-control {
  min-height: 120px;
  height: auto;
  resize: vertical;
  line-height: 1.55;
}

body.sm-theme .form-control:hover {
  border-color: #bcc7d6;
}

body.sm-theme .form-control:focus {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 3px rgba(7, 95, 247, .11);
}

body.sm-theme .form-control[readonly],
body.sm-theme .form-control[disabled],
body.sm-theme fieldset[disabled] .form-control {
  color: #5f6b7a;
  background: #f7f9fc;
  border-color: var(--sm-border);
}

body.sm-theme .input-group .form-control:first-child,
body.sm-theme .input-group-btn:first-child > .btn,
body.sm-theme .input-group-btn:first-child > .btn-group > .btn,
body.sm-theme .input-group-btn:last-child > .btn,
body.sm-theme .input-group-btn:last-child > .btn-group > .btn {
  border-radius: 10px;
}

body.sm-theme .input-group-btn:last-child > .btn {
  margin-left: 8px;
}

body.sm-theme .search-dropdown .input-wrapper button {
  z-index: 2;
  color: #8995a6;
}

body.sm-theme .search-dropdown .form-control {
  padding-left: 39px;
}

body.sm-theme.sm-rtl .search-dropdown .form-control {
  padding-right: 39px;
  padding-left: 13px;
}

body.sm-theme input[type="checkbox"],
body.sm-theme input[type="radio"] {
  accent-color: var(--sm-primary);
}

body.sm-theme .checkbox label,
body.sm-theme .radio label,
body.sm-theme label.terms {
  color: var(--sm-text);
  font-weight: 500;
}

body.sm-theme .forgot-password {
  float: right;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 650;
}

body.sm-theme.sm-rtl .forgot-password {
  float: left;
}

/* Custom select components generated by the panel */
body.sm-theme [data-select="true"] + .dropdown-toggle,
body.sm-theme .bootstrap-select > .dropdown-toggle,
body.sm-theme .select2-container .select2-selection--single {
  min-height: 46px;
  border: 1px solid var(--sm-border-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

body.sm-theme .bootstrap-select > .dropdown-toggle:focus,
body.sm-theme .select2-container--focus .select2-selection--single {
  border-color: var(--sm-primary);
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(7, 95, 247, .11);
}

/* ------------------------------
   Buttons
   ------------------------------ */
body.sm-theme .btn {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 720;
  line-height: 20px;
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.sm-theme .btn:hover {
  transform: translateY(-1px);
}

body.sm-theme .btn:active,
body.sm-theme .btn.active {
  transform: translateY(0);
  box-shadow: none;
}

body.sm-theme .btn-primary {
  color: #fff;
  border-color: var(--sm-primary);
  background: var(--sm-primary);
  box-shadow: 0 7px 16px rgba(7, 95, 247, .17);
}

body.sm-theme .btn-primary:hover,
body.sm-theme .btn-primary:focus,
body.sm-theme .btn-primary.focus,
body.sm-theme .btn-primary:active,
body.sm-theme .btn-primary.active,
body.sm-theme .open > .dropdown-toggle.btn-primary {
  color: #fff;
  border-color: var(--sm-primary-hover);
  background: var(--sm-primary-hover);
}

body.sm-theme .btn-default {
  color: #374151;
  border-color: var(--sm-border-strong);
  background: #fff;
}

body.sm-theme .btn-default:hover,
body.sm-theme .btn-default:focus,
body.sm-theme .btn-default:active,
body.sm-theme .btn-default.active,
body.sm-theme .open > .dropdown-toggle.btn-default {
  color: var(--sm-primary);
  border-color: rgba(7, 95, 247, .35);
  background: var(--sm-primary-softer);
}

body.sm-theme .btn-danger {
  color: #fff;
  border-color: var(--sm-danger);
  background: var(--sm-danger);
}

body.sm-theme .btn-success {
  color: #fff;
  border-color: var(--sm-success);
  background: var(--sm-success);
}

body.sm-theme .btn-xs {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
}

body.sm-theme .btn-sm {
  min-height: 36px;
  padding: 7px 13px;
}

body.sm-theme .btn-block {
  width: 100%;
}

/* ------------------------------
   Tabs / filters / pills
   ------------------------------ */
body.sm-theme .nav-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
}

body.sm-theme .nav-tabs > li {
  float: none;
  margin: 0;
}

body.sm-theme .nav-tabs > li > a {
  margin: 0;
  padding: 9px 13px;
  color: var(--sm-muted);
  border: 1px solid var(--sm-border);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

body.sm-theme .nav-tabs > li > a:hover,
body.sm-theme .nav-tabs > li.active > a,
body.sm-theme .nav-tabs > li.active > a:hover,
body.sm-theme .nav-tabs > li.active > a:focus {
  color: var(--sm-primary);
  border-color: rgba(7, 95, 247, .3);
  background: var(--sm-primary-soft);
}

body.sm-theme .nav-tabs > li.pull-right {
  margin-left: auto;
}

body.sm-theme.sm-rtl .nav-tabs > li.pull-right {
  margin-right: auto;
  margin-left: 0;
}

body.sm-theme .nav-pills > li > a {
  border-radius: 9px;
}

/* ------------------------------
   Tables
   ------------------------------ */
body.sm-theme .table-responsive {
  border: 0;
}

body.sm-theme .table {
  width: 100%;
  margin-bottom: 0;
  color: var(--sm-text);
  background: var(--sm-surface);
}

body.sm-theme .table > thead > tr > th {
  padding: 13px 15px;
  color: #5d6978;
  border-bottom: 1px solid var(--sm-border);
  background: var(--sm-surface-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

body.sm-theme .table > tbody > tr > td,
body.sm-theme .table > tfoot > tr > td {
  padding: 14px 15px;
  border-top: 1px solid #edf0f5;
  vertical-align: middle;
}

body.sm-theme .table > tbody > tr:hover > td {
  background: #fbfdff;
}

body.sm-theme .table > tbody > tr:first-child > td {
  border-top-color: transparent;
}

body.sm-theme .table td a {
  font-weight: 650;
}

body.sm-theme .table td.width-40,
body.sm-theme .table .width-40 {
  max-width: 360px;
  overflow-wrap: anywhere;
}

body.sm-theme .table tr > td[colspan] {
  color: var(--sm-heading);
  background: var(--sm-primary-softer);
  font-weight: 760;
}

body.sm-theme .service-description {
  color: var(--sm-muted);
  line-height: 1.55;
}

body.sm-theme .order-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

body.sm-theme .favorite-service {
  color: #b4bdca;
}

body.sm-theme .favorite-service.active,
body.sm-theme .favorite-service:hover {
  color: #f3a712;
}

/* ------------------------------
   Dropdowns
   ------------------------------ */
body.sm-theme .dropdown-menu {
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--sm-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--sm-shadow-lg);
}

body.sm-theme .dropdown-menu > li > a {
  padding: 9px 11px;
  color: #465264;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

body.sm-theme .dropdown-menu > li > a:hover,
body.sm-theme .dropdown-menu > li > a:focus,
body.sm-theme .dropdown-menu > .active > a,
body.sm-theme .dropdown-menu > .active > a:hover,
body.sm-theme .dropdown-menu > .active > a:focus {
  color: var(--sm-primary);
  background: var(--sm-primary-soft);
}

body.sm-theme .dropdown-menu .divider {
  margin: 6px 0;
  background: var(--sm-border);
}

/* ------------------------------
   Alerts / labels / badges
   ------------------------------ */
body.sm-theme .alert {
  padding: 14px 16px;
  border-width: 1px;
  border-radius: 11px;
  box-shadow: none;
}

body.sm-theme .alert-success {
  color: #086b4c;
  border-color: #bfe9d7;
  background: var(--sm-success-soft);
}

body.sm-theme .alert-danger {
  color: #a8231b;
  border-color: #f3c7c3;
  background: var(--sm-danger-soft);
}

body.sm-theme .alert-warning {
  color: #95570a;
  border-color: #f4d6aa;
  background: var(--sm-warning-soft);
}

body.sm-theme .alert-info {
  color: #174ea6;
  border-color: #cbdcff;
  background: var(--sm-primary-soft);
}

body.sm-theme .badge,
body.sm-theme .label {
  border-radius: 8px;
  font-weight: 720;
}

body.sm-theme #notify-wrapper {
  position: fixed;
  z-index: 1060;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  margin: 0;
  box-shadow: var(--sm-shadow-lg);
}

body.sm-theme.sm-rtl #notify-wrapper {
  right: auto;
  left: 22px;
}

/* ------------------------------
   Pagination
   ------------------------------ */
body.sm-theme .pagination {
  display: flex;
  gap: 6px;
  margin: 20px 0;
}

body.sm-theme .pagination > li > a,
body.sm-theme .pagination > li > span {
  min-width: 38px;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--sm-text);
  border: 1px solid var(--sm-border);
  border-radius: 9px !important;
  background: #fff;
  text-align: center;
}

body.sm-theme .pagination > li > a:hover,
body.sm-theme .pagination > li > a:focus,
body.sm-theme .pagination > .active > a,
body.sm-theme .pagination > .active > a:hover,
body.sm-theme .pagination > .active > a:focus {
  color: #fff;
  border-color: var(--sm-primary);
  background: var(--sm-primary);
}

/* ------------------------------
   Modal / ticket conversation / misc
   ------------------------------ */
body.sm-theme .modal-content {
  overflow: hidden;
  box-shadow: var(--sm-shadow-lg);
}

body.sm-theme .modal-header,
body.sm-theme .modal-footer {
  padding: 17px 20px;
  border-color: var(--sm-border);
  background: var(--sm-surface-soft);
}

body.sm-theme .modal-body {
  padding: 20px;
}

body.sm-theme .modal-title {
  margin: 0;
}

body.sm-theme .close {
  color: #667085;
  opacity: .75;
  text-shadow: none;
}

body.sm-theme .close:hover {
  opacity: 1;
}

body.sm-theme pre,
body.sm-theme code {
  border-radius: 9px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body.sm-theme pre {
  padding: 15px;
  color: #dbe7ff;
  border: 0;
  background: #111b31;
}

body.sm-theme hr {
  border-color: var(--sm-border);
}

body.sm-theme .tickets-uploader {
  min-height: 76px;
  padding: 15px;
  border: 1px dashed #bcc7d6;
  border-radius: 11px;
  background: var(--sm-surface-soft);
}

body.sm-theme .pull-right-middle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--sm-muted);
}

body.sm-theme .text-md-right {
  text-align: right;
}

body.sm-theme.sm-rtl .text-md-right {
  text-align: left;
}

/* ------------------------------
   Mobile / tablet navigation
   ------------------------------ */
@media (max-width: 991px) {
  body.sm-theme > .navbar {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 68px;
    margin: 0 0 24px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--sm-border);
    border-radius: 0;
    background: rgba(255,255,255,.96);
    box-shadow: var(--sm-shadow-sm);
    backdrop-filter: blur(12px);
  }

  body.sm-theme > .navbar .container,
  body.sm-theme > .navbar .container-fluid {
    width: 100%;
    margin: 0;
    padding-right: 15px;
    padding-left: 15px;
  }

  body.sm-theme > .navbar .navbar-header {
    min-height: 68px;
  }

  body.sm-theme > .navbar .navbar-brand {
    height: 68px;
    padding: 16px 15px;
    display: flex;
    align-items: center;
    color: var(--sm-heading);
    font-size: 19px;
    font-weight: 850;
  }

  body.sm-theme > .navbar .navbar-brand img {
    max-width: 175px;
    max-height: 36px;
  }

  body.sm-theme > .navbar .navbar-toggle {
    min-width: 42px;
    min-height: 42px;
    margin-top: 13px;
    margin-right: 0;
    padding: 11px 10px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: #fff;
  }

  body.sm-theme.sm-rtl > .navbar .navbar-toggle {
    float: left;
    margin-right: 15px;
    margin-left: 0;
  }

  body.sm-theme > .navbar .navbar-toggle .icon-bar {
    width: 20px;
    height: 2px;
    border-radius: 9px;
    background: var(--sm-heading);
  }

  body.sm-theme > .navbar .navbar-collapse {
    max-height: calc(100vh - 80px);
    padding: 10px 15px 16px;
    overflow-y: auto;
    border-top: 1px solid var(--sm-border);
    box-shadow: none;
  }

  body.sm-theme > .navbar .navbar-nav {
    margin: 0;
  }

  body.sm-theme > .navbar .navbar-nav > li > a {
    min-height: 44px;
    padding: 11px 12px;
    color: #465264;
    border-radius: 9px;
    font-weight: 650;
  }

  body.sm-theme > .navbar .navbar-nav > li > a:hover,
  body.sm-theme > .navbar .navbar-nav > li.active > a {
    color: var(--sm-primary);
    background: var(--sm-primary-soft);
  }

  body.sm-theme > .container,
  body.sm-theme > .container-fluid {
    width: 100%;
    margin: 0;
    padding-right: 15px;
    padding-left: 15px;
  }

  body.sm-theme .nav-tabs > li.pull-right {
    width: 100%;
    margin: 5px 0 0;
  }

  body.sm-theme .input-group-search {
    width: 100%;
  }
}

@media (max-width: 767px) {
  body.sm-theme {
    font-size: 13px;
  }

  body.sm-theme .well {
    padding: 18px;
    border-radius: 13px;
  }

  body.sm-theme .table-well,
  body.sm-theme .well:has(> .table) {
    padding: 0;
  }

  body.sm-theme .table > thead > tr > th,
  body.sm-theme .table > tbody > tr > td,
  body.sm-theme .table > tfoot > tr > td {
    padding: 11px 12px;
  }

  body.sm-theme .form-control {
    height: 44px;
  }

  body.sm-theme .btn {
    min-height: 40px;
  }

  body.sm-theme .nav-tabs {
    gap: 6px;
  }

  body.sm-theme .nav-tabs > li > a {
    padding: 8px 10px;
    font-size: 12px;
  }

  body.sm-theme .text-md-right {
    margin-top: 12px;
    text-align: left;
  }

  body.sm-theme.sm-rtl .text-md-right {
    text-align: right;
  }

  body.sm-theme .pull-right-middle {
    min-height: 0;
  }

  body.sm-theme #notify-wrapper {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Keep printing clean */
@media print {
  body.sm-theme {
    background: #fff;
  }

  body.sm-theme > .navbar {
    display: none !important;
  }

  body.sm-theme > .container,
  body.sm-theme > .container-fluid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.sm-theme .well {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
