/* 全站欄框與下拉箭頭一致；不變更欄位大小、資料或選擇行為。 */
:root { --qichen-editable-field-background: #fff; --qichen-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 6 5 5 5-5' fill='none' stroke='%2318322e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media screen {
  input:not([type]), input:is([type="text"], [type="search"], [type="email"], [type="tel"], [type="url"], [type="password"], [type="number"], [type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]), select, textarea {
    border: 1px solid #c4d4cf !important; border-radius: 0 !important; background-color: var(--qichen-editable-field-background) !important;
  }
  [contenteditable="true"], [contenteditable="plaintext-only"], [contenteditable=""] { background-color: var(--qichen-editable-field-background) !important; }
  input::placeholder, textarea::placeholder { color: transparent !important; opacity: 0 !important; }
  :is(input, select, textarea):focus { border-color: #17685f !important; outline: none !important; box-shadow: 0 0 0 3px #17685f1f !important; }
  :is(input, select, textarea):disabled, :is(input, textarea)[readonly] { background-color: #eef3f1 !important; }
  :is(input, select, textarea):is([aria-invalid="true"], :user-invalid) { border-color: #b43b35 !important; }
  select.qichen-single-select, input[list], input[role="combobox"], button[role="combobox"] {
    appearance: none !important; -webkit-appearance: none !important;
    background-image: var(--qichen-select-arrow) !important; background-repeat: no-repeat !important;
    background-position: right 10px center !important; background-size: 18px 18px !important; padding-right: 34px !important;
  }
  input[list]::-webkit-calendar-picker-indicator { opacity: 0; }
  select.qichen-empty-select { color: transparent !important; }
  select.qichen-empty-select option { color: #162622 !important; }
  input.qichen-combobox-with-toggle { background-image: none !important; }
  input.qichen-combobox-with-clear { background-position: right 36px center !important; padding-right: 60px !important; }
  button.qichen-dropdown-toggle {
    width: 34px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important;
    color: transparent !important; font-size: 0 !important; background-color: transparent !important;
    background-image: var(--qichen-select-arrow) !important; background-repeat: no-repeat !important;
    background-position: center !important; background-size: 18px 18px !important;
  }
  button.qichen-dropdown-toggle > * { visibility: hidden !important; }
  .qichen-empty-temporal:not(:focus)::-webkit-datetime-edit { color: transparent; }
}
