/*
 * 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.
 */

/* ── Design System Tokens ── */
:root {
  --tiza: #F8F5F0;
  --tinta: #1A1612;
  --arcilla: #C4542A;
  --esmeralda: #4A9B4F;
  --cera: #E8C87A;
  --lavanda: #7B6B9E;

  --tiza-deep: #E8E3DC;
  --tinta-soft: #3A3028;

  --arcilla-100: #F6E1D8;
  --arcilla-800: #8A3A1D;
  --esm-100: #E8F4E9;
  --esm-200: #C2E0C4;
  --esm-400: #87C48B;
  --esm-800: #2E6E32;
  --esm-900: #1A4A1D;
  --cera-100: #FAF1DC;
  --cera-800: #7A6020;
  --lav-100: #ECE8F3;
  --lav-800: #4F4470;

  --display: 'Old Standard TT', serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'Space Mono', monospace;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 100px;
}

/* ── Tipografía global ── */
body {
  font-family: var(--body);
  font-weight: 300;
  background-color: var(--tiza);
  color: var(--tinta);
}

h1, h2, h3, h4 {
  font-family: var(--body);
}

/* ── 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: var(--body);
  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;
}
