/* =========================================
   作業報告一覧画面
========================================= */

.daily-work-reports-page {
  max-width: 100%;
}

.daily-work-reports-hero-card {
  margin-bottom: 20px;
}

.daily-work-reports-filter-card {
  margin-bottom: 16px;
}

.daily-work-reports-filter-header {
  margin-bottom: 12px;
}

.daily-work-reports-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.daily-work-reports-date-group {
  min-width: 260px;
}

.daily-work-reports-date-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-work-reports-date-control input[type="date"] {
  width: 145px;
  flex: 0 0 145px;
}

.daily-work-reports-date-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.daily-work-reports-date-button {
  min-width: 52px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-date-button.is-active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.daily-work-reports-filter-group {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.daily-work-reports-filter-group label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.daily-work-reports-filter-group input,
.daily-work-reports-filter-group select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.daily-work-reports-keyword-group {
  min-width: 280px;
  flex: 1 1 280px;
}

.daily-work-reports-checkbox-group {
  min-width: 150px;
}

.daily-work-reports-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.daily-work-reports-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.daily-work-reports-reload-button {
  min-width: 120px;
  min-height: 42px;
}

.daily-work-reports-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.daily-work-reports-list-card {
  margin-bottom: 24px;
}

.daily-work-reports-department-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.daily-work-reports-department-section:last-child {
  margin-bottom: 0;
}

.daily-work-reports-department-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.daily-work-reports-department-header h3 {
  margin: 0;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 900;
}

.daily-work-reports-department-header p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.daily-work-reports-table-wrap {
  overflow-x: auto;
  background: #ffffff;
}

.daily-work-reports-table {
  width: 100%;
  min-width: 1660px;
  border-collapse: separate;
  border-spacing: 0;
}

.daily-work-reports-table th,
.daily-work-reports-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}

.daily-work-reports-table th:last-child,
.daily-work-reports-table td:last-child {
  border-right: none;
}

.daily-work-reports-table tr:last-child td {
  border-bottom: none;
}

.daily-work-reports-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-cell-site {
  min-width: 170px;
}

.daily-work-reports-site-name {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}

.daily-work-reports-project-name {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.daily-work-reports-segment-name {
  font-weight: 900;
  color: #0f172a;
}

.daily-work-reports-small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.daily-work-reports-vehicle-cell {
  min-width: 90px;
  max-width: 140px;
}

.daily-work-reports-vehicle-numbers {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  word-break: break-word;
}

.daily-work-reports-worker-names {
  word-break: break-word;
  color: #0f172a;
  font-weight: 700;
}

.daily-work-reports-worker-count {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.daily-work-reports-count-cell {
  text-align: right;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-status-badge.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.daily-work-reports-status-badge.is-concern {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.daily-work-reports-status-badge.is-need-support {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.daily-work-reports-status-badge.is-unsubmitted {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.daily-work-reports-status-badge.is-failed {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.daily-work-reports-alert-recipients {
  margin-top: 6px;
  color: #334155;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.daily-work-reports-error-text {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.daily-work-reports-report-cell {
  min-width: 180px;
  max-width: 260px;
  word-break: break-word;
}

.daily-work-reports-muted {
  color: #94a3b8;
}

.daily-work-reports-edit-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.daily-work-reports-empty,
.daily-work-reports-empty-cell {
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* =========================================
   作業報告 修正モーダル
========================================= */

.daily-work-report-edit-modal-card {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.daily-work-report-edit-info-card {
  margin-bottom: 14px;
}

.daily-work-report-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.daily-work-report-edit-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.daily-work-report-edit-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-work-report-edit-form .form-field-full {
  grid-column: 1 / -1;
}

.daily-work-report-edit-form .form-field span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.daily-work-report-edit-form .form-field small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.daily-work-report-edit-form textarea,
.daily-work-report-edit-form input,
.daily-work-report-edit-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.daily-work-report-edit-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.daily-work-report-edit-form textarea:focus,
.daily-work-report-edit-form input:focus,
.daily-work-report-edit-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.daily-work-report-char-count {
  align-self: flex-end;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.daily-work-report-edit-note {
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.daily-work-report-danger-work-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}

.daily-work-report-danger-work-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.daily-work-report-danger-work-option input {
  margin: 0;
}

/* =========================================
   作業報告一覧 天気 + WBGTカード
========================================= */

.daily-weather-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.daily-weather-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.daily-weather-eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.daily-weather-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.daily-weather-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.daily-weather-reload-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.daily-weather-message {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.daily-weather-message.is-warning {
  display: block;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.daily-weather-message.is-error {
  display: block;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.daily-weather-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.daily-weather-item {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.daily-weather-label {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.daily-weather-item strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.daily-weather-wbgt-item {
  border-color: #fed7aa;
  background: #fff7ed;
}

.daily-weather-wbgt-level-item {
  border-color: #fecaca;
  background: #fef2f2;
}

#dailyWeatherWbgtLevel {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 16px;
}

#dailyWeatherWbgtLevel.is-danger {
  background: #7f1d1d;
  color: #ffffff;
}

#dailyWeatherWbgtLevel.is-severe {
  background: #dc2626;
  color: #ffffff;
}

#dailyWeatherWbgtLevel.is-warning {
  background: #f97316;
  color: #ffffff;
}

#dailyWeatherWbgtLevel.is-caution {
  background: #facc15;
  color: #713f12;
}

#dailyWeatherWbgtLevel.is-safe {
  background: #dcfce7;
  color: #166534;
}

#dailyWeatherWbgtLevel.is-unknown {
  background: #e2e8f0;
  color: #475569;
}

.daily-weather-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================
   作業報告一覧 日別確認状況
   6列コンパクト版
========================================= */

.daily-work-report-daily-check-card {
  margin-bottom: 16px;
}

.daily-work-report-daily-check-panel {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.daily-work-report-daily-check-panel.is-complete,
.daily-work-report-daily-check-panel.is-checked {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.daily-work-report-daily-check-panel.is-unchecked {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.daily-work-report-daily-check-panel.is-empty {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.daily-work-report-daily-check-panel.is-loading {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.daily-work-report-daily-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.daily-work-report-daily-check-label {
  margin-bottom: 3px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.daily-work-report-daily-check-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.daily-work-report-daily-check-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-work-report-daily-check-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-report-daily-check-status.is-complete,
.daily-work-report-daily-check-status.is-checked {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.daily-work-report-daily-check-status.is-unchecked {
  border: 1px solid #fed7aa;
  background: #fffbeb;
  color: #c2410c;
}

.daily-work-report-daily-check-status.is-empty {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.daily-work-report-daily-check-button {
  min-height: 36px;
  padding: 0 16px;
  border-color: #16a34a;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.22);
}

.daily-work-report-daily-check-button:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.daily-work-report-daily-check-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.daily-work-report-daily-check-metric {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
}

.daily-work-report-daily-check-metric span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.daily-work-report-daily-check-metric strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.daily-work-report-daily-check-member-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.daily-work-report-daily-check-member {
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 13px;
  background: #ffffff;
}

.daily-work-report-daily-check-member.is-checked {
  border: 1px solid #bbf7d0;
}

.daily-work-report-daily-check-member.is-unchecked {
  border: 1px solid #fed7aa;
}

.daily-work-report-daily-check-member-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.daily-work-report-daily-check-member-name {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-work-report-daily-check-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-report-daily-check-member.is-checked .daily-work-report-daily-check-member-badge {
  background: #dcfce7;
  color: #166534;
}

.daily-work-report-daily-check-member.is-unchecked .daily-work-report-daily-check-member-badge {
  background: #ffedd5;
  color: #c2410c;
}

.daily-work-report-daily-check-member-time {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-work-report-daily-check-empty,
.daily-work-report-daily-check-notice {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.daily-work-report-daily-check-empty {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
}

.daily-work-report-daily-check-notice {
  margin-bottom: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* =========================================
   レスポンシブ
========================================= */

@media (max-width: 1400px) {
  .daily-work-report-daily-check-member-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .daily-work-reports-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-work-reports-keyword-group {
    min-width: 220px;
  }

  .daily-weather-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-work-report-daily-check-member-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .daily-work-report-daily-check-member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .daily-work-reports-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .daily-work-reports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-work-reports-filter-group,
  .daily-work-reports-keyword-group,
  .daily-work-reports-checkbox-group {
    width: 100%;
    min-width: 0;
  }

  .daily-work-reports-reload-button {
    width: 100%;
  }

  .daily-work-reports-summary-grid {
    grid-template-columns: 1fr;
  }

  .daily-work-reports-department-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-work-report-edit-form .form-grid {
    grid-template-columns: 1fr;
  }

  .daily-work-report-danger-work-options {
    grid-template-columns: 1fr;
  }

  .daily-weather-header {
    flex-direction: column;
  }

  .daily-weather-reload-button {
    width: 100%;
  }

  .daily-weather-grid {
    grid-template-columns: 1fr;
  }

  .daily-weather-footer {
    justify-content: flex-start;
  }

  .daily-work-reports-date-control {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-work-reports-date-control input[type="date"] {
    width: 100%;
    flex: none;
  }

  .daily-work-reports-date-buttons {
    width: 100%;
  }

  .daily-work-reports-date-button {
    flex: 1;
  }

  .daily-work-report-daily-check-head {
    flex-direction: column;
  }

  .daily-work-report-daily-check-head-actions,
  .daily-work-report-daily-check-status,
  .daily-work-report-daily-check-button {
    width: 100%;
  }

  .daily-work-report-daily-check-metrics,
  .daily-work-report-daily-check-member-list {
    grid-template-columns: 1fr;
  }
}/* =========================================
   作業報告一覧画面
========================================= */

.daily-work-reports-page {
  max-width: 100%;
}

.daily-work-reports-hero-card {
  margin-bottom: 20px;
}

.daily-work-reports-filter-card {
  margin-bottom: 16px;
}

.daily-work-reports-filter-header {
  margin-bottom: 12px;
}

.daily-work-reports-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.daily-work-reports-date-group {
  min-width: 260px;
}

.daily-work-reports-date-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-work-reports-date-control input[type="date"] {
  width: 145px;
  flex: 0 0 145px;
}

.daily-work-reports-date-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.daily-work-reports-date-button {
  min-width: 52px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-date-button.is-active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.daily-work-reports-filter-group {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.daily-work-reports-filter-group label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.daily-work-reports-filter-group input,
.daily-work-reports-filter-group select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.daily-work-reports-keyword-group {
  min-width: 280px;
  flex: 1 1 280px;
}

.daily-work-reports-checkbox-group {
  min-width: 150px;
}

.daily-work-reports-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.daily-work-reports-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.daily-work-reports-reload-button {
  min-width: 120px;
  min-height: 42px;
}

.daily-work-reports-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.daily-work-reports-list-card {
  margin-bottom: 24px;
}

.daily-work-reports-department-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.daily-work-reports-department-section:last-child {
  margin-bottom: 0;
}

.daily-work-reports-department-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.daily-work-reports-department-header h3 {
  margin: 0;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 900;
}

.daily-work-reports-department-header p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.daily-work-reports-table-wrap {
  overflow-x: auto;
  background: #ffffff;
}

.daily-work-reports-table {
  width: 100%;
  min-width: 1660px;
  border-collapse: separate;
  border-spacing: 0;
}

.daily-work-reports-table th,
.daily-work-reports-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}

.daily-work-reports-table th:last-child,
.daily-work-reports-table td:last-child {
  border-right: none;
}

.daily-work-reports-table tr:last-child td {
  border-bottom: none;
}

.daily-work-reports-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-cell-site {
  min-width: 170px;
}

.daily-work-reports-site-name {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}

.daily-work-reports-project-name {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.daily-work-reports-segment-name {
  font-weight: 900;
  color: #0f172a;
}

.daily-work-reports-small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.daily-work-reports-vehicle-cell {
  min-width: 90px;
  max-width: 140px;
}

.daily-work-reports-vehicle-numbers {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  word-break: break-word;
}

.daily-work-reports-worker-names {
  word-break: break-word;
  color: #0f172a;
  font-weight: 700;
}

.daily-work-reports-worker-count {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.daily-work-reports-count-cell {
  text-align: right;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-reports-status-badge.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.daily-work-reports-status-badge.is-concern {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.daily-work-reports-status-badge.is-need-support {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.daily-work-reports-status-badge.is-unsubmitted {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.daily-work-reports-status-badge.is-failed {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.daily-work-reports-alert-recipients {
  margin-top: 6px;
  color: #334155;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.daily-work-reports-error-text {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.daily-work-reports-report-cell {
  min-width: 180px;
  max-width: 260px;
  word-break: break-word;
}

.daily-work-reports-muted {
  color: #94a3b8;
}

.daily-work-reports-edit-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.daily-work-reports-empty,
.daily-work-reports-empty-cell {
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* =========================================
   作業報告 修正モーダル
========================================= */

.daily-work-report-edit-modal-card {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.daily-work-report-edit-info-card {
  margin-bottom: 14px;
}

.daily-work-report-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.daily-work-report-edit-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.daily-work-report-edit-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-work-report-edit-form .form-field-full {
  grid-column: 1 / -1;
}

.daily-work-report-edit-form .form-field span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.daily-work-report-edit-form .form-field small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.daily-work-report-edit-form textarea,
.daily-work-report-edit-form input,
.daily-work-report-edit-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.daily-work-report-edit-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.daily-work-report-edit-form textarea:focus,
.daily-work-report-edit-form input:focus,
.daily-work-report-edit-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.daily-work-report-char-count {
  align-self: flex-end;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.daily-work-report-edit-note {
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.daily-work-report-danger-work-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}

.daily-work-report-danger-work-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.daily-work-report-danger-work-option input {
  margin: 0;
}

/* =========================================
   作業報告一覧 天気 + WBGTカード
========================================= */

.daily-weather-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.daily-weather-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.daily-weather-eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.daily-weather-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.daily-weather-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.daily-weather-reload-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.daily-weather-message {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.daily-weather-message.is-warning {
  display: block;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.daily-weather-message.is-error {
  display: block;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.daily-weather-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.daily-weather-item {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.daily-weather-label {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.daily-weather-item strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.daily-weather-wbgt-item {
  border-color: #fed7aa;
  background: #fff7ed;
}

.daily-weather-wbgt-level-item {
  border-color: #fecaca;
  background: #fef2f2;
}

#dailyWeatherWbgtLevel {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 16px;
}

#dailyWeatherWbgtLevel.is-danger {
  background: #7f1d1d;
  color: #ffffff;
}

#dailyWeatherWbgtLevel.is-severe {
  background: #dc2626;
  color: #ffffff;
}

#dailyWeatherWbgtLevel.is-warning {
  background: #f97316;
  color: #ffffff;
}

#dailyWeatherWbgtLevel.is-caution {
  background: #facc15;
  color: #713f12;
}

#dailyWeatherWbgtLevel.is-safe {
  background: #dcfce7;
  color: #166534;
}

#dailyWeatherWbgtLevel.is-unknown {
  background: #e2e8f0;
  color: #475569;
}

.daily-weather-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================
   作業報告一覧 日別確認状況
   6列コンパクト版
========================================= */

.daily-work-report-daily-check-card {
  margin-bottom: 16px;
}

.daily-work-report-daily-check-panel {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.daily-work-report-daily-check-panel.is-complete,
.daily-work-report-daily-check-panel.is-checked {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.daily-work-report-daily-check-panel.is-unchecked {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.daily-work-report-daily-check-panel.is-empty {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.daily-work-report-daily-check-panel.is-loading {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.daily-work-report-daily-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.daily-work-report-daily-check-label {
  margin-bottom: 3px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.daily-work-report-daily-check-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.daily-work-report-daily-check-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-work-report-daily-check-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-report-daily-check-status.is-complete,
.daily-work-report-daily-check-status.is-checked {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.daily-work-report-daily-check-status.is-unchecked {
  border: 1px solid #fed7aa;
  background: #fffbeb;
  color: #c2410c;
}

.daily-work-report-daily-check-status.is-empty {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.daily-work-report-daily-check-button {
  min-height: 36px;
  padding: 0 16px;
  border-color: #16a34a;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.22);
}

.daily-work-report-daily-check-button:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.daily-work-report-daily-check-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.daily-work-report-daily-check-metric {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
}

.daily-work-report-daily-check-metric span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.daily-work-report-daily-check-metric strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.daily-work-report-daily-check-member-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.daily-work-report-daily-check-member {
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 13px;
  background: #ffffff;
}

.daily-work-report-daily-check-member.is-checked {
  border: 1px solid #bbf7d0;
}

.daily-work-report-daily-check-member.is-unchecked {
  border: 1px solid #fed7aa;
}

.daily-work-report-daily-check-member-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.daily-work-report-daily-check-member-name {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-work-report-daily-check-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-work-report-daily-check-member.is-checked .daily-work-report-daily-check-member-badge {
  background: #dcfce7;
  color: #166534;
}

.daily-work-report-daily-check-member.is-unchecked .daily-work-report-daily-check-member-badge {
  background: #ffedd5;
  color: #c2410c;
}

.daily-work-report-daily-check-member-time {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-work-report-daily-check-empty,
.daily-work-report-daily-check-notice {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.daily-work-report-daily-check-empty {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
}

.daily-work-report-daily-check-notice {
  margin-bottom: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* =========================================
   レスポンシブ
========================================= */

@media (max-width: 1400px) {
  .daily-work-report-daily-check-member-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .daily-work-reports-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-work-reports-keyword-group {
    min-width: 220px;
  }

  .daily-weather-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-work-report-daily-check-member-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .daily-work-report-daily-check-member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .daily-work-reports-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .daily-work-reports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-work-reports-filter-group,
  .daily-work-reports-keyword-group,
  .daily-work-reports-checkbox-group {
    width: 100%;
    min-width: 0;
  }

  .daily-work-reports-reload-button {
    width: 100%;
  }

  .daily-work-reports-summary-grid {
    grid-template-columns: 1fr;
  }

  .daily-work-reports-department-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-work-report-edit-form .form-grid {
    grid-template-columns: 1fr;
  }

  .daily-work-report-danger-work-options {
    grid-template-columns: 1fr;
  }

  .daily-weather-header {
    flex-direction: column;
  }

  .daily-weather-reload-button {
    width: 100%;
  }

  .daily-weather-grid {
    grid-template-columns: 1fr;
  }

  .daily-weather-footer {
    justify-content: flex-start;
  }

  .daily-work-reports-date-control {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-work-reports-date-control input[type="date"] {
    width: 100%;
    flex: none;
  }

  .daily-work-reports-date-buttons {
    width: 100%;
  }

  .daily-work-reports-date-button {
    flex: 1;
  }

  .daily-work-report-daily-check-head {
    flex-direction: column;
  }

  .daily-work-report-daily-check-head-actions,
  .daily-work-report-daily-check-status,
  .daily-work-report-daily-check-button {
    width: 100%;
  }

  .daily-work-report-daily-check-metrics,
  .daily-work-report-daily-check-member-list {
    grid-template-columns: 1fr;
  }
}