/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 pre.highlight,
.highlight pre {
  max-height: 30rem;
  margin: 1.5rem 0;
  overflow: auto;
  border-radius: var(--tblr-border-radius);
}

.highlight {
  margin: 0;
}
.highlight code > * {
  margin: 0 !important;
  padding: 0 !important;
}
.highlight .c, .highlight .c1 {
  color: #a0aec0;
}
.highlight .nt, .highlight .nc, .highlight .nx {
  color: #ff8383;
}
.highlight .na, .highlight .p {
  color: #ffe484;
}
.highlight .s, .highlight .dl, .highlight .s2 {
  color: #b5f4a5;
}
.highlight .k {
  color: #93ddfd;
}
.highlight .s1, .highlight .mi {
  color: #d9a9ff;
}

.dropdown-menu-demo {
  display: inline-block;
  width: 100%;
  position: relative;
  top: 0;
  margin-bottom: 1rem !important;
}

.demo-icon-preview {
  position: sticky;
  top: 0;
}
.demo-icon-preview svg,
.demo-icon-preview i {
  width: 15rem;
  height: 15rem;
  font-size: 15rem;
  stroke-width: 1.5;
  margin: 0 auto;
  display: block;
}

.demo-icon-preview-icon pre {
  margin: 0;
  user-select: all;
}

.demo-dividers > p {
  opacity: 0.2;
  user-select: none;
}

.demo-icons-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 -2px -1px 0;
  list-style: none;
}
.demo-icons-list > * {
  flex: 1 0 4rem;
}

.demo-icons-list-wrap {
  overflow: hidden;
}

.demo-icons-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  text-align: center;
  padding: 0.5rem;
  border-right: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  border-bottom: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  color: inherit;
  cursor: pointer;
}
.demo-icons-list-item .icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
}
.demo-icons-list-item:hover {
  text-decoration: none;
}
.swal2-title {
  line-height: 1.2;
}

/* =========================================================
   Toasts — Apple-style frosted glass. A highly translucent,
   heavily blurred light surface that lets the page show
   through, a hairline specular highlight along the top edge,
   and soft, low-opacity drop shadows for depth. Colour is kept
   to a whisper — a faint accent tint on the glass plus the
   semantic icon; the timer bar is neutral. Cosmetic only —
   SweetAlert2's compact toast geometry is left untouched.
   ========================================================= */
.swz-toast.swal2-toast {
  --swz-accent: var(--tblr-primary);
  --swz-accent-rgb: var(--tblr-primary-rgb);
  border-radius: 1.1rem;
  color: var(--tblr-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)),
    linear-gradient(rgba(var(--swz-accent-rgb), 0.08), rgba(var(--swz-accent-rgb), 0.08));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0px 0px rgb(17 24 39 / 68%), 0em 0em 0.6em rgb(17 24 39 / 51%)
}

.swz-toast.swz-toast-success { --swz-accent: var(--tblr-success); --swz-accent-rgb: var(--tblr-success-rgb); }
.swz-toast.swz-toast-error   { --swz-accent: var(--tblr-danger);  --swz-accent-rgb: var(--tblr-danger-rgb); }
.swz-toast.swz-toast-warning { --swz-accent: var(--tblr-warning); --swz-accent-rgb: var(--tblr-warning-rgb); }
.swz-toast.swz-toast-info    { --swz-accent: var(--tblr-info);    --swz-accent-rgb: var(--tblr-info-rgb); }

/* icon — the one place colour really lives; recolor the compact default */
.swz-toast .swz-toast-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--swz-accent);
}
.swz-toast .swz-toast-icon.swal2-success .swal2-success-ring {
  border-color: rgba(var(--swz-accent-rgb), 0.3);
}
.swz-toast .swz-toast-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: var(--swz-accent);
}
.swz-toast .swz-toast-icon.swal2-error,
.swz-toast .swz-toast-icon.swal2-warning,
.swz-toast .swz-toast-icon.swal2-info,
.swz-toast .swz-toast-icon.swal2-question {
  border-color: rgba(var(--swz-accent-rgb), 0.5);
  color: var(--swz-accent);
}

/* title */
.swz-toast .swz-toast-title.swal2-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tblr-dark);
}

/* close button */
.swz-toast .swz-toast-close.swal2-close {
  color: var(--tblr-secondary);
  box-shadow: none;
}
.swz-toast .swz-toast-close.swal2-close:hover,
.swz-toast .swz-toast-close.swal2-close:focus {
  color: var(--tblr-dark);
  outline: none;
}

/* timer progress bar — neutral & barely-there (no loud accent) */
.swz-toast .swz-toast-progress.swal2-timer-progress-bar {
  background: rgba(var(--tblr-dark-rgb), 0.12);
}
span[data-controller="confirmer"],
a[data-controller="confirmer"] {
  cursor: pointer;
}
.sidebar-icon {
  font-size: 1.3rem !important;
}
.tw-1 {
  width: 1%;
}

tr.unopened-order td {
  background-color: #ced4da !important;
  transition: background-color 0.3s ease !important;
}

.title-badge {
  float: left;
  margin-top: -22px;
  margin-left: 103px;
}

