/* 农事任务与日程中心 2.0 */
.tsh-page {
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 72px;
}
.tsh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border, #d4e8d8);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(26, 77, 46, 0.06);
}
.tsh-toolbar .tsh-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--green, #1a4d2e);
  margin-right: auto;
  min-width: 160px;
}
.tsh-toolbar .btn {
  white-space: nowrap;
}
/* 工具栏：主操作为主色，其余统一浅底描边，避免金/灰混用 */
.tsh-toolbar .btn.btn-s.btn-sm {
  background: #f4faf6;
  color: #1a4d2e;
  border: 1px solid #c5dcc9;
}
.tsh-toolbar .btn.btn-s.btn-sm:hover {
  background: #e8f4ec;
  border-color: #2d7a4e;
}
.tsh-toolbar .btn.btn-p.btn-sm {
  border: 1px solid #143d28;
}
.tsh-view-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tsh-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dceee1;
  background: #fafcfa;
  font-size: 12px;
  font-weight: 700;
  color: #4a6354;
  cursor: pointer;
}
.tsh-chip.on {
  background: var(--green, #1a4d2e);
  color: #fff;
  border-color: #143d28;
}
.tsh-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1024px) {
  .tsh-grid {
    grid-template-columns: 1fr;
  }
  .tsh-side {
    order: -1;
  }
}
.tsh-card {
  background: #fff;
  border: 1px solid var(--border, #d4e8d8);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.tsh-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--green, #1a4d2e);
}
.tsh-today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.tsh-mini {
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faf8, #eef6f0);
  border: 1px solid #e0ebe3;
  text-align: center;
}
.tsh-mini .n {
  font-size: 22px;
  font-weight: 900;
  color: var(--green, #1a4d2e);
}
.tsh-mini .l {
  font-size: 11px;
  color: #7b8a80;
  margin-top: 4px;
}
.tsh-mini.warn .n {
  color: #c0392b;
}
.tsh-mini.ok .n {
  color: #2d7a4e;
}
.tsh-priority-strip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e0ebe3;
}
.tsh-priority-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fafcfa;
  border: 1px solid #edf3ee;
  margin-bottom: 8px;
}
.tsh-priority-item .meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.tsh-priority-item .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.tsh-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tsh-kcol {
  background: #f4f8f5;
  border-radius: 12px;
  padding: 10px;
  min-height: 120px;
  border: 1px solid #e0ebe3;
}
.tsh-kcol h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #555;
}
.tsh-task-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #e8ece9;
  font-size: 12px;
}
.tsh-task-card .t1 {
  font-weight: 800;
  color: #1a2e22;
  margin-bottom: 6px;
  line-height: 1.35;
}
.tsh-task-card.overdue {
  border-color: #f5c6c6;
  background: linear-gradient(180deg, #fff8f8, #fff);
}
.tsh-task-card.today {
  border-color: #b8d4c4;
  background: linear-gradient(180deg, #f3faf6, #fff);
}
.tsh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.tsh-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.tsh-cal-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
  text-align: center;
}
.tsh-cal-cell {
  padding: 6px 2px;
  border-radius: 8px;
  background: #f7faf8;
  cursor: pointer;
  border: 1px solid transparent;
}
.tsh-cal-cell:hover {
  border-color: var(--green, #1a4d2e);
}
.tsh-cal-cell.on {
  background: #1a4d2e;
  color: #fff;
}
.tsh-tl-day {
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #c9962a;
}
.tsh-tl-day h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--green, #1a4d2e);
}
.tsh-tl-row {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fafcfa;
  margin-bottom: 6px;
  font-size: 12px;
}
.tsh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.tsh-filter-bar .fi {
  min-height: 40px;
}
.tsh-mobile-tabs {
  display: none;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.tsh-mobile-tabs .tsh-mtab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #dceee1;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.tsh-mobile-tabs .tsh-mtab.on {
  background: var(--green, #1a4d2e);
  color: #fff;
  border-color: #143d28;
}
.tsh-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  flex-direction: column;
  gap: 8px;
}
.tsh-fab .btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 12px 16px;
}
@media (max-width: 768px) {
  .tsh-mobile-tabs {
    display: flex;
  }
  .tsh-fab {
    display: flex;
  }
  .tsh-toolbar .tsh-desktop-only {
    display: none;
  }
}
#drawerContent.tsh-task-drawer-wide {
  max-width: 900px;
  width: 96vw;
}
.tsh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
@media (max-width: 700px) {
  .tsh-form-grid {
    grid-template-columns: 1fr;
  }
}
.tsh-form-section {
  margin: 14px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #edf3ee;
  font-size: 13px;
  font-weight: 800;
  color: var(--green, #1a4d2e);
}
.tsh-form-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.tsh-side .tsh-rem {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fafcfa;
  border: 1px solid #edf3ee;
  margin-bottom: 8px;
  cursor: pointer;
}
.tsh-side .tsh-rem:hover {
  border-color: #c9962a;
}
.tsh-side .tsh-rem b {
  display: block;
  color: #1a2e22;
}
.tsh-muted {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}
.tsh-log-preview {
  font-size: 12px;
  color: #555;
  line-height: 1.45;
  max-height: 3.2em;
  overflow: hidden;
}
