:root {
  --vcmx-bg: #0d0d0f;
  --vcmx-bg-soft: #141417;
  --vcmx-bg-panel: #1b1b1f;
  --vcmx-card: #ffffff;
  --vcmx-card-soft: #f6f7f8;
  --vcmx-ink: #f5f5f5;
  --vcmx-ink-dark: #111214;
  --vcmx-muted: #a8adb7;
  --vcmx-muted-dark: #525866;
  --vcmx-accent: #cc1f2f;
  --vcmx-accent-dark: #8b1520;
  --vcmx-accent-soft: rgba(204, 31, 47, 0.14);
  --vcmx-border: rgba(255, 255, 255, 0.08);
  --vcmx-border-dark: #d9dde3;
  --vcmx-success-bg: #eef8f1;
  --vcmx-success-ink: #0f7b47;
  --vcmx-error-bg: #fff0ef;
  --vcmx-error-ink: #b42318;
  --vcmx-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

body.vcmx-public-app {
  background:
    radial-gradient(circle at top right, rgba(204, 31, 47, 0.16), transparent 24%),
    linear-gradient(180deg, #0b0b0d 0%, #111216 100%);
}

#vcmx-login,
#vcmx-app {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.vcmx-shell {
  width: min(calc(100% - clamp(1rem, 2.5vw, 2rem)), 1600px);
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  color: var(--vcmx-ink);
  background:
    radial-gradient(circle at top right, rgba(204, 31, 47, 0.08), transparent 22%),
    linear-gradient(180deg, #0d0d10 0%, #111216 100%);
}

body.vcmx-app-shell .vcmx-shell {
  display: block;
  gap: 0;
  align-items: start;
  width: min(calc(100% - clamp(1rem, 2.5vw, 2rem)), 1720px);
}

body.vcmx-app-shell .vcmx-sidebar {
  display: none;
}

body.vcmx-app-shell .vcmx-sidebar-brand {
  display: grid;
  gap: 0.75rem;
}

body.vcmx-app-shell .vcmx-brand-lockup h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.05;
}

body.vcmx-app-shell .vcmx-sidebar .vcmx-logout {
  display: none;
}

body.vcmx-app-shell .vcmx-topbar {
  margin-bottom: 1rem;
}

body.vcmx-app-shell .vcmx-main-area {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

body.vcmx-app-shell .vcmx-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

body.vcmx-app-shell .vcmx-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem;
  margin: 0;
  background: rgba(16, 17, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.35rem;
  box-shadow: var(--vcmx-shadow);
}

body.vcmx-app-shell .vcmx-nav button {
  width: auto;
  justify-content: center;
  text-align: center;
  min-height: 3.15rem;
  padding-inline: 1rem;
  flex: 1 1 8.2rem;
}

body.vcmx-app-shell .vcmx-topbar-copy {
  max-width: 52rem;
}

body.vcmx-app-shell .vcmx-topbar-userline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--vcmx-muted);
}

body.vcmx-app-shell .vcmx-topbar-userline-sep {
  color: rgba(255, 255, 255, 0.22);
}

body.vcmx-shell-body .vcmx-dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

body.vcmx-shell-body .vcmx-stat-link {
  appearance: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  min-height: 8.2rem;
  padding: 1rem 1rem 0.95rem;
  display: grid;
  gap: 0.4rem;
  border-radius: 1.25rem;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.vcmx-shell-body .vcmx-stat-link span {
  font-size: 0.74rem;
}

body.vcmx-shell-body .vcmx-stat-link strong {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-top: 0;
}

body.vcmx-shell-body .vcmx-stat-link small {
  color: var(--vcmx-muted);
  font-size: 0.82rem;
}

body.vcmx-shell-body .vcmx-stat-link:hover,
body.vcmx-shell-body .vcmx-stat-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(204, 31, 47, 0.42);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.28);
  outline: none;
}

body.vcmx-app-shell .vcmx-topbar .vcmx-login-brand img,
body.vcmx-app-shell .vcmx-topbar img,
body.vcmx-app-shell .vcmx-topbar svg {
  max-width: 160px;
}

@media (min-width: 1200px) {
  .vcmx-shell {
    display: grid;
    grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
    grid-template-areas:
      "topbar topbar"
      "nav feedback"
      "nav views";
    gap: 1rem;
    align-items: start;
  }

  .vcmx-shell > .vcmx-topbar {
    grid-area: topbar;
    margin-bottom: 0;
  }

  .vcmx-shell > .vcmx-nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }

  .vcmx-shell > .vcmx-feedback {
    grid-area: feedback;
    margin-bottom: 0;
  }

  .vcmx-shell > #vcmx-views {
    grid-area: views;
    min-width: 0;
  }
}

.vcmx-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 40%),
    linear-gradient(180deg, #121214 0%, #0b0b0d 100%);
}

.vcmx-login-card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, rgba(25, 25, 28, 0.96), rgba(18, 18, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--vcmx-shadow);
  color: var(--vcmx-ink);
  text-align: left;
}

.vcmx-login-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--vcmx-accent);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.vcmx-login-card h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.02;
}

.vcmx-login-subtitle {
  margin: 14px 0 22px;
  color: var(--vcmx-muted);
  font-size: 18px;
  line-height: 1.5;
}

.vcmx-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.vcmx-login-form,
.vcmx-form {
  display: grid;
  gap: 14px;
}

.vcmx-login-form label,
.vcmx-form label,
.vcmx-card h3 {
  color: inherit;
  font-weight: 700;
}

.vcmx-login-form input[type="text"],
.vcmx-login-form input[type="password"],
.vcmx-form input,
.vcmx-form select,
.vcmx-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--vcmx-border-dark);
  background: #fff;
  color: var(--vcmx-ink-dark);
  font-size: 16px;
  box-sizing: border-box;
}

.vcmx-login-form input:focus,
.vcmx-form input:focus,
.vcmx-form select:focus,
.vcmx-form textarea:focus {
  outline: 2px solid rgba(204, 31, 47, 0.2);
  border-color: var(--vcmx-accent);
}

.vcmx-login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vcmx-ink);
  font-weight: 500;
}

.vcmx-login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.vcmx-login-form button,
.vcmx-nav button,
.vcmx-form button,
.vcmx-secondary-button,
.vcmx-list-item button {
  appearance: none;
  border: 0;
  border-radius: 18px;
  min-height: 54px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  cursor: pointer;
}

