/* ============================================================
   ESTILOS BACYCOMEX
   Define colores, tarjetas, formularios, index publico, login,
   dashboard, modales, tablas, graficos y vista responsive.
   ============================================================ */

/* Variables globales de color, sombra y superficies. */
:root {
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --brand-blue: #17457d;
  --brand-sky: #2a8dcc;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #c8962c;
  --red: #b43c3c;
  --shadow: 0 20px 50px rgba(24, 33, 47, 0.12);
  --soft-shadow: 0 12px 32px rgba(24, 33, 47, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(42, 141, 204, 0.14), transparent 30rem),
    radial-gradient(circle at 84% 12%, rgba(200, 150, 44, 0.12), transparent 26rem),
    var(--paper);
  line-height: 1.6;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.75; }
  50% { transform: scaleX(0.72); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 70px);
  background: linear-gradient(180deg, rgba(7, 21, 39, 0.54), rgba(7, 21, 39, 0));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(2px);
  box-shadow: none;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, padding 0.22s ease;
}

.topbar.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(217, 224, 232, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 34px rgba(24, 33, 47, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.topbar.scrolled .brand {
  color: var(--ink);
  text-shadow: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px;
  box-shadow: 0 12px 28px rgba(5, 18, 34, 0.16);
}

.brand-logo[src="/logo.png"] {
  background: rgba(255, 255, 255, 0.94);
}

.brand-logo:not([src]),
.brand-logo[src=""] {
  display: none;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.94rem;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(5, 18, 34, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar.scrolled .main-nav {
  border-color: rgba(42, 141, 204, 0.16);
  background: rgba(247, 251, 255, 0.9);
  box-shadow: 0 12px 30px rgba(23, 69, 125, 0.08);
}

.main-nav a {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topbar.scrolled .main-nav a {
  color: #263548;
}

.main-nav a:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.topbar.scrolled .main-nav a:hover {
  border-color: rgba(42, 141, 204, 0.2);
  background: #ffffff;
  color: var(--brand-blue);
}

.nav-login,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.main-nav .nav-login {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(5, 18, 34, 0.12);
}

.topbar.scrolled .main-nav .nav-login {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  border-color: transparent;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 69, 125, 0.14);
}

.button.primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  border-color: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(23, 69, 125, 0.22);
}

.button.secondary {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: rgba(42, 141, 204, 0.35);
}

.button.ghost {
  background: transparent;
  color: var(--brand-blue);
  border-color: rgba(23, 69, 125, 0.22);
}

.menu-toggle { display: none; }

.hero {
  min-height: 76vh;
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 70px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 24, 48, 0.9), rgba(23, 69, 125, 0.58) 48%, rgba(8, 24, 48, 0.08)),
    linear-gradient(0deg, rgba(8, 18, 34, 0.42), rgba(8, 18, 34, 0.06)),
    url("https://images.unsplash.com/photo-1559297434-fae8a1916a79?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.modern-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  gap: 26px;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(247, 249, 251, 0.96), rgba(247, 249, 251, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero .eyebrow {
  color: #b9e7ff;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}
.hero p {
  max-width: 690px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-route {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 24, 48, 0.34);
  backdrop-filter: blur(14px);
}

.hero-route span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(8, 24, 48, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-route span.active {
  background: linear-gradient(135deg, rgba(42, 141, 204, 0.88), rgba(15, 118, 110, 0.74));
  color: #ffffff;
}

.hero-route b {
  color: #8fd3ff;
  font-size: 0.78rem;
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(42, 141, 204, 0.18));
  backdrop-filter: blur(12px);
}

.hero-panel span {
  display: block;
  color: #f8d27a;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-panel strong {
  display: block;
  margin: 6px 0 16px;
  font-size: 1.3rem;
}

.mini-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.mini-track i {
  height: 7px;
  border-radius: 999px;
  background: #f8d27a;
  transform-origin: left center;
  animation: softPulse 2.2s ease-in-out infinite;
}

.mini-track i:nth-child(2) { animation-delay: 0.2s; }
.mini-track i:nth-child(3) { animation-delay: 0.4s; }
.mini-track i:nth-child(4) { animation-delay: 0.6s; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 70px clamp(18px, 5vw, 70px);
  max-width: 1280px;
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.intro-copy {
  display: grid;
  gap: 14px;
}

.intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.intro-band,
.services-band,
.process-section,
.gallery,
.manager,
.contact-band {
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.split,
.manager,
.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; margin: 0 0 14px; }
h3 { margin-bottom: 6px; }

.stats,
.service-grid,
.content-grid,
.gallery-grid,
.dashboard-grid,
.editor-grid {
  display: grid;
  gap: 18px;
}

.stats { grid-template-columns: repeat(3, 1fr); }
.stats div,
.service-grid article,
.content-card,
.form-card,
.login-card,
.panel,
.result-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats div {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: rgba(42, 141, 204, 0.18);
  box-shadow: 0 16px 34px rgba(24, 33, 47, 0.08);
}

.stats div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-sky));
}

.stats small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.stats strong { display: block; font-size: 2rem; color: var(--teal); }
.stats div:nth-child(1) strong { color: var(--brand-blue); }
.stats div:nth-child(2) strong { color: var(--brand-sky); }
.stats div:nth-child(3) strong { color: var(--gold); }
.stats span { color: var(--muted); }

.content-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.content-card {
  overflow: hidden;
  border-color: rgba(23, 69, 125, 0.12);
  box-shadow: 0 18px 42px rgba(24, 33, 47, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.content-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.content-card:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 141, 204, 0.28);
  box-shadow: 0 22px 48px rgba(23, 69, 125, 0.12);
}
.content-card:hover img { transform: scale(1.06); }
.content-card div { padding: 18px; }
.content-card span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--brand-sky);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.content-card h3 { color: var(--brand-blue); }
.content-card p { color: var(--muted); }

.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-grid article {
  padding: 22px;
}
.interactive-cards article {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.interactive-cards article::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky), var(--teal));
}

.interactive-cards article:hover {
  transform: translateY(-7px);
  border-color: rgba(42, 141, 204, 0.36);
  box-shadow: 0 22px 48px rgba(15, 118, 110, 0.14);
}

.interactive-cards span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7f4ff, #eef7f5);
  color: var(--brand-blue);
  font-weight: 900;
}

.interactive-cards h3 {
  color: var(--brand-blue);
}

.interactive-cards p {
  color: var(--muted);
}

.process-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid rgba(42, 141, 204, 0.16);
  box-shadow: 0 18px 46px rgba(23, 69, 125, 0.08);
}

.process-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: rgba(42, 141, 204, 0.22);
  transform: translateY(-50%);
}

.step {
  position: relative;
  z-index: 1;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(24, 33, 47, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.step span {
  color: var(--brand-sky);
  font-size: 0.76rem;
}

.step strong {
  font-size: 0.96rem;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 141, 204, 0.35);
}

.step.active {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: var(--white);
}

.step-info {
  grid-column: 2;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #17457d, #2a8dcc);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(23, 69, 125, 0.18);
}

.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid img,
.manager img { width: 100%; height: 430px; object-fit: cover; object-position: center top; border-radius: 8px; }

.gallery p {
  max-width: 760px;
}

.enhanced-gallery {
  margin-top: 22px;
}

.gallery-item {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 33, 47, 0.05), rgba(24, 33, 47, 0.78));
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 58px rgba(23, 69, 125, 0.18);
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.gallery-item strong,
.gallery-item small {
  display: block;
}

.gallery-item strong {
  font-size: 1.15rem;
}

.gallery-item small {
  color: rgba(255, 255, 255, 0.78);
}

.empty-index-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(42, 141, 204, 0.28);
  border-radius: 8px;
  background: #f5fbff;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.manager {
  align-items: stretch;
}

.manager-photo {
  position: relative;
  min-height: 460px;
}

.manager-photo::before {
  content: "";
  position: absolute;
  inset: 18px -12px -12px 18px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  background: #e7f4ff;
}

.manager-photo img {
  position: relative;
  height: 100%;
  min-height: 460px;
  box-shadow: 0 24px 54px rgba(23, 69, 125, 0.14);
}

.manager-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
  border-left: 4px solid var(--brand-sky);
  background: linear-gradient(135deg, #ffffff, #f5fbff);
}

.manager-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.manager-signature {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.manager-signature strong {
  color: var(--brand-blue);
}

.manager-signature span {
  color: var(--muted);
  font-weight: 800;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(9, 15, 25, 0.88);
}

.image-modal.open {
  display: grid;
}

.image-modal img {
  max-width: min(1080px, 92vw);
  max-height: 74vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: floatIn 0.25s ease both;
}

.image-modal div {
  max-width: min(1080px, 92vw);
  width: 100%;
  color: var(--white);
  margin-top: 14px;
}

.image-modal h3,
.image-modal p {
  margin: 0;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.chatbot-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #0f766e, #2a8dcc);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.34);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(15, 118, 110, 0.4);
}

.whatsapp-toggle {
  width: 62px;
  height: 62px;
  border: 0;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.34);
  text-decoration: none;
}

