/* Light-theme controls measured on the amoCRM contacts page. */
.general-dashboard .button-input {
  position: relative;
  display: inline-block;
  max-width: 100%;
  height: 36px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #e8eaeb;
  border-radius: 4px;
  background: #fff;
  color: #363b44;
  font: 700 14px/14px 'PT Sans', Arial, sans-serif;
  vertical-align: middle;
  white-space: nowrap;
  cursor: pointer;
}
.general-dashboard .button-input-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.general-dashboard .button-input:disabled {
  opacity: .6;
  cursor: default;
}
.general-dashboard .button-input_blue:not(:disabled) {
  border-color: #4077d6;
  background: #4c8bf7;
  color: #fff;
}
.general-dashboard .button-input_blue:not(:disabled):is(:hover, :focus-visible, :active) {
  background: #4d85e6;
}
.general-dashboard .button-input:not(.button-input_blue):not(:disabled):focus-visible {
  background-color: #f0f1f2;
}
.general-dashboard .control-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  user-select: none;
}
.general-dashboard .control-checkbox__body {
  position: relative;
  display: inline-flex;
  flex: none;
}
.general-dashboard .control-checkbox input[type=checkbox] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.general-dashboard .control-checkbox__helper {
  position: relative;
  width: 18px;
  height: 18px;
  box-sizing: content-box;
  border: 1px solid #e8eaeb;
  border-radius: 4px;
  background: white center / 12px 11px no-repeat;
  pointer-events: none;
}
.general-dashboard .control-checkbox__text {
  margin-inline-start: 7px;
  transform: translateY(1px);
  font: 400 15px/20px 'PT Sans', Arial, sans-serif;
}
.general-dashboard .control-checkbox input:checked + .control-checkbox__helper {
  background-image: url('/assets/icons/amo-checkbox-check.svg');
}
.general-dashboard input.text-input {
  height: 36px;
  padding: 8px 9px 7px;
  border: 1px solid #c5c5c5;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fff;
  color: #363b44;
  font: 400 15px/20px 'PT Sans', Arial, sans-serif;
}
.general-dashboard .cdt-field input.text-input { padding-inline-start: 28px; }
.general-dashboard .control--select--list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.general-dashboard .control--select .control--select--button:not(:disabled) {
  border-color: #e8eaeb;
}
/* In the KPI toolbar the flat trigger sits alongside the other metric toggles. */
.general-dashboard .basic-metrics .basic-metric[aria-pressed="false"] {
  color: #81868c;
}
.general-dashboard .basic-metric-select .control--select--button {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding-inline: 9px 25px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.general-dashboard .basic-metric-select .control--select--button::after { border-color: currentColor; }
.general-dashboard .basic-metric-select > select[hidden] { display: none; }
.general-dashboard .control--select--list--item[aria-disabled=true] {
  color: #b3b6bd;
  cursor: default;
}
.general-dashboard .control--select--list--item[hidden] { display: none; }
.general-dashboard .cal-search-chip {
  border-color: transparent;
  background: #f5f5f5;
}
.general-dashboard :is(button,input,select,textarea,a,summary,[tabindex]):is(:focus,:focus-visible,:active) {
  outline: none !important;
  box-shadow: none !important;
}
.general-dashboard :is(button,a,summary,[role=option],[role=tab]),
.general-dashboard :is(button,a,summary,[role=option],[role=tab]):is(:hover,:active,:focus) {
  text-decoration: none !important;
}
.general-dashboard .text-input:focus { border-color: #c5c5c5; }
.general-dashboard .text-input:focus-visible,
.general-dashboard :is(.control--select--list--item, .control--select--button, .menu-item, .row-link, .trade-tab, .period-choice,
  .tc-view-button, .tc-series-toggle, .tc-metric-button, .cal-icon-button, .tc-owner-link, .cdt-day, summary):focus-visible {
  background-color: #f3f3f3;
}
.general-dashboard .control-checkbox:has(input:focus-visible) { background-color: #f3f3f3; }
.general-dashboard .cal-icon-button,
.general-dashboard .cal-icon-button:is(:focus,:hover,:active) {
  border: 0;
  background-color: transparent;
}
.general-dashboard .cal-icon-button:is(:hover,:focus-visible) .cal-icon { opacity: .72; }

.general-dashboard .button-input.button-cancel {
  height: 30px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #92989b;
}
.general-dashboard .button-input.button-cancel:focus-visible { color: #363b44; }
.general-dashboard :is(.basic-settings-drawer, .basic-filter-panel) .control--select--button {
  --trade-selected: #363b44;
  border-width: 1px;
  border-radius: 4px;
  background: #fff;
  color: #363b44;
}
.general-dashboard .basic-settings-drawer .control--select--button { padding: 1px 25px 0 9px; }
.general-dashboard :is(.basic-settings-drawer, .basic-filter-panel) .control--select--list--item[aria-selected="true"] {
  color: #363b44;
}
