/*
forgot-password.css — EDITING INDEX
Edit the relevant section below. CSS changes appearance; calculations stay in JavaScript.
Preserve section order. Regenerate line ranges after inserting or deleting lines.
SECTION 01: Nextsure Utilities | LINE 12–308
SECTION 02: Agency Billing Auth | LINE 309–327
SECTION 03: Layout Polish | LINE 328–380
SECTION 04: Responsive Sitewide | LINE 381–636
SECTION 05: Smart Premium Theme | LINE 637–1506
SECTION 06: Nextsure Readability Support | LINE 1507–1595
*/
/* SECTION 01 — Nextsure Utilities */
/*
 * NextSure Local Utility Styles
 * Generated by scripts/build-local-utilities.js
 * This replaces the former runtime Tailwind CDN dependency.
 * Do not edit generated rules directly; update page classes or the builder.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: inherit;
}
button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
}
button {
  background: none;
}
table {
  border-collapse: collapse;
  border-color: inherit;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
button,
[role='button'] {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.absolute {
  position: absolute;
}
.bg-amber-50 {
  background-color: #fffbeb;
}
.bg-amber-500 {
  background-color: #f59e0b;
}
.bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5);
}
.bg-blue-50 {
  background-color: #eff6ff;
}
.bg-cyan-600 {
  background-color: #0891b2;
}
.bg-emerald-50 {
  background-color: #ecfdf5;
}
.bg-emerald-600 {
  background-color: #059669;
}
.bg-emerald-700 {
  background-color: #047857;
}
.bg-fuchsia-600 {
  background-color: #c026d3;
}
.bg-green-100 {
  background-color: #dcfce7;
}
.bg-indigo-50 {
  background-color: #eef2ff;
}
.bg-indigo-600 {
  background-color: #4f46e5;
}
.bg-purple-600 {
  background-color: #9333ea;
}
.bg-red-50 {
  background-color: #fef2f2;
}
.bg-red-600 {
  background-color: #dc2626;
}
.bg-sky-50 {
  background-color: #f0f9ff;
}
.bg-sky-600 {
  background-color: #0284c7;
}
.bg-slate-100 {
  background-color: #f1f5f9;
}
.bg-slate-300 {
  background-color: #cbd5e1;
}
.bg-slate-50 {
  background-color: #f8fafc;
}
.bg-slate-900 {
  background-color: #0f172a;
}
.bg-slate-950 {
  background-color: #020617;
}
.bg-teal-500 {
  background-color: #14b8a6;
}
.bg-teal-600 {
  background-color: #0d9488;
}
.bg-violet-50 {
  background-color: #f5f3ff;
}
.bg-violet-600 {
  background-color: #7c3aed;
}
.bg-violet-700 {
  background-color: #6d28d9;
}
.bg-white {
  background-color: #ffffff;
}
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}
.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}
.block {
  display: block;
}
.border {
  border: 1px solid #e2e8f0;
}
.border-amber-100 {
  border-color: #fef3c7;
}
.border-amber-200 {
  border-color: #fde68a;
}
.border-amber-300 {
  border-color: #fcd34d;
}
.border-b {
  border-bottom: 1px solid #e2e8f0;
}
.border-blue-200 {
  border-color: #bfdbfe;
}
.border-emerald-100 {
  border-color: #d1fae5;
}
.border-red-100 {
  border-color: #fee2e2;
}
.border-sky-100 {
  border-color: #e0f2fe;
}
.border-t {
  border-top: 1px solid #e2e8f0;
}
.border-violet-200 {
  border-color: #ddd6fe;
}
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}
.break-all {
  word-break: break-all;
}
.decoration-2 {
  text-decoration-thickness: 2px;
}
.decoration-dotted {
  text-decoration-style: dotted;
}
.disabled\:bg-slate-300:disabled {
  background-color: #cbd5e1;
}
.fixed {
  position: fixed;
}
.flex {
  display: flex;
}
.flex-0 {
  flex: 0 0 auto;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.float-right {
  float: right;
}
.font-black {
  font-weight: 900;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-semibold {
  font-weight: 600;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.h-10 {
  height: 2.5rem;
}
.h-14 {
  height: 3.5rem;
}
.h-3 {
  height: 0.75rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[76px\] {
  height: 76px;
}
.h-\[82vh\] {
  height: 82vh;
}
.h-\[calc\(100vh-58px\)\] {
  height: calc(100vh-58px);
}
.h-full {
  height: 100%;
}
.h-screen {
  height: 100vh;
}
.hidden {
  display: none !important;
}
.hover\:bg-indigo-50:hover {
  background-color: #eef2ff;
}
.hover\:bg-slate-50:hover {
  background-color: #f8fafc;
}
.hover\:bg-white\/15:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.hover\:text-indigo-900:hover {
  color: #312e81;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.inset-0 {
  inset: 0;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.leading-5 {
  line-height: 1.25rem;
}
.left-\[300px\] {
  left: 300px;
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-\[330px\,1fr\] {
    grid-template-columns: 330px 1fr;
  }
}
.max-h-72 {
  max-height: 18rem;
}
.max-h-\[75vh\] {
  max-height: 75vh;
}
.max-h-\[84vh\] {
  max-height: 84vh;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[300px\] {
  max-width: 300px;
}
.max-w-\[320px\] {
  max-width: 320px;
}
.max-w-\[360px\] {
  max-width: 360px;
}
.max-w-\[420px\] {
  max-width: 420px;
}
.max-w-full {
  max-width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-xl {
  max-width: 36rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
}
@media (min-width: 768px) {
  .md\:flex-col {
    flex-direction: column;
  }
}
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-\[1fr_auto\] {
    grid-template-columns: 1fr auto;
  }
}
@media (min-width: 768px) {
  .md\:h-screen {
    height: 100vh;
  }
}
@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .md\:items-center {
    align-items: center;
  }
}
@media (min-width: 768px) {
  .md\:justify-between {
    justify-content: space-between;
  }
}
@media (min-width: 768px) {
  .md\:p-4 {
    padding: 1rem;
  }
}
@media (min-width: 768px) {
  .md\:p-5 {
    padding: 1.25rem;
  }
}
@media (min-width: 768px) {
  .md\:p-8 {
    padding: 2rem;
  }
}
@media (min-width: 768px) {
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
@media (min-width: 768px) {
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
.min-h-0 {
  min-height: 0;
}
.min-h-screen {
  min-height: 100vh;
}
.min-w-0 {
  min-width: 0;
}
.min-w-6 {
  min-width: 1.5rem;
}
.min-w-\[1000px\] {
  min-width: 1000px;
}
.min-w-\[1050px\] {
  min-width: 1050px;
}
.min-w-\[1100px\] {
  min-width: 1100px;
}
.min-w-\[1120px\] {
  min-width: 1120px;
}
.min-w-\[1200px\] {
  min-width: 1200px;
}
.min-w-\[1220px\] {
  min-width: 1220px;
}
.min-w-\[1250px\] {
  min-width: 1250px;
}
.min-w-\[1320px\] {
  min-width: 1320px;
}
.min-w-\[1450px\] {
  min-width: 1450px;
}
.min-w-\[1500px\] {
  min-width: 1500px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[240px\] {
  min-width: 240px;
}
.min-w-\[260px\] {
  min-width: 260px;
}
.min-w-\[280px\] {
  min-width: 280px;
}
.min-w-\[900px\] {
  min-width: 900px;
}
.min-w-\[920px\] {
  min-width: 920px;
}
.min-w-\[950px\] {
  min-width: 950px;
}
.min-w-\[980px\] {
  min-width: 980px;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-7 {
  margin-top: 1.75rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.object-contain {
  object-fit: contain;
}
.opacity-90 {
  opacity: 0.9;
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-7 {
  padding: 1.75rem;
}
.p-8 {
  padding: 2rem;
}
.place-items-center {
  place-items: center;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-16 {
  padding-right: 4rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.relative {
  position: relative;
}
.right-2 {
  right: 0.5rem;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.shadow {
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.12),
    0 1px 2px rgba(15, 23, 42, 0.08);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}
.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(15, 23, 42, 0.12),
    0 4px 6px -4px rgba(15, 23, 42, 0.08);
}
.shadow-sm {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.shrink-0 {
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.space-y-1 {
  --ns-space-y: 0.25rem;
}
.space-y-2 {
  --ns-space-y: 0.5rem;
}
.space-y-3 {
  --ns-space-y: 0.75rem;
}
.space-y-4 {
  --ns-space-y: 1rem;
}
.space-y-5 {
  --ns-space-y: 1.25rem;
}
.sticky {
  position: sticky;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[16px\] {
  font-size: 16px;
}
.text-\[18px\] {
  font-size: 18px;
}
.text-amber-600 {
  color: #d97706;
}
.text-amber-700 {
  color: #b45309;
}
.text-amber-900 {
  color: #78350f;
}
.text-blue-600 {
  color: #2563eb;
}
.text-blue-900 {
  color: #1e3a8a;
}
.text-center {
  text-align: center;
}
.text-emerald-700 {
  color: #047857;
}
.text-gray-800 {
  color: #1f2937;
}
.text-green-700 {
  color: #15803d;
}
.text-indigo-700 {
  color: #4338ca;
}
.text-left {
  text-align: left;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-purple-700 {
  color: #7e22ce;
}
.text-red-500 {
  color: #ef4444;
}
.text-red-600 {
  color: #dc2626;
}
.text-red-700 {
  color: #b91c1c;
}
.text-slate-300 {
  color: #cbd5e1;
}
.text-slate-400 {
  color: #94a3b8;
}
.text-slate-500 {
  color: #64748b;
}
.text-slate-600 {
  color: #475569;
}
.text-slate-700 {
  color: #334155;
}
.text-slate-800 {
  color: #1e293b;
}
.text-slate-900 {
  color: #0f172a;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-violet-700 {
  color: #6d28d9;
}
.text-violet-900 {
  color: #4c1d95;
}
.text-white {
  color: #ffffff;
}
.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}
.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.top-0 {
  top: 0;
}
.top-2 {
  top: 0.5rem;
}
.top-6 {
  top: 1.5rem;
}
.transition {
  transition: all 0.2s ease;
}
.underline {
  text-decoration-line: underline;
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.w-10 {
  width: 2.5rem;
}
.w-14 {
  width: 3.5rem;
}
.w-24 {
  width: 6rem;
}
.w-32 {
  width: 8rem;
}
.w-40 {
  width: 10rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-80 {
  width: 20rem;
}
.w-\[38\%\] {
  width: 38%;
}
.w-\[min\(92vw\,460px\)\] {
  width: min(92vw, 460px);
}
.w-full {
  width: 100%;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
@media (min-width: 1280px) {
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.z-\[80\] {
  z-index: 80;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--ns-space-y);
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--ns-space-y);
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--ns-space-y);
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--ns-space-y);
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--ns-space-y);
}

/* SECTION 02 — Agency Billing Auth */
/* NextSure v51 - agency orders, bills and authentication polish */
.ns-bills-head {
  display: block !important;
  background: linear-gradient(135deg, #fff 0%, #f4fbff 100%) !important;
}
.ns-management-toolbar {
  background: linear-gradient(135deg, #fff 0%, #effcf9 100%) !important;
}
.ns-people-search-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  min-width: min(100%, 650px);
}
.ns-people-search {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px 17px;
  font-weight: 700;
  background: #fff;
  outline: none;
}
.ns-people-search:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
.ns-people-search-btn,
.ns-people-clear-btn {
  border: 0;
  border-radius: 15px;
  padding: 12px 20px;
  font-weight: 900;
}
.ns-people-search-btn {
  background: #0f766e;
  color: #fff;
}
.ns-people-clear-btn {
  background: #e2e8f0;
  color: #1e293b;
}
.ns-management-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #dbe5ec;
  margin-top: 16px;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}
