/* Vexora — professional top navigation shell */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --navy: #002048;
  --teal: #0098a8;
  --teal-bright: #00b0b8;
  --green: var(--navy);
  --green-bright: var(--teal);
  --green-soft: #e6f6f8;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --vx-bg: var(--bg);
  --vx-surface: var(--surface);
  --vx-surface-2: #f8faf9;
  --vx-surface-3: #f3f6f4;
  --vx-border: var(--line);
  --vx-border-soft: #eef1f0;
  --vx-text: var(--ink);
  --vx-muted: var(--muted);
  --vx-accent: var(--green-bright);
  --vx-accent-deep: var(--green);
  --vx-accent-dark: var(--navy);
  --vx-hover: rgba(18, 140, 126, 0.08);
  --corp-bg: var(--bg);
  --corp-surface: var(--surface);
  --corp-surface-2: var(--vx-surface-2);
  --corp-surface-3: var(--vx-surface-3);
  --corp-border: var(--line);
  --corp-border-soft: var(--vx-border-soft);
  --corp-text: var(--ink);
  --corp-muted: var(--muted);
  --corp-accent: var(--green);
  --corp-hover: var(--vx-hover);
  --corp-hover-strong: rgba(18, 140, 126, 0.16);
}

[x-cloak] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font) !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  font-weight: 700 !important;
}

/* ===== Top navigation ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topnav__bar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.topnav__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topnav__burger {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.topnav__brand img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.topnav__wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.topnav__links {
  display: none;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.topnav__links-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: 42px;
}

@media (min-width: 1024px) {
  .topnav__links { display: block; }
  .topnav__burger { display: none !important; }
}

.topnav-link i,
.topnav__drawer a i {
  margin-right: 6px;
  color: var(--teal);
  font-size: 15px;
}
.topnav-link .bi-chevron-down {
  margin-left: 8px;
  margin-right: 0;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 0;
  color: #4b5563 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.topnav-link:hover {
  background: transparent !important;
  color: var(--navy) !important;
}

.topnav-link.is-active,
a.topnav-link.is-active,
button.topnav-link.is-active {
  color: var(--navy) !important;
  background: #e7f7f8 !important;
  box-shadow: inset 0 -3px 0 #0098a8 !important;
  border-radius: 10px 10px 0 0 !important;
  font-weight: 700;
}
.topnav-link.is-active i { color: #0098a8 !important; }

.topnav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav__cta {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px !important;
  background: var(--green) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

@media (min-width: 768px) {
  .topnav__cta { display: inline-flex; }
}

.topnav__cta:hover { background: #001838 !important; }

.topnav__balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f7f8;
  border: 1px solid #c5e8ec;
  color: #002048 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.topnav__balance i { color: #0098a8; font-size: 15px; }
.topnav__balance-unit { color: #667781; font-weight: 600; font-size: 12px; }
.topnav__balance:hover { background: #d7f1f3; }

.topnav__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.topnav__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.topnav__user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.topnav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  z-index: 60;
}

.topnav__menu--right { left: auto; right: 0; }

.topnav__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.topnav__menu a i { color: var(--teal); font-size: 15px; width: 16px; }
.topnav__menu-danger i { color: #b91c1c !important; }

.topnav__menu a:hover { background: #f3f4f6 !important; }

.topnav__menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.topnav__menu-head strong { display: block; font-size: 14px; }
.topnav__menu-head span { display: block; font-size: 12px; color: var(--muted); }

.topnav__menu-danger { color: #b91c1c !important; }
.topnav__menu a.is-active {
  background: #e7f7f8 !important;
  color: #002048 !important;
  font-weight: 700;
}

.topnav__drawer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (min-width: 1024px) {
  .topnav__drawer { display: none !important; }
}

.topnav__drawer a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
}

.topnav__drawer a:hover { background: #f3f4f6 !important; }
.topnav__drawer a.is-active {
  background: #e7f7f8 !important;
  color: #002048 !important;
  box-shadow: inset 3px 0 0 #0098a8;
}

.topnav__drawer-label {
  margin: 10px 12px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Page canvas ===== */
.app-main {
  min-height: calc(100vh - 64px);
}

.app-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

