* {
  box-sizing: border-box;
  letter-spacing: 0;
}

:root {
  --theme-bg: #f6f8fb;
  --theme-bg-soft: #edf3f7;
  --theme-panel: rgba(255, 255, 255, 0.94);
  --theme-panel-solid: #ffffff;
  --theme-border: rgba(15, 23, 42, 0.1);
  --theme-border-strong: rgba(15, 23, 42, 0.16);
  --theme-text: #111827;
  --theme-muted: #64748b;
  --theme-primary: #0f766e;
  --theme-primary-strong: #115e59;
  --theme-primary-soft: rgba(20, 184, 166, 0.12);
  --theme-accent: #f59e0b;
  --theme-accent-soft: rgba(245, 158, 11, 0.16);
  --theme-info: #4f46e5;
  --theme-success: #16a34a;
  --theme-danger: #dc2626;
  --theme-radius: 8px;
  --theme-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --theme-shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.07);
}

html {
  min-height: 100%;
}

body.theme-smm {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 28%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.09) 0%, rgba(245, 158, 11, 0) 24%),
    var(--theme-bg);
  color: var(--theme-text);
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.theme-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 70%);
}

a {
  color: var(--theme-primary);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.container,
.container-fluid {
  position: relative;
  z-index: 1;
}

.theme-authenticated .container-fluid {
  max-width: 1480px;
}

.theme-main {
  position: relative;
  z-index: 1;
  padding: 26px 0 56px;
}

.theme-guest .theme-main {
  padding-top: 0;
}

.theme-footer {
  position: relative;
  z-index: 1;
  padding: 18px 0 30px;
  color: var(--theme-muted);
  font-size: 13px;
}

.theme-footer .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1480px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--theme-primary-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Navbar */
.app-navbar.navbar {
  min-height: 72px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.theme-scrolled .app-navbar.navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.app-navbar .container,
.app-navbar .container-fluid {
  min-height: 72px;
}

.app-navbar .navbar-header {
  min-height: 72px;
}

.app-navbar .navbar-brand {
  height: 72px;
  padding: 0 18px 0 0;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  color: var(--theme-text) !important;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.app-brand img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 42px;
  object-fit: contain;
}

.app-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--theme-radius);
  background:
    linear-gradient(135deg, var(--theme-primary), #14b8a6 58%, var(--theme-accent));
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.app-brand__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-navbar .navbar-nav > li > a {
  margin: 16px 2px;
  padding: 10px 12px;
  border-radius: var(--theme-radius);
  color: #334155;
  font-weight: 600;
  line-height: 20px;
}

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

.app-navbar .navbar-icon {
  margin-right: 6px;
  color: var(--theme-primary);
}

.app-navbar .navbar-toggle {
  margin-top: 18px;
  margin-right: 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #ffffff;
}

.app-navbar .navbar-toggle:hover,
.app-navbar .navbar-toggle:focus {
  background: var(--theme-primary-soft);
}

.app-navbar .navbar-toggle .icon-bar {
  background-color: var(--theme-primary-strong);
}

.balance-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.08);
}

.balance-pill__label {
  color: var(--theme-primary-strong);
  font-weight: 800;
}

.dropdown-menu {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #ffffff;
  box-shadow: var(--theme-shadow-sm);
}

.dropdown-menu > li > a {
  padding: 9px 11px;
  border-radius: 6px;
  color: #334155;
  font-weight: 600;
}

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

.dropdown-max-height {
  max-height: 320px;
  overflow: auto;
}

/* Hero areas */
.dashboard-header {
  position: relative;
  z-index: 1;
  padding: 28px 0 0;
}

.dashboard-header__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.dashboard-header__copy,
.dashboard-stats,
.guest-header__grid {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--theme-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  box-shadow: var(--theme-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.dashboard-header__copy {
  min-height: 172px;
  padding: 26px;
}

.dashboard-header__copy h1,
.guest-header__copy h1 {
  margin: 14px 0 7px;
  color: var(--theme-text);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
}

.dashboard-header__copy p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 16px;
  font-weight: 600;
}

.dashboard-header__copy p span {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--theme-accent-soft);
  color: #92400e;
  font-size: 12px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.stat-card,
.guest-metric {
  min-width: 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: rgba(255, 255, 255, 0.82);
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 142px;
  padding: 18px;
}

.stat-card--balance {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.1)),
    #ffffff;
}

