/* POS Billingwala — Blue & White Admin Theme */
:root {
  --pb-blue: #0066ff;
  --pb-blue-dark: #0052cc;
  --pb-blue-darker: #003d99;
  --pb-blue-light: #e6f0ff;
  --pb-blue-soft: #f0f7ff;
  --pb-blue-muted: #66a3ff;
  --pb-orange: #ff8800;
  --pb-white: #ffffff;
  --pb-bg: #f4f8ff;
  --pb-ink: #1e3a5f;
  --pb-ink-soft: #64748b;
  --pb-line: #dbeafe;
  --pb-shadow: 0 4px 24px rgba(0, 102, 255, 0.08);
  --pb-shadow-lg: 0 12px 40px rgba(0, 102, 255, 0.12);
  --pb-radius: 14px;
  --pb-sidebar-bg: #ffffff;
  --pb-sidebar-border: #e8eef7;
}

/* ── Base ── */
body {
  font-family: "Figtree", "Segoe UI", sans-serif !important;
  background: var(--pb-bg) !important;
  color: var(--pb-ink);
}

.wrapper .page-wrapper {
  background: var(--pb-bg);
}

.page-content {
  padding: 1.25rem 1.5rem 2rem !important;
}

/* ── Modern sidebar drawer ── */
.sidebar-wrapper {
  background: var(--pb-sidebar-bg) !important;
  border-right: 1px solid var(--pb-sidebar-border) !important;
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.06) !important;
}

.sidebar-wrapper .sidebar-header {
  background: var(--pb-white) !important;
  border-bottom: 1px solid var(--pb-sidebar-border) !important;
  padding: 1rem 1rem 0.95rem !important;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sidebar-header .logo-icon {
  width: auto;
  height: 42px;
  max-width: min(100%, 196px);
  border-radius: 6px;
  object-fit: contain;
  object-position: left center;
  box-shadow: none;
  border: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 102, 255, 0.1));
}

.sidebar-tagline {
  display: block;
  color: var(--pb-ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}

.sidebar-header .logo-text {
  color: var(--pb-blue-darker) !important;
  font-family: "Syne", "Figtree", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-size: 0.98rem !important;
  line-height: 1.2;
}

.sidebar-header .toggle-icon {
  color: var(--pb-blue-dark) !important;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pb-blue-soft);
  border: 1px solid var(--pb-blue-light);
  transition: background 0.15s, transform 0.15s;
}

.sidebar-header .toggle-icon:hover {
  background: var(--pb-blue-light);
}

.pb-nav {
  padding: 0.35rem 0 1.25rem;
}

.pb-nav .menu-section {
  list-style: none;
  padding: 1rem 1.15rem 0.4rem;
  margin: 0;
  pointer-events: none;
}

.pb-nav .menu-section span {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pb-nav .menu-section:first-child {
  padding-top: 0.25rem;
}

.sidebar-wrapper .metismenu > li > a {
  color: #1e293b !important;
  background: transparent !important;
  border-radius: 12px;
  margin: 2px 10px;
  padding: 0.58rem 0.7rem !important;
  font-weight: 560;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.sidebar-wrapper .metismenu > li > a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: none;
}

.sidebar-wrapper .metismenu .parent-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--pb-blue-soft);
  color: var(--pb-blue) !important;
  font-size: 1.1rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease;
}

.sidebar-wrapper .metismenu > li > a:hover .parent-icon {
  background: var(--pb-blue-light);
  color: var(--pb-blue-dark) !important;
}

/* Selected top-level item — solid blue pill */
.sidebar-wrapper .metismenu > li.pb-nav-current > a {
  background: linear-gradient(135deg, var(--pb-blue) 0%, var(--pb-blue-dark) 100%) !important;
  color: #fff !important;
  font-weight: 650;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.24);
}

.sidebar-wrapper .metismenu > li.pb-nav-current > a .parent-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* Expanded parent — keep normal look (not selected) */
.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow {
  background: transparent !important;
  color: #1e293b !important;
  font-weight: 560;
  box-shadow: none !important;
}

.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow .parent-icon {
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue) !important;
}

.sidebar-wrapper .metismenu > li > ul {
  display: none;
}

.sidebar-wrapper .metismenu > li > ul.mm-show {
  display: block;
}

.sidebar-wrapper .metismenu ul {
  background: #f8fafc !important;
  border-radius: 10px;
  margin: 2px 10px 8px 14px !important;
  padding: 4px 6px 6px !important;
  border: none;
  border-left: none;
}

.sidebar-wrapper .metismenu ul a {
  color: #475569 !important;
  font-size: 0.82rem;
  padding: 0.48rem 0.65rem 0.48rem 0.5rem !important;
  margin: 1px 0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  background: transparent !important;
}

.sidebar-wrapper .metismenu ul a .sub-icon {
  font-size: 1rem;
  width: 1rem;
  text-align: center;
  color: var(--pb-blue);
  opacity: 0.95;
  flex-shrink: 0;
}

.sidebar-wrapper .metismenu ul a:hover {
  background: #fff !important;
  color: var(--pb-blue-dark) !important;
  box-shadow: none;
}

.sidebar-wrapper .metismenu ul li.pb-nav-current > a {
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue-dark) !important;
  font-weight: 650;
  box-shadow: none !important;
}

.sidebar-wrapper .metismenu ul li.pb-nav-current > a .sub-icon {
  color: var(--pb-blue-dark);
}

/* Override default theme active styles — selection uses pb-nav-current only */
.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow,
.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a:not(.has-arrow) {
  background: transparent !important;
  color: #1e293b !important;
  text-decoration: none;
  box-shadow: none !important;
}

.sidebar-wrapper .metismenu ul li.mm-active:not(.pb-nav-current) > a {
  background: transparent !important;
  color: #475569 !important;
  border-left: none !important;
}

.sidebar-wrapper .metismenu ul a i:not(.sub-icon) {
  display: none;
}