.ns-management-summary span:first-child {
  color: #0f766e;
}
.ns-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 2px 4px 18px;
  align-content: start;
}
.ns-agency-card {
  position: relative;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  overflow: visible;
  min-height: 260px;
  transition: 0.2s ease;
}
.ns-agency-card:before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 6px;
  border-radius: 0 8px 8px 0;
  background: #10a787;
}
.ns-agency-card:hover,
.ns-agency-card:focus {
  transform: translateY(-2px);
  border-color: #8bd7c6;
  box-shadow: 0 17px 38px rgba(15, 118, 110, 0.13);
  outline: none;
}
.ns-agency-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-left: 10px;
}
.ns-agency-title {
  min-width: 0;
}
.ns-agency-title h3 {
  margin: 0;
  color: #081631;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 950;
  word-break: break-word;
}
.ns-agency-title p {
  margin: 8px 0 0;
  color: #60718a;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ns-agency-code {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: #edfff8;
  border: 1px solid #9ce9ce;
  color: #008a70;
  font-weight: 950;
}
.ns-agency-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 16px;
  padding-left: 10px;
}
.ns-agency-stat {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
}
.ns-agency-stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.ns-agency-stat b {
  display: block;
  color: #09152d;
  font-size: 16px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.ns-agency-open-btn {
  width: calc(100% - 10px);
  margin-left: 10px;
  border: 0;
  border-radius: 15px;
  background: #0c162c;
  color: #fff;
  padding: 14px 16px;
  font-weight: 950;
  font-size: 16px;
}
.ns-empty-people {
  grid-column: 1/-1;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  padding: 45px;
  text-align: center;
  color: #64748b;
  font-weight: 800;
}
#personOrdersView {
  width: 100%;
  min-height: 0;
}
.ns-person-orders-header {
  padding: 20px 22px;
  background: linear-gradient(135deg, #fff, #f1fbf8);
  border-bottom: 1px solid #dbe5ec;
}
.ns-person-orders-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.ns-person-back-btn {
  flex: none;
  border: 0;
  border-radius: 14px;
  background: #eaf0f6;
  color: #12213a;
  padding: 12px 16px;
  font-weight: 900;
}
.ns-person-title-name {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: #0b1830;
  font-weight: 950;
}
.ns-person-title-sub {
  display: block;
  margin-top: 6px;
  color: #60718a;
  font-size: 14px;
  font-weight: 750;
}
.ns-person-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.ns-person-summary-grid > div {
  background: #fff;
  border: 1px solid #dde7ee;
  border-radius: 14px;
  padding: 11px 13px;
}
.ns-person-summary-grid span {
  display: block;
  color: #65738a;
  font-size: 12px;
  font-weight: 850;
}
.ns-person-summary-grid b {
  display: block;
  color: #0a1730;
  font-size: 18px;
  margin-top: 3px;
}
.ns-person-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  align-items: center;
}
.ns-selected-count,
.ns-action-secondary,
.ns-action-primary,
.ns-action-dark {
  border: 0;
  border-radius: 13px;
  padding: 11px 14px;
  font-weight: 900;
}
.ns-selected-count {
  background: #f3e8ff;
  color: #7e22ce;
}
.ns-action-secondary {
  background: #e8eef5;
  color: #24344d;
}
.ns-action-primary {
  background: #7c3aed;
  color: #fff;
}
.ns-action-dark {
  background: #0c172e;
  color: #fff;
}
.ns-person-orders-table-wrap table th {
  font-weight: 900;
  color: #26344c;
}
.ns-person-orders-table-wrap table td,
.ns-person-orders-table-wrap table th {
  vertical-align: middle;
}
.ns-person-order-row td {
  background-color: inherit !important;
}
.ns-bill-row td {
  vertical-align: middle;
}
.ns-new-bill-row {
  outline: 3px solid rgba(16, 185, 129, 0.3);
  outline-offset: -3px;
}
.ns-bills-head input {
  outline: none;
}
.ns-bills-head input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}
.ns-auth-page {
  margin: 0;
  background:
    radial-gradient(circle at top right, #dff9f1, transparent 35%),
    linear-gradient(145deg, #eef4fa, #f8fafc);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Arial;
  color: #0f172a;
}
.ns-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ns-auth-card {
  width: min(100%, 500px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce6ee;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  text-align: center;
}
.ns-auth-logo img {
  width: 145px;
  margin: 0 auto 18px;
}
.ns-auth-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #ecfdf5;
  font-size: 28px;
}
.ns-auth-card h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
  margin: 0;
}
.ns-auth-card > p {
  color: #64748b;
  line-height: 1.65;
  margin: 12px 0 24px;
}
.ns-auth-form {
  text-align: left;
}
.ns-auth-form label {
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}
.ns-auth-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  padding: 14px 15px;
  outline: none;
}
.ns-auth-form input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
.ns-auth-form button {
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: #0f766e;
  color: #fff;
  font-weight: 950;
  padding: 14px;
  margin-top: 14px;
}
.ns-auth-form button:disabled {
  opacity: 0.65;
}
.ns-auth-message {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 800;
}
.ns-auth-message.success {
  color: #047857;
}
.ns-auth-message.error {
  color: #dc2626;
}
.ns-auth-security {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 13px;
  text-align: left;
  color: #526079;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 16px;
}
.ns-auth-back {
  display: inline-block;
  margin-top: 20px;
  color: #4338ca;
  font-weight: 900;
}
@media (max-width: 1000px) {
  .ns-people-grid {
    grid-template-columns: 1fr;
  }
  .ns-person-orders-heading {
    flex-direction: column;
  }
  .ns-person-summary-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
@media (max-width: 700px) {
  .ns-people-search-wrap {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
  }
  .ns-people-search {
    grid-column: 1/-1;
  }
  .ns-management-summary {
    flex-direction: column;
    gap: 6px;
  }
  .ns-agency-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ns-agency-title h3 {
    font-size: 20px;
  }
  .ns-person-orders-header {
    padding: 15px;
  }
  .ns-person-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ns-person-order-actions > * {
    flex: 1 1 auto;
  }
  .ns-auth-card {
    padding: 25px 20px;
    border-radius: 24px;
  }
}

/* SECTION 03 — Layout Polish */
/*
 * NextSure v65 — Partner pagination, balanced spacing and small UI polish.
 * This sheet is deliberately conservative: it normalizes spacing without
 * changing existing workflows, colors, rates, or permission behavior.
 */
:root {
  --ns-space-1: 6px;
  --ns-space-2: 10px;
  --ns-space-3: 14px;
  --ns-space-4: 18px;
  --ns-space-5: 24px;
  --ns-space-6: 32px;
  --ns-radius-control: 14px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}

/* Partner Management: exactly two visible cards per page on desktop. */
#peopleView {
  gap: 14px !important;
  padding: 2px 4px 20px !important;
  overflow-y: auto !important;
}
#peopleView .ns-management-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 0 !important;
}
#peopleView .ns-management-search-only {
  margin: 0 !important;
  min-width: 0 !important;
}
.ns-people-search-btn,
.ns-people-clear-btn {
  height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 900;
  white-space: nowrap;
}
.ns-people-search-btn {
  background: #0d7f76;
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 127, 118, 0.18);
}
.ns-people-clear-btn {
  background: #e8eef5;
  color: #17304d;
}
#peopleGrid.ns-people-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}
#peopleGrid .ns-agency-directory-card {
  min-height: 310px !important;
  margin: 0 !important;
}
.ns-people-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 4px 4px;
  color: #5e7085;
  font-weight: 800;
}
.ns-people-pagination > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.ns-people-pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d5e1eb;
  border-radius: 11px;
  background: #fff;
  color: #17304d;
  font-weight: 900;
}
.ns-people-pagination button.active {
  background: #0d7f76;
  color: #fff;
  border-color: #0d7f76;
}
.ns-people-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  #peopleGrid.ns-people-grid {
    grid-template-columns: 1fr !important;
  }
  #peopleView .ns-management-toolbar {
    grid-template-columns: 1fr auto auto !important;
  }
}
@media (max-width: 620px) {
  #peopleView .ns-management-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }
  .ns-management-search-only {
    grid-column: 1/-1;
  }
  .ns-people-search-btn,
  .ns-people-clear-btn {
    width: 100%;
    padding: 0 12px;
  }
  .ns-people-pagination {
    justify-content: center;
    text-align: center;
  }
  .ns-people-pagination > span {
    width: 100%;
  }
}