/* =========================================================
     Login — showcase (left) + sign-in (right)
     ========================================================= */

  /* ---- Brand showcase panel ---- */
  .login-hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(38rem 38rem at 8% 12%, rgba(var(--tblr-primary-rgb),0.22), transparent 55%),
      radial-gradient(42rem 42rem at 92% 18%, rgba(var(--tblr-azure-rgb), 0.20), transparent 55%),
      radial-gradient(40rem 40rem at 78% 96%, rgba(66, 99, 235, 0.12), transparent 55%),
      radial-gradient(34rem 34rem at 22% 92%, rgba(var(--tblr-primary-rgb),0.12), transparent 55%),
      linear-gradient(140deg, #ffffff 0%, #f2f6fc 55%, #e6eef8 100%);
  }
  /* faded dot-grid texture */
  .login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(31, 41, 55,0.06) 1px, transparent 1.6px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 45% 40%, #000 35%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 90% at 45% 40%, #000 35%, transparent 85%);
  }
  /* drifting glow orb */
  .login-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 28rem; height: 28rem;
    top: -7rem; right: -9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--tblr-primary-rgb),0.30), transparent 70%);
    filter: blur(28px);
  }
  /* centered, capped-width column so the hero sits balanced in its half */
  .login-hero-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: 32rem;
    align-self: center;
  }
  .login-hero-logo { height: 2.75rem; width: auto; }
  /* eyebrow chip now uses the shared `.swz-eyebrow` primitive */
  .login-hero-title { color: var(--tblr-dark); letter-spacing: -0.01em; }
  .login-hero-text { max-width: 30rem; }

  /* ---- Layered dashboard preview ---- */
  .login-stage { position: relative; width: 100%; }

  .login-glass {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
      0 1.75rem 3.5rem -1.25rem rgba(31, 41, 55,0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .login-preview-card {
    position: relative;
    z-index: 1;
    border-radius: 1.25rem;
    padding: 1.25rem 1.375rem 1.5rem;
  }
  .login-preview-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
  }
  .login-preview-head .title { font-weight: 700; color: var(--tblr-dark); line-height: 1.1; }
  .login-preview-head .sub { font-size: 0.75rem; color: var(--tblr-secondary); }
  .login-live {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.6875rem; font-weight: 600; color: var(--tblr-success);
    background: rgba(var(--tblr-success-rgb),0.14);
    padding: 0.25rem 0.55rem; border-radius: 999px;
  }
  .login-live .dot {
    width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--tblr-success);
  }
  .login-stats { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
  .login-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 41, 55,0.05);
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
  }
  .login-stat .label { font-size: 0.6875rem; color: var(--tblr-secondary); margin-bottom: 0.15rem; }
  .login-stat .value {
    font-size: 1.2rem; font-weight: 800; color: var(--tblr-dark); line-height: 1.05;
    letter-spacing: -0.01em;
  }
  .login-up {
    font-size: 0.6875rem; font-weight: 700; color: var(--tblr-success); margin-left: 0.3rem;
    white-space: nowrap;
  }
  .login-chart { display: block; width: 100%; height: 5.5rem; }
  .login-chart .line { stroke: var(--tblr-primary); filter: drop-shadow(0 5px 10px rgba(var(--tblr-primary-rgb),0.35)); }

  /* service status list (admin console) */
  .login-svc-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.15rem; }
  .login-svc { display: flex; align-items: center; justify-content: space-between; }
  .login-svc .name {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 600; color: var(--tblr-dark);
  }
  .login-svc .name .material-symbols-outlined { font-size: 18px; color: var(--tblr-secondary); }
  .login-svc .status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700; color: var(--tblr-success);
  }
  .login-svc .status .sdot {
    width: 0.45rem; height: 0.45rem; border-radius: 50%;
    background: var(--tblr-success); box-shadow: 0 0 0 3px rgba(var(--tblr-success-rgb),0.15);
  }

  .login-agents { display: flex; align-items: center; margin-top: 1rem; }
  .login-avatar {
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem; font-weight: 700; color: #fff;
    border: 2px solid #fff; margin-left: -0.5rem;
  }
  .login-avatar:first-child { margin-left: 0; }
  .login-agents .more { font-size: 0.75rem; color: var(--tblr-secondary); margin-left: 0.625rem; }

  /* floating notification pill (overhangs above the top-right) */
  .login-float {
    position: absolute;
    z-index: 2;
    top: -1.6rem; right: -0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-radius: 0.85rem;
    padding: 0.55rem 0.8rem;
  }
  .login-float .ic {
    width: 1.9rem; height: 1.9rem; border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--tblr-primary-rgb),0.16); color: var(--tblr-primary);
  }
  .login-float .ic .material-symbols-outlined { font-size: 18px; }
  .login-float .t1 { font-size: 0.75rem; font-weight: 700; color: var(--tblr-dark); line-height: 1.1; }
  .login-float .t2 { font-size: 0.6875rem; color: var(--tblr-secondary); }

  /* floating progress-ring chip (overhangs below the bottom-right) */
  .login-chip {
    position: absolute;
    z-index: 2;
    bottom: -1.3rem; right: -1.3rem;
    display: flex; align-items: center; gap: 0.6rem;
    border-radius: 0.85rem;
    padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  }
  .login-ring { width: 2.4rem; height: 2.4rem; display: block; }
  .login-ring .track { stroke: rgba(31, 41, 55,0.10); }
  .login-ring .prog { stroke: var(--tblr-primary); stroke-linecap: round; }
  .login-ring text { fill: var(--tblr-dark); font-weight: 800; font-size: 10px; }
  .login-chip .t1 { font-size: 0.75rem; font-weight: 700; color: var(--tblr-dark); line-height: 1.05; }
  .login-chip .t2 { font-size: 0.6875rem; color: var(--tblr-secondary); }

  /* trust line */
  .login-trust-row { display: flex; align-items: center; gap: 0.6rem; color: var(--tblr-secondary); }
  .login-trust-row .stars { color: var(--tblr-primary); letter-spacing: 0.05em; }

  /* ---- Sign-in panel ---- */
  .login-input-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--tblr-secondary);
  }

  /* =========================================================
     Motion — only when the user hasn't asked to reduce it
     ========================================================= */
  @media (prefers-reduced-motion: no-preference) {
    .login-preview-card { animation: loginIntroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .login-chart        { animation: loginReveal 1.1s ease-out 0.45s both; }
    .login-live .dot    { animation: loginPulse 2s ease-in-out infinite; }
    .login-float {
      animation: loginFade 0.6s ease-out 0.3s both, loginFloat 5s ease-in-out 0.9s infinite;
    }
    .login-chip {
      animation: loginFade 0.6s ease-out 0.45s both, loginFloat 6.5s ease-in-out 1.1s infinite;
    }
    .login-hero::after  { animation: loginDrift 16s ease-in-out infinite alternate; }
    .login-ring .prog   { animation: loginRing 1.3s ease-out 0.5s both; }
  }

  @keyframes loginIntroUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes loginFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes loginFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
  }
  @keyframes loginPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.45; }
  }
  @keyframes loginReveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes loginDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(2.5rem, 2rem); }
  }
  /* animates from an empty ring (full circumference, r=16 → ~100.53)
     to each ring's own inline stroke-dashoffset target */
  @keyframes loginRing {
    from { stroke-dashoffset: 100.53; }
  }