.vcmx-login-form button,
.vcmx-form button,
.vcmx-nav button.is-active,
.vcmx-list-item button {
  background: linear-gradient(180deg, #d51e31 0%, #b81627 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.9);
}

.vcmx-login-form button:hover,
.vcmx-form button:hover,
.vcmx-nav button:hover,
.vcmx-secondary-button:hover,
.vcmx-list-item button:hover {
  transform: translateY(-1px);
}

.vcmx-secondary-button,
.vcmx-nav button:not(.is-active) {
  background: #f1f2f4;
  color: #20232b;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.vcmx-warning-button,
.vcmx-danger-button {
  appearance: none;
  border: 0;
  border-radius: 18px;
  min-height: 54px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  cursor: pointer;
}

.vcmx-warning-button {
  background: #f6b73c;
  color: #20232b;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.vcmx-danger-button {
  background: linear-gradient(180deg, #e84b5f 0%, #c62828 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.9);
}

.vcmx-collaborator-card {
  gap: 16px;
}

.vcmx-collaborator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vcmx-collaborator-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.vcmx-collaborator-status-active {
  background: rgba(21, 140, 72, 0.16);
  color: #7dd99a;
}

.vcmx-collaborator-status-blocked {
  background: rgba(246, 183, 60, 0.18);
  color: #f6cf75;
}

.vcmx-collaborator-status-deleted {
  background: rgba(232, 75, 95, 0.16);
  color: #ff9ca8;
}

.vcmx-import-card { gap: 18px; }
.vcmx-import-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.vcmx-import-panel, .vcmx-import-summary-card, .vcmx-import-preview-card { display: grid; gap: 14px; }
.vcmx-import-panel label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.vcmx-import-panel input[type="file"], .vcmx-import-panel select { width: 100%; }
.vcmx-import-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vcmx-import-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vcmx-import-stat { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.vcmx-import-stat span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.vcmx-import-stat strong { font-size: 22px; line-height: 1; }
.vcmx-import-empty { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.12); }
.vcmx-import-preview-table-wrap { overflow: auto; }
.vcmx-import-preview-table { min-width: 900px; }
.vcmx-import-status { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.vcmx-import-status.is-new, .vcmx-import-status.is-ready { background: rgba(44, 157, 73, 0.18); color: #8fe4a8; }
.vcmx-import-status.is-update { background: rgba(45, 117, 219, 0.18); color: #9ec4ff; }
.vcmx-import-status.is-duplicate, .vcmx-import-status.is-skipped { background: rgba(255, 193, 7, 0.18); color: #ffd96a; }
.vcmx-import-status.is-conflict, .vcmx-import-status.is-error { background: rgba(232, 75, 95, 0.18); color: #ff9ca8; }
.vcmx-import-status.is-neutral { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (max-width: 960px) { .vcmx-import-grid { grid-template-columns: 1fr; } .vcmx-import-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vcmx-import-summary-grid { grid-template-columns: 1fr; } .vcmx-import-actions { flex-direction: column; } }

.vcmx-collaborator-modal-card {
  width: min(100%, 960px);
}

.vcmx-collaborator-modal .vcmx-form input,
.vcmx-collaborator-modal .vcmx-form select {
  background: #fff;
}

.vcmx-login-links {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.vcmx-login-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #c8102e;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.9);
}

.vcmx-login-portal:hover {
  filter: brightness(1.08);
}

.vcmx-login-links a,
.vcmx-logout {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.vcmx-topbar,
.vcmx-nav,
.vcmx-card,
.vcmx-form,
.vcmx-list-item {
  border-radius: 28px;
}

.vcmx-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 24px 22px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at right center, rgba(204, 31, 47, 0.48), transparent 26%),
    linear-gradient(180deg, #1b1b1f 0%, #252529 100%);
  border: 1px solid var(--vcmx-border);
  box-shadow: var(--vcmx-shadow);
}

.vcmx-topbar h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.02;
}

.vcmx-topbar-copy {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--vcmx-muted);
  font-size: 18px;
}

.vcmx-topbar .vcmx-login-brand img,
.vcmx-topbar img,
.vcmx-topbar svg {
  max-width: 160px;
}

.vcmx-logout {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
  margin-top: 10px;
}

.vcmx-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  padding: 10px;
  margin: 0 0 18px;
  background: rgba(18, 18, 21, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--vcmx-shadow);
}

.vcmx-nav button:disabled,
.vcmx-form button:disabled,
.vcmx-secondary-button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.vcmx-feedback {
  min-height: 24px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}

.vcmx-feedback:empty {
  display: none;
}

.vcmx-feedback.is-success {
  color: var(--vcmx-success-ink);
  background: var(--vcmx-success-bg);
}

.vcmx-feedback.is-error {
  color: var(--vcmx-error-ink);
  background: var(--vcmx-error-bg);
}

#vcmx-feedback {
  display: none !important;
}

.vcmx-toast-root {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 16px;
}

.vcmx-toast-root[hidden] {
  display: none;
}

.vcmx-toast {
  pointer-events: auto;
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transform: translateY(0) scale(1);
  animation: vcmx-toast-in 180ms ease-out;
}

.vcmx-toast__message {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.vcmx-toast__close {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vcmx-toast--success {
  color: #0f5132;
  background: linear-gradient(180deg, #ecfdf3 0%, #d1fae5 100%);
}

.vcmx-toast--error {
  color: #7f1d1d;
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
}

.vcmx-toast--warning {
  color: #7c2d12;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.vcmx-toast--info {
  color: #0f172a;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

@keyframes vcmx-toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vcmx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.vcmx-stat,
.vcmx-card,
.vcmx-form,
.vcmx-list-item {
  background: linear-gradient(180deg, #17181c 0%, #111216 100%);
  color: var(--vcmx-ink);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.vcmx-stat {
  padding: 20px 18px;
  border-radius: 24px;
}

.vcmx-stat span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vcmx-muted);
  font-weight: 800;
}

.vcmx-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 46px;
  line-height: 1;
  color: var(--vcmx-accent);
}

.vcmx-card,
.vcmx-form,
.vcmx-list-item {
  padding: 20px;
  margin-bottom: 14px;
}

.vcmx-grid {
  display: grid;
  gap: 14px;
}

.vcmx-inline-search,
.vcmx-action-row {
  display: grid;
  gap: 10px;
  align-items: end;
}

.vcmx-inline-search {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 8px;
}

.vcmx-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vcmx-list-item strong {
  color: var(--vcmx-accent);
  font-size: 22px;
}

.vcmx-history {
  display: grid;
  gap: 12px;
}

.vcmx-list-item p {
  margin: 8px 0 0;
  color: var(--vcmx-muted);
}

.vcmx-empty-state {
  text-align: center;
  padding: 30px 22px;
}

.vcmx-empty-state h3 {
  margin: 0;
}

.vcmx-empty-state p {
  margin: 10px 0 0;
  color: var(--vcmx-muted);
}

.vcmx-ticket-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.vcmx-ticket-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vcmx-border-dark);
}

.vcmx-qr-thumb {
  width: 108px;
  height: 108px;
  border-radius: 20px;
  border: 1px solid var(--vcmx-border-dark);
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}

.vcmx-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vcmx-photo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--vcmx-ink);
  text-decoration: none;
}

.vcmx-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.vcmx-photo-actions {
  margin: 8px 0 6px;
}

.vcmx-photo-count {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--vcmx-muted);
}

.vcmx-receive-camera-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #09090b;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-receive-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vcmx-receive-camera-target {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.vcmx-receive-camera-shot,
#vcmx-receive-camera-done {
  min-height: 56px;
  padding: 14px 22px;
  font-size: 1rem;
  border-radius: 18px;
}

.vcmx-receive-camera-shot {
  flex: 1 1 220px;
}

.vcmx-photo-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.vcmx-photo-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vcmx-photo-card span,
.vcmx-photo-chip small,
.vcmx-muted-copy {
  color: var(--vcmx-muted);
  font-size: 13px;
}

.vcmx-section-head,
.vcmx-request-detail-head,
.vcmx-request-detail-grid,
.vcmx-request-action-row {
  display: flex;
  gap: 14px;
}

.vcmx-section-head,
.vcmx-request-detail-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.vcmx-requested-list {
  display: grid;
  gap: 14px;
}

.vcmx-request-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--vcmx-card);
  color: var(--vcmx-ink-dark);
  border: 1px solid var(--vcmx-border-dark);
  box-shadow: 0 8px 24px rgba(17, 18, 20, 0.06);
}

.vcmx-request-item.is-selected {
  border-color: var(--vcmx-accent);
  box-shadow: 0 0 0 2px rgba(204, 31, 47, 0.14), 0 12px 28px rgba(17, 18, 20, 0.08);
}

.vcmx-request-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vcmx-accent);
  font-weight: 800;
}

.vcmx-request-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.16);
}

.vcmx-request-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--vcmx-ink-dark);
}

.vcmx-request-main p {
  margin: 4px 0 0;
  color: var(--vcmx-muted-dark);
}

.vcmx-request-actions {
  display: flex;
  justify-content: flex-end;
}

.vcmx-request-open,
.vcmx-request-action {
  min-height: 46px;
  border-radius: 14px;
}

.vcmx-request-open {
  min-width: 112px;
}

.vcmx-request-detail {
  background: linear-gradient(180deg, #111216 0%, #17181c 100%);
  color: var(--vcmx-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-request-detail-grid {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.vcmx-request-detail-grid article {
  flex: 1 1 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-request-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--vcmx-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.vcmx-request-detail-grid strong {
  color: #fff;
  font-size: 16px;
}

.vcmx-request-detail-section {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-request-detail-section h4 {
  margin: 0 0 10px;
}

.vcmx-request-detail-section p {
  margin: 0 0 6px;
  color: var(--vcmx-muted);
}

.vcmx-request-action-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.vcmx-request-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(204, 31, 47, 0.12);
  color: var(--vcmx-accent);
  font-weight: 800;
  white-space: nowrap;
}

.vcmx-request-badge.is-delivered {
  background: var(--vcmx-success-bg);
  color: var(--vcmx-success-ink);
}

.vcmx-request-badge.is-cancelled,
.vcmx-request-badge.is-no_recogido,
.vcmx-request-badge.is-reestacionado {
  background: rgba(255, 190, 0, 0.14);
  color: #9a6400;
}

.vcmx-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.vcmx-dashboard-main {
  display: grid;
  gap: 18px;
}

.vcmx-dashboard-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 18px;
  align-self: start;
}

.vcmx-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(180deg, #141416 0%, #0f1012 100%);
  min-height: 180px;
}

.vcmx-hero-card h2 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 54px);
}

.vcmx-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: min(100%, 380px);
  max-width: 420px;
}

.vcmx-quick-action {
  min-height: 64px;
  border-radius: 18px;
  background: #1d2026;
  color: #f5f5f5;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-request-table-wrap {
  overflow-x: auto;
}

.vcmx-request-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.vcmx-request-table th,
.vcmx-request-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.2;
}

