body {
  background: #f5f7fb;
  color: #243044;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body .app > .app-container {
  padding-left: 220px;
}

.app {
  background: #f5f7fb;
}

.app .app-container {
  background: #f5f7fb;
}

aside.app-sidebar {
  background: #0f172a !important;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18) !important;
  width: 220px !important;
}

aside.app-sidebar .sidebar-header {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  height: 88px !important;
  width: 220px !important;
}

aside.app-sidebar .sidebar-header .sidebar-brand {
  height: 88px !important;
  padding: 18px 22px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

aside.app-sidebar .sidebar-header .sidebar-brand img {
  max-height: 48px;
  max-width: 86px;
  object-fit: contain;
}

aside.app-sidebar .sidebar-menu {
  padding: 18px 12px 24px !important;
  width: 220px !important;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li {
  margin: 6px 0 !important;
  border: 0 !important;
  position: relative;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a {
  min-height: 48px !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  padding: 0 12px !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a:hover,
aside.app-sidebar .sidebar-menu ul.sidebar-nav > li.active > a {
  background: #2563eb !important;
  color: #fff !important;
  transform: translateX(2px);
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li.active:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 8px 8px 0;
  background: #38bdf8;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a .icon {
  width: 34px !important;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: inherit !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a .icon i.fa,
aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a .title {
  color: inherit !important;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a .icon i.fa {
  font-size: 15px !important;
  line-height: 1 !important;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a .title {
  flex: 1;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: left !important;
  white-space: normal !important;
}

aside.app-sidebar .sidebar-menu ul.sidebar-nav > li.active > a .icon,
aside.app-sidebar .sidebar-menu ul.sidebar-nav > li > a:hover .icon {
  background: rgba(255, 255, 255, 0.18);
}

.navbar,
.app-container .navbar,
nav.navbar.navbar-default {
  background: #fff !important;
  border: 0 !important;
  min-height: 72px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
}

.navbar .navbar-collapse,
nav.navbar.navbar-default .navbar-collapse {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.navbar .navbar-collapse .navbar-nav {
  height: 72px !important;
}

.navbar .navbar-collapse .navbar-nav > li.navbar-title {
  color: #111827 !important;
  font-weight: 700;
  font-size: 20px;
  line-height: 72px;
}

.navbar .navbar-collapse .navbar-nav > li.dropdown.profile > a {
  height: 72px;
  padding-top: 16px;
}

.navbar .navbar-collapse .navbar-nav > li a,
.navbar .navbar-collapse .navbar-nav > li a:hover,
.navbar .navbar-collapse .navbar-nav > li a:focus,
.navbar .navbar-collapse .navbar-nav > li.dropdown.profile > a .title {
  color: #475569 !important;
}

.navbar .navbar-collapse .navbar-nav > li.dropdown.profile > a .profile-img,
.navbar .navbar-collapse .navbar-nav.navbar-mobile > li .navbar-toggle .profile-img {
  width: 38px;
  height: 38px;
  border: 2px solid #e5e7eb;
  object-fit: cover;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.page_title_block {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 22px 24px;
  min-height: 84px;
}

.page_title_block .page_title {
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 36px;
  text-transform: capitalize;
}

.card-body {
  padding: 24px;
}

.form-control,
.select2-container--default .select2-selection--single {
  border: 1px solid #d8dee9;
  border-radius: 8px;
  box-shadow: none;
  min-height: 42px;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary,
.btn-success {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-primary:hover,
.btn-success:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

.table {
  background: #fff;
}

.table > thead > tr > th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table > tbody > tr > td {
  border-color: #edf2f7;
  vertical-align: middle;
}

.search_list .search_block input {
  border-radius: 8px 0 0 8px;
}

.search_list .search_block .btn-search,
.add_btn_primary a {
  background: #2563eb;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
}

.card.card-banner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.card.card-banner .card-body {
  min-height: 140px;
  padding: 28px;
}

.card.card-banner .card-body .icon {
  opacity: 0.28;
}

.card.card-banner .card-body .content .value {
  font-weight: 800;
}

.app-login {
  min-height: 100vh;
  background: #0f172a;
}

.app-login .flex-center {
  min-height: 100vh;
}

.app-login .app-body .app-block {
  width: 920px;
  max-width: 94vw;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.app-login .app-body .app-block .app-right-section {
  display: block;
  width: 48%;
  padding: 54px 46px;
  background: #111827;
  color: #fff;
}

.app-login .app-body .app-block .app-right-section .app-brand {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 46px;
}

.app-login .app-body .app-block .app-right-section .app-info ul.list {
  padding: 0;
}

.app-login .app-body .app-block .app-right-section .app-info ul.list li {
  margin-bottom: 22px;
  list-style: none;
}

.app-login .app-body .app-block .app-right-section .app-info ul.list li .icon {
  background: rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  color: #93c5fd;
}

.app-login .app-body .app-block .app-form {
  width: 52%;
  padding: 56px 52px;
}

.login-form .form-header {
  margin-bottom: 24px;
}

.login-form .app-brand {
  color: #111827;
  font-size: 28px;
  font-weight: 800;
}

.login_title_lineitem {
  display: none;
}

.app-login .input-group {
  width: 100%;
  margin-bottom: 18px;
}

.app-login .input-group-addon {
  background: #f8fafc;
  border-color: #d8dee9;
  border-radius: 8px 0 0 8px;
  color: #64748b;
}

.app-login .form-control {
  height: 48px;
}

.app-login .btn-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

.app-login input.btn-submit.btn-success {
  background: #2563eb;
  border-color: #2563eb;
}

.app-login input.btn-submit.btn-success:hover,
.app-login input.btn-submit.btn-success:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 767px) {
  body .app > .app-container {
    padding-left: 0;
  }

  aside.app-sidebar,
  aside.app-sidebar .sidebar-header,
  aside.app-sidebar .sidebar-menu {
    width: 220px !important;
  }

  .app-login .app-body .app-block {
    display: block;
  }

  .app-login .app-body .app-block .app-right-section,
  .app-login .app-body .app-block .app-form {
    width: 100%;
    padding: 34px 26px;
  }

  .app-login .app-body .app-block .app-right-section {
    padding-bottom: 24px;
  }

  .navbar .navbar-collapse .navbar-nav > li.navbar-title {
    line-height: 56px;
    font-size: 18px;
  }
}

.dashboard-modern {
  padding: 26px 28px 34px;
}

.dashboard-hero {
  background: #111827;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
}

.dashboard-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}

.dashboard-hero p {
  margin: 0;
  color: #cbd5e1;
}

.dashboard-kicker {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dashboard-action {
  background: #2563eb;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px 16px;
  white-space: nowrap;
}

.dashboard-action:hover,
.dashboard-action:focus {
  color: #fff;
  background: #1d4ed8;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-stat,
.dashboard-mini-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  display: block;
  min-height: 118px;
  overflow: hidden;
  padding: 22px 22px 20px;
  position: relative;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.dashboard-stat:before {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.16;
}

.dashboard-stat:hover,
.dashboard-mini-stat:hover {
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.dashboard-stat .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}

.dashboard-stat .stat-label {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dashboard-stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.stat-blue .stat-icon,
.stat-blue:before {
  background: #2563eb;
}

.stat-green .stat-icon,
.stat-green:before {
  background: #16a34a;
}

.stat-orange .stat-icon,
.stat-orange:before {
  background: #f59e0b;
}

.stat-purple .stat-icon,
.stat-purple:before {
  background: #7c3aed;
}

.dashboard-stats-grid-small {
  margin-bottom: 24px;
}

.dashboard-mini-stat {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-mini-stat span {
  color: #64748b;
  font-weight: 700;
}

.dashboard-mini-stat span i {
  color: #2563eb;
  margin-right: 8px;
}

.dashboard-mini-stat strong {
  color: #111827;
  font-size: 26px;
  font-weight: 800;
}

.dashboard-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
  padding: 24px;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.dashboard-panel-head h3 {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
}

.dashboard-panel-head p {
  color: #64748b;
  margin: 0;
}

.dashboard-panel-head a {
  color: #2563eb;
  font-weight: 700;
}

.dashboard-total {
  background: #eff6ff;
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 800;
  padding: 10px 14px;
}

.dashboard-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  min-height: 300px;
  padding-top: 12px;
}

.chart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.chart-value {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.chart-track {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f8fafc, #eef2f7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px;
}

.chart-bar {
  width: 100%;
  max-width: 42px;
  min-height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.chart-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  white-space: nowrap;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-row {
  border: 1px solid #edf2f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.status-row span {
  color: #475569;
  font-weight: 700;
}

.status-row span i {
  font-size: 10px;
  margin-right: 8px;
}

.status-row strong {
  color: #111827;
  font-size: 20px;
}

.status-waiting {
  color: #f59e0b;
}

.status-delivered {
  color: #16a34a;
}

.status-cancelled {
  color: #dc2626;
}

.status-paid {
  color: #2563eb;
}

.dashboard-table {
  margin-bottom: 0;
}

.dashboard-table > tbody > tr > td,
.dashboard-table > thead > tr > th {
  padding: 13px 12px;
}

.dash-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-orange {
  background: #fef3c7;
  color: #b45309;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-gray {
  background: #f1f5f9;
  color: #475569;
}

@media (max-width: 991px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dashboard-modern {
    padding: 18px 14px 28px;
  }

  .dashboard-hero {
    display: block;
    padding: 24px;
  }

  .dashboard-action {
    margin-top: 18px;
  }

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

  .dashboard-chart {
    gap: 8px;
  }

  .chart-track {
    height: 170px;
    padding: 0 5px;
  }

  .chart-label {
    font-size: 11px;
  }
}

.item-editor-page {
  padding: 26px 28px 36px;
}

.item-editor-hero {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 28px 30px;
}

.item-editor-kicker {
  color: #93c5fd;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.item-editor-hero h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
}

.item-editor-hero p {
  color: #cbd5e1;
  margin: 0;
  max-width: 640px;
}

.item-editor-back {
  align-items: center;
  background: #2563eb;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 12px 16px;
  white-space: nowrap;
}

.item-editor-back:hover,
.item-editor-back:focus {
  background: #1d4ed8;
  color: #fff;
}

.item-editor-alert {
  border-radius: 8px;
  margin-bottom: 18px;
}

.item-editor-form {
  margin: 0;
}

.item-editor-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.item-editor-main,
.item-editor-side {
  display: grid;
  gap: 20px;
}

.item-editor-side {
  position: sticky;
  top: 92px;
}

.item-form-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.item-panel-head {
  align-items: flex-start;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.item-panel-head.compact {
  margin-bottom: 18px;
}

.item-panel-head h2 {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
}

.item-panel-head p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.item-panel-icon {
  align-items: center;
  background: #2563eb;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  width: 42px;
}

.panel-icon-green {
  background: #16a34a;
}

.panel-icon-orange {
  background: #f59e0b;
}

.panel-icon-sky {
  background: #0891b2;
}

.panel-icon-red {
  background: #dc2626;
}

.item-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-field {
  min-width: 0;
}

.item-field label {
  color: #334155;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.item-field .form-control,
.item-editor-page .select2-container--default .select2-selection--single {
  width: 100% !important;
}

.item-multi-select {
  min-height: 146px;
}

.item-size-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-size-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1fr);
  padding: 12px;
}

.item-size-row span {
  color: #475569;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.item-upload-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
}

.item-upload-box input[type="file"] {
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  color: #475569;
  display: block;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.item-upload-box .fileupload_img {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 170px;
  overflow: hidden;
}

.item-upload-box .fileupload_img img {
  display: block;
  height: auto;
  max-height: 210px;
  max-width: 100%;
  object-fit: contain;
}

.item-switch {
  align-items: center;
  color: #111827;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
}

.item-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.item-switch span {
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 28px;
  min-width: 52px;
  position: relative;
  transition: background 0.18s ease;
  width: 52px;
}

.item-switch span:before {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.18s ease;
  width: 22px;
}

.item-switch input:checked + span {
  background: #2563eb;
}

.item-switch input:checked + span:before {
  transform: translateX(24px);
}

.item-switch strong {
  font-size: 14px;
}

.item-offer-fields {
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
}

.item-editor-actions {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.item-editor-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.item-editor-actions .btn-primary,
.item-editor-actions .btn-primary:hover,
.item-editor-actions .btn-primary:focus {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.item-editor-actions .btn-primary:hover,
.item-editor-actions .btn-primary:focus {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.item-editor-actions .btn-default {
  background: #f8fafc;
  border-color: #d8dee9;
  color: #475569;
}

.cke {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .item-editor-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 991px) {
  .item-editor-layout {
    grid-template-columns: 1fr;
  }

  .item-editor-side {
    position: static;
  }
}

@media (max-width: 767px) {
  .item-editor-page {
    padding: 18px 14px 28px;
  }

  .item-editor-hero {
    align-items: flex-start;
    display: block;
    padding: 24px;
  }

  .item-editor-hero h1 {
    font-size: 26px;
  }

  .item-editor-back {
    margin-top: 18px;
  }

  .item-form-grid,
  .item-size-grid {
    grid-template-columns: 1fr;
  }

  .item-form-panel {
    padding: 20px;
  }

  .item-size-row {
    grid-template-columns: 1fr;
  }
}