aside.swz-sidebar.navbar-vertical {
  --swz-nav-fg: rgba(255, 255, 255, 0.66);
  --swz-nav-fg-hover: #ffffff;
  --swz-nav-icon: rgba(255, 255, 255, 0.46);
  --swz-nav-accent: #8ec2ed;                 /* light azure — reads on dark */
  --swz-nav-hover-bg: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(var(--tblr-primary-rgb), 0.18);
  box-shadow: 1px 0 3rem -0.75rem rgba(0, 0, 0, 0.6);
  background:
    radial-gradient(20rem 15rem at 50% -2rem, rgba(var(--tblr-primary-rgb), 0.32), transparent 70%),
    radial-gradient(24rem 20rem at 118% 6%, rgba(var(--tblr-azure-rgb), 0.14), transparent 60%),
    linear-gradient(180deg, #1a2740 0%, #141d2f 42%, #0f1826 100%) !important;
}

/* slim, unobtrusive scrollbar (the sidebar is overflow-y: scroll) */
aside.swz-sidebar.navbar-vertical { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar { width: 0.5rem; }
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar-track { background: transparent; }
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
aside.swz-sidebar.navbar-vertical::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: content-box; }

/* ---- Brand / logo ---- */
.swz-sidebar .navbar-brand {
  margin: 0 0.9rem 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.swz-sidebar .navbar-brand img { max-height: 2.5rem; width: auto; }

/* ---- Menu list ---- */
.swz-sidebar .navbar-nav {
  gap: 0.15rem;
  padding: 0.4rem 0.6rem 0.7rem;
  width: 100%;
}

/* ---- Links (idle) ---- */
.swz-sidebar.navbar-vertical .navbar-nav .nav-link {
  position: relative;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--swz-nav-fg);
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.swz-sidebar .navbar-nav .nav-link .nav-link-icon,
.swz-sidebar .navbar-nav .nav-link .material-symbols-outlined {
  color: var(--swz-nav-icon);
  transition: color 0.16s ease;
}

/* ---- Links (hover) ---- */
.swz-sidebar.navbar-vertical .navbar-nav .nav-link:hover,
.swz-sidebar.navbar-vertical .navbar-nav .nav-link:focus-visible {
  color: var(--swz-nav-fg-hover);
  background-color: var(--swz-nav-hover-bg);
}
.swz-sidebar .navbar-nav .nav-link:hover .nav-link-icon,
.swz-sidebar .navbar-nav .nav-link:hover .material-symbols-outlined {
  color: var(--swz-nav-accent);
}

/* ---- Links (active / open) ---- */
.swz-sidebar .navbar-nav .nav-item.active:after,
.swz-sidebar .navbar-nav .nav-item.show:after { display: none !important; }

.swz-sidebar.navbar-vertical .navbar-nav .nav-item.active > .nav-link,
.swz-sidebar.navbar-vertical .navbar-nav .nav-item.show > .nav-link {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(var(--tblr-primary-rgb), 0.36), rgba(var(--tblr-azure-rgb), 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(var(--tblr-primary-rgb), 0.42),
    0 0.55rem 1.35rem -0.7rem rgba(var(--tblr-primary-rgb), 0.75);
}
.swz-sidebar .navbar-nav .nav-item.active > .nav-link .nav-link-icon,
.swz-sidebar .navbar-nav .nav-item.active > .nav-link .material-symbols-outlined,
.swz-sidebar .navbar-nav .nav-item.show > .nav-link .nav-link-icon,
.swz-sidebar .navbar-nav .nav-item.show > .nav-link .material-symbols-outlined {
  color: var(--swz-nav-accent);
}

/* ---- Dropdown caret (clean chevron, rotates on open) ---- */
.swz-sidebar .nav-link.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0.46rem;
  height: 0.46rem;
  margin-left: auto;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);   /* ˅ points down */
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.swz-sidebar .nav-item.dropdown.show .dropdown-toggle::after,
.swz-sidebar .nav-item.dropdown:has(.dropdown-menu.show) .dropdown-toggle::after {
  transform: translateY(0.05rem) rotate(225deg);   /* ˄ points up */
  opacity: 0.95;
}

/* ---- Dropdown submenu (accordion) ---- */
.swz-sidebar .nav-item.dropdown .dropdown-menu { position: relative; }
/* guide rail down the icon column */
.swz-sidebar .nav-item.dropdown .dropdown-menu.show::before {
  content: "";
  position: absolute;
  left: 1.65rem;
  top: 2.55rem;
  bottom: 0.45rem;
  width: 1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
}
.swz-sidebar .dropdown-menu .dropdown-item {
  position: relative;
  color: var(--swz-nav-fg) !important;
  border-radius: 0.55rem;
  margin: 0.08rem 0.2rem;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  font-weight: 500;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.swz-sidebar .dropdown-menu .dropdown-item:hover,
.swz-sidebar .dropdown-menu .dropdown-item:focus-visible {
  color: #fff !important;
  background-color: var(--swz-nav-hover-bg) !important;
}
.swz-sidebar .dropdown-menu .dropdown-item.active {
  color: #fff !important;
  background-color: rgba(var(--tblr-primary-rgb), 0.24) !important;
}
.swz-sidebar .dropdown-menu .dropdown-item.active::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--swz-nav-accent);
  box-shadow: 0 0 0.45rem rgba(var(--tblr-azure-rgb), 0.9);
}

/* ---- Logout — sits at the foot, warns on hover ---- */
.swz-sidebar .navbar-nav .swz-sidebar-logout { margin-top: auto; }
.swz-sidebar.navbar-vertical .navbar-nav .swz-sidebar-logout .nav-link:hover {
  color: #fff;
  background-color: rgba(var(--tblr-danger-rgb), 0.16);
}
.swz-sidebar .navbar-nav .swz-sidebar-logout .nav-link:hover .nav-link-icon,
.swz-sidebar .navbar-nav .swz-sidebar-logout .nav-link:hover .material-symbols-outlined {
  color: var(--tblr-danger);
}

/* =========================================================
     Top bar (header) + page header
     (frosted-glass strip that echoes the dashboard cards and
      the sidebar's soft gradients — sticky, subtle, cohesive)
     ========================================================= */
header.swz-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 3.75rem;
  border: 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.07);
  box-shadow: 0 0.6rem 1.6rem -1.1rem rgba(31, 41, 55, 0.35);
  background:
    radial-gradient(26rem 12rem at 100% -5rem, rgba(var(--tblr-azure-rgb), 0.12), transparent 62%),
    radial-gradient(26rem 12rem at 0% -6rem, rgba(var(--tblr-primary-rgb), 0.08), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

/* ---- User chip ---- */
.swz-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.7rem 0.32rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.swz-user:hover,
.swz-user[aria-expanded="true"] {
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0.65rem 1.5rem -0.9rem rgba(var(--tblr-primary-rgb), 0.6);
  transform: translateY(-1px);
}
.swz-user-avatar {
  flex: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.28);
}
.swz-user-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.15;
  min-width: 0;
}
.swz-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tblr-dark);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swz-user-email {
  font-size: 0.7rem;
  color: var(--tblr-secondary);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swz-user-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tblr-warning);
  background: rgba(var(--tblr-warning-rgb), 0.16);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
}
.swz-user-caret {
  font-size: 1.05rem;
  color: var(--tblr-secondary);
  transition: transform 0.18s ease, color 0.18s ease;
}
.swz-user[aria-expanded="true"] .swz-user-caret {
  transform: rotate(180deg);
  color: var(--tblr-primary);
}
/* impersonation reads as a gentle amber alert */
.swz-user--impersonating {
  border-color: rgba(var(--tblr-warning-rgb), 0.45);
  background: rgba(var(--tblr-warning-rgb), 0.1);
}
.swz-user--impersonating .swz-user-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(var(--tblr-warning-rgb), 0.4);
}