.whatsapp-toggle:hover {
  transform: translateY(-4px) scale(1.04);
  background: #1fbd5a;
  box-shadow: 0 22px 48px rgba(37, 211, 102, 0.44);
}

.chatbot-toggle svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-toggle svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.whatsapp-toggle svg path:first-child {
  fill: none;
}

.whatsapp-toggle svg path:last-child {
  fill: #ffffff;
  stroke: none;
}

.chatbot-toggle span {
  position: absolute;
  right: 72px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue);
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.14);
}

.chatbot-widget {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 75;
  width: min(410px, calc(100vw - 32px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(5, 18, 34, 0.3);
}

.chatbot-widget.open { display: grid; }

.chatbot-widget header {
  display: flex;
  grid-template-columns: 32px 1fr 32px 32px;
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, #0f766e, #17457d);
  color: #ffffff;
}

.chatbot-widget header strong,
.chatbot-widget header span { display: block; }
.chatbot-widget header span { color: rgba(255, 255, 255, 0.78); font-size: .82rem; font-weight: 800; }

.chatbot-widget header button {
  width: 34px;
  height: 34px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-back::before,
.chatbot-menu::before,
#chatbotClose::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
}

.chatbot-back::before {
  width: 10px;
  height: 10px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.chatbot-menu::before {
  height: 10px;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: 0 4px 0 #ffffff;
}

#chatbotClose::before,
#chatbotClose::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 2px;
  background: #ffffff;
}

#chatbotClose::before { transform: rotate(45deg); }
#chatbotClose::after { transform: rotate(-45deg); }

.chatbot-service-title {
  padding: 16px 16px 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  min-height: 300px;
  overflow: auto;
  padding: 10px 20px 18px;
  background:
    linear-gradient(180deg, #ffffff, #f6fbff);
}

.chatbot-agent {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  justify-self: start;
  align-self: end;
  margin-bottom: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #2a8dcc;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(24, 33, 47, 0.18);
}

.bot-message,
.user-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-line;
}

.bot-message {
  justify-self: start;
  margin-left: 50px;
  background: linear-gradient(135deg, #0f766e, #25867e);
  border: 0;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
}

.user-message {
  justify-self: end;
  background: #ffffff;
  color: var(--brand-blue);
  border: 1px solid rgba(42, 141, 204, 0.28);
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.08);
}

.chatbot-quick-actions {
  display: grid;
  gap: 9px;
  justify-items: end;
  margin: 8px 0 12px;
}

.chatbot-quick-actions button {
  max-width: 92%;
  padding: 9px 14px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.chatbot-quick-actions button:hover {
  transform: translateY(-2px);
  border-color: var(--brand-sky);
}

.chatbot-form {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.chatbot-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  font: inherit;
}

.chatbot-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chatbot-form .chatbot-contact-fields {
  grid-template-columns: 1fr 1fr;
}

.chatbot-form button {
  position: relative;
  border: 0;
  border-radius: 8px;
  width: 48px;
  padding: 0;
  background: linear-gradient(135deg, #0f766e, #2a8dcc);
  color: #ffffff;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-form button::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
  transform: translateY(-50%);
}

.chatbot-widget svg,
.chatbot-form button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-band {
  max-width: 1280px;
  margin: 20px auto 0;
  border: 1px solid rgba(42, 141, 204, 0.18);
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(23, 69, 125, 0.08);
}

.contact-band.reveal {
  opacity: 1;
  transform: none;
}

.contact {
  align-items: center;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 58px);
}
.form-card,
.login-card {
  padding: 24px;
}

.contact-copy {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.form-card {
  display: grid;
  gap: 16px;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 60px rgba(5, 18, 34, 0.22);
}

.contact-copy .eyebrow,
.contact-copy h2,
.contact-copy p {
  color: var(--ink);
}

.contact-copy p {
  color: var(--muted);
}

.contact-highlights {
  display: grid;
  gap: 8px;
  max-width: 580px;
}

.contact-highlights span {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-left: 3px solid var(--brand-sky);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(24, 33, 47, 0.06);
}

.contact-highlights strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.contact-social-panel {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 10%, rgba(42, 141, 204, 0.32), transparent 30%),
    linear-gradient(135deg, #0f3158, #1d4774);
  box-shadow: 0 22px 52px rgba(15, 49, 88, 0.18);
}

.contact-social-panel h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.contact-social-panel p {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  background: #2a8dcc;
  box-shadow: 0 14px 28px rgba(8, 20, 38, 0.2);
}

.social-icons svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: none;
}

.social-icons a:nth-child(2) svg,
.social-icons a:nth-child(4) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-direct {
  display: grid;
  gap: 16px;
}

.contact-direct span {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.contact-direct strong {
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.02em;
}

.contact-direct a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-direct a:hover {
  color: #bfe7ff;
}

.form-kicker {
  color: var(--brand-blue);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.contact .form-card label {
  color: var(--brand-blue);
}

.contact .form-card {
  border-color: rgba(42, 141, 204, 0.16);
  max-width: 560px;
  justify-self: end;
  box-shadow: 0 22px 52px rgba(23, 69, 125, 0.12);
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-fields label:first-child {
  grid-column: 1 / -1;
}

.contact .form-card textarea {
  min-height: 126px;
}

.contact-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

label { display: grid; gap: 6px; font-weight: 700; }
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: var(--white);
}

.form-status { min-height: 24px; color: var(--teal); font-weight: 700; }
footer {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr) minmax(280px, 1.25fr) minmax(260px, 1.1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 70px);
  background: linear-gradient(135deg, #111b2a, #173a66);
  color: var(--white);
}

footer div,
.footer-contact {
  display: grid;
  gap: 4px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.78);
}

.footer-social {
  gap: 12px;
}

.footer-social strong {
  font-size: 1.35rem;
}

.footer-social > span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.footer-social .social-icons {
  margin-top: 8px;
  gap: 12px;
}

.footer-social .social-icons a {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.footer-social .social-icons a:hover {
  background: rgba(42, 141, 204, 0.28);
  transform: translateY(-2px);
}

.footer-social .social-icons svg {
  width: 24px;
  height: 24px;
}

.footer-direct {
  gap: 12px;
  color: #ffffff;
}

.footer-direct strong {
  text-transform: uppercase;
}

.footer-direct a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.footer-direct a:hover {
  color: #bfe7ff;
}

.footer-copy {
  justify-self: end;
  max-width: 330px;
  color: #ffffff;
  line-height: 1.45;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(42, 141, 204, 0.5), transparent 26rem),
    radial-gradient(circle at 80% 80%, rgba(200, 150, 44, 0.35), transparent 24rem),
    linear-gradient(125deg, rgba(12, 34, 64, 0.92), rgba(15, 118, 110, 0.68)),
    url("https://images.unsplash.com/photo-1560421683-6856ea585c78?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.login-shell {
  width: min(980px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 24px;
  align-items: center;
  color: var(--white);
}

.login-copy h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 0.95; margin: 18px 0; }
.login-card {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 70px rgba(5, 18, 34, 0.28);
}
.login-card h2 { font-size: 1.55rem; }

.login-logo {
  display: inline-flex;
  color: var(--white);
}

.login-brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.login-home {
  display: inline-flex;
  margin-top: 16px;
}

.password-card {
  width: min(500px, calc(100vw - 32px));
  padding: 38px;
  display: grid;
  gap: 24px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
  backdrop-filter: blur(12px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0;
}

.login-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.password-intro h1 {
  margin: 4px 0 8px;
  font-size: 2.08rem;
  line-height: 1.05;
}

.password-intro p {
  color: var(--muted);
}

.password-card .eyebrow {
  margin-bottom: 10px;
}

.password-card #accountInfo {
  padding: 12px 14px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: #f4f9ff;
  color: var(--brand-blue);
  font-weight: 800;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 69, 125, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 4px rgba(42, 141, 204, 0.14);
  transform: translateY(-1px);
}

.login-form button {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(23, 69, 125, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(23, 69, 125, 0.34);
  filter: brightness(1.03);
}

.login-form button:active {
  transform: translateY(0);
}

.login-return {
  justify-self: stretch;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 141, 204, 0.24);
  border-radius: 8px;
  background: #eef7ff;
  color: var(--brand-blue);
  font-weight: 800;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }

.dashboard-page {
  display: grid;
  grid-template-columns: 292px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(42, 141, 204, 0.16), transparent 28rem),
    radial-gradient(circle at bottom left, rgba(200, 150, 44, 0.11), transparent 24rem),
    linear-gradient(180deg, #f8fafc, #eef3f7);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(12, 34, 64, 0.98) 0%, rgba(23, 69, 125, 0.96) 48%, rgba(42, 141, 204, 0.86) 150%),
    url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=700&q=80") center/cover;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 18px 0 42px rgba(24, 33, 47, 0.16);
}

.sidebar-brand {
  padding: 8px 10px;
}

.sidebar-brand .brand-logo {
  display: none;
}

.sidebar-brand .brand-logo {
  background: rgba(255, 255, 255, 0.12);
}

.profile-card {
  width: 100%;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-transform: capitalize;
}

.avatar-ring,
.profile-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: #f0fdfa;
  color: var(--teal);
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-weight: 900;
}

.avatar-ring img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar {
  width: 118px;
  height: 118px;
  font-size: 2rem;
  border-color: var(--line);
}

.sidebar nav {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 1px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.module-group {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.module-group-toggle {
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px 1fr auto 22px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: .88rem;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.module-group-toggle:hover {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.module-group-toggle i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #dff3ff;
  font-style: normal;
}

.module-group-toggle i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-group-toggle em {
  min-width: 25px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  font-size: .72rem;
  font-style: normal;
}

.module-group-toggle b {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  transition: transform .18s ease;
}

.module-group-toggle b::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
  transform: rotate(45deg) translateY(-2px);
}

.module-group-list {
  display: none;
  gap: 4px;
  padding: 3px 0 4px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  margin-left: 14px;
}

.module-group.open .module-group-list {
  display: grid;
}

.module-group.open .module-group-toggle b {
  transform: rotate(180deg);
}

.sidebar a.module-link {
  color: var(--white);
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 8px;
  min-width: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar a.module-link span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 900;
}

.sidebar a.module-link .module-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar a.module-link strong {
  font-size: .92rem;
}

.sidebar a.module-link:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.sidebar a.active span {
  background: linear-gradient(135deg, var(--gold), #f8d27a);
  color: #152033;
}

.logout-link {
  display: block;
  color: var(--white);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard {
  padding: 26px 32px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.role-badge {
  background: #e7f4ff;
  border: 1px solid rgba(42, 141, 204, 0.35);
  color: var(--brand-blue);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.panel.welcome-panel {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.welcome-hero {
  min-height: 176px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 255, 0.94)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: 0 24px 58px rgba(24, 33, 47, 0.13);
}

.welcome-hero h2 {
  max-width: 780px;
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.02;
  color: var(--ink);
}

.welcome-hero p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 800;
}

.welcome-badge {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff, #eaf8f6 64%),
    #eef9ff;
  color: var(--brand-teal);
  font-size: 2.45rem;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(24, 33, 47, 0.14);
}

.welcome-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.welcome-action {
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  gap: 5px 10px;
  padding: 13px 14px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.welcome-action:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 141, 204, 0.38);
  box-shadow: 0 22px 44px rgba(24, 33, 47, 0.14);
}

.welcome-action span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: var(--white);
}

.welcome-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-action strong {
  align-self: end;
  color: var(--brand-blue);
  font-size: .98rem;
}

.welcome-action small {
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.25;
}

.welcome-process-overview {
  /* Cambio 2026-09-02 23:28: agrega mas color y jerarquia visual al resumen del flujo operativo. */
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(42, 141, 204, 0.16), transparent 22rem),
    radial-gradient(circle at 96% 6%, rgba(200, 150, 44, 0.18), transparent 19rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(239, 249, 255, 0.94)),
    #ffffff;
  box-shadow: 0 16px 34px rgba(24, 33, 47, 0.08);
}

.welcome-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.welcome-section-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.welcome-section-head small {
  color: var(--muted);
  font-weight: 900;
}

.welcome-process-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.welcome-process-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative;
  overflow: hidden;
}

.welcome-process-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2a8dcc, #17457d);
}

.welcome-process-stat:hover,
.welcome-process-stat.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(23, 69, 125, 0.13);
}

.welcome-process-stat span {
  color: var(--muted);
  font-weight: 900;
  font-size: .72rem;
  text-transform: uppercase;
}

.welcome-process-stat strong {
  color: var(--brand-blue);
  font-size: 1.16rem;
  line-height: 1;
}

.welcome-process-stat.stage-pendiente,
.welcome-process-stat.stage-cotizacion { border-color: rgba(42, 141, 204, 0.3); background: linear-gradient(135deg, #eaf7ff, #ffffff); }
.welcome-process-stat.stage-coordinacion { border-color: rgba(14, 165, 233, 0.34); background: linear-gradient(135deg, #e8f7ff, #ffffff); }
.welcome-process-stat.stage-embarque { border-color: rgba(245, 158, 11, 0.34); background: linear-gradient(135deg, #fff7df, #ffffff); }
.welcome-process-stat.stage-aduana { border-color: rgba(124, 58, 237, 0.3); background: linear-gradient(135deg, #f2edff, #ffffff); }
.welcome-process-stat.stage-despacho { border-color: rgba(20, 184, 166, 0.34); background: linear-gradient(135deg, #e8fbf7, #ffffff); }
.welcome-process-stat.stage-finalizado { border-color: rgba(16, 185, 129, 0.34); background: linear-gradient(135deg, #e9fbf2, #ffffff); }
.welcome-process-stat.stage-pendiente::before,
.welcome-process-stat.stage-cotizacion::before { background: linear-gradient(180deg, #2a8dcc, #17457d); }
.welcome-process-stat.stage-coordinacion::before { background: linear-gradient(180deg, #0ea5e9, #1d4ed8); }
.welcome-process-stat.stage-embarque::before { background: linear-gradient(180deg, #f59e0b, #c8962c); }
.welcome-process-stat.stage-aduana::before { background: linear-gradient(180deg, #8b5cf6, #5b21b6); }
.welcome-process-stat.stage-despacho::before { background: linear-gradient(180deg, #14b8a6, #0f766e); }
.welcome-process-stat.stage-finalizado::before { background: linear-gradient(180deg, #10b981, #047857); }
.welcome-process-stat.active { border-color: rgba(23, 69, 125, 0.32); outline: 2px solid rgba(42, 141, 204, 0.15); }

.welcome-process-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

.welcome-process-card {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(42, 141, 204, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
  position: relative;
  overflow: hidden;
}

.welcome-process-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2a8dcc, #17457d);
}

.welcome-process-card:hover {
  border-color: rgba(42, 141, 204, 0.34);
  box-shadow: 0 12px 26px rgba(23, 69, 125, 0.08);
}

.welcome-process-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.welcome-process-card strong,
.welcome-process-card small {
  display: block;
}

.welcome-process-card strong {
  color: var(--brand-blue);
  line-height: 1.2;
}

.welcome-process-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.welcome-process-card em {
  display: block;
  margin-top: 2px;
  color: #6b7788;
  font-size: .76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.welcome-process-card.quote-flow .welcome-process-code {
  background: linear-gradient(135deg, #0f766e, var(--brand-sky));
}

.welcome-process-card.stage-coordinacion::before,
.welcome-process-card.stage-cotizacion::before,
.welcome-process-card.stage-pendiente::before { background: linear-gradient(180deg, #2a8dcc, #17457d); }
.welcome-process-card.stage-embarque::before { background: linear-gradient(180deg, #f59e0b, #c8962c); }
.welcome-process-card.stage-aduana::before { background: linear-gradient(180deg, #8b5cf6, #5b21b6); }
.welcome-process-card.stage-despacho::before { background: linear-gradient(180deg, #14b8a6, #0f766e); }
.welcome-process-card.stage-finalizado::before { background: linear-gradient(180deg, #10b981, #047857); }

.welcome-process-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  background: #f2f8ff;
  color: var(--brand-blue);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.welcome-process-stage.stage-cotizacion,
.welcome-process-stage.stage-coordinacion { background: #eef7ff; border-color: rgba(42, 141, 204, 0.32); color: var(--brand-blue); }
.welcome-process-stage.stage-embarque { background: #fff8e6; border-color: rgba(200, 150, 44, 0.32); color: #8a650f; }
.welcome-process-stage.stage-aduana { background: #f4f0ff; border-color: rgba(124, 58, 237, 0.28); color: #5b21b6; }
.welcome-process-stage.stage-despacho { background: #edfbf7; border-color: rgba(15, 118, 110, 0.32); color: var(--teal-dark); }
.welcome-process-stage.stage-finalizado { background: #ecfdf5; border-color: rgba(16, 185, 129, 0.32); color: #047857; }

.document-history {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 69, 125, 0.1);
}

.document-history h3 {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 1rem;
}

.document-list {
  display: grid;
  gap: 8px;
}

.document-list.with-preview {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.document-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.document-list.with-preview .document-card {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  padding: 12px;
  border-color: rgba(42, 141, 204, 0.18);
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.06);
}

.document-list.with-preview .document-card .table-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.document-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--brand-blue);
  font-weight: 900;
  font-size: .72rem;
}

.document-card svg,
.document-preview svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document-card strong,
.document-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-card small {
  color: var(--muted);
  font-weight: 800;
}

.client-process-card .document-history {
  padding: 14px;
  border-top: 1px solid rgba(23, 69, 125, 0.08);
}

.client-export-panel {
  margin: 12px 14px 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}

.client-export-panel.quote {
  border-color: rgba(14, 128, 117, 0.22);
  background: linear-gradient(135deg, #f8fffc, #ecfbf7);
}

.client-export-panel strong,
.client-export-panel span {
  display: block;
}

.client-export-panel strong {
  color: var(--brand-navy);
  font-weight: 900;
}

.client-export-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.field-error {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.14) !important;
}

.document-preview {
  min-height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 10%, rgba(42, 141, 204, 0.18), transparent 5rem),
    linear-gradient(135deg, #f8fbff, #eef7ff);
  color: var(--brand-blue);
  text-align: center;
  font-weight: 900;
}

.document-preview img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}

.document-preview span {
  display: block;
  font-size: 1.05rem;
}

.document-preview small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
}

.document-upload-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #effaf7, #ffffff);
  animation: documentReady 0.28s ease both;
}

.document-upload-preview span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
  font-size: .76rem;
}

.document-upload-preview strong,
.document-upload-preview small {
  display: block;
  overflow-wrap: anywhere;
}

.document-upload-preview small {
  color: var(--muted);
  font-weight: 800;
}

@keyframes documentReady {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.process-full-detail {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(42, 141, 204, 0.08), transparent 18rem),
    #f6f9fc;
}

.process-detail-section {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.95)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(24, 33, 47, 0.08);
}

.process-detail-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-sky));
}

.process-detail-section h4 {
  margin: 0 0 12px;
  padding-left: 8px;
  color: var(--brand-blue);
  font-size: .92rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.process-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.process-detail-grid div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(23, 69, 125, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}

.process-detail-grid span,
.process-detail-grid strong {
  display: block;
}

.process-detail-grid span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-detail-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-size: .94rem;
}

.quote-detail-table {
  display: grid;
  gap: 7px;
}

.quote-detail-head,
.quote-detail-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr .55fr .55fr .85fr;
  gap: 6px;
  align-items: center;
}

.quote-detail-head {
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), #236da8);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(23, 69, 125, 0.16);
}

.quote-detail-row {
  padding: 10px 12px;
  border: 1px solid rgba(42, 141, 204, 0.12);
  border-radius: 8px;
  background: #ffffff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.quote-detail-row:hover {
  transform: translateY(-1px);
  border-color: rgba(42, 141, 204, 0.28);
  box-shadow: 0 12px 24px rgba(23, 69, 125, 0.08);
}

.quote-detail-row span,
.quote-detail-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.quote-detail-row span {
  color: var(--muted);
  font-weight: 800;
}

.quote-detail-row strong {
  color: var(--ink);
}

.sequence-settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sequence-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(42, 141, 204, 0.12), transparent 12rem),
    #ffffff;
  box-shadow: 0 16px 34px rgba(24, 33, 47, 0.08);
}

.sequence-card-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 69, 125, 0.1);
}

.sequence-card-head > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
}

.sequence-card-head svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sequence-card-head strong,
.sequence-card-head small {
  display: block;
}

.sequence-card-head strong {
  color: var(--brand-blue);
  font-size: 1.05rem;
}

.sequence-card-head small,
.sequence-preview span {
  color: var(--muted);
  font-weight: 900;
  font-size: .78rem;
}

.sequence-card label {
  display: grid;
  gap: 6px;
  color: var(--brand-blue);
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
}

.sequence-card input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.sequence-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #eefaf7, #ffffff);
}

.sequence-preview strong {
  color: var(--teal-dark);
  font-size: 1.15rem;
  letter-spacing: .02em;
}

.sequence-card .button {
  grid-column: 1 / -1;
}

.dashboard-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 20px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.chart-panel,
.summary-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.summary-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    var(--white);
  border-color: rgba(23, 69, 125, 0.12);
}

.summary-panel > .panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 69, 125, 0.08);
}

.summary-panel > .panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.04;
}

.chart-panel {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chart-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky), var(--teal));
}

.chart-panel:hover {
  border-color: rgba(42, 141, 204, 0.34);
  box-shadow: 0 18px 42px rgba(24, 33, 47, 0.14);
  transform: translateY(-2px);
}

.chart-panel h2 {
  font-size: 1.15rem;
}

.chart-panel canvas {
  width: 100%;
  height: 300px;
  max-height: 300px;
  cursor: crosshair;
}

.bar-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr 42px;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  transition: transform 0.18s ease;
}

.bar-row:hover {
  transform: translateX(4px);
}

.bar-row span {
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row div {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8edf3, #f5f8fb);
}

.bar-row strong {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 14px rgba(42, 141, 204, 0.18);
}

.bar-row:hover strong {
  filter: brightness(1.12);
  box-shadow: 0 8px 18px rgba(42, 141, 204, 0.28);
  transform: scaleY(1.18);
}

.bar-row b {
  color: var(--ink);
  text-align: right;
}

.summary-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff, #f6fbff),
    var(--white);
  border: 1px solid rgba(23, 69, 125, 0.12);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(24, 33, 47, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky), var(--teal));
  opacity: 0.88;
}

.summary-card i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #eaf5ff;
  color: var(--brand-blue);
  font-style: normal;
}

.summary-card i svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-card span {
  color: var(--muted);
  font-weight: 850;
}

.summary-card strong {
  display: block;
  margin-top: 2px;
  color: var(--brand-blue);
  font-size: 2rem;
  line-height: 1;
}

.summary-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-card:hover {
  border-color: rgba(42, 141, 204, 0.35);
  box-shadow: 0 18px 38px rgba(24, 33, 47, 0.13);
  transform: translateY(-3px);
}

.wide-card {
  grid-column: 1 / -1;
}

.panel {
  padding: 22px;
  margin: 18px 0;
  box-shadow: var(--soft-shadow);
  background: rgba(255, 255, 255, 0.96);
}
.hidden { display: none !important; }

.profile-form {
  display: grid;
  grid-template-columns: 150px minmax(240px, 520px);
  gap: 18px;
  align-items: center;
}

.profile-photo-box {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-fields {
  display: grid;
  gap: 10px;
}

.profile-fields .upload-field {
  min-height: 70px;
}

.profile-photo-box .image-preview.avatar-preview {
  width: 84px;
  height: 84px;
  min-height: 84px;
  border-width: 2px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.filter-bar {
  margin: 14px 0;
}

.filter-bar input {
  width: min(520px, 100%);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(42, 141, 204, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(24, 33, 47, 0.06);
}

.management-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  margin: 16px 0 18px;
}

.management-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid rgba(23, 69, 125, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 32px rgba(24, 33, 47, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.management-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(24, 33, 47, 0.12);
}

.management-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.management-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1;
}

.management-card i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7f4ff;
  color: var(--brand-blue);
  font-style: normal;
  font-weight: 900;
}

.management-card.green i { background: #e9fbf6; color: var(--teal); }
.management-card.amber i { background: #fff7e5; color: #9a6a00; }
.management-card.neutral i { background: #eef2f7; color: var(--muted); }

.management-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(170px, 220px);
  gap: 12px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(23, 69, 125, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(24, 33, 47, 0.07);
}

.management-toolbar.two {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 240px);
}

.management-toolbar input,
.management-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.management-toolbar input:focus,
.management-toolbar select:focus {
  outline: 2px solid rgba(42, 141, 204, 0.18);
  border-color: var(--brand-sky);
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.person-cell strong,
.person-cell span {
  display: block;
}

.person-cell span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.person-cell.large {
  align-items: flex-start;
  gap: 16px;
}

.person-cell.large h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.15;
}

.mini-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(23, 69, 125, 0.18);
}

.person-cell.large .mini-avatar {
  width: 82px;
  height: 82px;
  font-size: 1.35rem;
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}

.status-pill.blue { border-color: #b8d8ff; background: #eef7ff; color: var(--brand-blue); }
.status-pill.green { border-color: #b7efdf; background: #ecfbf6; color: var(--teal); }
.status-pill.amber { border-color: #f4d694; background: #fff8e9; color: #8b6508; }
.status-pill.red { border-color: #f1b7b7; background: #fff1f1; color: var(--red); }

button.status-pill {
  font-family: inherit;
  cursor: pointer;
}

.status-pill.action {
  position: relative;
  padding-right: 28px;
  box-shadow: 0 8px 18px rgba(23, 69, 125, 0.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.status-pill.action::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.status-pill.action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 69, 125, 0.14);
}

.record-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8fcff 0, #ffffff 150px),
    #ffffff;
  box-shadow: 0 30px 90px rgba(5, 18, 34, 0.32);
}

.record-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 69, 125, 0.14);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.record-head {
  margin: 0;
  padding: 18px 56px 16px 18px;
  border-bottom: 1px solid rgba(42, 141, 204, 0.14);
  background:
    radial-gradient(circle at 92% 8%, rgba(42, 141, 204, 0.13), transparent 12rem),
    linear-gradient(135deg, rgba(23, 69, 125, 0.06), rgba(255, 255, 255, 0.98));
}

.record-head.compact {
  padding: 16px 56px 16px 18px;
}

.record-head.compact .person-cell.large {
  gap: 12px;
}

.record-head.compact .person-cell.large .mini-avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  font-size: 1rem;
}

.record-head.compact .person-cell.large h3 {
  color: var(--brand-blue);
  font-size: 1.34rem;
}

.record-modal:has(.process-expedient-head) {
  width: min(1040px, 100%);
  padding: 0;
  border-color: rgba(42, 141, 204, 0.22);
  background:
    linear-gradient(180deg, #f8fcff 0%, #ffffff 32%),
    #ffffff;
}

.process-expedient-head {
  padding: 22px 58px 20px 22px;
  border-bottom: 1px solid rgba(42, 141, 204, 0.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(42, 141, 204, 0.16), transparent 16rem),
    linear-gradient(135deg, rgba(23, 69, 125, 0.08), rgba(255, 255, 255, 0.98));
}

.process-expedient-head .person-cell.large {
  align-items: center;
}

.process-expedient-head .person-cell.large .mini-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(23, 69, 125, 0.22);
}

.process-expedient-head h3 {
  margin-top: 2px;
  color: var(--brand-blue);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem) !important;
}

.record-pills,
.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px;
  padding: 14px;
  border: 1px solid rgba(42, 141, 204, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.record-grid div {
  display: grid;
  gap: 4px;
}

.record-grid .wide {
  grid-column: 1 / -1;
}

.record-grid span,
.record-section p {
  color: var(--muted);
  font-weight: 700;
}

.record-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.record-section h4 {
  margin: 0 0 10px;
  color: var(--brand-blue);
}

.record-section p {
  margin: 0;
}

.record-section {
  margin: 18px;
  padding: 14px;
  border: 1px solid rgba(42, 141, 204, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.record-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  border-top: 0;
}

.record-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.record-form .wide {
  grid-column: 1 / -1;
}

.record-form input,
.record-form select,
.record-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(23, 69, 125, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(23, 69, 125, 0.04);
}

.record-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.record-form input:disabled {
  color: var(--muted);
  background: #eef2f7;
}

.record-form input:focus,
.record-form select:focus,
.record-form textarea:focus {
  outline: 3px solid rgba(42, 141, 204, 0.13);
  border-color: var(--brand-sky);
  background: #ffffff;
}

.upload-field {
  position: relative;
  min-height: 76px;
  padding: 12px;
  border: 1px dashed rgba(42, 141, 204, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #fafdff, #ffffff);
  cursor: pointer;
}

.upload-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-field > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.upload-field strong {
  color: var(--brand-blue);
  font-size: 0.98rem;
}

.upload-field small {
  color: var(--muted);
  font-weight: 700;
}

.image-preview {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 142px;
  border: 1px solid rgba(23, 69, 125, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(23, 69, 125, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 69, 125, 0.04) 25%, transparent 25%),
    #ffffff;
  background-size: 20px 20px;
}

.image-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.image-preview.avatar-preview {
  width: 118px;
  min-height: 118px;
  height: 118px;
  border-radius: 50%;
  justify-self: center;
}

.image-preview.avatar-preview img {
  height: 100%;
  max-height: none;
}

.image-preview span {
  display: grid;
  place-items: center;
  min-height: 142px;
  color: var(--red);
  font-weight: 800;
}

.switch-row {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px !important;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 69, 125, 0.1);
  border-radius: 8px;
  background: #fafdff;
}

.switch-row input {
  position: relative;
  width: 38px !important;
  min-height: 22px !important;
  height: 22px;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: #cfd8e3;
  cursor: pointer;
}

.switch-row input::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(24, 33, 47, 0.2);
  transition: transform 0.18s ease;
}

.switch-row input:checked {
  background: var(--brand-blue);
}

.switch-row input:checked::after {
  transform: translateX(16px);
}

.switch-row span {
  color: var(--ink);
  font-weight: 850;
}

.module-checks.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  max-height: 128px;
  overflow: auto;
  padding-right: 4px;
}

.module-checks.compact .module-check {
  position: relative;
  min-height: 0;
  padding: 7px 10px 7px 30px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.82rem;
  line-height: 1.1;
  box-shadow: none;
  transform: none;
}

.module-checks.compact .module-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-checks.compact .module-check::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(23, 69, 125, 0.28);
  border-radius: 4px;
  transform: translateY(-50%);
  background: #ffffff;
}

.module-checks.compact .module-check::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 5px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translateY(-58%) rotate(45deg);
}

.module-checks.compact .module-check:has(input:checked) {
  border-color: rgba(42, 141, 204, 0.36);
  background: #eef7ff;
  box-shadow: none;
}

.module-checks.compact .module-check:has(input:checked)::before {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.module-checks.compact .module-check:has(input:checked)::after {
  opacity: 1;
}

.module-checks.compact .module-check:hover {
  transform: none;
  border-color: rgba(42, 141, 204, 0.42);
}

.module-checks.compact .module-check span {
  font-size: 0.82rem;
  font-weight: 800;
}

.module-checks:has(.module-permission-group) {
  grid-template-columns: 1fr;
  gap: 12px;
}

.module-checks.compact:has(.module-permission-group) {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 260px;
  gap: 10px;
  padding: 2px 6px 2px 0;
}

.module-permission-group {
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f5fbff);
  padding: 9px;
  box-shadow: 0 10px 24px rgba(15, 64, 113, 0.06);
}

.module-permission-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.module-permission-title {
  display: grid;
  grid-template-columns: auto 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.module-permission-title input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand-blue);
}

.module-permission-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f5ff;
  color: var(--brand-blue);
}

.module-permission-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-permission-title strong {
  color: var(--brand-blue);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-permission-head small {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.72rem;
}

.module-permission-toggle {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.module-permission-toggle:hover {
  border-color: rgba(42, 141, 204, 0.38);
  background: #eef7ff;
}

.module-permission-group.open .module-permission-toggle {
  transform: rotate(180deg);
}

.module-permission-list {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(42, 141, 204, 0.12);
}

.module-permission-group.open .module-permission-list {
  display: grid;
}

.module-checks.compact .module-permission-group {
  padding: 8px;
}

.module-checks.compact .module-permission-list {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(42, 141, 204, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.record-modal:has(.process-expedient-head) .record-actions {
  position: sticky;
  bottom: 0;
  backdrop-filter: blur(10px);
}

.record-actions button {
  border: 1px solid rgba(42, 141, 204, 0.25);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--brand-blue);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.record-actions .danger {
  border-color: rgba(180, 60, 60, 0.25);
  background: #fff5f5;
  color: var(--red);
}

.media-admin-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 69, 125, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.media-admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 141, 204, 0.28);
  box-shadow: 0 18px 36px rgba(24, 33, 47, 0.12);
}

.media-thumb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--brand-blue);
  font-weight: 900;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-body {
  min-width: 0;
}

.media-card-body span {
  display: block;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-card-body strong {
  display: block;
  margin: 2px 0;
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.media-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.media-actions {
  justify-content: flex-end;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(231, 244, 255, 0.86), rgba(255, 255, 255, 0.94)),
    var(--white);
  box-shadow: var(--soft-shadow);
}

.shipment-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
  padding: 24px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--soft-shadow);
}

.shipment-form textarea,
.shipment-form .form-actions,
.shipment-form .shipment-items,
.shipment-form .purchase-title,
.shipment-form .purchase-section-title {
  grid-column: 1 / -1;
}

.purchase-title,
.purchase-section-title {
  padding: 14px 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 69, 125, 0.98), rgba(42, 141, 204, 0.92)),
    var(--brand-blue);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(23, 69, 125, 0.16);
}

.purchase-title {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  letter-spacing: 0;
}

.purchase-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 1.05rem;
}

.purchase-section-title.with-action {
  justify-content: space-between;
  text-align: left;
}

.purchase-section-title.with-action .button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  white-space: nowrap;
}

.purchase-field {
  grid-column: span 4;
  display: grid;
  gap: 7px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(42, 141, 204, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.purchase-field.wide {
  grid-column: span 8;
}

.purchase-field label {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-field input,
.purchase-field select,
.purchase-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(42, 141, 204, 0.26);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  font-size: .98rem;
}

.purchase-field textarea {
  resize: vertical;
}

.option-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 900;
  cursor: pointer;
}

.option-checks input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--brand-blue);
}

.option-checks label:has(input:checked) {
  border-color: var(--brand-blue);
  background: #eef7ff;
  box-shadow: 0 8px 18px rgba(23, 69, 125, 0.08);
}

.split-field {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 10px;
}

.purchase-total-box {
  grid-column: span 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #e9fbf6;
}

.purchase-total-box span {
  color: var(--teal-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-total-box strong {
  font-size: 1.1rem;
}

.liquidation-form {
  margin-top: 22px;
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, #ffffff, #f7fffd);
}

.liquidation-summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #e9fbf6;
}

.liquidation-summary span,
.liquidation-summary small {
  color: var(--teal-dark);
  font-weight: 800;
}

.liquidation-summary strong {
  color: var(--ink);
}

.proforma-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 255, 0.9));
  box-shadow: var(--soft-shadow);
}

.proforma-head h2 { margin: 6px 0 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.proforma-head p { margin: 0; color: var(--muted); font-weight: 800; }

.module-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0 8px;
}

.proforma-stamp {
  min-width: 150px;
  padding: 14px;
  border: 1px solid rgba(23, 69, 125, 0.18);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  color: var(--brand-blue);
}

.proforma-stamp strong,
.proforma-stamp span { display: block; }
.proforma-stamp span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proforma-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 22px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--soft-shadow);
}

.proforma-form .form-actions { grid-column: 1 / -1; }

.quote-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 69, 125, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 35, 66, 0.12);
  cursor: pointer;
}

.quote-close-button::before,
.quote-close-button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 15px;
  height: 2px;
  margin: auto;
  border-radius: 999px;
  background: var(--brand-blue);
}

.quote-close-button::before { transform: rotate(45deg); }
.quote-close-button::after { transform: rotate(-45deg); }

.quote-close-button:hover {
  border-color: rgba(42, 141, 204, 0.4);
  transform: translateY(-1px);
}

.quote-form-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(24, 33, 47, 0.07);
}

.quote-form-card-main {
  border-color: rgba(23, 69, 125, 0.18);
  background:
    linear-gradient(135deg, rgba(235, 247, 255, 0.9), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.quote-card-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.quote-card-title.with-actions {
  grid-template-columns: 42px 1fr auto;
}

.quote-card-title > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  font-size: .9rem;
  font-weight: 950;
}

.quote-card-title strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
}

.quote-card-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.quote-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.quote-fields .purchase-field {
  grid-column: span 4;
  gap: 5px;
  padding: 9px 10px;
  border-color: rgba(23, 69, 125, 0.11);
  background: rgba(255, 255, 255, 0.92);
}

.quote-fields .purchase-field label {
  font-size: .76rem;
}

.quote-fields .purchase-field input,
.quote-fields .purchase-field select,
.quote-fields .purchase-field textarea {
  min-height: 38px;
  padding: 8px 11px;
  font-size: .93rem;
}

.quote-fields .purchase-field.small {
  grid-column: span 3;
  min-width: 150px;
}

.quote-fields .route-merchandise-field {
  grid-column: span 6;
}

.quote-fields .route-cbm-field {
  grid-column: span 2;
  min-width: 135px;
}

.quote-fields .route-cbm-field input {
  text-align: center;
}

.quote-fields .purchase-field.wide {
  grid-column: span 8;
}

.quote-fields .purchase-field.full {
  grid-column: 1 / -1;
}

.quote-title-field {
  background: linear-gradient(135deg, #ffffff, #eef8ff);
  border-color: rgba(42, 141, 204, 0.22);
}

.quote-title-field input[readonly] {
  color: var(--brand-blue);
  font-size: 1.02rem;
  font-weight: 900;
}

.quote-closing-fields textarea[readonly] {
  min-height: 150px;
  background: #f8fbff;
  color: #4d5b6c;
  font-size: .88rem;
  line-height: 1.45;
}

.quote-main-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(260px, 1.45fr) minmax(190px, 0.9fr) minmax(190px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.quote-main-row .purchase-field {
  grid-column: auto;
  min-width: 0;
}

.quote-load-type {
  grid-column: span 6;
  align-content: center;
  padding: 8px 10px;
}

.quote-load-type .option-checks label {
  min-height: 34px;
  padding: 6px 12px;
  font-size: .86rem;
}

.quote-route-card .quote-fields .purchase-field {
  grid-column: span 3;
}

.quote-load-inline {
  justify-content: flex-end;
}

.quote-load-inline label {
  min-height: 34px;
  padding: 6px 12px;
  font-size: .86rem;
  background: rgba(255, 255, 255, 0.96);
}

.quote-closing-fields {
  align-items: start;
}

.quote-closing-fields .proforma-preview {
  grid-column: 9 / -1;
  grid-row: 1 / span 2;
  align-self: start;
}

.quote-closing-fields .purchase-field.wide {
  grid-column: 1 / 9;
}

.quote-items-table {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(42, 141, 204, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.quote-lines-card .quote-items-table {
  padding: 12px;
  background: #fbfdff;
}

.quote-item-row {
  display: grid;
  grid-template-columns: 1.15fr 1.65fr 1.05fr .55fr .85fr .85fr 38px;
  gap: 8px;
  align-items: center;
}

.quote-route-hidden {
  display: none !important;
}

.quote-client-mode {
  grid-column: 1 / -1;
  display: inline-grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(23, 69, 125, 0.16);
  border-radius: 8px;
  background: #eef6fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quote-client-mode label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-blue);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.quote-client-mode label:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.quote-client-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-client-mode .mode-icon {
  display: none;
}

.quote-client-mode label:has(input:checked) {
  background: #ffffff;
  color: #ffffff;
  color: var(--brand-blue);
  box-shadow: 0 8px 18px rgba(23, 69, 125, 0.14);
}

.quote-client-mode label:has(input:checked)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #17457d, #2a8dcc);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-section-row {
  display: grid;
  place-items: center;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid rgba(23, 69, 125, 0.14);
  border-radius: 8px;
  background: #eef7ff;
  color: var(--brand-blue);
  font-weight: 900;
  text-transform: uppercase;
}

.quote-item-header {
  color: var(--brand-blue);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-item-row input,
.quote-item-row select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: .9rem;
}

.quote-item-row input[readonly] {
  background: #edf5fb;
  color: var(--brand-blue);
  font-weight: 900;
  cursor: not-allowed;
}

.quote-customs-mode.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.quote-item-row .item-remove {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(180, 60, 60, 0.25);
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
  font-size: 0;
  cursor: pointer;
  position: relative;
}

.quote-item-row .item-remove::before,
.quote-item-row .item-remove::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.quote-item-row .item-remove::before { transform: rotate(45deg); }
.quote-item-row .item-remove::after { transform: rotate(-45deg); }

.proforma-preview {
  grid-column: span 4;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.96));
}

.proforma-preview > span {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
}

.proforma-preview div,
.proforma-result-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(42, 141, 204, 0.12);
}

.proforma-preview small,
.proforma-result-grid span { color: var(--muted); font-weight: 800; }
.proforma-preview strong,
.proforma-result-grid strong { color: var(--brand-blue); }
.proforma-preview .total { background: var(--brand-blue); color: #ffffff; }
.proforma-preview .total small,
.proforma-preview .total strong { color: #ffffff; }

.proforma-result { margin-top: 16px; padding: 18px; }
.proforma-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.proforma-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
}

.proforma-list-head h3 { margin: 0; }
.proforma-list-head span { color: var(--muted); font-weight: 900; }
.proforma-list { display: grid; gap: 12px; }

.quote-search-toolbar {
  margin: 0 0 14px;
}

.quote-filter-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(140px, 170px);
  align-items: center;
}

.process-filter-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 210px);
  align-items: center;
}

