/* Kendo-specific visual overrides live here so they can be replaced later by
   Theme Builder output without mixing vendor patches into the core Wee theme. */

.k-grid .k-command-cell {
  white-space: nowrap;
  overflow: visible;
}

.k-grid .k-command-cell .k-button,
.k-grid .k-command-cell .k-grid-custom {
  margin: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.k-grid .k-command-cell .k-button + .k-button,
.k-grid .k-command-cell .k-button + .k-grid-custom,
.k-grid .k-command-cell .k-grid-custom + .k-button,
.k-grid .k-command-cell .k-grid-custom + .k-grid-custom {
  margin-left: 4px;
}

.k-grid .k-command-cell .wee-row-btn,
.k-grid .k-command-cell .wee-row-more-btn {
  box-shadow: none;
  text-decoration: none;
  vertical-align: middle;
}

.k-grid .k-command-cell .wee-row-btn {
  min-width: 0;
}

.k-grid .k-command-cell .wee-row-btn:hover,
.k-grid .k-command-cell .wee-row-btn:focus,
.k-grid .k-command-cell .wee-row-more-btn:hover,
.k-grid .k-command-cell .wee-row-more-btn:focus {
  text-decoration: none;
}

.k-grid .k-command-cell .wee-row-more-btn {
  min-width: 28px;
  padding: 0;
}

.k-grid .k-command-cell .wee-row-btn .k-icon,
.k-grid .k-command-cell .wee-row-more-btn .k-icon,
.k-grid .k-command-cell .wee-row-btn .fa-solid,
.k-grid .k-command-cell .wee-row-more-btn .fa-solid {
  font-size: 14px;
  line-height: 1;
}

.k-grid .k-command-cell .wee-row-btn .k-button-text,
.k-grid .k-command-cell .wee-row-more-btn .k-button-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.k-grid .k-command-cell .wee-row-more-btn .k-button-text {
  display: none;
}

.k-grid .k-command-cell .wee-row-btn.danger {
  background: var(--wee-error-light);
  border-color: transparent;
  color: var(--wee-error);
}

.k-grid .k-command-cell .wee-row-btn.danger:hover,
.k-grid .k-command-cell .wee-row-btn.danger:focus {
  background: var(--wee-error);
  color: var(--wee-white);
}

/* JSON textareas (class="wee-json-input"): monospace, no soft-wrap, so pretty-printed
   JSON stays readable. Paired with the wee-theme.js formatter (format on load + blur). */
textarea.wee-json-input,
.k-textarea textarea.wee-json-input {
  font-family: 'DM Mono', 'SF Mono', Consolas, 'Courier New', monospace !important;
  font-size: 12.5px;
  line-height: 1.5;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
  min-height: 120px;
}
