/* ==========================================================================
   PLATAFORMA GESTIÓN HUMANA - TRABAJA YA PERU S.A.
   ESTILOS GENERALES Y COMPONENTES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,700;1,900&display=swap');

:root {
  --primary-orange: #f28c28;
  --primary-orange-hover: #e07b1a;
  --primary-orange-light: #fff5eb;
  --brand-red: #991515;
  --brand-red-dark: #771010;
  --success-green: #28a745;
  --success-green-bg: #e8f5e9;
  --text-dark: #22292f;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-app: #f4f6f9;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #f28c28;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
  --header-height: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   VISTA DE LOGIN (AUTENTICACIÓN)
   ========================================================================== */
.login-view {
  min-height: 100vh;
  display: flex;
  background: #ffffff;
  overflow: hidden;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  max-width: 520px;
  margin: 0 auto;
}

.login-brand-wrapper {
  width: 100%;
  margin-bottom: 28px;
}

.login-brand-wrapper img {
  height: 48px;
  object-fit: contain;
}

.login-header-group {
  width: 100%;
  margin-bottom: 24px;
}

.login-header-group h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.login-header-group p {
  color: var(--text-muted);
  font-size: 14px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input,
.form-select {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  transition: var(--transition);
}

.input-with-icon input {
  padding-right: 42px;
}

.input-with-icon input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.18);
}

.input-with-icon .input-icon-btn,
.input-with-icon .input-icon-badge {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: var(--primary-orange);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(242, 140, 40, 0.3);
  transition: var(--transition);
}

.btn-orange:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(242, 140, 40, 0.35);
}

.btn-orange:active {
  transform: translateY(0);
}

.login-demo-hint {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 3px solid var(--primary-orange);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
}

/* Columna Derecha con Hero */
.login-right {
  flex: 1.3;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px;
}

.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.25) 100%);
}

.login-hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  user-select: none;
}

.hero-subtitle-top {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  font-style: italic;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.hero-main-title span {
  display: block;
}

/* ==========================================================================
   LAYOUT PRINCIPAL DEL PANEL (DASHBOARD)
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Header Superior */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo img {
  height: 42px;
  display: block;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: #0284c7;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-greeting {
  font-size: 14px;
  color: #334155;
}

.user-greeting strong {
  font-weight: 700;
  color: #0f172a;
}

.user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f1f5f9;
}

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

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-logout:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Barra Lateral (Sidebar) */
.sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 90;
  padding: 18px 0;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  white-space: nowrap;
}

.sidebar.collapsed .nav-label,
.sidebar.collapsed .chevron {
  display: none;
}

.chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.nav-item.open > .nav-link .chevron {
  transform: rotate(90deg);
}

.nav-link:hover {
  background-color: #f8fafc;
  color: var(--primary-orange);
}

.nav-link:hover .nav-icon {
  color: var(--primary-orange);
}

.nav-item.active > .nav-link {
  color: var(--primary-orange);
  background-color: var(--primary-orange-light);
  font-weight: 600;
  border-left: 4px solid var(--primary-orange);
}

/* Submenús */
.sub-nav-list {
  list-style: none;
  background: #fbfcfe;
  padding: 4px 0;
  display: none;
}

.nav-item.open > .sub-nav-list {
  display: block;
}

.sub-nav-item .sub-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 44px;
  color: #64748b;
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition);
}

.sub-nav-bullet {
  font-size: 10px;
  color: #cbd5e1;
}

.sub-nav-link:hover {
  color: var(--primary-orange);
  background: #f8fafc;
}

.sub-nav-item.active .sub-nav-link {
  color: var(--primary-orange);
  font-weight: 600;
}

.sub-nav-item.active .sub-nav-bullet {
  color: var(--primary-orange);
}

/* Contenido Principal */
.main-content {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 30px;
  background-color: var(--bg-app);
  min-height: calc(100vh - var(--header-height));
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* Encabezado de Sección */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 26px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   TARJETAS DEL DASHBOARD (MENÚ PRINCIPAL)
   ========================================================================== */
.dashboard-card-container {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 35px 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  min-height: 480px;
}

.quick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.quick-action-card {
  flex: 0 0 220px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.quick-action-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.quick-action-label {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-align: center;
}

/* Estadísticas de Módulos */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-box-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-orange);
}

/* ==========================================================================
   TABLAS DE MANTENIMIENTO (Áreas, Unidades, Centros de Costo)
   ========================================================================== */
.table-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.table-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.table-top-bar .btn-agregar {
  background: var(--primary-orange);
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(242, 140, 40, 0.25);
}

.table-top-bar .btn-agregar:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-1px);
}