/* Balanced form/card spacing across public pages and order flows. */
.site-header .header-inner {
  padding-left: clamp(16px, 3vw, 34px) !important;
  padding-right: clamp(16px, 3vw, 34px) !important;
}
.container {
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}
.ns-wizard-shell,
.ns-motor-shell,
.ns-order-card,
.premium-card,
.card {
  box-sizing: border-box;
}
.ns-wizard-panel,
.ns-motor-panel {
  padding: clamp(18px, 2.2vw, 30px) !important;
}
.ns-panel-heading,
.ns-motor-heading {
  margin-bottom: clamp(16px, 2vw, 24px) !important;
}
.ns-panel-actions,
.ns-motor-actions,
.ns-form-actions {
  gap: 10px !important;
  margin-top: clamp(18px, 2vw, 26px) !important;
}
.ns-form-grid,
.ns-admin-grid,
.ns-trip-grid,
.ns-passport-manual-grid {
  gap: clamp(12px, 1.5vw, 18px) !important;
}
.ns-field-group > span,
.ns-form-grid label > span,
.ns-admin-grid label > span {
  margin-bottom: 7px !important;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  min-height: 48px;
}
textarea {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
footer {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

/* Dashboard content spacing stays uniform without touching sidebar widths. */
#dashboardView,
#ordersView,
#billingView,
#personOrdersView {
  gap: 14px !important;
}
.ns-dashboard-hero,
.ns-standard-chart-card,
.ns-billing-panel,
.ns-person-orders-header {
  box-sizing: border-box;
}
.ns-people-pagination .ns-page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: #7b8ca0;
  font-weight: 900;
}

/* v66 passport review fields */
.ns-passport-manual-grid textarea,
.ns-traveller-form textarea {
  width: 100%;
  border: 1px solid #d6e2ea;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #10213d;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.ns-passport-manual-grid .ns-span-2 {
  grid-column: 1/-1;
}

/* SECTION 04 — Responsive Sitewide */
/*
 * NextSure v69 — site-wide responsive hardening.
 * ------------------------------------------------------------
 * Purpose: make the existing UI behave consistently on phones, tablets,
 * laptops and desktops without changing business logic, rates or APIs.
 * Keep new device-specific layout fixes in this file so future edits remain
 * easy to find and maintain.
 */

:root {
  --ns69-page-pad: clamp(12px, 2.2vw, 28px);
  --ns69-card-gap: clamp(12px, 1.8vw, 20px);
  --ns69-control-h: 46px;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}
input,
select,
textarea,
button {
  max-width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
}