.sidebar-wrapper .metismenu .has-arrow:after {
  border-color: #94a3b8 !important;
  right: 0.85rem;
  opacity: 0.9;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow:after,
.sidebar-wrapper .metismenu > li:has(> ul.mm-show) > a.has-arrow:after {
  transform: rotate(-135deg) translateY(-50%) !important;
  border-color: var(--pb-blue) !important;
}

/* Collapsed sidebar — hide labels that break in mini mode */
@media screen and (min-width: 1025px) {
  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header .sidebar-brand-text,
  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header .sidebar-tagline,
  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header .logo-text,
  .wrapper.toggled:not(.sidebar-hovered) .pb-nav .menu-section {
    display: none !important;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header {
    justify-content: center !important;
    padding: 0.75rem 0.35rem !important;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header > .d-flex {
    justify-content: center;
    width: 100%;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-header .logo-icon {
    max-width: 52px;
    height: 36px;
    object-fit: cover;
    object-position: left center;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu .parent-icon {
    margin-right: 0 !important;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu > li > a {
    justify-content: center !important;
    margin: 3px 8px !important;
    padding: 0.62rem 0.45rem !important;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-collapse-label {
    display: none;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-collapse-btn {
    padding: 0;
    width: 32px;
  }
}

/* Sidebar logout row */
.pb-nav .pb-logout-item > a {
  color: #dc2626 !important;
}

.pb-nav .pb-logout-item > a:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.pb-nav .pb-logout-item .parent-icon {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.pb-nav .pb-logout-item > a:hover .parent-icon {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.pb-nav .pb-logout-item {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--pb-sidebar-border);
}

/* ── Topbar ── */
.topbar {
  background: var(--pb-white) !important;
  border-bottom: 1px solid var(--pb-line) !important;
  box-shadow: var(--pb-shadow) !important;
  height: 64px;
}

.pb-topbar {
  background: linear-gradient(135deg, var(--pb-blue) 0%, var(--pb-blue-dark) 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25) !important;
  height: 60px;
}

.pb-topbar .mobile-toggle-menu i,
.pb-topbar .pb-page-title {
  color: #fff !important;
}

.pb-page-title {
  font-family: "Syne", "Figtree", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pb-topbar .user-name {
  color: #fff !important;
}

.pb-topbar .designattion {
  color: rgba(255, 255, 255, 0.85) !important;
}

.pb-topbar .user-box {
  border-left-color: rgba(255, 255, 255, 0.22) !important;
  height: 60px;
}

.pb-topbar .user-box .user-info .user-name,
.pb-topbar .user-box .user-name {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.2;
}

.pb-topbar .user-box .user-info .designattion,
.pb-topbar .user-box .designattion {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.75rem !important;
}

.pb-topbar .pb-user-link.dropdown-toggle::after {
  border-top-color: rgba(255, 255, 255, 0.9) !important;
  opacity: 0.9;
}

.pb-topbar .mobile-toggle-menu i {
  color: #fff !important;
  font-size: 1.35rem;
}

.pb-user-link {
  padding: 0.25rem 0.5rem !important;
  border-radius: 12px;
}

.pb-user-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pb-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.pb-notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none !important;
  transition: background 0.15s;
}

.pb-notif-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.pb-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pb-blue-dark);
}

.topbar .mobile-toggle-menu i,
.topbar .nav-link {
  color: var(--pb-blue-dark) !important;
}

.topbar .navbar {
  align-items: center;
}

.user-box .user-img {
  border: 2px solid var(--pb-blue-light) !important;
  object-fit: cover;
  background: var(--pb-blue-soft);
}

.user-box .user-name {
  color: var(--pb-ink) !important;
  font-weight: 650 !important;
  font-size: 0.9rem;
}

.user-box .designattion {
  color: var(--pb-ink-soft) !important;
  font-size: 0.78rem;
}

/* Keep topbar profile readable on blue header */
.pb-topbar .user-box .user-name {
  color: #fff !important;
}

.pb-topbar .user-box .designattion {
  color: rgba(255, 255, 255, 0.82) !important;
}

.topbar-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626 !important;
  margin-left: 0.5rem;
  transition: all 0.15s ease;
}

.topbar-logout-btn:hover {
  background: #fee2e2;
  color: #b91c1c !important;
}

.dropdown-menu {
  border: 1px solid var(--pb-line) !important;
  border-radius: var(--pb-radius) !important;
  box-shadow: var(--pb-shadow-lg) !important;
}

.dropdown-item:hover {
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue-dark) !important;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--pb-blue) !important;
  border-color: var(--pb-blue) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px !important;
  padding: 0.45rem 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--pb-blue-dark) !important;
  border-color: var(--pb-blue-dark) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-outline-primary {
  color: var(--pb-blue) !important;
  border-color: var(--pb-blue) !important;
  border-radius: 10px !important;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--pb-blue) !important;
  color: #fff !important;
}

.btn-facebook {
  background: var(--pb-blue-dark) !important;
  border-color: var(--pb-blue-dark) !important;
}

/* ── Button layout: text, icons, spacing (admin-wide) ── */
.page-content .btn,
.page-wrapper .btn,
.pb-login-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  line-height: 1.25;
  vertical-align: middle;
  flex-shrink: 0;
  text-decoration: none;
}

.page-content .btn i.bx,
.page-wrapper .btn i.bx,
.page-content .btn i[class^="bx"],
.page-wrapper .btn i[class^="bx"] {
  font-size: 1.1em;
  line-height: 1;
  flex-shrink: 0;
}

.page-content .btn-sm,
.page-wrapper .btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px !important;
  min-height: 34px;
}

.page-content .btn:not(.btn-sm):not(.btn-lg),
.page-wrapper .btn:not(.btn-sm):not(.btn-lg) {
  min-height: 40px;
  padding: 0.48rem 1.05rem;
}

.btn-outline-secondary {
  border-radius: 10px !important;
  font-weight: 600;
}

.btn-success,
.btn-outline-success,
.btn-danger,
.btn-outline-danger,
.btn-warning,
.btn-outline-warning {
  border-radius: 10px !important;
  font-weight: 600;
}

.page-content .btn.btn-link,
.page-wrapper .btn.btn-link {
  display: inline-flex;
  min-height: 0;
  padding-left: 0;
  padding-right: 0;
  gap: 0.25rem;
}

.page-content .btn.btn-action-icon,
.page-wrapper .btn.btn-action-icon {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  gap: 0;
}

.page-content .d-flex > .btn,
.page-content .d-flex > form,
.page-wrapper .d-flex > .btn,
.page-wrapper .d-flex > form {
  flex: 0 0 auto;
}

.page-content .d-flex > form.d-inline,
.page-content .d-flex > form.d-inline-block,
.page-wrapper .d-flex > form.d-inline {
  display: inline-flex;
  margin: 0;
  align-items: center;
}

.page-content .d-flex.flex-wrap.gap-1:has(.btn),
.page-content .d-flex.flex-wrap.gap-2:has(.btn),
.page-content .d-flex.gap-1:has(.btn),
.page-content .d-flex.gap-2:has(.btn),
.pb-action-bar {
  align-items: center;
}

.pb-action-bar,
.pb-page-toolbar,
.pb-filter-actions,
.pb-card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pb-page-toolbar {
  margin-bottom: 1rem;
  justify-content: flex-end;
  width: 100%;
}

.pb-card-toolbar {
  justify-content: flex-end;
}

/* Top-of-page actions: title left, buttons right */
.pb-page-header > .d-flex {
  width: 100%;
  align-items: center;
}

.pb-page-header-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.pb-page-header-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.welcome-card > .d-flex > .pb-action-bar {
  margin-left: auto;
  justify-content: flex-end;
}

.pb-list-head > .pb-list-tools,
.pb-list-head > a.btn,
.pb-list-head > .btn,
.pb-list-head > .pb-action-bar {
  margin-left: auto;
  justify-content: flex-end;
}

.page-content .card-body > .d-flex.justify-content-between > .pb-action-bar,
.page-content .card-body > .d-flex.justify-content-between > .pb-card-toolbar,
.page-content .card-body > .d-flex.justify-content-between > .d-flex.flex-wrap.gap-2:has(.btn) {
  margin-left: auto;
  justify-content: flex-end;
}

.page-content .card-body > .d-flex.justify-content-between > a.btn:only-of-type {
  margin-left: auto;
}

.page-content .table td .btn-sm,
.page-wrapper .table td .btn-sm {
  white-space: nowrap;
}

.card-title.d-flex {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.card-title.d-flex .ms-auto {
  margin-left: auto !important;
}

.card-title.d-flex h5 {
  display: block;
  width: auto;
}

/* ── Cards ── */
.card {
  background: var(--pb-white) !important;
  border: 1px solid var(--pb-line) !important;
  border-radius: var(--pb-radius) !important;
  box-shadow: var(--pb-shadow) !important;
}

.card.radius-10 {
  border-radius: var(--pb-radius) !important;
}

.card-body {
  padding: 1.25rem 1.35rem !important;
}

.page-content .card-title h5,
.page-content .text-primary {
  color: var(--pb-blue-dark) !important;
}

.border-primary {
  border-color: var(--pb-blue) !important;
}

/* ── Tables ── */
.table {
  color: var(--pb-ink);
  margin-bottom: 0;
}

.table thead th {
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue-darker) !important;
  font-weight: 650;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: var(--pb-line) !important;
  padding: 0.75rem 1rem;
}

.table tbody td {
  padding: 0.75rem 1rem;
  border-color: var(--pb-line) !important;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--pb-blue-soft);
}

.table a {
  color: var(--pb-blue);
  font-weight: 600;
  text-decoration: none;
}

.table a:hover {
  color: var(--pb-blue-dark);
  text-decoration: underline;
}