/* Cards and forms */
.bg-white {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.bg-gray-50, .bg-gray-100 { background: #f8faf9 !important; }

.bg-white .bg-gray-50,
.bg-white .bg-gray-100,
.bg-white .bg-primary-50 {
  background: #f7faf8 !important;
  border-color: #eef2f0 !important;
  box-shadow: none !important;
}

.border, .border-gray-100, .border-gray-200, .border-gray-300 {
  border-color: var(--line) !important;
}

.text-gray-900, .text-gray-800, .text-gray-700 { color: var(--ink) !important; }
.text-gray-600, .text-gray-500, .text-gray-400 { color: var(--muted) !important; }

.text-primary-500, .text-primary-600, .text-primary-700,
.text-green-600, .text-green-700, .text-blue-600 {
  color: var(--green) !important;
}

[class*="bg-primary-50"], [class*="bg-primary-100"],
.bg-green-50, .bg-green-100, .bg-blue-50 {
  background: var(--green-soft) !important;
  border-color: #cfeedd !important;
}

.bg-primary-600, .bg-primary-700, .bg-green-500, .bg-green-600,
button.bg-primary-600, a.bg-primary-600 {
  background: var(--green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.hover\:bg-primary-700:hover,
.hover\:bg-primary-600:hover,
.hover\:bg-green-600:hover {
  background: #001838 !important;
  transform: none;
  filter: none;
}

.hover\:bg-gray-50:hover,
.hover\:bg-gray-100:hover,
.hover\:bg-primary-50:hover,
.hover\:bg-white\/5:hover {
  background: #f3f4f6 !important;
}

input, textarea, select {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.15) !important;
  outline: none !important;
}

input[type="file"].sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
  padding-right: 36px !important;
}

table { background: #fff !important; }
thead, thead tr, thead th {
  background: #f8faf9 !important;
  color: var(--muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
}
tbody td { background: #fff !important; border-color: #eef1f0 !important; }
table tbody tr:hover, table tbody tr:hover > td { background: #f8faf9 !important; }

.shadow-sm, .shadow, .shadow-lg, .shadow-xl { box-shadow: none !important; }
.rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl { border-radius: 12px !important; }
.rounded-full { border-radius: 9999px !important; }
.peer.rounded-full {
  border-radius: 9999px !important;
  border: 0 !important;
}
.peer.rounded-full::after {
  width: 20px !important;
  height: 20px !important;
  border-radius: 9999px !important;
  border: 0 !important;
}

/* Auth */
.meta-auth-top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.meta-auth-top__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.meta-auth-top img { height: 34px; width: auto; }

.vx-auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: var(--bg);
}

.vx-auth-panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px !important;
  padding: 32px 28px;
}

.vx-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--navy);
  border-radius: 999px !important;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .3s ease;
}
.preloader.fade-out { opacity: 0; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.preloader-logo { width: 140px; height: auto; }
.preloader-site-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

footer.vx-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 28px;
  margin-bottom: -40px;
  background: #002048 !important;
  color: #d7e4ea;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
}
body { overflow-x: hidden; }
.login-footer-wrapper { padding: 0 !important; margin: 0 !important; }
.vx-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}
.vx-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.vx-footer__logo img { height: 40px; width: auto; display: block; }
.vx-footer__logo strong { color: #002048; font-size: 18px; }
.vx-footer__brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #c5d4dc; }
.vx-footer__about { color: #9fb0ba !important; font-size: 13px !important; }
.vx-footer h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #00b0b8 !important;
}
.vx-footer ul { list-style: none; margin: 0; padding: 0; }
.vx-footer li { margin: 0 0 8px; }
.vx-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8eef2 !important;
  text-decoration: none !important;
  font-size: 14px;
}
.vx-footer a i { color: #00b0b8; font-size: 15px; width: 16px; }
.vx-footer a:hover { color: #7ee7ef !important; }
.wa-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.wa-formats a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7eef1;
  background: #f4fbfc;
  color: #002048 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.wa-formats a i { color: #0098a8; }
.vx-footer__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: #9fb0ba;
}
.vx-footer__bar span {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px 18px;
}
@media (max-width: 900px) {
  .vx-footer__inner { grid-template-columns: 1fr 1fr; padding: 28px 16px 20px; }
}
@media (max-width: 768px) {
  footer.vx-footer { margin-bottom: -28px; }
}
@media (max-width: 640px) {
  .vx-footer__inner { grid-template-columns: 1fr; gap: 18px; padding: 24px 14px 16px; }
  .vx-footer__bar span { padding: 12px 14px 16px; }
}

.swal2-popup { border-radius: 14px !important; font-family: var(--font) !important; }
.swal2-confirm { background: var(--green) !important; }

.fixed.top-1\/2.right-0 a { border-radius: 8px 0 0 8px !important; }

/* ===== Density & rhythm ===== */
.app-content {
  padding: 22px 28px 40px;
}
@media (max-width: 768px) {
  .topnav__bar { padding: 0 12px; }
  .app-content { padding: 12px 10px 28px !important; }
  .app-content > .flex-1.p-4,
  .app-content > .p-4 { padding-left: 0 !important; padding-right: 0 !important; }
  .app-content .p-6 { padding: 14px 12px !important; }
}

.app-content > .flex-1 > .mb-4,
.app-content > .flex-1 > .mb-6,
.app-content .page-head {
  margin-bottom: 18px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.app-content h2.text-2xl {
  font-size: 22px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
}

.app-content .gap-6 { gap: 12px !important; }
.app-content .mb-6 { margin-bottom: 16px !important; }
.app-content .p-6 { padding: 16px 18px !important; }

/* Metric cards */
.app-content .grid > .bg-white .flex.items-center > .w-12,
.app-content .grid > .bg-white .flex.items-center > .w-10 {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: var(--green-soft) !important;
  flex-shrink: 0;
}

.app-content .grid > .bg-white .flex.items-center > .w-12 i,
.app-content .grid > .bg-white .flex.items-center > .w-10 i {
  font-size: 15px !important;
  color: var(--teal) !important;
}

.app-content .grid > .bg-white h4,
.app-content .grid > .bg-white .text-sm.font-medium.text-gray-500 {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--muted) !important;
}

.app-content .grid > .bg-white p.text-lg,
.app-content .grid > .bg-white .text-lg.font-semibold {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 2px;
}

.app-content .grid > .bg-white {
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(0, 32, 72, 0.04) !important;
}

/* Section cards */
.app-content .border-b {
  border-color: var(--line) !important;
}

.app-content h3.text-lg {
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* Breadcrumbs */
.app-content .flex.items-center.space-x-2.text-sm {
  font-size: 13px !important;
  color: var(--muted) !important;
}

/* Tables sit flush inside cards */
.app-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.app-content thead th {
  font-weight: 600 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.app-content tbody td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Quiet code blocks */
.app-content code {
  font-size: 12px !important;
}

/* Announcements — flush with content column, logo palette */
.vx-announcements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

.vx-announce {
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #c5e4e8;
  background: #f3fbfc;
  color: var(--navy);
}

.vx-announce.is-info { background: #f3fbfc; border-color: #b7dde3; }
.vx-announce.is-info i { color: var(--teal); }
.vx-announce.is-alert { background: #fff6f6; border-color: #f0c9c9; }
.vx-announce.is-alert i { color: #b42318; }
.vx-announce.is-ok { background: #f4fbf8; border-color: #c5e4d4; }
.vx-announce.is-ok i { color: #0f766e; }

.vx-announce__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vx-announce__close:hover { background: rgba(0, 32, 72, 0.06); }

.ai-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid #cfe7ea !important;
  border-radius: 999px !important;
  background: #f4fbfc !important;
  color: #002048 !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ai-launch i { color: #0098a8; }
html.ai-lock,
html.ai-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overscroll-behavior: contain;
}
.ai-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 36, .55);
}
.ai-modal__card {
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 70px rgba(0, 16, 36, .28) !important;
}
.ai-modal__hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 16px;
  background: #002048;
  color: #fff;
}
.ai-modal__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 176, 184, .18);
  color: #7ee7ef;
  font-size: 18px;
}
.ai-modal__hero strong { display: block; color: #fff !important; font-size: 16px; }
.ai-modal__hero span { display: block; margin-top: 4px; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.45; }
.ai-modal__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  cursor: pointer;
}
.ai-modal__body { padding: 16px 18px 6px; background: #fff; }
.ai-field { margin-bottom: 14px; }
.ai-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #667781;
}
.ai-modal textarea,
.ai-field__input input {
  width: 100%;
  padding: 12px 14px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #f8fafb !important;
  font-size: 14px !important;
  line-height: 1.45;
}
.ai-modal textarea { min-height: 120px; resize: vertical; }
.ai-field__input { position: relative; }
.ai-field__input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #0098a8;
  font-size: 18px;
}
.ai-field__input input { padding-left: 38px !important; }
.ai-modal__bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  background: #f7f9fa;
  border-top: 1px solid #eef1f3;
}
.ai-modal__ghost,
.ai-modal__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 10px !important;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ai-modal__ghost {
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #374151 !important;
}
.ai-modal__go {
  border: 0 !important;
  background: #0098a8 !important;
  color: #fff !important;
}
.ai-modal__go:disabled, .ai-modal__ghost:disabled { opacity: .6; cursor: wait; }
.order-detail {
  box-sizing: border-box;
  max-width: min(64rem, calc(100vw - 1.5rem));
  min-width: 0;
}
.order-detail .wa-preview,
.order-detail .wa-preview__phone,
.order-detail .wa-preview__stack {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 639px) {
  .order-detail .wa-preview__chat { min-height: 220px; padding: 12px 10px 14px; }
}
.wa-preview { position: sticky; top: 120px; }
.wa-preview__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #667781;
}
.wa-preview__phone {
  background: #efeae2;
  border: 1px solid #d8d1c7;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 20, 26, .12);
}
.wa-preview__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  background: #008069;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}
.wa-preview__status-icons { display: flex; gap: 6px; font-size: 13px; }
.wa-preview__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 10px;
  background: #008069;
  color: #fff;
}
.wa-preview__top > i { font-size: 20px; }
.wa-preview__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dfe5e7;
  color: #008069;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.wa-preview__top strong { display: block; font-size: 15px; line-height: 1.2; }
