/* RRHH Expedientes - visual layer. Kept intentionally scoped to avoid altering Dolibarr globally. */
.rrhhexp-hero {
  border: 1px solid rgba(80, 96, 120, 0.18);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 12px 0 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,248,252,0.96));
  box-shadow: 0 10px 28px rgba(27, 39, 65, 0.08);
}
.rrhhexp-hero-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}
.rrhhexp-hero-subtitle {
  color: #5f6b7a;
  font-size: 13px;
  max-width: 960px;
}
.rrhhexp-hero-actions {
  margin-top: 14px;
}
.rrhhexp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}
.rrhhexp-card,
.rrhhexp-panel,
.rrhhexp-status-summary {
  border: 1px solid rgba(80, 96, 120, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 39, 65, 0.06);
}
.rrhhexp-card {
  padding: 16px;
}
.rrhhexp-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.rrhhexp-card-text,
.rrhhexp-muted {
  color: #5f6b7a;
  font-size: 13px;
}
.rrhhexp-panel {
  padding: 16px;
  margin: 12px 0 18px;
}
.rrhhexp-form-shell {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(250,251,253,0.96), rgba(255,255,255,1));
}
.rrhhexp-form-table.border,
.rrhhexp-comment-table.border {
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.rrhhexp-form-table td,
.rrhhexp-comment-table td {
  padding: 10px 12px;
}
.rrhhexp-section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 10px;
}
.rrhhexp-status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.rrhhexp-status-box {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(80, 96, 120, 0.10);
}
.rrhhexp-status-box strong {
  display: block;
  margin-bottom: 8px;
  color: #2f3947;
}
.rrhhexp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.rrhhexp-workflow-help {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid rgba(214, 164, 46, 0.30);
}
.rrhhexp-actions,
.tabsAction.rrhhexp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.rrhhexp-action-button,
.rrhhexp-actions .butAction,
.rrhhexp-actions .butActionDelete {
  border-radius: 999px !important;
  padding: 8px 13px !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 8px rgba(27, 39, 65, 0.08);
}
.rrhhexp-workflow-form {
  border: 1px solid rgba(80, 96, 120, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 39, 65, 0.05);
}
.rrhhexp-list-shell {
  border: 1px solid rgba(80, 96, 120, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 39, 65, 0.05);
}
.rrhhexp-table-clean table,
table.rrhhexp-table-clean {
  border-radius: 12px;
  overflow: hidden;
}
.rrhhexp-notice {
  padding: 12px 14px;
  border: 1px solid rgba(80, 96, 120, 0.14);
  border-radius: 12px;
  background: #f8fafc;
  margin: 10px 0 16px;
}
.rrhhexp-kpi {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.rrhhexp-select,
.rrhhexp-form-shell input.flat,
.rrhhexp-form-shell textarea.flat,
.rrhhexp-form-shell select.flat,
.rrhhexp-panel input.flat,
.rrhhexp-panel textarea.flat,
.rrhhexp-panel select.flat {
  border-radius: 8px;
}
.rrhhexp-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(80, 96, 120, 0.14);
  border-radius: 14px;
  background: #fff;
}
.rrhhexp-mini-label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: #7b8794;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .rrhhexp-hero { padding: 16px; }
  .rrhhexp-hero-title { font-size: 19px; }
  .rrhhexp-status-summary { grid-template-columns: 1fr; }
}