/* ---- User dropdown menu ---- */
.swz-user-menu {
  margin-top: 0.55rem;
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 1.5rem 3rem -1.1rem rgba(31, 41, 55, 0.35);
}
.swz-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  font-weight: 500;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.swz-user-menu .dropdown-item:hover,
.swz-user-menu .dropdown-item:focus-visible {
  background-color: rgba(var(--tblr-primary-rgb), 0.1);
  color: var(--tblr-primary);
}
.swz-user-menu .swz-menu-icon { font-size: 1.15rem; line-height: 1; }
.swz-user-menu .swz-menu-danger:hover,
.swz-user-menu .swz-menu-danger:focus-visible {
  background-color: rgba(var(--tblr-danger-rgb), 0.12);
  color: var(--tblr-danger);
}
.swz-user-menu .dropdown-divider { margin: 0.3rem 0.2rem; }

/* ---- Page header (title strip below the top bar) ---- */
.swz-page-header {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  background: transparent;
  border: 0;
}
.swz-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--tblr-dark);
  margin: 0;
}

/* =========================================================
     Footer — frosted strip that mirrors the top bar,
     closing the page in the same design language
     ========================================================= */
footer.swz-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.07);
  background:
    radial-gradient(24rem 9rem at 100% 130%, rgba(var(--tblr-azure-rgb), 0.10), transparent 62%),
    radial-gradient(24rem 9rem at 0% 130%, rgba(var(--tblr-primary-rgb), 0.07), transparent 62%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}

.swz-footer-copy {
  font-size: 0.8rem;
  color: var(--tblr-secondary);
}
.swz-footer-link {
  color: var(--tblr-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}
.swz-footer-link:hover { color: var(--tblr-primary); }
.swz-footer-sep { color: rgba(31, 41, 55, 0.28); margin: 0 0.2rem; }

.swz-footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--tblr-secondary);
}
.swz-footer-brand {
  font-weight: 700;
  color: var(--tblr-primary);
  background: linear-gradient(90deg, var(--tblr-primary), var(--tblr-azure));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.swz-footer-spark {
  flex: none;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tblr-primary), var(--tblr-azure));
  box-shadow: 0 0 0.5rem rgba(var(--tblr-primary-rgb), 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .swz-footer-spark { animation: loginPulse 2.4s ease-in-out infinite; }
}

/* =========================================================
     Modal — dashboard-style glass (forms, imports, reports)
     Mirrors the .dash-hero language: soft radial primary/azure
     tints, a faded dot-grid biased to the top, rounded corners
     and a gentle lift. Confirmer modals are excluded via
     :not(:has(.swz-confirm)) — they keep their own treatment.
     ========================================================= */
.modal-content:not(:has(.swz-confirm)) {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  box-shadow:
    0 1.5rem 3rem -1rem rgba(31, 41, 55, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* faded dot-grid texture, biased to the top-left (echoes .dash-hero) */
.modal-content:not(:has(.swz-confirm))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(31, 41, 55, 0.05) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 95% 60% at 18% 0%, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 60% at 18% 0%, #000 28%, transparent 78%);
  pointer-events: none;
}
.modal-content:not(:has(.swz-confirm)) > * { position: relative; z-index: 1; }

/* ---- Header ---- */
.modal-content:not(:has(.swz-confirm)) .modal-header {
  padding: 1.3rem 1.5rem 1.1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  background: transparent;
}
.modal-content:not(:has(.swz-confirm)) .modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--tblr-dark);
}
.modal-content:not(:has(.swz-confirm)) .modal-header .btn-close {
  opacity: 0.5;
  transition: opacity 0.16s ease;
}
.modal-content:not(:has(.swz-confirm)) .modal-header .btn-close:hover { opacity: 1; }

/* ---- Body ---- */
.modal-content:not(:has(.swz-confirm)) .modal-body {
  padding: 1.4rem 1.5rem;
}

/* ---- Footer ---- */
.modal-content:not(:has(.swz-confirm)) .modal-footer {
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.3rem;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  background: transparent;
}
/* shared geometry for every footer button */
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

/* solid-colour actions — accent gradient + glow (per-variant rgb) */
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-primary { --swz-btn-rgb: var(--tblr-primary-rgb); }
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-danger  { --swz-btn-rgb: var(--tblr-danger-rgb); }
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-success { --swz-btn-rgb: var(--tblr-success-rgb); }
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-primary,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-danger,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-success {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(var(--swz-btn-rgb), 1),
    rgba(var(--swz-btn-rgb), 0.82));
  box-shadow: 0 0.7rem 1.5rem -0.6rem rgba(var(--swz-btn-rgb), 0.85);
}
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-primary:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-danger:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-success:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.9rem -0.6rem rgba(var(--swz-btn-rgb), 0.95);
}