.vcmx-request-table th {
  color: var(--vcmx-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vcmx-request-row:hover {
  background: rgba(204, 31, 47, 0.08);
}

.vcmx-request-row.is-selected {
  background: rgba(204, 31, 47, 0.12);
}

.vcmx-request-row-normal {
  background: rgba(255, 255, 255, 0.01);
}

.vcmx-request-row-5 {
  background: rgba(255, 205, 86, 0.10);
}

.vcmx-request-row-10 {
  background: rgba(255, 153, 0, 0.12);
}

.vcmx-request-row-15 {
  background: rgba(204, 31, 47, 0.18);
}

.vcmx-request-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(64, 168, 74, 0.16);
  color: #a8ff9e;
  font-size: 12px;
  font-weight: 800;
}

.vcmx-countdown {
  color: #ffb347;
  font-size: 18px;
}

.vcmx-request-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vcmx-request-alert-normal {
  background: rgba(255, 255, 255, 0.08);
  color: #d9dde5;
}

.vcmx-request-alert-5 {
  background: rgba(255, 205, 86, 0.18);
  color: #ffd86b;
}

.vcmx-request-alert-10 {
  background: rgba(255, 153, 0, 0.18);
  color: #ffb347;
}

.vcmx-request-alert-15 {
  background: rgba(204, 31, 47, 0.20);
  color: #ff8b95;
}

.vcmx-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vcmx-side-metric {
  padding: 14px;
  border-radius: 18px;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.vcmx-side-metric span {
  display: block;
  color: var(--vcmx-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vcmx-side-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  color: #fff;
}

.vcmx-dashboard-main .vcmx-request-detail {
  margin-top: 0;
}

.vcmx-request-detail {
  background: linear-gradient(180deg, #121318 0%, #0d0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.vcmx-requested-panel,
.vcmx-dashboard-main > .vcmx-card {
  overflow: hidden;
}

.vcmx-requested-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: min(100%, 420px);
}

.vcmx-requested-view {
  display: grid;
  gap: 18px;
}

.vcmx-requested-screen-mode .vcmx-topbar,
.vcmx-requested-screen-mode .vcmx-nav,
.vcmx-requested-screen-mode .vcmx-feedback {
  display: none !important;
}

.vcmx-requested-screen-mode .vcmx-shell {
  width: min(calc(100vw - clamp(0.75rem, 1.8vw, 1.5rem)), 1720px);
  max-width: none;
  padding: clamp(0.75rem, 1.5vw, 1.2rem);
}

.vcmx-requested-screen-mode #vcmx-views {
  min-height: calc(100vh - 36px);
}

.vcmx-requested-screen-shell {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 36px);
  width: 100%;
}

.vcmx-requested-screen-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 24px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right center, rgba(204, 31, 47, 0.36), transparent 28%),
    linear-gradient(180deg, #131419 0%, #0d0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--vcmx-shadow);
}

.vcmx-requested-screen-hero h2 {
  margin: 4px 0 0;
  font-size: clamp(34px, 5vw, 56px);
}

.vcmx-requested-screen-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
  color: var(--vcmx-muted);
}

.vcmx-requested-screen-meta strong {
  color: #fff;
  font-size: clamp(24px, 4vw, 40px);
}

.vcmx-requested-screen-list {
  display: block;
}

.vcmx-requested-screen-table-wrap {
  overflow-x: auto;
}

.vcmx-requested-screen-table {
  min-width: 1280px;
}

.vcmx-request-table th,
.vcmx-request-table td {
  white-space: nowrap;
}

.vcmx-report-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vcmx-report-form {
  align-items: end;
}

.vcmx-report-type-field {
  grid-column: 1 / -1;
}

.vcmx-report-type-field select {
  min-width: min(100%, 420px);
}

.vcmx-report-table-card {
  overflow: hidden;
}

.vcmx-report-table-wrap {
  overflow-x: auto;
}

.vcmx-report-table {
  width: 100%;
  min-width: 1520px;
  border-collapse: collapse;
}

.vcmx-report-table th,
.vcmx-report-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.vcmx-report-table th {
  color: var(--vcmx-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vcmx-report-notes {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
}

.vcmx-custody-alerts-card {
  margin-bottom: 18px;
}

.vcmx-custody-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.vcmx-custody-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.vcmx-custody-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vcmx-muted);
}

.vcmx-custody-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.vcmx-custody-stat.is-preventivo strong {
  color: #f5c542;
}

.vcmx-custody-stat.is-warning strong {
  color: #f59e0b;
}

.vcmx-custody-stat.is-critico strong {
  color: #ef4444;
}

.vcmx-custody-stat.total strong {
  color: #fff;
}

.vcmx-custody-updated {
  color: var(--vcmx-muted);
  font-size: 12px;
}

.vcmx-custody-table-wrap {
  overflow-x: auto;
}

.vcmx-custody-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
}

