/* ===== 账单认领系统 - 企微内嵌样式 ===== */

:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --danger: #fa5151;
  --warning: #ffc300;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-secondary: #999999;
  --border: #e5e5e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== 头部 ===== */
.header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 17px;
  font-weight: 600;
}

.header .user-info {
  font-size: 13px;
  opacity: 0.9;
}

/* ===== 统计卡片 ===== */
.stats-bar {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  overflow-x: auto;
}

.stat-card {
  flex: 1;
  min-width: 80px;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.stat-card.pending .stat-value { color: var(--danger); }
.stat-card.total .stat-value { color: var(--text); }
.stat-card.done .stat-value { color: var(--primary); }

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex;
  padding: 0 16px 8px;
  gap: 8px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 账单列表 ===== */
.bill-list {
  padding: 0 16px 80px;
}

.bill-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
}

.bill-card:active {
  transform: scale(0.98);
}

.bill-card .bill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.bill-card .supplier {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.bill-card .amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
  white-space: nowrap;
  margin-left: 8px;
}

.bill-card .bill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.bill-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.bill-card-actions .btn {
  width: auto;
  margin-top: 0;
  padding: 6px 14px;
  font-size: 13px;
}

.bill-card .status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-claimed { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }

.admin-status-wrap {
  padding: 12px 16px 72px;
}

.admin-cache-actions {
  margin-bottom: 12px;
}

.admin-cache-refresh-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 12px;
  text-align: center;
}

.admin-cache-refresh-btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.admin-cache-result {
  display: none;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  word-break: break-word;
}

.admin-cache-result.pending {
  display: block;
  background: #f3f4f6;
  color: #555;
}

.admin-cache-result.success {
  display: block;
  background: #ecfdf5;
  color: #1b7f3a;
}

.admin-cache-result.error {
  display: block;
  background: #fde2e2;
  color: #b42318;
}

.admin-health-banner {
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-health-banner.ok {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.admin-health-banner.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.admin-health-title {
  font-size: 17px;
  font-weight: 700;
}

.admin-health-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.admin-status-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-status-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

.admin-status-card.compact {
  margin-bottom: 0;
}

.admin-status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-status-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-status-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.admin-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #f2f2f2;
  font-size: 13px;
}

.admin-status-row:first-of-type {
  border-top: 0;
}

.admin-status-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.admin-status-text {
  text-align: right;
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.ok {
  background: #e8f5e9;
  color: #1b7f3a;
}

.status-pill.warn {
  background: #fff3cd;
  color: #8a5a00;
}

.status-pill.bad {
  background: #fde2e2;
  color: #b42318;
}

.unmatched-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unmatched-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f2f2f2;
  font-size: 13px;
}

.unmatched-item:first-child {
  border-top: 0;
}

.unmatched-name {
  font-weight: 600;
}

.unmatched-meta {
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.unmatched-person-card {
  border: 1px solid #fde2e2;
  background: #fffafa;
  border-radius: 10px;
  padding: 10px;
}

.unmatched-person-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.unmatched-bills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unmatched-bill {
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.unmatched-bill-main {
  min-width: 0;
}

.unmatched-bill-title {
  font-size: 13px;
  font-weight: 700;
}

.unmatched-bill-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.unmatched-bill-side {
  text-align: right;
  flex-shrink: 0;
}

.unmatched-bill-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
}

.admin-empty-ok {
  background: #f6fffb;
  border: 1px solid #d8f3e3;
  color: #1b7f3a;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.admin-hero {
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-hero.ok {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.admin-hero.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.admin-hero-title {
  font-size: 18px;
  font-weight: 700;
}

.admin-hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-pill.ok {
  background: #e8f5e9;
  color: #1b7f3a;
}

.admin-pill.bad {
  background: #fde2e2;
  color: #b42318;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.admin-metric {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid #d1d5db;
}

.admin-metric.ok {
  border-left-color: var(--primary);
}

.admin-metric.bad {
  border-left-color: var(--danger);
}

.admin-metric-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.admin-section {
  margin-bottom: 16px;
}

.admin-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  margin: 0 2px 8px;
}

.admin-section-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: -4px 2px 8px;
}

.admin-work-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid #d1d5db;
}

.admin-work-card.bad {
  border-left-color: var(--danger);
}

.admin-work-card.manual {
  border-left-color: #f59e0b;
}

.admin-work-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-work-name {
  font-size: 17px;
  font-weight: 700;
}

.admin-work-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.admin-work-count {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.admin-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.admin-work-tags span {
  background: #f5f5f5;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  color: #666;
}

.admin-work-tags span.bad {
  background: #fde2e2;
  color: #b42318;
  font-weight: 700;
}

.admin-issue-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid var(--danger);
}

.admin-issue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-issue-name {
  font-size: 18px;
  font-weight: 700;
}

.admin-issue-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.admin-issue-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  background: #fde2e2;
  border-radius: 999px;
  padding: 3px 9px;
  align-self: flex-start;
  white-space: nowrap;
}

.admin-issue-total {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
}

.admin-push-message {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff7ed;
  color: #92400e;
  font-size: 12px;
  word-break: break-word;
}

.admin-bill-rows {
  margin-top: 10px;
  border-top: 1px solid #f2f2f2;
}

.admin-bill-row {
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}

.admin-bill-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-bill-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-bill-title {
  font-size: 14px;
  font-weight: 700;
}