/* dismiss / neutral — a calm grey button, whatever colour class it carries
   (Cancel, Close, Abort — they all dismiss the modal) */
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn[data-bs-dismiss="modal"],
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-secondary,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-light {
  color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.06);
  box-shadow: none;
}
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn[data-bs-dismiss="modal"]:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-secondary:hover,
.modal-content:not(:has(.swz-confirm)) .modal-footer .btn-light:hover {
  color: var(--tblr-dark);
  background: rgba(31, 41, 55, 0.1);
}

/* ---- Gentle rise + scale entrance (all centred app modals) ---- */
@media (prefers-reduced-motion: no-preference) {
  .modal.fade .modal-dialog.modal-dialog-centered { transform: translateY(1.5rem) scale(0.98); }
  .modal.show .modal-dialog.modal-dialog-centered { transform: none; }
}

/* =========================================================
     Confirm modal (confirmer helper)
     Glass shell + gradient icon badge; the accent colour is
     driven per alert type via --swz-accent(-rgb) set inline
     on .swz-confirm, so danger/warning/etc. all theme cleanly.
     ========================================================= */
.modal-content:has(.swz-confirm) {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow:
    0 2rem 4rem -1.5rem rgba(31, 41, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.swz-confirm {
  position: relative;
  --swz-accent: var(--tblr-danger);
  --swz-accent-rgb: var(--tblr-danger-rgb);
}
/* soft accent glow behind the icon, tinted by the alert type */
.swz-confirm::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 18rem; height: 9rem;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(var(--swz-accent-rgb), 0.16), transparent 70%);
  pointer-events: none;
}
.swz-confirm > * { position: relative; }

.swz-confirm-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  z-index: 2;
  opacity: 0.55;
  transition: opacity 0.16s ease;
}
.swz-confirm-close:hover { opacity: 1; }

.swz-confirm .swz-confirm-body {
  padding: 2rem 1.75rem 1.25rem;
}
.swz-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 1.1rem;
  color: var(--swz-accent);
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb), 0.20),
    rgba(var(--swz-accent-rgb), 0.07));
  box-shadow:
    inset 0 0 0 1px rgba(var(--swz-accent-rgb), 0.20),
    0 0.65rem 1.5rem -0.6rem rgba(var(--swz-accent-rgb), 0.55);
}
.swz-confirm-icon svg { width: 1.7rem; height: 1.7rem; }
.swz-confirm-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tblr-dark);
  margin: 0 0 0.35rem;
}
.swz-confirm-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tblr-secondary);
  max-width: 22rem;
  margin: 0 auto;
}

.swz-confirm .swz-confirm-footer {
  gap: 0.6rem;
  padding: 0.5rem 1.75rem 1.5rem;
  border-top: 0;
}
.swz-confirm .swz-confirm-footer > * { margin: 0; }
.swz-confirm .swz-confirm-btn {
  flex: 1;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.swz-confirm .swz-confirm-btn:active { transform: translateY(1px); }
.swz-confirm .swz-confirm-btn--cancel {
  color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.06);
}
.swz-confirm .swz-confirm-btn--cancel:hover {
  color: var(--tblr-dark);
  background: rgba(31, 41, 55, 0.1);
}
.swz-confirm .swz-confirm-btn--accept {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb), 1),
    rgba(var(--swz-accent-rgb), 0.82));
  box-shadow: 0 0.7rem 1.5rem -0.6rem rgba(var(--swz-accent-rgb), 0.85);
}
.swz-confirm .swz-confirm-btn--accept:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.9rem -0.6rem rgba(var(--swz-accent-rgb), 0.95);
}

@media (prefers-reduced-motion: no-preference) {
  .modal-content:has(.swz-confirm) .swz-confirm-icon {
    animation: swzConfirmPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes swzConfirmPop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* =========================================================
     Partner dashboard — modern glass overview
     (shares the login design language: soft gradients,
      dot-grid texture, gradient icon tiles, gentle lift)
     ========================================================= */
.dash { width: 100%; }

/* ---- Welcome hero ---- */
.dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-radius: 1.25rem;
  padding: 1.6rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1.5rem 3rem -1.5rem rgba(31, 41, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(30rem 30rem at 6% 8%,  rgba(var(--tblr-primary-rgb), 0.20), transparent 55%),
    radial-gradient(34rem 34rem at 98% 18%, rgba(var(--tblr-azure-rgb),   0.18), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #eaf1fa 100%);
}
/* faded dot-grid texture, top-left biased */
.dash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(31, 41, 55, 0.05) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 85% 120% at 18% 0%, #000 30%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 120% at 18% 0%, #000 30%, transparent 82%);
}
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero-inner { min-width: 0; }
.dash-hero .swz-eyebrow { margin-bottom: 0.65rem; }
.dash-hero-title {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.15;
  color: var(--tblr-dark);
  margin: 0 0 0.3rem;
}
.dash-hero-text { color: var(--tblr-secondary); max-width: 36rem; }
.dash-hero-aside { text-align: right; }
.dash-live {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.6875rem; font-weight: 700; color: var(--tblr-success);
  background: rgba(var(--tblr-success-rgb), 0.14);
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.dash-live:hover { background: rgba(var(--tblr-success-rgb), 0.22); }
.dash-live:active { transform: scale(0.96); }
.dash-live:disabled { cursor: default; opacity: 0.75; }
.dash-live .dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--tblr-success);
}
.dash-live-icon { font-size: 0.85rem; line-height: 1; }
.dash-live.is-refreshing .dash-live-icon {
  animation: dashSpin 0.7s linear infinite;
}
@keyframes dashSpin { to { transform: rotate(360deg); } }
.dash-date { margin-top: 0.55rem; font-size: 0.8rem; font-weight: 600; color: var(--tblr-secondary); }

/* KPI cards now use the shared `.swz-kpi` + `.swz-accent-*` primitives. */

/* ---- Trend panels ---- */
.dash-panel {
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(31, 41, 55, 0.22);
}
.dash-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.4rem 0.5rem;
}
.dash-panel-title { font-size: 1.02rem; font-weight: 700; color: var(--tblr-dark); line-height: 1.1; }
.dash-panel-sub { font-size: 0.75rem; color: var(--tblr-secondary); margin-top: 0.15rem; }
.dash-panel-body { padding: 0.75rem 1.1rem 1.25rem; }

