:root {
  --up-bg: #f5f7fb;
  --up-sidebar: #ffffff;
  --up-border: rgba(15, 23, 42, 0.08);
  --up-accent: #2563eb;
  --up-accent-soft: rgba(37, 99, 235, 0.12);
  --up-card: #ffffff;
  --up-card-border: rgba(15, 23, 42, 0.08);
  --up-text: #1f2937;
  --up-text-soft: rgba(31, 41, 55, 0.75);
  --up-muted: rgba(107, 114, 128, 0.7);
  --up-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --up-radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: var(--up-text);
  position: relative;
  z-index: 0;
}

.auth-body {
  background: #ffffff;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.auth-page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  position: relative;
  z-index: 1;
}

.auth-layout {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 45px 80px rgba(5, 7, 15, 0.35);
  padding: 3.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-layout--verify {
  width: min(920px, 100%);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.auth-logo {
  width: 220px;
  height: auto;
}

.auth-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.auth-subheading {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

.auth-highlights {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.95rem;
}

.auth-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.16);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-gateway {
  position: relative;
  min-height: 100vh;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  background: url('img/login-bg.avif') center/cover no-repeat;
  overflow: hidden;
  border-radius: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-gateway__glow {
  display: none;
}

.auth-gateway__grid {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.auth-showcase {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 35px 70px rgba(5, 7, 15, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-gateway__grid--single {
  max-width: 500px;
  grid-template-columns: 1fr;
}

.auth-showcase__logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}

.auth-showcase__logo-img {
  width: 160px;
  height: auto;
}

.auth-showcase__badge {
  width: fit-content;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.auth-showcase__title {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 800;
  color: #0f172a;
}

.auth-showcase__title--compact {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.auth-showcase__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

.auth-showcase__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.auth-stat {
  flex: 1 1 140px;
  min-width: 140px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  border-radius: 18px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.auth-stat__label {
  display: block;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 0.35rem;
}

.auth-stat__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-showcase__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(15, 23, 42, 0.8);
  line-height: 1.6;
}

.auth-showcase__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.auth-foot__avatars {
  display: inline-flex;
  align-items: center;
}

.auth-foot__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: 3px solid #f8fafc;
  margin-left: -10px;
}

.auth-foot__avatar:first-child {
  margin-left: 0;
}

.auth-foot__title {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 60px rgba(5, 7, 15, 0.35);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-panel__header h2 {
  margin: 0.2rem 0 0.4rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-panel__header p {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
}
.auth-panel__logo {
  margin-bottom: 0.75rem;
}
.auth-panel__logo img {
  display: block;
  height: 48px;
  width: auto;
}

.auth-panel__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(37, 99, 235, 0.9);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.auth-panel__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-owner-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.ticket-owner-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.25rem;
}
.ticket-owner-card__value {
  font-weight: 600;
  color: #0f172a;
}
.ticket-owner-card__item--wide {
  grid-column: 1 / -1;
}
.report-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.report-top-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.report-org-row + .report-org-row {
  margin-top: 0.75rem;
}
.progress-thin {
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 999px;
}
.progress-thin .progress-bar {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 999px;
}
.ticket-modern-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ticket-block {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
.ticket-block__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}
.ticket-block__head p {
  margin: 0.25rem 0 1rem;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.9rem;
}
.ticket-field-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket-field-modern--grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket-field-modern__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ticket-field-modern__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.ticket-field-modern__help {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
  margin-top: 0.35rem;
}
.ticket-field-modern__error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.35rem;
}
.ticket-field-modern__full {
  grid-column: 1 / -1;
}


.auth-panel .form-control {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-panel .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.auth-panel__submit {
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 20px 35px rgba(37, 99, 235, 0.22);
}

.auth-panel__note {
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  color: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.auth-panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 1rem;
}

.auth-panel__footer a {
  color: #2563eb;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .auth-gateway__grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .auth-gateway {
    padding: 2rem 1rem 2.5rem;
  }

  .auth-showcase {
    padding: 1.75rem;
  }

  .auth-panel {
    padding: 1.75rem;
  }

  .auth-showcase__stats {
    flex-direction: column;
  }
}

.auth-card__header h2 {
  margin: 0 0 0.35rem 0;
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form .form-control {
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.auth-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.85);
  line-height: 1.6;
  text-align: center;
}

.auth-footer {
  text-align: center;
}

.auth-footer a {
  color: var(--up-accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  color: #1d4ed8;
}

.onboarding-modal-header {
  background: linear-gradient(200deg, #0f172a 0%, #111a2e 55%, #1f2937 100%);
  color: #f8fafc;
  border-bottom: none;
}

.onboarding-modal-header .modal-title,
.onboarding-modal-header p {
  color: #f8fafc;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.phone-input-group .phone-input-code,
.phone-input-group .phone-input-number {
  flex: 1 1 auto;
}

.phone-input-group .phone-input-code {
  max-width: 190px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.phone-input-group .country-code-select,
.phone-input-group .phone-number-input {
  border: none;
  border-radius: 0;
  height: 100%;
  width: 100%;
  padding: 0.75rem 1.1rem;
  min-height: 52px;
  font-size: 16px;
  background: transparent;
  box-shadow: none;
}

.phone-input-group .country-code-select:focus,
.phone-input-group .phone-number-input:focus {
  outline: none;
  box-shadow: none;
}

.phone-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.phone-input-group .country-code-select option {
  color: #0f172a;
}

.phone-input-group.is-disabled {
  background: #e9ecef;
  border-color: rgba(148, 163, 184, 0.5);
}
.phone-input-group.is-disabled select,
.phone-input-group.is-disabled input {
  color: #1f2937;
  pointer-events: none;
  background: transparent;
}

@media (max-width: 576px) {
  .phone-input-group {
    flex-direction: column;
    border-radius: 16px;
  }
  .phone-input-group .phone-input-code {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: linear-gradient(200deg, #0f172a 0%, #111a2e 55%, #1f2937 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.35);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.25);
}

.sidebar-hero {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 60%),
              rgba(15, 23, 42, 0.65);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-logo-img {
  max-width: 170px;
  width: 100%;
  height: auto;
}

.sidebar-header { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
  text-decoration: none;
}
.sidebar-brand:hover { color: #cbd5f5; }
.sidebar-tagline { font-size: 0.85rem; color: rgba(226, 232, 240, 0.7); line-height: 1.5; }
.sidebar-user { font-size: 0.85rem; color: rgba(226, 232, 240, 0.85); line-height: 1.4; }
.sidebar-user-name { color: #f8fafc; font-weight: 600; }
.sidebar-user-email { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; }

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.5rem;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}
.sidebar-user-meta span {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.sidebar-user-meta span + span { margin-top: 0.15rem; }

.message-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2050;
}

.message-modal-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2060;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.message-modal-wrapper.is-visible {
  opacity: 1;
  transform: scale(1);
}

.message-modal-card {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.message-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-modal-item {
  border-radius: 16px;
  padding: 1rem 1.2rem;
  background: rgba(148, 163, 184, 0.08);
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.6;
  border-left: 6px solid var(--up-accent);
}

.message-modal-item[data-level="success"] {
  border-left-color: #16a34a;
}

.message-modal-item[data-level="info"],
.message-modal-item[data-level="debug"] {
  border-left-color: #2563eb;
}

.message-modal-item[data-level="warning"] {
  border-left-color: #f59e0b;
}

.message-modal-item[data-level="error"] {
  border-left-color: #ef4444;
}

.message-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.message-modal-actions .btn {
  min-width: 120px;
}
.sidebar-user-email { color: #f8fafc; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.sidebar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.65);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: #f8fafc;
  background: rgba(37, 99, 235, 0.18);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}
.sidebar .nav-link.text-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.sidebar .nav-link.text-danger:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fee2e2;
}

.app-content { flex: 1; padding: 3rem 3.5rem; }
.container-xl { max-width: 1160px; margin: 0 auto; }

.section { margin-bottom: 2.5rem; }
.section:last-of-type { margin-bottom: 0; }
.section-header { margin-bottom: 1.75rem; }
.section-header h1,
.section-header h2 { margin: 0 0 0.45rem 0; font-weight: 600; }
.section-header p { margin: 0; color: var(--up-muted); font-size: 0.95rem; }

.section-card {
  background: var(--up-card);
  border-radius: var(--up-radius);
  border: 1px solid var(--up-card-border);
  box-shadow: var(--up-shadow);
  padding: 2rem;
}

.hero-panel { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.hero-title { max-width: 520px; }
.hero-title h1 { margin: 0 0 0.5rem 0; font-size: 1.9rem; font-weight: 600; }
.hero-title p { margin: 0; color: var(--up-muted); line-height: 1.6; }

.hero-metrics { display: flex; gap: 1rem; flex-wrap: wrap; }
.metric-chip {
  min-width: 140px;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: #eff4ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #1d4ed8;
}
.metric-chip__value { font-size: 1.85rem; font-weight: 700; }
.metric-chip__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(29, 78, 216, 0.7); }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.metric-card {
  background: var(--up-card);
  border-radius: var(--up-radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.metric-card h3 { margin: 0 0 0.35rem 0; font-size: 0.95rem; color: var(--up-muted); font-weight: 500; }
.metric-card strong { font-size: 1.6rem; font-weight: 600; }
.latest-card {
  background: #fff;
  color: #0f172a;
  border: none;
  box-shadow: 0 20px 45px rgba(49, 46, 129, 0.35);
  position: relative;
  overflow: hidden;
}
.latest-card .metric-value,
.latest-card p {
  color: #0f172a;
}
.latest-card .metric-label {
  color: #0f172a;
}
.latest-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
.latest-card__meta {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}
.latest-card__cta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.latest-card__arrow {
  color: #0f172a;
}
.latest-card__arrow {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.latest-card:hover .latest-card__arrow {
  transform: translateX(4px);
}

.dashboard-hero {
  background: #f9fbfc;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 2.75rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: relative;
  overflow: hidden;
}
.dashboard-hero::after {
  content: none;
}
.dashboard-hero > * { position: relative; }

.dashboard-hero .hero-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-intro__left {
  max-width: 520px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.5);
  margin-bottom: 0.4rem;
}

.hero-title {
  margin: 0;
  font-weight: 600;
  font-size: 2.1rem;
  color: #0f172a;
}

.hero-subtitle {
  margin: 0.5rem 0 0;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.6;
}

.dashboard-hero .hero-kicker {
  color: rgba(15, 23, 42, 0.55);
}

.dashboard-hero .hero-title {
  color: #0f172a;
}

.dashboard-hero .hero-subtitle {
  color: rgba(15, 23, 42, 0.7);
}

.hero-range {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 240px;
  align-items: flex-start;
}

.range-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.range-pill {
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.range-pill.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.range-pill:hover {
  color: #1d4ed8;
}

.dashboard-hero .hero-range span,
.dashboard-hero .hero-range small {
  color: rgba(15, 23, 42, 0.7);
}

.dashboard-hero .range-pill {
  border-color: rgba(148, 163, 184, 0.4);
  background: #ffffff;
  color: #1f2937;
}

.dashboard-hero .range-pill:hover {
  color: #2563eb;
}

.dashboard-hero .range-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  color: #fff;
}

.hero-metrics.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.metric-pill {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.metric-pill__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
}
.metric-pill__value {
  font-size: 2rem;
  font-weight: 700;
  color: #1d4ed8;
}

  .user-info-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .user-info-card--org {
    gap: 1rem;
  }

  .user-info-card--org label {
    margin-bottom: 0.4rem;
  }

  .user-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-start;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }

  .user-info-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--up-muted);
  }

  .user-info-value {
    font-size: 0.95rem;
    color: var(--up-text);
    font-weight: 600;
  }

.hero-org-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 118, 110, 0.8));
  color: #f8fafc;
  border-radius: 24px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
}

.hero-org-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.hero-org-card__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.hero-org-card__text {
  margin: 0.35rem 0 0;
  color: rgba(248, 250, 252, 0.8);
}

.hero-org-card__badge {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  min-width: 160px;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-org-card__badge span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.7);
}
.hero-org-card__badge strong {
  font-size: 1.1rem;
}

.hero-org-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.hero-org-card__meta div {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-org-card__meta strong {
  font-size: 1.4rem;
  color: #ffffff;
}

.hero-extra .pulse-card {
  border-radius: 20px;
  padding: 1.25rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.pulse-number {
  font-size: 2.35rem;
  font-weight: 700;
  color: #111827;
}

.table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.table thead th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--up-muted); border: none; padding-bottom: 0.4rem; }
.table tbody tr { background: #ffffff; border-radius: 14px; border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }
.table tbody td { border: none; padding: 1.1rem 1rem; color: var(--up-text); }
.table tbody td:first-child { border-radius: 14px 0 0 14px; }
.table tbody td:last-child { border-radius: 0 14px 14px 0; }
.table tbody tr.ticket-row { cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.table tbody tr.ticket-row:focus,
.table tbody tr.ticket-row:focus-within {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: -2px;
}
.table tbody tr.ticket-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.12);
}
.tickets-list-page .col-status {
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  white-space: normal;
}
.tickets-list-page .col-status.col-status-expanded {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  white-space: nowrap;
}
@media (max-width: 992px) {
  .tickets-list-page .col-status {
    width: auto;
  }
}
.tickets-list-page .col-subject {
  width: 200px;
  max-width: 200px;
  white-space: normal;
  word-break: break-word;
}
.tickets-list-page .col-subject.col-subject-compact {
  width: 250px;
  max-width: 250px;
  min-width: 250px;
}
.tickets-list-page .col-subject.col-subject-limited {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px;
}
.subject-tags {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.subject-tags .badge {
  width: 100%;
  white-space: normal;
  margin-right: 0 !important;
  text-align: left;
  border-radius: 0;
  padding: 0.2rem 0.4rem;
}

.badge { border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.badge-soft { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; border: 1px solid rgba(37, 99, 235, 0.2); }
.priority-pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.priority-critical { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.3); }
.priority-high { background: rgba(249, 115, 22, 0.12); color: #c2410c; border: 1px solid rgba(249, 115, 22, 0.3); }
.priority-normal { background: rgba(34, 197, 94, 0.12); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.3); }
.priority-low { background: rgba(14, 165, 233, 0.12); color: #0369a1; border: 1px solid rgba(14, 165, 233, 0.3); }

.form-control,
.form-select,
textarea.form-control {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
  color: var(--up-text);
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus { border-color: rgba(37, 99, 235, 0.45); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
select.customer-select-control {
  appearance: none;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  font-weight: 500;
  color: #111827;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}
select.customer-select-control:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
}
.form-select:not([multiple]):not(.customer-select-control) {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.35) 50%),
                    linear-gradient(135deg, rgba(15, 23, 42, 0.35) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.form-select option {
  padding: 0.85rem 1rem;
  background: #ffffff;
}
select[multiple] option:checked {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.35));
  color: #1f2937;
}
.customer-select-control option {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.customer-select-control option:checked {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.15));
  font-weight: 600;
}

label.form-label { font-weight: 500; color: var(--up-text-soft); margin-bottom: 0.35rem; }
.form-text { color: var(--up-muted); font-size: 0.8rem; }

.btn { border-radius: 12px; font-weight: 600; padding: 0.75rem 1.25rem; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border: none; color: #fff; }
.btn-outline-secondary { border: 1px solid rgba(148, 163, 184, 0.4); color: var(--up-text-soft); background: transparent; }
.btn-outline-secondary:hover { background: rgba(148, 163, 184, 0.15); }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 1px; background: rgba(148, 163, 184, 0.25); }
.timeline-item { position: relative; padding-left: 1rem; margin-bottom: 1.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -0.92rem; top: 0.25rem; width: 12px; height: 12px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
.timeline-item-comment .timeline-dot { background: #f97316; box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25); }
.timeline-item-comment--internal .timeline-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25); }
.timeline-comment-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: #ffffff;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-item-comment--customer .timeline-comment-card {
  border-color: rgba(249, 115, 22, 0.25);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.9), #ffffff);
}
.timeline-item-comment--internal .timeline-comment-card {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), #ffffff);
}
.timeline-comment-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}
.timeline-comment-icon svg {
  width: 24px;
  height: 24px;
}
.timeline-comment-icon--customer {
  background: linear-gradient(135deg, #fb923c, #f97316);
}
.timeline-comment-icon--internal {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.35rem;
}
.timeline-comment-icon--internal img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.timeline-comment-content {
  flex: 1 1 auto;
}
.timeline-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.timeline-comment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.timeline-comment-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}
.timeline-item-comment--customer .timeline-comment-chip {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.timeline-item-comment--internal .timeline-comment-chip {
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.timeline-comment-author {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.85rem;
}
.timeline-comment-author .timeline-comment-org {
  color: rgba(15, 23, 42, 0.55);
  font-weight: 500;
  font-size: 0.82rem;
}
.timeline-item-comment--customer .timeline-comment-body {
  color: #1f2937;
}
.timeline-item-comment--internal .timeline-comment-body {
  color: #0f172a;
}
.timeline-comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--up-text);
}
.timeline-comment-time {
  white-space: nowrap;
}

input[type="file"].form-control { padding: 1.1rem; border: 1px dashed rgba(148, 163, 184, 0.4); background: rgba(237, 242, 255, 0.5); cursor: pointer; }
input[type="file"].form-control:hover { border-color: rgba(37, 99, 235, 0.45); background-color: rgba(237, 242, 255, 0.8); }

.alert { border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.2); background: #ffffff; color: var(--up-text); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); }

.list-group-item { background: transparent; border-color: rgba(148, 163, 184, 0.15); color: var(--up-text-soft); }
.list-group-item a { color: var(--up-accent); text-decoration: none; }
.list-group-item a:hover { color: #1d4ed8; }

@media (max-width: 1024px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--up-border); border-radius: 0 0 var(--up-radius) var(--up-radius); padding: 2rem 1.5rem; }
  .app-content { padding: 2rem 1.5rem 3rem; }
}

@media (max-width: 768px) {
  .hero-panel { flex-direction: column; align-items: stretch; }
  .hero-metrics { width: 100%; }
  .metric-chip { flex: 1; }
}

.auth-layout {
  /* preserves existing styles above, additional responsive tweaks below */
}

@media (max-width: 992px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 2.75rem;
    gap: 2.5rem;
  }
  .auth-intro {
    text-align: center;
    align-items: center;
  }
  .auth-highlights {
    padding-left: 0;
    list-style-position: inside;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .auth-shell {
    padding: 2.5rem 1.25rem;
  }
  .auth-layout {
    padding: 2.25rem;
    gap: 2rem;
  }
  .auth-card {
    padding: 2rem;
  }
}

.status-pill {
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.status-pill__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1d4ed8;
}
.status-pill__label {
  font-size: 0.85rem;
  color: rgba(29, 78, 216, 0.75);
}
.priority-row {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-tile {
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-tile__label {
  color: var(--up-muted);
  font-size: 0.85rem;
}
.stat-tile__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--up-accent);
}
.metric-card ul {
  margin: 0;
  padding-left: 1.1rem;
}
.metric-card--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.metric-card__subtext {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.55);
}


.section--wide {
  width: 100%;
  max-width: 100%;
}

.section--wide .section-card {
  overflow-x: auto;
}

td.wrap-text { white-space: normal; word-break: break-word; }

.status-badge {
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
}

.status-badge-new { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.status-badge-assigned { background: rgba(16, 185, 129, 0.15); color: #047857; }
.status-badge-in_progress { background: rgba(249, 115, 22, 0.15); color: #c2410c; }
.status-badge-waiting_customer { background: rgba(14, 165, 233, 0.15); color: #0369a1; }
.status-badge-waiting_vendor { background: rgba(14, 116, 144, 0.15); color: #0f766e; }
.status-badge-resolved { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.status-badge-reopened { background: rgba(168, 85, 247, 0.15); color: #6d28d9; }
.status-badge-cancelled { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }

.filter-form {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.78), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 180px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.62);
  margin: 0;
}

.filter-control {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  color: var(--up-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  min-height: 46px;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.18);
}

.filter-control:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.18);
  background-color: #ffffff;
}

.filter-control::placeholder {
  color: rgba(107, 114, 128, 0.6);
}

.filter-control::-webkit-calendar-picker-indicator {
  filter: saturate(0.45);
}

.combo-control {
  position: relative;
  width: 100%;
}

.combo-control__field {
  position: relative;
  display: flex;
  align-items: center;
}

.combo-control__input {
  padding-right: 3rem;
}

.combo-control__toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: rgba(15, 23, 42, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.combo-control__toggle:hover,
.combo-control__toggle:focus-visible {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.3);
}

.combo-control__toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.combo-control__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  box-shadow: 0 28px 45px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}

.combo-control__dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.combo-control__option {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-size: 0.92rem;
  display: block;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.combo-control__option + .combo-control__option {
  margin-top: 0.25rem;
}

.combo-control__option:hover,
.combo-control__option:focus-visible {
  background: rgba(37, 99, 235, 0.12);
}

.combo-control__empty {
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.6);
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

.combo-control__dropdown .combo-control__empty + .combo-control__empty {
  margin-top: 0.35rem;
}


.filter-actions {
  justify-content: space-between;
  width: 100%;
}

.filter-btn {
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  font-weight: 500;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.filter-btn.btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.65);
  color: rgba(30, 41, 59, 0.78);
  background: rgba(255, 255, 255, 0.65);
}

.filter-btn.btn-outline-secondary:hover,
.filter-btn.btn-outline-secondary:focus {
  background: rgba(226, 232, 240, 0.9);
  color: rgba(15, 23, 42, 0.92);
}

.filter-btn.btn-primary {
  background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
}

.filter-btn.btn-primary:hover,
.filter-btn.btn-primary:focus {
  background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.filter-result-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.filter-result-pill__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}

.filter-result-pill__icon svg {
  width: 1rem;
  height: 1rem;
}

.filter-result-pill__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}

.filter-result-pill__value {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}

.date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-input-wrapper .filter-control {
  flex: 1 1 auto;
  padding-left: 3.2rem;
  padding-right: 1rem;
}

.date-input-wrapper::after {
  content: "";
  display: none;
}

.date-input-wrapper:focus-within::after {
  display: none;
}

.date-native-input {
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
}

.date-toggle {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  z-index: 2;
  cursor: pointer;
}

.date-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  stroke: #111827;
  stroke-width: 2px;
}

.dashboard-hero .metric-pill {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
  color: #111827;
}

.dashboard-hero .metric-pill__label {
  color: rgba(107, 114, 128, 0.75);
}

.dashboard-hero .metric-pill__value {
  color: #0f172a;
}

.dashboard-hero .hero-extra .pulse-card {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.dashboard-hero .hero-extra .pulse-card .pulse-number {
  color: #111827;
}

.dashboard-hero .hero-extra .pulse-card .text-muted,
.dashboard-hero .hero-extra .pulse-card span,
.dashboard-hero .hero-extra .pulse-card p {
  color: rgba(15, 23, 42, 0.6) !important;
}

.date-toggle:hover svg,
.date-toggle:focus svg {
  stroke: #0f172a;
}

.tickets-list-page {
  font-size: 14px;
}

.tickets-list-page .table th,
.tickets-list-page .table td {
  font-size: 14px;
}

.tickets-list-page .table .small,
.tickets-list-page .small {
  font-size: 13px;
}
.profile-modal-dialog { max-width: 520px; }
.profile-modal { border-radius: 24px; padding: 1.75rem; border: none; box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28); background: linear-gradient(135deg, #ffffff, #f8fafc); }
.profile-modal__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.profile-modal__logo { width: 125px; height: auto; }
.profile-modal__body { border-top: 1px solid rgba(148, 163, 184, 0.2); border-bottom: 1px solid rgba(148, 163, 184, 0.2); padding: 1rem 0; margin-bottom: 1.25rem; }
.profile-modal__body ul { margin: 0; padding-left: 1rem; color: #111827; }
.profile-modal__actions { display: flex; justify-content: flex-end; gap: 0.75rem; }
.profile-card { border-radius: var(--up-radius); }

#profileConfirmModal {
  z-index: 4000 !important;
}

#profileConfirmModal .modal-dialog {
  z-index: 4001 !important;
}
.toggle-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.toggle-chip__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-chip__track {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  transition: background 0.25s ease;
}

.toggle-chip__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
  transition: transform 0.25s ease;
}

.toggle-chip__state {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.6);
}

.toggle-chip__state::before {
  content: attr(data-off);
}

.toggle-chip__input:checked + .toggle-chip__track {
  background: #2563eb;
}

.toggle-chip__input:checked + .toggle-chip__track .toggle-chip__thumb {
  transform: translateX(20px);
}

.toggle-chip__input:checked + .toggle-chip__track + .toggle-chip__state {
  color: #0f172a;
}

.toggle-chip__input:checked + .toggle-chip__track + .toggle-chip__state::before {
  content: attr(data-on);
}

.action-gateway {
  background: linear-gradient(120deg, rgba(89, 139, 255, 0.12), #ffffff);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 26px;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.action-gateway__nav,
.action-gateway__cta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.action-gateway__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.55);
  margin: 0;
}
.action-pill {
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}
.action-pill__icon {
  font-size: 1rem;
  line-height: 1;
}
.action-pill--primary {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.action-pill--ghost {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(15, 23, 42, 0.7);
}
.action-pill--primary:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.55);
  color: #1e3a8a;
}
.action-pill--ghost:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.3);
  color: rgba(15, 23, 42, 0.85);
}
.decision-chip {
  border-radius: 18px;
  border: 1px solid transparent;
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 130px;
  text-align: center;
  transition: all 0.2s ease;
}
.decision-chip--win {
  background: #0f9d58;
  color: #ffffff;
}
.decision-chip--lose {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}
.decision-chip--win:hover {
  background: #0c7c45;
}
.decision-chip--lose:hover {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(185, 28, 28, 0.55);
  color: #991b1b;
}


