/* Shared controls for the store product, report and specials workspaces. */
.store-controls .header-actions {
  align-items: stretch;
  gap: 10px;
}
.store-controls .header-actions a,
.store-controls .store-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #a9bdd3;
  border-radius: 10px;
  background: #fff;
  color: #143c6e;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 2px 3px #143c6e08;
}
.store-controls button {
  min-height: 48px;
  border: 1px solid transparent;
  line-height: 1.5;
}
.store-controls button.secondary {
  border-color: #b7c9da;
  color: #234968;
  background: #e9f0f6;
}
.store-controls :is(button, .header-actions a, .store-action, summary) {
  touch-action: manipulation;
  overflow-wrap: anywhere;
}
.store-controls .module-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #143c6e;
  color: #fff;
}
.store-controls #moleq-workspace summary {
  border: 1px solid #b4c9c0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.store-controls #moleq-workspace[open] summary { background: #e3eee8; }
.store-controls :is(button, .header-actions a, .store-action, summary):focus-visible {
  outline: 3px solid #2586c7;
  outline-offset: 3px;
}
@media (hover: hover) {
  .store-controls :is(.header-actions a, .store-action):hover { background: #edf4fc; border-color: #527da7; }
  .store-controls button:not(:disabled):hover { box-shadow: 0 0 0 2px #143c6e30; }
}
.store-controls :is(button, .header-actions a, .store-action, summary):not(:disabled):active {
  box-shadow: inset 0 2px 5px #143c6e40;
  filter: brightness(.92);
}
.store-controls button:disabled {
  opacity: 1;
  background: #e3e8ee;
  color: #657487;
  border-color: #c6d0dc;
  cursor: not-allowed;
  box-shadow: none;
}
.store-controls button[aria-busy="true"] { cursor: wait; }
.store-controls button[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: .85em;
  height: .85em;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -.1em;
  animation: store-control-spin .8s linear infinite;
}
@keyframes store-control-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .store-controls button[aria-busy="true"]::before { animation: none; }
}
@media (max-width: 700px) {
  .store-controls .header-actions { width: 100%; }
  .store-controls .header-actions > :is(a, button) {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .store-controls .toolbar form > :is(input, select) { min-width: 0; max-width: 100%; }
  .store-controls .toolbar form { flex-basis: 100%; }
  .store-controls .toolbar form > input { flex: 1 0 100%; }
  .store-controls #rows .actions .store-action { flex: 1 1 120px; font-size: 13px; }
  .store-controls .modules { grid-template-columns: minmax(0, 1fr); }
  .store-controls dialog { max-height: 90dvh; scroll-padding: 16px; }
}
