
/* =========================================================
   UCD SIGN 2.0
   Global visual foundation
   ========================================================= */

:root {
  --ucd-primary: #35104f;
  --ucd-primary-hover: #48186a;
  --ucd-primary-soft: rgba(77, 42, 122, 0.10);
  --ucd-surface: rgba(255, 255, 255, 0.93);
  --ucd-surface-solid: #ffffff;
  --ucd-surface-muted: rgba(249, 248, 251, 0.95);
  --ucd-border: rgba(47, 28, 64, 0.11);
  --ucd-border-strong: rgba(47, 28, 64, 0.18);
  --ucd-text: #24142f;
  --ucd-text-muted: #7d7486;
  --ucd-success: #08745c;
  --ucd-danger: #dc2626;
  --ucd-warning: #f7ce72;
  --ucd-radius-sm: 10px;
  --ucd-radius-md: 16px;
  --ucd-radius-lg: 22px;
  --ucd-shadow-sm: 0 5px 18px rgba(27, 16, 39, 0.06);
  --ucd-shadow-md: 0 14px 40px rgba(27, 16, 39, 0.09);
  --ucd-transition: 160ms ease;
}

/* ---------------------------------------------------------
   Global page
   --------------------------------------------------------- */

html {
  min-height: 100%;
  background: #f5f3f7;
}

body.ucd-sign-2 {
  min-height: 100vh;
  margin: 0;
  color: var(--ucd-text);
  background-color: #f5f3f7 !important;
  background-image: none;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  font-feature-settings: "kern", "liga";
}

body.ucd-sign-2,
body.ucd-sign-2 button,
body.ucd-sign-2 input,
body.ucd-sign-2 select,
body.ucd-sign-2 textarea {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ucd-sign-2 > .max-w-6xl,
body.ucd-sign-2 .ucd-main-container {
  width: min(100% - 40px, 1440px) !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.ucd-sign-2 .ucd-main-container {
  padding-bottom: 38px;
}

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */

body.ucd-sign-2 nav {
  width: min(100% - 40px, 1440px);
  max-width: 1440px;
  margin: 0 auto;
}

body.ucd-sign-2 nav,
body.ucd-sign-2 header {
  background: transparent;
}

body.ucd-sign-2 nav a,
body.ucd-sign-2 nav button {
  transition:
    background-color var(--ucd-transition),
    border-color var(--ucd-transition),
    box-shadow var(--ucd-transition),
    transform var(--ucd-transition);
}

body.ucd-sign-2 nav a:hover,
body.ucd-sign-2 nav button:hover {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Main headers and typography
   --------------------------------------------------------- */

body.ucd-sign-2 h1,
body.ucd-sign-2 h2,
body.ucd-sign-2 h3 {
  color: var(--ucd-text);
  letter-spacing: -0.025em;
}

body.ucd-sign-2 h1 {
  font-weight: 750;
}

body.ucd-sign-2 .text-base-content\/70,
body.ucd-sign-2 .text-neutral-500,
body.ucd-sign-2 .text-gray-500 {
  color: var(--ucd-text-muted);
}

/* ---------------------------------------------------------
   Generic surfaces
   --------------------------------------------------------- */

body.ucd-sign-2 .card,
body.ucd-sign-2 .modal-box,
body.ucd-sign-2 .dropdown-content,
body.ucd-sign-2 [class*="rounded-xl"],
body.ucd-sign-2 [class*="rounded-2xl"] {
  border-color: var(--ucd-border);
}

body.ucd-sign-2 .modal-box {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ucd-border);
  border-radius: var(--ucd-radius-lg);
  box-shadow: var(--ucd-shadow-md);
  backdrop-filter: blur(18px);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

body.ucd-sign-2 .btn,
body.ucd-sign-2 .white-button,
body.ucd-sign-2 button,
body.ucd-sign-2 a.white-button {
  border-radius: 999px;
  transition:
    transform var(--ucd-transition),
    box-shadow var(--ucd-transition),
    background-color var(--ucd-transition),
    border-color var(--ucd-transition);
}

body.ucd-sign-2 .white-button,
body.ucd-sign-2 a.white-button {
  min-height: 46px;
  padding-left: 18px;
  padding-right: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ucd-border-strong) !important;
  color: var(--ucd-text);
  box-shadow: var(--ucd-shadow-sm);
  font-weight: 700;
}

body.ucd-sign-2 .white-button:hover,
body.ucd-sign-2 a.white-button:hover {
  background: #ffffff;
  border-color: rgba(53, 16, 79, 0.34) !important;
  box-shadow: 0 9px 25px rgba(27, 16, 39, 0.10);
  transform: translateY(-1px);
}

body.ucd-sign-2 .btn-primary,
body.ucd-sign-2 .bg-primary {
  background-color: var(--ucd-primary) !important;
  border-color: var(--ucd-primary) !important;
  color: #ffffff !important;
}

body.ucd-sign-2 .btn-primary:hover {
  background-color: var(--ucd-primary-hover) !important;
  border-color: var(--ucd-primary-hover) !important;
}

/* ---------------------------------------------------------
   Inputs and search
   --------------------------------------------------------- */

body.ucd-sign-2 input:not([type="checkbox"]):not([type="radio"]),
body.ucd-sign-2 select,
body.ucd-sign-2 textarea {
  border-radius: 14px;
  border-color: var(--ucd-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color var(--ucd-transition),
    box-shadow var(--ucd-transition),
    background-color var(--ucd-transition);
}

body.ucd-sign-2 input:not([type="checkbox"]):not([type="radio"]):focus,
body.ucd-sign-2 select:focus,
body.ucd-sign-2 textarea:focus {
  outline: none;
  border-color: rgba(77, 42, 122, 0.45);
  box-shadow: 0 0 0 4px rgba(77, 42, 122, 0.10);
  background: #ffffff;
}

/* ---------------------------------------------------------
   Templates and submissions dashboard header
   --------------------------------------------------------- */

body.ucd-sign-2.ucd-controller-templates_dashboard dashboard-dropzone > .flex.justify-between,
body.ucd-sign-2.ucd-controller-submissions_dashboard
  > .ucd-main-container
  > .flex.justify-between {
  min-height: 72px;
  margin-bottom: 18px;
  padding: 10px 0;
}

body.ucd-sign-2.ucd-controller-templates_dashboard h1,
body.ucd-sign-2.ucd-controller-submissions_dashboard h1 {
  font-size: clamp(1.7rem, 2.3vw, 2.45rem);
  line-height: 1.05;
}

/* ---------------------------------------------------------
   Toggle Templates / Submissions
   --------------------------------------------------------- */

body.ucd-sign-2 [data-selected],
body.ucd-sign-2 .join,
body.ucd-sign-2 .tabs {
  border-radius: 14px;
}

body.ucd-sign-2 .join,
body.ucd-sign-2 .tabs {
  padding: 4px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--ucd-border);
  box-shadow: var(--ucd-shadow-sm);
}

/* ---------------------------------------------------------
   UCD Finder
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-finder {
  overflow: hidden;
  background: var(--ucd-surface);
  border: 1px solid var(--ucd-border);
  border-radius: var(--ucd-radius-lg);
  box-shadow: var(--ucd-shadow-md);
  backdrop-filter: blur(16px);
}

body.ucd-sign-2 .ucd-finder-header {
  min-height: 56px;
  padding-left: 22px;
  padding-right: 22px;
  background: rgba(250, 249, 251, 0.90);
  border-bottom: 1px solid var(--ucd-border);
}

body.ucd-sign-2 .ucd-finder-row {
  min-height: 66px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom-color: rgba(47, 28, 64, 0.075);
  transition:
    background-color var(--ucd-transition),
    box-shadow var(--ucd-transition),
    transform var(--ucd-transition);
}

body.ucd-sign-2 .ucd-finder-row:hover {
  background: rgba(77, 42, 122, 0.055) !important;
}

body.ucd-sign-2 .ucd-finder-row.ucd-explorer-selected {
  background: rgba(77, 42, 122, 0.10) !important;
  box-shadow: inset 4px 0 0 var(--ucd-primary);
}

body.ucd-sign-2 .ucd-finder-section {
  padding: 10px 20px;
  color: var(--ucd-text-muted);
  background: rgba(249, 248, 251, 0.78);
  border-bottom: 1px solid rgba(47, 28, 64, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Context menu
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-context-menu {
  min-width: 224px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ucd-border);
  border-radius: 15px;
  box-shadow:
    0 24px 65px rgba(22, 12, 32, 0.18),
    0 4px 16px rgba(22, 12, 32, 0.08);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(-5px) scale(0.985);
  transform-origin: top left;
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

body.ucd-sign-2 .ucd-context-menu.ucd-context-menu-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.ucd-sign-2 .ucd-context-menu-item {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.9rem;
}

body.ucd-sign-2 .ucd-context-menu-item:hover,
body.ucd-sign-2 .ucd-context-menu-item:focus {
  background: rgba(77, 42, 122, 0.085);
}

/* ---------------------------------------------------------
   Submission cards
   --------------------------------------------------------- */

body.ucd-sign-2.ucd-controller-submissions_dashboard .space-y-4 > div,
body.ucd-sign-2.ucd-controller-submissions_dashboard .space-y-4 > a {
  overflow: hidden;
  background: var(--ucd-surface);
  border: 1px solid var(--ucd-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--ucd-shadow-sm);
  transition:
    transform var(--ucd-transition),
    box-shadow var(--ucd-transition),
    border-color var(--ucd-transition);
}

body.ucd-sign-2.ucd-controller-submissions_dashboard .space-y-4 > div:hover,
body.ucd-sign-2.ucd-controller-submissions_dashboard .space-y-4 > a:hover {
  border-color: rgba(77, 42, 122, 0.20) !important;
  box-shadow: var(--ucd-shadow-md);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Filter tabs
   --------------------------------------------------------- */

body.ucd-sign-2.ucd-controller-submissions_dashboard
  a[class*="md:w-48"] {
  background: rgba(255, 255, 255, 0.90);
  border-color: var(--ucd-border) !important;
  border-radius: 13px;
  box-shadow: var(--ucd-shadow-sm);
  transition:
    background-color var(--ucd-transition),
    border-color var(--ucd-transition),
    transform var(--ucd-transition);
}

body.ucd-sign-2.ucd-controller-submissions_dashboard
  a[class*="md:w-48"]:hover {
  background: #ffffff;
  border-color: rgba(77, 42, 122, 0.28) !important;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Dropzone
   --------------------------------------------------------- */

body.ucd-sign-2 dashboard-dropzone [class*="border-dashed"] {
  border-width: 1.5px;
  border-color: rgba(77, 42, 122, 0.25);
  border-radius: var(--ucd-radius-lg);
  background: rgba(255, 255, 255, 0.45);
  transition:
    background-color var(--ucd-transition),
    border-color var(--ucd-transition);
}

body.ucd-sign-2 dashboard-dropzone [class*="border-dashed"]:hover {
  border-color: rgba(77, 42, 122, 0.50);
  background: rgba(255, 255, 255, 0.72);
}

/* ---------------------------------------------------------
   Flash
   --------------------------------------------------------- */

body.ucd-sign-2 .alert {
  border-radius: 14px;
  box-shadow: var(--ucd-shadow-md);
}

/* ---------------------------------------------------------
   Scrollbar
   --------------------------------------------------------- */

body.ucd-sign-2 * {
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 42, 122, 0.25) transparent;
}

body.ucd-sign-2 *::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body.ucd-sign-2 *::-webkit-scrollbar-track {
  background: transparent;
}

body.ucd-sign-2 *::-webkit-scrollbar-thumb {
  background: rgba(77, 42, 122, 0.22);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
  body.ucd-sign-2 > .max-w-6xl,
  body.ucd-sign-2 .ucd-main-container,
  body.ucd-sign-2 nav {
    width: min(100% - 22px, 1440px) !important;
  }

  body.ucd-sign-2 .ucd-finder-row {
    min-height: 61px;
    padding-left: 13px;
    padding-right: 13px;
  }

  body.ucd-sign-2 .white-button,
  body.ucd-sign-2 a.white-button {
    min-height: 42px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

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

/* =========================================================
   UCD WORKSPACE SHELL V1
   ========================================================= */

.ucd-workspace-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.ucd-workspace-sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ucd-border);
  border-radius: var(--ucd-radius-lg);
  box-shadow: var(--ucd-shadow-md);
  backdrop-filter: blur(24px);
}

.ucd-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 14px;
}

.ucd-sidebar-section + .ucd-sidebar-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(47, 28, 64, 0.09);
}

.ucd-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 10px 8px;
  color: var(--ucd-text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ucd-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ucd-sidebar-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 11px;
  overflow: hidden;
  color: var(--ucd-text);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color var(--ucd-transition),
    background-color var(--ucd-transition),
    border-color var(--ucd-transition),
    box-shadow var(--ucd-transition),
    transform var(--ucd-transition);
}

.ucd-sidebar-link:hover {
  color: var(--ucd-text);
  background: rgba(77, 42, 122, 0.07);
  border-color: rgba(77, 42, 122, 0.09);
  text-decoration: none;
  transform: translateX(2px);
}

.ucd-sidebar-link-active {
  color: var(--ucd-primary);
  background:
    linear-gradient(
      90deg,
      rgba(77, 42, 122, 0.14),
      rgba(77, 42, 122, 0.07)
    );
  border-color: rgba(77, 42, 122, 0.10);
  box-shadow: inset 3px 0 0 var(--ucd-primary);
}

.ucd-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  font-size: 1rem;
}

.ucd-sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ucd-sidebar-chevron {
  color: var(--ucd-text-muted);
  font-size: 1.25rem;
  font-weight: 400;
}

.ucd-sidebar-empty {
  padding: 12px 10px;
  color: var(--ucd-text-muted);
  font-size: 0.82rem;
}