.table-filter-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.table-filter-bar label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.search-input {
  height: 34px;
  width: 220px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.15);
}

/* Tabla Estilizada */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  user-select: none;
}

.custom-table th.sortable {
  cursor: pointer;
}

.custom-table th.sortable:hover {
  color: var(--primary-orange);
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  color: #334155;
  vertical-align: middle;
}

.custom-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Dropdown Opciones Botón Naranja */
.action-dropdown {
  position: relative;
  display: inline-block;
}

.btn-opciones {
  background: var(--primary-orange);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-opciones:hover {
  background: var(--primary-orange-hover);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  display: none;
  flex-direction: column;
  z-index: 80;
  padding: 4px 0;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 8px 14px;
  font-size: 12.5px;
  color: #334155;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary-orange);
}

.dropdown-item.text-danger:hover {
  color: #dc2626;
  background: #fee2e2;
}

/* Badge de Estado */
.badge-estado {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
}

.badge-habilitado {
  background-color: var(--success-green);
  color: #ffffff;
}

.badge-inhabilitado {
  background-color: #dc2626;
  color: #ffffff;
}

.badge-proceso {
  background-color: #ffc107;
  color: #3f2c00;
  font-weight: 700;
}

.title-with-btn {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agrupamiento-filter-group {
  margin-bottom: 20px;
  max-width: 360px;
}

.agrupamiento-filter-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.3px;
}

/* Barra de Paginación */
.table-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.active {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  font-weight: 600;
}

/* ==========================================================================
   MODALES (VENTANAS EMERGENTES PARA AGREGAR / EDITAR)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  animation: modalEnter 0.2s ease-out;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.btn-modal-close:hover {
  color: #0f172a;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #475569;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* Notificaciones Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  background: #1e293b;
  color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s ease-out;
}

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

.toast.toast-success {
  border-left: 4px solid var(--success-green);
}

.toast.toast-error {
  border-left: 4px solid #ef4444;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .login-right {
    display: none;
  }
  
  .login-left {
    max-width: 100%;
  }

  .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar .nav-label,
  .sidebar .chevron {
    display: none;
  }

  .main-content {
    margin-left: var(--sidebar-collapsed-width);
    padding: 16px;
  }
}

/* ==========================================================================
   MODAL DE VISUALIZACIÓN Y EMISIÓN DE DOCUMENTOS CON FIRMA Y SELLO
   ========================================================================== */
.modal-documento-box {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 95%;
  max-width: 860px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.documento-actions-bar {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.documento-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.documento-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-print {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-print:hover {
  background: #1d4ed8;
}

.documento-scroll-wrapper {
  overflow-y: auto;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  background: #64748b;
}

/* Hoja A4 Digital */
.document-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  min-height: 950px;
  padding: 48px 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1e293b;
  line-height: 1.6;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0d274c;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.doc-header-logo img {
  height: 52px;
  object-fit: contain;
}

.doc-header-info {
  text-align: right;
  font-size: 11px;
  color: #475569;
}

.doc-header-info strong {
  font-size: 13px;
  color: #0d274c;
  display: block;
}

.doc-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  text-transform: uppercase;
  margin: 18px 0;
  position: relative;
}

.doc-subtitle-code {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 24px;
  font-family: monospace;
}

.doc-body-text {
  font-size: 13.5px;
  color: #334155;
  text-align: justify;
  margin-bottom: 20px;
}

.doc-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
}

.doc-data-table th, 
.doc-data-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
}

.doc-data-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
  width: 35%;
}

.doc-data-table td {
  color: #0f172a;
  font-weight: 500;
}

.doc-signatures-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
  padding-top: 20px;
}

.signature-box-worker {
  width: 42%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.worker-sign-line {
  width: 100%;
  border-top: 1px solid #475569;
  margin-top: 60px;
  padding-top: 6px;
  font-size: 11px;
  color: #334155;
  font-weight: 600;
}

.worker-fingerprint-box {
  width: 60px;
  height: 75px;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.signature-box-company {
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signature-box-company img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.doc-footer-legal {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94a3b8;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN (PRINT MEDIA)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  
  #documentSheetToPrint,
  #documentSheetToPrint * {
    visibility: visible;
  }

  #documentSheetToPrint {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    box-shadow: none !important;
    padding: 20mm !important;
    margin: 0 !important;
  }

  .modal-overlay {
    background: transparent !important;
    position: static !important;
    padding: 0 !important;
  }

  .documento-actions-bar,
  .btn-modal-close,
  .topbar,
  .sidebar,
  .toast-container {
    display: none !important;
  }
}

