body.morning-board-review-open {
  overflow: hidden;
}

.morning-board-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(7px);
}

.morning-board-review-modal.is-hidden {
  display: none;
}

.morning-board-review-card {
  width: min(1440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 26px;
  background: #f8fafc;
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.28),
    0 10px 28px rgba(15, 23, 42, 0.14);
}

.morning-board-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e2e8f0;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #eef4ff 100%
    );
}

.morning-board-review-header h2 {
  margin: 3px 0 6px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.morning-board-review-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.morning-board-review-eyebrow {
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.morning-board-review-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #dbe3ef;
  border-radius: 15px;
  background: #ffffff;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.morning-board-review-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 16px 26px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.morning-board-review-date-card {
  min-width: 220px;
  padding: 11px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  background: #f8fafc;
}

.morning-board-review-date-card span,
.morning-board-review-filter span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.morning-board-review-date-card strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.morning-board-review-filter select {
  min-width: 160px;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
}

.morning-board-review-reload,
.morning-board-review-trigger,
.morning-board-review-toolbar-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #2563eb;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8
  );
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.2);
}

.morning-board-review-trigger {
  white-space: nowrap;
}

.morning-board-review-toolbar-button[hidden] {
  display: none !important;
}

.morning-board-review-message {
  margin: 14px 26px 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

.morning-board-review-message.is-hidden {
  display: none;
}

.morning-board-review-content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 26px 26px;
}

.morning-board-review-loading,
.morning-board-review-empty {
  padding: 44px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

.morning-board-review-department {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.morning-board-review-department-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background:
    linear-gradient(
      135deg,
      #f8fafc,
      #eff6ff
    );
}

.morning-board-review-department-header span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.morning-board-review-department-header h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.morning-board-review-department-header > strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
}

.morning-board-review-table-wrap {
  overflow-x: auto;
}

.morning-board-review-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.morning-board-review-table th {
  padding: 11px 13px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.morning-board-review-table td {
  padding: 13px;
  border-bottom: 1px solid #eef2f7;
  color: #1e293b;
  font-size: 13px;
  vertical-align: middle;
}

.morning-board-review-table tr:last-child td {
  border-bottom: 0;
}

.morning-board-review-project,
.morning-board-review-segment {
  display: grid;
  gap: 3px;
}

.morning-board-review-project strong,
.morning-board-review-segment strong,
.morning-board-review-work-text {
  color: #0f172a;
  font-weight: 900;
}

.morning-board-review-project span,
.morning-board-review-project small,
.morning-board-review-segment span,
.morning-board-review-source {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.morning-board-review-work-text {
  min-width: 170px;
  font-size: 14px;
}


.morning-board-review-schedule-edit-dialog {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(5px);
}

.morning-board-review-schedule-edit-dialog.is-hidden {
  display: none;
}

.morning-board-review-schedule-edit-card {
  width: min(580px, calc(100vw - 40px));
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.morning-board-review-schedule-edit-header {
  margin-bottom: 12px;
}

.morning-board-review-schedule-edit-eyebrow {
  color: #ea580c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.morning-board-review-schedule-edit-header h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 900;
}

.morning-board-review-schedule-edit-target {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.morning-board-review-schedule-edit-field {
  display: grid;
  gap: 7px;
}

.morning-board-review-schedule-edit-field span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.morning-board-review-schedule-edit-field textarea {
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.morning-board-review-schedule-edit-field textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: #2563eb;
}

.morning-board-review-schedule-edit-message {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.morning-board-review-schedule-edit-message.is-hidden {
  display: none;
}

.morning-board-review-schedule-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.morning-board-review-schedule-edit-cancel,
.morning-board-review-schedule-edit-save {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

.morning-board-review-schedule-edit-cancel {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
}

.morning-board-review-schedule-edit-save {
  border: 1px solid #ea580c;
  background: #ea580c;
  color: #ffffff;
}

.morning-board-review-schedule-edit-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.morning-board-review-edit-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ea580c;
  border-radius: 11px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.morning-board-review-readonly,
.morning-board-review-no-action {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.morning-board-review-warning-section {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
}

.morning-board-review-warning-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.morning-board-review-warning-title strong {
  padding: 4px 8px;
  border-radius: 8px;
  background: #ea580c;
  color: #ffffff;
  font-size: 11px;
}

.morning-board-review-warning-title span {
  color: #9a3412;
  font-weight: 900;
}

.morning-board-review-warning-list {
  display: grid;
  gap: 8px;
}

.morning-board-review-warning-item {
  padding: 11px 13px;
  border-radius: 13px;
  background: #ffffff;
}

.morning-board-review-warning-item div {
  display: flex;
  gap: 10px;
  color: #0f172a;
}

.morning-board-review-warning-item span {
  color: #64748b;
}

.morning-board-review-warning-item p {
  margin: 5px 0 0;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.morning-board-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 26px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.morning-board-review-footer-close {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
}

/* reviewモーダルの上に既存作業報告編集モーダルを表示 */
#dailyWorkReportEditModal {
  z-index: 10000;
}

@media (max-width: 820px) {
  .morning-board-review-modal {
    padding: 10px;
  }

  .morning-board-review-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .morning-board-review-header,
  .morning-board-review-toolbar,
  .morning-board-review-content,
  .morning-board-review-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .morning-board-review-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .morning-board-review-date-card,
  .morning-board-review-filter select,
  .morning-board-review-reload {
    width: 100%;
  }

  .morning-board-review-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