.ucd-sidebar-footer {
  padding: 16px 20px 18px;
  color: var(--ucd-text-muted);
  border-top: 1px solid rgba(47, 28, 64, 0.09);
  font-size: 0.72rem;
  line-height: 1.65;
  text-align: center;
}

.ucd-workspace-content {
  min-width: 0;
  padding-bottom: 32px;
}

/*
 * controller_name.parameterize converts underscores into hyphens.
 * These selectors correct the first UCD Sign 2.0 stylesheet.
 */

body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  dashboard-dropzone
  > .flex.justify-between,

body.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  > .flex.justify-between {
  min-height: 72px;
  margin-bottom: 18px;
  padding: 8px 0;
}

body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  h1,

body.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.08;
}

body.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  .space-y-4
  > div,

body.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  .space-y-4
  > a {
  overflow: hidden;
  background: var(--ucd-surface);
  border: 1px solid var(--ucd-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--ucd-shadow-sm);
  transition:
    transform var(--ucd-transition),
    box-shadow var(--ucd-transition),
    border-color var(--ucd-transition);
}

body.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  .space-y-4
  > div:hover,

body.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  .space-y-4
  > a:hover {
  border-color: rgba(77, 42, 122, 0.20) !important;
  box-shadow: var(--ucd-shadow-md);
  transform: translateY(-1px);
}

@media (max-width: 1050px) {
  .ucd-workspace-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }

  .ucd-sidebar-link {
    font-size: 0.82rem;
  }
}

@media (max-width: 780px) {
  .ucd-workspace-shell {
    display: block;
  }

  .ucd-workspace-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
    max-height: none;
    margin-bottom: 18px;
  }

  .ucd-sidebar-scroll {
    overflow: visible;
  }

  .ucd-sidebar-footer {
    display: none;
  }
}

/* =========================================================
   UCD HEADER V2 - EDGE TO EDGE
   ========================================================= */

body.ucd-sign-2 {
  padding: 0 !important;
}

/*
 * Pantalla completa:
 * solo 6 px de margen exterior por cada lado.
 */
body.ucd-sign-2 .ucd-main-container {
  width: calc(100vw - 12px) !important;
  max-width: none !important;
  margin: 0 6px !important;
  padding: 0 0 24px !important;
}

body.ucd-sign-2 .ucd-workspace-shell {
  width: 100% !important;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 10px;
}

/* ---------------------------------------------------------
   Header V2
   --------------------------------------------------------- */

.ucd-header-v2 {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns:
    minmax(410px, 0.9fr)
    minmax(320px, 0.8fr)
    auto;
  align-items: center;
  gap: 20px;
  width: calc(100vw - 12px);
  max-width: none;
  min-height: 112px;
  margin: 0 6px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 28, 64, 0.07);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 32px rgba(27, 16, 39, 0.045);
  backdrop-filter: blur(20px);
}

.ucd-header-v2-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ucd-header-v2-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.ucd-header-v2-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: 235px;
  object-fit: contain;

  /*
   * La imagen es un archivo rasterizado. CSS no puede convertir
   * realmente las letras internas a bold, pero este filtro mejora
   * su contraste y peso visual.
   */
  filter: contrast(1.15) saturate(1.05);
}

.ucd-header-v2-divider {
  width: 1px;
  height: 52px;
  margin: 0 24px;
  background: rgba(47, 28, 64, 0.12);
}

.ucd-header-v2-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ucd-text);
  text-decoration: none;
}

.ucd-header-v2-product:hover {
  color: var(--ucd-text);
  text-decoration: none;
}

