/* Disposición interna del calendario de Gantt. La carcasa y los controles base viven en modal-shell.css. */
.gantt-calendar-modal.help-shell,
.gantt-calendar-modal__panel.help-shell { width: min(700px, calc(100vw - 32px)); }

/* El diálogo React no inserta el separador que monta modal-shell.js en la interfaz PHP. */
dialog.gantt-calendar-modal.help-shell .help-shell__content > form { padding-top: var(--modal-content-block); }
dialog.gantt-calendar-modal.help-shell .help-shell__content > form > .gantt-calendar-modal__groups { margin-top: 0; }

.help-shell .gantt-calendar-modal__groups { display: grid; gap: 8px; margin-top: 24px; }
.help-shell .gantt-calendar-modal__groups button {
  display: grid; gap: 3px; width: 100%; min-width: 0; padding: 12px;
  border: 2px solid var(--modal-control-border); border-radius: 12px;
  color: var(--modal-text); background: var(--modal-tile-background); text-align: left; cursor: pointer;
}
.help-shell .gantt-calendar-modal__groups span { font-size: 13px; }
.help-shell .gantt-calendar-modal__groups small { color: var(--modal-text-secondary); }

.help-shell .gantt-calendar-modal__editor {
  display: grid; gap: var(--modal-form-row-gap); margin: 20px 0 0; padding: 18px;
  border: 1px solid var(--modal-control-border); border-radius: 16px;
}
.help-shell .gantt-calendar-modal__editor legend { padding: 0 6px; color: var(--modal-text); }
.help-shell .gantt-calendar-modal__editor label:not(.gantt-calendar-modal__working),
.help-shell .gantt-calendar-modal__setting {
  display: grid; align-content: start; gap: var(--modal-label-control-gap);
  min-width: 0; margin: 0; color: var(--modal-text-secondary);
  font: 400 14px/1.4 'Open Sans', ui-sans-serif, sans-serif;
}
.help-shell .gantt-calendar-modal__editor input:not([type="checkbox"]),
.help-shell .gantt-calendar-modal__editor select,
.help-shell .gantt-calendar-modal__setting > select,
.help-shell .gantt-calendar-modal__setting > textarea {
  width: 100%; min-width: 0; height: 36px; min-height: 36px;
  padding: 0 12px; border: 2px solid var(--modal-control-border);
  border-radius: 12px; color: var(--modal-text); background-color: var(--modal-control-background);
  font: 400 14px/1.4 'Open Sans', ui-sans-serif, sans-serif;
}
.help-shell .gantt-calendar-modal__setting > textarea { height: auto; min-height: 126px; padding: 12px; resize: vertical; }
.help-shell .gantt-calendar-modal__setting { margin-top: var(--modal-form-row-gap); }
.help-shell .gantt-calendar-modal__days { display: flex; flex-wrap: wrap; gap: 8px; }
.help-shell .gantt-calendar-modal__days button {
  width: 38px; height: 38px; border: 2px solid #8fa5b4;
  border-radius: 9px; color: var(--modal-text); background: var(--modal-tile-background); cursor: pointer;
}
.help-shell .gantt-calendar-modal__days button[aria-pressed="true"] { border-color: #188fc3; color: #fff; background: #188fc3; }
.help-shell .gantt-calendar-modal__working { display: flex; align-items: center; gap: 8px; }
.help-shell .gantt-calendar-modal__hours {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--modal-form-column-gap);
}
.help-shell .gantt-calendar-modal__add {
  justify-self: start; min-height: 36px; padding: 0 14px;
  border: 2px solid #188fc3; border-radius: 18px;
  color: #fff; background: #188fc3; cursor: pointer;
}
.help-shell .gantt-calendar-modal__error { color: #ffb3aa; }
.help-shell .gantt-calendar-modal__specials { margin-top: 20px; }
.help-shell .gantt-calendar-modal__specials h3 { margin: 0; color: var(--modal-text); font-size: 16px; font-weight: 500; }
.help-shell .gantt-calendar-modal__special-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-shell .gantt-calendar-modal__special-actions button:not(.gantt-calendar-modal__add) {
  min-height: 36px; padding: 0 14px; border: 2px solid #b3261e;
  border-radius: 18px; color: #ffb3aa; background: var(--modal-control-background); cursor: pointer;
}
.help-shell .gantt-calendar-modal__panel [hidden] { display: none; }
@media (max-width: 620px) {
  .help-shell .gantt-calendar-modal__hours { grid-template-columns: 1fr; }
}