/* Generic content safety -------------------------------------------------- */
.container,
.section,
.header-inner,
main,
[class*='shell'],
[class*='wrap'] {
  min-width: 0;
}
.card,
.panel,
.modal,
[class*='card'],
[class*='panel'] {
  min-width: 0;
}
.breakdown-table,
.payment-table,
.ns-user-table,
.orders-table-wrap table {
  max-width: none;
}
.table-responsive,
.table-wrap,
.orders-table-wrap,
.ns-user-table-wrap,
.ns-bill-table-wrap,
.ns-person-orders-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Do not let utility min-widths force normal cards/forms off-screen. */
@media (max-width: 900px) {
  .min-w-full:not(table) {
    min-width: 0 !important;
  }
  main:not(.invoice-sheet) {
    max-width: 100% !important;
  }
  /* An older global rule hid every <aside> below 900px. Only the dashboard
     navigation should disappear; product summaries/profile panels must stack. */
  body:not(.ns-dashboard-page) aside {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Public header / navigation -------------------------------------------- */
@media (max-width: 900px) {
  .site-header .header-inner {
    width: 100%;
    padding: 10px 14px !important;
    gap: 10px !important;
  }
  .site-header .brand_logo,
  .site-header .brand {
    min-width: 0 !important;
  }
  .site-header .brand_logo img {
    width: auto !important;
    max-width: 132px !important;
    max-height: 48px !important;
  }
  .nav {
    max-width: 100%;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .nav-list,
  .nav-list > li {
    max-width: 100%;
  }
  .nav-list a {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 520px) {
  .site-header .header-inner {
    padding: 9px 11px !important;
  }
  .site-header .brand_logo img {
    max-width: 116px !important;
  }
}

/* Main public pages ------------------------------------------------------ */
@media (max-width: 900px) {
  .section,
  .ns-product-main,
  .ns-travel-shell,
  .ns-motor-shell,
  .ns-order-wrap,
  .ns-calc-page,
  .profile-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--ns69-page-pad) !important;
    padding-right: var(--ns69-page-pad) !important;
  }
  .ns-wizard-panel,
  .ns-motor-panel,
  .ns-order-card,
  .premium-card,
  .profile-card,
  .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(14px, 3vw, 22px) !important;
    border-radius: clamp(16px, 3vw, 24px) !important;
  }
  .ns-form-grid,
  .ns-admin-grid,
  .ns-trip-grid,
  .ns-passport-manual-grid,
  .ns-feedback-grid,
  .contact_main {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ns-panel-actions,
  .ns-motor-actions,
  .ns-form-actions,
  .action-row,
  .button-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
  }
  .ns-panel-actions > *,
  .ns-motor-actions > *,
  .ns-form-actions > * {
    flex: 1 1 160px;
    min-height: 44px;
  }
  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea {
    width: 100%;
    min-height: var(--ns69-control-h);
  }
}
@media (max-width: 520px) {
  .section,
  .ns-product-main,
  .ns-travel-shell,
  .ns-motor-shell,
  .ns-order-wrap,
  .ns-calc-page,
  .profile-shell {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }
  .ns-panel-actions > *,
  .ns-motor-actions > *,
  .ns-form-actions > * {
    flex-basis: 100%;
  }
}

/* Product cards ---------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 701px) {
  #products .cards,
  .cards.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  #products .cards,
  .cards.product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #products .card {
    min-height: 0 !important;
    height: auto !important;
    padding: 20px !important;
  }
  #products .card img {
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 16px !important;
  }
  #products .card h3 {
    font-size: 22px !important;
  }
  #products .card .btn-link {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 14px !important;
  }
}

/* Smart date widgets ----------------------------------------------------- */
@media (max-width: 700px) {
  .ns-date-picker-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ns-date-picker-selects {
    display: grid !important;
    grid-template-columns: minmax(72px, 0.75fr) minmax(110px, 1fr) minmax(92px, 0.9fr) !important;
    gap: 8px !important;
  }
  .ns-date-picker-selects select {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 9px !important;
    padding-right: 8px !important;
  }
  .ns-date-picker-actions {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 370px) {
  .ns-date-picker-selects {
    grid-template-columns: 1fr 1fr !important;
  }
  .ns-date-picker-selects select:last-child {
    grid-column: 1/-1;
  }
}

/* Dashboard responsive navigation -------------------------------------- */
/* The old CSS hid the desktop sidebar at 900px while Tailwind hid the
   mobile menu from 768px upward, leaving 768–900px with no navigation.
   v69 uses one clean breakpoint: mobile/tablet nav below 901px. */
@media (max-width: 900px) {
  body.ns-dashboard-page {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.ns-dashboard-page .mobile-top.md\:hidden {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 56px;
  }
  body.ns-dashboard-page .desktop-side {
    display: none !important;
  }
  body.ns-dashboard-page #mobileMenu.md\:hidden:not(.hidden) {
    display: block !important;
  }
  body.ns-dashboard-page #mobileMenu > div {
    width: min(86vw, 320px) !important;
    max-width: 100%;
    height: 100dvh !important;
    padding: 18px !important;
  }
  body.ns-dashboard-page .ns-dashboard-frame {
    height: calc(100dvh - 56px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.ns-dashboard-page .main-shell {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px !important;
    gap: 10px !important;
  }
  body.ns-dashboard-page #dashboardHome,
  body.ns-dashboard-page #ordersView,
  body.ns-dashboard-page #billsView,
  body.ns-dashboard-page #peopleView,
  body.ns-dashboard-page #personOrdersView,
  body.ns-dashboard-page #systemReportsView,
  body.ns-dashboard-page #branchBillsView,
  body.ns-dashboard-page #claimsView {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.ns-dashboard-page .ns-dashboard-hero {
    padding: 18px !important;
    border-radius: 18px !important;
  }
  body.ns-dashboard-page .ns-dashboard-hero h1 {
    font-size: clamp(25px, 7vw, 34px) !important;
  }
  body.ns-dashboard-page .ns-dashboard-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  body.ns-dashboard-page .ns-dashboard-actions > * {
    width: 100% !important;
    justify-content: center !important;
  }
}
@media (min-width: 901px) {
  body.ns-dashboard-page .desktop-side {
    display: flex !important;
  }
  body.ns-dashboard-page .mobile-top {
    display: none !important;
  }
}
@media (max-width: 480px) {
  body.ns-dashboard-page .main-shell {
    padding: 7px !important;
    gap: 7px !important;
  }
  body.ns-dashboard-page .ns-dashboard-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Dashboard cards and analytics ---------------------------------------- */
@media (max-width: 900px) {
  .ns-last-month-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .ns-metric-card {
    min-height: 92px !important;
    padding: 14px !important;
    border-radius: 17px !important;
  }
  .ns-metric-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }
  .ns-standard-chart-grid {
    grid-template-columns: 1fr !important;
  }
  .ns-chart-summary-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .ns-analytics-heading {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .ns-analytics-controls {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .ns-standard-svg {
    min-width: 560px !important;
  }
}
@media (max-width: 430px) {
  .ns-chart-summary-row {
    grid-template-columns: 1fr !important;
  }
}

/* Partner Management: Agency / Agent / Branch Admin --------------------- */
#peopleView {
  scrollbar-gutter: stable both-edges;
}
@media (max-width: 900px) {
  #peopleView {
    padding: 0 2px 88px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #peopleView .ns-management-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px 4px 10px !important;
    background: #eef6fb !important;
  }
  #peopleView .ns-management-search-only {
    grid-column: 1/-1 !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
  }
  #peopleView .ns-management-search-only .ns-people-search {
    min-height: 48px !important;
    font-size: 14px !important;
    padding: 11px 13px 11px 42px !important;
  }
  #peopleView .ns-management-toolbar .ns-people-search-btn,
  #peopleView .ns-management-toolbar .ns-people-clear-btn {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
  }

  #peopleGrid.ns-people-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2px 2px 14px !important;
  }
  #peopleGrid .ns-agency-card.ns-agency-directory-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 14px 15px 18px !important;
    gap: 12px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }
  #peopleGrid .ns-directory-head {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 9px 10px !important;
    min-height: 0 !important;
  }
  #peopleGrid .ns-agency-identity {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }
  #peopleGrid .ns-agency-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
  }
  #peopleGrid .ns-agency-title h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 2px 0 3px !important;
    overflow-wrap: anywhere !important;
  }
  #peopleGrid .ns-agency-title p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }
  #peopleGrid .ns-agency-code {
    margin: 0 0 0 58px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
    max-width: calc(100% - 58px) !important;
    overflow-wrap: anywhere !important;
  }
  #peopleGrid .ns-agency-directory-meta {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }
  #peopleGrid .ns-agency-directory-meta span {
    padding: 8px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }
  #peopleGrid .ns-agency-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  #peopleGrid .ns-agency-stat {
    min-height: 62px !important;
    padding: 9px !important;
    border-radius: 11px !important;
  }
  #peopleGrid .ns-agency-stat span {
    font-size: 10px !important;
  }
  #peopleGrid .ns-agency-stat b {
    font-size: 14px !important;
  }
  #peopleGrid .ns-agency-open-btn {
    min-height: 46px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    margin-top: 0 !important;
  }
  .ns-people-pagination {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 24 !important;
    width: 100% !important;
    margin-top: 4px !important;
    padding: 9px 6px !important;
    justify-content: center !important;
    text-align: center !important;
    background: rgba(238, 246, 251, 0.97) !important;
    border-top: 1px solid #d7e5ed !important;
    backdrop-filter: blur(8px);
  }
  .ns-people-pagination > span {
    width: 100% !important;
    font-size: 11px !important;
  }
  .ns-people-pagination > div {
    justify-content: center !important;
    gap: 5px !important;
  }
  .ns-people-pagination button {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 9px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 390px) {
  #peopleGrid .ns-agency-directory-meta {
    grid-template-columns: 1fr !important;
  }
  #peopleGrid .ns-agency-code {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}