.workflow-list {
  display: grid;
  gap: 10px;
}

.workflow-card {
  display: grid;
  grid-template-columns: 88px minmax(210px, 1fr) repeat(3, minmax(130px, .72fr)) auto max-content;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fcff);
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.workflow-card:hover {
  border-color: rgba(42, 141, 204, 0.3);
  box-shadow: 0 18px 36px rgba(24, 33, 47, 0.12);
  transform: translateY(-1px);
}

.workflow-code {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  font-weight: 950;
  white-space: nowrap;
}

.workflow-main strong,
.workflow-main span,
.workflow-data small,
.workflow-data strong {
  display: block;
}

.workflow-main strong {
  color: var(--brand-blue);
  font-size: 1rem;
  line-height: 1.2;
}

.workflow-main span,
.workflow-data small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.workflow-data {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7fbff;
}

.workflow-data strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.2;
}

.workflow-state {
  min-width: 104px;
}

.process-record-row {
  display: grid;
  grid-template-columns: minmax(230px, .82fr) minmax(360px, 1.2fr) minmax(150px, auto);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.process-record-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.process-record-main span {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.15;
}

.process-record-main strong {
  color: var(--brand-blue);
  font-size: .98rem;
  line-height: 1.18;
}

.process-record-main small {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.2;
}

.process-record-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: center;
}