.stat-label {
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong,
.guest-metric strong {
  display: block;
  overflow: hidden;
  color: var(--theme-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-header {
  position: relative;
  z-index: 1;
  padding: 34px 0 26px;
}

.guest-header__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
}

.guest-header__copy h1 {
  margin-bottom: 0;
  font-size: 42px;
}

.guest-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guest-metric {
  padding: 18px;
}

.guest-metric span {
  display: block;
  margin-top: 6px;
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Bootstrap surface overrides */
.well {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--theme-radius);
  background: var(--theme-panel);
  box-shadow: var(--theme-shadow-sm);
}

.well-float {
  overflow-x: auto;
}

.panel-body.border-solid,
.border-solid {
  border: 1px solid var(--theme-border);
  background: #f8fafc;
}

.border-rounded {
  border-radius: var(--theme-radius);
}

.center-big-content-block {
  max-width: 100%;
}

.m-b-md {
  margin-bottom: 18px;
}

.m-t-md {
  margin-top: 26px;
}

.m-t {
  margin-top: 14px;
}

.nowrap {
  white-space: nowrap;
}

.width-40 {
  width: 40%;
}

.width-service-name {
  min-width: 260px;
}

/* Forms */
label,
.control-label {
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

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

.form-control,
select.form-control,
textarea.form-control,
.input-group .form-control {
  min-height: 44px;
  border: 1px solid var(--theme-border-strong);
  border-radius: var(--theme-radius);
  background: #ffffff;
  box-shadow: none;
  color: var(--theme-text);
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.form-control:focus {
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}

.input-group .form-control:first-child {
  border-top-left-radius: var(--theme-radius);
  border-bottom-left-radius: var(--theme-radius);
}

.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
  min-height: 44px;
  border-top-right-radius: var(--theme-radius);
  border-bottom-right-radius: var(--theme-radius);
}

.checkbox label,
.radio label,
.terms {
  color: #475569;
  font-weight: 600;
}

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

.forgot-password {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--theme-radius);
  border-width: 1px;
  font-weight: 800;
  line-height: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:focus {
  border-color: var(--theme-primary);
  background:
    linear-gradient(135deg, var(--theme-primary), #14b8a6);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  border-color: var(--theme-primary-strong);
  background:
    linear-gradient(135deg, var(--theme-primary-strong), var(--theme-primary));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
}

.btn-default,
.btn-default:focus {
  border-color: var(--theme-border-strong);
  background: #ffffff;
  color: #334155;
}

.btn-default:hover,
.btn-default:active,
.btn-default.active {
  border-color: rgba(15, 118, 110, 0.26);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-strong);
}

.btn-xs {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.form-inline .form-group {
  margin-right: 8px;
  vertical-align: middle;
}

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

.text-md-right {
  text-align: right;
}

/* Alerts */
.alert {
  border: 0;
  border-radius: var(--theme-radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.alert-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.alert .close {
  opacity: 0.55;
  text-shadow: none;
}

#notify-wrapper {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1060;
  max-width: min(420px, calc(100vw - 44px));
}

/* Pills and filters */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--theme-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--theme-shadow-sm);
}

.nav-pills > li {
  float: none;
}

.nav-pills > li > a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 7px;
  color: #475569;
  font-weight: 800;
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
  background: var(--theme-primary-soft);
  color: var(--theme-primary-strong);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: var(--theme-primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.nav-pills > li.search,
.nav-pills .search {
  margin-left: auto;
}

.nav-pills > li.search .input-group,
.rtl-search .input-group {
  min-width: 280px;
}

/* Tables */
.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
}

.table > thead > tr > th {
  border-bottom: 1px solid var(--theme-border);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
  padding: 14px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  vertical-align: middle;
}

.table > tbody > tr:hover > td {
  background: rgba(20, 184, 166, 0.05);
}

.table-bordered {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  overflow: hidden;
}

.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
  border-color: var(--theme-border);
}

[data-filter-table-category-id] > td[colspan] {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.08));
  color: var(--theme-primary-strong);
  font-weight: 800;
}

.service-name {
  color: var(--theme-text);
  font-weight: 700;
}

.service-description {
  color: var(--theme-muted);
  font-size: 13px;
}

.favorite-active,
[data-favorite-service-id]:hover {
  color: var(--theme-accent);
}

[data-favorite-service-id] {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #94a3b8;
  cursor: pointer;
}

.order-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 24px;
}

.pagination > li > a,
.pagination > li > span {
  min-width: 38px;
  border: 1px solid var(--theme-border);
  border-radius: 7px !important;
  color: #475569;
  font-weight: 800;
  text-align: center;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span {
  border-color: var(--theme-primary);
  background: var(--theme-primary);
  color: #ffffff;
}

/* Auth pages */
.auth-shell {
  margin-top: -12px;
}

.auth-card,
.auth-copy-card,
.order-insight,
.content-panel {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--theme-radius);
  background: var(--theme-panel);
  box-shadow: var(--theme-shadow);
}

.auth-card {
  padding: 28px;
}

.auth-copy-card {
  min-height: 100%;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(245, 158, 11, 0.12)),
    rgba(255, 255, 255, 0.88);
}