/* Partner account / billing view --------------------------------------- */
@media (max-width: 900px) {
  .ns-person-orders-header {
    padding: 14px !important;
    border-radius: 18px !important;
  }
  .ns-person-orders-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .ns-person-summary-grid,
  .ns-person-summary-grid-v54 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .ns-person-order-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .ns-person-order-actions > * {
    width: 100% !important;
    min-height: 44px !important;
    white-space: normal !important;
  }
  .ns-person-orders-table-wrap {
    overflow: auto !important;
    max-height: none !important;
  }
}
@media (max-width: 480px) {
  .ns-person-summary-grid,
  .ns-person-summary-grid-v54 {
    grid-template-columns: 1fr 1fr !important;
  }
  .ns-person-order-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Orders / bills / permission tables ----------------------------------- */
@media (max-width: 900px) {
  .orders-searchbar {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .orders-searchbar input,
  .orders-searchbar select,
  .orders-searchbar button {
    width: 100% !important;
    min-width: 0 !important;
  }
  .orders-pagination {
    position: sticky;
    bottom: 0;
    z-index: 10;
    gap: 5px !important;
    padding: 8px !important;
  }
  #billsView table,
  #branchBillsView table,
  .ns-user-table {
    min-width: 900px !important;
  }
  .ns-permission-shell,
  .ns-permission-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
  }
  .ns-create-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 520px) {
  .orders-searchbar {
    grid-template-columns: 1fr !important;
  }
}

/* Invoice / bill detail ------------------------------------------------- */
@media (max-width: 720px) {
  .invoice-sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 0 !important;
  }
  .invoice-sheet .section {
    padding: 12px !important;
  }
  .invoice-sheet .breakdown-table,
  .invoice-sheet .payment-table {
    min-width: 760px;
  }
  .invoice-sheet .order-breakdown,
  .invoice-sheet .bank-section {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Dialogs / overlays ---------------------------------------------------- */
@media (max-width: 640px) {
  .ns-dialog,
  .ns-feedback-modal,
  .ns-modal,
  .modal-content {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow: auto !important;
    border-radius: 18px !important;
    padding: 16px !important;
  }
  .ns-feedback-overlay,
  .modal-overlay {
    padding: 11px !important;
  }
}

/* Floating WhatsApp / AI / feedback controls: keep content readable. */
@media (max-width: 640px) {
  .ns-wa-float {
    right: 10px !important;
    bottom: 112px !important;
    width: 50px !important;
    height: 50px !important;
  }
  .ns-ai-assistant {
    right: 10px !important;
    bottom: 10px !important;
  }
  .ns-ai-fab {
    width: 50px !important;
    height: 50px !important;
    font-size: 16px !important;
    border-width: 3px !important;
  }
  .ns-ai-panel {
    right: 0 !important;
    bottom: 60px !important;
    width: calc(100vw - 20px) !important;
    max-width: 390px !important;
    height: min(70dvh, 560px) !important;
    max-height: 70dvh !important;
  }
  .ns-feedback-float {
    right: 10px !important;
    bottom: 170px !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
  }
  body {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* Small landscape phones: save vertical space. */
@media (max-height: 520px) and (max-width: 900px) {
  body.ns-dashboard-page .mobile-top.md\:hidden {
    min-height: 48px;
    padding: 8px 10px !important;
  }
  body.ns-dashboard-page .ns-dashboard-frame {
    height: calc(100dvh - 48px) !important;
  }
  body.ns-dashboard-page .main-shell {
    height: 100% !important;
  }
  #peopleView .ns-management-toolbar {
    position: static !important;
  }
  .ns-ai-panel {
    height: 78dvh !important;
    max-height: 78dvh !important;
  }
}

/* SECTION 05 — Smart Premium Theme */
/*
 * NextSure v128 — Smart Premium Corporate Theme
 * ------------------------------------------------------------
 * Visual-only refresh focused on clarity, modern navigation and
 * NextSure's real logo colours. Business logic is untouched.
 * Bill and Money Receipt pages intentionally do not load this file.
 */

:root {
  --ns128-purple: #230f6c;
  --ns128-purple-2: #3c238f;
  --ns128-purple-soft: #eeeafd;
  --ns128-green: #03c80b;
  --ns128-green-deep: #079746;
  --ns128-green-soft: #ebfaee;
  --ns128-ink: #17213a;
  --ns128-ink-2: #283957;
  --ns128-muted: #62718a;
  --ns128-line: #dce4ef;
  --ns128-surface: #ffffff;
  --ns128-surface-soft: #f7f9fc;
  --ns128-shadow: 0 18px 48px rgba(35, 15, 108, 0.1);
  --ns128-shadow-hover: 0 24px 56px rgba(35, 15, 108, 0.16);
  --ns128-radius: 22px;
}

html {
  background: #f4f7fb;
  scroll-behavior: smooth;
}

body:not(.ns-login-page) {
  background:
    radial-gradient(circle at 7% 0%, rgba(35, 15, 108, 0.06), transparent 26%),
    radial-gradient(circle at 94% 10%, rgba(3, 200, 11, 0.05), transparent 24%), #f4f7fb !important;
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page)::selection {
  background: rgba(3, 200, 11, 0.22);
  color: var(--ns128-purple);
}

/* ------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------ */
body:not(.ns-login-page) .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(35, 15, 108, 0.1) !important;
  box-shadow: 0 10px 34px rgba(21, 34, 58, 0.08) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

body:not(.ns-login-page) .site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ns128-purple),
    var(--ns128-purple-2) 58%,
    var(--ns128-green)
  );
  pointer-events: none;
}

body:not(.ns-login-page) .brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(35, 15, 108, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 15, 108, 0.08);
}

body:not(.ns-login-page) .brand img {
  object-fit: contain;
}

body:not(.ns-login-page) .nav-list > li > a {
  position: relative;
  color: var(--ns128-ink) !important;
  font-weight: 800 !important;
}

body:not(.ns-login-page) .nav-list > li > a:hover,
body:not(.ns-login-page) .nav-list > li > a:focus-visible {
  color: var(--ns128-purple) !important;
}

body:not(.ns-login-page) .nav-list > li > a::before {
  background: linear-gradient(90deg, var(--ns128-purple), var(--ns128-green)) !important;
}

body:not(.ns-login-page) .nav-list > li > a.cta {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(
    135deg,
    var(--ns128-purple),
    var(--ns128-purple-2)
  ) !important;
  box-shadow: 0 10px 26px rgba(35, 15, 108, 0.2) !important;
}

body:not(.ns-login-page) .submenu {
  background: rgba(255, 255, 255, 0.99) !important;
  border: 1px solid var(--ns128-line) !important;
  box-shadow: 0 20px 48px rgba(35, 15, 108, 0.14) !important;
}

body:not(.ns-login-page) .submenu a {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .submenu a:hover {
  color: var(--ns128-purple) !important;
  background: linear-gradient(
    90deg,
    var(--ns128-purple-soft),
    var(--ns128-green-soft)
  ) !important;
}

body:not(.ns-login-page) .nav-toggle {
  background: #fff !important;
  border: 1px solid var(--ns128-line) !important;
  box-shadow: 0 8px 18px rgba(35, 15, 108, 0.08);
}

body:not(.ns-login-page) .hamburger,
body:not(.ns-login-page) .hamburger::before,
body:not(.ns-login-page) .hamburger::after {
  background: var(--ns128-purple) !important;
}

/* ------------------------------------------------------------
   Hero areas / landing sections
   ------------------------------------------------------------ */
body:not(.ns-login-page) .page-hero,
body:not(.ns-login-page) .ns-product-hero,
body:not(.ns-login-page) .ns-motor-hero,
body:not(.ns-login-page) .ns-calc-hero,
body:not(.ns-login-page) .ns-order-hero,
body:not(.ns-login-page) .banner {
  color: #fff !important;
  background:
    radial-gradient(circle at 88% 16%, rgba(3, 200, 11, 0.22), transparent 30%),
    linear-gradient(125deg, #18094e 0%, var(--ns128-purple) 54%, #124831 140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 22px 54px rgba(35, 15, 108, 0.18) !important;
}

body:not(.ns-login-page) .page-hero h1,
body:not(.ns-login-page) .ns-product-hero h1,
body:not(.ns-login-page) .ns-motor-hero h1,
body:not(.ns-login-page) .ns-calc-hero h1,
body:not(.ns-login-page) .ns-order-hero h1,
body:not(.ns-login-page) .page-hero h2,
body:not(.ns-login-page) .ns-product-hero h2,
body:not(.ns-login-page) .ns-motor-hero h2,
body:not(.ns-login-page) .ns-calc-hero h2,
body:not(.ns-login-page) .ns-order-hero h2 {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
}

body:not(.ns-login-page) .page-hero p,
body:not(.ns-login-page) .ns-product-hero p,
body:not(.ns-login-page) .ns-motor-hero p,
body:not(.ns-login-page) .ns-calc-hero p,
body:not(.ns-login-page) .ns-order-hero p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body:not(.ns-login-page) .ns-product-kicker,
body:not(.ns-login-page) .ns-order-kicker,
body:not(.ns-login-page) .ns-motor-eyebrow,
body:not(.ns-login-page) .eyebrow,
body:not(.ns-login-page) .section-kicker {
  color: #8ff09a !important;
}

/* Homepage hero stays image-led, but controls remain readable. */
body:not(.ns-login-page) .hero {
  background: #11162c !important;
}

body:not(.ns-login-page) .ns-hero-news {
  color: var(--ns128-purple) !important;
  border-color: rgba(35, 15, 108, 0.22) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 36px rgba(35, 15, 108, 0.14) !important;
}

body:not(.ns-login-page) .ns-hero-news b {
  color: var(--ns128-green-deep) !important;
}

/* ------------------------------------------------------------
   Global content clarity
   ------------------------------------------------------------ */
body:not(.ns-login-page) main,
body:not(.ns-login-page) .section,
body:not(.ns-login-page) .partners-section,
body:not(.ns-login-page) .premium-wrap {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .section-title,
body:not(.ns-login-page) .lead,
body:not(.ns-login-page)
  main
  h1:not(.ns-product-hero h1):not(.ns-motor-hero h1):not(.ns-calc-hero h1),
body:not(.ns-login-page)
  main
  h2:not(.ns-product-hero h2):not(.ns-motor-hero h2):not(.ns-calc-hero h2),
body:not(.ns-login-page) main h3 {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .lead,
body:not(.ns-login-page) main p,
body:not(.ns-login-page) main small,
body:not(.ns-login-page) main li {
  color: var(--ns128-muted);
}

/* ------------------------------------------------------------
   Homepage product cards — lively but professional
   ------------------------------------------------------------ */
#products .cards {
  gap: 22px !important;
}

#products .card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  padding: 28px !important;
  color: var(--ns128-ink) !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
  border: 1px solid #dfe6f0 !important;
  border-radius: 24px !important;
  box-shadow: var(--ns128-shadow) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease !important;
}

#products .card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ns128-purple), var(--ns128-green));
}

#products .card::after {
  content: '';
  position: absolute;
  z-index: -2;
  width: 150px;
  height: 150px;
  right: -62px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 200, 11, 0.12), transparent 70%);
  transition: transform 0.3s ease;
}