.vcmx-custody-table th,
.vcmx-custody-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 7px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.vcmx-custody-table th {
  color: var(--vcmx-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vcmx-custody-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #111;
}

.vcmx-custody-level.is-accent {
  background: #f5c542;
}

.vcmx-custody-level.is-warning {
  background: #f59e0b;
}

.vcmx-custody-level.is-danger {
  background: #ef4444;
  color: #fff;
}

.vcmx-custody-empty {
  padding: 10px 0;
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .vcmx-topbar,
  .vcmx-nav,
  .vcmx-feedback,
  .vcmx-action-row,
  .vcmx-button,
  button,
  .vcmx-secondary-button {
    display: none !important;
  }

  .vcmx-report-table {
    min-width: 0;
    font-size: 8px;
  }

  .vcmx-report-table th,
  .vcmx-report-table td {
    color: #111 !important;
    border-color: #999 !important;
    padding: 4px 3px;
    font-size: 8px;
  }

  .vcmx-card {
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

.vcmx-indicator-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.vcmx-indicator-card {
  min-height: 124px;
  padding: 16px;
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(180deg, #15161a 0%, #111216 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.vcmx-indicator-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vcmx-muted);
  font-weight: 800;
}

.vcmx-indicator-card strong {
  display: block;
  margin-top: 12px;
  font-size: 42px;
  line-height: 1;
  color: #fff;
}

.vcmx-indicator-card small {
  display: block;
  margin-top: 6px;
  color: var(--vcmx-muted);
}

.vcmx-indicator-card.is-active {
  border-color: var(--vcmx-accent);
  box-shadow: 0 0 0 2px rgba(204, 31, 47, 0.15), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.vcmx-indicator-detail {
  display: grid;
  gap: 14px;
}

.vcmx-indicator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vcmx-indicator-head h3 {
  margin: 0;
  font-size: 28px;
}

.vcmx-indicator-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 72px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 30px;
  font-weight: 900;
  background: rgba(204, 31, 47, 0.14);
  color: #fff;
}

.vcmx-indicator-count.is-accent {
  background: rgba(204, 31, 47, 0.14);
}

.vcmx-indicator-list {
  display: grid;
  gap: 10px;
}

.vcmx-indicator-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vcmx-indicator-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.vcmx-indicator-row p {
  margin: 4px 0 0;
  color: var(--vcmx-muted);
}

.vcmx-indicator-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.vcmx-indicator-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.vcmx-indicator-tag.is-free {
  background: rgba(64, 168, 74, 0.16);
  color: #a8ff9e;
}

.vcmx-indicator-tag.is-busy {
  background: rgba(204, 31, 47, 0.16);
  color: #ffb1b8;
}

@media (max-width: 960px) {
  .vcmx-request-item {
    grid-template-columns: 1fr;
  }

  .vcmx-request-actions {
    justify-content: flex-start;
  }

  .vcmx-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .vcmx-hero-card {
    flex-direction: column;
  }

  .vcmx-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .vcmx-indicator-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcmx-indicator-row {
    flex-direction: column;
  }

  .vcmx-requested-screen-hero {
    flex-direction: column;
  }

  .vcmx-requested-screen-meta {
    justify-items: start;
    text-align: left;
  }

  .vcmx-request-table {
    min-width: 1120px;
  }
}

@media (max-width: 560px) {
  .vcmx-indicator-strip {
    grid-template-columns: 1fr;
  }
}

.vcmx-scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcmx-scanner-card {
  width: min(100%, 560px);
  background: #131418;
  color: #fff;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  box-shadow: var(--vcmx-shadow);
}

.vcmx-scanner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vcmx-scanner-head h3 {
  margin: 0;
  color: #fff;
}

.vcmx-scanner-close {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
}

.vcmx-scanner-copy {
  margin: 10px 0 16px;
  color: var(--vcmx-muted);
}

.vcmx-scanner-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #09090b;
  aspect-ratio: 4 / 5;
}

.vcmx-scanner-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vcmx-scanner-target {
  position: absolute;
  inset: 16% 12%;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.vcmx-deliver-modal-card {
  width: min(100%, 760px);
  max-height: 90vh;
  overflow: auto;
}

.vcmx-deliver-modal .vcmx-form {
  margin-top: 16px;
}

.vcmx-deliver-modal .vcmx-list-item {
  margin-top: 16px;
}

@media (max-width: 899px) {
  .vcmx-shell {
    padding: 18px 14px 26px;
  }

  .vcmx-topbar {
    flex-direction: column;
  }

  .vcmx-topbar h2 {
    font-size: 28px;
  }

  .vcmx-topbar-copy {
    font-size: 16px;
  }

  .vcmx-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcmx-ticket-head {
    flex-direction: column;
  }

  .vcmx-inline-search,
  .vcmx-action-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .vcmx-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vcmx-public-request-shell {
  min-height: 100vh;
  padding: 28px 16px 40px;
  background:
    radial-gradient(circle at top, rgba(214, 20, 53, 0.12), transparent 32%),
    linear-gradient(180deg, #080808 0%, #0f0f10 100%);
  color: #fff;
}

body.vcm-app-body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #08090b;
  color: #fff;
}

body.vcm-app-body .vcm-public-app,
body.vcm-app-body .vcm-public-app *,
body.vcm-app-body .vcm-public-app *::before,
body.vcm-app-body .vcm-public-app *::after {
  box-sizing: border-box;
}

body.vcm-app-body .vcm-public-app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  overflow-x: hidden;
}

body.vcm-app-body .vcm-request-shell {
  width: min(100%, 720px);
  margin: auto;
}

body.vcm-app-body .vcmx-public-request-shell {
  width: 100%;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.vcmx-public-request-card {
  width: 100%;
  margin: 0 auto;
  background: rgba(10, 10, 11, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--vcmx-shadow);
}

body.vcm-app-body .vcmx-public-request-card {
  width: 100%;
  max-width: 100%;
  padding: clamp(18px, 4vw, 32px);
  background: #101113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.vcmx-public-request-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
}

.vcmx-public-request-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--vcmx-muted);
}

body.vcm-app-body .vcm-request-header {
  width: 100%;
}

body.vcm-app-body .vcm-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #a9afbc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.vcm-app-body .vcm-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

body.vcm-app-body .vcm-description {
  max-width: 620px;
  margin: 10px 0 0;
  color: #aeb4c0;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.55;
}

.vcmx-public-alert,
.vcmx-public-empty {
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-public-alert.is-success {
  background: rgba(35, 164, 68, 0.12);
  color: #dbffe4;
}

.vcmx-public-alert.is-error {
  background: rgba(214, 20, 53, 0.16);
  color: #ffe0e7;
}

.vcmx-public-search-form,
.vcmx-public-request-form {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

body.vcm-app-body .vcm-search-group {
  width: 100%;
  margin-top: 22px;
}

body.vcm-app-body .vcm-field-label {
  display: block;
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.vcmx-public-search-form label,
.vcmx-public-request-form label {
  color: #fff;
  font-weight: 700;
}

.vcmx-public-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

body.vcm-app-body .vcm-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.vcmx-public-search-row input,
.vcmx-public-request-form select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
  color: #111;
  padding: 12px 16px;
}

body.vcm-app-body .vcm-search-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: #121212;
  font-size: 16px;
  line-height: 1;
  outline: none;
}

body.vcm-app-body .vcm-search-input:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

body.vcm-app-body .vcm-search-button {
  width: 112px;
  min-width: 112px;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #c8102e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

body.vcm-app-body .vcm-search-button:hover {
  filter: brightness(1.08);
}

body.vcm-app-body .vcm-search-button:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

body.vcm-app-body .vcm-search-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.vcmx-public-search-row button,
.vcmx-public-primary {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--vcmx-red);
  color: #fff;
  font-weight: 800;
}

.vcmx-public-ticket-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.vcm-app-body .vcm-vehicle-result {
  width: 100%;
  margin-top: 18px;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.vcmx-public-ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.vcm-app-body .vcm-result-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

body.vcm-app-body .vcm-result-label {
  display: block;
  color: #a9afbc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.vcm-app-body .vcm-customer-name {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.vcm-app-body .vcm-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.vcmx-public-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(214, 20, 53, 0.18);
  color: #fff;
  font-weight: 700;
}

.vcmx-public-ticket-grid {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.vcm-app-body .vcm-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}

body.vcm-app-body .vcm-info-item {
  min-width: 0;
  min-height: 74px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

body.vcm-app-body .vcm-info-label {
  display: block;
  margin-bottom: 6px;
  color: #858c9a;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
}

body.vcm-app-body .vcm-info-value {
  display: block;
  max-width: 100%;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vcmx-public-ticket-grid div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
}

.vcmx-public-ticket-grid dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vcmx-muted);
}

.vcmx-public-ticket-grid dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.vcmx-public-note {
  margin: 18px 0 0;
  color: var(--vcmx-muted);
  line-height: 1.5;
}

body.vcm-app-body .vcm-time-group {
  width: 100%;
  margin-top: 18px;
}

body.vcm-app-body .vcm-time-select {
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 0 42px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background-color: #ffffff;
  color: #151515;
  font-size: 16px;
  outline: none;
}

body.vcm-app-body .vcm-time-select:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

body.vcm-app-body .vcm-request-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: #c8102e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

body.vcm-app-body .vcm-request-button:hover {
  filter: brightness(1.08);
}

body.vcm-app-body .vcm-request-button:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

body.vcm-app-body .vcm-request-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.vcm-app-body .vcm-tolerance-message {
  width: 100%;
  margin: 14px 0 0;
  color: #9ea5b2;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.vcm-app-body .vcm-public-app img,
body.vcm-app-body .vcm-public-app svg,
body.vcm-app-body .vcm-public-app video,
body.vcm-app-body .vcm-public-app canvas {
  max-width: 100%;
  height: auto;
}

body.vcm-app-body .vcm-public-app input,
body.vcm-app-body .vcm-public-app select,
body.vcm-app-body .vcm-public-app textarea,
body.vcm-app-body .vcm-public-app button {
  max-width: 100%;
  font: inherit;
}

body.vcm-app-body .vcm-public-app p,
body.vcm-app-body .vcm-public-app h1,
body.vcm-app-body .vcm-public-app h2,
body.vcm-app-body .vcm-public-app h3,
body.vcm-app-body .vcm-public-app span,
body.vcm-app-body .vcm-public-app strong {
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  .vcmx-public-request-card {
    padding: 20px;
    border-radius: 22px;
  }

  .vcmx-public-search-row,
  .vcmx-public-ticket-grid {
    grid-template-columns: 1fr;
  }

  .vcmx-public-ticket-header {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  body.vcm-app-body .vcm-public-app {
    padding: 12px;
    align-items: flex-start;
  }

  body.vcm-app-body .vcm-request-card {
    padding: 18px;
    border-radius: 18px;
  }

  body.vcm-app-body .vcm-vehicle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body.vcm-app-body .vcm-search-row {
    grid-template-columns: 1fr;
  }

  body.vcm-app-body .vcm-search-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  body.vcm-app-body .vcm-request-card {
    padding: 16px;
    border-radius: 16px;
  }

  body.vcm-app-body .vcm-result-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  body.vcm-app-body .vcm-title {
    font-size: 34px;
  }
}

body.vcm-app-body .vcmx-public-request-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

body.vcm-app-body .vcmx-public-request-card {
  width: 100%;
  padding: clamp(20px, 3vw, 34px);
}

body.vcm-app-body .vcmx-public-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0 0 18px;
}

body.vcm-app-body .vcmx-public-ticket-grid > div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.vcm-app-body .vcmx-public-ticket-grid dt {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

body.vcm-app-body .vcmx-public-ticket-grid dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
}

body.vcm-app-body .vcmx-public-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

body.vcm-app-body .vcmx-public-search-row input,
body.vcm-app-body .vcmx-public-search-row button,
body.vcm-app-body .vcmx-public-request-form button,
body.vcm-app-body .vcmx-public-incident-form button,
body.vcm-app-body .vcmx-public-incident-toggle summary {
  width: 100%;
  min-width: 0;
}

body.vcm-app-body .vcmx-public-incident-toggle {
  margin: 16px 0 12px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.vcm-app-body .vcmx-public-incident-toggle summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  border: 0;
}

body.vcm-app-body .vcmx-public-incident-toggle summary::-webkit-details-marker {
  display: none;
}

body.vcm-app-body .vcmx-public-incident-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

body.vcm-app-body .vcmx-public-incident-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.vcm-app-body .vcmx-public-incident-form textarea,
body.vcm-app-body .vcmx-public-incident-form input,
body.vcm-app-body .vcmx-public-incident-form select {
  width: 100%;
  min-width: 0;
}

body.vcm-app-body .vcmx-public-incident-form button {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  body.vcm-app-body .vcmx-public-request-shell,
  body.vcm-app-body .vcmx-public-request-card {
    width: 100%;
  }

  body.vcm-app-body .vcmx-public-search-row,
  body.vcm-app-body .vcmx-public-ticket-grid,
  body.vcm-app-body .vcmx-public-incident-form {
    grid-template-columns: 1fr;
  }

  body.vcm-app-body .vcmx-public-incident-toggle summary {
    width: 100%;
  }
}

body.vcmx-app-body .vcmx-public-request-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 24px 14px 40px;
}

body.vcmx-app-body .vcmx-public-request-card {
  width: 100%;
  max-width: 960px;
  padding: clamp(20px, 3vw, 34px);
}

body.vcmx-app-body .vcmx-public-request-hero h1 {
  font-size: clamp(28px, 3vw, 44px);
}

body.vcmx-app-body .vcmx-public-search-row {
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
}

body.vcmx-app-body .vcmx-public-search-row input {
  min-width: 0;
}

body.vcmx-app-body .vcmx-public-search-row button,
body.vcmx-app-body .vcmx-public-request-form button {
  width: 100%;
}

body.vcmx-app-body .vcmx-public-incident-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 14px;
}

body.vcmx-app-body .vcmx-public-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.vcmx-app-body .vcmx-public-field--full {
  grid-column: 1 / -1;
}

body.vcmx-app-body .vcmx-public-incident-form textarea,
body.vcmx-app-body .vcmx-public-incident-form input,
body.vcmx-app-body .vcmx-public-incident-form select {
  width: 100%;
  min-width: 0;
}

body.vcmx-app-body .vcmx-public-incident-form textarea {
  min-height: 124px;
  resize: vertical;
}

body.vcmx-app-body .vcmx-public-incident-form button {
  grid-column: 1 / -1;
  width: min(100%, 320px);
  justify-self: start;
}

@media (max-width: 760px) {
  body.vcmx-app-body .vcmx-public-request-shell,
  body.vcmx-app-body .vcmx-public-request-card {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  body.vcmx-app-body .vcmx-public-request-card {
    padding: 18px 14px 22px;
    border-radius: 20px;
  }

  body.vcmx-app-body .vcmx-public-request-hero h1 {
    font-size: clamp(26px, 8vw, 36px);
  }

  body.vcmx-app-body .vcmx-public-search-row,
  body.vcmx-app-body .vcmx-public-incident-form {
    grid-template-columns: 1fr;
  }

  body.vcmx-app-body .vcmx-public-search-row button,
  body.vcmx-app-body .vcmx-public-request-form button,
  body.vcmx-app-body .vcmx-public-incident-form button {
    width: 100%;
    justify-self: stretch;
  }
}

.vcmx-incidents-shell {
  display: grid;
  gap: 1rem;
}

.vcmx-incident-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.vcmx-incident-panel,
.vcmx-incident-history-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.vcmx-incident-panel-head {
  margin-bottom: 0.25rem;
}

.vcmx-incident-panel-main {
  min-width: 0;
}

.vcmx-incident-side-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.vcmx-incident-ticket-chooser {
  display: grid;
  gap: 0.7rem;
}

.vcmx-incident-ticket-summary {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.vcmx-incident-selected-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(136, 153, 255, 0.2);
  background: rgba(10, 18, 40, 0.72);
}

.vcmx-incident-selected-card.is-empty {
  color: rgba(255, 255, 255, 0.72);
}

.vcmx-incident-selected-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea4ff;
}

.vcmx-incident-ticket-results {
  display: grid;
  gap: 0.5rem;
  max-height: 260px;
  overflow: auto;
}

.vcmx-incident-ticket-result {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 22, 44, 0.85);
  color: #fff;
}

.vcmx-incident-ticket-empty {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.vcmx-incident-evidence-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.vcmx-incident-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.vcmx-incident-evidence-grid article {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.vcmx-incident-history-card {
  padding-top: 1.1rem;
}

.vcmx-incident-actions-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-incident-actions-form label {
  display: grid;
  gap: 0.45rem;
}

.vcmx-incident-actions-form textarea,
.vcmx-incident-actions-form input,
.vcmx-incident-actions-form select {
  min-height: 44px;
}

.vcmx-incident-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.vcmx-incident-history-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 0.75rem;
}

.vcmx-incident-history-grid {
  display: grid;
  gap: 0.75rem;
}

.vcmx-incident-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.vcmx-incident-history-main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.vcmx-incident-history-main strong {
  font-size: 1rem;
}

.vcmx-incident-history-main p,
.vcmx-incident-history-main span {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.vcmx-incident-history-meta {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.vcmx-incident-history-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(142, 164, 255, 0.12);
  color: #dce3ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vcmx-incident-history-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vcmx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.vcmx-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(142, 164, 255, 0.16);
  color: #dce3ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vcmx-chip.is-accent {
  background: rgba(124, 224, 181, 0.18);
  color: #d9fff0;
}

.vcmx-incident-history {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.vcmx-incident-history h4 {
  margin: 0;
  font-size: 1rem;
}

.vcmx-incident-history-empty {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.vcmx-incident-history-entry {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-incident-history-entry strong {
  font-size: 0.95rem;
}

.vcmx-incident-history-entry p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.vcmx-incident-history-entry span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
}

.vcmx-incident-solution {
  border-color: rgba(124, 224, 181, 0.25);
  background: rgba(124, 224, 181, 0.08);
}

.vcmx-incident-modal-card {
  max-width: 940px;
}

.vcmx-incident-modal-card {
  max-width: 940px;
}

.vcmx-incident-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.vcmx-incident-detail-grid article {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vcmx-incident-detail-grid span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1080px) {
  .vcmx-incident-grid {
    grid-template-columns: 1fr;
  }

  .vcmx-incident-history-filters,
  .vcmx-incident-history-row {
    grid-template-columns: 1fr;
  }

  .vcmx-incident-history-actions {
    justify-content: flex-start;
  }

  .vcmx-incident-evidence-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   VCMX UI FIX 4.1.40
   Shell centrado, ancho fluido y requested sin cortes
   ========================================================= */

body.vcmx-shell-body,
body.vcmx-requested-screen-mode {
  background:
    radial-gradient(circle at top, rgba(204, 31, 47, 0.12), transparent 22%),
    linear-gradient(180deg, #08080a 0%, #0d0e12 100%);
  overflow-x: hidden;
}

body.vcmx-shell-body #vcmx-app,
body.vcmx-requested-screen-mode #vcmx-app {
  width: 100%;
}

body.vcmx-shell-body .vcmx-shell,
body.vcmx-requested-screen-mode .vcmx-shell {
  width: 100%;
  max-width: calc(100vw - clamp(0.75rem, 1.8vw, 1.5rem));
  margin-inline: auto;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  box-sizing: border-box;
}

body.vcmx-shell-body .vcmx-topbar,
body.vcmx-requested-screen-mode .vcmx-requested-screen-hero {
  width: 100%;
  margin-bottom: clamp(0.9rem, 1.4vw, 1.2rem);
  border-radius: 1.5rem;
}

body.vcmx-shell-body .vcmx-topbar {
  padding: clamp(1rem, 1.8vw, 1.5rem);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

body.vcmx-shell-body .vcmx-topbar h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

body.vcmx-shell-body .vcmx-topbar-copy {
  max-width: 60rem;
  font-size: clamp(0.95rem, 1vw, 1.08rem);
}

body.vcmx-shell-body .vcmx-topbar img,
body.vcmx-shell-body .vcmx-topbar svg,
body.vcmx-shell-body .vcmx-login-brand img {
  max-width: 10rem;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.vcmx-shell-body .vcmx-nav {
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.7rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

body.vcmx-shell-body .vcmx-nav button {
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  font-size: clamp(0.85rem, 0.9vw, 0.98rem);
  border-radius: 0.95rem;
}

body.vcmx-shell-body .vcmx-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.7fr);
  gap: clamp(1rem, 1.5vw, 1.25rem);
  align-items: start;
}

body.vcmx-shell-body .vcmx-dashboard-main,
body.vcmx-shell-body .vcmx-dashboard-side {
  min-width: 0;
}

body.vcmx-shell-body .vcmx-dashboard-main > .vcmx-hero-card {
  display: flex;
  padding: clamp(1rem, 1.5vw, 1.4rem);
  gap: clamp(0.9rem, 1.5vw, 1.2rem);
  align-items: stretch;
}

body.vcmx-shell-body .vcmx-dashboard-main > .vcmx-hero-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

body.vcmx-shell-body .vcmx-dashboard-main > .vcmx-hero-card .vcmx-hero-actions {
  min-width: min(100%, 24rem);
  max-width: 28rem;
  align-self: center;
}

body.vcmx-shell-body .vcmx-dashboard-main > .vcmx-hero-card .vcmx-quick-action {
  min-height: 3.1rem;
  border-radius: 1rem;
  font-size: 0.92rem;
}

body.vcmx-shell-body .vcmx-stats {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
}

body.vcmx-shell-body .vcmx-stat {
  padding: 1rem 0.95rem;
}

body.vcmx-shell-body .vcmx-stat strong {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

body.vcmx-shell-body .vcmx-card,
body.vcmx-shell-body .vcmx-form,
body.vcmx-shell-body .vcmx-list-item {
  border-radius: 1.35rem;
}

body.vcmx-shell-body .vcmx-requested-panel {
  overflow: hidden;
}

body.vcmx-shell-body .vcmx-requested-panel .vcmx-section-head {
  gap: 1rem;
}

body.vcmx-shell-body .vcmx-requested-panel h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
}

body.vcmx-shell-body .vcmx-requested-actions,
body.vcmx-shell-body .vcmx-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

body.vcmx-shell-body .vcmx-request-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

body.vcmx-shell-body .vcmx-request-table {
  width: 100%;
  min-width: 1180px;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-shell {
  width: 100%;
  max-width: 100%;
  gap: 1rem;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(0.8rem, 1.1vw, 1.15rem) clamp(1rem, 1.4vw, 1.3rem);
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-hero h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: 1.02;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-meta {
  gap: 0.3rem;
  min-width: 0;
  justify-items: end;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-meta strong {
  font-size: clamp(1.05rem, 1.75vw, 1.65rem);
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 1.2rem;
  width: 100%;
  max-width: 100%;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-table {
  width: 100%;
  min-width: 1100px;
}

body.vcmx-requested-screen-mode .vcmx-requested-screen-table th,
body.vcmx-requested-screen-mode .vcmx-requested-screen-table td {
  padding: 0.68rem 0.8rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  body.vcmx-shell-body .vcmx-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  body.vcmx-shell-body .vcmx-shell,
  body.vcmx-requested-screen-mode .vcmx-shell {
    width: min(calc(100% - 1rem), 100%);
    padding: 0.75rem;
  }

  body.vcmx-shell-body .vcmx-topbar,
  body.vcmx-requested-screen-mode .vcmx-requested-screen-hero {
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  body.vcmx-shell-body .vcmx-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.vcmx-shell-body .vcmx-requested-actions,
  body.vcmx-shell-body .vcmx-action-row {
    grid-template-columns: 1fr;
  }

  body.vcmx-shell-body .vcmx-request-table {
    min-width: 960px;
  }

  body.vcmx-requested-screen-mode .vcmx-requested-screen-table {
    min-width: 960px;
  }
}

@media (max-width: 640px) {
  body.vcmx-shell-body .vcmx-topbar h2,
  body.vcmx-requested-screen-mode .vcmx-requested-screen-hero h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  body.vcmx-shell-body .vcmx-topbar img,
  body.vcmx-shell-body .vcmx-topbar svg,
  body.vcmx-shell-body .vcmx-login-brand img {
    max-width: 8rem;
  }

  body.vcmx-shell-body .vcmx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.vcmx-shell-body .vcmx-request-table,
  body.vcmx-requested-screen-mode .vcmx-requested-screen-table {
    min-width: 900px;
  }

  body.vcmx-requested-screen-mode .vcmx-requested-screen-meta {
    justify-items: start;
  }
}

/* =========================================================
   VCMX UI FIX 4.1.46
   Layout responsive real sin cortes laterales
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.vcmx-shell-body,
body.vcmx-requested-screen-mode,
body.vcmx-app-body {
  width: 100%;
  overflow-x: hidden;
}

body.vcmx-shell-body *,
body.vcmx-requested-screen-mode *,
body.vcmx-app-body * {
  box-sizing: border-box;
}

body.vcmx-shell-body #vcmx-app,
body.vcmx-requested-screen-mode #vcmx-app {
  width: 100%;
  overflow-x: hidden;
}

body.vcmx-shell-body .vcmx-shell,
body.vcmx-requested-screen-mode .vcmx-shell,
body.vcmx-app-body .vcmx-public-app,
body.vcmx-app-body .vcmx-public-request-shell {
  width: min(calc(100vw - clamp(0.8rem, 2vw, 1.5rem)), 1760px);
  max-width: 1760px;
  margin-inline: auto;
}

body.vcmx-shell-body .vcmx-content,
body.vcmx-shell-body .vcmx-main-area,
body.vcmx-shell-body .vcmx-dashboard-grid,
body.vcmx-shell-body .vcmx-dashboard-main,
body.vcmx-shell-body .vcmx-dashboard-side,
body.vcmx-shell-body .vcmx-requested-view,
body.vcmx-shell-body .vcmx-requested-panel,
body.vcmx-shell-body .vcmx-report-form,
body.vcmx-shell-body .vcmx-report-table-card,
body.vcmx-shell-body .vcmx-incident-layout,
body.vcmx-shell-body .vcmx-incident-list-card,
body.vcmx-shell-body .vcmx-incident-actions-form,
body.vcmx-shell-body .vcmx-incident-ticket-chooser,
body.vcmx-shell-body .vcmx-card,
body.vcmx-shell-body .vcmx-form,
body.vcmx-shell-body .vcmx-list-item,
body.vcmx-shell-body .vcmx-history,
body.vcmx-shell-body .vcmx-collaborator-card,
body.vcmx-shell-body .vcmx-deliver-modal-card {
  min-width: 0;
  max-width: 100%;
}

body.vcmx-shell-body .vcmx-topbar,
body.vcmx-requested-screen-mode .vcmx-requested-screen-hero {
  width: 100%;
  max-width: 100%;
  padding: clamp(0.95rem, 1.8vw, 1.4rem);
  gap: clamp(0.75rem, 1.4vw, 1rem);
}

body.vcmx-shell-body .vcmx-topbar {
  flex-wrap: wrap;
  align-items: center;
}

body.vcmx-shell-body .vcmx-topbar-heading,
body.vcmx-shell-body .vcmx-topbar-copy,
body.vcmx-shell-body .vcmx-topbar-userline {
  min-width: 0;
}

body.vcmx-shell-body .vcmx-topbar-copy {
  max-width: min(60rem, 100%);
}

body.vcmx-shell-body .vcmx-nav {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.vcmx-shell-body .vcmx-nav button {
  min-width: 0;
  white-space: normal;
  line-height: 1.1;
}

body.vcmx-shell-body .vcmx-dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.78fr);
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
}

body.vcmx-shell-body .vcmx-dashboard-main,
body.vcmx-shell-body .vcmx-dashboard-side {
  gap: clamp(0.9rem, 1.4vw, 1.2rem);
}

body.vcmx-shell-body .vcmx-card,
body.vcmx-shell-body .vcmx-form,
body.vcmx-shell-body .vcmx-list-item {
  width: 100%;
  max-width: 100%;
}

body.vcmx-shell-body .vcmx-requested-panel,
body.vcmx-shell-body .vcmx-report-table-card,
body.vcmx-shell-body .vcmx-incident-list-card {
  overflow: hidden;
}

body.vcmx-shell-body .vcmx-request-table-wrap,
body.vcmx-shell-body .vcmx-report-table-wrap,
body.vcmx-shell-body .vcmx-incident-ticket-results,
body.vcmx-shell-body .vcmx-incident-history,
body.vcmx-requested-screen-mode .vcmx-requested-screen-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

body.vcmx-shell-body .vcmx-request-table,
body.vcmx-requested-screen-mode .vcmx-requested-screen-table,
body.vcmx-shell-body .vcmx-report-table {
  width: 100%;
  min-width: max(56rem, 100%);
}

body.vcmx-shell-body .vcmx-requested-panel h3,
body.vcmx-shell-body .vcmx-report-table-card h3,
body.vcmx-shell-body .vcmx-incident-list-card h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

body.vcmx-shell-body .vcmx-report-summary {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
}

body.vcmx-shell-body .vcmx-report-form {
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.vcmx-shell-body .vcmx-report-type-field {
  grid-column: 1 / -1;
}

body.vcmx-shell-body .vcmx-report-type-field select {
  width: min(100%, 28rem);
  min-width: 0;
}

body.vcmx-shell-body .vcmx-custody-stats,
body.vcmx-shell-body .vcmx-side-stats {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

body.vcmx-shell-body .vcmx-public-request-card,
body.vcmx-app-body .vcmx-public-request-card {
  width: 100%;
  max-width: 100%;
}

body.vcmx-app-body .vcmx-public-request-shell {
  width: min(calc(100vw - clamp(0.8rem, 2vw, 1.25rem)), 1080px);
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

body.vcmx-app-body .vcmx-public-ticket-grid,
body.vcmx-app-body .vcmx-public-incident-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.vcmx-app-body .vcmx-public-ticket-grid > div {
  min-width: 0;
}

body.vcmx-app-body .vcmx-public-ticket-grid dd,
body.vcmx-app-body .vcmx-public-request-card p,
body.vcmx-shell-body .vcmx-card p,
body.vcmx-shell-body .vcmx-list-item p,
body.vcmx-shell-body .vcmx-list-item strong,
body.vcmx-shell-body .vcmx-topbar-copy,
body.vcmx-shell-body .vcmx-requested-view p,
body.vcmx-shell-body .vcmx-report-notes,
body.vcmx-shell-body .vcmx-incident-history-entry p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1200px) {
  body.vcmx-shell-body .vcmx-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.vcmx-shell-body .vcmx-report-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  body.vcmx-shell-body .vcmx-shell,
  body.vcmx-requested-screen-mode .vcmx-shell,
  body.vcmx-app-body .vcmx-public-request-shell,
  body.vcmx-app-body .vcmx-public-app {
    width: min(calc(100vw - 1rem), 100%);
    padding: 0.75rem;
  }

  body.vcmx-shell-body .vcmx-topbar,
  body.vcmx-requested-screen-mode .vcmx-requested-screen-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.vcmx-shell-body .vcmx-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.vcmx-shell-body .vcmx-report-form,
  body.vcmx-app-body .vcmx-public-ticket-grid,
  body.vcmx-app-body .vcmx-public-incident-form {
    grid-template-columns: 1fr;
  }

  body.vcmx-shell-body .vcmx-requested-actions,
  body.vcmx-shell-body .vcmx-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.vcmx-shell-body .vcmx-topbar img,
  body.vcmx-shell-body .vcmx-topbar svg,
  body.vcmx-shell-body .vcmx-login-brand img {
    max-width: 7.25rem;
  }

  body.vcmx-shell-body .vcmx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.vcmx-shell-body .vcmx-nav {
    grid-template-columns: 1fr;
  }

  body.vcmx-shell-body .vcmx-report-summary,
  body.vcmx-shell-body .vcmx-custody-stats,
  body.vcmx-shell-body .vcmx-side-stats {
    grid-template-columns: 1fr;
  }
}

body.vcmx-shell-body .vcmx-search-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 110px));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

body.vcmx-shell-body .vcmx-search-photo-manager {
  display: grid;
  gap: 0.75rem;
}

body.vcmx-shell-body .vcmx-search-photo-thumb {
  border: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #111827;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.16);
  cursor: pointer;
}

body.vcmx-shell-body .vcmx-search-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.vcmx-shell-body .vcmx-photo-chip button {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #e2e8f0;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.78rem;
}

body.vcmx-shell-body .vcmx-search-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: #e2e8f0;
  color: #0f172a;
  cursor: pointer;
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 45vh;
  overflow: auto;
  border-radius: 0.9rem;
  background: #020617;
  padding: 0.75rem;
}

body.vcmx-shell-body .vcmx-search-photo-lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease;
}

@media (max-width: 640px) {
  .vcmx-toast {
    width: calc(100% - 32px);
    padding: 16px;
  }

  .vcmx-toast__message {
    font-size: 16px;
  }

  .vcmx-toast__close {
    width: 42px;
    height: 42px;
  }

  body.vcmx-shell-body .vcmx-search-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  body.vcmx-shell-body .vcmx-search-photo-lightbox__panel {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    padding: 0.75rem;
  }

  body.vcmx-shell-body .vcmx-search-photo-lightbox__stage {
    min-height: 38vh;
  }
}

.vcmx-search-parking-editor {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.vcmx-search-parking-label {
  display: grid;
  gap: 0.3rem;
}

.vcmx-search-parking-actions,
.vcmx-parking-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.vcmx-parking-slot-quick {
  padding: 0.42rem 0.7rem;
  min-height: 2.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
}

.vcmx-parking-slot-quick.is-active {
  background: var(--vcmx-accent);
  border-color: var(--vcmx-accent);
  color: #fff;
}

@media (max-width: 640px) {
  .vcmx-parking-slot-quick {
    flex: 1 1 calc(50% - 0.3rem);
  }
}

/* =========================================================
   VCMX UI FIX 4.1.93
   Responsive móvil aditivo
   ========================================================= */

@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body.vcmx-shell-body, body.vcmx-requested-screen-mode, body.vcmx-app-body { width: 100%; overflow-x: hidden; }
  body.vcmx-shell-body .vcmx-shell, body.vcmx-requested-screen-mode .vcmx-shell, body.vcmx-app-body .vcmx-public-app, body.vcmx-app-body .vcmx-public-request-shell { width: 100%; max-width: 100%; padding: 0.75rem; }
  body.vcmx-shell-body .vcmx-topbar, body.vcmx-requested-screen-mode .vcmx-requested-screen-hero { padding: 0.85rem; gap: 0.65rem; }
  body.vcmx-shell-body .vcmx-topbar__brand, body.vcmx-shell-body .vcmx-topbar__actions, body.vcmx-requested-screen-mode .vcmx-requested-screen-meta { width: 100%; }
  body.vcmx-shell-body .vcmx-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  body.vcmx-shell-body .vcmx-nav button, body.vcmx-shell-body .vcmx-action-row button, body.vcmx-shell-body .vcmx-requested-actions button, body.vcmx-shell-body .vcmx-form button, body.vcmx-app-body .vcmx-public-request-card button { width: 100%; min-width: 0; }
  body.vcmx-shell-body .vcmx-dashboard-grid, body.vcmx-shell-body .vcmx-report-form, body.vcmx-shell-body .vcmx-grid, body.vcmx-shell-body .vcmx-public-ticket-grid, body.vcmx-shell-body .vcmx-public-incident-form, body.vcmx-shell-body .vcmx-custody-stats, body.vcmx-shell-body .vcmx-side-stats, body.vcmx-shell-body .vcmx-report-summary { grid-template-columns: 1fr; }
  body.vcmx-shell-body .vcmx-card, body.vcmx-shell-body .vcmx-form, body.vcmx-shell-body .vcmx-list-item, body.vcmx-shell-body .vcmx-requested-view, body.vcmx-shell-body .vcmx-requested-panel, body.vcmx-shell-body .vcmx-report-table-card, body.vcmx-shell-body .vcmx-incident-list-card, body.vcmx-shell-body .vcmx-deliver-modal-card, body.vcmx-app-body .vcmx-public-request-card, body.vcmx-requested-screen-mode .vcmx-requested-screen-hero { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  body.vcmx-shell-body .vcmx-card, body.vcmx-shell-body .vcmx-form, body.vcmx-shell-body .vcmx-requested-panel, body.vcmx-shell-body .vcmx-report-table-card, body.vcmx-shell-body .vcmx-incident-list-card { padding: 0.8rem; }
  body.vcmx-shell-body .vcmx-form label, body.vcmx-shell-body .vcmx-form input, body.vcmx-shell-body .vcmx-form select, body.vcmx-shell-body .vcmx-form textarea { width: 100%; min-width: 0; }
  body.vcmx-shell-body .vcmx-form label, body.vcmx-shell-body .vcmx-field-label { overflow-wrap: anywhere; word-break: break-word; }
  body.vcmx-shell-body .vcmx-request-table-wrap, body.vcmx-shell-body .vcmx-report-table-wrap, body.vcmx-shell-body .vcmx-custody-table-wrap, body.vcmx-shell-body .vcmx-incident-history, body.vcmx-requested-screen-mode .vcmx-requested-screen-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  body.vcmx-shell-body .vcmx-request-table, body.vcmx-requested-screen-mode .vcmx-requested-screen-table, body.vcmx-shell-body .vcmx-report-table, body.vcmx-shell-body .vcmx-custody-table { min-width: 900px; width: 100%; }
  body.vcmx-shell-body .vcmx-request-table th, body.vcmx-shell-body .vcmx-request-table td, body.vcmx-requested-screen-mode .vcmx-requested-screen-table th, body.vcmx-requested-screen-mode .vcmx-requested-screen-table td, body.vcmx-shell-body .vcmx-report-table th, body.vcmx-shell-body .vcmx-report-table td, body.vcmx-shell-body .vcmx-custody-table th, body.vcmx-shell-body .vcmx-custody-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; padding: 0.5rem 0.55rem; }
  body.vcmx-shell-body .vcmx-topbar h2, body.vcmx-shell-body .vcmx-requested-panel h3, body.vcmx-shell-body .vcmx-report-table-card h3, body.vcmx-shell-body .vcmx-incident-list-card h3, body.vcmx-requested-screen-mode .vcmx-requested-screen-hero h2 { overflow-wrap: anywhere; word-break: break-word; }
  body.vcmx-shell-body .vcmx-search-photo-thumb, body.vcmx-shell-body .vcmx-photo-card, body.vcmx-shell-body .vcmx-collaborator-card, body.vcmx-shell-body .vcmx-request-row, body.vcmx-shell-body .vcmx-requested-view p, body.vcmx-shell-body .vcmx-card p, body.vcmx-shell-body .vcmx-list-item p, body.vcmx-shell-body .vcmx-list-item strong { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
  body.vcmx-shell-body .vcmx-qr-thumb, body.vcmx-shell-body .vcmx-photo-card img, body.vcmx-shell-body .vcmx-search-photo-thumb img, body.vcmx-shell-body .vcmx-search-photo-lightbox__stage img, body.vcmx-shell-body .vcmx-topbar img, body.vcmx-shell-body .vcmx-login-brand img { max-width: 100%; height: auto; }
  body.vcmx-requested-screen-mode .vcmx-requested-screen-meta { justify-items: start; }
}

@media (max-width: 480px) {
  body.vcmx-shell-body .vcmx-shell, body.vcmx-requested-screen-mode .vcmx-shell, body.vcmx-app-body .vcmx-public-app, body.vcmx-app-body .vcmx-public-request-shell { padding: 0.55rem; }
  body.vcmx-shell-body .vcmx-topbar, body.vcmx-requested-screen-mode .vcmx-requested-screen-hero { padding: 0.7rem; }
  body.vcmx-shell-body .vcmx-stats, body.vcmx-shell-body .vcmx-side-grid, body.vcmx-shell-body .vcmx-report-summary { grid-template-columns: 1fr; }
  body.vcmx-shell-body .vcmx-request-table, body.vcmx-requested-screen-mode .vcmx-requested-screen-table, body.vcmx-shell-body .vcmx-report-table, body.vcmx-shell-body .vcmx-custody-table { min-width: 820px; }
  body.vcmx-shell-body .vcmx-action-row, body.vcmx-shell-body .vcmx-requested-actions, body.vcmx-shell-body .vcmx-import-actions { gap: 0.45rem; }
  body.vcmx-shell-body .vcmx-topbar__brand { justify-content: center; text-align: center; }
  body.vcmx-shell-body .vcmx-card, body.vcmx-shell-body .vcmx-form, body.vcmx-shell-body .vcmx-requested-panel, body.vcmx-app-body .vcmx-public-request-card { max-width: calc(100vw - 1rem); }
  body.vcmx-shell-body .vcmx-card *, body.vcmx-shell-body .vcmx-form *, body.vcmx-shell-body .vcmx-requested-panel *, body.vcmx-app-body .vcmx-public-request-card * { max-width: 100%; }
  body.vcmx-shell-body .vcmx-request-table-wrap, body.vcmx-shell-body .vcmx-report-table-wrap, body.vcmx-shell-body .vcmx-custody-table-wrap, body.vcmx-shell-body .vcmx-incident-history { padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.vcmx-shell-body .vcmx-shell { padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px)); }
  body.vcmx-shell-body .vcmx-stat, body.vcmx-shell-body .vcmx-card, body.vcmx-shell-body .vcmx-form { border-radius: 1rem; }
}

/* VCMX 4.1.110 Incident modal responsive hotfix */
.vcmx-incident-modal-card {
  width: min(94vw, 920px);
  max-width: 920px;
  max-height: 88vh;
  overflow: hidden;
}

.vcmx-incident-modal-card .vcmx-incident-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr) minmax(240px, 0.88fr) minmax(260px, 0.98fr);
  gap: 1rem;
  align-items: start;
  max-height: calc(88vh - 120px);
  overflow: auto;
  padding-right: 0.25rem;
}

.vcmx-incident-modal-card .vcmx-incident-panel,
.vcmx-incident-modal-card .vcmx-incident-ticket-detail,
.vcmx-incident-modal-card .vcmx-incident-photo-manager,
.vcmx-incident-modal-card .vcmx-incident-history-grid {
  min-width: 0;
}

.vcmx-incident-modal-card .vcmx-incident-panel {
  padding: 1rem;
  max-width: 100%;
}

.vcmx-incident-modal-card .vcmx-incident-actions-form,
.vcmx-incident-modal-card .vcmx-incident-modal-actions,
.vcmx-incident-modal-card .vcmx-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.vcmx-incident-modal-card .vcmx-incident-actions-form label {
  min-width: 0;
  flex: 1 1 calc(50% - 0.7rem);
}

.vcmx-incident-modal-card .vcmx-incident-actions-form label:nth-child(9),
.vcmx-incident-modal-card .vcmx-incident-actions-form label:nth-child(10),
.vcmx-incident-modal-card .vcmx-incident-actions-form .vcmx-incident-modal-actions {
  flex-basis: 100%;
}

.vcmx-incident-modal-card textarea,
.vcmx-incident-modal-card input,
.vcmx-incident-modal-card select,
.vcmx-incident-modal-card button {
  max-width: 100%;
}

.vcmx-incident-modal-card .vcmx-incident-ticket-detail,
.vcmx-incident-modal-card .vcmx-photo-grid,
.vcmx-incident-modal-card .vcmx-incident-history-grid {
  grid-template-columns: 1fr;
}

.vcmx-incident-modal-card .vcmx-incident-history-grid {
  gap: 0.75rem;
}

.vcmx-incident-modal-card .vcmx-photo-grid {
  gap: 0.6rem;
}

.vcmx-incident-modal-card .vcmx-photo-chip,
.vcmx-incident-modal-card .vcmx-list-item {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 980px) {
  .vcmx-incident-modal-card {
    width: min(96vw, 900px);
  }

  .vcmx-incident-modal-card .vcmx-incident-detail-shell {
    grid-template-columns: 1fr 1fr;
    max-height: calc(88vh - 100px);
  }
}

@media (max-width: 720px) {
  .vcmx-incident-modal-card {
    width: min(98vw, 100%);
    max-height: 92vh;
  }

  .vcmx-incident-modal-card .vcmx-incident-detail-shell {
    grid-template-columns: 1fr;
    max-height: calc(92vh - 90px);
    padding-right: 0;
  }

  .vcmx-incident-modal-card .vcmx-incident-actions-form label {
    flex-basis: 100%;
  }

  .vcmx-incident-modal-card .vcmx-incident-modal-actions button,
  .vcmx-incident-modal-card .vcmx-action-row button {
    flex: 1 1 100%;
  }
}



/* VCMX 4.1.111 additive layout override */
.vcmx-incident-modal-card {
  width: min(96vw, 1180px) !important;
  max-width: 1180px !important;
  max-height: 88vh;
  overflow: hidden;
}

.vcmx-incident-modal-card .vcmx-incident-detail-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem 1.1rem;
  align-items: start;
  max-height: calc(88vh - 120px);
  overflow: auto;
  padding-right: 0.25rem;
}

.vcmx-incident-modal-card .vcmx-incident-panel,
.vcmx-incident-modal-card .vcmx-incident-ticket-detail,
.vcmx-incident-modal-card .vcmx-incident-photo-manager,
.vcmx-incident-modal-card .vcmx-incident-history-grid,
.vcmx-incident-modal-card .vcmx-incident-actions-form,
.vcmx-incident-modal-card .vcmx-incident-modal-actions,
.vcmx-incident-modal-card .vcmx-action-row,
.vcmx-incident-modal-card .vcmx-photo-grid {
  min-width: 0;
}

.vcmx-incident-modal-card .vcmx-incident-panel {
  width: 100%;
  max-width: 100%;
}

.vcmx-incident-modal-card .vcmx-incident-actions-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 0.9rem;
}

.vcmx-incident-modal-card .vcmx-incident-actions-form label,
.vcmx-incident-modal-card textarea,
.vcmx-incident-modal-card input,
.vcmx-incident-modal-card select,
.vcmx-incident-modal-card button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vcmx-incident-modal-card .vcmx-incident-actions-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vcmx-incident-modal-card .vcmx-incident-modal-actions,
.vcmx-incident-modal-card .vcmx-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.vcmx-incident-modal-card .vcmx-incident-modal-actions button,
.vcmx-incident-modal-card .vcmx-action-row button {
  flex: 1 1 180px;
}

.vcmx-incident-modal-card .vcmx-incident-ticket-detail,
.vcmx-incident-modal-card .vcmx-incident-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.vcmx-incident-modal-card .vcmx-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.vcmx-incident-modal-card .vcmx-photo-chip,
.vcmx-incident-modal-card .vcmx-list-item {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 1100px) {
  .vcmx-incident-modal-card .vcmx-incident-detail-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .vcmx-incident-modal-card {
    width: min(98vw, 100%) !important;
    max-height: 92vh;
  }

  .vcmx-incident-modal-card .vcmx-incident-detail-shell,
  .vcmx-incident-modal-card .vcmx-incident-actions-form,
  .vcmx-incident-modal-card .vcmx-incident-history-grid {
    grid-template-columns: 1fr !important;
  }

  .vcmx-incident-modal-card .vcmx-incident-detail-shell {
    max-height: calc(92vh - 90px);
    padding-right: 0;
  }
}
