/* Photography task overview — dark only, shared colors from studio.css. */
.dashboard-stat.task-stat { display: grid; gap: 4px; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 18px 20px; }
.task-stat > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.task-stat strong { font-size: 32px; }
.task-stat small { font-size: 11px; color: var(--muted); font-weight: 400; }
.task-stat.selected { border-color: var(--accent); background: #3a3530; box-shadow: inset 0 2px var(--accent); }
.task-stat:focus-visible { outline: 2px solid var(--accent); }
.filter-grid.tablo-filters { grid-template-columns: 1.4fr 1fr 1fr; }
.task-board { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.task-columns, .task-row { display: grid; grid-template-columns: minmax(180px, 1.7fr) minmax(140px, 1.3fr) minmax(80px, .75fr) minmax(80px, .75fr) minmax(105px, .95fr) minmax(115px, 1fr) minmax(150px, 1.35fr); gap: 20px; align-items: center; padding: 24px; }
.task-columns { padding-top: 14px; padding-bottom: 14px; background: #2d2924; color: #d1c4b6; font-size: 12px; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row:hover { background: #2c2824; }
.task-project { display: grid; gap: 5px; min-width: 0; }
.task-project-name { background: transparent; color: var(--text); font-size: 16px; line-height: 1.4; text-align: left; padding: 0; min-height: 0; border-radius: 3px; overflow-wrap: anywhere; }
.task-project > span, .task-project small { color: var(--muted); font-size: 12px; }
.task-project small { font-size: 11px; }
.task-stage { display: grid; gap: 9px; justify-items: start; }
.stage-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; background: #3e3933; color: #e6e0d9; font-size: 12px; border-radius: 6px; white-space: nowrap; }
.stage-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stage-selection { background: #423c36; color: #e7e1da; }
.stage-review { background: #3e3933; color: #eee9e4; }
.task-stage small, .task-orders small { color: var(--muted); font-size: 11px; }
.task-metric { display: grid; text-align: left; gap: 9px; padding: 5px 0; background: transparent; color: var(--text); width: 100%; border-radius: 3px; min-height: 0; font-weight: 500; }
.task-metric:hover { color: var(--accent); }
.task-metric strong { font-size: 15px; font-weight: 600; }
.task-metric strong span { color: var(--muted); font-size: 12px; font-weight: 400; }
.task-meter { display: block; height: 4px; background: #4c453e; border-radius: 4px; overflow: hidden; width: 100%; }
.task-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.task-orders { display: grid; gap: 6px; align-self: center; }
.task-deadline { display: grid; gap: 5px; }
.task-deadline strong { font-size: 12px; font-weight: 500; }
.task-deadline small { font-size: 11px; color: var(--muted); }
.task-deadline.overdue strong, .task-deadline.overdue small { color: #ffb4a9; }
.task-deadline.soon strong, .task-deadline.soon small { color: #efd194; }
.task-next { background: #4b453e; color: #f4f1ed; border: 1px solid #6c6359; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font-size: 12px; padding: 10px 12px; }
.task-next:hover { background: #5c544b; }
.task-mobile-label { display: none; }
.task-footnote { font-size: 12px; color: var(--muted); margin: 0; max-width: 760px; }
.task-footnote + .scope-switch { margin-top: 0; }
.task-empty { text-align: center; padding: 45px 20px; }
.task-empty h3 { margin: 0; }
.task-board.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  align-items: stretch;
}
.project-cards .task-columns { display: none; }
.project-cards .task-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid #524b43;
  border-radius: 16px;
  box-shadow: 0 6px 20px #00000018;
  align-content: start;
  transition: border-color .15s, box-shadow .15s;
}
.project-cards .task-row:hover { border-color: #ab957c; box-shadow: 0 8px 26px #00000028; }
.project-cards .task-project { grid-column: 1 / 3; grid-row: 1; gap: 4px; }
.project-cards .task-project-name { font-size: 19px; letter-spacing: -.3px; }
.project-cards .task-stage { grid-column: 3; grid-row: 1; justify-self: stretch; align-self: start; display: grid; justify-items: end; text-align: right; gap: 6px; }
.project-cards .stage-badge { white-space: normal; text-align: left; }
.project-cards .workflow-edit { justify-self: end; }
.project-cards .task-mobile-label { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.project-cards .task-row > .task-metric, .project-cards .task-orders { grid-row: 2; padding-top: 12px; border-top: 1px solid var(--line); }
.project-cards .task-row > .task-metric { align-self: stretch; align-content: start; }
.project-cards .task-orders { align-self: stretch; align-content: start; }
.project-cards .task-metric { gap: 6px; }
.project-cards .task-metric strong { font-size: 19px; }
.project-cards .task-deadline { grid-column: 1; grid-row: 3; display: grid; align-content: center; gap: 3px; }
.project-cards .task-deadline .task-mobile-label { display: none; }
.project-cards .task-next { grid-column: 2 / 4; grid-row: 3; justify-self: stretch; width: 100%; min-width: 0; min-height: 40px; margin-top: 0; }
.project-cards .task-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 16px; }
@media (max-width: 600px) {
  .task-board.project-cards { gap: 18px; }
  .project-cards .task-row { padding: 16px; gap: 12px 10px; }
  .project-cards .task-mobile-label { font-size: 11px; }
}
@media (max-width: 1450px) {
  .task-columns { display: none; }
  .task-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; padding: 18px 22px; }
  .task-project { grid-column: 1 / 3; grid-row: 1; }
  .task-stage { grid-column: 3; grid-row: 1; justify-self: end; }
  .task-mobile-label { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
  .task-deadline { grid-column: 1; }
  .task-next { grid-column: 2 / 4; justify-self: end; min-width: 230px; }
  .task-deadline .task-mobile-label { display: none; }
  .task-stat small { display: none; }
  .dashboard-stat.task-stat { padding: 14px 18px; }
}
@media (max-width: 600px) {
  .dashboard-stat.task-stat { padding: 15px 12px; }
  .task-stat small { display: none; }
  .task-row { padding: 18px 14px; gap: 18px 12px; }
  .task-project { grid-column: 1 / 4; }
  .task-stage { grid-column: 1 / 4; grid-row: 2; justify-self: start; display: flex; align-items: center; flex-wrap: wrap; }
  .task-next { min-width: 0; width: 100%; }
  .task-mobile-label { font-size: 11px; }
  .task-deadline strong { font-size: 11px; }
  .filter-grid.tablo-filters { grid-template-columns: minmax(0, 1fr); }
}

/* Prioritize the next action; detailed counts stay available on demand. */
.project-cards .task-next { grid-column: 1 / -1; grid-row: 2; min-height: 64px; background: #3b332c; border-color: #76624e; text-align: left; }
.task-next small { display: block; font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.task-next strong { font-size: 14px; font-weight: 600; }
.project-cards .task-deadline { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.task-details { grid-column: 1 / -1; grid-row: 4; border-top: 1px solid var(--line); padding-top: 10px; }
.task-details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.task-details-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.project-cards .task-details .task-orders { grid-row: auto; padding-top: 0; border: 0; }
