/* Branded styling for browser form controls across public and admin pages. */
select:not([multiple]):not([size]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234b6f00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 17px 17px !important;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
select:not([multiple]):not([size]):focus-visible {
  outline: 0 !important;
  border-color: #a6e50e !important;
  box-shadow: 0 0 0 4px rgba(184,253,16,.17) !important;
}
select option, select optgroup { background: #fff; color: #202124; }
input[type="checkbox"], input[type="radio"] { accent-color: #8ab700; }
input[type="file"]::file-selector-button {
  min-height: 34px;
  margin: 0 10px 0 0;
  padding: 0 13px;
  border: 1px solid #d9f38b;
  border-radius: 9px;
  background: #f4ffd6;
  color: #385600;
  font: 700 .78rem Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: #eaffad; border-color: #b8fd10; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .78; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "";
  float: right;
  width: 7px;
  height: 7px;
  margin: .38em .35em 0 .8em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
  opacity: .72;
}
details[open] > summary::after { transform: rotate(225deg); }
html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup { background: #1b2229; color: #edf2f6; }
html[data-theme="dark"] select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b8fd10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
}
html[data-theme="dark"] input[type="file"]::file-selector-button { border-color: #536d25; background: #2b351e; color: #ddf5a8; }
html[data-theme="dark"] input[type="file"]::file-selector-button:hover { background: #34451b; border-color: #b8fd10; }
@media (prefers-reduced-motion: reduce) { select, details > summary::after { transition: none !important; } }