#products .card:hover,
#products .card:focus-within {
  transform: translateY(-7px);
  border-color: rgba(35, 15, 108, 0.24) !important;
  box-shadow: var(--ns128-shadow-hover) !important;
}

#products .card:hover::after,
#products .card:focus-within::after {
  transform: scale(1.28);
}

#products .card .icon_logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    var(--ns128-purple-soft),
    var(--ns128-green-soft)
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(35, 15, 108, 0.06);
  transition: transform 0.22s ease;
}

#products .card:hover .icon_logo {
  transform: translateY(-3px) rotate(-2deg);
}

#products .card .icon_logo img {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}

#products .card h3 {
  color: var(--ns128-purple) !important;
  font-size: 1.35rem !important;
}

#products .card p,
#products .card li {
  color: #53627a !important;
  line-height: 1.65;
}

#products .card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 15px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--ns128-purple), var(--ns128-purple-2));
  box-shadow: 0 10px 24px rgba(35, 15, 108, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#products .card .btn-link:hover {
  transform: translateX(3px);
  box-shadow: 0 14px 30px rgba(35, 15, 108, 0.24);
}

/* ------------------------------------------------------------
   Cards / panels / partner boxes
   ------------------------------------------------------------ */
body:not(.ns-login-page) .premium-card,
body:not(.ns-login-page) .logo-card,
body:not(.ns-login-page) .stat-card,
body:not(.ns-login-page) .about-fact,
body:not(.ns-login-page) .contact-box,
body:not(.ns-login-page) .map-card,
body:not(.ns-login-page) .ns-product-hero-card,
body:not(.ns-login-page) .ns-product-panel,
body:not(.ns-login-page) .ns-product-list-panel,
body:not(.ns-login-page) .ns-process-card,
body:not(.ns-login-page) .ns-product-cta,
body:not(.ns-login-page) .ns-seo-faq,
body:not(.ns-login-page) .ns-motor-choice-card,
body:not(.ns-login-page) .ns-motor-info-card,
body:not(.ns-login-page) .ns-order-card,
body:not(.ns-login-page) .ns-wizard-panel,
body:not(.ns-login-page) .ns-motor-panel,
body:not(.ns-login-page) .soft-panel,
body:not(.ns-login-page) .partner {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border: 1px solid var(--ns128-line) !important;
  box-shadow: var(--ns128-shadow) !important;
}

body:not(.ns-login-page) .premium-card:hover,
body:not(.ns-login-page) .logo-card:hover,
body:not(.ns-login-page) .ns-process-card:hover,
body:not(.ns-login-page) .partner:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 15, 108, 0.22) !important;
  box-shadow: var(--ns128-shadow-hover) !important;
}