.process-record-side .table-actions {
  justify-content: flex-end;
}

.process-stage-pill {
  min-width: 130px;
  justify-content: center;
  border-width: 1px;
}

.process-stage-pill.stage-coordinacion {
  border-color: rgba(42, 141, 204, 0.28);
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  color: var(--brand-blue);
}

.process-stage-pill.stage-embarque {
  border-color: rgba(200, 150, 44, 0.32);
  background: linear-gradient(135deg, #fff8e9, #ffffff);
  color: #8b6508;
}

.process-stage-pill.stage-aduana {
  border-color: rgba(124, 58, 237, 0.26);
  background: linear-gradient(135deg, #f4f0ff, #ffffff);
  color: #5b21b6;
}

.process-stage-pill.stage-despacho {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, #ecfbf6, #ffffff);
  color: var(--teal);
}

.process-stage-pill.stage-finalizado {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  color: #047857;
}

.process-stage-pill.stage-pendiente {
  border-color: rgba(95, 107, 122, 0.22);
  background: #f4f7fb;
  color: var(--muted);
}

.proforma-card {
  display: block;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.proforma-card:hover {
  border-color: rgba(42, 141, 204, 0.3);
  box-shadow: 0 18px 36px rgba(24, 33, 47, 0.12);
  transform: translateY(-1px);
}

.quote-record-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(290px, .95fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.quote-record-main {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  align-content: center;
  min-height: 46px;
}

.quote-record-main .status-pill {
  grid-column: 2;
  justify-self: start;
}

.quote-record-main > div:not(.quote-record-code) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 42px;
}

.quote-record-code {
  min-width: 72px;
  width: max-content;
  height: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  font-size: clamp(.72rem, 1vw, .9rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(23, 69, 125, 0.18);
}

.proforma-card span,
.proforma-card small { display: block; color: var(--muted); font-weight: 800; }
.proforma-card span,
.proforma-card small {
  line-height: 1.25;
}
.proforma-card strong { display: block; margin: 2px 0; color: var(--brand-blue); font-size: .98rem; line-height: 1.15; }

.quote-client-line {
  display: flex !important;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
  margin: 0 !important;
}

.quote-status-light {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(244, 183, 63, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 231, 0.9);
  color: #8a5a00 !important;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
}

.quote-status-light::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #f4b73f;
  box-shadow: 0 0 0 3px rgba(244, 183, 63, 0.14);
}

.quote-status-light.approved {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(236, 253, 245, 0.96);
  color: #047857 !important;
}

.quote-status-light.approved::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16), 0 0 10px rgba(16, 185, 129, 0.45);
}

.quote-status-light.denied {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(255, 241, 241, 0.96);
  color: var(--red) !important;
}

.quote-status-light.denied::before {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14), 0 0 10px rgba(220, 38, 38, 0.32);
}

