.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--muted);
}

th {
  color: var(--muted-foreground);
  font-size: 12px;
  text-transform: uppercase;
}

.clock-time {
  display: inline-flex;
  min-width: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--primary);
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.clock-time.empty {
  background: var(--muted);
  color: var(--muted-foreground);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 900;
}

.badge.blue { background: #dbeafe; color: #1d4ed8; }
.badge.emerald { background: #d1fae5; color: #047857; }
.badge.amber { background: #fef3c7; color: #b45309; }
.badge.red { background: #fee2e2; color: #b91c1c; }
.badge.dark { background: #e5e7eb; color: #111827; }

.task-row td {
  vertical-align: middle;
}

.task-title-cell strong {
  display: inline-block;
  max-width: 360px;
}

.task-due {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.task-due strong {
  font-size: 14px;
}

.task-due small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
}

.task-due.empty {
  color: var(--muted-foreground);
  font-weight: 800;
}

.task-action-cell {
  width: 250px;
}

.task-status-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.task-status-form .custom-select {
  min-width: 138px;
  flex: 1 1 138px;
}

.task-status-form .custom-select-button {
  min-height: 38px;
  padding: 8px 10px;
}

.task-status-form .button {
  flex: 0 0 auto;
}

.log-action-cell {
  width: 96px;
}

.log-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.log-action-cell .badge {
  white-space: nowrap;
}

.log-time-with-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.log-photo-thumb {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 1px var(--border), 0 8px 18px rgb(15 23 42 / 0.14);
}

.log-photo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.notice {
  border-radius: 8px;
  padding: 11px 13px;
  font-weight: 800;
}

.notice.error { background: #fee2e2; color: #b91c1c; }
.notice.success { background: #d1fae5; color: #047857; }

.empty {
  border-radius: 8px;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 22px;
  text-align: center;
}
