/* src/styles.css */
:root {
  --primary-color: #006098;
  --primary-hover: #004d7a;
  --primary-light: #e0f2fe;
  --dark-sidebar: #1C252E;
  --dark-sidebar-hover: #28323D;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-color: rgba(145, 158, 171, 0.18);
  --text-main: #1C252E;
  --text-muted: #637381;
  --text-white: #ffffff;
  --status-pending-bg: rgba(255, 171, 0, 0.16);
  --status-pending-text: #B76E00;
  --status-signed-bg: rgba(34, 197, 94, 0.16);
  --status-signed-text: #118D57;
  --status-info-bg: rgba(0, 184, 217, 0.16);
  --status-info-text: #006C9C;
  --accent-frog: #0095A9;
  --accent-blue: #00ACD8;
  --font-headers:
    "Barlow",
    "Public Sans",
    sans-serif;
  --font-body:
    "Public Sans",
    "Inter",
    sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px -4px rgba(22, 28, 36, 0.08), 0 0 2px 0 rgba(22, 28, 36, 0.16);
  --shadow-lg: 0 20px 40px -12px rgba(22, 28, 36, 0.12), 0 0 2px 0 rgba(22, 28, 36, 0.24);
  --card-radius: 16px;
  --table-header-bg: #f1f5f9;
  --table-row-hover: rgba(0, 96, 152, 0.04);
}
body.dark-mode {
  --bg-main: #0b1526;
  --card-bg: #152238;
  --border-color: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-light: rgba(0, 96, 152, 0.25);
  --table-header-bg: #152238;
  --table-row-hover: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
body.dark-mode .requirements-box,
body.dark-mode .upload-feedback,
body.dark-mode .creator-tabs,
body.dark-mode .canvas-wrapper,
body.dark-mode .sig-preview-card,
body.dark-mode .preview-box,
body.dark-mode .nutrient-toolbar,
body.dark-mode .result-details {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
body.dark-mode .upload-btn {
  background-color: #152238 !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .upload-btn:hover {
  background-color: #38bdf8 !important;
  color: #0b1320 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.5) !important;
}
body.dark-mode .btn-remove {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}
body.dark-mode .btn-remove:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5) !important;
}
body.dark-mode .landing-header {
  background-color: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .landing-header .logo-text {
  color: #f8fafc !important;
}
body.dark-mode .landing-header .header-actions .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #f8fafc !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .landing-header .header-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}
body.dark-mode .style-caveat-text,
body.dark-mode .style-pacifico-text,
body.dark-mode .style-alex-text {
  color: #38bdf8 !important;
}
body.dark-mode .data-table th {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
}
body.dark-mode .data-table td {
  color: #f8fafc !important;
  background-color: transparent !important;
}
body.dark-mode .data-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
body.dark-mode .status-pill.borrador,
body.dark-mode .status-pill.draft,
body.dark-mode .status-pill.enviado {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
body.dark-mode .viewer-header {
  background-color: var(--card-bg) !important;
}
body.dark-mode .creator-footer {
  background-color: var(--card-bg) !important;
}
body.dark-mode .page-title,
body.dark-mode h1.page-title,
body.dark-mode .bulk-title,
body.dark-mode .template-title,
body.dark-mode .template-name,
body.dark-mode .table-template-name,
body.dark-mode .sim-doc-title,
body.dark-mode .empty-state-card h3,
body.dark-mode .modal-dialog h2,
body.dark-mode .panel-header h2 {
  color: #ffffff !important;
}
body.dark-mode .page-subtitle,
body.dark-mode .bulk-subtitle,
body.dark-mode .template-desc,
body.dark-mode .template-description,
body.dark-mode .panel-sub,
body.dark-mode .sample-desc,
body.dark-mode .empty-state-card p,
body.dark-mode .meta-item {
  color: #cbd5e1 !important;
}
body.dark-mode .header-badge {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}
body.dark-mode .filter-controls-bar {
  background-color: #152238 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .search-input {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}
body.dark-mode .category-pill {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}
body.dark-mode .category-pill.active {
  background-color: #006098 !important;
  color: #ffffff !important;
}
body.dark-mode .view-mode-toggle {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .toggle-btn {
  color: #94a3b8 !important;
}
body.dark-mode .toggle-btn.active {
  background-color: #0f172a !important;
  color: #38bdf8 !important;
}
body.dark-mode .template-card {
  background-color: #152238 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .template-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .pdf-thumbnail-sim {
  background:
    linear-gradient(
      145deg,
      #1e293b 0%,
      #0f172a 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .sim-pages-tag {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  font-weight: 700 !important;
}
body.dark-mode .sim-line {
  background: rgba(255, 255, 255, 0.2) !important;
}
body.dark-mode .doc-corner-fold {
  border-color: transparent #334155 transparent transparent !important;
}
body.dark-mode .sim-quick-hint {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}
body.dark-mode .meta-item {
  color: #f8fafc !important;
  font-weight: 600 !important;
}
body.dark-mode .meta-item svg {
  color: #38bdf8 !important;
}
body.dark-mode .template-code,
body.dark-mode .table-template-id {
  color: #cbd5e1 !important;
}
body.dark-mode .templates-table td,
body.dark-mode .templates-table th,
body.dark-mode .templates-list-table-container td {
  color: #ffffff !important;
}
body.dark-mode .templates-table th {
  color: #cbd5e1 !important;
  background-color: #09111e !important;
}
body.dark-mode .btn-card-action.secondary {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
body.dark-mode .btn-card-action.secondary:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .btn-card-action.danger {
  background-color: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
}
body.dark-mode .template-create-container,
body.dark-mode .builder-container {
  background-color: #0b1526 !important;
  color: #f8fafc !important;
}
body.dark-mode .form-card,
body.dark-mode .role-card,
body.dark-mode .builder-sidebar,
body.dark-mode .fields-panel-card,
body.dark-mode .builder-header-bar {
  background-color: #152238 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .main-title,
body.dark-mode .card-section-title h2,
body.dark-mode .role-header h3,
body.dark-mode .field-card h4,
body.dark-mode .step-title,
body.dark-mode .form-label,
body.dark-mode label,
body.dark-mode .role-name-input {
  color: #ffffff !important;
}
body.dark-mode .main-subtitle,
body.dark-mode .section-desc,
body.dark-mode .form-hint,
body.dark-mode .step-label,
body.dark-mode .checkbox-label,
body.dark-mode .var-hint {
  color: #cbd5e1 !important;
}
body.dark-mode .form-control,
body.dark-mode input.form-control,
body.dark-mode select.form-control,
body.dark-mode textarea.form-control,
body.dark-mode .role-name-input {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}
body.dark-mode .form-control::placeholder {
  color: #64748b !important;
}
body.dark-mode .form-control:focus,
body.dark-mode .role-name-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}
body.dark-mode .dropzone-area {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
body.dark-mode .dropzone-area:hover,
body.dark-mode .dropzone-area.dragging {
  background-color: rgba(56, 189, 248, 0.08) !important;
  border-color: #38bdf8 !important;
}
body.dark-mode .dropzone-area h3 {
  color: #ffffff !important;
}
body.dark-mode .dropzone-area p {
  color: #cbd5e1 !important;
}
body.dark-mode .dropzone-icon {
  color: #38bdf8 !important;
}
body.dark-mode .browse-link {
  color: #38bdf8 !important;
}
body.dark-mode .file-type-pill {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}
body.dark-mode .file-selected-card {
  background-color: rgba(0, 96, 152, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode .file-name {
  color: #ffffff !important;
}
body.dark-mode .file-size {
  color: #94a3b8 !important;
}
body.dark-mode .btn-remove-file {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}
body.dark-mode .role-variables-dropdown {
  background-color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode .role-variables-title {
  color: #38bdf8 !important;
}
body.dark-mode .var-chip {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}
body.dark-mode .var-chip:hover {
  background-color: rgba(56, 189, 248, 0.25) !important;
}
body.dark-mode .btn-add-cat {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}
body.dark-mode .btn-add-cat:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .btn-add-role {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}
body.dark-mode .btn-add-role:hover {
  background-color: rgba(56, 189, 248, 0.25) !important;
}
body.dark-mode .field-draggable {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
body.dark-mode .field-draggable:hover {
  border-color: #38bdf8 !important;
  background-color: #0f172a !important;
}
.fixed-theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}
.fixed-theme-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.theme-icon {
  width: 22px;
  height: 22px;
  stroke: var(--primary-color);
}
body.dark-mode .theme-icon {
  stroke: #60a5fa;
}
@media (max-width: 600px) {
  .fixed-theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }
  .theme-icon {
    width: 18px;
    height: 18px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--text-main);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary-color);
}
.btn-secondary:hover {
  background-color: #cbdcf7;
}
.btn-text {
  background-color: transparent;
  color: var(--text-muted);
}
.btn-text:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.04);
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 6px;
}
.text-danger {
  color: #ef4444 !important;
}
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  width: 100vw;
}
.app-layout.full-width {
  grid-template-columns: 1fr;
}
.sidebar {
  background-color: var(--dark-sidebar);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-app-logo {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-right: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}
.logo-area:hover .custom-app-logo {
  transform: scale(1.03);
}
.logo-text {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
}
.logo-accent {
  color: var(--accent-frog);
}
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}
.nav-item.active {
  background-color: var(--primary-color);
  color: var(--text-white);
}
.nav-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.mesh-container {
  height: 120px;
  width: 100%;
  margin-top: auto;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mesh-graphic {
  width: 100%;
  height: 100%;
}
.animated-mesh-path {
  stroke-dasharray: none;
  animation: none;
}
.content-area {
  padding: 2.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.documents-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.content-area.no-padding {
  padding: 0;
}
.view-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.view-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-header {
  margin-bottom: 2rem;
}
.section-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.welcome-header {
  margin-bottom: 2.5rem;
}
.welcome-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.user-highlight {
  color: var(--primary-color);
}
.welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.hub-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.card-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}
.card-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.hub-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hub-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.upload-container {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.upload-dropzone {
  border: 2px dashed var(--primary-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--bg-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary-color);
  background-color: rgba(0, 96, 152, 0.12);
}
.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(0, 96, 152, 0.12);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.dropzone-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-color);
}
.dropzone-text-primary {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}
.dropzone-text-secondary {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.upload-feedback {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.file-loaded-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.file-icon {
  width: 36px;
  height: 36px;
  color: var(--primary-color);
}
.file-loaded-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.file-loaded-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.upload-actions {
  display: flex;
  gap: 0.5rem;
}
.filter-tabs-container {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-tabs-container::-webkit-scrollbar {
  display: none;
}
.filter-tabs {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  min-width: 100%;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 0.85rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-main);
}
.tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}
.tab-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  background-color: #cbd5e1;
  color: var(--text-main);
  font-weight: 600;
}
.tab-btn.active .tab-badge {
  background-color: var(--primary-color);
  color: var(--text-white);
}
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-bar-wrapper input {
  width: 100%;
  padding: 0.625rem 0.625rem 0.625rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--card-bg);
  transition: var(--transition-fast);
}
.search-bar-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.select-control {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--card-bg);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}
.select-control:focus {
  border-color: var(--primary-color);
}
.document-counter {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.table-responsive {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.desktop-table-view {
  display: block;
}
.mobile-doc-cards {
  display: none;
}
.mobile-doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-sizing: border-box;
  width: 100%;
}
.mobile-doc-card:active {
  transform: scale(0.99);
  background: rgba(0, 96, 152, 0.03);
}
.mobile-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.mobile-doc-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}
.mobile-doc-title-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mobile-doc-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  word-break: break-word;
  line-height: 1.35;
}
.mobile-doc-id {
  font-family: monospace;
  font-size: 0.725rem;
  color: var(--text-muted);
}
.mobile-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-main);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.775rem;
  box-sizing: border-box;
}
.mobile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mobile-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.mobile-detail-value {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-card-footer {
  display: flex;
  justify-content: flex-end;
}
.btn-mobile-details {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 96, 152, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(0, 96, 152, 0.2);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.mobile-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  box-sizing: border-box;
  width: 100%;
}
body.dark-mode .mobile-doc-card {
  background: #152238;
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .mobile-card-details {
  background: #0b1526;
}
body.dark-mode .mobile-doc-name {
  color: #f8fafc;
}
body.dark-mode .mobile-empty-state {
  background: #152238;
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .btn-mobile-details {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}
.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  background-color: var(--table-header-bg);
}
.data-table td {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-main);
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover td {
  background-color: var(--table-row-hover);
}
.col-id {
  font-family: monospace;
  font-weight: 500;
  color: var(--text-muted);
}
.doc-info-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.file-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.file-type-icon.nda {
  background-color: #fee2e2;
  color: #ef4444;
}
.file-type-icon.pdf {
  background-color: #e0f2fe;
  color: #0284c7;
}
.file-type-icon.acuerdo {
  background-color: #fef3c7;
  color: #d97706;
}
.file-type-icon.addendum {
  background-color: #f3e8ff;
  color: #a855f7;
}
.file-type-icon svg {
  width: 18px;
  height: 18px;
}
.doc-title-link {
  font-weight: 500;
  color: var(--text-main);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pill.pendiente {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
}
.status-pill.firmado,
.status-pill.completado,
.status-pill.registered,
.status-pill.ready_for_blockchain {
  background-color: var(--status-signed-bg);
  color: var(--status-signed-text);
}
.status-pill.borrador,
.status-pill.draft {
  background-color: #f1f5f9;
  color: var(--text-muted);
}
.status-pill.preparado,
.status-pill.prepared {
  background-color: #e0f2fe;
  color: #0369a1;
}
.status-pill.recibido {
  background-color: var(--status-info-bg);
  color: var(--status-info-text);
}
.status-pill.enviado {
  background-color: #f1f5f9;
  color: var(--text-muted);
}
.table-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.table-action-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateX(3px);
}
.table-action-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}
.empty-table-row {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 2rem !important;
}
.signing-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 160px);
}
.pending-pane {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.pane-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pending-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  gap: 0.75rem;
  background-color: #f8fafc;
}
.pending-item:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}
.pending-item.active {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}
.pending-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pending-item-icon svg {
  width: 18px;
  height: 18px;
}
.pending-item.active .pending-item-icon {
  background-color: var(--primary-color);
  color: var(--text-white);
}
.pending-item-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.pending-item-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.pending-item-info .deadline {
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--status-pending-text);
}
.empty-pending-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.viewer-pane {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.viewer-empty-state {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.empty-state-content {
  text-align: center;
}
.viewer-pencil-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 1.25rem;
}
.viewer-pencil-icon svg {
  width: 28px;
  height: 28px;
}
.empty-state-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nutrient-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nutrient-toolbar {
  height: 52px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc-title-badge {
  font-size: 0.875rem;
  font-weight: 600;
}
.nutrient-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-btn {
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.tool-btn svg {
  width: 16px;
  height: 16px;
}
.tool-btn:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}
.tool-btn.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: #cbdcf7;
}
.pdf-page-viewport {
  flex-grow: 1;
  overflow-y: auto;
  background-color: #525659;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}
.pdf-mock-page {
  width: 100%;
  max-width: 600px;
  min-height: 800px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4rem 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pdf-header-meta {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
  text-align: right;
}
.pdf-document-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  text-align: center;
}
.pdf-text-paragraph {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
  text-align: justify;
}
.pdf-signature-sections {
  margin-top: auto;
  border-top: 1px dashed #e2e8f0;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.sig-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sig-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
.sig-line-mock {
  height: 64px;
  border-bottom: 1px solid #94a3b8;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.25rem;
}
.sig-line-mock.signed {
  align-items: center;
}
.sender-name-sig {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #0747a6;
  transform: rotate(-3deg);
}
.sig-date-mock {
  position: absolute;
  right: 0;
  bottom: 4px;
  font-size: 0.65rem;
  color: #94a3b8;
}
.sig-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.4;
}
.sig-line-mock.dropzone-target {
  cursor: pointer;
  background-color: #f8fafc;
  border: 1px dashed var(--primary-color);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.sig-line-mock.dropzone-target:hover {
  background-color: var(--primary-light);
}
.placement-placeholder-text {
  font-size: 0.7rem;
  color: var(--primary-color);
  font-weight: 500;
  text-align: center;
}
.placed-signature-wrapper {
  position: absolute;
  width: 160px;
  height: 52px;
  top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.placed-signature-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.remove-placed-sig {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ef4444;
  color: white;
  border: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.signing-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--card-bg);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.4s ease-out;
}
.success-content {
  text-align: center;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--status-signed-bg);
  color: var(--status-signed-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon-badge svg {
  width: 32px;
  height: 32px;
}
.success-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.success-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.success-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}
.success-actions .btn {
  flex-grow: 1;
}
.signature-creator {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.creator-tabs {
  display: flex;
  background-color: var(--table-header-bg);
  border-bottom: 1px solid var(--border-color);
}
.creator-tab-btn {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}
.creator-tab-btn:hover {
  color: var(--primary-color);
  background-color: var(--table-row-hover);
}
.creator-tab-btn.active {
  color: var(--primary-color);
  background-color: var(--card-bg);
}
.creator-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}
.creator-body {
  padding: 2rem;
}
.creator-tab-content {
  display: none;
}
.creator-tab-content.active {
  display: block;
}
.creator-instruction {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.canvas-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
}
#signature-canvas {
  display: block;
  width: 100%;
  height: 250px;
  cursor: crosshair;
}
.typing-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.typed-input-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background-color: var(--card-bg);
  color: var(--text-main);
  transition: var(--transition-fast);
}
.typed-input-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}
.sig-styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sig-style-option {
  cursor: pointer;
}
.sig-style-option input {
  display: none;
}
.sig-preview-card {
  border: 1.5px solid var(--border-color);
  background-color: var(--card-bg);
  padding: 2rem 1rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}