.quote-comment-preview {
  width: min(100%, 430px);
  margin: 6px 0 0;
  padding: 7px 9px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-left: 3px solid var(--brand-sky);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff, #ffffff);
  color: #4c5d73;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proforma-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.process-card dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proforma-card dl div { min-width: 0; padding: 7px 9px; border-radius: 8px; background: #f7fbff; }
.proforma-card dt { color: var(--muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.proforma-card dd { margin: 3px 0 0; color: var(--ink); font-size: .92rem; font-weight: 900; line-height: 1.22; overflow-wrap: normal; word-break: normal; }
.proforma-card dl .total { background: #eef7ff; }
.proforma-card dl .total dd {
  white-space: nowrap;
  font-size: .9rem;
}
.proforma-card .table-actions {
  min-width: max-content;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.proforma-card .table-actions .icon-button {
  width: 30px;
  height: 30px;
}

.proforma-card .table-actions .icon-button svg {
  width: 15px;
  height: 15px;
}

.chat-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 255, 0.9));
  box-shadow: var(--soft-shadow);
}

.chat-admin-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.chat-admin-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.chat-admin-badge {
  min-width: 112px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(23, 69, 125, 0.18);
}

.chat-admin-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.chat-admin-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(42, 141, 204, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(24, 33, 47, 0.08);
}

.chat-admin-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef7ff;
  color: var(--brand-blue);
  font-weight: 900;
}

.chat-admin-content {
  display: grid;
  gap: 12px;
}

.chat-admin-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.chat-admin-top strong,
.chat-admin-top span {
  display: block;
}

.chat-admin-top span,
.chat-admin-top time {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.chat-thread {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 12px;
}

.chat-question,
.chat-answer {
  padding: 12px;
  border-radius: 8px;
}

.chat-question {
  border: 1px solid rgba(42, 141, 204, 0.18);
  background: #f7fbff;
}

.chat-answer {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #f0fdfa;
}

.chat-question small,
.chat-answer small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.chat-question p,
.chat-answer p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.chat-admin-actions {
  display: flex;
  align-items: center;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(42, 141, 204, 0.3);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--muted);
  font-weight: 900;
}

.shipment-items {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #fafdff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.shipment-items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shipment-items-head strong {
  color: var(--brand-blue);
}

.shipment-items-table {
  overflow-x: auto;
}

.shipment-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(110px, 1fr) minmax(90px, .8fr) minmax(90px, .8fr) minmax(120px, 1fr) minmax(120px, 1fr) 42px;
  gap: 10px;
  min-width: 900px;
  align-items: center;
  margin-top: 8px;
}

