.page { animation: pageIn .22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } }

.compact-select { width: auto; min-width: 150px; padding: 10px 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.filters input { width: 220px; }

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.table-wrap::-webkit-scrollbar {
  height: 6px;
}
.table-wrap::-webkit-scrollbar-track {
  background: #091426;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: #21314a;
  border-radius: 99px;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 680px; }
.data-table th { color: var(--muted); font-weight: 600; text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #0c1728; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #21314a55; vertical-align: middle; }
.data-table tr:hover td { background: #7c5cff08; }

.table-title { max-width: 320px; font-weight: 600; }
.table-title small { display: block; color: var(--muted); direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; font-size: 11px; }

.action-button, .danger-button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.action-button:active, .danger-button:active { transform: scale(0.97); }
.action-button { color: #cfc6ff; background: #7c5cff22; }
.action-button:hover { background: #7c5cff38; }
.danger-button { color: #ff8493; background: #ff617420; }
.danger-button:hover { background: #ff617435; }

.store-actions { display: flex; gap: 6px; margin-top: 15px; flex-wrap: wrap; }
.store-actions button { flex: 1 1 calc(33.33% - 6px); min-height: 36px; padding: 7px 8px; font-size: 11px; white-space: nowrap; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.pager button { border: 1px solid var(--line); background: #0b1728; color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 13px; }
.pager span { color: var(--muted); font-size: 13px; }

.settings-panel { max-width: 760px; }
.toggle-row { flex-direction: row; align-items: center; justify-content: space-between; background: #09142699; border: 1px solid var(--line); padding: 13px 16px; border-radius: 12px; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

.stock-in { color: var(--cyan); font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }

.product-links { display: grid; gap: 5px; min-width: 120px; }
.product-links a { color: #66e4d5; text-decoration: none; font-size: 11px; font-weight: 700; }
.product-links a:hover { text-decoration: underline; }
.product-links span { color: #8fa2bb; font-size: 10px; }

.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.bulk-bar span { color: #8fa2bb; font-size: 12px; }
.bulk-bar button { margin: 0; }
.product-select, #selectPageProducts { width: 18px; height: 18px; accent-color: #7c5cff; cursor: pointer; }

.job-live { border-color: #31d7c780; box-shadow: 0 0 0 1px #31d7c722, 0 14px 35px #0004; }
.live-pulse { display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: #31d7c7; box-shadow: 0 0 0 0 #31d7c788; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px #31d7c700; } 100% { box-shadow: 0 0 0 0 #31d7c700; } }
.badge.stopping { color: #ffd36a; background: #ffd36a18; }
.job-meta strong { color: #fff; font-size: 14px; }

@media(max-width: 768px) {
  .panel-head { align-items: flex-start; gap: 12px; flex-direction: column; }
  .panel-head .filters { width: 100%; flex-direction: column; }
  .filters, .filters input, .compact-select { width: 100% !important; min-width: 0 !important; }
  .bulk-bar { gap: 6px; }
  .bulk-bar button { flex: 1 1 auto; padding: 9px 12px; font-size: 11px; }
  .store-actions button { flex: 1 1 calc(50% - 6px); }
}
