/* =========================================================
   CUSTOM MODERN CSS - AZTECH POS
   Versi rapi hasil cleanup: duplicate selector digabung,
   urutan cascade tetap dijaga untuk AdminLTE 3.2.0.
   ========================================================= */

:root {
  --az-primary: #2563eb;
  --az-primary-dark: #1d4ed8;
  --az-primary-soft: #eff6ff;
  --az-bg: #f4f7fb;
  --az-card: #ffffff;
  --az-text: #111827;
  --az-muted: #64748b;
  --az-border: #e5e7eb;
  --az-radius-sm: 10px;
  --az-radius-md: 14px;
  --az-radius-lg: 18px;
  --az-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --az-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.modern-pos {
  background: var(--az-bg);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--az-text);
  font-weight: 400;
}

.modern-pos .wrapper,
.modern-pos .content-wrapper {
  background: var(--az-bg);
}

.modern-pos .content-wrapper {
  min-height: calc(100vh - 64px);
}

.modern-pos .content {
  padding-bottom: 24px;
}

.modern-pos .main-sidebar,
.modern-pos .main-header,
.modern-pos .content-wrapper,
.modern-pos .main-footer {
  transition:
    width 0.28s ease,
    min-width 0.28s ease,
    max-width 0.28s ease,
    margin-left 0.28s ease,
    transform 0.28s ease;
}

.modern-pos .main-header {
  height: 64px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  padding: 0 18px;
}

.modern-pos .main-header .nav-link {
  min-height: 40px;
  border-radius: 12px;
  color: #475569 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
}

.modern-pos .main-header .nav-link:hover {
  background: #f1f5f9;
  color: var(--az-primary) !important;
}

.modern-pos .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-pos .main-header .nav-link[data-widget="pushmenu"] {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.modern-pos
  .main-header
  .navbar-nav:first-child
  .nav-link:not([data-widget="pushmenu"]) {
  padding: 0 14px;
  color: #334155 !important;
  background: transparent;
}

.modern-pos
  .main-header
  .navbar-nav:first-child
  .nav-link:not([data-widget="pushmenu"]):hover {
  background: #f8fafc;
  color: var(--az-primary) !important;
}

.modern-pos .main-header .navbar-nav.ml-auto,
.modern-pos .main-header .navbar-nav.ms-auto {
  align-items: center;
  gap: 8px;
}

.modern-pos .main-header .navbar-nav.ml-auto .nav-item:first-child .nav-link,
.modern-pos .main-header .navbar-nav.ms-auto .nav-item:first-child .nav-link {
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #334155 !important;
}

.modern-pos .navbar-user-pill,
.modern-pos .main-header .nav-link.user-link {
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  color: #111827 !important;
}

.modern-pos .main-header a[href*="logout"],
.modern-pos .main-header .logout-link {
  padding: 0 13px;
  background: #fff1f2;
  color: #dc2626 !important;
  border: 1px solid #ffe4e6;
  font-weight: 600;
}

.modern-pos .main-header a[href*="logout"]:hover,
.modern-pos .main-header .logout-link:hover {
  background: #ffe4e6;
  color: #b91c1c !important;
}

.modern-navbar-search {
  width: 330px;
  height: 42px;
  margin-left: 14px;
  border-radius: 14px;
  border: 1px solid #edf2f7;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #94a3b8;
}

.modern-navbar-search i {
  font-size: 14px;
}

.modern-navbar-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #334155;
}

.modern-navbar-search input::placeholder {
  color: #94a3b8;
}

.modern-pos .main-sidebar {
  background: #ffffff;
  box-shadow: 6px 0 20px rgba(15, 23, 42, 0.08);
  overflow-x: hidden;
}

.modern-pos .main-sidebar .sidebar {
  padding: 0 8px 10px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modern-pos .main-sidebar .sidebar::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.modern-pos .main-sidebar .brand-link {
  height: 64px;
  min-height: 64px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 0 14px !important;
  margin-bottom: 0 !important;
  background: linear-gradient(
    135deg,
    var(--az-primary),
    var(--az-primary-dark)
  ) !important;
  border-bottom: none !important;
  color: #ffffff !important;
  overflow: hidden;
  position: relative;
  background-clip: padding-box;
}

.modern-pos .main-sidebar .brand-link:hover {
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    var(--az-primary),
    var(--az-primary-dark)
  ) !important;
}