.shipment-item-header {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shipment-item-row input {
  min-width: 0;
}

.item-remove {
  min-height: 42px;
  border: 1px solid rgba(180, 60, 60, 0.25);
  border-radius: 8px;
  background: #fff5f5;
  font-weight: 900;
  cursor: pointer;
}

.invoice-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.client-shipment-card {
  overflow: hidden;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.client-shipment-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, max-content);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #f2f9ff, #ffffff);
}

.client-shipment-card summary::-webkit-details-marker {
  display: none;
}

.client-shipment-card summary span,
.client-shipment-card summary small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.client-shipment-card summary span {
  color: var(--brand-blue);
  font-size: .78rem;
  text-transform: uppercase;
}

.client-shipment-card summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.client-shipment-card summary > div:last-child {
  text-align: right;
}

.client-shipment-detail {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.liquidation-card {
  border-color: rgba(42, 141, 204, 0.28);
}

.liquidation-card summary {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(23, 69, 125, 0.08), rgba(42, 141, 204, 0.08)),
    #ffffff;
}

.liquidation-card summary > div:first-child {
  min-width: 0;
}

.liquidation-card summary > div:last-child {
  min-width: 0;
  width: min(220px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(23, 69, 125, 0.12);
  border-radius: 8px;
  background: #f5fbff;
}

.liquidation-card .client-shipment-detail {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.liquidation-card .invoice-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.liquidation-card .invoice-grid > div {
  min-height: 108px;
  border: 1px solid rgba(23, 69, 125, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 69, 125, 0.06);
}

.liquidation-card .invoice-grid > div,
.liquidation-card .invoice-lines div,
.liquidation-card .invoice-total div {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.liquidation-card .invoice-grid > div:hover,
.liquidation-card .invoice-lines div:hover,
.liquidation-card .invoice-total div:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 141, 204, 0.28);
  box-shadow: 0 16px 30px rgba(23, 69, 125, 0.11);
}

.invoice-card {
  overflow: hidden;
  border: 1px solid rgba(23, 69, 125, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 69, 125, 0.98), rgba(42, 141, 204, 0.94)),
    var(--brand-blue);
}