/* ---- entrance motion — reuses login keyframes ---- */
@media (prefers-reduced-motion: no-preference) {
  .dash-hero  { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .dash-panel { animation: loginIntroUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
  .dash .row:nth-of-type(1) .col-md-4:nth-child(1) .swz-kpi { animation-delay: 0.05s; }
  .dash .row:nth-of-type(1) .col-md-4:nth-child(2) .swz-kpi { animation-delay: 0.12s; }
  .dash .row:nth-of-type(1) .col-md-4:nth-child(3) .swz-kpi { animation-delay: 0.19s; }
}

/* =========================================================
     Glass cards (app-wide) — every Tabler .card in the
     authenticated shell adopts the report-panel look:
     rounded, hairline border, soft offset-down shadow,
     clean white surface, airy (grey-free) header/footer.

     Driven through Tabler's own card CSS variables, so
     card-header / card-footer / card-img / inner radii all
     follow automatically (no overflow:hidden that would clip
     dropdowns). Scoped to .page-wrapper — the bespoke
     login/OTP screens live outside it and keep their design.
     Specificity `.page-wrapper .card` (0,2,0) beats Tabler's
     bare `.card`, which loads AFTER application.css.
     ========================================================= */
.page-wrapper .card {
  --tblr-card-border-radius: 1.25rem;
  --tblr-card-inner-border-radius: calc(1.25rem - var(--tblr-card-border-width));
  --tblr-card-border-color: rgba(31, 41, 55, 0.06);
  --tblr-card-box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(31, 41, 55, 0.22);
  --tblr-card-cap-bg: transparent;
  --tblr-card-bg: #fff;
}
/* compact cards get a slightly tighter radius */
.page-wrapper .card.card-sm {
  --tblr-card-border-radius: 1rem;
  --tblr-card-inner-border-radius: calc(1rem - var(--tblr-card-border-width));
}
/* a lone card inside a modal shouldn't carry a page-level drop shadow
   (nested .card .card is already flattened by Tabler) */
.page-wrapper .modal .card { --tblr-card-box-shadow: none; }

/* =========================================================
     Global chrome — the report re-skins folded onto the
     base Tabler classes so the whole authenticated app
     inherits them. Each selector out-specifies Tabler
     (which loads after application.css). Dropdowns/tables/
     lists are scoped to .page-wrapper (content only, leaving
     the header/sidebar menus alone); modals use `.modal .x`
     so they're caught wherever they mount in the DOM.
     ========================================================= */

/* ---- Frosted dropdown menus (content area) ---- */
.page-wrapper .dropdown-menu {
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(31, 41, 55, 0.35);
}
.page-wrapper .dropdown-menu .dropdown-item {
  display: flex; align-items: center;
  border-radius: 0.7rem;
  padding: 0.5rem 0.8rem;
  font-weight: 500;
  color: var(--tblr-dark);
}
.page-wrapper .dropdown-menu .dropdown-item:hover,
.page-wrapper .dropdown-menu .dropdown-item:focus-visible {
  background: rgba(var(--tblr-primary-rgb), 0.1);
  color: var(--tblr-primary);
}
.page-wrapper .dropdown-menu .dropdown-item.active {
  color: var(--tblr-primary);
  font-weight: 700;
  background: rgba(var(--tblr-primary-rgb), 0.14);
}
.page-wrapper .dropdown-menu .dropdown-item.active::after {
  content: "check";
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  letter-spacing: normal; text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  margin-left: auto; padding-left: 0.75rem;
  font-size: 1.05rem; line-height: 1;
}
.page-wrapper .dropdown-menu .dropdown-divider {
  margin: 0.3rem 0.2rem;
  border-color: rgba(31, 41, 55, 0.08);
}

/* ---- Glass modals (app-wide) ---- */
.modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafd 100%);
  box-shadow:
    0 2rem 4rem -1.5rem rgba(31, 41, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.modal .modal-header { border-bottom: 1px solid rgba(31, 41, 55, 0.06); }
.modal .modal-title {
  font-weight: 800; letter-spacing: -0.01em; color: var(--tblr-dark);
}
.modal .modal-footer { border-top: 1px solid rgba(31, 41, 55, 0.06); }
.modal .modal-body .form-control,
.modal .modal-body .form-select { border-radius: 0.7rem; }

/* ---- Table polish (content area) ---- */
.page-wrapper .table { --tblr-table-bg: transparent; }
.page-wrapper .table thead th {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tblr-secondary);
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}
.page-wrapper .table tbody td { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.page-wrapper .table tbody tr:hover td { background: rgba(var(--tblr-primary-rgb), 0.05); }

/* ---- List-group rows (content area) ---- */
.page-wrapper .list-group-item {
  border: 0;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
  color: var(--tblr-dark);
  background: transparent;
}
.page-wrapper .list-group-item:first-child { border-top: 0; }
.page-wrapper .list-group-item.bg-light {
  background: rgba(31, 41, 55, 0.035) !important;
  font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tblr-secondary);
}
.page-wrapper .list-group-item.bg-light .fw-bold { font-weight: 700; color: var(--tblr-secondary); }
.page-wrapper .list-group-flush .list-group-item:not(.bg-light):hover {
  background: rgba(var(--tblr-primary-rgb), 0.05);
}

/* ---- Buttons (app-wide) ----
   Rounded corners, weight 600 and a subtle hover-lift on every button;
   the filled accent/semantic variants also get a gradient fill + soft
   colored glow (the login / confirm-modal treatment). Driven through
   Tabler's own --tblr-btn-* variables. Anchored on `body` (specificity
   0,1,1) so it beats Tabler's bare `.btn` — which loads after this file —
   everywhere, including login and modals (mounted outside .page-wrapper).
   Per-variant text colour is left untouched so contrast is preserved. */
body .btn {
  --tblr-btn-border-radius: 0.8rem;
  --tblr-btn-font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body .btn-sm { --tblr-btn-border-radius: 0.55rem; }
body .btn.btn-pill { --tblr-btn-border-radius: 100rem; } /* keep pills round */
body .btn:hover { transform: translateY(-1px); }
body .btn:active { transform: translateY(0); }

/* filled accent / semantic variants → gradient + glow (alpha gradient, so
   the button background is made transparent to let it read on light surfaces) */
body .btn-primary { --swz-btn-rgb: var(--tblr-primary-rgb); }
body .btn-success { --swz-btn-rgb: var(--tblr-success-rgb); }
body .btn-danger  { --swz-btn-rgb: var(--tblr-danger-rgb); }
body .btn-warning { --swz-btn-rgb: var(--tblr-warning-rgb); }
body .btn-info    { --swz-btn-rgb: var(--tblr-info-rgb); }
body .btn-primary,
body .btn-success,
body .btn-danger,
body .btn-warning,
body .btn-info {
  --tblr-btn-bg: transparent;
  --tblr-btn-hover-bg: transparent;
  --tblr-btn-active-bg: transparent;
  border-color: transparent;
  background-image: linear-gradient(135deg,
    rgba(var(--swz-btn-rgb), 1),
    rgba(var(--swz-btn-rgb), 0.82));
  --tblr-btn-box-shadow: 0 0.5rem 1.15rem -0.55rem rgba(var(--swz-btn-rgb), 0.6);
}
body .btn-primary:hover,
body .btn-success:hover,
body .btn-danger:hover,
body .btn-warning:hover,
body .btn-info:hover {
  --tblr-btn-box-shadow: 0 0.8rem 1.7rem -0.5rem rgba(var(--swz-btn-rgb), 0.78);
}

@media (prefers-reduced-motion: reduce) {
  body .btn { transition: none; }
  body .btn:hover { transform: none; }
}

/* =========================================================
     Shared "swz" primitives — one implementation each,
     consumed by the dashboard, reports and login (replaces
     the old per-feature dash-, rpt- and login- duplicates).
     Components theme via --swz-accent / --swz-accent-rgb.
     ========================================================= */

/* ---- Eyebrow chip (accent-aware; defaults to primary) ---- */
.swz-eyebrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--swz-accent, var(--tblr-primary));
  background: rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.swz-eyebrow .material-symbols-outlined { font-size: 0.95rem; line-height: 1; }

/* ---- Accent modifiers (set the accent variable for children) ---- */
.swz-accent-primary { --swz-accent: var(--tblr-primary); --swz-accent-rgb: var(--tblr-primary-rgb); }
.swz-accent-azure   { --swz-accent: var(--tblr-azure);   --swz-accent-rgb: var(--tblr-azure-rgb); }
.swz-accent-success { --swz-accent: var(--tblr-success); --swz-accent-rgb: var(--tblr-success-rgb); }
.swz-accent-warning { --swz-accent: var(--tblr-warning); --swz-accent-rgb: var(--tblr-warning-rgb); }
.swz-accent-danger  { --swz-accent: var(--tblr-danger);  --swz-accent-rgb: var(--tblr-danger-rgb); }
.swz-accent-purple  { --swz-accent: var(--tblr-purple);  --swz-accent-rgb: var(--tblr-purple-rgb); }
.swz-accent-pink    { --swz-accent: var(--tblr-pink);    --swz-accent-rgb: var(--tblr-pink-rgb); }
.swz-accent-teal    { --swz-accent: var(--tblr-teal);    --swz-accent-rgb: var(--tblr-teal-rgb); }

/* ---- Muted pill / chip ---- */
.swz-pill {
  flex: none;
  font-size: 0.7rem; font-weight: 600; color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.05);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* ---- Frosted filter select — a native <select> dressed as the report
        filter pill (frosted, rounded, chevron). Wrap it in `.swz-filter`
        to add a leading Material Symbols icon. Reusable on any filter. ---- */
.page-wrapper .filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.swz-filter { position: relative; display: inline-flex; vertical-align: middle; }
.swz-filter > .material-symbols-outlined {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  font-size: 1.15rem; line-height: 1;
  color: var(--tblr-primary);
  pointer-events: none; z-index: 2;
}
.swz-filter .swz-select.form-select { padding-left: 2.4rem; }

.swz-select.form-select {
  width: auto !important; /* beat gem's inline width on the duration field */
  min-width: 9.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--tblr-dark);
  background-color: rgba(255, 255, 255, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.35);
  padding: 0.5rem 2.4rem 0.5rem 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.swz-select.form-select:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  box-shadow: 0 0.9rem 1.8rem -1rem rgba(var(--tblr-primary-rgb), 0.55);
}
.swz-select.form-select:focus {
  border-color: rgba(var(--tblr-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
  background-color: rgba(255, 255, 255, 0.9);
}

/* ---- Custom duration date inputs (the `start_date`/`end_date` fields the
        filter controller injects when a `duration` select is set to "Custom").
        Dress the native date inputs as the same frosted pill as `.swz-select`. */
.filter-form .customDurationField.form-control {
  width: auto;
  font-size: 0.85rem; font-weight: 600;
  color: var(--tblr-dark);
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.35);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.filter-form .customDurationField.form-control::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.55;
}
.filter-form .customDurationField.form-control:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  box-shadow: 0 0.9rem 1.8rem -1rem rgba(var(--tblr-primary-rgb), 0.55);
}
.filter-form .customDurationField.form-control:focus {
  border-color: rgba(var(--tblr-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
  background-color: rgba(255, 255, 255, 0.9);
}

/* ==== Active filters bar (orders index) ==================================
   A frosted strip under the card header that shows, as removable pills, the
   filters currently applied to the datatable. Populated by the
   `partner--orders` Stimulus controller from the stored filter set. */
.swz-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
}
/* Hidden until the controller fills it, so there's no empty band on load. */
.swz-active-filters:empty { display: none; }

.swz-fchip-lead {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-right: 0.15rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
}
.swz-fchip-lead .material-symbols-outlined { font-size: 1rem; color: var(--tblr-primary); }

.swz-fchip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.45rem 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.2rem -0.9rem rgba(31, 41, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.swz-fchip:not(.swz-fchip--static):hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.3);
  box-shadow: 0 0.7rem 1.4rem -0.9rem rgba(var(--tblr-primary-rgb), 0.6);
}
/* The always-on date-range chip is tinted with the accent to set it apart. */
.swz-fchip--static {
  padding-right: 0.85rem;
  background: linear-gradient(135deg, rgba(var(--tblr-primary-rgb), 0.14), rgba(var(--tblr-primary-rgb), 0.06));
  border-color: rgba(var(--tblr-primary-rgb), 0.22);
}

