:root {
  --inmo-primary: #ed171f;
  --inmo-primary-hover: #c81017;
  --inmo-primary-soft: #fff0f1;
  --inmo-sidebar: #17191e;
  --inmo-sidebar-hover: #252830;
  --inmo-canvas: #f4f5f7;
  --inmo-surface: #ffffff;
  --inmo-surface-soft: #f8f9fb;
  --inmo-ink: #17191e;
  --inmo-text: #3d4350;
  --inmo-muted: #7b8494;
  --inmo-border: #e2e5ea;
  --inmo-border-strong: #d3d7df;
  --inmo-success: #15845d;
  --inmo-success-soft: #e7f7f0;
  --inmo-info: #47708e;
  --inmo-info-soft: #eaf2f7;
  --inmo-warning: #9a6700;
  --inmo-warning-soft: #fff3d6;
  --inmo-danger: #bf2f38;
  --inmo-danger-soft: #fdecee;
  --inmo-radius: 8px;
  --inmo-shadow: 0 1px 2px color-mix(in srgb, var(--inmo-ink) 7%, transparent), 0 10px 28px color-mix(in srgb, var(--inmo-ink) 5%, transparent);
  --inmo-sidebar-width: 244px;
  --inmo-topbar-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--inmo-canvas);
  color: var(--inmo-text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6, .header-title, .page-title { font-family: "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: 0; }
a { color: var(--inmo-primary); }
a:hover { color: var(--inmo-primary-hover); text-decoration: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--inmo-primary) 22%, transparent) !important; outline-offset: 2px; }

/* Shell */
#wrapper { min-height: 100vh; }
.left-side-menu {
  width: var(--inmo-sidebar-width);
  background: var(--inmo-sidebar) !important;
  border: 0;
  box-shadow: none;
}
.content-page { margin-left: var(--inmo-sidebar-width); min-height: 100vh; background: var(--inmo-canvas); }
.content-page .content { padding: calc(var(--inmo-topbar-height) + 28px) 28px 42px; }
.container-fluid { width: 100%; max-width: none; padding-right: 0; padding-left: 0; }
.logo-box {
  position: fixed;
  z-index: 2;
  width: var(--inmo-sidebar-width);
  height: var(--inmo-topbar-height);
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px;
  background: var(--inmo-sidebar) !important;
  border: 0;
}
.logo-box .logo { display: flex; align-items: center; width: 100%; }
.logo-box .logo-lg img { width: 156px !important; max-height: 42px; object-fit: contain; filter: brightness(0) invert(1); }
.logo-box .logo-sm img { max-width: 36px; filter: brightness(0) invert(1); }
.slimscroll-menu { scrollbar-color: var(--inmo-sidebar-hover) transparent; }
#sidebar-menu { padding: 0 12px 28px; }
#sidebar-menu > ul#side-menu { margin-top: 84px !important; }
#sidebar-menu > ul > li > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 10px 13px;
  border-radius: var(--inmo-radius);
  color: #aeb5c2;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
#sidebar-menu > ul > li > a > i { width: 20px; margin: 0; color: #858e9e; font-size: 17px; text-align: center; }
#sidebar-menu > ul > li > a > span { padding-left: 0; }
#sidebar-menu > ul > li > a:hover,
#sidebar-menu > ul > li > a:focus { color: #ffffff; background: var(--inmo-sidebar-hover); transform: translateX(2px); }
#sidebar-menu > ul > li > a:hover > i { color: #ffffff; }
#sidebar-menu > ul > li.active > a,
#sidebar-menu > ul > li > a.active,
#sidebar-menu > ul > li.mm-active > a {
  color: #ffffff !important;
  background: var(--inmo-primary) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--inmo-primary) 24%, transparent);
}
#sidebar-menu > ul > li.active > a i,
#sidebar-menu > ul > li > a.active i,
#sidebar-menu > ul > li.mm-active > a i { color: #ffffff !important; }
#sidebar-menu .nav-second-level { margin: 4px 0 8px; }
#sidebar-menu .nav-second-level li a {
  min-height: 38px;
  padding: 9px 12px 9px 43px;
  border-radius: 6px;
  color: #929baa;
  font-size: 12.5px;
  line-height: 1.35;
}
#sidebar-menu .nav-second-level li a:hover { color: #ffffff; background: var(--inmo-sidebar-hover); }
#sidebar-menu .menu-arrow { right: 14px; }