.sig-style-option:hover .sig-preview-card {
  border-color: var(--primary-color);
  background-color: var(--table-row-hover);
}
.sig-style-option input:checked + .sig-preview-card {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.style-caveat-text {
  font-family: "Caveat", cursive;
  font-size: 2.25rem;
  color: #0c4a6e;
}
.style-pacifico-text {
  font-family: "Pacifico", cursive;
  font-size: 1.8rem;
  color: #0f172a;
}
.style-alex-text {
  font-family: "Alex Brush", cursive;
  font-size: 2.5rem;
  color: #0747a6;
}
.image-upload-dropzone {
  border: 2px dashed var(--primary-color);
  background-color: var(--bg-main);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.image-upload-dropzone:hover {
  border-color: var(--primary-color);
  background-color: rgba(0, 96, 152, 0.12);
}
.upload-icon-circle {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 96, 152, 0.12);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.upload-icon-circle svg {
  width: 24px;
  height: 24px;
}
.img-dropzone-text-primary {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.img-dropzone-text-secondary {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.image-preview-area {
  margin-top: 1rem;
  text-align: center;
}
.preview-box {
  max-width: 320px;
  height: 120px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0 auto 0.75rem;
}
.preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.creator-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 50;
  animation: slideUp 0.3s ease-out;
}
.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-frog);
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.verification-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.verification-card {
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}
.verification-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.verification-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.verification-dropzone {
  border: 2px dashed var(--primary-color);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: var(--bg-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.verification-dropzone:hover {
  border-color: var(--primary-color);
  background-color: rgba(0, 96, 152, 0.12);
}
.verification-dropzone p {
  color: var(--text-main) !important;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.verify-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(0, 96, 152, 0.12);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.verify-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-color);
}
.verification-result-panel {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}
.result-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.result-header.valid {
  background-color: var(--status-signed-bg);
  color: #065f46;
  border-bottom: 1px solid #a7f3d0;
}
.result-badge-icon {
  width: 32px;
  height: 32px;
  color: var(--status-signed-text);
  flex-shrink: 0;
}
.result-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}
.verify-filename {
  font-size: 0.8rem;
  opacity: 0.85;
}
.result-details {
  padding: 1rem 1.25rem;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}
.detail-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.mini-icon {
  width: 14px;
  height: 14px;
}
.hash-code {
  font-family: monospace;
  font-size: 0.75rem;
  color: #64748b;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-success {
  color: var(--status-signed-text) !important;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.75px;
}
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 88px 1fr;
  }
  .app-layout.full-width {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 2rem 0.5rem;
    align-items: center;
  }
  .logo-text {
    display: none;
  }
  .nav-item {
    justify-content: center;
    gap: 0;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 0;
  }
  .nav-item .nav-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  .logo-area {
    margin-bottom: 2rem;
  }
  .mesh-container {
    display: none;
  }
}
.mobile-nav-perfil {
  display: none;
}
@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .sidebar {
    flex-direction: row;
    height: 60px;
    padding: 0.5rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .logo-area {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  .nav-menu {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-bottom: 0;
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-item .nav-icon {
    width: 19px;
    height: 19px;
  }
  .mobile-nav-perfil {
    display: flex !important;
  }
  .content-area {
    padding: 1rem 0.75rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    min-width: 0;
  }
  .hub-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .upload-container {
    padding: 1.25rem;
  }
  .sidebar-user-section {
    display: none !important;
  }
  .documents-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0;
  }
  .documents-page .section-header {
    margin-bottom: 1.25rem;
  }
  .documents-page .section-header h1 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }
  .documents-page .section-header .subtitle {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  .search-bar-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .table-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .table-actions .select-control {
    width: 100%;
    min-width: 0 !important;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }
  .document-counter {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 0.75rem;
    margin-top: 0.1rem;
  }
  .desktop-table-view {
    display: none !important;
  }
  .mobile-doc-cards {
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }
}
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  visibility: visible;
}
.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 320px;
}
.splash-logo {
  width: 96px;
  height: 96px;
  animation: splashPulse 2s infinite ease-in-out;
}
.splash-logo svg {
  width: 100%;
  height: 100%;
}
.splash-progress {
  width: 100%;
  height: 4px;
  background-color: rgba(145, 158, 171, 0.12);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.splash-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--primary-color) 0%,
      var(--accent-blue) 100%);
  border-radius: 4px;
  animation: splashProgress 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes splashPulse {
  0% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 0 rgba(0, 96, 152, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0, 96, 152, 0.15));
  }
  100% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 0 rgba(0, 96, 152, 0));
  }
}
@keyframes splashProgress {
  0% {
    width: 0%;
  }
  30% {
    width: 40%;
  }
  60% {
    width: 75%;
  }
  100% {
    width: 100%;
  }
}
.sidebar-user-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0.5rem 0;
  margin-top: 1.5rem;
  z-index: 5;
}
.user-info-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--accent-blue) 100%);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.user-name {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.user-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  line-height: 1.2;
}
.logout-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.logout-btn:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}
.logout-icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 1024px) {
  .sidebar-user-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0 0;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }
  .sidebar-user-section .user-info-wrapper {
    justify-content: center;
    width: 100%;
  }
  .sidebar-user-section .user-meta {
    display: none !important;
  }
  .sidebar-user-section .logout-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  .sidebar-user-section .logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: scale(1.06);
  }
  .sidebar-user-section .logout-icon {
    width: 20px;
    height: 20px;
  }
}
body.dark-mode .info-guide-box {
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  border-left-color: #38bdf8 !important;
}
body.dark-mode .guide-title {
  color: #38bdf8 !important;
}
body.dark-mode .guide-desc {
  color: #94a3b8 !important;
}
body.dark-mode .guide-example {
  background: #0b1424 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #e2e8f0 !important;
}
body.dark-mode .guide-example strong {
  color: #ffffff !important;
}
body.dark-mode .guide-example em {
  color: #cbd5e1 !important;
}
body.dark-mode .guide-example code {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}
body.dark-mode .ex-badge {
  background-color: #38bdf8 !important;
  color: #070d18 !important;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