.auth-copy-card h2 {
  margin: 14px 0 12px;
  color: var(--theme-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
}

.auth-copy-card .well,
.auth-rich-text {
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #475569;
}

.auth-card .btn-primary {
  min-width: 132px;
}

.auth-card .g_id_signin {
  margin-top: 8px;
}

/* New order */
.order-page .well {
  margin-bottom: 0;
}

.order-form-card {
  padding: 28px;
}

.order-insight {
  position: sticky;
  top: 22px;
  padding: 24px;
}

.order-insight h3 {
  margin: 12px 0 18px;
  color: var(--theme-text);
  font-size: 24px;
  font-weight: 800;
}

.order-insight__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-insight__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: rgba(255, 255, 255, 0.78);
}

.order-insight__list span {
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-insight__list strong {
  max-width: 58%;
  overflow: hidden;
  color: var(--theme-text);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#new-order-search .input-wrapper .form-control {
  padding-left: 42px;
}

.theme-rtl #new-order-search .input-wrapper .form-control {
  padding-right: 42px;
  padding-left: 12px;
}

/* API and content */
pre {
  padding: 16px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.api h2,
.api h4 {
  color: var(--theme-text);
  font-weight: 800;
}

.tickets-uploader {
  min-height: 44px;
}

/* Modal */
.modal-content {
  overflow: hidden;
  border: 0;
  border-radius: var(--theme-radius);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.modal-header,
.modal-footer {
  border-color: var(--theme-border);
  background: #f8fafc;
}

.modal-title {
  color: var(--theme-text);
  font-weight: 800;
}

/* RTL */
.theme-rtl {
  direction: rtl;
  text-align: right;
}

.theme-rtl .app-navbar .navbar-icon {
  margin-right: 0;
  margin-left: 6px;
}

.theme-rtl .dashboard-header__copy p span {
  margin-right: 8px;
  margin-left: 0;
}

.theme-rtl .nav-pills > li.search,
.theme-rtl .nav-pills .search {
  margin-right: auto;
  margin-left: 0;
}

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

.theme-rtl .order-insight__list strong {
  text-align: left;
}

.rtl-table {
  direction: rtl;
}

/* Responsive */
@media (max-width: 1199px) {
  .dashboard-header__inner {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 991px) {
  .guest-header__grid {
    grid-template-columns: 1fr;
  }

  .order-insight {
    position: static;
    margin-top: 22px;
  }

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

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

  .app-navbar.navbar {
    min-height: 64px;
  }

  .app-navbar .container,
  .app-navbar .container-fluid,
  .app-navbar .navbar-header {
    min-height: 64px;
  }

  .app-navbar .navbar-brand {
    height: 64px;
    padding-right: 0;
  }

  .app-brand {
    max-width: calc(100vw - 92px);
    font-size: 17px;
  }

  .app-brand img {
    max-width: 180px;
    max-height: 38px;
  }

  .app-navbar .navbar-toggle {
    margin-top: 14px;
  }

  .app-navbar .navbar-collapse {
    margin: 0 -15px;
    padding: 8px 15px 15px;
    border-top: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.98);
  }

  .app-navbar .navbar-nav {
    margin: 0;
  }

  .app-navbar .navbar-nav > li > a {
    margin: 4px 0;
  }

  .dashboard-header {
    padding-top: 16px;
  }

  .dashboard-header__copy,
  .guest-header__grid,
  .auth-card,
  .auth-copy-card,
  .order-form-card,
  .order-insight,
  .well {
    padding: 18px;
  }

  .dashboard-header__copy h1,
  .guest-header__copy h1 {
    font-size: 28px;
  }

  .dashboard-stats,
  .guest-metrics {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 118px;
  }

  .theme-main {
    padding: 18px 0 36px;
  }

  .nav-pills {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-pills > li {
    display: inline-block;
    margin: 3px;
  }

  .nav-pills > li.search {
    display: block;
    margin: 8px 3px 3px;
  }

  .nav-pills > li.search .input-group,
  .rtl-search .input-group {
    min-width: 100%;
    width: 100%;
  }

  .table {
    min-width: 760px;
  }

  .api .table,
  .auth-card .table,
  .content-panel .table {
    min-width: 0;
  }

  .form-inline .form-group {
    display: block;
    margin: 0 0 10px;
  }

  .pull-right-middle {
    display: block;
    min-height: auto;
  }

  .theme-footer .container-fluid {
    display: block;
  }

  .theme-footer span {
    display: block;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-fluid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .guest-header {
    padding-top: 20px;
  }

  .guest-header__grid {
    padding: 18px;
  }

  .stat-card strong,
  .guest-metric strong {
    font-size: 22px;
  }

  .btn {
    width: 100%;
  }

  .input-group-btn .btn {
    width: auto;
  }

  .table .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .theme-rtl .navbar-nav,
  .theme-rtl .navbar-header {
    float: right;
  }

  .theme-rtl .navbar-right {
    float: left !important;
  }
}