/* ── Forms ── */
.form-label {
  font-weight: 600;
  color: var(--pb-ink);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select,
.pb-field {
  border: 1.5px solid var(--pb-line) !important;
  border-radius: 10px !important;
  min-height: 42px;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.925rem;
  color: var(--pb-ink);
  background: var(--pb-white) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.pb-field:focus {
  border-color: var(--pb-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.input-group-text {
  border: 1.5px solid var(--pb-line) !important;
  border-right: 0 !important;
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue-dark) !important;
  border-radius: 10px 0 0 10px !important;
}

.input-group .form-control,
.input-group .form-select {
  border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important;
}

.input-group:focus-within .input-group-text {
  border-color: var(--pb-blue) !important;
}

/* Select2 inside input-group (fixes hidden / broken dropdown layout) */
.input-group.pb-input-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.input-group.pb-input-group.has-validation {
  flex-wrap: wrap;
}

.input-group.pb-input-group > .select2-container {
  flex: 1 1 0;
  width: 1% !important;
  min-width: 0;
}

.input-group.pb-input-group .select2-container--bootstrap4 .select2-selection {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
}

.input-group.pb-input-group .select2-container--bootstrap4 .select2-selection__rendered {
  line-height: 40px !important;
  padding-top: 0 !important;
}

.input-group.pb-input-group select.pb-select-search {
  width: 1%;
  flex: 1 1 auto;
  min-width: 0;
}

/* Select2 modern theme */
.select2-container--bootstrap4 .select2-selection {
  border: 1.5px solid var(--pb-line) !important;
  border-radius: 10px !important;
  min-height: 42px !important;
  background: var(--pb-white) !important;
  position: relative;
}

.select2-container--bootstrap4 .select2-selection--single {
  height: 42px !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection,
.select2-container--bootstrap4.select2-container--open .select2-selection {
  border-color: var(--pb-blue) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.select2-container--bootstrap4 .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 0.85rem !important;
  padding-right: 2rem !important;
  color: var(--pb-ink) !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
  line-height: 40px !important;
  color: #94a3b8 !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%);
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  border-color: #64748b transparent transparent transparent !important;
  border-style: solid !important;
  border-width: 5px 5px 0 5px !important;
}

.select2-container--bootstrap4.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #64748b transparent !important;
  border-width: 0 5px 5px 5px !important;
  margin-top: -3px !important;
}

.select2-container--bootstrap4 .select2-dropdown {
  border: 1.5px solid var(--pb-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--pb-shadow-lg) !important;
  overflow: hidden;
}

.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--pb-line) !important;
  border-radius: 8px !important;
  padding: 0.45rem 0.65rem !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted {
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue-darker) !important;
}

.select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
  background: var(--pb-blue) !important;
  color: #fff !important;
}

/* ── Widgets (legacy pages) ── */
.widgets-icons-2 {
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)) !important;
}

.back-to-top {
  background: var(--pb-blue) !important;
  color: #fff !important;
  border-radius: 10px;
}

/* ── Page titles ── */
.dash-hello {
  font-family: "Syne", "Figtree", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pb-ink);
  font-size: 1.35rem;
}

.section-title {
  font-weight: 700;
  color: var(--pb-blue-darker);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pb-blue-light);
}

.page-content .text-secondary {
  color: var(--pb-ink-soft) !important;
}

/* ── KPI cards (colorful + modern) ── */
.kpi-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: 1.1rem 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--pb-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pb-shadow-lg);
}

