/* 1日ビュー (メモ帳スタイル) */

.day-nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; padding: 10px 12px; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 10px;
}
.day-nav input[type=date] {
  padding: 6px 10px; border: 1.5px solid #c5dff0; border-radius: 6px;
  font-size: 15px; color: #1a3a5c; background: #f5f9ff;
}
.day-nav__label { margin-left: auto; font-size: 14px; color: #1a3a5c; font-weight: 700; }

/* サマリ */
.day-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg,#023e6e,#0077b6);
  color: #fff; padding: 14px 18px; border-radius: 10px;
  margin-bottom: 12px; box-shadow: 0 2px 8px rgba(2,62,110,.18);
}
.day-summary__stat { display: flex; flex-direction: column; gap: 2px; }
.day-summary__label { font-size: 11px; opacity: .8; }
.day-summary__value { font-size: 20px; font-weight: 800; }
.day-summary__add { margin-left: auto; white-space: nowrap; }

/* 船長報酬 */
.day-captains {
  background: #fff; border-radius: 10px; padding: 10px 14px;
  margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.day-captains__head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: #023e6e; margin-bottom: 8px;
}
.day-captains__body {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cap-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px; background: #f0f7fc;
  font-size: 13px; color: #1a3a5c;
}
.cap-chip__dot { width: 10px; height: 10px; border-radius: 50%; }
.cap-chip__amount { font-weight: 700; }
.cap-chip.is-locked { background: #fff8e1; }

/* 未割振 */
.day-unassigned {
  background: #fff3cd; border: 1.5px solid #f59e0b; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 12px;
}
.day-unassigned__head {
  font-weight: 700; color: #92400e; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}

/* 船ブロック */
.ship-block {
  background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 12px; overflow: hidden;
}
.ship-block__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--ship-color, #1a6fc4); color: #fff;
}
.ship-block__name { font-weight: 800; font-size: 16px; }
.ship-block__charter-flag {
  background: #f59e0b; color: #fff; padding: 2px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
}
.ship-block__stats { margin-left: auto; font-size: 13px; opacity: .92; }
.ship-block__captain {
  padding: 8px 14px; background: #f7fafc;
  border-bottom: 1px solid #e8edf2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #3d5670;
}
.ship-block__captain b { color: #1a3a5c; }
.ship-block__crew {
  padding: 6px 14px; background: #f7fafc;
  border-bottom: 1px solid #e8edf2;
  font-size: 12px; color: #3d5670;
}
.ship-block__crew .crew-tag {
  display: inline-block; background: #e0f2fe; color: #075985;
  padding: 2px 8px; border-radius: 10px; margin-right: 4px;
  font-size: 11px;
}

.ship-block__body { padding: 8px 12px; }
.res-row {
  border-bottom: 1px solid #f0f7fc; padding: 8px 4px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  cursor: pointer;
}
.res-row:last-child { border-bottom: 0; }
.res-row:hover { background: #f5f9ff; }
.res-row__name { font-weight: 700; color: #1a3a5c; flex: 1; min-width: 100px; }
.res-row__name .res-charter-mark {
  display: inline-block; background: #f59e0b; color: #fff;
  padding: 1px 6px; border-radius: 8px; font-size: 10px;
  margin-right: 4px; vertical-align: middle;
}
.res-row__people { font-size: 12px; color: #3d5670; }
.res-row__amount { font-weight: 700; color: #023e6e; font-size: 14px; }
.res-row__amount .lock-icon { color: #92400e; font-size: 10px; margin-left: 3px; }
.res-row__meta {
  flex: 1 0 100%; font-size: 11px; color: #5f7995; padding-left: 4px;
}
.res-row__meta span { margin-right: 10px; }
.res-row__meta a { color: #0077b6; text-decoration: none; }

/* 船長報酬編集モーダル */
.cap-edit-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.cap-edit-row .cap-edit-name { flex: 1; font-weight: 700; color: #1a3a5c; }
.cap-edit-row input[type=number] {
  width: 110px; padding: 6px 8px; border: 1.5px solid #c5dff0; border-radius: 6px;
  font-size: 14px; text-align: right;
}
.cap-edit-row .cap-edit-lock {
  font-size: 11px; color: #92400e;
}

/* レス予約編集モーダル */
.res-edit-grid {
  display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px;
  align-items: center;
}
.res-edit-grid label { font-size: 12px; color: #3d5670; }
.res-edit-grid input,
.res-edit-grid select,
.res-edit-grid textarea {
  padding: 6px 10px; border: 1.5px solid #c5dff0; border-radius: 6px;
  font-size: 14px; color: #1a3a5c; background: #fff; width: 100%;
}
.res-edit-grid textarea { min-height: 60px; resize: vertical; }
.res-edit-grid__price-lock {
  font-size: 12px; color: #92400e;
  display: flex; align-items: center; gap: 4px;
}

@media (max-width: 600px) {
  .day-summary__add { width: 100%; margin-left: 0; margin-top: 8px; }
  .res-edit-grid { grid-template-columns: 1fr; }
}