.invoice-head h3 {
  margin: 4px 0;
  font-size: 1.55rem;
}

.invoice-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.invoice-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-status {
  min-width: 180px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  text-align: right;
  background: rgba(255, 255, 255, 0.12);
}

.invoice-status span,
.invoice-status small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.invoice-status strong {
  display: block;
  margin: 4px 0;
  font-size: 1.35rem;
}

.invoice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.invoice-grid > div {
  min-height: 96px;
  padding: 15px;
  background: #fafdff;
}

.invoice-grid small,
.invoice-grid span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.invoice-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.invoice-supplier {
  display: grid;
  gap: 3px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #f2f9ff;
}

.invoice-supplier span {
  color: var(--brand-blue);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-supplier small {
  color: var(--muted);
  font-weight: 700;
}

.invoice-items {
  padding: 16px 20px 4px;
}

.invoice-items-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.invoice-items-header {
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-items-row strong {
  text-align: right;
}

.invoice-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0;
  padding: 16px 20px 4px;
}

.invoice-lines div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, max-content);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(95, 107, 122, 0.24);
}

.invoice-lines span,
.invoice-total span {
  color: var(--muted);
  font-weight: 700;
}

.invoice-lines strong,
.invoice-total strong {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.invoice-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  padding: 16px 20px;
}

.liquidation-card .invoice-lines {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 16px 0 0;
}

.liquidation-card .invoice-lines div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(23, 69, 125, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 69, 125, 0.06);
}

.liquidation-card .invoice-lines span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.liquidation-card .invoice-lines strong {
  align-self: end;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.1;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.liquidation-card .invoice-total {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 16px 0 0;
}

.liquidation-card .invoice-total div {
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 92px;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
}

.liquidation-card .invoice-total strong {
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.invoice-total div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, max-content);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #eef7ff;
}

.invoice-total div:last-child {
  background: #e9fbf6;
}

.invoice-total div:last-child strong {
  color: var(--teal-dark);
  font-size: 1.12rem;
}