.swz-fchip-icon { font-size: 1.05rem; color: var(--tblr-primary); }
.swz-fchip-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.swz-fchip-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tblr-secondary);
}
.swz-fchip-value { font-size: 0.82rem; font-weight: 600; color: var(--tblr-dark); }

.swz-fchip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; padding: 0; border: 0;
  border-radius: 999px; cursor: pointer;
  color: var(--tblr-secondary);
  background: rgba(31, 41, 55, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}
.swz-fchip-x .material-symbols-outlined { font-size: 1rem; }
.swz-fchip-x:hover { background: rgba(var(--tblr-danger-rgb), 0.14); color: var(--tblr-danger); }

.swz-fchip-clear {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-left: 0.15rem; padding: 0.4rem 0.75rem;
  border: 0; background: transparent; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; color: var(--tblr-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.swz-fchip-clear .material-symbols-outlined { font-size: 1.05rem; }
.swz-fchip-clear:hover { background: rgba(var(--tblr-danger-rgb), 0.12); color: var(--tblr-danger); }

/* ---- KPI tile (dashboard + reports) ---- */
.swz-kpi {
  --swz-accent: var(--tblr-primary);
  --swz-accent-rgb: var(--tblr-primary-rgb);
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 1.25rem;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(31, 41, 55, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.swz-kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(var(--swz-accent-rgb), 0.9),
    rgba(var(--swz-accent-rgb), 0.25));
}
.swz-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.75rem 3rem -1.25rem rgba(var(--swz-accent-rgb), 0.4);
}
.swz-kpi-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.swz-kpi-icon {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--swz-accent);
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb), 0.18),
    rgba(var(--swz-accent-rgb), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--swz-accent-rgb), 0.15);
}
.swz-kpi-icon .material-symbols-outlined { font-size: 22px; }
.swz-kpi-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--tblr-secondary);
  line-height: 1.2;
}
.swz-kpi-value {
  font-size: 1.85rem; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--tblr-dark);
  margin-bottom: 0.3rem;
}
.swz-kpi-sub { font-size: 0.8rem; color: var(--tblr-secondary); }
.swz-kpi-sub span { font-weight: 700; color: var(--tblr-dark); }