body:not(.ns-login-page) .premium-card h1,
body:not(.ns-login-page) .premium-card h2,
body:not(.ns-login-page) .premium-card h3,
body:not(.ns-login-page) .ns-product-panel h1,
body:not(.ns-login-page) .ns-product-panel h2,
body:not(.ns-login-page) .ns-product-panel h3,
body:not(.ns-login-page) .ns-order-card h1,
body:not(.ns-login-page) .ns-order-card h2,
body:not(.ns-login-page) .ns-order-card h3,
body:not(.ns-login-page) .ns-motor-panel h1,
body:not(.ns-login-page) .ns-motor-panel h2,
body:not(.ns-login-page) .ns-motor-panel h3 {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .premium-card p,
body:not(.ns-login-page) .ns-product-panel p,
body:not(.ns-login-page) .ns-order-card p,
body:not(.ns-login-page) .ns-motor-panel p,
body:not(.ns-login-page) .contact-box p,
body:not(.ns-login-page) .map-card p {
  color: var(--ns128-muted) !important;
}

/* ------------------------------------------------------------
   Forms: maximum text clarity
   ------------------------------------------------------------ */
body:not(.ns-login-page) label,
body:not(.ns-login-page) label > span,
body:not(.ns-login-page) .ns-field > span,
body:not(.ns-login-page) .field > span,
body:not(.ns-login-page) .ns-motor-field > span,
body:not(.ns-login-page) .ns-step-title h2,
body:not(.ns-login-page) .ns-motor-heading h2,
body:not(.ns-login-page) .ns-motor-section-label b {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) label small,
body:not(.ns-login-page) .ns-field small,
body:not(.ns-login-page) .ns-motor-field small,
body:not(.ns-login-page) .ns-motor-heading p,
body:not(.ns-login-page) .ns-step-title p,
body:not(.ns-login-page) .ns-motor-section-label small,
body:not(.ns-login-page) .ns-date-help {
  color: #66758b !important;
  opacity: 1 !important;
}

body:not(.ns-login-page) input:not([type='checkbox']):not([type='radio']),
body:not(.ns-login-page) select,
body:not(.ns-login-page) textarea {
  color: #111a2f !important;
  background: #fff !important;
  border-color: #cfd9e7 !important;
}

body:not(.ns-login-page) input::placeholder,
body:not(.ns-login-page) textarea::placeholder {
  color: #8895a8 !important;
  opacity: 1 !important;
}

body:not(.ns-login-page) input:focus,
body:not(.ns-login-page) select:focus,
body:not(.ns-login-page) textarea:focus {
  outline: none !important;
  border-color: var(--ns128-purple) !important;
  box-shadow: 0 0 0 4px rgba(35, 15, 108, 0.1) !important;
}

body:not(.ns-login-page) .ns-step-title > span,
body:not(.ns-login-page) .ns-motor-heading > span,
body:not(.ns-login-page) .ns-order-kicker {
  color: var(--ns128-green-deep) !important;
  font-weight: 900 !important;
}

/* Product/order page backgrounds */
body.ns-product-page,
body.ns-order-page,
body.ns-travel-page,
body.ns-motor-page {
  background: #f4f7fb !important;
}

body.ns-product-page .ns-product-panel,
body.ns-order-page .ns-order-card,
body.ns-order-page .ns-motor-panel,
body.ns-travel-page .ns-order-card,
body.ns-motor-page .ns-motor-panel {
  background: #fff !important;
}

/* ------------------------------------------------------------
   Motor coverage — one clear selection page
   ------------------------------------------------------------ */
.ns-motor-page .ns-coverage-card {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border: 2px solid #dbe3ef !important;
  box-shadow: 0 12px 30px rgba(35, 15, 108, 0.07) !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

.ns-motor-page .ns-coverage-card:hover,
.ns-motor-page .ns-coverage-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(35, 15, 108, 0.36) !important;
  box-shadow: 0 18px 36px rgba(35, 15, 108, 0.12) !important;
}

.ns-motor-page .ns-coverage-card.is-selected {
  border-color: var(--ns128-purple) !important;
  background: linear-gradient(145deg, #fff, #f3f0ff) !important;
  box-shadow: 0 18px 40px rgba(35, 15, 108, 0.15) !important;
}

.ns-motor-page .ns-coverage-card b,
.ns-motor-page .ns-coverage-card small,
.ns-motor-page .ns-coverage-card li,
.ns-motor-page .ns-coverage-card em {
  color: inherit !important;
}

.ns-motor-page .ns-coverage-card small,
.ns-motor-page .ns-coverage-card li {
  color: #5d6c83 !important;
}

.ns-motor-page .ns-coverage-card.is-selected em {
  color: var(--ns128-green-deep) !important;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
body:not(.ns-login-page) .btn,
body:not(.ns-login-page) .ns-primary-btn,
body:not(.ns-login-page) .ns-product-buy,
body:not(.ns-login-page) .ns-motor-primary,
body:not(.ns-login-page) .ns-action-primary,
body:not(.ns-login-page) button[type='submit']:not(.secondary):not(.btn-light) {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(
    135deg,
    var(--ns128-purple),
    var(--ns128-purple-2)
  ) !important;
  box-shadow: 0 10px 24px rgba(35, 15, 108, 0.19) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

body:not(.ns-login-page) .btn:hover,
body:not(.ns-login-page) .ns-primary-btn:hover,
body:not(.ns-login-page) .ns-product-buy:hover,
body:not(.ns-login-page) .ns-motor-primary:hover,
body:not(.ns-login-page) .ns-action-primary:hover,
body:not(.ns-login-page) button[type='submit']:not(.secondary):not(.btn-light):hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 15px 32px rgba(35, 15, 108, 0.24) !important;
}

body:not(.ns-login-page) .ns-secondary-btn,
body:not(.ns-login-page) .ns-motor-secondary,
body:not(.ns-login-page) .secondary,
body:not(.ns-login-page) .btn-light,
body:not(.ns-login-page) .ns-action-secondary {
  color: var(--ns128-purple) !important;
  background: #fff !important;
  border: 1px solid #ccd6e5 !important;
}

/* ------------------------------------------------------------
   Why choose / partners / footer
   ------------------------------------------------------------ */
.why-choose {
  color: var(--ns128-ink) !important;
  background: linear-gradient(135deg, #f0edff, #effcf1) !important;
}

.why-choose h2,
.why-choose li {
  color: var(--ns128-ink) !important;
}

.partners-section {
  background: #fff !important;
}

.contact-section {
  color: #fff !important;
  background: linear-gradient(135deg, #18094e, #230f6c 60%, #15462e) !important;
}

.contact-section h2,
.contact-section p,
.contact-section a,
.contact-section strong,
.contact-section li {
  color: #fff !important;
}

.ns-site-footer,
footer {
  color: rgba(255, 255, 255, 0.9) !important;
  background: #18094e !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ns-site-footer a,
footer a {
  color: #a6f2ad !important;
}

/* ------------------------------------------------------------
   AI assistant — profile-led, friendly technology feel
   ------------------------------------------------------------ */
.ns-ai-head {
  background: linear-gradient(135deg, #18094e, var(--ns128-purple), #17512f) !important;
}

.ns-ai-head-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ns-ai-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ns-ai-avatar img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.ns-ai-avatar::after,
.ns-ai-live-dot {
  content: '';
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ns128-green);
  border: 2px solid #fff;
}

.ns-ai-fab {
  overflow: hidden;
  background: #fff !important;
  border: 3px solid #fff !important;
  box-shadow: 0 18px 42px rgba(35, 15, 108, 0.28) !important;
}

.ns-ai-fab img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.ns-ai-panel {
  border-color: rgba(35, 15, 108, 0.14) !important;
  box-shadow: 0 28px 72px rgba(35, 15, 108, 0.22) !important;
}

.ns-ai-msg.bot {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border-color: #dde5f0 !important;
}

.ns-ai-msg.user {
  color: #fff !important;
  background: var(--ns128-purple) !important;
}

.ns-ai-quick button {
  color: var(--ns128-purple) !important;
  border-color: #d6dced !important;
  background: #fff !important;
}

.ns-ai-send {
  background: var(--ns128-purple) !important;
}

/* ------------------------------------------------------------
   Dashboard / Agent panel
   ------------------------------------------------------------ */
body.ns-dashboard-page {
  background: linear-gradient(180deg, #f7f9fc, #f1f5f9) !important;
  color: var(--ns128-ink) !important;
}

body.ns-dashboard-page .desktop-side {
  background:
    radial-gradient(circle at 10% 8%, rgba(3, 200, 11, 0.13), transparent 23%),
    linear-gradient(180deg, #18094e, #230f6c 66%, #171047) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 38px rgba(35, 15, 108, 0.16);
}

body.ns-dashboard-page .desktop-side .sidebar-btn {
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

body.ns-dashboard-page .desktop-side .sidebar-btn:hover {
  color: #fff !important;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1) !important;
}

body.ns-dashboard-page .desktop-side .sidebar-btn.active,
body.ns-dashboard-page .desktop-side .sidebar-btn[aria-current='page'] {
  color: #160946 !important;
  background: linear-gradient(135deg, #fff, #ecffef) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

body.ns-dashboard-page .main-shell {
  background: transparent !important;
}

body.ns-dashboard-page .dash-card,
body.ns-dashboard-page .sales-panel,
body.ns-dashboard-page .orders-tools-card,
body.ns-dashboard-page .ns-dashboard-period-panel,
body.ns-dashboard-page .ns-billing-center-head,
body.ns-dashboard-page .ns-v79-table-card,
body.ns-dashboard-page #personOrdersBox,
body.ns-dashboard-page .bg-white {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border-color: #dde5ef !important;
  box-shadow: 0 12px 30px rgba(35, 15, 108, 0.07) !important;
}

body.ns-dashboard-page .dash-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.ns-dashboard-page .dash-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ns128-purple), var(--ns128-green));
}

body.ns-dashboard-page .dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(35, 15, 108, 0.11) !important;
}

body.ns-dashboard-page .dash-card span,
body.ns-dashboard-page .dash-card small,
body.ns-dashboard-page .dash-card b,
body.ns-dashboard-page table,
body.ns-dashboard-page td,
body.ns-dashboard-page th,
body.ns-dashboard-page label,
body.ns-dashboard-page p {
  color: inherit;
}

body.ns-dashboard-page table thead,
body.ns-dashboard-page .orders-table-wrap thead {
  color: #25334d !important;
  background: #f2f4f9 !important;
}

body.ns-dashboard-page table tbody tr:hover {
  background: #f7f5ff !important;
}

body.ns-dashboard-page .order-type-btn.active,
body.ns-dashboard-page .role-tab.active,
body.ns-dashboard-page .sales-tab.active {
  color: #fff !important;
  background: var(--ns128-purple) !important;
}

/* ------------------------------------------------------------
   Smart navigation transition / click feedback
   ------------------------------------------------------------ */
body.ns-ui-ready main,
body.ns-ui-ready .main-shell,
body.ns-ui-ready .page-hero,
body.ns-ui-ready .hero {
  animation: ns128PageIn 0.28s ease both;
}

body.ns-page-leaving main,
body.ns-page-leaving .main-shell,
body.ns-page-leaving .page-hero,
body.ns-page-leaving .hero {
  opacity: 0.5;
  transform: translateY(3px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.ns128-ripple {
  position: absolute;
  pointer-events: none;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(35, 15, 108, 0.14);
  transform: scale(0);
  animation: ns128Ripple 0.5s ease-out forwards;
}

@keyframes ns128PageIn {
  from {
    opacity: 0.75;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ns128Ripple {
  to {
    transform: scale(18);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  #products .card {
    min-height: 0;
  }

  body:not(.ns-login-page) .nav-list {
    background: #fff !important;
    border: 1px solid var(--ns128-line) !important;
    box-shadow: 0 18px 44px rgba(35, 15, 108, 0.14) !important;
  }

  body:not(.ns-login-page) .nav-list > li > a {
    color: var(--ns128-ink) !important;
  }
}

@media (max-width: 640px) {
  #products .card {
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .ns-ai-avatar {
    width: 40px;
    height: 40px;
  }

  .ns-ai-avatar img {
    width: 34px;
    height: 34px;
  }
}

/* v131: predictable support-button stack and readable login navigation. */
.ns-wa-float {
  bottom: 236px !important;
  right: 18px !important;
  z-index: 9999 !important;
}
.ns-feedback-float {
  bottom: 170px !important;
  right: 18px !important;
}
.login-nav,
.login-nav .header-inner,
.login-nav .nav,
.login-nav .submenu {
  background: #fff !important;
  color: #102033 !important;
}
.login-nav a,
.login-nav .nav-link {
  color: #102033 !important;
}
@media (max-width: 640px) {
  .ns-wa-float {
    bottom: 226px !important;
    right: 14px !important;
  }
  .ns-feedback-float {
    bottom: 170px !important;
    right: 14px !important;
  }
}

/* Comfortable chat dimensions without overflowing mobile screens. */
.ns-ai-panel {
  width: min(94vw, 480px) !important;
  height: 620px !important;
  max-height: calc(100dvh - 110px) !important;
}
.ns-ai-msg {
  font-size: 15px !important;
  line-height: 1.65 !important;
}
@media (max-width: 640px) {
  .ns-ai-panel {
    width: calc(100vw - 24px) !important;
    height: 76dvh !important;
    max-height: calc(100dvh - 100px) !important;
  }
}

.ns-support-portrait {
  margin: 0 auto 20px;
  max-width: 280px;
  text-align: center;
}
.ns-support-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid #fff;
  box-shadow: 0 14px 36px rgba(15, 107, 115, 0.16);
}
.ns-support-portrait figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #087f8c;
}
@media (max-width: 640px) {
  .ns-support-portrait {
    max-width: 220px;
  }
}

.ns-human-support {
  max-width: 1120px;
  margin: 48px auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #f0fdfa;
  border: 1px solid #ccebe4;
  border-radius: 28px;
}
.ns-human-support img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
}
.ns-human-support h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  color: #102033;
  margin: 12px 0;
}
.ns-human-support p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 22px;
}
.ns-support-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #087f8c;
}
@media (max-width: 700px) {
  .ns-human-support {
    grid-template-columns: 1fr;
    margin: 28px 12px;
    padding: 20px;
    gap: 20px;
  }
  .ns-human-support img {
    height: 230px;
  }
}

/* SECTION 06 — Nextsure Readability Support */
/* Readability and support controls: no pricing rules. */
body:not(.ns-login-page) .ns-product-copy h1#productTitle {
  color: #132b42 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}
body:not(.ns-login-page) .ns-product-copy h1#productTitle span {
  color: #0d727a !important;
  -webkit-text-fill-color: initial !important;
}
body:not(.ns-login-page) .ns-product-copy p {
  color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body:not(.ns-login-page) .ns-product-copy .ns-product-kicker {
  color: #166534 !important;
  background: #e8f5ed !important;
  text-shadow: none !important;
}
#nsWaFloat {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  right: 20px !important;
  bottom: 118px !important;
  z-index: 2147483601 !important;
  background: #168a45 !important;
  color: white !important;
}
#nsAiFab {
  position: relative;
  overflow: visible !important;
  pointer-events: auto !important;
}
#nsAiFab img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
}
#nsAiFab .ns-ai-label {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%);
  background: #102033;
  color: #fff !important;
  padding: 9px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
#nsAiAssistant {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483602 !important;
}
#nsAiAssistant .ns-ai-msg.bot {
  background: #f1f5f9 !important;
  color: #172b42 !important;
}
#nsAiAssistant .ns-ai-input {
  background: white !important;
  color: #172b42 !important;
}
.ns-scan-preview {
  position: relative;
  overflow: hidden;
  max-width: 480px;
  height: 210px;
  background: #e2e8f0;
  margin: 12px auto;
  border-radius: 14px;
  border: 1px solid #94a3b8;
}
.ns-scan-preview img,
.ns-scan-preview object {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.38;
  pointer-events: none;
}
.ns-scan-preview b {
  position: absolute;
  bottom: 8px;
  left: 12px;
  background: #102033;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.ns-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #0d9488;
  box-shadow: 0 0 14px #14b8a6;
  animation: passport-line 2s ease-in-out infinite alternate;
}
@keyframes passport-line {
  from {
    top: 5%;
  }
  to {
    top: 90%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-scan-line {
    animation: none;
    top: 50%;
  }
}

/* Claims uses white hero cards; override the shared white hero text. */
body.ns-claims-page .ns-calc-hero > div {
  background: #fff !important;
  color: #132b42 !important;
}
body.ns-claims-page .ns-calc-hero h1,
body.ns-claims-page .ns-calc-hero .ns-source-note,
body.ns-claims-page .ns-calc-hero .ns-source-note > b,
body.ns-claims-page .ns-order-card h2 {
  color: #132b42 !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
body.ns-claims-page .ns-calc-hero p,
body.ns-claims-page .ns-order-card > p {
  color: #334155 !important;
  -webkit-text-fill-color: initial !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body.ns-claims-page .ns-calc-hero .ns-order-kicker {
  background: #e8f5ed !important;
  color: #166534 !important;
  -webkit-text-fill-color: initial !important;
}
body.ns-claims-page .ns-claim-btn {
  background: #0f6b73 !important;
  color: #fff !important;
  -webkit-text-fill-color: initial !important;
}
body.ns-claims-page .ns-claim-btn:hover,
body.ns-claims-page .ns-claim-btn:focus-visible {
  background: #08545b !important;
  color: #fff !important;
}

/* Keep product actions fully visible when descriptions wrap. */
#products .grid.cards {
  align-items: stretch !important;
}
#products .grid.cards > .card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
#products .grid.cards > .card > .btn-link {
  flex: 0 0 auto !important;
  min-height: 48px !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 2 !important;
  margin-top: auto !important;
}
#products .grid.cards > .card::before,
#products .grid.cards > .card::after {
  pointer-events: none !important;
}