/* Top bar */
.navbar-custom {
  height: var(--inmo-topbar-height);
  padding: 0 24px;
  background: color-mix(in srgb, var(--inmo-surface) 94%, transparent);
  border-bottom: 1px solid var(--inmo-border);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.navbar-custom .topnav-menu > li > a { height: var(--inmo-topbar-height); color: var(--inmo-ink); }
.navbar-custom .breadcrumb { height: var(--inmo-topbar-height); display: flex; align-items: center; margin: 0; padding: 0; background: transparent; }
.navbar-custom .breadcrumb-item { color: var(--inmo-muted); font-size: 12px; font-weight: 600; }
.navbar-custom .breadcrumb-item a { color: var(--inmo-muted); }
.navbar-custom .breadcrumb-item.active { color: var(--inmo-ink); }
.navbar-custom .nav-user { display: flex; align-items: center; gap: 8px; padding: 14px 10px !important; }
.navbar-custom .nav-user img { width: 36px; height: 36px; border: 2px solid var(--inmo-surface); box-shadow: 0 0 0 1px var(--inmo-border); }
.navbar-custom .pro-user-name { max-width: 220px; overflow: hidden; color: var(--inmo-ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.button-menu-mobile { color: var(--inmo-ink); }

/* Page hierarchy */
.page-title-box { padding: 0 0 18px; background: transparent; }
.page-title-box .page-title, .page-title-main { color: var(--inmo-ink); font-size: 28px; font-weight: 700; }
.card-box {
  margin-bottom: 0;
  padding: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.card-box > .header-title:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 22px !important;
  color: var(--inmo-ink);
  font-size: 27px;
  font-weight: 700;
  text-transform: none;
}
.card-box > .header-title:first-child::after {
  content: "Panel";
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--inmo-border);
  color: var(--inmo-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.card-box > .btn-primary.mb-4 { float: right; margin-top: -2px; }
.card-box > .row { clear: both; }
.card, .card-box .card {
  border: 1px solid var(--inmo-border);
  border-radius: var(--inmo-radius);
  background: var(--inmo-surface);
  box-shadow: var(--inmo-shadow);
}
.card-box .card .card-body { padding: 22px; }
.card-box .card .card-body > .header-title:first-child { margin-bottom: 18px; color: var(--inmo-ink); font-size: 14px; font-weight: 700; text-transform: none; }

/* Buttons */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--inmo-radius);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none !important;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .badge-primary, .bg-primary {
  color: #ffffff !important;
  background: var(--inmo-primary) !important;
  border-color: var(--inmo-primary) !important;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active { background: var(--inmo-primary-hover) !important; border-color: var(--inmo-primary-hover) !important; }
.btn-light, .btn-secondary { color: var(--inmo-text); background: var(--inmo-surface); border-color: var(--inmo-border); }
.btn-success { color: #ffffff; background: var(--inmo-success); border-color: var(--inmo-success); }

/* Forms */
.form-horizontal strong, .form-group label, .card-body > strong, .tab-pane strong {
  display: block;
  margin: 0 0 6px;
  color: var(--inmo-text);
  font-size: 12px;
  font-weight: 700;
}
.form-control, .custom-select, .select2-container .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid var(--inmo-border-strong);
  border-radius: var(--inmo-radius);
  background: var(--inmo-surface);
  color: var(--inmo-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
}
.form-control { margin-bottom: 15px; padding: 9px 12px; }
textarea.form-control { min-height: 112px; }
.form-control:focus, .custom-select:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
  border-color: var(--inmo-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--inmo-primary) 12%, transparent) !important;
}
.select2-container { width: 100% !important; margin-bottom: 15px; }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 7px 34px 7px 12px; line-height: 26px; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 40px; right: 6px; }
.custom-control-label { padding-top: 2px; }
input[type="checkbox"] { accent-color: var(--inmo-primary); }
input[type="file"] { width: 100%; padding: 8px; border: 1px dashed var(--inmo-border-strong); border-radius: var(--inmo-radius); background: var(--inmo-surface-soft); }
#googleMap, .form-horizontal img[id^="img-"] { border-radius: var(--inmo-radius); border: 1px solid var(--inmo-border); object-fit: cover; }

/* Form sections */
.form-horizontal > .row:first-child { margin: 0 -10px 22px; }
.form-horizontal > .row:first-child > [class*="col-"] {
  padding: 20px;
  border-right: 1px solid var(--inmo-border);
  background: var(--inmo-surface);
}
.form-horizontal > .row:first-child > [class*="col-"]:first-child { border-radius: var(--inmo-radius) 0 0 var(--inmo-radius); }
.form-horizontal > .row:first-child > [class*="col-"]:last-child { border-right: 0; border-radius: 0 var(--inmo-radius) var(--inmo-radius) 0; }
.form-horizontal .card-box { padding: 0; }
.form-horizontal .card-box > .nav { padding: 0 10px; border: 1px solid var(--inmo-border); border-bottom: 0; border-radius: var(--inmo-radius) var(--inmo-radius) 0 0; background: var(--inmo-surface-soft); }
.nav-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.nav-pills .nav-link {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--inmo-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-pills .nav-link:hover { color: var(--inmo-ink); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: var(--inmo-primary) !important;
  background: transparent !important;
  border-bottom-color: var(--inmo-primary);
}
.tab-content { padding: 26px; border: 1px solid var(--inmo-border); border-radius: 0 0 var(--inmo-radius) var(--inmo-radius); background: var(--inmo-surface); }
.tab-content h4 { margin: 0 0 18px; color: var(--inmo-ink); font-size: 15px; font-weight: 700; }

/* DataTables */
.dataTables_wrapper { position: relative; width: 100%; }
.dataTables_wrapper::after { content: ""; display: table; clear: both; }
.dataTables_wrapper .dt-buttons { display: inline-flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.dataTables_wrapper .dt-buttons .btn, .dataTables_wrapper .dt-buttons .dt-button {
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 13px;
  border: 1px solid var(--inmo-border) !important;
  border-radius: var(--inmo-radius) !important;
  background: var(--inmo-surface) !important;
  color: var(--inmo-text) !important;
  font-size: 12px;
  font-weight: 700;
}
.dataTables_wrapper .dt-buttons .dt-button:hover { color: var(--inmo-primary) !important; border-color: color-mix(in srgb, var(--inmo-primary) 40%, var(--inmo-border)) !important; background: var(--inmo-primary-soft) !important; }
.dataTables_wrapper .dataTables_filter { position: relative; margin: 0 0 18px; }
.dataTables_wrapper .dataTables_filter label { position: relative; margin: 0; color: transparent; font-size: 0; }
.dataTables_wrapper .dataTables_filter label::before {
  content: "\F0349";
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--inmo-muted);
  font-family: "Material Design Icons";
  font-size: 18px;
}
.dataTables_wrapper .dataTables_filter input {
  width: 310px;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--inmo-border) !important;
  border-radius: var(--inmo-radius);
  background: var(--inmo-surface-soft);
  color: var(--inmo-ink);
  font-size: 13px;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--inmo-primary) !important; outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--inmo-primary) 10%, transparent); }