.modern-pos .main-sidebar .brand-link > i {
  position: absolute;
  left: 18px;
  color: #ffffff !important;
  font-size: 18px;
  flex: 0 0 auto;
  margin-right: 0 !important;
}

.modern-pos .main-sidebar .brand-link .brand-image {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  margin-right: 0 !important;
}

.modern-pos .main-sidebar .brand-link > span {
  width: 100%;
  text-align: center;
}

.modern-pos .main-sidebar .brand-link .brand-text {
  display: block;
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1;
  font-weight: 600 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.modern-pos .main-sidebar .brand-link small,
.modern-pos .main-sidebar .brand-link .brand-status {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 2px;
}

.modern-pos .main-sidebar .user-panel {
  min-height: 86px;
  margin: 0 -14px 22px !important;
  padding: 16px !important;
  background: linear-gradient(135deg, #2563eb 0%, #0d6efd 100%);
  border: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  background-clip: padding-box;
}

.modern-pos .main-sidebar .user-panel .image {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding-left: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modern-pos .main-sidebar .user-panel .image i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--az-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.modern-pos .main-sidebar .user-panel .image img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.modern-pos .main-sidebar .user-panel .info {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  line-height: 1.25;
}

.modern-pos .main-sidebar .user-panel .info a {
  display: block;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-pos .main-sidebar .user-panel .info small,
.modern-pos .main-sidebar .user-panel .info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
}

.modern-pos .main-sidebar .user-panel .info small::before,
.modern-pos .main-sidebar .user-panel .info span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.modern-pos .nav-sidebar .nav-header {
  color: #94a3b8 !important;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 10px 7px;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.modern-pos .nav-sidebar .nav-link {
  color: #64748b;
  border-radius: 10px;
  margin: 2px 4px;
  padding: 9px 10px;
  font-weight: 400 !important;
}

.modern-pos .nav-sidebar .nav-link p {
  font-size: 14px;
  font-weight: 400 !important;
}

.modern-pos .nav-sidebar .nav-icon {
  width: 1.6rem;
  font-size: 15px;
  color: #64748b;
  text-align: center;
}

.modern-pos .nav-sidebar .nav-link:hover {
  background: var(--az-primary-soft);
  color: var(--az-primary);
}

.modern-pos .nav-sidebar .nav-link:hover .nav-icon {
  color: var(--az-primary);
}

.modern-pos .nav-sidebar .nav-link.active {
  background: linear-gradient(
    135deg,
    var(--az-primary),
    var(--az-primary-dark)
  );
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.modern-pos .nav-sidebar .nav-link.active .nav-icon,
.modern-pos .nav-sidebar .nav-link.active p {
  color: #ffffff !important;
}

.modern-pos .nav-sidebar .logout-link {
  color: #ef4444 !important;
}

.modern-pos .nav-sidebar .logout-link:hover {
  background: #fef2f2;
  color: #dc2626 !important;
}

@media (min-width: 992px) {
  body.modern-pos:not(.sidebar-collapse) .main-sidebar {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
  }

  body.modern-pos:not(.sidebar-collapse) .main-header,
  body.modern-pos:not(.sidebar-collapse) .content-wrapper,
  body.modern-pos:not(.sidebar-collapse) .main-footer {
    margin-left: 240px !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar,
  body.modern-pos.sidebar-collapse .main-sidebar:hover {
    width: 4.6rem !important;
    min-width: 4.6rem !important;
    max-width: 4.6rem !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
  }

  body.modern-pos.sidebar-collapse .content-wrapper,
  body.modern-pos.sidebar-collapse .main-header,
  body.modern-pos.sidebar-collapse .main-footer {
    margin-left: 4.6rem !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .sidebar,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .sidebar {
    width: 4.6rem !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .sidebar::-webkit-scrollbar,
  body.modern-pos.sidebar-collapse
    .main-sidebar:hover
    .sidebar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .brand-link,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .brand-link {
    width: 4.6rem !important;
    min-width: 4.6rem !important;
    max-width: 4.6rem !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .brand-link > span,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .brand-link > span,
  body.modern-pos.sidebar-collapse .main-sidebar .brand-text,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .brand-text,
  body.modern-pos.sidebar-collapse .main-sidebar .brand-status,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .brand-status,
  body.modern-pos.sidebar-collapse .main-sidebar .brand-link small,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .brand-link small,
  body.modern-pos.sidebar-collapse .main-sidebar .nav-sidebar .nav-header,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-header,
  body.modern-pos.sidebar-collapse .main-sidebar .nav-sidebar .nav-link p,
  body.modern-pos.sidebar-collapse
    .main-sidebar:hover
    .nav-sidebar
    .nav-link
    p {
    display: none !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .brand-link > i,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .brand-link > i {
    position: static !important;
    margin: 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .brand-link .brand-image,
  body.modern-pos.sidebar-collapse
    .main-sidebar:hover
    .brand-link
    .brand-image {
    margin: 0 !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .user-panel,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .user-panel {
    display: none !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .nav-sidebar .nav-item,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-item {
    width: 100% !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .nav-sidebar .nav-link,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link {
    width: 100% !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
  }

  body.modern-pos.sidebar-collapse .main-sidebar .nav-sidebar .nav-icon,
  body.modern-pos.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-icon {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.modern-pos .card,
.modern-pos .small-box {
  border: 0;
  border-radius: var(--az-radius-md);
  box-shadow: var(--az-shadow-md);
}

.modern-pos .card {
  overflow: hidden;
}

.modern-pos .card-header {
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
  padding: 14px 18px;
}

.modern-pos .card-title {
  font-weight: 600;
  color: #111827;
}

.modern-pos .card-body {
  padding: 18px;
}

.modern-pos .small-box {
  overflow: hidden;
  min-height: 120px;
}

.modern-pos .small-box h3 {
  font-size: 30px;
  font-weight: 700;
}

.modern-pos .small-box p {
  font-size: 14px;
  font-weight: 400;
}

.modern-pos .small-box .icon {
  opacity: 0.22;
}

.modern-pos .btn {
  border-radius: 10px;
  font-weight: 500;
}

.modern-pos .btn-primary {
  background: var(--az-primary);
  border-color: var(--az-primary);
}

.modern-pos .btn-primary:hover {
  background: var(--az-primary-dark);
  border-color: var(--az-primary-dark);
}

.modern-pos .table {
  color: #334155;
}

.modern-pos .table thead th {
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}

.table-modern thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.table-modern thead th.sortable:hover {
  color: #2563eb;
  background: #eef4ff;
}

.modern-pos .table tbody td {
  vertical-align: middle;
}

.modern-pos .table-hover tbody tr:hover {
  background: #f8fafc;
}

.modern-pos .form-control,
.modern-pos .custom-select {
  border-radius: 10px;
  border-color: #dbe3ef;
}

.modern-pos .form-control:focus,
.modern-pos .custom-select:focus {
  border-color: var(--az-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modern-pos .main-footer {
  border-top: 1px solid var(--az-border);
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
}

.modern-page {
  padding: 24px 18px 35px 32px;
}

.modern-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.modern-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.modern-page-header p {
  margin: 4px 0 0;
  color: var(--az-muted);
  font-size: 14px;
}

.modern-date-box,
.modern-date-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #374151;
  border: 1px solid var(--az-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--az-shadow-sm);
}

.modern-summary-row {
  margin-top: 4px;
}

.modern-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 145px;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--az-shadow-md);
  margin-bottom: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.modern-stat-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -42px;
  top: -42px;
  border-radius: 50%;
  opacity: 0.14;
}

.modern-stat-card .stat-content {
  position: relative;
  z-index: 2;
}

.modern-stat-card .stat-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 10px;
}

.modern-stat-card h3 {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modern-stat-card p {
  color: #64748b;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
}

.modern-stat-card .stat-icon {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

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

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

.stat-orange::before,
.stat-orange .stat-icon {
  background: #ffedd5;
  color: #f97316;
}

.stat-red::before,
.stat-red .stat-icon {
  background: #fee2e2;
  color: #ef4444;
}

.modern-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--az-shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 22px;
  margin-bottom: 24px;
}

.modern-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.modern-panel-header.compact {
  margin-bottom: 16px;
}

.modern-panel-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
}

.modern-panel-header p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
}

.modern-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.modern-badge i {
  font-size: 8px;
}

.modern-welcome-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #dbeafe;
}

.welcome-small {
  display: inline-block;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modern-welcome-box h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.modern-welcome-box p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  max-width: 620px;
  font-weight: 400;
}

.welcome-illustration {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  flex-shrink: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.modern-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.modern-shortcut {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  text-decoration: none;
  transition: 0.2s ease;
  font-weight: 500;
}

.modern-shortcut:hover {
  transform: translateY(-2px);
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  text-decoration: none;
}

.modern-shortcut i {
  font-size: 22px;
  color: #2563eb;
}

.modern-shortcut span {
  font-size: 13px;
}

.modern-status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modern-status-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.modern-status-item strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.modern-status-item span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

.status-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bg-soft-blue {
  background: #dbeafe;
  color: #2563eb;
}

.bg-soft-green {
  background: #dcfce7;
  color: #16a34a;
}

.bg-soft-orange {
  background: #ffedd5;
  color: #f97316;
}

.empty-state {
  text-align: center;
  padding: 34px 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.empty-state i {
  font-size: 36px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.empty-state h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.empty-state p {
  max-width: 360px;
  margin: 8px auto 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.modern-note-box {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.modern-note-box > i {
  color: #f97316;
  font-size: 22px;
  margin-top: 2px;
}

.modern-note-box strong {
  display: block;
  color: #9a3412;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.modern-note-box p {
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

.modern-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modern-title-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.modern-page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modern-page-title p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.modern-card-full {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5eaf2;
  box-shadow: var(--az-shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.modern-card-top {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eef2f7;
}

.modern-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modern-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.modern-card-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.modern-card-heading p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.btn-add-modern {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  border: none;
  font-size: 12px;
  border-radius: 12px;
  padding: 10px 10px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
  transition: 0.2s ease;
}

.btn-add-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}

.modern-filter-area {
  padding: 8px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.modern-filter-area .row {
  display: flex;
  align-items: center;
}

.modern-filter-area [class*="col-"] {
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
}

.modern-filter-area .modern-input-group,
.modern-filter-area .modern-select,
.modern-filter-area .btn-reset-modern {
  width: 100%;
}

.modern-input-group {
  position: relative;
}

.modern-input-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
  z-index: 2;
}

.modern-input,
.modern-select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  padding: 0 16px;
  font-size: 12px;
  color: #334155;
  outline: none;
}

.modern-input {
  padding-left: 42px;
}

.modern-input:focus,
.modern-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-reset-modern {
  height: 46px;
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
}

.modern-table-area {
  padding: 14px 18px 18px;
  overflow-x: auto;
}

.table-modern {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
}

.table-modern thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  border-bottom: 1px solid #e5eaf2;
  padding: 10px 9px;
  white-space: nowrap;
}

.table-modern tbody td {
  padding: 10px 9px;
  color: #334155;
  font-size: 13px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  white-space: nowrap;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr:hover {
  background: #f8fafc;
}

.code-text {
  color: #1d4ed8;
  font-weight: 600;
}

.name-text {
  font-weight: 600;
  color: #0f172a;
}

.name-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

.price-buy {
  font-weight: 600;
  color: #334155;
}

.price-sell {
  font-weight: 600;
  color: #16a34a;
}

.badge-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
  font-size: 13px;
}

.badge-stock-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
}

.badge-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
}

.action-dots {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #334155;
}

.modern-pos .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #e5eaf2;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.modern-pos .dropdown-item {
  font-size: 14px;
  padding: 9px 14px;
}

.modern-pos .dropdown-item i {
  width: 18px;
}

.modern-table-footer {
  padding-top: 16px;
  color: #64748b;
  font-size: 14px;
}

.barang-page {
  padding: 0 !important;
  padding-top: 15px !important;
}

.barang-page .modern-card-full {
  width: 100% !important;
  margin-top: 0 !important;
}

body.modern-login-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(13, 110, 253, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(13, 110, 253, 0.1),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
  overflow: hidden;
}

body.modern-login-body.login-page {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.modern-login-body.login-page::before,
body.modern-login-body.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.045);
  z-index: 0;
}

body.modern-login-body.login-page::before {
  width: 280px;
  height: 280px;
  top: -100px;
  left: -90px;
}

body.modern-login-body.login-page::after {
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: -130px;
}

.modern-login-box {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
}

.modern-login-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 38px;
  padding: 40px 36px 34px;
  box-shadow: 0 26px 70px rgba(30, 60, 100, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf2ff, #dbeaff);
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.logo-login-icon {
  width: 220px !important;
  height: 110px !important;
  border-radius: 28px;
  background: #ffffff;
  padding: 12px;
}

.logo-login-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modern-login-title {
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.2;
}

.modern-login-title b {
  font-weight: 700;
  color: #1e293b;
}

.modern-login-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 15px;
  margin-bottom: 24px;
}

.modern-divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 24px;
}

.modern-login-card .modern-input-group {
  position: relative;
  margin-bottom: 18px;
}

.modern-login-card .modern-input-group .form-control {
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  padding-left: 54px;
  padding-right: 54px;
  font-size: 15px;
  color: #334155;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.modern-login-card .modern-input-group .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.modern-login-card .modern-input-group .input-icon-left,
.modern-login-card .modern-input-group .input-icon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  z-index: 3;
}

.modern-login-card .modern-input-group .input-icon-left {
  left: 21px;
}

.modern-login-card .modern-input-group .input-icon-right {
  right: 21px;
  cursor: pointer;
}

.btn-login-modern {
  height: 58px;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f80ff, #0066e6);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.28);
  transition: 0.2s ease;
  margin-top: 4px;
}

.btn-login-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(13, 110, 253, 0.34);
  color: #ffffff;
}

.btn-login-modern:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18);
}

.login-note {
  margin-top: 26px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.login-note i {
  margin-right: 6px;
}

.modern-login-card .alert {
  border-radius: 18px;
  font-size: 14px;
  border: none;
}

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

  .modern-welcome-box {
    align-items: flex-start;
  }

  .modern-page {
    padding: 20px 14px;
  }

  .modern-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .modern-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .table-modern {
    min-width: 1000px;
  }
}

@media (max-width: 768px) {
  .modern-navbar-search {
    display: none;
  }

  .modern-pos .main-header {
    padding: 0 10px;
  }

  .modern-pos .main-header .nav-link {
    min-width: 38px;
    font-size: 13px;
  }

  .modern-pos .content-header,
  .modern-pos .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modern-page-header h1,
  .modern-page-title h1 {
    font-size: 24px;
  }

  .modern-welcome-box h2 {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .modern-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .modern-welcome-box {
    flex-direction: column;
  }

  .welcome-illustration {
    width: 76px;
    height: 76px;
    font-size: 32px;
    border-radius: 24px;
  }

  .modern-login-card {
    border-radius: 30px;
    padding: 34px 24px 28px;
  }

  .modern-login-title {
    font-size: 28px;
  }
}

.modern-form-area {
  padding: 22px 24px 24px;
  background: #ffffff;
}

.modern-form-area .form-group {
  margin-bottom: 16px;
}

.modern-form-area label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 7px;
}

.modern-form-area .form-control,
.modern-form-area .custom-select {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #334155;
  font-size: 14px;
  box-shadow: none;
}

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

.modern-form-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save-modern {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
}

.btn-save-modern:hover {
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.btn-back-modern {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #64748b;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-back-modern:hover {
  background: #475569;
  color: #ffffff !important;
  text-decoration: none;
}

.btn-detail-modern {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb !important;
  border: 1px solid #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}

.btn-detail-modern:hover {
  background: #dbeafe;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

.sale-scan-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.sale-scan-box small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.sale-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.sale-section-title i {
  color: #2563eb;
}

.sale-table .form-control {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  font-size: 13px;
}

.btn-add-row-modern {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
}

.btn-delete-modern {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
}

.sale-note-box,
.sale-summary-box {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  padding: 16px;
}

.sale-note-box label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sale-note-box textarea {
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  font-size: 14px;
}

.sale-summary-box {
  background: #f8fafc;
}

.sale-summary-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #dbe3ef;
}

.sale-summary-row:last-child {
  border-bottom: 0;
}

.sale-summary-row span {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sale-summary-row strong {
  text-align: right;
  font-size: 14px;
  color: #0f172a;
}

.sale-summary-row.total strong {
  color: #2563eb;
  font-size: 16px;
}

.sale-summary-row.change strong {
  color: #16a34a;
  font-size: 16px;
}

.sale-summary-row .form-control {
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  text-align: right;
}

.date-filter-box {
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  color: #334155;
}

.date-filter-box:hover {
  border-color: #2563eb;
}

.date-filter-box i {
  color: #64748b;
  font-size: 14px;
}

.date-placeholder {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.date-filter-box.has-value .date-placeholder {
  color: #334155;
}

.date-hidden-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.badge-status-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.badge-status-danger::before {
  background: #ef4444 !important;
}

.badge-status-success {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.badge-status-success::before {
  background: #22c55e !important;
}

.report-stat-card {
  min-height: 112px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-stat-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.report-stat-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.report-stat-card i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.report-stat-card.stat-blue i {
  background: #dbeafe;
  color: #2563eb;
}

.report-stat-card.stat-green i {
  background: #dcfce7;
  color: #16a34a;
}

.report-stat-card.stat-orange i {
  background: #ffedd5;
  color: #f97316;
}

.report-stat-card.stat-red i {
  background: #fee2e2;
  color: #ef4444;
}

.btn-filter-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.btn-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.modern-input.no-icon {
  padding-left: 16px !important;
}

.badge-margin-good,
.badge-margin-low {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.badge-margin-low {
  background: #fee2e2;
  color: #dc2626;
}

.badge-status-warning {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.badge-status-warning::before {
  background: #f59e0b !important;
}

.badge-stock-warning {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

#tableLaporanStok th,
#tableLaporanStok td {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
}

#tableLaporanStok .name-text {
  font-size: 13px;
}

#tableLaporanStok .name-sub {
  font-size: 11px;
}

.nota-preview-box {
  margin-top: 10px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
}

.nota-preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.nota-preview-title i {
  color: #2563eb;
}

.nota-preview-paper {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  color: #0f172a;
  font-family: monospace;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.nota-preview-paper.paper-58 {
  max-width: 220px;
}

.nota-preview-paper.paper-80 {
  max-width: 320px;
}

.nota-preview-paper strong,
.nota-preview-paper span,
.nota-preview-paper small {
  display: block;
  text-align: center;
}

.nota-preview-paper span,
.nota-preview-paper small {
  font-size: 12px;
  color: #475569;
}

.nota-preview-paper hr {
  border: 0;
  border-top: 1px dashed #cbd5e1;
  margin: 8px 0;
}

.nota-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.nota-preview-row span,
.nota-preview-row strong {
  display: inline;
  text-align: left;
}

.badge-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-role-admin {
  background: #dbeafe;
  color: #2563eb;
}

.badge-role-kasir {
  background: #cffafe;
  color: #0891b2;
}

.badge-role-gudang {
  background: #fef3c7;
  color: #d97706;
}

.badge-role-default {
  background: #e5e7eb;
  color: #475569;
}

.badge-status-muted {
  background: #e5e7eb !important;
  color: #64748b !important;
}

.badge-status-muted::before {
  background: #94a3b8 !important;
}

.modern-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.modern-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modern-info-box strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 3px;
}

.modern-info-box p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.modern-login-card .modern-input-group .input-icon-left {
  left: 21px !important;
  right: auto !important;
}

.modern-login-card .modern-input-group .input-icon-right {
  left: auto !important;
  right: 21px !important;
  cursor: pointer;
  z-index: 10;
}

.modern-login-card .modern-input-group .form-control {
  padding-left: 54px !important;
  padding-right: 54px !important;
}

.backup-box {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #dbeafe;
}

.backup-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.backup-content h4 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.backup-content p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.backup-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.backup-info-item {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
}

.backup-info-item span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 700;
}

.backup-info-item strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 800;
}

@media (max-width: 768px) {
  .backup-box {
    flex-direction: column;
  }

  .backup-info-grid {
    grid-template-columns: 1fr;
  }
}

.btn-save-modern,
.btn-add-modern,
.btn-back-modern,
.btn-reset-modern {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  line-height: 1 !important;
  vertical-align: middle;
}

.btn-save-modern i,
.btn-add-modern i,
.btn-back-modern i,
.btn-reset-modern i {
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modern-card label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.modern-card .form-control {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  font-size: 14px;
}

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

.modern-card .alert {
  border-radius: 14px;
  font-size: 14px;
}

.modern-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.database-setting-box {
  margin-top: 22px !important;
  padding: 22px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
  border: 1px solid #dbeafe !important;
}

.database-setting-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.database-setting-icon {
  width: 66px !important;
  height: 66px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25) !important;
}

.database-setting-header h4 {
  margin: 0 0 6px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.database-setting-header p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 14px !important;
}

.database-setting-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.btn-database-check,
.btn-database-save {
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
}

.btn-database-check {
  background: #ffffff !important;
  color: #2563eb !important;
  border: 1px solid #2563eb !important;
}

.btn-database-save {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22) !important;
}

.dashboard-page {
  padding-top: 16px !important;
}

.dashboard-page .modern-summary-row {
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: 8px;
}

.dashboard-page .modern-summary-row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.dashboard-page .modern-stat-card {
  min-height: 128px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 18px;
}

.dashboard-page .modern-stat-card .stat-label {
  font-size: 12px;
  margin-bottom: 8px;
}

.dashboard-page .modern-stat-card h3 {
  font-size: 26px;
}

.dashboard-page .modern-stat-card p {
  font-size: 12px;
  margin-top: 6px;
}

.dashboard-page .modern-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  right: 18px;
  bottom: 18px;
  border-radius: 16px;
  font-size: 20px;
}

.dashboard-page .row {
  margin-left: -8px;
  margin-right: -8px;
}

.dashboard-page .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.dashboard-page .modern-panel {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 18px;
}

.dashboard-page .modern-panel-header {
  margin-bottom: 14px;
}

.dashboard-page .modern-panel-header h3 {
  font-size: 18px;
}

.dashboard-page .modern-panel-header p {
  font-size: 12px;
}

.dashboard-page .modern-welcome-box {
  padding: 20px;
  min-height: 138px;
}

.dashboard-page .modern-welcome-box h2 {
  font-size: 25px;
}

.dashboard-page .modern-welcome-box p {
  font-size: 13px;
  max-width: 680px;
}

.dashboard-page .welcome-illustration {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 34px;
}

.dashboard-page .modern-shortcut-grid {
  gap: 12px;
  margin-top: 14px;
}

.dashboard-page .modern-shortcut {
  min-height: 78px;
  padding: 14px;
  justify-content: center;
}

.dashboard-page .modern-shortcut i {
  font-size: 20px;
}

.dashboard-page .modern-status-list {
  gap: 12px;
}

.dashboard-page .modern-status-item {
  min-height: 72px;
  padding: 12px 14px;
}

.dashboard-page .empty-state {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-page .modern-note-box {
  min-height: 88px;
  align-items: flex-start;
}

.dashboard-page .dashboard-main-panel,
.dashboard-page .dashboard-status-panel {
  height: 100%;
}

.dashboard-page .dashboard-status-panel .modern-panel {
  height: calc(100% - 16px);
}

@media (max-width: 991px) {
  .dashboard-page .dashboard-status-panel .modern-panel {
    height: auto;
  }

  .dashboard-page .modern-stat-card {
    margin-bottom: 12px;
  }
}

@media (max-width: 575px) {
  .dashboard-page .modern-summary-row > [class*="col-"],
  .dashboard-page .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  .dashboard-page .modern-welcome-box {
    flex-direction: column;
  }

  .dashboard-page .modern-shortcut-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 238px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-note-list .modern-note-box {
  margin: 0;
}

.modern-note-box.note-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.modern-note-box.note-info > i,
.modern-note-box.note-info strong,
.modern-note-box.note-info p {
  color: #1d4ed8;
}

.modern-note-box.note-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.modern-note-box.note-success > i,
.modern-note-box.note-success strong,
.modern-note-box.note-success p {
  color: #15803d;
}

.modern-note-box.note-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.modern-note-box.note-warning > i,
.modern-note-box.note-warning strong,
.modern-note-box.note-warning p {
  color: #c2410c;
}

.modern-note-box.note-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.modern-note-box.note-danger > i,
.modern-note-box.note-danger strong,
.modern-note-box.note-danger p {
  color: #dc2626;
}

.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 238px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.dashboard-activity-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-blue {
  background: #dbeafe;
  color: #2563eb;
}

.activity-green {
  background: #dcfce7;
  color: #16a34a;
}

.activity-orange {
  background: #ffedd5;
  color: #f97316;
}

.activity-red {
  background: #fee2e2;
  color: #ef4444;
}

.activity-content {
  min-width: 0;
}

.activity-content strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 2px;
}

.activity-content span {
  display: block;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.activity-content small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
}

.db-host-text {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

.dashboard-activity-list::-webkit-scrollbar {
  width: 6px;
}

.dashboard-activity-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.dashboard-activity-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.dashboard-activity-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dashboard-note-list::-webkit-scrollbar {
  width: 6px;
}

.dashboard-note-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.dashboard-note-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.btn-print-modern {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: #fff7ed;
  color: #ea580c !important;
  border: 1px solid #fed7aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-print-modern:hover {
  background: #ffedd5;
  color: #c2410c !important;
  text-decoration: none !important;
}

.action-button-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-action-modern {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.btn-action-detail {
  background: #eff6ff;
  color: #2563eb !important;
  border-color: #bfdbfe;
}

.btn-action-detail:hover {
  background: #dbeafe;
  color: #1d4ed8 !important;
}

.btn-action-print {
  background: #fff7ed;
  color: #ea580c !important;
  border-color: #fed7aa;
}

.btn-action-print:hover {
  background: #ffedd5;
  color: #c2410c !important;
}

.btn-action-modern i {
  font-size: 12px;
  line-height: 1;
}

/* =========================================================
   UI COMPACT 90% + SIDEBAR ACTIVE STATE FIX
   Menyamakan tampilan browser 100% dengan skala visual sekitar 90%.
   Hanya diterapkan pada layout aplikasi desktop, bukan halaman login/mobile.
   ========================================================= */
@media (min-width: 992px) {
  body.modern-pos {
    zoom: 0.9;
  }

  /* CSS zoom ikut mengecilkan tinggi 100vh menjadi 90vh secara visual.
     Kompensasi tinggi sidebar supaya tetap menutup layar sampai bawah. */
  body.modern-pos.layout-fixed .main-sidebar {
    height: calc(100vh / 0.9) !important;
    min-height: calc(100vh / 0.9) !important;
  }

  body.modern-pos.layout-fixed .main-sidebar > .sidebar {
    height: calc(100% - 64px) !important;
    max-height: calc(100% - 64px) !important;
    padding-bottom: 18px !important;
  }
}

/* Sisakan ruang yang konsisten di kedua sisi menu agar radius kanan
   tidak terpotong oleh batas sidebar. */
body.modern-pos:not(.sidebar-collapse)
  .main-sidebar
  .nav-sidebar
  > .nav-item
  > .nav-link {
  width: calc(100% - 8px) !important;
  margin: 3px 4px !important;
  border-radius: 10px !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Warna aktif dibuat solid dan rapi, tanpa sisi kanan yang tampak bablas. */
.modern-pos .nav-sidebar .nav-link.active {
  background: var(--az-primary) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22) !important;
}

