/* Shared editor fields for portal and admin profile panels. */
.editor {max-width:760px;margin-top:24px;}
.field {margin-bottom:18px;}
body .editor label {display:block;font-size:14px;font-weight:bold;color:#202622;margin-bottom:7px;}
.editor input:not([type=checkbox]),.editor select,.editor textarea {width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cdd1c7;border-radius:5px;background:#fff;font:inherit;}
.editor textarea {min-height:130px;resize:vertical;}
.editor select[multiple] {min-height:130px;}
.editor small {display:block;margin-top:5px;color:#626c5f;}

/* Shared Kundeoversigt arrow for every single-choice dropdown. */
body select:not([multiple]):not([size]),
body select:not([multiple])[size="1"] {
  appearance:none;
  padding-right:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E746C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:12px 8px;
}
@media(forced-colors:active) {
  body select:not([multiple]):not([size]),
  body select:not([multiple])[size="1"] {
    appearance:auto;
    background-image:none;
  }
}

/* Only explicit action buttons share Vis's style; compact controls stay local. */
:is(#drift-content, #content) :is(a.outline, a.primary, a.button, input[type="submit"], input[type="button"], input[type="reset"], .object-tools a, .submit-row a, button.outline, button.primary, .mileage-plate-input button) {
  font-size:14px;
  padding-inline:19px;
  white-space:nowrap;
  color:#202622;
  background:#fff;
  border:1px solid #cdd1c7;
  border-radius:5px;
  text-decoration:none;
  filter:none;
  cursor:pointer;
  transition:background-color .15s ease;
}
:is(#drift-content, #content) :is(a.outline, a.primary, a.button, .object-tools a, .submit-row a) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}
:is(#drift-content, #content) :is(a.outline, a.primary, a.button, input[type="submit"], input[type="button"], input[type="reset"], .object-tools a, .submit-row a, button.outline, button.primary, .mileage-plate-input button):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  color:#202622;
  background:#e0eddc;
  text-decoration:none;
  filter:none;
}
:is(#drift-content, #content) :is(button.outline, button.primary, .mileage-plate-input button, input[type="submit"], input[type="button"]):disabled {
  opacity:.5;
  cursor:not-allowed;
}
@media(prefers-reduced-motion:reduce) {
  :is(#drift-content, #content) :is(button.outline, button.primary, .mileage-plate-input button, a.outline, a.primary, a.button) {transition:none;}
}

/* Equal outer height for ordinary fields and action buttons, regardless of font. */
:is(#drift-content, #content) :is(
  input:not([type]), input[type="text"], input[type="number"], input[type="email"],
  input[type="tel"], input[type="url"], input[type="password"], input[type="search"],
  input[type="date"], input[type="time"], input[type="datetime-local"],
  select:not([multiple]):not([size]), select:not([multiple])[size="1"],
  button.outline, button.primary, .mileage-plate-input button,
  a.outline, a.primary, a.button, input[type="submit"], input[type="button"],
  input[type="reset"], .object-tools a, .submit-row a
) {
  box-sizing:border-box;
  height:40px;
  min-height:40px;
  padding-top:8px;
  padding-bottom:8px;
  line-height:22px;
}

/* Shared compact X for task and catalogue dialogs; ordinary actions keep 19px. */
:is(#drift-content, #content) button.task-popup-close {
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  min-width:40px;
  padding:8px;
  font-size:14px;
}

/* Match Gem kørsel's 14px on text actions; compact icon controls keep their size. */
:is(#drift-content, #content) :is(.panel-heading button, .actions > a, .mileage-text-button, .notes-cancel-selection) {font-size:14px;}
.mileage-list td:last-child a {font-size:14px;}

.customer-economic-create{justify-content:flex-end;margin-bottom:20px}

input[type=number]{appearance:textfield;-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
