.jo-heures .jfc-abas { gap: 6px; }
.jo-heures .segment-selector { display: flex; align-items: stretch; gap: 8px; margin-top: 5px; background: #f8f9fa; padding: 4px; border-radius: 10px; border: 1px solid #dee2e6; width: 100%; min-height: 46px; box-sizing: border-box; }
.jo-heures .segment-selector .segment-btn { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #495057; font-size: .9rem; font-weight: 700; line-height: 1.15; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; cursor: pointer; text-align: center; }
.jo-heures .segment-selector .segment-btn.active { background-color: #0d6efd; color: #fff; border-color: #0b57d0; box-shadow: 0 2px 6px rgba(13, 110, 253, .35); }
.jo-heures .segment-selector .segment-btn:not(.active):not(:disabled):hover { color: #2f3a45; border-color: #c9d4e3; background: #eef3fa; }
.jo-heures .segment-selector .segment-btn:disabled { opacity: .45; cursor: not-allowed; }
.jo-heures .segment-selector .segment-btn i { display: none; }
body.dark-mode .jo-heures .segment-selector { background: rgba(255, 255, 255, .05); border-color: var(--border-color, #3a3a3c); }
body.dark-mode .jo-heures .segment-selector .segment-btn { color: #c3cbd5; }
body.dark-mode .jo-heures .segment-selector .segment-btn.active { background-color: #1d4ed8; color: #fff; border-color: #1e3a8a; }
.jo-heures .h-modo-nota { margin: 6px 0 0; }
.jo-heures .h-panel[hidden], .jo-heures .h-simple[hidden], .jo-heures .h-adv[hidden], .jo-heures .h-legacy[hidden], .jo-heures .h-modo-nota[hidden] { display: none !important; }
.jo-heures .h-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jo-heures .h-pair > .form-group { margin-bottom: 0; }
.jo-heures .h-legacy .form-group, .jo-heures .h-simple .form-group { margin-bottom: 16px; }
.jo-heures .delai-inputs-column input[type="text"], .jo-heures .delai-inputs-column input[type="time"], .jo-heures .delai-inputs-column input[type="number"], .jo-heures .delai-inputs-column input[type="date"] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #9aa8ba; border-radius: 10px; background: #fff; color: #1d1d1f; font: inherit; font-size: 16px; box-sizing: border-box; }
body.dark-mode .jo-heures .delai-inputs-column input[type="text"], body.dark-mode .jo-heures .delai-inputs-column input[type="time"], body.dark-mode .jo-heures .delai-inputs-column input[type="number"], body.dark-mode .jo-heures .delai-inputs-column input[type="date"] { background: #1f2937; border-color: #4b5563; color: #f2f2f7; color-scheme: dark; }
.jo-heures [aria-invalid="true"] { border-color: #c62828 !important; }
.jo-heures .h-rows { display: flex; flex-direction: column; gap: 8px; }
.jo-heures .h-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.jo-heures .h-op { min-height: 44px; border: 1px solid #9aa8ba; border-radius: 10px; background: #fff; color: #08407e; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.jo-heures .h-op[value="-"] { color: #b42318; }
.jo-heures .h-op:disabled { opacity: .55; cursor: default; }
body.dark-mode .jo-heures .h-op { background: #1f2937; border-color: #4b5563; color: #8ec5ff; }
body.dark-mode .jo-heures .h-op[value="-"] { color: #ff8a80; }
.jo-heures .h-del { min-height: 44px; border: 1px solid #c9d4e3; border-radius: 10px; background: transparent; color: #5a6676; font-size: 20px; line-height: 1; cursor: pointer; }
.jo-heures .h-del:hover { background: #eef3fa; }
body.dark-mode .jo-heures .h-del { border-color: #4b5563; color: #c3cbd5; }
.jo-heures .h-add-row { margin-top: 10px; padding: 8px 2px; min-height: 40px; border: 0; background: none; color: #0b4aa2; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.jo-heures .h-add-row:hover { text-decoration: underline; }
body.dark-mode .jo-heures .h-add-row { color: #8ec5ff; }
.jo-heures .tool-config { margin: 6px 0 4px; border: 1px solid #e3e8ef; border-radius: 10px; background: transparent; }
.jo-heures .tool-config > summary { padding: 12px 14px; cursor: pointer; font-weight: 700; color: #0b4aa2; list-style: revert; }
body.dark-mode .jo-heures .tool-config { border-color: #2b3545; }
body.dark-mode .jo-heures .tool-config > summary { color: #8ec5ff; }
.jo-heures .config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0 0 12px; }
.jo-heures .config-item label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.jo-heures .config-input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid #9aa8ba; border-radius: 8px; font: inherit; box-sizing: border-box; }
body.dark-mode .jo-heures .config-input { background: #1f2937; border-color: #4b5563; color: #f2f2f7; color-scheme: dark; }
.jo-heures .presets-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.jo-heures .btn-preset { padding: 6px 10px; min-height: 36px; border: 1px solid #c9d4e3; border-radius: 8px; background: #fff; color: #1d1d1f; font: inherit; font-size: 13px; cursor: pointer; }
.jo-heures .btn-preset.active { border-color: #0b57d0; background: #e8f0fe; color: #08407e; font-weight: 700; }
body.dark-mode .jo-heures .btn-preset { background: #1f2937; border-color: #4b5563; color: #e5e5ea; }
body.dark-mode .jo-heures .btn-preset.active { background: #1d3a6e; color: #fff; }
.jo-heures .h-info-base { margin-top: 10px; font-size: 13px; color: #5a6676; }
.jo-heures .h-err { margin: 0 0 8px; }
.jo-heures .p-3 { padding: 0 14px 14px; }
#hRes[hidden] { display: none !important; }
#hRes { margin-top: 10px; }
#hRes .jo-notes { margin-bottom: 14px; }
#resultConversor.h-legacy-res, #resultHorasUteis.h-legacy-res { margin: 10px 0 24px; }
@media (max-width: 768px) {
  .jo-heures .h-pair, .jo-heures .config-grid { grid-template-columns: minmax(0, 1fr); }
  .jo-heures .h-pair > .form-group { margin-bottom: 16px; }
  .jo-heures .segment-selector .segment-btn { font-size: .85rem; padding: 0 6px; }
}
@media print {
  .jo-heures .delai-inputs-column, .jo-heures .action-section-below-grid, #hResActions, #hStatus, .jo-heures .h-err { display: none !important; }
}
#hSummary {
  padding: 18px 16px;
}
#hSummary .glass-summary-title {
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 9px;
  letter-spacing: 0.01em;
}
#hSummary .glass-summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.05fr);
  align-items: start;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 113, 227, 0.11);
  border-radius: 10px;
  border-bottom: 1px solid rgba(0, 113, 227, 0.11);
  background: rgba(255, 255, 255, 0.48);
}
#hSummary .glass-summary-row:last-child {
  margin-bottom: 0;
  padding-bottom: 8px;
}
#hSummary .glass-summary-label {
  font-size: 0.73rem;
  line-height: 1.28;
  color: #5f6b7f;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
#hSummary .glass-summary-value {
  font-size: 0.86rem;
  line-height: 1.32;
  font-weight: 700;
  text-align: right;
  justify-self: end;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: "Segoe UI Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.dark-mode #hSummary .glass-summary-row {
  background: rgba(20, 26, 38, 0.55);
  border-color: rgba(117, 169, 255, 0.26);
}
body.dark-mode #hSummary .glass-summary-label {
  color: #aebbd2;
}
.jo-heures[data-modo="basica"] #configContainer { display: none !important; }
#hRes:not([hidden]) { display: block; }
@media screen { #resultHeroContent .result-context-text { background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .16) !important; color: #e6eefa !important; } #resultHeroContent .result-context-text strong { color: #fff !important; } }
#resultHorasUteis .h-hero-col { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; } #resultHorasUteis .h-hero-col > .result-hero-container { flex: 1 1 auto; }
