/* Minimal styles for WERKHAUS Word & Excel taskpane */

:root {
  --wk-primary: #0078d4;
  --wk-primary-contrast: #ffffff;
  --wk-primary-dark: #005a9e;
  --wk-border-soft: #d6dbe2;
  --wk-border-faint: #e2e6eb;
  --wk-surface: #ffffff;
  --wk-surface-tint: #f7f8fa;
  --wk-surface-muted: #fbfbfc;
  --wk-text-muted: #5f6872;
  --wk-text-soft: #6e7781;
  --wk-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.018);
  --wk-shadow-panel: 0 1px 3px rgba(15, 23, 42, 0.03);
}
body.wk-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  padding: 0.875rem 0.875rem 1rem;
  color: #1f2328;
  background: #f3f2f1;
}
.wk-app {
  max-width: 960px;
  margin: 0 auto;
}
.wk-top-section {
  margin-bottom: 0.75rem;
}
.wk-header {
  margin-bottom: 0.1875rem;
}
.wk-branding {
  width: 100%;
  padding: 0.5625rem 0 0.8125rem;
  box-sizing: border-box;
  border-bottom: 1px solid var(--wk-border-soft);
  background: transparent;
  box-shadow: none;
}
.wk-title-group {
  padding-top: 0;
}
.wk-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}
.wk-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--wk-text-muted);
  max-width: 18rem;
}
.wk-panel {
  margin: 0 0 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--wk-border-faint);
  border-radius: 6px;
  background: var(--wk-surface);
  box-shadow: var(--wk-shadow-panel);
}
.wk-panel-top {
  margin-top: 0;
  padding-top: 0.8125rem;
  border-top: 0;
}
.wk-toolbar {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
}
.wk-toolbar > * + * {
  margin-top: 0.75rem;
}
.wk-toolbar-row {
  padding: 0.125rem 0 0;
}
.wk-toolbar-filters {
  padding-top: 0.75rem;
  border-top: 1px solid var(--wk-border-faint);
}
.wk-file-row,
.wk-meta-row {
  display: block;
}
.wk-file-row > *,
.wk-meta-row > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  margin-bottom: 0.375rem;
}
.wk-file-row > *:last-child,
.wk-meta-row > *:last-child {
  margin-right: 0;
}
.wk-meta-row label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--wk-text-muted);
}
.wk-file-row button,
.wk-meta-row input,
.wk-meta-row select {
  min-height: 2rem;
}
.wk-meta-row input,
.wk-meta-row select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--wk-border-soft);
  border-radius: 4px;
  background: var(--wk-surface-muted);
  color: #1f2328;
  box-sizing: border-box;
}
.wk-meta-row input:hover,
.wk-meta-row select:hover {
  border-color: #c4cad2;
}
.wk-meta-row input:focus,
.wk-meta-row input:focus-visible,
.wk-meta-row select:focus,
.wk-meta-row select:focus-visible {
  outline: none;
  border-color: #98a3af;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(43, 87, 154, 0.12);
}
#variableSearchInput {
  min-width: 10rem;
}
#variableFilterSelect {
  min-width: 8.5rem;
}
.wk-btn {
  padding: 0.4rem 0.7rem;
  margin-right: 0.5rem;
  border: 1px solid #c9ced6;
  border-radius: 4px;
  background: #ffffff;
  color: #1f2328;
  font-size: 0.78rem;
  line-height: 1.2;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.03);
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease,
    color 120ms ease;
  cursor: pointer;
}
.wk-btn:hover,
.wk-action-btn:hover {
  background: #f5f6f7;
  border-color: #b8bec7;
}
.wk-btn:focus,
.wk-btn:focus-visible,
.wk-action-btn:focus,
.wk-action-btn:focus-visible {
  outline: none;
  border-color: #7f8791;
  box-shadow: 0 0 0 2px rgba(31, 35, 40, 0.14);
}
.wk-btn:disabled,
.wk-action-btn:disabled {
  opacity: 0.56;
  cursor: default;
  box-shadow: none;
}
.wk-feedback {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wk-border-faint);
}
.wk-btn-primary {
  background: #262a2f;
  color: #ffffff;
  border-color: #262a2f;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.wk-btn-primary:hover {
  background: #1f2328;
  border-color: #1f2328;
}
.wk-file-status {
  margin-top: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--wk-text-muted);
}
.wk-status {
  margin-top: 0.375rem;
  color: #0078d4;
}
.wk-section-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--wk-border-faint);
}
.wk-section-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1f2328;
}
#variablesList > * + * {
  margin-top: 0.625rem;
}
.wk-var-card {
  border: 1px solid var(--wk-border-faint);
  border-radius: 6px;
  background: var(--wk-surface-tint);
  padding: 0.75rem 0.8125rem;
}
.wk-var-head {
  font-size: 0.81rem;
  line-height: 1.45;
  color: #46505a;
}
.wk-var-head > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3125rem;
  margin-bottom: 0.1875rem;
}
.wk-var-head > *:last-child {
  margin-right: 0;
}
.wk-var-name {
  font-weight: 700;
  color: #1f2328;
}
.wk-var-sep {
  color: #a0a8b2;
}
.wk-status-up {
  color: #107c10;
  font-weight: 700;
}
.wk-status-old {
  color: #d83b01;
  font-weight: 700;
}
.wk-status-unused {
  color: var(--wk-text-soft);
  font-weight: 700;
}
.wk-var-preview {
  margin-top: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid #e3e7ec;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
}
.wk-options-row {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid #e4e8ed;
}
.wk-option {
  display: inline-block;
  margin-right: 0.75rem;
  margin-bottom: 0.375rem;
  font-size: 0.76rem;
  color: #58626c;
  white-space: nowrap;
}
.wk-option input {
  margin-right: 0.25rem;
}
.wk-actions {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid #e4e8ed;
}
.wk-action-btn {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.375rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #c9ced6;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.76rem;
  line-height: 1.2;
  color: #1f2328;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.03);
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease,
    color 120ms ease;
  cursor: pointer;
}
.wk-action-btn-primary {
  background: #262a2f;
  color: #ffffff;
  border-color: #262a2f;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.wk-action-btn-primary:hover {
  background: #1f2328;
  border-color: #1f2328;
}
.wk-icon {
  display: inline-block;
  margin-right: 0.25rem;
  line-height: 1;
}
.wk-missing-block {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.8125rem;
  border: 1px solid rgba(216, 59, 1, 0.2);
  border-radius: 6px;
  background: #fff7f4;
}
.wk-missing-title {
  margin-bottom: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d83b01;
}
.wk-missing-list {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5a2d21;
}
.wk-empty-filter {
  padding: 0.75rem 0.8125rem;
  border: 1px dashed #cfd5dc;
  border-radius: 6px;
  background: #fafbfc;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--wk-text-muted);
}

.wk-visually-hidden-file {
  display: none;
}

@media (max-width: 480px) {
  body.wk-body {
    padding: 0.625rem;
  }

  .wk-top-section {
    margin-bottom: 0.625rem;
  }

  .wk-branding {
    padding: 0.4375rem 0 0.5625rem;
    max-width: calc(100vw - 1.5rem);
  }

  .wk-title {
    font-size: 0.92rem;
  }

  .wk-subtitle {
    font-size: 0.69rem;
  }

  .wk-panel {
    padding: 0.625rem;
  }

  .wk-panel-top {
    padding-top: 0.5rem;
  }

  .wk-toolbar > * + * {
    margin-top: 0.5rem;
  }

  .wk-toolbar-filters {
    padding-top: 0.625rem;
  }

  .wk-feedback {
    margin-top: 0.5rem;
    padding-top: 0.4375rem;
  }

  .wk-var-card {
    padding: 0.6875rem;
  }
}
