/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ── Tipografía global ── */
body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-weight: 250;
}

/* ── Form fields: normalize heights so <input>, <select> and <input type="date"> render the same ── */
input.rounded-lg.shadow-sm,
select.rounded-lg.shadow-sm,
textarea.rounded-lg.shadow-sm {
  padding: 0.5rem 0.75rem;
}

/* ── Tables: consistent light gray dividers ── */
table tbody tr {
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
table tbody tr:last-child {
  border-bottom: none;
}
table thead tr {
  border-bottom: 1px solid #e5e7eb;
}

/* ── Tooltip (use class="tooltip" data-tooltip="text") ── */
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #1f2937;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  width: max-content;
  max-width: 380px;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #e5e7eb;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 50;
}
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}