.metric-card {background:#fff;border-radius:18px;border:1px solid rgba(15,23,42,0.08);padding:1.25rem 1.5rem;box-shadow:0 12px 30px rgba(15,23,42,0.06);} 
.metric-card--link{cursor:pointer !important;position:relative;transition:transform .15s ease,box-shadow .15s ease;}
.metric-card--link *{cursor:pointer !important;}
.metric-card--link:hover{box-shadow:0 15px 35px rgba(15,23,42,.12);transform:translateY(-2px);}
.metric-card--link:focus-visible{outline:2px solid #2563eb;outline-offset:4px;box-shadow:0 15px 35px rgba(15,23,42,.12);}
.metric-label{font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:rgba(71,85,105,.9);margin-bottom:.25rem;} 
.metric-value{font-size:1.75rem;font-weight:600;margin:0;}
.table-sort-link{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:.25rem;font-weight:600;}
.table-sort-link:hover{color:#2563eb;}
.service-analytics{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:2rem;}
.panel{background:var(--up-card);border:1px solid rgba(15,23,42,.08);border-radius:28px;padding:clamp(1.5rem,4vw,2.5rem);box-shadow:0 35px 65px rgba(15,23,42,.05);}
.analytics-hero{background:linear-gradient(135deg,#eef2ff,#ffffff);display:flex;flex-wrap:wrap;gap:2rem;align-items:flex-start;}
.analytics-hero__text{flex:1 1 320px;min-width:280px;}
.analytics-hero__stats{flex:1 1 260px;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}

.analytics-hero__lead{margin:0;color:rgba(15,23,42,.7);max-width:560px;}
.eyebrow{text-transform:uppercase;letter-spacing:.3em;font-size:.75rem;color:#475467;margin-bottom:.35rem;}
.hero-tags{margin:1rem 0 0;display:flex;flex-wrap:wrap;gap:.5rem;}
.hero-tags span{padding:.4rem .9rem;border-radius:999px;background:rgba(15,23,42,.08);font-size:.85rem;color:#0f172a;font-weight:600;}
.hero-tags--stack{flex-direction:column;align-items:flex-start;gap:.35rem;}
.hero-tags--stack .hero-tag-line{width:100%;padding:.45rem .85rem;border-radius:12px;background:rgba(15,23,42,.05);font-weight:500;}
.hero-tags--stack .hero-tag-line strong{font-size:.85rem;margin-right:.35rem;text-transform:uppercase;letter-spacing:.08em;color:rgba(15,23,42,.65);}
.hero-stat{background:#fff;border-radius:20px;padding:1rem 1.25rem;border:1px solid rgba(15,23,42,.08);box-shadow:0 15px 30px rgba(15,23,42,.07);display:flex;flex-direction:column;gap:.35rem;}
.hero-stat--wide{grid-column:span 2;}
.hero-stat__label{font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:rgba(15,23,42,.6);}
.hero-stat__value{font-size:2.2rem;font-weight:700;display:flex;align-items:baseline;gap:.35rem;color:#0f172a;margin:0;flex-wrap:wrap;word-break:break-word;}
.hero-stat__value small{font-size:.95rem;color:rgba(15,23,42,.55);}
.hero-stat__meta{margin:0;font-size:.85rem;color:rgba(15,23,42,.65);}
.filter-panel__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;}
.filter-panel__chips{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.85rem;}
.filter-chip{border-radius:999px;border:1px solid rgba(37,99,235,.25);padding:.35rem .9rem;font-weight:600;color:#2563eb;text-decoration:none;background:rgba(37,99,235,.08);}
.filter-chip.is-active{background:#2563eb;color:#fff;box-shadow:0 12px 26px rgba(37,99,235,.25);}
.insight-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.insight-grid--wrap{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
.insight-card{border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:1.25rem 1.5rem;background:#fff;box-shadow:0 20px 40px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:.35rem;}
.insight-card__label{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:rgba(15,23,42,.55);margin:0;}
.insight-card__value{font-size:2rem;font-weight:600;margin:0;color:#0f172a;}
.insight-card__meta{margin:0;font-size:.85rem;color:rgba(15,23,42,.65);}
.insight-card--accent{background:linear-gradient(135deg,#dbeafe,#ffffff);}
.insight-card--success{background:linear-gradient(135deg,rgba(34,197,94,.15),#fff);}
.insight-card--muted{background:linear-gradient(135deg,rgba(148,163,184,.2),#fff);}
.insight-card--warning{background:linear-gradient(135deg,rgba(251,191,36,.2),#fff8eb);}
.panel__title{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;}
.insight-panel{background:linear-gradient(145deg,rgba(37,99,235,.08),#fff);border:1px solid rgba(37,99,235,.15);}
.insight-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.9rem;}
.insight-list li{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(15,23,42,.08);padding-bottom:.65rem;}
.insight-list li:last-child{border-bottom:none;padding-bottom:0;}
.insight-list span{color:rgba(15,23,42,.65);font-size:.9rem;}
.insight-list strong{font-size:1rem;color:#0f172a;}
.table-panel .table{margin-bottom:0;}
.table-row-link{cursor:pointer;}
.table-sort-link.active{color:#2563eb;}
.country-code-select,
.phone-number-input {
  font-size: 14px;
}
.form-select,
.form-control {
  font-size: 14px;
}

.activity-timeline {
  position: relative;
  padding-left: 1.5rem;
}
.activity-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(37, 99, 235, 0.2);
}
.activity-item {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.activity-item:last-child {
  margin-bottom: 0;
}
.activity-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  left: -0.1rem;
  top: 0.45rem;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.activity-content {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.opportunity-note {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.opportunity-note:last-child {
  margin-bottom: 0;
}
.note-attachments .btn {
  font-size: 0.85rem;
}