.admin-bill-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.admin-bill-amount {
  color: var(--danger);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-bill-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.admin-manual-mark {
  color: #92400e;
  font-weight: 700;
}

.admin-link-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.admin-run-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-run-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.admin-run-dot.ok {
  background: var(--primary);
}

.admin-run-dot.bad {
  background: var(--danger);
}

.admin-run-main {
  flex: 1;
  min-width: 0;
}

.admin-run-title {
  font-size: 14px;
  font-weight: 700;
}

.admin-run-detail {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.admin-run-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 360px) {
  .admin-status-summary {
    grid-template-columns: 1fr;
  }
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }
  .admin-hero {
    align-items: flex-start;
  }
  .unmatched-bill {
    flex-direction: column;
  }
  .unmatched-bill-side {
    text-align: left;
  }
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 15px;
}

/* ===== 底部按钮 ===== */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(7,193,96,0.4);
  cursor: pointer;
  z-index: 99;
}

/* ===== 详情弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s;
}

.modal-sheet {
  background: var(--card-bg);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 16px 32px;
  animation: slideUp 0.25s;
}

.modal-sheet h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-sheet .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.modal-sheet .detail-label {
  color: var(--text-secondary);
}

.modal-sheet .detail-value {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.reassign-sheet {
  padding-top: 16px;
}

.reassign-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.reassign-modal-head h2 {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.reassign-close-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #555;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.reassign-summary {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.reassign-summary-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.reassign-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.reassign-sheet select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.reassign-sheet select:focus {
  border-color: var(--primary);
}

.reassign-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reassign-modal-actions .btn {
  margin-top: 0;
}

/* ===== ERP 搜索结果 ===== */
.erp-search-box {
  margin: 12px 0;
}

.erp-search-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.erp-search-box input:focus {
  border-color: var(--primary);
}

.erp-result-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.erp-result-item:hover, .erp-result-item.selected {
  border-color: var(--primary);
  background: #f0fdf5;
}

.erp-result-item .erp-id {
  font-size: 12px;
  color: var(--text-secondary);
}

.erp-result-item .erp-name {
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}

/* ===== 操作按钮 ===== */
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity 0.2s;
}

.btn:active { opacity: 0.8; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 加载 ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 300;
  animation: fadeIn 0.2s;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 导入页面 ===== */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.import-help {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.6;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.tab-item {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}
:root { --feedback-border: #dbe3df; }
.feedback-section { margin-top: 20px; border-top: 1px solid var(--feedback-border); padding-top: 16px; }
.feedback-section h3, .feedback-dialog h3, .feedback-card h3 { font-size: 16px; margin: 0 0 10px; }
.feedback-source, .feedback-verification, .feedback-count { font-size: 12px; color: #56645f; overflow-wrap: anywhere; }
.feedback-options { display: flex; gap: 8px; padding: 0; margin: 14px 0; border: 0; }
.feedback-options label { flex: 1; display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px; border: 1px solid var(--feedback-border); border-radius: 6px; }
.feedback-options label:has(:checked) { border-color: #07834c; background: #edf8f1; }
.feedback-field { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
.feedback-field input, .feedback-field textarea, .feedback-toolbar input, .feedback-toolbar select { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--feedback-border); border-radius: 6px; font: inherit; background: white; color: #26352f; box-sizing: border-box; }
.feedback-field textarea { resize: vertical; }
.feedback-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.feedback-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 20px; border: 1px solid var(--feedback-border); border-radius: 8px; box-sizing: border-box; overflow: auto; }
.feedback-dialog::backdrop { background: rgba(0,0,0,.35); }
.feedback-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.feedback-dialog-head h2 { font-size: 18px; margin: 0; }
.feedback-dialog-head button { width: 40px; height: 40px; border: 0; background: #f3f5f4; font-size: 24px; border-radius: 6px; }
.feedback-dialog details { margin-top: 16px; }
#feedback-history { padding-left: 20px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#feedback-error, .feedback-error { color: #b3261e; font-size: 13px; overflow-wrap: anywhere; }
.feedback-toolbar { padding: 16px; display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.feedback-toolbar label { display: grid; gap: 6px; font-size: 13px; flex: 1 1 180px; }
.feedback-toolbar .btn, .feedback-pagination .btn { min-height: 42px; margin: 0; }
.feedback-count { margin: 0 16px 12px; }
.feedback-pagination { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.feedback-card { cursor: default; overflow-wrap: anywhere; }
.feedback-card p { margin: 8px 0; font-size: 13px; white-space: pre-wrap; }
.feedback-tag { display: inline-block; font-size: 12px; padding: 4px 8px; background: #edf1ef; border-radius: 4px; }
.feedback-yes { background: #ffeceb; color: #aa2924; }
.feedback-pending { background: #fff4d6; color: #725500; }
.feedback-no { background: #e9f8ef; color: #11673d; }
#bill-page .header { flex-wrap: wrap; gap: 8px; }
#bill-page .user-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#go-feedback-btn { border: 0; color: inherit; font: inherit; cursor: pointer; margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.assignment-actions[hidden] { display: none; }
.feedback-field[hidden], .feedback-section[hidden] { display: none; }
.feedback-import-option { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.feedback-import-option input { width: 18px; height: 18px; flex: 0 0 auto; }
.import-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.import-actions .btn { width: auto; flex: 0 0 auto; white-space: nowrap; }
.import-actions #import-submit-btn { flex: 1 1 180px; }