.liquidation-card .invoice-total div:last-child {
  background: linear-gradient(135deg, #e8fbf6, #ffffff);
}

.liquidation-card .invoice-total div:last-child strong {
  color: var(--teal-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
}

.invoice-notes {
  margin: 0 20px 16px;
  padding: 12px;
  border-left: 4px solid var(--brand-sky);
  border-radius: 6px;
  background: #f7fbff;
  color: var(--muted);
  font-weight: 700;
}

.invoice-actions {
  padding: 0 20px 20px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(23, 69, 125, 0.24);
  border-radius: 8px;
  background: #fafdff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.form-title {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 141, 204, 0.18);
}

.form-title strong {
  font-size: 1.1rem;
}

.form-title span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.module-checks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 10px;
}

.module-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.module-check input {
  width: auto;
  accent-color: var(--brand-blue);
}

.module-check span {
  font-weight: 800;
}

.module-check:has(input:checked) {
  border-color: var(--brand-sky);
  background: #e7f4ff;
  box-shadow: 0 10px 22px rgba(42, 141, 204, 0.12);
}

.module-check:hover {
  transform: translateY(-2px);
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  vertical-align: top;
}
th {
  background: linear-gradient(135deg, #e7f4ff, #eef7f5);
  color: var(--brand-blue);
}

.table-actions,
.chat-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.workflow-card .table-actions,
.proforma-card .table-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.table-actions button,
.chat-admin-actions button {
  border: 1px solid rgba(42, 141, 204, 0.25);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--brand-blue);
  padding: 7px 9px;
  font-weight: 800;
  cursor: pointer;
}

.table-actions .icon-button,
.chat-admin-actions .icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--brand-blue);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.table-actions .icon-button svg,
.chat-admin-actions .icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-actions .icon-button:hover,
.chat-admin-actions .icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 141, 204, 0.42);
  box-shadow: 0 10px 18px rgba(23, 69, 125, 0.12);
}

.table-actions .danger,
.chat-admin-actions .danger {
  border-color: rgba(180, 60, 60, 0.25);
  background: #fff5f5;
  color: var(--red);
}

.muted { color: var(--muted); }
.editor-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
#contentEditor,
#galleryAdminGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.editor-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(42, 141, 204, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--soft-shadow);
}

.editor-card-head {
  display: grid;
  gap: 6px;
}

.editor-card-head span {
  border-radius: 999px;
  background: #e7f4ff;
  color: var(--brand-blue);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.editor-card-head strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.editor-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
}

.editor-card textarea {
  min-height: 92px;
  resize: vertical;
}

.gallery-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  margin: 14px 0;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-admin-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery-admin-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.check-row input {
  width: auto;
}
.danger { color: var(--red); }

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 15, 25, 0.58);
  backdrop-filter: blur(6px);
}

#dialogOverlay {
  z-index: 140;
}

#recordOverlay {
  z-index: 90;
}

.dialog-box {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(42, 141, 204, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8fcff 0, #ffffff 145px),
    var(--white);
  box-shadow: 0 28px 80px rgba(5, 18, 34, 0.3);
}

.dialog-box h3,
.dialog-box p {
  margin: 0;
}

.dialog-box h3 {
  padding: 22px 24px 0;
  color: var(--brand-blue);
  font-size: 1.28rem;
}

.dialog-box p {
  padding: 0 24px;
  color: var(--muted);
  font-weight: 700;
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
}

.dialog-text {
  display: block;
  line-height: 1.45;
}

.setup-link-box {
  display: block;
  max-height: 94px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(42, 141, 204, 0.24);
  border-radius: 8px;
  background: #f4f9ff;
  color: var(--brand-blue);
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-all;
}

.dialog-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog-box input,
.dialog-box select,
.dialog-box textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 69, 125, 0.18);
  border-radius: 8px;
  background: #fafdff;
  color: var(--ink);
  font-weight: 800;
}

.dialog-box textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}

#dialogInputWrap,
#dialogTextareaWrap,
#dialogSelectWrap {
  padding: 0 24px;
}

.dialog-box select:focus,
.dialog-box input:focus,
.dialog-box textarea:focus {
  outline: 2px solid rgba(42, 141, 204, 0.22);
  border-color: var(--brand-sky);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding: 16px 24px;
  border-top: 1px solid rgba(42, 141, 204, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.dialog-actions button {
  border: 1px solid rgba(42, 141, 204, 0.25);
  border-radius: 8px;
  padding: 10px 13px;
  background: #f8fbff;
  color: var(--brand-blue);
  font-weight: 900;
  cursor: pointer;
}

.dialog-actions button:last-child {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 18px 46px rgba(5, 18, 34, 0.18);
  }
  .main-nav.open { display: flex; }
  .main-nav.open a {
    color: var(--ink);
  }
  .main-nav.open .nav-login {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  }
  .menu-toggle {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 9px 14px;
    font-size: 0.96rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
  }
  .topbar.scrolled .menu-toggle {
    border-color: rgba(42, 141, 204, 0.18);
    background: #ffffff;
    color: var(--brand-blue);
  }
  .split,
  .intro-band,
  .modern-hero,
  .process-section,
  .manager,
  .contact,
  .login-shell,
  .dashboard-page { grid-template-columns: 1fr; }
  .content-grid,
  .service-grid,
  .gallery-grid,
  .dashboard-grid,
  .charts-grid,
  .contact-fields,
  .editor-grid,
  .management-metrics,
  .management-toolbar,
  .quote-filter-toolbar,
  .process-filter-toolbar,
  .welcome-process-stats,
  .stats { grid-template-columns: 1fr; }
  .dashboard { padding: 18px; }
  .sidebar { position: static; height: auto; }
  .inline-form { grid-template-columns: 1fr; }
  .user-form,
  .shipment-form,
  .proforma-form,
  .quote-fields,
  .quote-main-row,
  .quote-card-title.with-actions,
  .purchase-field,
  .purchase-field.wide,
  .proforma-preview,
  .purchase-total-box,
  .invoice-head,
  .invoice-grid,
  .invoice-lines,
  .invoice-total,
  .gallery-form,
  .module-checks { grid-template-columns: 1fr; }
  .purchase-field,
  .purchase-field.wide,
  .quote-fields .purchase-field,
  .quote-fields .purchase-field.small,
  .quote-fields .purchase-field.wide,
  .quote-closing-fields .proforma-preview,
  .proforma-preview,
  .purchase-total-box { grid-column: 1 / -1; }
  .quote-item-row {
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid rgba(42, 141, 204, 0.14);
    border-radius: 8px;
    background: #ffffff;
  }
  .quote-client-mode {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .quote-customs-mode.is-hidden { display: none; }
  .quote-item-header { display: none; }
  .quote-card-title.with-actions .section-actions { grid-column: 1 / -1; }
  .shipment-form,
  .proforma-form { padding: 16px; gap: 14px; }
  .proforma-head,
  .proforma-card,
  .welcome-process-card,
  .workflow-card,
  .chat-admin-card,
  .chat-thread { grid-template-columns: 1fr; }
  .welcome-process-code,
  .welcome-process-stage {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }
  .process-detail-grid,
  .quote-detail-head,
  .quote-detail-row,
  .sequence-card,
  .document-list.with-preview,
  .document-card,
  .document-list.with-preview .document-card {
    grid-template-columns: 1fr;
  }
  .quote-record-main { grid-template-columns: max-content minmax(0, 1fr); }
  .quote-record-code { min-width: 72px; width: max-content; height: 42px; }
  .proforma-result-grid,
  .proforma-card dl { grid-template-columns: 1fr; }
  .chat-admin-head,
  .chat-admin-top { align-items: flex-start; flex-direction: column; }
  .purchase-section-title.with-action { align-items: stretch; flex-direction: column; }
  .invoice-head { display: grid; }
  .invoice-status { text-align: left; }
  .client-shipment-card summary {
    grid-template-columns: 1fr;
  }
  .client-shipment-card summary > div:last-child {
    text-align: left;
  }
  .invoice-items-row { grid-template-columns: 1fr; }
  .invoice-lines div,
  .invoice-total div {
    grid-template-columns: minmax(0, 1fr) minmax(88px, max-content);
  }
  .admin-gallery-grid { grid-template-columns: 1fr; }
  .profile-form { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: 1fr; }
  .person-cell.large { align-items: center; }
  .media-admin-card {
    grid-template-columns: 1fr;
  }
  .media-thumb {
    width: 100%;
    height: 150px;
  }
  .media-actions {
    justify-content: flex-start;
  }
  .hero {
    min-height: 82vh;
    padding-top: 96px;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.8rem);
  }
  .hero-trust {
    display: grid;
  }
  .hero-trust span {
    min-width: 0;
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    display: none;
  }
  .step {
    min-height: 76px;
  }
  .step-info { grid-column: auto; }
  .process-section {
    background-position: center;
  }
  .manager-photo,
  .manager-photo img {
    min-height: 340px;
  }
  .manager-photo::before {
    inset: 12px -8px -8px 12px;
  }
  .manager-copy {
    padding: 22px;
  }
  .contact-band {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-social-panel {
    grid-template-columns: 1fr;
  }
  .contact .form-card {
    max-width: none;
    justify-self: stretch;
  }
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .chatbot-widget {
    right: 12px;
    bottom: 86px;
  }
  footer { grid-template-columns: 1fr; }
  .footer-copy { justify-self: start; }
}
