button,
select,
input[type='submit'],
input[type='reset'],
input[type='button'],
input[type='checkbox'],
input[type='range'],
input[type='radio'] {
  cursor: pointer;
}

input:not([type='checkbox']):not([type='radio']),
select {
  display: block;
}

input,
button,
textarea,
select {
  /*  field-sizing:content; nerdy.dev */
  color: var(--form-text);
  background-color: var(--background-body);
  font-family: inherit;
  font-size: inherit;
  margin-right: 0;
  margin-bottom: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  border: var(--border) 2px solid;
}

input[type='color'] {
  min-height: 2rem;
  padding: 8px;
  cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
  height: 1em;
  width: 1em;
}

input[type='radio'] {
  border-radius: 100%;
}

input {
  vertical-align: top;
}

label {
  vertical-align: middle;
  margin-bottom: 4px;
  display: inline-block;
}

fieldset {
  text-align: left;
}

input:not([type='checkbox']):not([type='radio']),
input[type='range'],
select,
button,
textarea {
  -webkit-appearance: none;
}

textarea {
  display: block;
  margin-right: 0;
  box-sizing: border-box;
  resize: vertical;
}

textarea:not([cols]) {
  width: 100%;
}

textarea:not([rows]) {
  min-height: 40px;
  height: 140px;
}

select {
  background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat;
/*  padding-right: 35px;*/
}

/*select::-ms-expand {
  display: none;
}*/

select[multiple] {
  padding-right: 10px;
  background-image: none;
  overflow-y: auto;
}

button,
input[type='submit'],
input[type='reset'],
input[type='button'] {
  padding-right: 30px;
  padding-left: 30px;
}

button:hover,
input[type='submit']:hover,
input[type='reset']:hover,
input[type='button']:hover {
  background: var(--button-hover);
}

input:focus,
select:focus,
button:focus,
textarea:focus {
  box-shadow: 0 0 0 2px var(--focus);
}

input[type='checkbox']:active,
input[type='radio']:active,
input[type='submit']:active,
input[type='reset']:active,
input[type='button']:active,
input[type='range']:active,
button:active {
  transform: translateY(2px);
}

input:disabled,
select:disabled,
button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

::placeholder {
  color: var(--form-placeholder);
}

fieldset {
  border: 1px var(--focus) solid;
  border-radius: 6px;
  margin: 0;
  margin-bottom: 10px;
  padding: 5px 10px;
}

legend {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--gapmed-light-blue);
}

select#year, select#month, select#week, select#day { width:85px; }

select#excl_clinic_ids {
  width:100%;
  option {font-size:12px;text-transform:capitalize;}
  option[selected='selected'] {
    text-decoration: line-through;
    background:none;color: gray;
  }
  &::focus option {background:none;}
}
small.excl {cursor:pointer;color:var(--gapmed-light-blue);}
small.excl:hover {text-decoration:underline;}

div#filter input[type="date"], div#filter select { box-shadow: none;}

div.mass-mail-dashboard { display:grid;grid-template-columns:2fr 3fr;gap:5px;}

fieldset.form-errors { 
  color:red;
  border: 1px red solid;
  > legend {color: red;}
  > ul { padding-left:15px; margin:0;}
}

fieldset.compensation-rate {
  border-color:var(--gapmed-light-lilac);
  > legend {color:var(--gapmed-lilac);}
  > section {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:5px;
  }
}

fieldset.extra-compensation {
  border-color:orange;
  > legend {color:darkorange;}
  > section {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:5px;
  }
}

fieldset.reward-rate {
  border-color:var(--gapmed-light-blue);
  > section {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:5px;
  }
}

fieldset#reward-history {
  border-color:var(--gapmed-light-blue);
}

fieldset.extra-reward {
  border-color:lightblue;
  > legend {color:darkblue;}
  > section {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:5px;
  }
}

button.report { line-height:12px; }
button.report div {width:90px;}
button.csv, button.mail, button.pdf {
  color: var(--links);
  margin:0;
  padding:0;
  border:none;
  background:none;
  box-shadow: none;
}
button.csv:hover, button.mail:hover, button.pdf:hover {color:var(--gapmed-pink);}

fieldset#privileges {
  > section article { display:flex; }
  > section button.plain { color: orange; }
  > section.active button.plain { color: green; }
} 
button.plain:hover svg { color: var(--gapmed-pink); }
button.plain.needs-update svg { color: var(--gapmed-lilac); }
section:has(div.card form) h3.title {margin-left:1em;line-height:.95;}
#discount_ratio {padding:2px;font-size:14px;margin:4px 0 0;border-width:1px;border-radius:0;margin-top:0;}

form.q {
  display:flex;
  gap:5px;
  input[type='submit'] { font-size:10px; }
  input { padding:1px 2px;text-align:center; color: #343434; }
}