.table-responsive { clear: both; width: 100%; border: 1px solid var(--inmo-border); border-radius: var(--inmo-radius); background: var(--inmo-surface); overflow-x: auto; }
.dataTables_wrapper > .table-responsive { margin-bottom: 16px; }
.table { width: 100%; margin: 0; background: var(--inmo-surface); color: var(--inmo-text); }
.table-bordered, .table-bordered td, .table-bordered th { border: 0 !important; }
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--inmo-border) !important;
  background: var(--inmo-surface-soft);
  color: var(--inmo-muted);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody td {
  min-height: 54px;
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid var(--inmo-border) !important;
  color: var(--inmo-text);
  font-size: 13px;
  line-height: 1.35;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0 !important; }
.table-striped tbody tr:nth-of-type(odd) { background: var(--inmo-surface); }
.table-hover tbody tr:hover, .table-striped tbody tr:hover { background: var(--inmo-surface-soft); }
table.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected { background: var(--inmo-primary-soft) !important; color: var(--inmo-ink) !important; }
table.dataTable tbody tr.selected a { color: var(--inmo-primary); }
.table td:first-child { color: var(--inmo-muted); font-family: "Space Grotesk", monospace; font-size: 12px; font-weight: 600; }
.table td:nth-child(2) { color: var(--inmo-ink); font-weight: 700; }
.table td .btn-group { margin: 0 !important; }
.table td .btn.dropdown-toggle {
  width: 38px;
  min-width: 38px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--inmo-border) !important;
  border-radius: var(--inmo-radius);
  background: var(--inmo-surface) !important;
  color: var(--inmo-muted) !important;
  font-size: 0;
}
.table td .btn.dropdown-toggle::before { content: "•••"; color: var(--inmo-text); font-size: 14px; letter-spacing: 1px; }
.table td .btn.dropdown-toggle::after { display: none; }
.table td .btn.dropdown-toggle:hover { border-color: var(--inmo-primary) !important; background: var(--inmo-primary-soft) !important; }
.dropdown-menu { min-width: 184px; padding: 7px; border: 1px solid var(--inmo-border); border-radius: var(--inmo-radius); box-shadow: var(--inmo-shadow); }
.dropdown-item { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; color: var(--inmo-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.dropdown-item:hover { color: var(--inmo-primary); background: var(--inmo-primary-soft); }
.dataTables_wrapper .dataTables_info { padding-top: 12px; color: var(--inmo-muted); font-size: 12px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 8px; }
.pagination { gap: 5px; }
.pagination .page-link { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--inmo-border); border-radius: 7px !important; color: var(--inmo-text); font-size: 12px; }
.pagination .page-item.active .page-link { color: #ffffff; background: var(--inmo-primary); border-color: var(--inmo-primary); }

/* Feedback and overlays */
.badge { padding: 5px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.badge-success, .badge-soft-success { color: var(--inmo-success) !important; background: var(--inmo-success-soft) !important; }
.badge-warning, .badge-soft-warning { color: var(--inmo-warning) !important; background: var(--inmo-warning-soft) !important; }
.badge-secondary { color: var(--inmo-info) !important; background: var(--inmo-info-soft) !important; }
.alert { border: 0; border-left: 4px solid currentColor; border-radius: var(--inmo-radius); }
.modal-content { border: 0; border-radius: var(--inmo-radius); box-shadow: 0 24px 70px color-mix(in srgb, var(--inmo-ink) 24%, transparent); }
.modal-header, .modal-footer { border-color: var(--inmo-border); }
.right-bar { background: var(--inmo-surface); box-shadow: -12px 0 35px color-mix(in srgb, var(--inmo-ink) 12%, transparent); }
.rightbar-title { background: var(--inmo-sidebar) !important; }
.footer { left: var(--inmo-sidebar-width); padding: 18px 28px; border-top: 1px solid var(--inmo-border); background: var(--inmo-surface); color: var(--inmo-muted); font-size: 12px; }

/* Login */
.account-pages, body.fixed-left { min-height: 100vh; padding: 0; background: var(--inmo-canvas); }
.accountbg { position: fixed; inset: 0 520px 0 0; background-image: linear-gradient(color-mix(in srgb, var(--inmo-sidebar) 22%, transparent), color-mix(in srgb, var(--inmo-sidebar) 62%, transparent)), url('../images/bg-1.jpg') !important; background-size: cover !important; background-position: center !important; }
.account-page-full { width: 520px; min-height: 100vh; margin-left: auto; padding: 0 64px; display: flex; flex-direction: column; justify-content: center; background: var(--inmo-surface); box-shadow: -12px 0 40px color-mix(in srgb, var(--inmo-ink) 8%, transparent); }
.account-page-full > .card, .account-page-full .card-box, .account-page-full .account-box { border: 0; box-shadow: none; }
.inmo-login-title { margin: 6px 0 8px; color: var(--inmo-ink); font-size: 28px; font-weight: 700; }
.inmo-login-subtitle { margin-bottom: 28px; color: var(--inmo-muted); }
.inmo-logo { width: min(280px, 100%); height: auto; }
.account-page-full .form-group { margin-bottom: 20px; }
.account-page-full .btn-primary { min-height: 46px; }
.account-copyright { margin-top: 24px; color: var(--inmo-muted); }
body.fixed-left .content-center { position: relative; z-index: 2; width: 520px; min-height: 100vh; margin-left: auto; padding: 48px; display: flex; align-items: center; background: var(--inmo-surface); box-shadow: -12px 0 40px color-mix(in srgb, var(--inmo-ink) 8%, transparent); }
body.fixed-left .content-desc-center, body.fixed-left .content-desc-center .container, body.fixed-left .content-desc-center .row, body.fixed-left .content-desc-center [class*="col-"] { width: 100%; max-width: 100%; }
body.fixed-left .content-desc-center .card { border: 0; box-shadow: none; }
body.fixed-left #preloader { display: none; }

@media (max-width: 1024px) {
  :root { --inmo-sidebar-width: 70px; }
  .logo-box { width: 70px; justify-content: center; padding: 0 14px; }
  .logo-box .logo-lg { display: none !important; }
  .logo-box .logo-sm { display: block !important; }
  #sidebar-menu { padding: 0 8px 24px; }
  #sidebar-menu > ul > li > a { justify-content: center; padding: 11px; }
  #sidebar-menu > ul > li > a span, #sidebar-menu .menu-arrow { display: none; }
  #sidebar-menu > ul > li > a > i { width: 22px; font-size: 19px; }
  .content-page .content { padding: calc(var(--inmo-topbar-height) + 22px) 20px 36px; }
  .footer { left: var(--inmo-sidebar-width); }
  .card-box { padding: 22px; }
  .accountbg { right: 460px; }
  .account-page-full { width: 460px; padding: 0 48px; }
}

@media (max-width: 767.98px) {
  :root { --inmo-sidebar-width: 0px; --inmo-topbar-height: 64px; }
  .left-side-menu { width: 244px; }
  .content-page { margin-left: 0; }
  .navbar-custom { padding: 0 10px; }
  .navbar-custom .breadcrumb { display: none; }
  .navbar-custom .pro-user-name { max-width: 110px; }
  .content-page .content { padding: calc(var(--inmo-topbar-height) + 16px) 10px 30px; }
  .card-box { padding: 18px 14px; }
  .card-box > .header-title:first-child { max-width: 60%; font-size: 22px; }
  .card-box > .btn-primary.mb-4 { max-width: 40%; min-height: 40px; padding: 8px 10px; white-space: normal; }
  .card-box .card .card-body { padding: 15px; }
  .dataTables_wrapper .dt-buttons { width: 100%; }
  .dataTables_wrapper .dataTables_filter { width: 100%; float: none; text-align: left; }
  .dataTables_wrapper .dataTables_filter label, .dataTables_wrapper .dataTables_filter input { width: 100%; }
  .table-responsive { max-height: 68vh; }
  .table thead th, .table tbody td { padding: 12px; }
  .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { width: 100%; float: none; text-align: left; }
  .dataTables_wrapper .dataTables_paginate .pagination { justify-content: flex-start !important; margin-top: 10px; }
  .form-horizontal > .row:first-child > [class*="col-"] { border-right: 0; border-bottom: 1px solid var(--inmo-border); }
  .form-horizontal > .row:first-child > [class*="col-"]:first-child { border-radius: var(--inmo-radius) var(--inmo-radius) 0 0; }
  .form-horizontal > .row:first-child > [class*="col-"]:last-child { border-bottom: 0; border-radius: 0 0 var(--inmo-radius) var(--inmo-radius); }
  .tab-content { padding: 18px 14px; }
  .nav-pills .nav-link { min-width: 150px; }
  .footer { left: 0; padding: 15px; }
  .accountbg { display: none; }
  .account-page-full, body.fixed-left .content-center { width: 100%; padding: 28px 22px; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}