/* Bespoke Molnii fields, without third-party UI dependencies. */
input,
textarea,
select,
button {
  font-family: inherit;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
    [type="file"]
  ),
textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d9e6ef;
  border-radius: 12px;
  background: #fff;
  color: #16324f;
  min-height: 46px;
  padding: 12px 14px;
  font-size: 16px;
  box-shadow: none;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #869bad;
}
input:focus-visible,
textarea:focus-visible,
.field-select:focus-visible,
.field-date-button:focus-visible,
.field-file-button:focus-visible {
  outline: 0;
  border-color: #1686e8;
  box-shadow: 0 0 0 4px #1686e81c;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  border: 1.5px solid #b9d1e2;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: #1686e8;
  border-color: #1686e8;
}
input[type="checkbox"]:checked:after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:checked:after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid #1686e83a;
  outline-offset: 3px;
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  min-height: 44px;
  height: 44px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 10px;
  background: #cde7fa;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 10px;
  background: #cde7fa;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1686e8;
  box-shadow: 0 1px 8px #1686e850;
}
input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1686e8;
  box-shadow: 0 1px 8px #1686e850;
}
.custom-field {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
}
.custom-field .field-source {
  position: absolute !important;
  left: 1px !important;
  top: 1px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
}
.field-select,
.field-file-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  text-align: left;
  background: #fff;
  border: 1px solid #d9e6ef;
  border-radius: 12px;
  padding: 12px 38px 12px 14px;
  color: #16324f;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
}
.field-select:after {
  content: "";
  position: absolute;
  right: 17px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #5c7c95;
  border-bottom: 1.6px solid #5c7c95;
  transform: rotate(45deg);
  pointer-events: none;
}
.field-select[aria-expanded="true"] {
  border-color: #1686e8;
  background: #f5fbff;
}
.field-select[aria-expanded="true"]:after {
  transform: translateY(3px) rotate(225deg);
}
.field-popup {
  position: fixed;
  z-index: 10000;
  max-height: min(65vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9e9f5;
  border-radius: 17px;
  padding: 7px;
  background: #fff;
  color: #16324f;
  box-shadow: 0 18px 60px #16324f22;
  font-family: inherit;
  box-sizing: border-box;
}
.field-popup button {
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
  min-height: 40px;
}
.field-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  margin: 2px 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #16324f;
  font-size: 14px;
  line-height: 1.4;
}
.field-option:hover,
.field-option:focus-visible {
  background: #eff8ff;
  outline: 0;
}
.field-option[aria-selected="true"] {
  background: #e4f3ff;
  color: #087bd9;
  font-weight: 700;
}
.field-option[aria-selected="true"]:after {
  content: "✓";
  float: right;
  margin-left: 10px;
}
.field-option:disabled {
  opacity: 0.4;
  cursor: default;
}
.custom-date {
  display: flex;
  align-items: center;
}
.custom-date .field-date-text {
  padding-right: 50px !important;
  width: 100%;
  margin: 0 !important;
}
.field-date-button {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #1686e8;
  background: #edf7ff;
  font-size: 25px;
  cursor: pointer;
}
.field-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 3px;
}
.field-calendar-head strong {
  font-size: 14px;
  text-transform: capitalize;
}
.field-calendar-head button {
  border: 0;
  background: #eef7ff;
  color: #1686e8;
  width: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 25px;
}
.field-calendar-week,
.field-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.field-calendar-week {
  color: #7892a7;
  text-align: center;
  font-size: 11px;
  padding: 5px 0 9px;
}
.field-calendar-grid button {
  border: 0;
  background: #fff;
  border-radius: 10px;
  color: #16324f;
  font-size: 13px;
  padding: 4px;
  min-height: 36px;
}
.field-calendar-grid button:hover,
.field-calendar-grid button:focus-visible {
  background: #edf7ff;
  color: #1686e8;
  outline: 0;
}
.field-calendar-grid button.chosen {
  background: #1686e8;
  color: white;
}
.field-time {
  display: flex;
  align-items: end;
  gap: 8px;
  border-top: 1px solid #e4eef5;
  margin-top: 12px;
  padding: 12px 5px 0;
}
.field-time label {
  font-size: 10px;
  color: #71899c;
  margin: 0;
}
.field-time input {
  display: block;
  width: 56px !important;
  min-height: 38px !important;
  font-size: 15px !important;
  padding: 8px !important;
  margin-top: 5px !important;
}
.field-time span {
  margin-bottom: 10px;
}
.field-time small {
  font-size: 10px;
  color: #71899c;
  margin-bottom: 11px;
}
.field-calendar-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e4eef5;
  margin-top: 12px;
  padding-top: 7px;
}
.field-calendar-foot button {
  border: 0;
  background: white;
  color: #1686e8;
  border-radius: 9px;
  font-size: 12px;
  padding: 7px 12px;
}
.field-file {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px dashed #bcd8ec;
  border-radius: 14px;
  padding: 13px;
  background: #f5fbff;
}
.field-file-button {
  width: auto;
  flex-shrink: 0;
  padding: 10px 15px;
  color: #1686e8;
  background: #e5f3ff;
  border-color: #d0e7f8;
  font-weight: 650;
  font-size: 12px;
}
.field-file-summary {
  font-size: 11px;
  color: #7892a7;
  overflow-wrap: anywhere;
  min-width: 0;
}
.filters .custom-field,
.toolbar .custom-field {
  width: auto;
  flex: 1;
  margin: 0;
  min-width: 140px;
}
.filters .field-select {
  font-size: 13px;
}
.custom-field:has(:disabled) {
  opacity: 0.6;
}
.field-source:invalid ~ .field-select {
  border-color: #d25760;
}
@media (max-width: 650px) {
  .field-popup {
    max-height: 60vh;
  }
  .field-file {
    align-items: flex-start;
    flex-direction: column;
  }
  .field-file-button {
    width: 100%;
    justify-content: center;
  }
  .filters .custom-field {
    min-width: 125px;
  }
  .custom-field .field-select {
    font-size: 13px;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
      [type="file"]
    ),
  textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  input,
  textarea,
  .field-select {
    transition: none;
  }
}
.field-error {
  display: block;
  color: #b84350;
  font-size: 12px;
  line-height: 1.5;
  margin: -5px 0 14px;
}
.field-confirm {
  padding: 30px !important;
  width: min(440px, calc(100vw - 32px)) !important;
  max-height: 85vh;
  border: 1px solid #d9e9f5 !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: #16324f !important;
}
.field-confirm[open] {
  display: block !important;
}
.field-confirm::backdrop {
  background: #16324f66;
  backdrop-filter: blur(4px);
}
.field-confirm h2 {
  font-size: 22px;
  margin: 16px 0 12px;
}
.field-confirm p {
  white-space: pre-wrap;
  line-height: 1.65;
  color: #617e95;
  font-size: 14px;
}
.field-confirm-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eaf6ff;
  color: #1686e8;
  font-weight: 800;
  font-size: 24px;
}
.field-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.field-confirm-actions button {
  flex: 1;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #d9e6ef;
  background: white;
  color: #617e95;
  font-size: 13px;
  padding: 10px;
}
.field-confirm-actions [data-accept] {
  background: #1686e8;
  color: white;
  border-color: #1686e8;
}
.field-time-text {
  width: 100%;
}