/* ---- Full-height empty / error state (403, 404, no-data). Themeable via
        a `.swz-accent-*` modifier on the container (default primary). ---- */
.swz-state {
  width: 100%;
  min-height: 55vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.swz-state-icon {
  width: 4.5rem; height: 4.5rem;
  border-radius: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--swz-accent, var(--tblr-primary));
  background: linear-gradient(135deg,
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.18),
    rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--swz-accent-rgb, var(--tblr-primary-rgb)), 0.15);
}
.swz-state-icon .material-symbols-outlined { font-size: 2.2rem; line-height: 1; }
.swz-state .swz-eyebrow { margin-bottom: 0.85rem; }
.swz-state-title {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--tblr-dark);
  margin: 0 0 0.5rem;
}
.swz-state-text { color: var(--tblr-secondary); max-width: 26rem; margin: 0 auto 1.5rem; }
.swz-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .swz-state { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

/* =========================================================
     Partner reports — the report-specific layout that has
     no base-class equivalent (page toolbar, filter pill,
     ranked list). Panels/lists/tables now use plain cards.
     ========================================================= */
.rpt { width: 100%; }
.rpt .card + .card { margin-top: 1rem; }

/* ---- Toolbar (eyebrow + description on the left, filter on the right) ---- */
.rpt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  /* The entrance animation makes this a stacking context; lift it above the
     sibling cards (position:relative, z-index:auto) so the open filter menu,
     which is trapped inside this context, paints over them. */
  position: relative;
  z-index: 20;
}
.rpt-toolbar-info { min-width: 0; }
.rpt-toolbar-sub {
  margin: 0.55rem 0 0;
  font-size: 0.9rem; color: var(--tblr-secondary);
}

/* ---- Filter pill (frosted dropdown trigger; the menu itself
        uses the global .dropdown-menu chrome above) ---- */
.rpt-filter { flex: none; }
.rpt-filter-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: var(--tblr-dark);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.55rem 0.5rem 0.95rem;
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.rpt-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  box-shadow: 0 0.9rem 1.8rem -1rem rgba(var(--tblr-primary-rgb), 0.55);
}
.rpt-filter-btn[aria-expanded="true"] {
  border-color: rgba(var(--tblr-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
}
.rpt-filter-icon { font-size: 1.15rem; line-height: 1; color: var(--tblr-primary); }
.rpt-filter-label { white-space: nowrap; }
.rpt-filter-caret {
  font-size: 1.2rem; line-height: 1;
  color: var(--tblr-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.05);
  transition: transform 0.2s ease;
}
.rpt-filter-btn[aria-expanded="true"] .rpt-filter-caret { transform: rotate(180deg); }

/* ---- Ranked list (top products) ---- */
.rpt-ranklist.list-group { gap: 0.5rem; padding: 0.35rem 0; }
.rpt-ranklist .list-group-item {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: 0.85rem;
  padding: 0.7rem 0.9rem;
  color: var(--tblr-dark); font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rpt-ranklist .list-group-item:hover {
  transform: translateX(2px);
  box-shadow: 0 0.6rem 1.4rem -1rem rgba(31, 41, 55, 0.4);
}
.rpt-ranklist .list-group-item .badge {
  flex: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  color: #fff;
}

/* ---- entrance motion — reuses login keyframes ---- */
@media (prefers-reduced-motion: no-preference) {
  .swz-kpi     { animation: loginIntroUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rpt-toolbar { animation: loginIntroUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rpt .card   { animation: loginIntroUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
  .swz-kpi-grid > *:nth-child(1) .swz-kpi { animation-delay: 0.04s; }
  .swz-kpi-grid > *:nth-child(2) .swz-kpi { animation-delay: 0.09s; }
  .swz-kpi-grid > *:nth-child(3) .swz-kpi { animation-delay: 0.14s; }
  .swz-kpi-grid > *:nth-child(4) .swz-kpi { animation-delay: 0.19s; }
  .swz-kpi-grid > *:nth-child(5) .swz-kpi { animation-delay: 0.24s; }
  .swz-kpi-grid > *:nth-child(6) .swz-kpi { animation-delay: 0.29s; }
  .swz-kpi-grid > *:nth-child(7) .swz-kpi { animation-delay: 0.34s; }
}