.kpi-blue { background: linear-gradient(145deg, #eff6ff 0%, #fff 100%); border-color: #bfdbfe; }
.kpi-green { background: linear-gradient(145deg, #ecfdf5 0%, #fff 100%); border-color: #bbf7d0; }
.kpi-orange { background: linear-gradient(145deg, #fff7ed 0%, #fff 100%); border-color: #fed7aa; }
.kpi-red { background: linear-gradient(145deg, #fef2f2 0%, #fff 100%); border-color: #fecaca; }
.kpi-purple { background: linear-gradient(145deg, #faf5ff 0%, #fff 100%); border-color: #e9d5ff; }
.kpi-navy { background: linear-gradient(145deg, #eef2ff 0%, #fff 100%); border-color: #c7d2fe; }

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.kpi-icon.blue { background: #dbeafe; color: #2563eb; }
.kpi-icon.green { background: #d1fae5; color: #16a34a; }
.kpi-icon.orange { background: #ffedd5; color: #ea580c; }
.kpi-icon.red { background: #fee2e2; color: #dc2626; }
.kpi-icon.purple { background: #ede9fe; color: #7c3aed; }

.kpi-label {
  font-size: 0.8rem;
  color: var(--pb-ink-soft);
  font-weight: 600;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--pb-ink);
  line-height: 1.15;
}

.kpi-trend {
  font-size: 0.75rem;
  font-weight: 650;
}

.kpi-trend.up { color: #16a34a; }
.kpi-trend.down { color: #dc2626; }

/* ── Quick action chips ── */
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--pb-blue-dark);
  text-decoration: none !important;
  box-shadow: var(--pb-shadow);
  transition: all 0.15s;
}

.quick-chip i {
  color: var(--pb-blue);
}

.quick-chip:hover {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.quick-chip:hover i {
  color: #fff;
}

/* ── Hub rows (Reports, Support) ── */
.hub-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: 1rem 1.2rem;
  text-decoration: none !important;
  color: inherit;
  margin-bottom: 0.75rem;
  box-shadow: var(--pb-shadow);
  transition: all 0.15s;
}

.hub-row:hover {
  border-color: var(--pb-blue);
  box-shadow: var(--pb-shadow-lg);
  transform: translateX(4px);
}

.hub-row .hub-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: var(--pb-blue-soft);
  color: var(--pb-blue);
}

.hub-row .hub-icon.green { background: #ecfdf5; color: #16a34a; }
.hub-row .hub-icon.orange { background: #fff7ed; color: #ea580c; }
.hub-row .hub-icon.purple { background: #faf5ff; color: #7c3aed; }
.hub-row .hub-icon.red { background: #fef2f2; color: #dc2626; }

.hub-row h6 {
  margin: 0;
  font-weight: 700;
  color: var(--pb-ink);
}

.hub-row p {
  margin: 0;
  color: var(--pb-ink-soft);
  font-size: 0.88rem;
}

/* ── Alert rows ── */
.alert-row {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid var(--pb-line);
  background: var(--pb-white);
  transition: border-color 0.15s;
}

.alert-row:hover {
  border-color: var(--pb-blue);
}

.alert-row.orange { background: #fff7ed; border-color: #fed7aa; }
.alert-row.red { background: #fef2f2; border-color: #fecaca; }
.alert-row.blue { background: #eff6ff; border-color: #bfdbfe; }

.alert-row.orange i { color: #ea580c !important; }
.alert-row.red i { color: #dc2626 !important; }
.alert-row.blue i { color: var(--pb-blue) !important; }

/* ── Status badges (keep semantic colors) ── */
.status-badge {
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-active {
  background: #d1fae5;
  color: #15803d;
}

.status-trial {
  background: #fef3c7;
  color: #b45309;
}

.status-expired {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pending {
  background: var(--pb-blue-soft);
  color: var(--pb-ink-soft);
}

/* ── Charts ── */
.chart-wrap {
  position: relative;
  min-height: 220px;
}

.donut-wrap,
.line-wrap,
.bar-wrap {
  position: relative;
  height: 260px;
}

.line-wrap {
  height: 280px;
}

.donut-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.donut-center small {
  color: var(--pb-ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donut-center strong {
  color: var(--pb-blue-darker);
  font-size: 1.3rem;
  line-height: 1.15;
}

@keyframes pb-chart-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pb-donut-pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.donut-wrap canvas,
.line-wrap canvas,
.bar-wrap canvas,
.chart-wrap canvas {
  animation: pb-chart-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.col-lg-7 .bar-wrap canvas,
.col-lg-7 .line-wrap canvas,
.col-lg-8 .bar-wrap canvas,
.col-lg-8 .line-wrap canvas {
  animation-delay: 0.14s;
}

.donut-center {
  animation: pb-donut-pop 0.55s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .donut-wrap canvas,
  .line-wrap canvas,
  .bar-wrap canvas,
  .chart-wrap canvas,
  .donut-center {
    animation: none;
  }
}

@keyframes pb-chart-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pb-donut-pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.donut-wrap canvas,
.line-wrap canvas,
.bar-wrap canvas,
.chart-wrap canvas {
  animation: pb-chart-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.col-lg-7 .bar-wrap canvas,
.col-lg-7 .line-wrap canvas,
.col-lg-8 .bar-wrap canvas,
.col-lg-8 .line-wrap canvas {
  animation-delay: 0.14s;
}

.donut-center {
  animation: pb-donut-pop 0.55s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .donut-wrap canvas,
  .line-wrap canvas,
  .bar-wrap canvas,
  .chart-wrap canvas,
  .donut-center {
    animation: none;
  }
}

/* ── Login ── */
body.bg-login {
  background: linear-gradient(180deg, #4f8ef7 0%, #7eb3ff 38%, #e8f1ff 72%, #ffffff 100%) !important;
  min-height: 100vh;
}

.pb-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.pb-login-shell {
  width: 100%;
  max-width: 440px;
}

.pb-login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.pb-login-card-inner {
  padding: 2rem 1.75rem 1.75rem;
}

.pb-login-title {
  font-family: "Syne", "Figtree", sans-serif;
  font-weight: 700;
  color: var(--pb-blue-darker);
  letter-spacing: -0.02em;
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.pb-login-subtitle {
  color: var(--pb-ink-soft);
  font-size: 0.92rem;
}

.pb-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  background: var(--pb-blue-soft);
  border-radius: 12px;
  border: 1px solid var(--pb-blue-light);
}

.pb-role-btn {
  border: none;
  background: transparent;
  color: var(--pb-blue-dark);
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
  cursor: pointer;
}

.pb-role-btn:hover {
  background: rgba(255, 255, 255, 0.55);
}

.pb-role-btn.active {
  background: #fff;
  color: var(--pb-blue-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.pb-role-btn i {
  font-size: 1.05rem;
}

.pb-login-submit {
  min-height: 46px;
  font-weight: 650;
  border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.pb-password-toggle .form-control {
  border-right: 0 !important;
}

.pb-password-toggle .input-group-text,
.pb-password-toggle .pb-password-eye {
  border-left: 0 !important;
  color: var(--pb-ink-soft);
  cursor: pointer;
}

.pb-password-toggle button.pb-password-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0 0.65rem;
  border: 1px solid var(--pb-line);
  border-left: 0 !important;
  background: #fff;
}

.pb-password-toggle button.pb-password-eye:hover {
  color: var(--pb-blue);
  background: var(--pb-blue-soft);
}

.pb-password-toggle button.pb-password-eye i {
  font-size: 1.15rem;
  line-height: 1;
}

.pb-login-brand {
  margin-bottom: 1.5rem;
}

.pb-login-logo {
  width: min(100%, 420px);
  height: auto;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

body.bg-login .card {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: var(--pb-shadow-lg) !important;
}

body.bg-login .border {
  border-color: var(--pb-line) !important;
  border-radius: 16px !important;
}

body.bg-login h3 {
  font-family: "Syne", "Figtree", sans-serif;
  font-weight: 700;
  color: var(--pb-blue-darker);
  letter-spacing: -0.02em;
}

.login-separater span {
  background: #fff;
  color: var(--pb-blue) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── DataTables ── */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-color: var(--pb-line) !important;
  border-radius: 8px !important;
}

.page-item.active .page-link {
  background: var(--pb-blue) !important;
  border-color: var(--pb-blue) !important;
}

.page-link {
  color: var(--pb-blue) !important;
}

/* ── Misc ── */
.order-actions .btn-sm {
  padding: 0.25rem 0.45rem;
}

a {
  color: var(--pb-blue);
}

a:hover {
  color: var(--pb-blue-dark);
}

.breadcrumb-item.active {
  color: var(--pb-blue-dark);
}

.badge.bg-primary,
.badge-primary {
  background: var(--pb-blue) !important;
}

/* ── Page breadcrumb / list headers ── */
.page-breadcrumb {
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: 0.85rem 1.15rem !important;
  box-shadow: var(--pb-shadow);
  margin-bottom: 1.25rem !important;
}

.page-breadcrumb .breadcrumb-title {
  font-weight: 700;
  color: var(--pb-blue-darker);
  font-size: 1.05rem;
}

.page-breadcrumb .breadcrumb {
  background: transparent;
}

.page-breadcrumb .breadcrumb-item a {
  color: var(--pb-blue);
}

.page-breadcrumb .breadcrumb-item.active {
  color: var(--pb-ink-soft);
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--pb-blue-muted);
}

/* ── Table action icon buttons ── */
.table-actions-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  font-size: 1rem;
}

.btn-action-icon i {
  line-height: 1;
}

.table-actions-row form.d-inline {
  display: inline-flex;
  margin: 0;
}

.pb-media-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.pb-media-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #94a3b8;
  font-size: 0.75rem;
}

.pb-media-thumb-lg {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.pb-inline-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
}

.pb-inline-form-actions .btn-sm {
  white-space: nowrap;
  flex-shrink: 0;
}

.pb-inline-form-actions .form-control-sm,
.pb-inline-form-actions .form-select-sm {
  flex: 0 1 auto;
}

.license-pay-compact.pb-inline-form-actions {
  flex-wrap: nowrap;
}

@media (max-width: 767px) {
  .license-pay-compact.pb-inline-form-actions {
    flex-wrap: wrap;
  }
}

.pb-transactions-table td .pb-inline-form-actions {
  min-width: 14.5rem;
}

.pb-transactions-table td:last-child,
.pb-ref-table td .table-actions-row {
  min-width: 8.5rem;
}

/* ── Status badges in tables ── */
.badge.rounded-pill.text-success.bg-light-success {
  background: var(--pb-blue-soft) !important;
  color: var(--pb-blue-dark) !important;
  font-weight: 650;
  font-size: 0.72rem;
}

.badge.rounded-pill.text-danger.bg-light-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-weight: 650;
  font-size: 0.72rem;
}

.page-content > h6.text-uppercase {
  font-weight: 700;
  color: var(--pb-blue-darker);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.page-content > hr {
  border-color: var(--pb-line);
  opacity: 1;
  margin: 0.65rem 0 1rem;
}

/* ── Empty state ── */
.pb-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.pb-empty-state--compact {
  padding: 1.75rem 1rem;
}

.pb-empty-image {
  width: 180px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.pb-empty-state--compact .pb-empty-image {
  width: 130px;
  margin-bottom: 0.75rem;
}

.pb-empty-title {
  font-family: "Syne", "Figtree", sans-serif;
  font-weight: 700;
  color: var(--pb-blue-darker);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pb-empty-state--compact .pb-empty-title {
  font-size: 0.95rem;
}

.pb-empty-subtitle {
  color: var(--pb-ink-soft);
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}

.pb-empty-state--compact .pb-empty-subtitle {
  font-size: 0.84rem;
}

.pb-empty-action {
  margin-top: 0.85rem !important;
  border-radius: 999px !important;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
}

tr.pb-empty-row td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.dataTables_empty {
  padding: 0 !important;
  border: none !important;
}

.card .pb-empty-state {
  padding: 2rem 1rem 2.25rem;
}

/* ── Live presence badges ── */
.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.presence-online {
  background: #dcfce7;
  color: #15803d;
}

.presence-offline {
  background: #f1f5f9;
  color: #64748b;
}

/* ── Dashboard mockup UI ── */
.welcome-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--pb-shadow);
}

.pb-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--pb-blue-soft);
  border: 1px solid var(--pb-blue-light);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--pb-blue-dark);
}

.pb-date-chip i {
  color: var(--pb-blue);
}

.pb-date-chip-input {
  padding: 0.25rem 0.65rem 0.25rem 0.55rem;
}

.pb-date-input {
  border: 0;
  background: transparent;
  color: var(--pb-blue-dark);
  font-weight: 600;
  font-size: 0.84rem;
  font-family: inherit;
  min-width: 130px;
  padding: 0.15rem 0;
}

.pb-date-input:focus {
  outline: none;
}

.pb-date-filter .btn-light {
  background: #fff;
  border: 1px solid var(--pb-blue-light);
}

.pb-filter-field {
  min-width: 150px;
}

.pb-filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--pb-ink-soft);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pb-filter-field .form-select {
  min-height: 38px;
  font-size: 0.84rem;
}

.pb-refresh-btn i {
  margin-right: 0.25rem;
}

.pb-chart-filter {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--pb-ink-soft);
  background: var(--pb-blue-soft);
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
}

.pb-category-legend {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pb-legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.pb-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pb-legend-name {
  flex-grow: 1;
  color: var(--pb-ink);
  font-weight: 550;
}

.pb-legend-pct {
  font-weight: 700;
  color: var(--pb-ink-soft);
}

.pb-view-report-link {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--pb-blue);
  text-decoration: none;
}

.pb-view-report-link:hover {
  color: var(--pb-blue-dark);
  text-decoration: underline;
}

.pb-customer-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pb-customer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pb-blue-soft);
  color: var(--pb-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-completed {
  background: #d1fae5;
  color: #15803d;
}

.pb-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pb-payment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pb-payment-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pb-blue-soft);
  color: var(--pb-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pb-payment-meta strong {
  font-size: 0.9rem;
  color: var(--pb-ink);
}

.pb-payment-amount {
  font-weight: 700;
  color: var(--pb-ink);
  white-space: nowrap;
}

.pb-payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--pb-line);
  font-size: 0.95rem;
}

.pb-payment-total strong {
  font-size: 1.1rem;
  color: var(--pb-blue-dark);
}

.pb-transactions-table thead th {
  font-size: 0.75rem;
}

.pb-dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pb-dash-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s ease;
}

.pb-dash-row:hover {
  background: var(--pb-blue-soft);
}

.pb-dash-meta {
  flex: 1;
  min-width: 0;
}

.pb-dash-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--pb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-dash-meta small {
  display: block;
  color: var(--pb-ink-soft);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-dash-amount {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pb-ink);
  white-space: nowrap;
}

.sidebar-wrapper .metismenu > li > a.has-arrow {
  cursor: pointer;
}

/* ── Sidebar footer ── */
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--pb-sidebar-border);
  background: #fff;
  margin-top: auto;
}

.sidebar-collapse-btn {
  width: auto;
  min-width: 32px;
  height: 36px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar-collapse-label {
  line-height: 1;
}

.sidebar-collapse-btn:hover {
  background: #f8fafc;
  color: #334155 !important;
  border-color: #cbd5e1;
}

.sidebar-wrapper {
  display: flex;
  flex-direction: column;
}

.sidebar-wrapper [data-simplebar] {
  flex: 1;
}

.sidebar-wrapper .simplebar-content-wrapper,
.sidebar-wrapper .simplebar-mask {
  flex: 1;
}

.section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

.card .section-title {
  border-bottom: none;
}

/* Reference shell: dark navy sidebar, white top bar, orange active item */
.sidebar-wrapper {
  background: #0b1f4d !important;
  border-right: 0 !important;
  box-shadow: 8px 0 28px rgba(11, 31, 77, 0.18) !important;
}

.sidebar-wrapper .sidebar-header {
  background: #0b1f4d !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.sidebar-brand-text strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-brand-text span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 600;
}

.sidebar-header .logo-icon {
  height: 36px;
  max-width: 46px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  object-fit: contain;
  filter: none;
}

.sidebar-header .toggle-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.sidebar-wrapper .metismenu > li > a {
  color: rgba(255, 255, 255, 0.86) !important;
}

.sidebar-wrapper .metismenu > li > a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.sidebar-wrapper .metismenu .parent-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.sidebar-wrapper .metismenu > li > a:hover .parent-icon {
  background: rgba(255, 136, 0, 0.22);
  color: #fff !important;
}

.sidebar-wrapper .metismenu > li.pb-nav-current > a,
.sidebar-wrapper .metismenu ul li.pb-nav-current > a {
  background: #ff8800 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.sidebar-wrapper .metismenu > li.pb-nav-current > a .parent-icon,
.sidebar-wrapper .metismenu ul li.pb-nav-current > a .sub-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow,
.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow .menu-title {
  color: #fff !important;
}

.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow .parent-icon {
  background: rgba(255, 136, 0, 0.2) !important;
  color: #ffb45a !important;
}

.sidebar-wrapper .metismenu ul {
  background: transparent !important;
}

.sidebar-wrapper .metismenu ul a {
  color: rgba(255, 255, 255, 0.72) !important;
}

.sidebar-wrapper .metismenu ul a .sub-icon {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-wrapper .metismenu ul a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.sidebar-wrapper .metismenu .has-arrow:after {
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.sidebar-wrapper .metismenu > li.mm-active:not(.pb-nav-current) > a.has-arrow:after,
.sidebar-wrapper .metismenu > li:has(> ul.mm-show) > a.has-arrow:after {
  border-color: #ffb45a !important;
}

.sidebar-footer {
  background: #0b1f4d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-collapse-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85) !important;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 136, 0, 0.2);
  color: #fff !important;
  border-color: transparent;
}

.pb-topbar {
  background: #fff !important;
  box-shadow: 0 1px 0 #e8eef7, 0 8px 24px rgba(15, 23, 42, 0.04) !important;
  height: 68px;
}

.pb-topbar .mobile-toggle-menu i,
.pb-topbar .pb-page-title,
.pb-topbar .user-name,
.pb-topbar .user-box .user-name,
.pb-topbar .designattion,
.pb-topbar .user-box .designattion {
  color: #1e3a5f !important;
}

.pb-top-logo {
  height: 36px;
  width: auto;
  max-width: 42px;
  object-fit: contain;
}

.pb-top-titles {
  line-height: 1.15;
}

.pb-top-titles strong {
  display: block;
  color: #0b1f4d;
  font-size: 0.92rem;
}

.pb-top-titles span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.pb-global-search {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  align-items: center;
  gap: 0.4rem;
  background: #f4f7fb;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: #94a3b8;
}

.pb-global-search input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  color: #1e3a5f;
  font-size: 0.88rem;
}

.pb-notif-btn {
  background: #f4f7fb;
  color: #0b1f4d !important;
  border: 1px solid #e6edf5;
}

.pb-notif-btn:hover {
  background: #fff4e8;
  color: #ff8800 !important;
}

.pb-user-avatar {
  background: #ff8800;
  color: #fff;
  border-color: #fff;
}

.pb-user-link:hover {
  background: #f4f7fb;
}

.pb-topbar .pb-user-link.dropdown-toggle::after {
  border-top-color: #64748b !important;
}

.btn-primary,
.btn-primary:focus {
  background: #ff8800 !important;
  border-color: #ff8800 !important;
}

.btn-primary:hover {
  background: #e67700 !important;
  border-color: #e67700 !important;
}

/* ── Inner page layout helpers ── */
.pb-page-header .dash-hello {
  font-size: 1.35rem;
}

.pb-form-card {
  border: 1px solid var(--pb-line) !important;
  box-shadow: var(--pb-shadow) !important;
}

.pb-form-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pb-blue-soft);
  color: var(--pb-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pb-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--pb-ink-soft);
  font-size: 0.9rem;
}

.pb-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.hub-row strong {
  display: block;
  color: var(--pb-ink);
  font-size: 0.95rem;
}

.hub-row small {
  font-size: 0.8rem;
}

/* ── Website CMS hub (modern grid) ── */
.website-hub-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: calc(var(--pb-radius) + 4px);
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 16px 48px rgba(0, 102, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.website-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(255, 136, 0, 0.22), transparent 40%);
  pointer-events: none;
}

.website-hub-hero-copy,
.website-hub-hero-actions {
  position: relative;
  z-index: 1;
}

.website-hub-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.website-hub-hero .dash-hello,
.website-hub-hero p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.website-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.website-hub-hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.website-hub-hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.website-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hub-row--card {
  margin-bottom: 0;
  position: relative;
}

.hub-row--card .hub-chevron {
  margin-left: auto;
  color: #94a3b8;
  font-size: 1.35rem;
  transition: transform 0.15s, color 0.15s;
}

.hub-row--card:hover .hub-chevron {
  transform: translateX(3px);
  color: var(--pb-blue);
}

.hub-row--wide {
  grid-column: 1 / -1;
}

.website-local-tip {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--pb-radius);
  background: #f0f7ff;
  border: 1px dashed #93c5fd;
  color: var(--pb-ink-soft);
  font-size: 0.88rem;
}

.website-local-tip i {
  font-size: 1.5rem;
  color: var(--pb-blue);
  flex-shrink: 0;
}

.website-local-tip strong {
  display: block;
  color: var(--pb-ink);
  margin-bottom: 0.15rem;
}

.website-local-tip code {
  background: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #1d4ed8;
}

@media (max-width: 991px) {
  .website-hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-row .bx-chevron-right {
  color: var(--pb-ink-soft);
  font-size: 1.25rem;
}

/* Aurora purple admin theme */
:root {
  --pb-blue: #7c3aed;
  --pb-blue-dark: #6d28d9;
  --pb-blue-darker: #5b21b6;
  --pb-blue-light: #ede9fe;
  --pb-blue-soft: #f5f3ff;
  --pb-blue-muted: #a78bfa;
  --pb-bg: #f8f6fc;
  --pb-ink: #1e1b4b;
  --pb-line: #e9e5ff;
  --pb-shadow: 0 4px 24px rgba(109, 40, 217, 0.08);
  --pb-shadow-lg: 0 12px 40px rgba(109, 40, 217, 0.12);
  --pb-sidebar-bg: #2e1065;
  --pb-sidebar-border: rgba(255, 255, 255, 0.08);
  --pb-sidebar-text: rgba(255, 255, 255, 0.88);
  --pb-sidebar-muted: rgba(255, 255, 255, 0.55);
}

.sidebar-wrapper {
  background: var(--pb-sidebar-bg) !important;
  border-right-color: var(--pb-sidebar-border) !important;
}

.sidebar-wrapper .sidebar-header {
  background: #3b0764 !important;
  border-bottom-color: var(--pb-sidebar-border) !important;
}

.sidebar-header .toggle-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-wrapper .metismenu > li > a {
  color: var(--pb-sidebar-text) !important;
}

.sidebar-wrapper .metismenu > li > a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.sidebar-wrapper .metismenu .parent-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd6fe !important;
}

.sidebar-wrapper .metismenu > li.pb-nav-current > a {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.sidebar-wrapper .metismenu ul {
  background: rgba(0, 0, 0, 0.18) !important;
}

.sidebar-wrapper .metismenu ul a {
  color: var(--pb-sidebar-muted) !important;
}

.sidebar-wrapper .metismenu ul a:hover,
.sidebar-wrapper .metismenu ul li.pb-nav-current > a {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.pb-nav .menu-section span {
  color: var(--pb-sidebar-muted);
}

.btn-primary,
.btn-primary:focus {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  border-color: #6d28d9 !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
  border-color: #5b21b6 !important;
}

/* Reference UI: navy sidebar, orange actions, white cards */
:root {
  --pb-blue: #1d4ed8;
  --pb-blue-dark: #1e3a8a;
  --pb-blue-darker: #0b1f4d;
  --pb-blue-light: #dbeafe;
  --pb-blue-soft: #eff6ff;
  --pb-orange: #ff8800;
  --pb-bg: #f3f6fb;
  --pb-ink: #0f2744;
  --pb-line: #e6edf5;
  --pb-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  --pb-sidebar-bg: #0b1f4d;
}

body,
.wrapper .page-wrapper {
  background: #f3f6fb !important;
}

.sidebar-wrapper,
.sidebar-wrapper .sidebar-header,
.sidebar-footer {
  background: #0b1f4d !important;
}

.sidebar-wrapper .metismenu > li.pb-nav-current > a,
.sidebar-wrapper .metismenu ul li.pb-nav-current > a {
  background: #ff8800 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.sidebar-wrapper .metismenu ul {
  background: transparent !important;
}

.sidebar-wrapper .metismenu ul a {
  color: rgba(255, 255, 255, 0.72) !important;
}

.sidebar-wrapper .metismenu ul li.pb-nav-current > a,
.sidebar-wrapper .metismenu ul a:hover {
  background: #ff8800 !important;
  color: #fff !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover {
  background: #ff8800 !important;
  border-color: #ff8800 !important;
  border-radius: 10px;
  font-weight: 650;
}

.btn-primary:hover {
  background: #e67700 !important;
  border-color: #e67700 !important;
}

.card {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06) !important;
}

.pb-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
}

.pb-hero-copy {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.pb-hero-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(160deg, #dbeafe, #fff);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.pb-hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pb-hero-filters .form-select {
  min-width: 150px;
  border-radius: 10px;
}

.pb-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem 1rem 0.85rem;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
  min-height: 124px;
}

.pb-stat strong {
  font-size: 1.25rem;
  color: #0f2744;
  line-height: 1.2;
}

.pb-stat-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}

.pb-stat small {
  color: #94a3b8;
  font-size: 0.72rem;
}

.pb-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.35rem;
}

.pb-stat-icon.orange { background: #ff8800; }
.pb-stat-icon.blue { background: #3b82f6; }
.pb-stat-icon.green { background: #16a34a; }
.pb-stat-icon.red { background: #ef4444; }
.pb-stat-icon.purple { background: #7c3aed; }
.pb-stat-icon.gold { background: #f59e0b; }

.pb-ref-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: 0;
  white-space: nowrap;
}

.pb-ref-table td {
  vertical-align: middle;
  font-size: 0.86rem;
}

.pb-ref-table a {
  color: #0f2744;
  font-weight: 650;
  text-decoration: none;
}

.pb-view-all {
  color: #2563eb !important;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.pb-count-pill {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
}

.pb-slice-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #475569;
}

.pb-slice-list div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pb-slice-list span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.pb-slice-list b {
  margin-left: auto;
  color: #0f2744;
}

.pb-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pb-quick-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f2744 !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.86rem;
}

.pb-quick-grid a i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  color: #ff8800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.06);
}

.pb-quick-grid a:hover {
  background: #fff7ed;
}

.page-content .table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.78rem;
  border-bottom-color: #eef2f7;
}

.status-badge.status-active {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.status-expired {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.status-pending,
.status-badge.status-trial {
  background: #ffedd5;
  color: #c2410c;
}

@media (max-width: 1199px) {
  .pb-dash .col-xl-2 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 767px) {
  .pb-dash .col-xl-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .pb-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Every admin and dealer screen */
.page-breadcrumb {
  display: flex !important;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.15rem !important;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
  margin-bottom: 1rem !important;
}

.page-breadcrumb .ps-3,
.page-breadcrumb .breadcrumb {
  display: none !important;
}

.page-breadcrumb .breadcrumb-title {
  font-family: "Syne", "Figtree", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f2744;
}

.page-content > h6.text-uppercase,
.page-content > hr {
  display: none;
}

.page-content .form-control,
.page-content .form-select {
  border-radius: 10px;
  border-color: #e6edf5;
}

.page-content .form-label,
.pb-filter-label {
  font-weight: 650;
  font-size: 0.78rem;
  color: #475569;
}

.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-bordered > :not(caption) > * > * {
  background: #fff;
  border-color: #eef2f7 !important;
  box-shadow: none;
}

table.dataTable,
.table-bordered {
  border: 0 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #e6edf5;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: #f4f7fb;
  margin-left: 0.4rem;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 0.35rem 0.15rem;
  color: #64748b;
  font-size: 0.82rem;
}

.page-item.active .page-link {
  background: #ff8800 !important;
  border-color: #ff8800 !important;
}

.pb-customer-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-weight: 650;
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.04);
}

.pb-customer-tabs .nav-link.active {
  background: #ff8800;
  color: #fff;
}

.hub-row {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 0.65rem;
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.04);
}

.pb-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pb-status-pills a {
  background: #fff;
  color: #475569;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.pb-status-pills a.is-active {
  background: #ff8800;
  color: #fff;
}

.pb-ticket-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eef2f7;
}

.pb-ticket-row:last-child {
  border-bottom: 0;
}

.pb-ticket-copy {
  flex: 1;
  min-width: 0;
}

.pb-ticket-copy strong,
.pb-ticket-copy small {
  display: block;
}

.pb-ticket-copy small {
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-chat-bubble {
  background: #f8fafc;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem;
}

.pb-chat-bubble.is-mine {
  background: #fff7ed;
}

.pb-chat-bubble strong {
  margin-right: 0.4rem;
}

.pb-chat-bubble small {
  color: #94a3b8;
}

.pb-chat-bubble p {
  margin: 0.35rem 0 0;
}

.website-hub-hero {
  background: #0b1f4d !important;
  border-radius: 16px;
}

.pb-module-grid,
.website-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.pb-module-grid .hub-row,
.website-hub-grid .hub-row {
  margin: 0;
  height: 100%;
  align-items: flex-start;
}

.card.border-primary,
.border-primary {
  border-color: #dbeafe !important;
}

.badge.bg-success {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.badge.bg-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.badge.bg-primary,
.badge.bg-warning {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

body.bg-login {
  background: linear-gradient(160deg, #e8f1ff 0%, #f7fbff 42%, #ffffff 100%) !important;
}

.pb-login-split {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 31, 77, 0.12);
}

.pb-login-art {
  background: linear-gradient(180deg, #1d4ed8 0%, #0b1f4d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.pb-login-art-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 8px;
}

.pb-login-device {
  width: 120px;
  height: 150px;
  border-radius: 18px;
  background: #fff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.pb-login-art strong {
  font-size: 1.15rem;
}

.pb-login-art span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.pb-login-shell {
  max-width: none;
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.pb-login-card {
  width: 100%;
  box-shadow: none;
  border: 0;
}

.pb-login-card-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.pb-login-forgot {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.pb-login-submit {
  background: #ff8800 !important;
  border-color: #ff8800 !important;
  min-height: 46px;
  border-radius: 12px !important;
  font-weight: 700;
}

@media (max-width: 767px) {
  .pb-login-split {
    grid-template-columns: 1fr;
  }
  .pb-login-art {
    padding: 1.5rem 1rem;
  }
  .pb-login-device {
    width: 84px;
    height: 104px;
    font-size: 2.2rem;
  }
}

/* Login card matches the reference: blue panel + white form */
body.bg-login {
  background: #e8f1ff !important;
}

.pb-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pb-login-split {
  width: min(880px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(11, 31, 77, 0.16);
}

.pb-login-art {
  position: relative;
  background: linear-gradient(165deg, #3b82f6 0%, #1d4ed8 48%, #0b1f4d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2rem 1.4rem;
  text-align: center;
}

.pb-login-art::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -20%;
  width: 90px;
  height: 140%;
  background: #fff;
  border-radius: 80px;
}

.pb-login-art-logo {
  width: min(210px, 80%);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.pb-login-art strong {
  font-size: 1.2rem;
}

.pb-login-art span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.pb-login-shell {
  max-width: none;
  display: flex;
  align-items: center;
  padding: 1.75rem 1.6rem 1.75rem 2.2rem;
}

.pb-login-card,
.pb-login-card-inner {
  width: 100%;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.pb-login-card-logo {
  width: 72px;
  height: auto;
  margin-bottom: 0.6rem;
}

.pb-login-field {
  position: relative;
}

.pb-login-field > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
  z-index: 2;
}

.pb-login-field .form-control {
  min-height: 46px;
  padding-left: 2.4rem;
  border-radius: 12px;
  background: #f8fafc;
}

.pb-login-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  z-index: 2;
}

.pb-login-submit {
  background: #ff8800 !important;
  border-color: #ff8800 !important;
  border-radius: 12px !important;
  min-height: 46px;
  font-weight: 700;
}

/* Dashboard matches the reference welcome + KPI row */
.pb-dash-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pb-welcome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.06);
}

.pb-welcome-logo {
  width: 92px;
  height: 72px;
  object-fit: contain;
}

.pb-welcome .dash-hello {
  font-size: 1.45rem;
  color: #0b1f4d;
}

.pb-welcome-copy p {
  color: #64748b;
  font-size: 0.92rem;
}

.pb-dash-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}

.pb-dash-filters .form-select {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  max-width: 280px;
  border-radius: 12px;
  background: #fff;
  border-color: #e2e8f0;
}

.pb-dash-filters .select2-container {
  flex: 1 1 0;
  min-width: 140px;
  max-width: 280px;
}

@media (max-width: 767px) {
  .pb-dash-filters {
    flex-wrap: wrap;
  }

  .pb-dash-filters .form-select,
  .pb-dash-filters .select2-container {
    flex: 1 1 calc(50% - 0.35rem);
    max-width: none;
  }
}

.pb-dash .pb-stat {
  min-height: 132px;
  border-radius: 18px;
  padding: 1rem 1rem 0.9rem;
}

.pb-dash .pb-stat strong {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.pb-dash .pb-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1.2rem;
}

.pb-dash .card {
  border-radius: 18px !important;
}

.pb-dash .section-title {
  color: #0b1f4d;
  font-weight: 750;
}

.pb-dash .bar-wrap,
.pb-dash .donut-wrap {
  min-height: 220px;
}

.pb-dash .pb-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .pb-dash .pb-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pb-welcome {
    grid-template-columns: auto 1fr;
  }
  .pb-welcome .pb-date-chip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .pb-login-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .pb-login-art {
    padding: 1.4rem 1rem 1.6rem;
  }
  .pb-login-art::after {
    display: none;
  }
  .pb-login-art-logo {
    max-height: 92px;
  }
  .pb-login-shell {
    padding: 1.25rem 1rem 1.4rem;
  }
}

/* Sidebar width, chevrons, and row spacing */
.sidebar-wrapper,
.sidebar-wrapper .sidebar-header {
  width: 272px !important;
}

.topbar {
  left: 272px;
}

.page-wrapper {
  margin-left: 272px;
}

.sidebar-wrapper .sidebar-header {
  height: auto !important;
  min-height: 72px;
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.7rem 0.8rem 0.85rem !important;
}

.sidebar-header .sidebar-brand {
  flex: 1;
  min-width: 0;
}

.sidebar-header .toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-left: 0.15rem;
}

.sidebar-wrapper .metismenu > li > a {
  position: relative;
  gap: 0.7rem;
  margin: 3px 10px !important;
  padding: 0.52rem 2.15rem 0.52rem 0.55rem !important;
}

.sidebar-wrapper .metismenu .parent-icon {
  margin-right: 0 !important;
}

.sidebar-wrapper .metismenu .menu-title {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  padding-right: 0.15rem;
}

.sidebar-wrapper .metismenu .has-arrow:after {
  content: "\e9ac" !important;
  font-family: "boxicons" !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 0 !important;
  right: 0.55rem !important;
  top: 50% !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  transform: translateY(-50%) rotate(0deg) !important;
  transform-origin: center center !important;
  transition: transform 0.18s ease, color 0.18s ease;
}

.sidebar-wrapper .metismenu > li.mm-active > a.has-arrow:after,
.sidebar-wrapper .metismenu > li:has(> ul.mm-show) > a.has-arrow:after {
  transform: translateY(-50%) rotate(180deg) !important;
  color: #ffb45a !important;
  border-color: transparent !important;
}

.sidebar-wrapper .metismenu ul {
  margin: 0.1rem 10px 0.45rem 2.35rem !important;
  padding: 0.15rem 0.3rem 0.3rem !important;
}

.sidebar-wrapper .metismenu ul a {
  gap: 0.6rem !important;
  padding: 0.4rem 0.5rem !important;
  margin: 2px 0 !important;
}

.sidebar-wrapper .metismenu ul a .sub-icon {
  width: 1.15rem;
  font-size: 1.05rem;
}

@media screen and (min-width: 1025px) {
  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper,
  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header {
    width: 76px !important;
  }

  .wrapper.toggled:not(.sidebar-hovered) .topbar {
    left: 76px;
  }

  .wrapper.toggled:not(.sidebar-hovered) .page-wrapper {
    margin-left: 76px;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header .toggle-icon {
    display: inline-flex !important;
    margin: 0 auto;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-header .toggle-icon i {
    transform: rotate(180deg);
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu .has-arrow:after {
    display: none !important;
  }

  .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu > li > a {
    padding: 0.5rem !important;
    justify-content: center !important;
  }

  .wrapper.toggled.sidebar-hovered .sidebar-wrapper,
  .wrapper.toggled.sidebar-hovered .sidebar-wrapper .sidebar-header {
    width: 272px !important;
  }
}

@media screen and (max-width: 1024px) {
  .topbar,
  .page-wrapper {
    left: 0;
    margin-left: 0;
  }

  .sidebar-wrapper,
  .sidebar-wrapper .sidebar-header {
    width: 272px !important;
  }
}

/* Reports hub: icon cards, same layout as the reference */
.pb-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pb-report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 168px;
  padding: 1.15rem 1.15rem 1.05rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  text-decoration: none !important;
  color: #0b1f4d !important;
}

.pb-report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 39, 68, 0.1);
}

.pb-report-card strong {
  font-size: 1rem;
  font-weight: 750;
  margin-top: 0.45rem;
}

.pb-report-card small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pb-report-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.pb-report-icon.is-blue { background: #e8f1ff; color: #2563eb; }
.pb-report-icon.is-green { background: #e8f8ef; color: #16a34a; }
.pb-report-icon.is-orange { background: #fff1e6; color: #ff8800; }
.pb-report-icon.is-purple { background: #f3e8ff; color: #7c3aed; }
.pb-report-icon.is-gold { background: #fff7e6; color: #d97706; }

@media (max-width: 991px) {
  .pb-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .pb-report-grid {
    grid-template-columns: 1fr;
  }
}

/* Customers list matches the reference table */
.pb-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.pb-list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.pb-list-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: min(280px, 100%);
  height: 42px;
  padding: 0 0.85rem;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
}

.pb-list-search i {
  color: #94a3b8;
  font-size: 1.15rem;
}

.pb-list-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: #0f2744;
}

.pb-list-tools .btn-primary {
  height: 42px;
  border-radius: 12px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pb-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.pb-list-filters .form-select {
  width: auto;
  min-width: 150px;
  border-radius: 10px;
}

.pb-cust-name strong,
.pb-cust-name a {
  display: block;
  color: #0f2744;
  font-weight: 700;
}

.pb-cust-name small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.pb-row-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.pb-row-actions a {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #475569 !important;
  font-size: 1.05rem;
}

.pb-row-actions a:hover {
  background: #fff1e6;
  color: #ff8800 !important;
}

.pb-customer-page .dataTables_filter {
  display: none;
}

.pb-dt-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pb-customer-form .section-title {
  margin-bottom: 1rem;
}

.pb-customer-form .card-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.pb-shop-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
}

.pb-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pb-form-actions .btn {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 1.15rem;
}

/* Remaining edit and list screens use the same white cards */
.card.border-primary,
.card.border-top.border-4 {
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06) !important;
}

.card.border-primary > .card-body,
.card.border-top.border-4 > .card-body {
  padding: 1.15rem 1.2rem 1.25rem !important;
}

.card.border-primary hr,
.card.border-top.border-4 hr {
  display: none;
}

.card.border-primary .card-title,
.card.border-top.border-4 .card-title {
  margin-bottom: 0.9rem;
}

.card.border-primary h5,
.card.border-primary .text-primary,
.card.border-top.border-4 h5 {
  color: #0b1f4d !important;
  font-weight: 750;
}

.card.border-primary .btn-primary,
.pb-page-header .btn-primary {
  min-height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pb-page-header {
  width: 100%;
}

.pb-page-header > .d-flex {
  width: 100%;
}

.pb-page-header .btn-primary,
.pb-page-header .btn-outline-primary {
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  white-space: nowrap;
}

.pb-transactions-table thead th,
.table.table-striped thead th,
.table.table-bordered thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
}

.page-content .table td {
  vertical-align: middle;
}

/* Login matches the light reference panel; work links for sales, customers, reports, import */
.pb-login-art {
  background: linear-gradient(180deg, #f4f8ff 0%, #e7f0ff 55%, #dbe8ff 100%) !important;
  color: #0b1f4d !important;
  justify-content: center;
  gap: 0.45rem;
}

.pb-login-art::after {
  display: none;
}

.pb-login-art-logo {
  width: min(180px, 78%);
  max-height: 120px;
  filter: none;
}

.pb-login-art strong {
  color: #0b1f4d;
  font-size: 1.25rem;
}

.pb-login-art span {
  color: #64748b;
  max-width: 240px;
}

.pb-login-scene {
  margin-top: 0.35rem;
}

.pb-work-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.pb-dash-top .pb-work-links {
  margin: 0.85rem 0 0;
}

.pb-work-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  color: #0b1f4d !important;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 39, 68, 0.06);
}

.pb-work-links a i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff4e8;
  color: #ff8800;
  font-size: 1.15rem;
}

.pb-work-links a.is-on,
.pb-work-links a:hover {
  background: #0b1f4d;
  color: #fff !important;
}

.pb-work-links a.is-on i,
.pb-work-links a:hover i {
  background: #ff8800;
  color: #fff;
}

.pb-welcome-art {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 39, 68, 0.08);
}

.pb-welcome-art .pb-welcome-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .pb-work-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form icons sit beside the text, with even field spacing */
.pb-login-field > i,
.pb-login-eye {
  top: 0;
  height: 46px;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-login-field > i {
  left: 0;
  width: 44px;
  pointer-events: none;
}

.pb-login-eye {
  right: 2px;
  width: 40px;
  padding: 0;
}

.pb-login-field .form-control {
  padding: 0.55rem 0.95rem 0.55rem 2.75rem !important;
}

.pb-login-field.pb-password-toggle .form-control {
  padding-right: 2.7rem !important;
  border-right: 1.5px solid #e2e8f0 !important;
}

.pb-login-card .form-label {
  display: block;
  margin-bottom: 0.4rem;
}

.pb-login-card form.row {
  --bs-gutter-y: 0.95rem;
}

.page-content .input-group,
.pb-customer-form .input-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.page-content .input-group > .input-group-text,
.pb-customer-form .input-group > .input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 0 0.7rem !important;
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1.5px solid #e2e8f0 !important;
  border-right: 0 !important;
  border-radius: 12px 0 0 12px !important;
}

.page-content .input-group > .input-group-text i,
.pb-customer-form .input-group > .input-group-text i {
  font-size: 1.15rem;
  line-height: 1;
}

.page-content .input-group > .form-control,
.page-content .input-group > .form-select,
.pb-customer-form .input-group > .form-control,
.pb-customer-form .input-group > .form-select {
  border-radius: 0 12px 12px 0 !important;
  border-left: 0 !important;
  min-height: 46px;
  padding-left: 0.85rem !important;
}

.page-content .input-group > .select2-container,
.pb-customer-form .input-group > .select2-container {
  flex: 1 1 auto;
  width: 1% !important;
}

/* Validation messages under icon input groups (Bootstrap has-validation pattern) */
.page-content .input-group.has-validation,
.pb-customer-form .input-group.has-validation,
.page-wrapper .input-group.has-validation {
  flex-wrap: wrap;
  align-items: stretch;
}

.page-content .input-group.has-validation > .invalid-feedback,
.pb-customer-form .input-group.has-validation > .invalid-feedback,
.page-wrapper .input-group.has-validation > .invalid-feedback {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  order: 99;
  margin-top: 0.35rem;
  padding-left: 0.1rem;
}

.page-content .form-control.is-invalid ~ .invalid-feedback,
.page-content .form-select.is-invalid ~ .invalid-feedback,
.pb-customer-form .form-control.is-invalid ~ .invalid-feedback,
.pb-customer-form .form-select.is-invalid ~ .invalid-feedback,
.page-wrapper .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.page-content .input-group:has(.form-control.is-invalid) > .input-group-text,
.page-content .input-group:has(.form-select.is-invalid) > .input-group-text,
.pb-customer-form .input-group:has(.form-control.is-invalid) > .input-group-text,
.pb-customer-form .input-group:has(.form-select.is-invalid) > .input-group-text {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.page-content .input-group .form-control.is-invalid,
.page-content .input-group .form-select.is-invalid,
.pb-customer-form .input-group .form-control.is-invalid,
.pb-customer-form .input-group .form-select.is-invalid {
  border-color: #dc3545 !important;
}

.page-content .invalid-feedback,
.pb-customer-form .invalid-feedback,
.page-wrapper .invalid-feedback {
  font-size: 0.875rem;
  line-height: 1.35;
}

.pb-page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 31, 77, 0.38);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.pb-page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.pb-page-busy {
  cursor: progress;
}

body.pb-page-busy .wrapper {
  pointer-events: none;
}

.pb-page-loader-panel {
  min-width: 200px;
  max-width: 92vw;
  padding: 1.35rem 1.75rem;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(11, 31, 77, 0.22);
}

.pb-page-loader-spin {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.85rem;
  border: 3px solid #e8f1ff;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pbPageLoaderSpin 0.72s linear infinite;
}

@keyframes pbPageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.pb-page-loader-msg {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b1f4d;
}

.pb-login-submit.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.92;
}

.pb-login-submit.is-loading .pb-login-submit-label {
  opacity: 0.55;
}

.pb-login-submit.is-loading .pb-login-submit-busy {
  display: inline-flex;
}

.pb-login-submit-busy {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: absolute;
  inset: 0;
}

.pb-login-submit-busy .bx {
  font-size: 1.15rem;
  animation: pbPageLoaderSpin 0.72s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pb-page-loader-spin,
  .pb-login-submit-busy .bx {
    animation: none;
  }
}