.wa-preview__top span { display: block; font-size: 12px; opacity: .85; }
.wa-preview__chat {
  min-height: 340px;
  padding: 14px 12px 18px;
  background-color: #efeae2;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(0,0,0,.035) 1.2px, transparent 1.4px),
    radial-gradient(circle at 28px 28px, rgba(0,0,0,.03) 1px, transparent 1.2px);
  background-size: 40px 40px;
}
.wa-preview__day {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  color: #54656f;
  font-size: 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.wa-preview__stack { width: min(100%, 340px); }
.wa-preview__bubble {
  position: relative;
  background: #fff;
  border-radius: 0 8px 8px 8px;
  padding: 6px 8px 4px 9px;
  color: #111b21;
  font-size: 14.2px;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
}
.wa-preview__bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  border-width: 0 8px 10px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
.wa-preview__bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.wa-preview__bubble p.is-placeholder { color: #8696a0; }
.wa-preview__header { font-weight: 700; margin: 0 0 4px !important; }
.wa-preview__photos { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; }
.wa-preview__photos img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; display: block; }
.wa-preview__footer { margin: 6px 0 0 !important; color: #667781; font-size: 12.5px; }
.wa-bill {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e6eef0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 32, 72, .06);
}
.wa-bill__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #002048;
  color: #fff;
}
.wa-bill__top span { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.wa-bill__top strong { font-size: 20px; letter-spacing: -0.03em; }
.wa-bill__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #f0f3f4;
  font-size: 13px;
}
.wa-bill__row span { color: #667781; }
.wa-bill__row b { color: #002048; font-weight: 700; }
.wa-bill__note { margin: 0; padding: 10px 16px 12px; color: #b45309; font-size: 12px; background: #fffaf3; }
.kisi-nums {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #002048;
  background: #f4f7f8;
  padding: 10px 12px;
}
.mob-tab {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 62px;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 32, 72, .06);
}
.mob-tab a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #6b7280 !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
}
.mob-tab a i { font-size: 18px; color: #6b7280; margin: 0; }
.mob-tab a.is-active,
.mob-tab a.is-active i { color: #0098a8 !important; }
.mob-tab a.is-active { background: #e7f7f8; border-radius: 10px; }
@media (max-width: 1023px) {
  .mob-tab { display: flex; }
  body { padding-bottom: 72px; }
}
.wa-preview__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  color: #667781;
  font-size: 11px;
  line-height: 1;
}
.wa-preview__actions {
  margin-top: 3px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
}
.wa-preview__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  color: #027eb5;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #f0f2f5;
}
.wa-preview__btn:first-child { border-top: 0; }
.wa-preview__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px;
  background: #f0f2f5;
  color: #54656f;
  font-size: 18px;
}
.wa-preview__bar span {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  color: #8696a0;
}
.wa-preview__mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #008069;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}
[x-cloak] { display: none !important; }

/* Keep destructive buttons red */
.bg-red-600, .bg-red-700, .hover\:bg-red-700:hover, .hover\:bg-red-600:hover {
  background: #dc2626 !important;
  color: #fff !important;
}
