/* Scoped controls: do not inherit the request form's submit-button styles. */
.birth-entry { min-width: 0; }
.birth-entry input:is([data-birth-entry-input], [data-date-entry-input]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
}
.birth-entry input:is([data-birth-entry-input], [data-date-entry-input])::placeholder { color: #69788c; opacity: 1; }
.registration-container .birth-entry input[data-birth-entry-input] {
  min-height: 46px;
  border-color: var(--border, #cbd5e1);
  color: var(--text-primary, #1f2937);
}
.birth-entry input:is([data-birth-entry-input], [data-date-entry-input]):focus-visible {
  border-color: #0b5cab;
  outline: 3px solid #dbeafa;
  outline-offset: 2px;
}
.birth-entry-field { position: relative; }
.birth-entry-custom input:is([data-birth-entry-input], [data-date-entry-input]) { padding-right: 54px; }
.birth-entry-custom button {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  border: 1px solid transparent;
  background: #fff;
  color: #073b78;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
.birth-entry-custom .birth-entry-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 9px;
  border-left-color: #e1e7ef;
  border-radius: 0 5px 5px 0;
  color: #0b5cab;
}
.birth-entry-custom .birth-entry-toggle:hover,
.birth-entry-custom .birth-entry-toggle[aria-expanded="true"] { background: #edf4fc; }
.birth-entry-toggle svg { display: block; pointer-events: none; }
.birth-entry .birth-entry-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 110;
  box-sizing: border-box;
  width: 100%;
  max-width: 384px;
  margin: 0;
  max-height: min(440px, 65vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid #cbd9e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(7 59 120 / 16%);
}
.birth-entry-panel[hidden] { display: none; }
.birth-entry[data-date-entry] .birth-entry-panel { width: 384px; }
.birth-entry-panel .birth-entry-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e3eaf2;
}
.birth-entry .birth-entry-controls select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbd9e8;
  border-radius: 7px;
  background: #f7faff;
  color: #073b78;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.birth-entry-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.birth-entry-days > span {
  padding: 7px 0;
  text-align: center;
  color: #607086;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.birth-entry .birth-entry-days button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 7px;
  font-weight: 500;
}
.birth-entry .birth-entry-days button:hover:not(:disabled) { background: #eaf3ff; border-color: #c3d9f4; }
.birth-entry .birth-entry-days button[aria-pressed="true"],
.birth-entry .birth-entry-days button[aria-pressed="true"]:hover { background: #0b5cab; border-color: #0b5cab; color: #fff; font-weight: 700; }
.birth-entry .birth-entry-days button:disabled { background: #f7f8fa; color: #8793a2; cursor: not-allowed; opacity: 1; }
.birth-entry .birth-entry-close {
  display: block;
  width: auto;
  min-height: 40px;
  margin: 14px 0 0 auto;
  padding: 9px 16px;
  border-color: #cbd9e8;
  border-radius: 7px;
  font-weight: 600;
}
.birth-entry .birth-entry-close:hover { background: #edf4fc; }
.birth-entry-custom :is(button, select):focus-visible { outline: 3px solid #78a9df; outline-offset: 1px; }
@media (max-width: 420px) {
  .birth-entry .birth-entry-panel { max-width: none; padding: 10px; }
  .birth-entry-days { gap: 2px; }
}