#nsWaFloat {
  bottom: 210px !important;
}
.ns-ai-panel {
  width: min(460px, calc(100vw - 28px)) !important;
  height: min(650px, 75dvh) !important;
  max-height: calc(100dvh - 115px) !important;
}
.ns-ai-avatar img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}
.ns-login-page .site-header,
.ns-login-page .sticky-nav,
.ns-login-page .nav {
  background: #fff !important;
  color: #142c44 !important;
}
.ns-login-page .site-header a,
.ns-login-page .nav a {
  color: #142c44 !important;
  text-shadow: none !important;
}
body .ns-motor-hero .ns-product-actions,
body .ns-motor-hero .hero-actions {
  overflow: visible !important;
  flex-wrap: wrap;
}
body .ns-motor-hero,
body .ns-product-hero-card {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
@media (max-width: 640px) {
  #nsWaFloat {
    bottom: 200px !important;
  }
  .ns-ai-panel {
    width: calc(100vw - 28px) !important;
  }
  .ns-product-hero-card {
    grid-template-columns: 1fr !important;
  }
  .ns-product-copy {
    padding: 24px !important;
  }
}

body .card:has(a[href^='/motor-order']),
body .card:has(a[href^='/fire-order']),
body .card:has(a[href^='/marine-order']),
body .card:has(a[href^='/travel-order']) {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 26px !important;
  display: flex !important;
  flex-direction: column !important;
}
body .card .btn-link {
  margin-top: auto !important;
  display: inline-flex !important;
  flex-shrink: 0 !important;
  min-height: 44px !important;
  align-items: center !important;
  padding: 12px 18px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

body.ns-login-page .login-nav,
body.ns-login-page .login-nav .submenu,
body.ns-login-page .mobile-strip {
  background: #fff !important;
  color: #142c44 !important;
}
body.ns-login-page .login-nav a,
body.ns-login-page .mobile-strip a {
  color: #142c44 !important;
  text-shadow: none !important;
}

/* Date controls retain the complete value on narrow screens. */
input[type='date'],
input[type='datetime-local'] {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100%;
  min-height: 48px !important;
  height: auto !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #132b42 !important;
  background-color: #fff !important;
  opacity: 1 !important;
}
input[type='date']::-webkit-date-and-time-value {
  text-align: left;
  min-height: 24px;
}
input[type='date']::-webkit-datetime-edit {
  padding: 0;
  overflow: visible;
}
.ns-compact-dob {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  min-width: 0;
}
.ns-compact-dob select {
  min-height: 46px !important;
  min-width: 78px !important;
  flex: 1 1 78px;
  padding: 8px 24px 8px 10px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #132b42 !important;
  background-color: #fff !important;
}
.ns-locked-rate-dob {
  color: #132b42 !important;
  background: #eef4f8 !important;
  opacity: 1 !important;
  min-height: 46px;
}
.ns-passport-manual-grid small {
  display: block;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

/* Compact directory controls leave room for the full page of agency rows. */
#peopleView .ns-management-toolbar,
#peopleView .ns-management-search-toolbar {
  padding: 6px 8px !important;
  min-height: 0 !important;
  gap: 8px !important;
}
#peopleView .ns-management-search-only {
  padding: 3px 10px !important;
  border-radius: 12px !important;
  min-height: 0 !important;
}
#peopleView .ns-management-search-only .ns-people-search {
  height: 38px !important;
  min-height: 38px !important;
  padding: 7px 8px !important;
  font-size: 14px !important;
}
#peopleView .ns-management-search-icon {
  font-size: 20px !important;
}
#peopleView .ns-people-search-btn,
#peopleView .ns-people-clear-btn {
  height: 36px !important;
  min-height: 36px !important;
  width: auto !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}
#peopleView #peopleGrid {
  display: block !important;
  flex: 1 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}
#peopleView .ns-partner-list-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}
#peopleView .ns-partner-list-table th {
  padding: 8px 10px !important;
  font-size: 12px !important;
}
#peopleView .ns-partner-list-table td {
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  height: auto !important;
}
#peopleView .ns-partner-list-table .ns-partner-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}
#peopleView .ns-partner-list-table small {
  font-size: 11px !important;
  line-height: 1.2 !important;
}
#peopleView .ns-people-pagination {
  padding: 6px 8px !important;
  margin-top: 4px !important;
}
/* All visible date text fields, including modal date controls. */
.ns-date-picker-wrap .ns-date-text,
.swal2-popup .ns-date-picker-wrap .ns-date-text {
  width: 100% !important;
  min-width: 150px !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 9px 10px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  text-overflow: clip !important;
}
.ns-date-picker-wrap .ns-date-selects {
  display: none !important;
}
input[type='month'],
input[type='week'] {
  min-height: 44px !important;
  padding: 9px 10px !important;
  line-height: 24px !important;
  font-size: 16px !important;
}
.ns-bkash-custom {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 100px auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 14px;
  color: #132b42;
  font-size: 13px;
}
.ns-bkash-custom input {
  width: 100% !important;
  min-height: 40px;
  padding: 8px !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.ns-bkash-custom button {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f1f5f9;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ns-bkash-custom {
    grid-template-columns: 1fr 100px;
  }
  .ns-bkash-custom button {
    grid-column: 1/-1;
  }
  #peopleView .ns-management-search-only {
    width: 100% !important;
  }
  .ns-date-picker-wrap .ns-date-text {
    min-width: 0 !important;
  }
}

/* Keep transformed native date inputs hidden and out of document flow. */
input.ns-original-date-input[type='date'] {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
#swalAgentBranchSummary,
#v89AgentSummary {
  display: none !important;
}
