.workday-calc-card-spaced {
  margin-top: 20px;
}

.workday-calc-actions {
  align-self: flex-end;
}

.workday-calc-quick-days {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn.workday-calc-quick-btn {
  background: #fef7e0;
  color: #946800;
  border: 1px solid #f0b90b;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
}

.workday-calc-quick-btn small {
  color: var(--text-primary);
}

.workday-calc-result {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #0ecb81 0%, #0aa66e 100%);
  border-radius: 12px;
  color: #fff;
  display: none;
}

.workday-calc-result-title {
  margin: 0 0 10px 0;
}

.workday-calc-result-main {
  font-size: 18px;
  font-weight: 600;
}

.workday-calc-result-meta {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.workday-calc-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn.workday-calc-clear-btn {
  background: transparent;
  color: #f6465d;
  border: 1px solid #f6465d;
  padding: 4px 12px;
  font-size: 12px;
}

.workday-calc-history-list {
  max-height: 300px;
  overflow-y: auto;
}

.workday-calc-history-placeholder {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
}

.workday-calc-history-list .workday-history-empty {
  min-height: 170px;
}

.workday-history-empty__logo {
  width: 56px;
  height: 56px;
}

.workday-calc-instructions {
  line-height: 2.5;
  color: var(--text-secondary);
}

.workday-calc-instructions-divider {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.workday-calc-instructions-section {
  margin-top: 12px;
}

.workday-calc-instructions-sublist {
  margin-top: 8px;
  margin-left: 30px;
  list-style: none;
}

.workday-calc-emphasis {
  color: #10b981;
  font-weight: 600;
}

.workday-calc-instructions-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: start;
}

.workday-calc-instructions-main {
  min-width: 0;
}

.workday-calc-instructions-compact {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.workday-calc-instructions-tip {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #f6df93;
  color: #7c5b00;
  font-size: 13px;
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.workday-calc-rules-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workday-calc-rule-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  padding: 10px 12px;
}

.workday-calc-rule-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.workday-calc-rule-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .workday-calc-instructions-layout {
    grid-template-columns: 1fr;
  }

  .workday-calc-rules-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .workday-calc-rules-panel {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .btn.workday-calc-quick-btn {
  background: rgba(240, 185, 11, 0.14);
  color: #F8D15B;
  border-color: rgba(240, 185, 11, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .btn.workday-calc-quick-btn:hover,
[data-theme="dark"] .btn.workday-calc-quick-btn:focus-visible {
  background: rgba(240, 185, 11, 0.22);
  border-color: #F0B90B;
  color: #FFE08A;
}

[data-theme="dark"] .workday-calc-quick-btn small {
  color: inherit;
}

[data-theme="dark"] .workday-calc-instructions-divider {
  border-top-color: rgba(240, 185, 11, 0.16);
}

[data-theme="dark"] .workday-calc-instructions-tip {
  background: rgba(240, 185, 11, 0.12);
  border-color: rgba(240, 185, 11, 0.32);
  color: #E7C96B;
}

[data-theme="dark"] .workday-calc-rule-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(240, 185, 11, 0.14);
}