.ucd-header-v2-title {
  color: #1f1230;
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.ucd-header-v2-subtitle {
  margin-top: 7px;
  color: #6f6578;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Global search
   --------------------------------------------------------- */

.ucd-header-v2-search {
  width: 100%;
  min-width: 0;
}

.ucd-global-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ucd-global-search-icon {
  position: absolute;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  color: #4b365d;
  pointer-events: none;
}

body.ucd-sign-2 .ucd-global-search-input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 52px;
  color: var(--ucd-text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 28, 64, 0.10);
  border-radius: 999px;
  box-shadow:
    0 8px 26px rgba(27, 16, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  font-size: 0.95rem;
  font-weight: 550;
}

body.ucd-sign-2 .ucd-global-search-input::placeholder {
  color: #81778b;
  opacity: 1;
}

/* ---------------------------------------------------------
   Header actions
   --------------------------------------------------------- */

.ucd-header-v2-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.ucd-header-v2-actions .white-button,
.ucd-header-v2-actions button {
  min-height: 50px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
}

.ucd-header-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #35104f,
      #53117c
    );
  border: 1px solid rgba(53, 16, 79, 0.9);
  border-radius: 16px;
  box-shadow:
    0 12px 28px rgba(53, 16, 79, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform var(--ucd-transition),
    box-shadow var(--ucd-transition),
    background-color var(--ucd-transition);
}

.ucd-header-create:hover {
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(53, 16, 79, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transform: translateY(-1px);
}

.ucd-header-settings {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 10px;
  color: var(--ucd-text);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.ucd-header-settings:hover {
  color: var(--ucd-primary);
  background: rgba(77, 42, 122, 0.07);
  text-decoration: none;
}

.ucd-header-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ucd-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #35104f;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(53, 16, 79, 0.18);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.ucd-header-user-name {
  max-width: 125px;
  overflow: hidden;
  color: var(--ucd-text);
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Workspace placement
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-workspace-shell {
  margin-top: 10px;
}

body.ucd-sign-2 .ucd-workspace-sidebar {
  top: 8px;
  min-height: calc(100vh - 140px);
  max-height: calc(100vh - 16px);
}

body.ucd-sign-2 .ucd-workspace-content {
  width: 100%;
  min-width: 0;
}

/* El contenido derecho utiliza todo el espacio disponible. */

body.ucd-sign-2 .ucd-finder {
  width: 100%;
  max-width: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1250px) {
  .ucd-header-v2 {
    grid-template-columns:
      minmax(350px, 0.8fr)
      minmax(260px, 0.7fr)
      auto;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ucd-header-v2-logo {
    height: 55px;
    max-width: 195px;
  }

  .ucd-header-v2-divider {
    margin-left: 15px;
    margin-right: 15px;
  }

  .ucd-header-user-name {
    display: none;
  }
}

@media (max-width: 980px) {
  .ucd-header-v2 {
    grid-template-columns: 1fr auto;
  }

  .ucd-header-v2-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ucd-header-v2-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 780px) {
  body.ucd-sign-2 .ucd-main-container,
  .ucd-header-v2 {
    width: calc(100vw - 8px) !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
  }

  .ucd-header-v2 {
    display: flex;
    flex-wrap: wrap;
    min-height: auto;
  }

  .ucd-header-v2-brand {
    width: 100%;
  }

  .ucd-header-v2-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ucd-header-v2-search {
    width: 100%;
  }

  body.ucd-sign-2 .ucd-workspace-shell {
    display: block;
  }
}

/* =========================================================
   UCD SIGN V2 - FINAL PROPORTIONS V1
   ========================================================= */

/*
 * Evita que 100vw incluya el ancho del scrollbar y produzca
 * desplazamiento horizontal.
 */
html,
body.ucd-sign-2 {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body.ucd-sign-2 *,
body.ucd-sign-2 *::before,
body.ucd-sign-2 *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Header global
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-header-v2 {
  width: auto !important;
  max-width: none !important;
  min-height: 94px;
  margin: 6px 8px 0 !important;
  padding: 12px 18px;
  grid-template-columns:
    minmax(420px, 0.95fr)
    minmax(300px, 0.85fr)
    auto;
  gap: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

/* Logo y producto con proporciones más cercanas al V2 */

body.ucd-sign-2 .ucd-header-v2-logo {
  height: 58px;
  max-width: 205px;
}

body.ucd-sign-2 .ucd-header-v2-divider {
  height: 50px;
  margin-left: 18px;
  margin-right: 20px;
}

body.ucd-sign-2 .ucd-header-v2-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  margin-top: 7px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
}

/* Buscador del header */

body.ucd-sign-2 .ucd-global-search-input {
  height: 50px;
  font-size: 0.92rem;
}

/* Acciones superiores un poco más compactas */

body.ucd-sign-2 .ucd-header-v2-actions {
  gap: 8px;
}

body.ucd-sign-2 .ucd-header-v2-actions .white-button,
body.ucd-sign-2 .ucd-header-v2-actions button,
body.ucd-sign-2 .ucd-header-create {
  min-height: 48px;
}

body.ucd-sign-2 .ucd-header-create {
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------------------------------------------------------
   Contenedor principal pegado a los bordes
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-main-container {
  width: auto !important;
  max-width: none !important;
  margin: 10px 8px 0 !important;
  padding: 0 0 12px !important;
}

/* ---------------------------------------------------------
   Sidebar y contenido
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-workspace-shell {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

body.ucd-sign-2 .ucd-workspace-sidebar {
  top: 8px;
  width: 280px;
  min-width: 280px;
  border-radius: 18px;
}

body.ucd-sign-2 .ucd-workspace-content {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Los nombres de Locations tienen más espacio */

body.ucd-sign-2 .ucd-sidebar-link {
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  padding-left: 12px;
  padding-right: 10px;
}

body.ucd-sign-2 .ucd-sidebar-label {
  min-width: 0;
}

/* ---------------------------------------------------------
   Barra de título de Templates y Submissions
   --------------------------------------------------------- */

body.ucd-sign-2.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .flex.justify-between,

body.ucd-sign-2.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  > .flex.justify-between {
  display: grid !important;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center !important;
  gap: 16px;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 0 2px;
}

/*
 * El título ya no debe mostrar:
 * "Document Templat..."
 */
body.ucd-sign-2.ucd-controller-templates-dashboard h1,
body.ucd-sign-2.ucd-controller-submissions-dashboard h1 {
  min-width: 0;
  overflow: visible !important;
  font-size: clamp(1.8rem, 2.3vw, 2.25rem) !important;
  font-weight: 900;
  line-height: 1;
  text-overflow: clip !important;
  white-space: nowrap;
}

body.ucd-sign-2.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .flex.justify-between
  > .flex:first-child,

body.ucd-sign-2.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  > .flex.justify-between
  > .flex:first-child {
  min-width: 300px;
}

/* Acciones del toolbar */

body.ucd-sign-2.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .flex.justify-between
  > .flex.space-x-2,

body.ucd-sign-2.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  > .flex.justify-between
  > .flex.space-x-2 {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

/* Buscador interno más compacto */

body.ucd-sign-2.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .flex.justify-between
  search-input,

body.ucd-sign-2.ucd-controller-submissions-dashboard
  .ucd-workspace-content
  > .flex.justify-between
  search-input {
  width: 220px;
  max-width: 220px;
}

/* ---------------------------------------------------------
   Explorer
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-finder {
  width: 100%;
  max-width: none;
  border-radius: 18px;
}

body.ucd-sign-2 .ucd-finder-header {
  min-height: 50px;
}

body.ucd-sign-2 .ucd-finder-row {
  min-height: 60px;
}

/* ---------------------------------------------------------
   Resoluciones intermedias
   --------------------------------------------------------- */

@media (max-width: 1280px) {
  body.ucd-sign-2 .ucd-header-v2 {
    grid-template-columns:
      minmax(360px, 0.85fr)
      minmax(260px, 0.7fr)
      auto;
    gap: 10px;
  }

  body.ucd-sign-2 .ucd-workspace-shell {
    grid-template-columns: 255px minmax(0, 1fr) !important;
  }

  body.ucd-sign-2 .ucd-workspace-sidebar {
    width: 255px;
    min-width: 255px;
  }

  body.ucd-sign-2 .ucd-header-user-name {
    display: none;
  }
}

@media (max-width: 1050px) {
  body.ucd-sign-2.ucd-controller-templates-dashboard
    dashboard-dropzone
    > .flex.justify-between,

  body.ucd-sign-2.ucd-controller-submissions-dashboard
    .ucd-workspace-content
    > .flex.justify-between {
    grid-template-columns: 1fr;
  }

  body.ucd-sign-2.ucd-controller-templates-dashboard
    dashboard-dropzone
    > .flex.justify-between
    > .flex.space-x-2,

  body.ucd-sign-2.ucd-controller-submissions-dashboard
    .ucd-workspace-content
    > .flex.justify-between
    > .flex.space-x-2 {
    justify-content: flex-start;
  }
}

/* UCD FIXED WORKSPACE V1 START */

/* =========================================================
   UCD SIGN 2.0
   Fixed-height Finder workspace
   ========================================================= */

:root {
  --ucd-v2-page-gap: 8px;
  --ucd-v2-header-height: 94px;
  --ucd-v2-workspace-gap: 10px;
  --ucd-v2-sidebar-width: 280px;
}

/*
 * La ventana general no debe desplazarse horizontalmente.
 * El scroll vertical principal también queda controlado.
 */
html,
body.ucd-sign-2 {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden !important;
}

body.ucd-sign-2 {
  min-height: 100vh;
}

/* ---------------------------------------------------------
   Header fijo visualmente
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-header-v2 {
  width: auto !important;
  max-width: none !important;
  min-height: var(--ucd-v2-header-height) !important;
  margin:
    var(--ucd-v2-page-gap)
    var(--ucd-v2-page-gap)
    0 !important;
}

/* ---------------------------------------------------------
   Área principal
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-main-container {
  width: auto !important;
  max-width: none !important;

  /*
   * Altura restante después del header y márgenes.
   */
  height: calc(
    100vh
    - var(--ucd-v2-header-height)
    - (var(--ucd-v2-page-gap) * 3)
  ) !important;

  min-height: 560px;
  margin:
    var(--ucd-v2-workspace-gap)
    var(--ucd-v2-page-gap)
    var(--ucd-v2-page-gap) !important;

  padding: 0 !important;
  overflow: hidden !important;
}

/* ---------------------------------------------------------
   Shell: sidebar y contenido con la misma altura
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-workspace-shell {
  display: grid !important;
  grid-template-columns:
    var(--ucd-v2-sidebar-width)
    minmax(0, 1fr) !important;

  align-items: stretch !important;
  gap: 12px !important;

  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-workspace-sidebar {
  position: relative !important;
  top: auto !important;

  display: flex !important;
  flex-direction: column !important;

  width: var(--ucd-v2-sidebar-width) !important;
  min-width: var(--ucd-v2-sidebar-width) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow: hidden !important;
  border-radius: 18px !important;
}

body.ucd-sign-2 .ucd-sidebar-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.ucd-sign-2 .ucd-sidebar-footer {
  flex: 0 0 auto !important;
  background: rgba(255, 255, 255, 0.90);
}

/* ---------------------------------------------------------
   Panel derecho
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-workspace-content {
  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  padding: 0 !important;
  overflow: hidden !important;
}

/*
 * Templates usa este custom element como wrapper principal.
 */
body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  > dashboard-dropzone {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;

  overflow: hidden !important;
}

/*
 * Submissions no usa siempre dashboard-dropzone como wrapper.
 */
body.ucd-controller-submissions-dashboard
  .ucd-workspace-content {
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* ---------------------------------------------------------
   Toolbar superior de Templates
   --------------------------------------------------------- */

body.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .flex.justify-between {
  flex: 0 0 auto !important;

  min-height: 66px !important;
  margin: 0 0 10px !important;
  padding: 0 4px !important;
}

/* Evitar que el título se corte */

body.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .flex.justify-between
  h1 {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* ---------------------------------------------------------
   Explorer con altura controlada
   --------------------------------------------------------- */

body.ucd-controller-templates-dashboard
  dashboard-dropzone
  > ucd-explorer {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;

  width: 100% !important;
  min-height: 0 !important;

  overflow: hidden !important;
}

/*
 * Si existe algún wrapper adicional alrededor del finder,
 * también debe poder contraerse dentro del flex.
 */
body.ucd-controller-templates-dashboard
  dashboard-dropzone
  .ucd-finder {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  border-radius: 18px !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* ---------------------------------------------------------
   Cabecera de columnas fija
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-finder-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;

  flex: 0 0 auto !important;

  background: rgba(250, 249, 251, 0.98) !important;
  border-bottom: 1px solid var(--ucd-border) !important;
  backdrop-filter: blur(18px);
}

/*
 * Las etiquetas FOLDERS / DOCUMENTS permanecen visualmente
 * integradas, pero no fuerzan a crecer el workspace.
 */
body.ucd-sign-2 .ucd-finder-section {
  position: relative;
  z-index: 5;
}

/* ---------------------------------------------------------
   Filas
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-finder-row {
  flex: 0 0 auto !important;
  min-height: 60px !important;
}

/*
 * Los nombres largos no deben ensanchar la tabla.
 */
body.ucd-sign-2 .ucd-finder-row > *,
body.ucd-sign-2 .ucd-finder-header > * {
  min-width: 0;
}

body.ucd-sign-2 .ucd-finder-row a,
body.ucd-sign-2 .ucd-finder-row span {
  max-width: 100%;
}

/* ---------------------------------------------------------
   Ocultar Tour debajo del listado
   --------------------------------------------------------- */

body.ucd-controller-templates-dashboard #ucd_tour_box,
body.ucd-controller-templates-dashboard #app_tour_manager,
body.ucd-controller-templates-dashboard app-tour,
body.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .mt-4:has(#ucd_tour_box),
body.ucd-controller-templates-dashboard
  dashboard-dropzone
  > .mt-4:has(app-tour) {
  display: none !important;
}

/*
 * El dropzone inferior no debe aparecer debajo de una lista
 * grande dentro del workspace fijo.
 */
body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  > [class*="border-dashed"]:last-child {
  display: none !important;
}

/* ---------------------------------------------------------
   Paginación
   --------------------------------------------------------- */

/*
 * Cuando Rails presente paginación, queda como footer compacto
 * y no aumenta la altura total de la página.
 */
body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  nav[aria-label*="pagination" i],
body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  .pagination {
  flex: 0 0 auto !important;
  min-height: 48px;
  margin-top: 8px !important;
}

/* ---------------------------------------------------------
   Mejor alineación inferior
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-workspace-sidebar,
body.ucd-sign-2 .ucd-workspace-content,
body.ucd-sign-2 .ucd-finder {
  align-self: stretch !important;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --ucd-v2-sidebar-width: 245px;
  }
}

@media (max-width: 780px) {
  body.ucd-sign-2 .ucd-main-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.ucd-sign-2 .ucd-workspace-shell {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.ucd-sign-2 .ucd-workspace-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 340px !important;
    margin-bottom: 10px;
  }

  body.ucd-sign-2 .ucd-workspace-content,
  body.ucd-controller-templates-dashboard
    .ucd-workspace-content
    > dashboard-dropzone {
    height: auto !important;
    overflow: visible !important;
  }

  body.ucd-controller-templates-dashboard
    dashboard-dropzone
    .ucd-finder {
    max-height: 65vh !important;
  }
}

/* UCD FIXED WORKSPACE V1 END */

/* UCD EXPLORER SPLIT PANES V2 START */

/* =========================================================
   UCD Explorer V2
   Independent Folders and Documents panes
   ========================================================= */

body.ucd-sign-2 ucd-explorer {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.ucd-sign-2 .ucd-explorer-v2 {
  display: grid;
  grid-template-rows:
    minmax(180px, 34%)
    minmax(260px, 1fr)
    auto;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/*
 * Cuando no existen system folders, Documents usa
 * todo el espacio restante.
 */
body.ucd-sign-2
  .ucd-explorer-v2:not(:has(.ucd-explorer-system-pane)) {
  grid-template-rows:
    minmax(180px, 34%)
    minmax(280px, 1fr);
}

/*
 * Cuando tampoco existen folders, Documents ocupa
 * todo el Explorer.
 */
body.ucd-sign-2
  .ucd-explorer-v2:not(:has(.ucd-explorer-folders-pane)) {
  grid-template-rows:
    minmax(320px, 1fr)
    auto;
}

/* ---------------------------------------------------------
   Pane card
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-explorer-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ucd-border);
  border-radius: 16px;
  box-shadow: var(--ucd-shadow-sm);
}

body.ucd-sign-2 .ucd-explorer-pane-title {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ucd-text);
  background:
    linear-gradient(
      180deg,
      rgba(252, 251, 253, 0.98),
      rgba(248, 247, 250, 0.94)
    );
  border-bottom: 1px solid var(--ucd-border);
}

body.ucd-sign-2 .ucd-explorer-pane-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

body.ucd-sign-2 .ucd-explorer-pane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 25px;
  padding: 0 9px;
  color: var(--ucd-primary);
  background: rgba(77, 42, 122, 0.09);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 850;
}

/* ---------------------------------------------------------
   Table inside pane
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-explorer-pane-table {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.ucd-sign-2 .ucd-explorer-pane .ucd-finder-header {
  position: relative !important;
  top: auto !important;
  z-index: 10;
  flex: 0 0 42px !important;
  min-height: 42px !important;
  padding-left: 14px;
  padding-right: 14px;
  background: rgba(250, 249, 251, 0.98) !important;
}

body.ucd-sign-2 .ucd-explorer-pane-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* ---------------------------------------------------------
   Compact rows
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-explorer-v2 .ucd-finder-row {
  min-height: 54px !important;
  padding-top: 5px;
  padding-bottom: 5px;
}

body.ucd-sign-2 .ucd-explorer-v2 .ucd-finder-icon {
  width: 27px;
  height: 27px;
  font-size: 19px;
}

body.ucd-sign-2 .ucd-explorer-v2 .ucd-finder-name {
  font-size: 0.84rem;
}

body.ucd-sign-2 .ucd-explorer-v2 .ucd-finder-description,
body.ucd-sign-2 .ucd-explorer-v2 .ucd-finder-meta {
  font-size: 0.72rem;
}

/* ---------------------------------------------------------
   System pane
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-explorer-system-pane {
  max-height: 190px;
  min-height: 130px;
}

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-finder-empty-compact {
  padding-top: 22px;
  padding-bottom: 22px;
}

/* ---------------------------------------------------------
   Remove old one-scroll Finder behavior
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-finder {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  border: 0;
  box-shadow: none;
}

body.ucd-controller-templates-dashboard
  dashboard-dropzone
  .ucd-finder {
  overflow: visible !important;
}

/* ---------------------------------------------------------
   Keep context menus outside scroll clipping
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-context-menu {
  position: fixed;
}

/* ---------------------------------------------------------
   Responsive columns
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  body.ucd-sign-2 .ucd-finder-header,
  body.ucd-sign-2 .ucd-finder-row {
    grid-template-columns:
      28px
      minmax(230px, 1fr)
      105px
      150px
      130px
      40px;
  }
}

@media (max-width: 930px) {
  body.ucd-sign-2 .ucd-explorer-v2 {
    grid-template-rows:
      minmax(180px, 32vh)
      minmax(300px, 55vh)
      auto;
    height: auto;
    overflow: visible;
  }

  body.ucd-sign-2 .ucd-explorer-pane {
    min-height: 0;
  }

  body.ucd-sign-2 .ucd-explorer-pane-scroll {
    max-height: inherit;
  }
}

/* UCD EXPLORER SPLIT PANES V2 END */

/* =========================================================
   UCD SETTINGS 3.0 — SHELL V2
   ========================================================= */

.ucd-settings3 {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100dvh - 104px);
  background: #f5f7f9;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  overflow: hidden;
}

.ucd-settings3-sidebar {
  min-width: 0;
  background: #ffffff;
  border-right: 1px solid #dfe4ea;
}

.ucd-settings3-sidebar-inner {
  height: calc(100dvh - 106px);
  min-height: 620px;
}

.ucd-settings3-sidebar-nav {
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px;
  scrollbar-width: thin;
}

.ucd-settings3-sidebar-nav > .block {
  width: 100% !important;
}

.ucd-settings3-sidebar-nav #account_settings_menu {
  width: 100%;
  padding: 0;
}

.ucd-settings3-sidebar-nav #account_settings_menu .menu-title {
  margin: 0 0 8px !important;
  padding: 0 8px !important;
}

.ucd-settings3-sidebar-nav #account_settings_menu li {
  width: 100%;
}

.ucd-settings3-sidebar-nav #account_settings_menu a,
.ucd-settings3-sidebar-nav #account_settings_menu label {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 20px;
}

.ucd-settings3-sidebar-nav #account_settings_menu a.active,
.ucd-settings3-sidebar-nav #account_settings_menu a[aria-current="page"] {
  background: #eef3f6;
  color: #123f52;
  font-weight: 600;
}

.ucd-settings3-sidebar-nav #support_channels {
  display: block !important;
  margin: 24px 8px 0;
  padding-top: 18px;
}

.ucd-settings3-workspace {
  min-width: 0;
  background: #ffffff;
}

.ucd-settings3-page-header {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 22px 36px;
  background: #ffffff;
  border-bottom: 1px solid #e3e7eb;
}

.ucd-settings3-page-header h1 {
  margin: 3px 0 0;
  color: #202b33;
  font-size: 25px;
  line-height: 32px;
  font-weight: 650;
}

.ucd-settings3-eyebrow {
  margin: 0;
  color: #66727d;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ucd-settings3-content {
  padding: 30px 36px 48px;
  background: #ffffff;
}

.ucd-settings3-form {
  width: 100%;
  max-width: 820px;
  margin: 0;
}

.ucd-settings3-form > h1:first-child,
.ucd-settings3-form > h2:first-child {
  display: none;
}

.ucd-settings3-form .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ucd-settings3-form .card-body {
  padding-left: 0;
  padding-right: 0;
}

.ucd-settings3-form input,
.ucd-settings3-form select,
.ucd-settings3-form textarea {
  max-width: 100%;
}

.ucd-settings3-form .base-button,
.ucd-settings3-form .white-button,
.ucd-settings3-form .btn {
  min-height: 42px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .ucd-settings3 {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .ucd-settings3-page-header,
  .ucd-settings3-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* UCD SETTINGS 3 — NEW SIDEBAR */

.ucd-settings3-sidebar {
  overflow: hidden;
}

.ucd-s3-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.ucd-s3-nav-top {
  flex: none;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #e6eaee;
}

.ucd-s3-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53616d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ucd-s3-nav-title {
  margin-top: 18px;
  color: #1f2a32;
  font-size: 20px;
  font-weight: 700;
}

.ucd-s3-nav-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px 20px;
  scrollbar-width: thin;
}

.ucd-s3-group {
  margin-bottom: 20px;
}

.ucd-s3-group-label {
  padding: 0 10px 7px;
  color: #89939c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ucd-s3-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: #394854;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.ucd-s3-item:hover {
  background: #f1f4f6;
  color: #183f50;
}

.ucd-s3-item.is-active {
  background: #e8f1f5;
  color: #0f536b;
  font-weight: 700;
}

.ucd-s3-item.is-active::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 22px;
  margin-left: -10px;
  border-radius: 0 3px 3px 0;
  background: #12647e;
}

.ucd-s3-item svg {
  width: 16px;
  height: 16px;
  opacity: .82;
}

.ucd-s3-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4b400;
  color: #332500;
  font-size: 9px;
  font-weight: 800;
}

.ucd-s3-test-mode {
  margin: 6px 4px 0;
  padding: 12px 10px;
  border-top: 1px solid #e6eaee;
}

.ucd-s3-test-mode label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #44515c;
  font-size: 13px;
  font-weight: 600;
}

.ucd-s3-footer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px 17px;
  border-top: 1px solid #e6eaee;
  background: #fbfcfd;
  color: #697680;
  font-size: 11px;
  line-height: 1.4;
}

.ucd-s3-footer strong {
  color: #394854;
  font-size: 12px;
}

.ucd-s3-footer a {
  margin-bottom: 5px;
  color: #12647e;
  text-decoration: none;
}

/* =========================================================
   UCD SIGN — GLOBAL BACKGROUND / GLASS LAYOUT
   ========================================================= */

body.ucd-sign-2 {
  background-color: #eef1f5 !important;
}

/* Encabezado */
body.ucd-sign-2 .ucd-header-v2 {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Explorer */
body.ucd-sign-2 .ucd-workspace-shell {
  background: transparent !important;
}

body.ucd-sign-2 .ucd-workspace-sidebar {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.ucd-sign-2 .ucd-workspace-content {
  background: rgba(248, 249, 252, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Settings */
body.ucd-sign-2 .ucd-settings-shell {
  background: transparent !important;
}

body.ucd-sign-2 .ucd-settings-sidebar,
body.ucd-sign-2 .ucd-settings-nav {
  background: rgba(248, 249, 252, 0.90) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.ucd-sign-2 .ucd-settings-main,
body.ucd-sign-2 .ucd-settings-content {
  background: rgba(248, 249, 252, 0.80) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Tarjetas y tablas */
body.ucd-sign-2 .card,
body.ucd-sign-2 .ucd-finder-table,
body.ucd-sign-2 .ucd-page-header,
body.ucd-sign-2 .ucd-settings-page-body > section {
  background-color: rgba(255, 255, 255, 0.88) !important;
}

/* Formularios legibles */
body.ucd-sign-2 input,
body.ucd-sign-2 select,
body.ucd-sign-2 textarea {
  background-color: rgba(255, 255, 255, 0.94) !important;
}



/* UCD GLOBAL GLASS V2 */

body.ucd-sign-2 {
  min-height: 100dvh;
  background-color: #e9edf2 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Estructuras principales transparentes */
body.ucd-sign-2 .ucd-workspace-shell,
body.ucd-sign-2 .ucd-workspace-content,
body.ucd-sign-2 .ucd-explorer-page,
body.ucd-sign-2 .ucd-explorer-main,
body.ucd-sign-2 .ucd-explorer-content,
body.ucd-sign-2 dashboard-dropzone,
body.ucd-sign-2 .ucd-settings-shell,
body.ucd-sign-2 .ucd-settings-main,
body.ucd-sign-2 .ucd-settings-content {
  background: transparent !important;
}

/* Header */
body.ucd-sign-2 .ucd-header-v2 {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
}

/* Barras laterales */
body.ucd-sign-2 .ucd-workspace-sidebar,
body.ucd-sign-2 .ucd-settings-sidebar,
body.ucd-sign-2 .ucd-settings-nav {
  background: rgba(248, 249, 252, 0.82) !important;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

/* Área central */
body.ucd-sign-2 .ucd-workspace-content,
body.ucd-sign-2 .ucd-settings-main {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(12px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
}

/* Cabeceras de página */
body.ucd-sign-2 .ucd-page-header,
body.ucd-sign-2 .ucd-settings-header {
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tablas y paneles */
body.ucd-sign-2 .ucd-finder-table,
body.ucd-sign-2 .ucd-finder,
body.ucd-sign-2 .card,
body.ucd-sign-2 .ucd-settings-page-body > section,
body.ucd-sign-2 dashboard-dropzone > .border,
body.ucd-sign-2 .table {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Filas */
body.ucd-sign-2 .ucd-finder-table tr,
body.ucd-sign-2 .table tr {
  background: rgba(255, 255, 255, 0.42) !important;
}

body.ucd-sign-2 .ucd-finder-table tr:hover,
body.ucd-sign-2 .table tr:hover {
  background: rgba(255, 255, 255, 0.72) !important;
}

/* Campos */
body.ucd-sign-2 input,
body.ucd-sign-2 select,
body.ucd-sign-2 textarea {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Footer y tour */
body.ucd-sign-2 .ucd-workspace-footer,
body.ucd-sign-2 .ucd-settings-footer,
body.ucd-sign-2 .ucd-tour,
body.ucd-sign-2 [class*="tour"] {
  background: rgba(255, 255, 255, 0.68) !important;
}


/* UCD FLOATING SHELL V1 */

/* El fondo global queda visible alrededor de los paneles */
body.ucd-sign-2 {
  min-height: 100dvh;
}

body.ucd-sign-2 .ucd-main-container {
  width: auto !important;
  max-width: none !important;
  margin: 16px !important;
  padding: 0 !important;
  background: transparent !important;
}

/* =========================================================
   EXPLORER
   ========================================================= */

body.ucd-sign-2 .ucd-workspace-shell {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;

  width: 100% !important;
  height: calc(100dvh - 154px) !important;
  min-height: 0 !important;
  margin: 0 !important;

  background: transparent !important;
  overflow: visible !important;
}

/* Sidebar flotante */
body.ucd-sign-2 .ucd-workspace-sidebar {
  position: relative !important;
  top: auto !important;

  width: 280px !important;
  min-width: 280px !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow: hidden !important;

  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  border-radius: 22px !important;

  box-shadow:
    0 16px 42px rgba(23, 16, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;

  backdrop-filter: blur(22px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(135%) !important;
}

/* Contenido flotante */
body.ucd-sign-2 .ucd-workspace-content {
  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  padding: 18px !important;
  overflow: hidden !important;

  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-radius: 22px !important;

  box-shadow:
    0 16px 42px rgba(23, 16, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;

  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
}

/* Wrapper interno de Templates */
body.ucd-controller-templates-dashboard
  .ucd-workspace-content
  > dashboard-dropzone {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: transparent !important;
}

/* Finder como panel interno */
body.ucd-sign-2 .ucd-finder,
body.ucd-sign-2 .ucd-finder-table {
  background: rgba(255, 255, 255, 0.72) !important;
  border-radius: 18px !important;
}

/* =========================================================
   SETTINGS
   ========================================================= */

body.ucd-sign-2 .ucd-settings-shell {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;

  width: 100% !important;
  height: calc(100dvh - 154px) !important;
  min-height: 0 !important;
  margin: 0 !important;

  background: transparent !important;
  overflow: visible !important;
}

/* Sidebar Settings flotante */
body.ucd-sign-2 .ucd-settings-sidebar {
  width: 280px !important;
  min-width: 280px !important;
  height: 100% !important;
  min-height: 0 !important;

  overflow: hidden !important;

  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  border-radius: 22px !important;

  box-shadow:
    0 16px 42px rgba(23, 16, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;

  backdrop-filter: blur(22px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(135%) !important;
}

/* Panel derecho Settings */
body.ucd-sign-2 .ucd-settings-main {
  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  overflow: hidden !important;

  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-radius: 22px !important;

  box-shadow:
    0 16px 42px rgba(23, 16, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;

  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
}

body.ucd-sign-2 .ucd-settings-header {
  flex: none !important;
  padding: 24px 32px 16px !important;
  background: transparent !important;
  border: 0 !important;
}

body.ucd-sign-2 .ucd-settings-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 20px 32px 44px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
}

/* =========================================================
   HEADER FLOTANTE
   ========================================================= */

body.ucd-sign-2 .ucd-header-v2 {
  width: auto !important;
  margin: 14px 16px 0 !important;

  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 22px !important;

  box-shadow:
    0 14px 36px rgba(23, 16, 35, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;

  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  body.ucd-sign-2 .ucd-main-container {
    margin: 10px !important;
  }

  body.ucd-sign-2 .ucd-workspace-shell,
  body.ucd-sign-2 .ucd-settings-shell {
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.ucd-sign-2 .ucd-workspace-sidebar,
  body.ucd-sign-2 .ucd-settings-sidebar {
    width: 230px !important;
    min-width: 230px !important;
  }
}

@media (max-width: 780px) {
  body.ucd-sign-2 .ucd-header-v2 {
    margin: 8px !important;
  }

  body.ucd-sign-2 .ucd-workspace-shell,
  body.ucd-sign-2 .ucd-settings-shell {
    display: block !important;
    height: auto !important;
  }

  body.ucd-sign-2 .ucd-workspace-sidebar,
  body.ucd-sign-2 .ucd-settings-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 340px !important;
    margin-bottom: 10px !important;
  }

  body.ucd-sign-2 .ucd-workspace-content,
  body.ucd-sign-2 .ucd-settings-main {
    height: auto !important;
    min-height: 600px !important;
  }
}

/* =========================================================
   UCD HEADER BRANDING
   ========================================================= */

/* Header con separación */
.ucd-header-v2{
    border:1px solid rgba(0,0,0,.08)!important;
    border-bottom:3px solid #2d153f!important;
    box-shadow:0 8px 24px rgba(0,0,0,.12)!important;
    overflow:hidden;
}

/* Zona del logo */
.ucd-header-v2-left{
    background:#18181b!important;
    padding:0 24px!important;
    border-right:2px solid rgba(255,255,255,.08)!important;
}

/* Logo */
.ucd-header-v2-left img{
    filter:drop-shadow(0 2px 8px rgba(255,255,255,.18));
}

/* Nombre */
.ucd-header-v2-title{
    font-weight:800!important;
}

/* Subtítulo */
.ucd-header-v2-subtitle{
    opacity:.82;
}


/* UCD HEADER — BRAND AREA CORRECTO */

.ucd-header-v2 {
  border-bottom: 3px solid #17131d !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16) !important;
  overflow: hidden !important;
}

.ucd-header-v2-brand {
  align-self: stretch !important;
  padding: 0 22px !important;
  margin-left: -22px !important;
  background: #111114 !important;
  border-right: 1px solid rgba(255, 255, 255, .16) !important;
}

.ucd-header-v2-logo-link {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.ucd-header-v2-logo {
  filter: drop-shadow(0 2px 7px rgba(255, 255, 255, .18));
}

.ucd-header-v2-divider {
  background: rgba(255, 255, 255, .24) !important;
}

.ucd-header-v2-title,
.ucd-header-v2-subtitle {
  color: #ffffff !important;
}

/* =========================================================
   UCD HEADER — BLACK BRAND PANEL FINAL
   ========================================================= */

body.ucd-sign-2 .ucd-header-v2 {
  display: flex !important;
  align-items: stretch !important;
  min-height: 92px !important;
  padding: 0 !important;
  overflow: hidden !important;

  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(20, 15, 27, .12) !important;
  border-bottom: 3px solid #17131d !important;
  border-radius: 22px !important;

  box-shadow: 0 10px 28px rgba(16, 10, 24, .18) !important;
}

/* Bloque negro completo del branding */
body.ucd-sign-2 .ucd-header-v2-brand {
  display: flex !important;
  align-items: center !important;
  align-self: stretch !important;
  flex: 0 0 520px !important;

  min-width: 520px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 26px !important;

  background: #101014 !important;
  border-right: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 20px 0 0 20px !important;
}

/* Logo */
body.ucd-sign-2 .ucd-header-v2-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  height: 100% !important;
}

body.ucd-sign-2 .ucd-header-v2-logo {
  display: block !important;
  max-width: 150px !important;
  max-height: 66px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;

  filter: drop-shadow(0 3px 10px rgba(255, 255, 255, .20));
}

/* Separador dentro del bloque negro */
body.ucd-sign-2 .ucd-header-v2-divider {
  align-self: stretch !important;
  width: 1px !important;
  height: auto !important;
  margin: 0 20px !important;

  background: rgba(255, 255, 255, .25) !important;
}

/* Nombre del producto */
body.ucd-sign-2 .ucd-header-v2-product {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

body.ucd-sign-2 .ucd-header-v2-title {
  color: #ffffff !important;
  font-size: 29px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  margin-top: 5px !important;
  color: rgba(255, 255, 255, .76) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

/* Buscador y acciones conservan el área blanca */
body.ucd-sign-2 .ucd-header-v2-search {
  align-self: center !important;
  flex: 1 1 auto !important;
  min-width: 220px !important;
  margin-left: 28px !important;
}

body.ucd-sign-2 .ucd-header-v2-actions {
  align-self: center !important;
  flex: 0 0 auto !important;
  margin-left: 22px !important;
  margin-right: 22px !important;
}

/* Settings no tiene buscador: empuja las acciones a la derecha */
body.ucd-sign-2 .ucd-header-v2-brand + .ucd-header-v2-actions {
  margin-left: auto !important;
}

/* Responsive */
@media (max-width: 1150px) {
  body.ucd-sign-2 .ucd-header-v2-brand {
    flex-basis: 430px !important;
    min-width: 430px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-title {
    font-size: 24px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-subtitle {
    font-size: 11px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-search {
    margin-left: 16px !important;
  }
}


/* UCD HEADER — BALANCE FINAL */

body.ucd-sign-2 .ucd-header-v2-brand {
  flex: 0 0 500px !important;
  min-width: 500px !important;
  padding: 12px 22px !important;
}

body.ucd-sign-2 .ucd-header-v2-logo-link {
  flex: 0 0 165px !important;
  width: 165px !important;
}

body.ucd-sign-2 .ucd-header-v2-logo {
  width: 155px !important;
  max-width: 155px !important;
  max-height: 68px !important;
}

body.ucd-sign-2 .ucd-header-v2-divider {
  margin: 0 18px !important;
}

body.ucd-sign-2 .ucd-header-v2-product {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.ucd-sign-2 .ucd-header-v2-title {
  white-space: nowrap !important;
  overflow: visible !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  display: block !important;
  max-width: 250px !important;
  white-space: normal !important;
  overflow: visible !important;
}

body.ucd-sign-2 .ucd-header-v2-search {
  min-width: 300px !important;
}

@media (max-width: 1250px) {
  body.ucd-sign-2 .ucd-header-v2-brand {
    flex-basis: 440px !important;
    min-width: 440px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo-link {
    flex-basis: 135px !important;
    width: 135px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo {
    width: 125px !important;
    max-width: 125px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-subtitle {
    max-width: 215px !important;
    font-size: 10px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-search {
    min-width: 220px !important;
  }
}


/* =========================================================
   UCD HEADER — MODERN POLISH FINAL
   ========================================================= */

body.ucd-sign-2 .ucd-header-v2 {
  min-height: 88px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(29, 18, 40, .12) !important;
  border-bottom: 2px solid #2d153f !important;
  box-shadow:
    0 10px 28px rgba(25, 14, 36, .14),
    inset 0 1px 0 rgba(255, 255, 255, .85) !important;
}

/* Panel negro más equilibrado */
body.ucd-sign-2 .ucd-header-v2-brand {
  flex: 0 0 455px !important;
  min-width: 455px !important;
  padding: 12px 24px 12px 30px !important;

  background:
    linear-gradient(135deg, #0d0d11 0%, #16121c 100%) !important;

  border-radius: 19px 0 0 19px !important;
  border-right: 1px solid rgba(255, 255, 255, .14) !important;
}

/* Logo */
body.ucd-sign-2 .ucd-header-v2-logo-link {
  flex: 0 0 145px !important;
  width: 145px !important;
}

body.ucd-sign-2 .ucd-header-v2-logo {
  width: 138px !important;
  max-width: 138px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, .12));
}

/* Separador */
body.ucd-sign-2 .ucd-header-v2-divider {
  margin: 0 18px !important;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,.30),
    transparent
  ) !important;
}

/* Producto */
body.ucd-sign-2 .ucd-header-v2-product {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.ucd-sign-2 .ucd-header-v2-title {
  color: #ffffff !important;
  font-size: 29px !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  white-space: nowrap !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  display: block !important;
  max-width: 235px !important;
  margin-top: 7px !important;

  color: rgba(255, 255, 255, .84) !important;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
  font-weight: 550 !important;
  letter-spacing: .005em !important;
}

/* Buscador más limpio */
body.ucd-sign-2 .ucd-header-v2-search {
  min-width: 300px !important;
  margin-left: 30px !important;
}

body.ucd-sign-2 .ucd-global-search {
  min-height: 48px !important;
  border: 1px solid rgba(47, 23, 68, .12) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow:
    0 5px 16px rgba(32, 18, 43, .06),
    inset 0 1px 0 rgba(255,255,255,.85) !important;
}

body.ucd-sign-2 .ucd-global-search:focus-within {
  border-color: rgba(76, 29, 112, .34) !important;
  box-shadow:
    0 0 0 3px rgba(76, 29, 112, .08),
    0 6px 18px rgba(32, 18, 43, .08) !important;
}

/* Acciones */
body.ucd-sign-2 .ucd-header-v2-actions {
  gap: 16px !important;
  margin-left: 24px !important;
  margin-right: 24px !important;
}

body.ucd-sign-2 .ucd-header-create {
  min-height: 48px !important;
  padding: 0 24px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(69, 25, 96, .20) !important;
}

body.ucd-sign-2 .ucd-header-settings,
body.ucd-sign-2 .ucd-header-upload {
  font-weight: 650 !important;
}

body.ucd-sign-2 .ucd-header-avatar {
  width: 44px !important;
  height: 44px !important;
  box-shadow: 0 7px 18px rgba(48, 18, 67, .18) !important;
}

/* Ajuste para Settings sin buscador */
body.ucd-sign-2 .ucd-header-v2-brand + .ucd-header-v2-actions {
  margin-left: auto !important;
}

/* Pantallas medianas */
@media (max-width: 1280px) {
  body.ucd-sign-2 .ucd-header-v2-brand {
    flex-basis: 410px !important;
    min-width: 410px !important;
    padding-left: 22px !important;
    padding-right: 18px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo-link {
    flex-basis: 125px !important;
    width: 125px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo {
    width: 118px !important;
    max-width: 118px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-title {
    font-size: 25px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-subtitle {
    max-width: 205px !important;
    font-size: 11px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-search {
    min-width: 230px !important;
    margin-left: 18px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-actions {
    gap: 10px !important;
    margin-left: 14px !important;
    margin-right: 16px !important;
  }
}

/* UCD HEADER — TEXT FIX */

body.ucd-sign-2 .ucd-header-v2-brand {
  flex: 0 0 470px !important;
  min-width: 470px !important;
  padding: 12px 22px 12px 28px !important;
}

body.ucd-sign-2 .ucd-header-v2-logo-link {
  flex: 0 0 150px !important;
  width: 150px !important;
}

body.ucd-sign-2 .ucd-header-v2-logo {
  width: 142px !important;
  max-width: 142px !important;
}

body.ucd-sign-2 .ucd-header-v2-divider {
  margin: 0 18px !important;
}

body.ucd-sign-2 .ucd-header-v2-product {
  min-width: 245px !important;
  overflow: visible !important;
}

body.ucd-sign-2 .ucd-header-v2-title {
  font-size: 28px !important;
  white-space: nowrap !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  display: block !important;
  max-width: none !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

@media (max-width: 1280px) {
  body.ucd-sign-2 .ucd-header-v2-brand {
    flex-basis: 430px !important;
    min-width: 430px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo-link {
    flex-basis: 125px !important;
    width: 125px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo {
    width: 118px !important;
    max-width: 118px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-title {
    font-size: 25px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-subtitle {
    font-size: 10.5px !important;
  }
}

/* =========================================================
   UCD SIGN — BLACK & GOLD MODERN THEME
   ========================================================= */

:root {
  --ucd-accent: #d5a62e;
  --ucd-accent-dark: #a97912;
  --ucd-dark: #111214;
  --ucd-dark-soft: #25272b;
  --ucd-active-bg: #fff5d6;
  --ucd-active-border: #d5a62e;
}

/* Franja superior completa oscura */
body.ucd-sign-2 .ucd-header-v2 {
  background:
    linear-gradient(110deg, #111214 0%, #191a1d 72%, #25272b 100%) !important;

  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-bottom: 3px solid var(--ucd-accent) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22) !important;
}

/* Branding integrado en toda la franja */
body.ucd-sign-2 .ucd-header-v2-brand {
  flex: 0 0 455px !important;
  min-width: 455px !important;
  background: transparent !important;
  border-right: 1px solid rgba(255, 255, 255, .16) !important;
}

/* Texto y acciones del header */
body.ucd-sign-2 .ucd-header-v2-title,
body.ucd-sign-2 .ucd-header-v2-subtitle,
body.ucd-sign-2 .ucd-header-settings,
body.ucd-sign-2 .ucd-header-upload,
body.ucd-sign-2 .ucd-header-user-name {
  color: #ffffff !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  color: rgba(255, 255, 255, .78) !important;
  white-space: nowrap !important;
}

/* Buscador oscuro moderno */
body.ucd-sign-2 .ucd-global-search {
  background: rgba(255, 255, 255, .09) !important;
  border: 1px solid rgba(255, 255, 255, .26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

body.ucd-sign-2 .ucd-global-search-input,
body.ucd-sign-2 .ucd-global-search-icon {
  color: #ffffff !important;
}

body.ucd-sign-2 .ucd-global-search-input::placeholder {
  color: rgba(255, 255, 255, .68) !important;
}

/* Botón Create dorado */
body.ucd-sign-2 .ucd-header-create {
  color: #18140a !important;
  background:
    linear-gradient(135deg, #efd066 0%, #d5a62e 100%) !important;

  border: 1px solid rgba(255, 226, 128, .70) !important;
  box-shadow: 0 8px 20px rgba(213, 166, 46, .24) !important;
}

body.ucd-sign-2 .ucd-header-create:hover {
  background:
    linear-gradient(135deg, #f4d97b 0%, #dfb43d 100%) !important;
}

/* Avatar */
body.ucd-sign-2 .ucd-header-avatar {
  color: #18140a !important;
  background: var(--ucd-accent) !important;
}

/* Sidebar activo sin morado */
body.ucd-sign-2 .ucd-sidebar-link-active,
body.ucd-sign-2 #account_settings_menu a.active,
body.ucd-sign-2 #account_settings_menu a[aria-current="page"] {
  color: #29200c !important;
  background: var(--ucd-active-bg) !important;
  border-left: 4px solid var(--ucd-active-border) !important;
}

/* Botones principales */
body.ucd-sign-2 .btn-primary,
body.ucd-sign-2 .base-button {
  color: #18140a !important;
  background:
    linear-gradient(135deg, #efd066 0%, #d5a62e 100%) !important;
  border-color: #d5a62e !important;
}

/* Enlaces y focos */
body.ucd-sign-2 a:focus-visible,
body.ucd-sign-2 button:focus-visible,
body.ucd-sign-2 input:focus-visible {
  outline: 3px solid rgba(213, 166, 46, .30) !important;
  outline-offset: 2px;
}

/* Paginación y selecciones */
body.ucd-sign-2 .pagination .active,
body.ucd-sign-2 [aria-current="page"] {
  border-color: var(--ucd-accent) !important;
}

/* Filas seleccionadas */
body.ucd-sign-2 .ucd-finder-row-selected,
body.ucd-sign-2 tr.selected {
  background: rgba(255, 245, 214, .72) !important;
}


/* =========================================================
   UCD HEADER — UNIFIED CORPORATE BAR
   ========================================================= */

body.ucd-sign-2 .ucd-header-v2 {
  display: flex !important;
  align-items: center !important;
  min-height: 88px !important;
  padding: 0 24px !important;
  overflow: hidden !important;

  background:
    linear-gradient(
      100deg,
      #29272a 0%,
      #35282d 20%,
      #4a3027 38%,
      #292629 58%,
      #202124 78%,
      #2b3429 100%
    ) !important;

  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-bottom: 2px solid #d6ad4a !important;
  border-radius: 20px !important;

  box-shadow:
    0 10px 28px rgba(18, 12, 20, .22),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

/* Branding integrado, sin panel separado */
body.ucd-sign-2 .ucd-header-v2-brand {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  flex: 0 0 440px !important;

  width: 440px !important;
  min-width: 440px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Logo */
body.ucd-sign-2 .ucd-header-v2-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 165px !important;
  width: 165px !important;
}

body.ucd-sign-2 .ucd-header-v2-logo {
  display: block !important;
  width: 155px !important;
  max-width: 155px !important;
  max-height: 62px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .28)) !important;
}

/* Separador */
body.ucd-sign-2 .ucd-header-v2-divider {
  align-self: stretch !important;
  width: 1px !important;
  height: auto !important;
  margin: 8px 20px !important;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, .30),
      transparent
    ) !important;
}

/* Nombre y subtítulo */
body.ucd-sign-2 .ucd-header-v2-product {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 230px !important;
  overflow: visible !important;
}

body.ucd-sign-2 .ucd-header-v2-title {
  color: #ffffff !important;
  font-size: 28px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  white-space: nowrap !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  display: block !important;
  margin-top: 6px !important;
  max-width: none !important;

  color: rgba(255, 255, 255, .82) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 550 !important;
  white-space: nowrap !important;
}

/* Buscador oscuro integrado */
body.ucd-sign-2 .ucd-header-v2-search {
  flex: 1 1 auto !important;
  min-width: 280px !important;
  margin: 0 28px !important;
}

body.ucd-sign-2 .ucd-global-search {
  min-height: 48px !important;

  background: rgba(255, 255, 255, .10) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 15px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 7px 20px rgba(0, 0, 0, .12) !important;
}

body.ucd-sign-2 .ucd-global-search:focus-within {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(225, 190, 100, .72) !important;
  box-shadow:
    0 0 0 3px rgba(214, 173, 74, .14),
    0 7px 20px rgba(0, 0, 0, .14) !important;
}

body.ucd-sign-2 .ucd-global-search-input,
body.ucd-sign-2 .ucd-global-search-icon {
  color: #ffffff !important;
}

body.ucd-sign-2 .ucd-global-search-input::placeholder {
  color: rgba(255, 255, 255, .68) !important;
}

/* Acciones del header */
body.ucd-sign-2 .ucd-header-v2-actions {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 16px !important;
  margin: 0 !important;
}

body.ucd-sign-2 .ucd-header-upload,
body.ucd-sign-2 .ucd-header-upload *,
body.ucd-sign-2 .ucd-header-settings,
body.ucd-sign-2 .ucd-header-settings *,
body.ucd-sign-2 .ucd-header-user-name {
  color: #ffffff !important;
}

/* Create dorado, sin morado */
body.ucd-sign-2 .ucd-header-create {
  min-height: 48px !important;
  padding: 0 24px !important;

  color: #241d0d !important;
  background:
    linear-gradient(135deg, #efd36f 0%, #d6ad4a 100%) !important;

  border: 1px solid rgba(255, 225, 135, .65) !important;
  border-radius: 14px !important;

  box-shadow:
    0 8px 22px rgba(214, 173, 74, .24),
    inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}

body.ucd-sign-2 .ucd-header-create,
body.ucd-sign-2 .ucd-header-create * {
  color: #241d0d !important;
}

body.ucd-sign-2 .ucd-header-create:hover {
  background:
    linear-gradient(135deg, #f4dc82 0%, #dfb95a 100%) !important;
  transform: translateY(-1px);
}

/* Avatar */
body.ucd-sign-2 .ucd-header-avatar {
  width: 44px !important;
  height: 44px !important;

  color: #ffffff !important;
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid #d6ad4a !important;

  box-shadow: 0 7px 18px rgba(0, 0, 0, .20) !important;
}

/* Settings sin buscador */
body.ucd-sign-2 .ucd-header-v2-brand + .ucd-header-v2-actions {
  margin-left: auto !important;
}

/* Sidebar y selecciones: dorado suave, no morado */
body.ucd-sign-2 .ucd-sidebar-link-active {
  color: #33270f !important;
  background: rgba(242, 216, 145, .28) !important;
  border-left-color: #d6ad4a !important;
}

body.ucd-sign-2 .ucd-sidebar-link-active svg {
  color: #a87917 !important;
}

/* Responsive */
@media (max-width: 1280px) {
  body.ucd-sign-2 .ucd-header-v2-brand {
    flex-basis: 390px !important;
    width: 390px !important;
    min-width: 390px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo-link {
    flex-basis: 135px !important;
    width: 135px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-logo {
    width: 125px !important;
    max-width: 125px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-title {
    font-size: 25px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-subtitle {
    font-size: 10.5px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-search {
    min-width: 220px !important;
    margin-left: 18px !important;
    margin-right: 18px !important;
  }

  body.ucd-sign-2 .ucd-header-v2-actions {
    gap: 10px !important;
  }
}

/* =========================================================
   UCD SIGN — UNIVERSAL COLOR THEME
   Carbón + azul + verde, sin morado ni dorado
   ========================================================= */

:root {
  --ucd-blue: #24a9e8;
  --ucd-blue-dark: #168bc4;
  --ucd-green: #39bf6b;
  --ucd-green-dark: #259a50;
  --ucd-charcoal-1: #20242a;
  --ucd-charcoal-2: #2a3038;
  --ucd-charcoal-3: #343b45;
}

/* Header oscuro suave con degradado */
body.ucd-sign-2 .ucd-header-v2 {
  position: relative !important;
  isolation: isolate !important;

  background:
    linear-gradient(
      105deg,
      #20242a 0%,
      #292e36 24%,
      #343b45 50%,
      #292f37 76%,
      #20242a 100%
    ) !important;

  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-bottom: 2px solid var(--ucd-blue) !important;

  box-shadow:
    0 10px 28px rgba(10, 16, 22, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* Brillos suaves inspirados en el logo */
body.ucd-sign-2 .ucd-header-v2::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;

  background:
    radial-gradient(
      circle at 16% 45%,
      rgba(36, 169, 232, .15),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 55%,
      rgba(57, 191, 107, .12),
      transparent 25%
    ),
    radial-gradient(
      circle at 52% -60%,
      rgba(255, 255, 255, .08),
      transparent 46%
    ) !important;
}

/* Branding sin bloque separado */
body.ucd-sign-2 .ucd-header-v2-brand {
  background: transparent !important;
  border-right-color: rgba(255, 255, 255, .14) !important;
  box-shadow: none !important;
}

/* Texto del header */
body.ucd-sign-2 .ucd-header-v2-title,
body.ucd-sign-2 .ucd-header-v2-subtitle,
body.ucd-sign-2 .ucd-header-upload,
body.ucd-sign-2 .ucd-header-upload *,
body.ucd-sign-2 .ucd-header-settings,
body.ucd-sign-2 .ucd-header-settings *,
body.ucd-sign-2 .ucd-header-user-name {
  color: #ffffff !important;
}

body.ucd-sign-2 .ucd-header-v2-subtitle {
  color: rgba(255, 255, 255, .78) !important;
}

/* Buscador claro con letras oscuras */
body.ucd-sign-2 .ucd-global-search {
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;

  box-shadow:
    0 7px 20px rgba(0, 0, 0, .13),
    inset 0 1px 0 rgba(255, 255, 255, .80) !important;
}

body.ucd-sign-2 .ucd-global-search-input {
  color: #19222b !important;
  background: transparent !important;
  caret-color: var(--ucd-blue) !important;
}

body.ucd-sign-2 .ucd-global-search-input::placeholder {
  color: #69737e !important;
  opacity: 1 !important;
}

body.ucd-sign-2 .ucd-global-search-icon,
body.ucd-sign-2 .ucd-global-search-icon svg {
  color: #4d5965 !important;
  stroke: #4d5965 !important;
}

body.ucd-sign-2 .ucd-global-search:focus-within {
  background: #ffffff !important;
  border-color: var(--ucd-blue) !important;

  box-shadow:
    0 0 0 3px rgba(36, 169, 232, .18),
    0 8px 22px rgba(0, 0, 0, .14) !important;
}

/* Botón Create azul */
body.ucd-sign-2 .ucd-header-create {
  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      #35b8f0 0%,
      var(--ucd-blue) 55%,
      var(--ucd-blue-dark) 100%
    ) !important;

  border: 1px solid rgba(113, 211, 249, .58) !important;

  box-shadow:
    0 9px 22px rgba(36, 169, 232, .28),
    inset 0 1px 0 rgba(255, 255, 255, .30) !important;
}

body.ucd-sign-2 .ucd-header-create,
body.ucd-sign-2 .ucd-header-create * {
  color: #ffffff !important;
}

body.ucd-sign-2 .ucd-header-create:hover {
  background:
    linear-gradient(
      135deg,
      #4ed77d 0%,
      var(--ucd-green) 55%,
      var(--ucd-green-dark) 100%
    ) !important;

  border-color: rgba(116, 230, 150, .65) !important;

  box-shadow:
    0 10px 24px rgba(57, 191, 107, .28),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;

  transform: translateY(-1px);
}

/* Avatar azul */
body.ucd-sign-2 .ucd-header-avatar {
  color: #ffffff !important;
  background: var(--ucd-blue) !important;
  border: 1px solid rgba(108, 211, 251, .70) !important;

  box-shadow:
    0 8px 20px rgba(36, 169, 232, .24) !important;
}

/* Sidebar activo */
body.ucd-sign-2 .ucd-sidebar-link-active {
  color: #0f648e !important;
  background: rgba(36, 169, 232, .12) !important;
  border-left-color: var(--ucd-blue) !important;
}

body.ucd-sign-2 .ucd-sidebar-link-active svg,
body.ucd-sign-2 .ucd-sidebar-link-active .ucd-sidebar-icon {
  color: var(--ucd-blue-dark) !important;
}

/* Menú activo de Settings */
body.ucd-sign-2 #account_settings_menu a.active,
body.ucd-sign-2 #account_settings_menu a[aria-current="page"] {
  color: #0f648e !important;
  background: rgba(36, 169, 232, .12) !important;
  border-left: 4px solid var(--ucd-blue) !important;
}


/* Filas seleccionadas */
body.ucd-sign-2 .ucd-finder-row-selected,
body.ucd-sign-2 tr.selected {
  background: rgba(36, 169, 232, .09) !important;
  box-shadow: inset 3px 0 0 var(--ucd-blue) !important;
}

/* Paginación y foco */
body.ucd-sign-2 .pagination .active,
body.ucd-sign-2 [aria-current="page"] {
  border-color: var(--ucd-blue) !important;
}

body.ucd-sign-2 a:focus-visible,
body.ucd-sign-2 button:focus-visible,
body.ucd-sign-2 input:focus-visible {
  outline: 3px solid rgba(36, 169, 232, .24) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   SETTINGS — RESTAURAR DISEÑO ORIGINAL
   No afecta Explorer ni el header global
   ========================================================= */

/* Botones oscuros originales */
body.ucd-sign-2 .ucd-settings-shell .base-button,
body.ucd-sign-2 .ucd-settings-shell .btn-primary,
body.ucd-sign-2 .ucd-settings-shell button[type="submit"]:not(.toggle) {
  color: #ffffff !important;
  background: #31123f !important;
  border-color: #31123f !important;
  box-shadow: none !important;
}

body.ucd-sign-2 .ucd-settings-shell .base-button:hover,
body.ucd-sign-2 .ucd-settings-shell .btn-primary:hover,
body.ucd-sign-2 .ucd-settings-shell button[type="submit"]:not(.toggle):hover {
  color: #ffffff !important;
  background: #24102f !important;
  border-color: #24102f !important;
  transform: none !important;
}

/* Menú lateral de Settings */
body.ucd-sign-2 .ucd-settings-sidebar #account_settings_menu a {
  color: #2b2531 !important;
  background: transparent !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

body.ucd-sign-2 .ucd-settings-sidebar #account_settings_menu a:hover {
  color: #211b27 !important;
  background: #eeeae8 !important;
}

/* Página seleccionada */
body.ucd-sign-2 .ucd-settings-sidebar #account_settings_menu a.active,
body.ucd-sign-2 .ucd-settings-sidebar #account_settings_menu a[aria-current="page"] {
  color: #29232f !important;
  background: #e5e0dd !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

/* Evitar que el tema azul cambie iconos o textos de Settings */
body.ucd-sign-2 .ucd-settings-sidebar #account_settings_menu a svg,
body.ucd-sign-2 .ucd-settings-sidebar #account_settings_menu a .ucd-sidebar-icon {
  color: currentColor !important;
  stroke: currentColor !important;
}

/* Mantener los campos como estaban */
body.ucd-sign-2 .ucd-settings-shell input,
body.ucd-sign-2 .ucd-settings-shell select,
body.ucd-sign-2 .ucd-settings-shell textarea {
  color: #29232f !important;
  background: rgba(255, 255, 255, .94) !important;
}

/* No modificar Test Mode ni sus toggles */
body.ucd-sign-2 .ucd-settings-shell .toggle {
  transform: none !important;
}

/* =========================================================
   SETTINGS — TOGGLES DESLIZANTES ORIGINALES
   ========================================================= */

body.ucd-sign-2 .ucd-settings-shell input.toggle {
  --tglbg: #ffffff !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  width: 48px !important;
  height: 24px !important;
  padding: 0 !important;

  color: #aaa2ac !important;
  background-color: currentColor !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;

  cursor: pointer !important;

  box-shadow:
    24px 0 0 2px var(--tglbg) inset,
    0 0 0 2px var(--tglbg) inset !important;

  transition:
    color .20s ease,
    box-shadow .20s ease,
    background-color .20s ease !important;
}

/* Encendido: barra oscura y perilla desplazada */
body.ucd-sign-2 .ucd-settings-shell input.toggle:checked {
  color: #32113f !important;

  box-shadow:
    -24px 0 0 2px var(--tglbg) inset,
    0 0 0 2px var(--tglbg) inset !important;
}

/* No usar pseudo-elementos agregados por el parche anterior */
body.ucd-sign-2 .ucd-settings-shell input.toggle::before,
body.ucd-sign-2 .ucd-settings-shell input.toggle::after {
  content: none !important;
}

/* Test Mode conserva el mismo funcionamiento */
body.ucd-sign-2 .ucd-settings-shell submit-form input.toggle {
  opacity: 1 !important;
}

/* =========================================================
   SETTINGS — RADIO Y CHECKBOX UNIFICADOS
   No modifica los toggles de Account ni Test Mode
   ========================================================= */

body.ucd-sign-2 .ucd-settings-shell {
  --ucd-control-accent: #31a9d8;
  --ucd-control-accent-dark: #197fa7;
  --ucd-control-soft: rgba(49, 169, 216, .10);
  --ucd-control-border: #d9dce3;
  --ucd-control-text: #261b30;
}

/* ---------------------------------------------------------
   RADIO BUTTONS
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-settings-shell input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;

  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  margin: 0 !important;
  padding: 0 !important;

  border: 1.5px solid #b8bbc4 !important;
  border-radius: 50% !important;
  background: #ffffff !important;

  box-shadow: inset 0 0 0 5px #ffffff !important;
  cursor: pointer !important;

  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

body.ucd-sign-2 .ucd-settings-shell input[type="radio"]:hover {
  border-color: var(--ucd-control-accent) !important;
  transform: scale(1.04);
}

body.ucd-sign-2 .ucd-settings-shell input[type="radio"]:checked {
  border-color: var(--ucd-control-accent) !important;
  background: var(--ucd-control-accent) !important;
  box-shadow: inset 0 0 0 5px #ffffff !important;
}

body.ucd-sign-2 .ucd-settings-shell input[type="radio"]:focus-visible {
  outline: 3px solid rgba(49, 169, 216, .20) !important;
  outline-offset: 2px !important;
}

/* Tarjetas superiores de Storage: Disk, AWS, GCP y Azure */
body.ucd-sign-2 .ucd-settings-shell toggle-visible label:has(input[type="radio"]) {
  position: relative !important;
  min-height: 48px !important;

  border: 1px solid var(--ucd-control-border) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .82) !important;

  cursor: pointer !important;

  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

body.ucd-sign-2 .ucd-settings-shell toggle-visible label:has(input[type="radio"]):hover {
  border-color: rgba(49, 169, 216, .55) !important;
  background: rgba(255, 255, 255, .98) !important;
  transform: translateY(-1px);
}

body.ucd-sign-2 .ucd-settings-shell toggle-visible label:has(input[type="radio"]:checked) {
  color: var(--ucd-control-accent-dark) !important;
  border-color: var(--ucd-control-accent) !important;
  background: var(--ucd-control-soft) !important;

  box-shadow:
    inset 3px 0 0 var(--ucd-control-accent),
    0 5px 14px rgba(28, 102, 133, .08) !important;
}

/* Local Disk / NAS y otras filas de radio */
body.ucd-sign-2 .ucd-settings-shell label:has(> input[type="radio"]) {
  cursor: pointer !important;
}

body.ucd-sign-2 .ucd-settings-shell label:has(> input[type="radio"]:checked) {
  color: var(--ucd-control-accent-dark) !important;
}

/* ---------------------------------------------------------
   CHECKBOXES
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-settings-shell input.checkbox,
body.ucd-sign-2 .ucd-settings-shell input[type="checkbox"]:not(.toggle) {
  appearance: none !important;
  -webkit-appearance: none !important;

  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  margin: 0 !important;
  padding: 0 !important;

  border: 1.5px solid #b8bbc4 !important;
  border-radius: 6px !important;
  background: #ffffff !important;

  cursor: pointer !important;

  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

body.ucd-sign-2 .ucd-settings-shell input.checkbox:hover,
body.ucd-sign-2 .ucd-settings-shell input[type="checkbox"]:not(.toggle):hover {
  border-color: var(--ucd-control-accent) !important;
  transform: scale(1.04);
}

body.ucd-sign-2 .ucd-settings-shell input.checkbox:checked,
body.ucd-sign-2 .ucd-settings-shell input[type="checkbox"]:not(.toggle):checked {
  border-color: var(--ucd-control-accent) !important;
  background-color: var(--ucd-control-accent) !important;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m5 10 3 3 7-7'/%3E%3C/svg%3E") !important;

  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
}

body.ucd-sign-2 .ucd-settings-shell input.checkbox:focus-visible,
body.ucd-sign-2 .ucd-settings-shell input[type="checkbox"]:not(.toggle):focus-visible {
  outline: 3px solid rgba(49, 169, 216, .20) !important;
  outline-offset: 2px !important;
}

/* Filas seleccionables como Auto Archive */
body.ucd-sign-2 .ucd-settings-shell label:has(input.checkbox),
body.ucd-sign-2 .ucd-settings-shell label:has(input[type="checkbox"]:not(.toggle)) {
  cursor: pointer !important;
}

/* ---------------------------------------------------------
   PROTECCIÓN DE TOGGLES
   --------------------------------------------------------- */

body.ucd-sign-2 .ucd-settings-shell input.toggle {
  border-radius: 999px !important;
}

/* Disabled */
body.ucd-sign-2 .ucd-settings-shell input:disabled {
  cursor: not-allowed !important;
  opacity: .52 !important;
}


/* Main Explorer shell */
body.ucd-controller-template-folders .ucd-explorer-page,
body.ucd-controller-templates .ucd-explorer-page {
  background: transparent !important;
}

/* Left navigation and main workspace */
body.ucd-controller-template-folders .ucd-explorer-sidebar,
body.ucd-controller-template-folders .ucd-explorer-content,
body.ucd-controller-template-folders .ucd-explorer-main,
body.ucd-controller-templates .ucd-explorer-sidebar,
body.ucd-controller-templates .ucd-explorer-content,
body.ucd-controller-templates .ucd-explorer-main {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

/* Common white Explorer panels */
body.ucd-controller-template-folders .ucd-explorer-content > *,
body.ucd-controller-templates .ucd-explorer-content > * {
  background-color: rgba(255, 255, 255, 0.76);
}

/* Keep document rows readable */
body.ucd-controller-template-folders table,
body.ucd-controller-template-folders thead,
body.ucd-controller-template-folders tbody,
body.ucd-controller-template-folders tr,
body.ucd-controller-template-folders td,
body.ucd-controller-template-folders th,
body.ucd-controller-templates table,
body.ucd-controller-templates thead,
body.ucd-controller-templates tbody,
body.ucd-controller-templates tr,
body.ucd-controller-templates td,
body.ucd-controller-templates th {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.ucd-controller-template-folders tbody tr,
body.ucd-controller-templates tbody tr {
  background: rgba(255, 255, 255, 0.88) !important;
}

/* Welcome / tour panel */
body.ucd-controller-template-folders .ucd-explorer-page [class*="welcome"],
body.ucd-controller-templates .ucd-explorer-page [class*="welcome"] {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* UCD EXPLORER 3.0 SHELL START */

/*
  Solo afecta:
  - Templates
  - Template Folders
  - Explorer
*/

body.ucd-controller-template-folders,
body.ucd-controller-templates {
  position: relative;
  min-height: 100vh;
  background-color: #dfe7f0 !important;
}

/* Capa fija con la imagen dinámica definida en Branding */
body.ucd-controller-template-folders::before,
body.ucd-controller-templates::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Suaviza la imagen sin ocultarla */
body.ucd-controller-template-folders::after,
body.ucd-controller-templates::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(239, 246, 255, 0.34),
      rgba(255, 255, 255, 0.18)
    );
}

/* El layout no debe tapar la imagen */
body.ucd-controller-template-folders .ucd-main-container,
body.ucd-controller-templates .ucd-main-container,
body.ucd-controller-template-folders main,
body.ucd-controller-templates main,
body.ucd-controller-template-folders .drawer-content,
body.ucd-controller-templates .drawer-content {
  background: transparent !important;
}

/* Shell principal */
body.ucd-controller-template-folders .ucd-explorer-page,
body.ucd-controller-templates .ucd-explorer-page {
  background: transparent !important;
}

/* Sidebar y workspace */
body.ucd-controller-template-folders .ucd-explorer-sidebar,
body.ucd-controller-template-folders .ucd-explorer-main,
body.ucd-controller-template-folders .ucd-explorer-content,
body.ucd-controller-template-folders .ucd-explorer-workspace,
body.ucd-controller-templates .ucd-explorer-sidebar,
body.ucd-controller-templates .ucd-explorer-main,
body.ucd-controller-templates .ucd-explorer-content,
body.ucd-controller-templates .ucd-explorer-workspace {
  background: rgba(255, 255, 255, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

/* Captura paneles blancos heredados dentro del Explorer */
body.ucd-controller-template-folders .ucd-explorer-page .bg-white,
body.ucd-controller-template-folders .ucd-explorer-main > div,
body.ucd-controller-template-folders .ucd-explorer-content > div,
body.ucd-controller-templates .ucd-explorer-page .bg-white,
body.ucd-controller-templates .ucd-explorer-main > div,
body.ucd-controller-templates .ucd-explorer-content > div {
  background-color: rgba(255, 255, 255, 0.62) !important;
}

/* Encabezado del workspace */
body.ucd-controller-template-folders .ucd-explorer-content header,
body.ucd-controller-template-folders .ucd-explorer-main header,
body.ucd-controller-templates .ucd-explorer-content header,
body.ucd-controller-templates .ucd-explorer-main header {
  background: rgba(255, 255, 255, 0.42) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

/* Listas y tablas siguen siendo legibles */
body.ucd-controller-template-folders table,
body.ucd-controller-templates table {
  background: rgba(255, 255, 255, 0.76) !important;
}

body.ucd-controller-template-folders thead,
body.ucd-controller-templates thead {
  background: rgba(248, 250, 252, 0.90) !important;
}

body.ucd-controller-template-folders tbody tr,
body.ucd-controller-templates tbody tr {
  background: rgba(255, 255, 255, 0.82) !important;
}

body.ucd-controller-template-folders tbody tr:hover,
body.ucd-controller-templates tbody tr:hover {
  background: rgba(239, 246, 255, 0.92) !important;
}

/* Welcome / Tour */
body.ucd-controller-template-folders .ucd-explorer-page [class*="welcome"],
body.ucd-controller-template-folders .ucd-explorer-page [class*="tour"],
body.ucd-controller-templates .ucd-explorer-page [class*="welcome"],
body.ucd-controller-templates .ucd-explorer-page [class*="tour"] {
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Sidebar */
body.ucd-controller-template-folders .ucd-explorer-sidebar,
body.ucd-controller-templates .ucd-explorer-sidebar {
  border-radius: 20px !important;
}

/* Workspace */
body.ucd-controller-template-folders .ucd-explorer-main,
body.ucd-controller-template-folders .ucd-explorer-content,
body.ucd-controller-template-folders .ucd-explorer-workspace,
body.ucd-controller-templates .ucd-explorer-main,
body.ucd-controller-templates .ucd-explorer-content,
body.ucd-controller-templates .ucd-explorer-workspace {
  border-radius: 20px !important;
  overflow: hidden;
}

/* UCD EXPLORER 3.0 SHELL END */

/* UCD EXPLORER 3.0 DESIGN START */

/* Fondo dinámico configurado desde Branding */
body.ucd-sign-2 {
  position: relative;
  min-height: 100vh;
}

body.ucd-sign-2 .ucd-main-container {
  position: relative;
  z-index: 1;
  width: min(100% - 38px, 1680px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 24px 0 34px !important;
  background: transparent !important;
}

.ucd-workspace-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(239, 244, 251, 0.34),
      rgba(255, 255, 255, 0.12)
    );
}

/* Estructura general */
.ucd-workspace-shell-v3 {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}

/* Sidebar tipo macOS / Windows 11 */
.ucd-workspace-shell-v3 .ucd-workspace-sidebar {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 126px);
  max-height: calc(100vh - 44px);
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.82),
      rgba(248, 250, 252, 0.66)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 22px !important;

  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.14),
    0 3px 10px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;

  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

.ucd-workspace-shell-v3 .ucd-sidebar-scroll {
  padding: 20px 14px;
}

.ucd-workspace-shell-v3 .ucd-sidebar-section + .ucd-sidebar-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(71, 85, 105, 0.11);
}

.ucd-workspace-shell-v3 .ucd-sidebar-heading {
  padding: 0 11px 9px;
  color: rgba(51, 65, 85, 0.64);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.ucd-workspace-shell-v3 .ucd-sidebar-nav {
  gap: 5px;
}

.ucd-workspace-shell-v3 .ucd-sidebar-link {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #283548;
  font-size: 0.86rem;
  font-weight: 680;
}

.ucd-workspace-shell-v3 .ucd-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(100, 116, 139, 0.12);
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateX(2px);
}

.ucd-workspace-shell-v3 .ucd-sidebar-link-active {
  color: #49256c;
  background:
    linear-gradient(
      90deg,
      rgba(91, 51, 132, 0.15),
      rgba(255, 255, 255, 0.52)
    ) !important;
  border-color: rgba(91, 51, 132, 0.13);
  box-shadow:
    inset 3px 0 0 #5b3384,
    0 6px 16px rgba(52, 31, 74, 0.07);
}

.ucd-workspace-shell-v3 .ucd-sidebar-icon {
  width: 25px;
  min-width: 25px;
}

.ucd-workspace-shell-v3 .ucd-sidebar-footer {
  padding: 15px 18px 17px;
  background: rgba(255, 255, 255, 0.32);
  border-top: 1px solid rgba(71, 85, 105, 0.10);
  color: rgba(51, 65, 85, 0.62);
}

/* Área principal de trabajo */
.ucd-workspace-content {
  min-width: 0;
  padding-bottom: 0 !important;
}

.ucd-workspace-stage {
  min-height: calc(100vh - 126px);
  padding: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.80),
      rgba(248, 250, 252, 0.67)
    );

  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 24px;

  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

/* Encabezado */
.ucd-page-header-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  margin-bottom: 20px;
  padding: 16px 18px;

  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 18px;

  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.ucd-page-header-v3 .ucd-page-header-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.ucd-page-header-v3 .ucd-page-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;

  color: #5b3384;
  background:
    linear-gradient(
      145deg,
      rgba(91, 51, 132, 0.14),
      rgba(91, 51, 132, 0.06)
    );

  border: 1px solid rgba(91, 51, 132, 0.12);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.ucd-page-header-copy {
  min-width: 0;
}

.ucd-page-header-eyebrow {
  margin-bottom: 2px;
  color: rgba(71, 85, 105, 0.58);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ucd-page-header-v3 .ucd-page-header-title {
  overflow: hidden;
  margin: 0;
  color: #1e293b;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 780;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ucd-page-header-v3 .ucd-page-header-subtitle {
  overflow: hidden;
  margin: 4px 0 0;
  color: rgba(71, 85, 105, 0.68);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ucd-page-header-v3 .ucd-page-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

/* Finder */
body.ucd-sign-2 .ucd-finder {
  width: 100%;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 18px !important;

  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.ucd-sign-2 .ucd-finder-header,
body.ucd-sign-2 .ucd-finder-row {
  display: grid;
  grid-template-columns:
    32px
    minmax(260px, 1fr)
    120px
    180px
    145px
    105px;
  align-items: center;
  column-gap: 12px;
}

body.ucd-sign-2 .ucd-finder-header {
  min-height: 48px;
  padding: 0 18px;
  color: rgba(51, 65, 85, 0.62);
  background: rgba(248, 250, 252, 0.82) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.17);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.ucd-sign-2 .ucd-finder-body {
  max-height: 470px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.34);
}

body.ucd-sign-2 .ucd-finder-row {
  min-height: 62px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.60);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

body.ucd-sign-2 .ucd-finder-row:last-child {
  border-bottom: 0;
}

body.ucd-sign-2 .ucd-finder-row:hover {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    inset 3px 0 0 rgba(91, 51, 132, 0.32),
    0 7px 18px rgba(15, 23, 42, 0.045);
}

body.ucd-sign-2 .ucd-finder-row.ucd-explorer-selected {
  background:
    linear-gradient(
      90deg,
      rgba(91, 51, 132, 0.13),
      rgba(255, 255, 255, 0.82)
    ) !important;
  box-shadow:
    inset 4px 0 0 #5b3384,
    0 8px 20px rgba(52, 31, 74, 0.07);
}

body.ucd-sign-2 .ucd-finder-section {
  padding: 10px 18px;
  color: rgba(71, 85, 105, 0.58);
  background: rgba(241, 245, 249, 0.68) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.ucd-sign-2 .ucd-finder-name-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  color: #253247;
  text-decoration: none;
}

body.ucd-sign-2 .ucd-finder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  font-size: 21px;
}

body.ucd-sign-2 .ucd-finder-name {
  display: block;
  overflow: hidden;
  color: #263449;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ucd-sign-2 .ucd-finder-description,
body.ucd-sign-2 .ucd-finder-meta {
  overflow: hidden;
  color: rgba(71, 85, 105, 0.66);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ucd-sign-2 .ucd-finder-description {
  display: block;
  margin-top: 2px;
}

body.ucd-sign-2 .ucd-finder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

body.ucd-sign-2 .ucd-row-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;

  color: rgba(51, 65, 85, 0.72);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;

  font-size: 20px;
  cursor: pointer;
}

body.ucd-sign-2 .ucd-row-menu-button:hover,
body.ucd-sign-2 .ucd-row-menu-button:focus-visible {
  color: #5b3384;
  background: rgba(91, 51, 132, 0.08);
  border-color: rgba(91, 51, 132, 0.12);
  outline: none;
}

body.ucd-sign-2 .ucd-finder-empty {
  padding: 56px 20px;
  color: rgba(71, 85, 105, 0.65);
  text-align: center;
}

/* Inputs y botones dentro del encabezado */
.ucd-page-header-v3 input,
.ucd-page-header-v3 .base-input {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.80) !important;
  border-color: rgba(100, 116, 139, 0.20) !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.035),
    0 5px 14px rgba(15, 23, 42, 0.04);
}

.ucd-page-header-v3 .white-button,
.ucd-page-header-v3 a.white-button {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(100, 116, 139, 0.18) !important;
  border-radius: 12px !important;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

/* Context menu */
body.ucd-sign-2 .ucd-context-menu {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  border-radius: 14px !important;

  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 5px 15px rgba(15, 23, 42, 0.08) !important;

  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

/* Responsive */
@media (max-width: 1100px) {
  .ucd-workspace-shell-v3 {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }

  .ucd-workspace-stage {
    padding: 18px;
  }

  body.ucd-sign-2 .ucd-finder-header,
  body.ucd-sign-2 .ucd-finder-row {
    grid-template-columns:
      32px
      minmax(230px, 1fr)
      110px
      140px;
  }

  body.ucd-sign-2 .ucd-finder-header > :nth-child(4),
  body.ucd-sign-2 .ucd-finder-row > :nth-child(4),
  body.ucd-sign-2 .ucd-finder-header > :nth-child(5),
  body.ucd-sign-2 .ucd-finder-row > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 820px) {
  body.ucd-sign-2 .ucd-main-container {
    width: min(100% - 20px, 1680px) !important;
    padding-top: 14px !important;
  }

  .ucd-workspace-shell-v3 {
    display: block;
  }

  .ucd-workspace-shell-v3 .ucd-workspace-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
    max-height: none;
    margin-bottom: 15px;
  }

  .ucd-workspace-stage {
    min-height: auto;
    padding: 15px;
    border-radius: 19px;
  }

  .ucd-page-header-v3 {
    align-items: flex-start;
    flex-direction: column;
  }

  .ucd-page-header-v3 .ucd-page-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* UCD EXPLORER 3.0 DESIGN END */

/* UCD SETTINGS GLASS CARD START */

body.ucd-sign-2 .ucd-settings-content {
  min-width: 0;
  padding: 30px 36px 48px;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(255, 255, 255, 0.92),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(225, 237, 242, 0.72),
      rgba(242, 246, 248, 0.88)
    );
}

body.ucd-sign-2 .ucd-settings-glass-card {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 22px 55px rgba(30, 55, 68, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

body.ucd-sign-2 .ucd-settings-glass-card > :first-child {
  margin-top: 0;
}

body.ucd-sign-2 .ucd-settings-glass-card > :last-child {
  margin-bottom: 0;
}

body.ucd-sign-2 .ucd-settings-glass-card .card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 30px rgba(30, 55, 68, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.ucd-sign-2 .ucd-settings-glass-card input,
body.ucd-sign-2 .ucd-settings-glass-card select,
body.ucd-sign-2 .ucd-settings-glass-card textarea {
  background-color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 900px) {
  body.ucd-sign-2 .ucd-settings-content {
    padding: 24px;
  }

  body.ucd-sign-2 .ucd-settings-glass-card {
    padding: 24px;
    border-radius: 18px;
  }
}

/* UCD SETTINGS GLASS CARD END */

/* UCD SETTINGS TRANSPARENT GLASS START */

/* Fondo general suave */
body.ucd-sign-2 .ucd-settings-shell,
body.ucd-sign-2 .ucd-settings3 {
  background:
    linear-gradient(
      135deg,
      rgba(225, 236, 241, 0.50),
      rgba(245, 248, 249, 0.34)
    );
  border: 0;
  box-shadow: none;
}

/* Panel izquierdo casi invisible */
body.ucd-sign-2 .ucd-settings-sidebar,
body.ucd-sign-2 .ucd-settings3-sidebar,
body.ucd-sign-2 .ucd-s3-nav {
  background: rgba(255, 255, 255, 0.12) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

/* Área derecha transparente */
body.ucd-sign-2 .ucd-settings-main,
body.ucd-sign-2 .ucd-settings3-workspace {
  background: transparent !important;
}

/* Encabezado sin caja blanca */
body.ucd-sign-2 .ucd-settings-header,
body.ucd-sign-2 .ucd-settings3-page-header {
  background: rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Fondo del contenido sin blanco sólido */
body.ucd-sign-2 .ucd-settings-content,
body.ucd-sign-2 .ucd-settings3-content {
  background: transparent !important;
}

/* Caja principal casi invisible */
body.ucd-sign-2 .ucd-settings-glass-card {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    0 18px 45px rgba(30, 55, 68, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
}

/* Quitar cajas blancas internas */
body.ucd-sign-2 .ucd-settings-glass-card .card,
body.ucd-sign-2 .ucd-settings-glass-card .card-body {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* Footer del menú también transparente */
body.ucd-sign-2 .ucd-s3-footer,
body.ucd-sign-2 .ucd-s3-nav-top {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.20);
}

/* Solo los campos permanecen legibles */
body.ucd-sign-2 .ucd-settings-glass-card input,
body.ucd-sign-2 .ucd-settings-glass-card select,
body.ucd-sign-2 .ucd-settings-glass-card textarea {
  background: rgba(255, 255, 255, 0.62) !important;
  border-color: rgba(120, 145, 155, 0.28);
}

/* UCD SETTINGS TRANSPARENT GLASS END */

/* UCD_SUBMISSIONS_GLASS_START */

.ucd-submissions-page {
  height: calc(100dvh - 112px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 14px 48px;
  scrollbar-gutter: stable;
}

.ucd-submissions-page::-webkit-scrollbar {
  width: 10px;
}

.ucd-submissions-page::-webkit-scrollbar-thumb {
  background: rgba(65, 24, 86, 0.28);
  border-radius: 999px;
}

.ucd-submissions-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 18px 0 14px;
}

.ucd-submissions-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.ucd-submissions-count {
  margin-top: 6px;
  color: rgba(47, 31, 55, 0.58);
  font-size: 13px;
  font-weight: 600;
}

.ucd-submissions-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 45px rgba(49, 18, 66, 0.08);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.ucd-submissions-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(430px, 46vw);
  min-width: 280px;
}

.ucd-submissions-search > svg {
  position: absolute;
  left: 15px;
  z-index: 2;
  opacity: 0.52;
  pointer-events: none;
}

.ucd-submissions-search input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 78px 0 46px;
  border: 1px solid rgba(74, 39, 88, 0.16);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.62);
  color: #2f1838;
  font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 6px 18px rgba(45,18,58,0.05);
}

.ucd-submissions-search input[type="search"]:focus {
  border-color: rgba(87, 35, 111, 0.46);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 0 0 4px rgba(101, 52, 126, 0.10),
    0 10px 28px rgba(48, 16, 62, 0.08);
}

.ucd-submissions-search-submit {
  position: absolute;
  right: 7px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(62, 21, 80, 0.92);
  color: white;
  cursor: pointer;
}

.ucd-submissions-search-clear {
  position: absolute;
  right: 44px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(48, 28, 55, 0.58);
  text-decoration: none;
  font-size: 18px;
}

.ucd-submissions-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ucd-submissions-sort {
  height: 42px;
  min-width: 155px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(70, 32, 86, 0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.68);
  color: #331b3c;
  font-size: 13px;
  font-weight: 650;
}

.ucd-submissions-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ucd-submissions-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(69, 34, 81, 0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.50);
  color: #392040;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.ucd-submissions-filter-link.is-active {
  border-color: rgba(55, 18, 72, 0.80);
  background: rgba(55, 18, 72, 0.92);
  color: white;
}

.ucd-submissions-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 20px;
  background: rgba(255,255,255,0.46);
  box-shadow: 0 22px 60px rgba(49,18,66,0.08);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.ucd-submissions-table-head,
.ucd-submissions-row {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.35fr)
    minmax(200px, 1fr)
    120px
    155px
    155px
    94px;
  gap: 14px;
  align-items: center;
}

.ucd-submissions-table-head {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(70,35,83,0.10);
  background: rgba(248,245,250,0.86);
  color: rgba(50,29,57,0.58);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ucd-submissions-row {
  min-height: 74px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(76,40,91,0.08);
}

.ucd-submissions-row:last-child {
  border-bottom: 0;
}

.ucd-submissions-row:hover {
  background: rgba(255,255,255,0.58);
}

.ucd-submissions-name {
  color: #2f1838;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.ucd-submissions-name:hover {
  text-decoration: underline;
}

.ucd-submissions-meta {
  margin-top: 4px;
  color: rgba(47,31,55,0.50);
  font-size: 11px;
}

.ucd-submissions-person {
  min-width: 0;
  color: #38223f;
  font-size: 13px;
  font-weight: 630;
  overflow-wrap: anywhere;
}

.ucd-submissions-email {
  margin-top: 3px;
  color: rgba(51,31,58,0.55);
  font-size: 11px;
}

.ucd-submissions-date {
  color: rgba(48,29,55,0.72);
  font-size: 12px;
}

.ucd-submissions-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(68,36,80,0.14);
  background: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.ucd-submissions-status.is-completed {
  background: rgba(38,176,105,0.11);
  color: #12683e;
}

.ucd-submissions-status.is-pending {
  background: rgba(62,145,207,0.11);
  color: #225f8f;
}

.ucd-submissions-status.is-opened {
  background: rgba(222,158,52,0.12);
  color: #8c5d17;
}

.ucd-submissions-status.is-declined {
  background: rgba(211,62,68,0.11);
  color: #9c282d;
}

.ucd-submissions-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(57,24,71,0.18);
  border-radius: 11px;
  background: rgba(255,255,255,0.56);
  color: #351a40;
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
}

.ucd-submissions-view:hover {
  background: rgba(55,18,72,0.92);
  color: white;
}

@media (max-width: 1050px) {
  .ucd-submissions-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ucd-submissions-search {
    width: 100%;
    min-width: 0;
  }

  .ucd-submissions-toolbar-actions {
    justify-content: flex-start;
  }

  .ucd-submissions-table-head {
    display: none;
  }

  .ucd-submissions-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

/* UCD_SUBMISSIONS_GLASS_END */

/* UCD_SUBMISSIONS_REFINEMENT_START */

/* Navegación horizontal por carpetas */
.ucd-submissions-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.ucd-submissions-breadcrumb-home,
.ucd-submissions-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(43, 25, 50, 0.72);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.ucd-submissions-breadcrumb-home:hover,
.ucd-submissions-breadcrumb-link:hover {
  color: #351447;
  text-decoration: underline;
}

.ucd-submissions-breadcrumb-separator {
  color: rgba(46, 28, 53, 0.38);
  font-size: 15px;
}

.ucd-submissions-breadcrumb-current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(53, 20, 71, 0.25);
  border-radius: 9px;
  background: rgba(53, 20, 71, 0.88);
  color: white;
  font-size: 12px;
  font-weight: 720;
  box-shadow: 0 6px 16px rgba(53, 20, 71, 0.14);
}

/* Panel más transparente para mostrar el fondo */
.ucd-submissions-panel {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  box-shadow:
    0 18px 50px rgba(38, 17, 52, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
  backdrop-filter: blur(13px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(13px) saturate(118%) !important;
}

/* Encabezado más sólido para facilitar lectura */
.ucd-submissions-table-head {
  background: rgba(248, 245, 250, 0.78) !important;
  border-bottom-color: rgba(64, 35, 75, 0.14) !important;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

/* Filas transparentes */
.ucd-submissions-row {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(67, 38, 77, 0.10) !important;
}

.ucd-submissions-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.14);
}

.ucd-submissions-row:hover {
  background: rgba(255, 255, 255, 0.34) !important;
}

/* View Archived permanece junto a los demás filtros */
.ucd-view-archived-link {
  margin-left: 0 !important;
}

/* UCD_SUBMISSIONS_REFINEMENT_END */

/* ==========================================================
   UCD DOCUMENT VIEWER - BLACK LOGO CAPSULE
========================================================== */

.ucd-controller-submissions .logo,
.ucd-controller-submissions img[src*="logo"],
.ucd-controller-submissions img[src*="UClogo"],
.ucd-controller-submissions img[src*="ucd-header-logo"]{

    background:#111111 !important;
    padding:10px 16px !important;
    border-radius:14px !important;

    box-shadow:
        0 10px 24px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.04);

    display:inline-flex !important;
    align-items:center;
    justify-content:center;
}


/* UCD DIGITAL WORKSPACE USER MENU FIX */
body:has(.ucd-header-v2 details.dropdown) .ucd-header-v2 {
  overflow: visible !important;
  position: relative;
  z-index: 1000;
}

.ucd-header-v2 details.dropdown {
  position: relative;
  z-index: 1100;
}

.ucd-header-v2 details.dropdown > .dropdown-content {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 99999 !important;
  min-width: 190px;
}



/* UCD_USER_CHECKBOX_FORCE_START */
body.ucd-sign-2 input[type="checkbox"].ucd-user-checkbox {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  position: static !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
  accent-color: #111111 !important;
}

body.ucd-sign-2 label:has(input.ucd-user-checkbox) {
  position: relative !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

body.ucd-sign-2 label:has(input.ucd-user-checkbox)::before,
body.ucd-sign-2 label:has(input.ucd-user-checkbox)::after {
  pointer-events: none !important;
}
/* UCD_USER_CHECKBOX_FORCE_END */

/* UCD Sign 2026 - hide legacy View Archived link */
.ucd-view-archived-link {
  display: none !important;
}

