:root {
  --df-primary: #0d6efd;
  --df-primary-dark: #0a58ca;
  --df-secondary: #6c757d;
  --df-teal: #0ea5a5;
  --df-dark: #1a1f36;
  --df-light: #f8f9fa;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--df-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

.df-hero {
  background: linear-gradient(135deg, var(--df-primary) 0%, var(--df-teal) 100%);
  color: #fff;
  padding: 5rem 0;
}

.df-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.df-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.df-footer {
  background-color: var(--df-dark);
  color: #dee2e6;
}

/* ----------------------- Área autenticada ----------------------- */
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  min-height: 100vh;
}

.app-sidebar .nav-link.active {
  color: #fff;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
    overflow-y: auto;
  }

  .app-sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.35);
  }
}

.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}

/* ----------------------- Documentos imprimíveis ----------------------- */
.df-document {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
}

@media print {
  .app-sidebar,
  .app-shell header,
  .no-print {
    display: none !important;
  }

  .app-shell main {
    padding: 0 !important;
    background: #fff !important;
  }

  .df-document {
    box-shadow: none !important;
    border: 0 !important;
  }
}
