/* static/css/step_demo.css */
/* モーダル内ステップデモスライダー専用CSS（manual_modal.jsからのみ読み込む） */

.step-demo-slider {
  width: 80%;
  margin: 1rem auto 1.5rem;
  user-select: none;
}

@media (max-width: 768px) {
  .step-demo-slider {
    width: 95%;
  }
}

.step-demo-viewport {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #9aa5b1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: height 0.3s ease-in-out;
}

.step-demo-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.45s ease-in-out;
}

.step-demo-frame {
  flex: 0 0 100%;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #f0f8ff;
  box-sizing: border-box;
}

.step-demo-frame--plain {
  background: #ffffff;
}

.step-demo-caption {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: #444;
  font-weight: 600;
  min-height: 1.2em;
}

.manual-modal__content .step-demo-caption,
.step-demo-caption {
  text-align: center;
}

.step-demo-search-row {
  margin-bottom: 0.5rem;
}

.step-demo-search-box {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 0.82rem;
  color: #999;
  background: #fff;
  min-width: 8rem;
}

.step-demo-search-box--active {
  color: #222;
  border-color: #2563eb;
}

.step-demo-list-wrap {
  position: relative;
  margin-top: 0.9rem;
}

.step-demo-list-tag {
  position: absolute;
  top: -0.55rem;
  left: 0.6rem;
  font-size: 0.68rem;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 0.25rem;
  padding: 0.08rem 0.3rem;
  line-height: 1;
}

.step-demo-list {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #f9f9f9;
  padding: 0.4rem 0.5rem;
  min-height: 3.5rem;
}

.step-demo-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.step-demo-item--selected {
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.step-demo-kv {
  color: #555;
  font-size: 0.78rem;
}

.step-demo-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  background: #fff;
  color: #333;
}

.step-demo-badge--blue {
  border-color: #2563eb;
  color: #2563eb;
}

.step-demo-badge--confirm {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.step-demo-badge--muted {
  color: #888;
  border-color: #ccc;
}

.step-demo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.step-demo-btn {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border: 1px solid #bbb;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  background: #fff;
  color: #333;
  cursor: default;
}

.step-demo-btn--active {
  background: #e0f2fe;
  border-color: #2563eb;
  color: #1d4ed8;
}

.step-demo-btn--highlight {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}

.step-demo-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.step-demo-navs {
  display: flex;
  gap: 0.5rem;
}

.step-demo-nav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.step-demo-nav:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.step-demo-nav.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ====== step-demo-ui-* : 実UIと同じ見た目を再現するクラス群 ====== */

.step-demo-ui-section {
  background-color: #f0f8ff;
  padding: 0.6rem 0.9rem 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #d0d5dd;
}

.step-demo-ui-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.step-demo-ui-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 0.125rem solid #a4a4a4;
  border-radius: 0.5rem;
  background: #f1f1f1;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.step-demo-ui-num {
  font-size: 1.3em;
  margin-right: 0.2em;
}

.step-demo-ui-explain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.63rem 0.45rem;
  border: 1px solid #8ab4cf;
  border-radius: 0.3rem;
  background: #e8f4fb;
  color: #1a6a8a;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.step-demo-ui-search {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  color: #999;
  background: #fff;
  box-sizing: border-box;
}

.step-demo-ui-mode-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.step-demo-ui-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 0.0625rem solid #2563eb;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 700;
  box-sizing: border-box;
  white-space: nowrap;
}

.step-demo-ui-mode-btn.is-active {
  background: #2563eb;
  color: #ffffff;
}

.step-demo-ui-btn-row {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.step-demo-ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  height: 2rem;
  font-size: 1rem;
  white-space: nowrap;
  padding: 0.1rem 0.3rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}

.step-demo-ui-btn--highlight {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}

.step-demo-ui-btn--solid {
  border: none;
  border-radius: 0.5rem;
  background: #767676;
  color: #ffffff;
  font-weight: bold;
}

.step-demo-ui-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1.5rem;
  margin: -0.35rem 0 0.75rem;
}

.step-demo-ui-arrow-icon {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #555;
}

/* ====== カレンダーモックアップ ====== */

.step-demo-cal-wrap {
  background: #f9fff6;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  padding: 0.5rem;
}

.step-demo-cal-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.step-demo-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.3rem;
  background: #2563eb;
  color: #fff;
  border-radius: 0.2rem;
  font-size: 0.6rem;
  cursor: default;
}

.step-demo-cal-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  height: 1.3rem;
  background: #555;
  color: #fff;
  border-radius: 0.2rem;
  font-size: 0.6rem;
  cursor: default;
}

.step-demo-cal-month {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-demo-cal-views {
  display: flex;
  overflow: hidden;
  border-radius: 0.2rem;
}

.step-demo-cal-view {
  padding: 0.1rem 0.35rem;
  height: 1.3rem;
  font-size: 0.6rem;
  background: #222;
  color: #fff;
  cursor: default;
  display: inline-flex;
  align-items: center;
}

.step-demo-cal-view.is-active { background: #555; }

.step-demo-cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65rem;
  table-layout: fixed;
}

.step-demo-cal-table th {
  background: #f0f0f0;
  padding: 0.15rem;
  text-align: center;
  border: 1px solid #ddd;
  font-weight: 600;
}

.step-demo-cal-table td {
  padding: 0.15rem 0.25rem;
  border: 1px solid #eee;
  vertical-align: top;
  height: 1.9rem;
  color: #333;
}

.step-demo-cal-other { color: #bbb; }
.step-demo-cal-today-cell { background: #fffde7; }

/* ====== 日程候補ダイアログモックアップ ====== */

.step-demo-dlg {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.step-demo-dlg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.45rem 0.6rem 0.35rem;
  border-bottom: 1px solid #eee;
}

.step-demo-dlg-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.step-demo-dlg-sub {
  font-size: 0.62rem;
  color: #666;
}

.step-demo-dlg-close {
  font-size: 0.85rem;
  color: #666;
  cursor: default;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

.step-demo-dlg-note {
  margin: 0.35rem 0.6rem;
  padding: 0.25rem 0.45rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 0.25rem;
  font-size: 0.62rem;
  color: #555;
}

.step-demo-dlg-table-wrap {
  overflow-x: auto;
  padding: 0 0.5rem 0.5rem;
}

.step-demo-dlg-table {
  border-collapse: collapse;
  font-size: 0.62rem;
  white-space: nowrap;
}

.step-demo-dlg-table th {
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  padding: 0.2rem 0.4rem;
  font-weight: 600;
}

.step-demo-dlg-table td {
  border: 1px solid #d0d0d0;
  padding: 0.2rem 0.4rem;
  vertical-align: middle;
}

.step-demo-dlg-row--new td { background: #fffbeb; }

.step-demo-dlg-ops {
  display: flex;
  gap: 0.2rem;
}

.step-demo-dlg-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.3rem;
  border: 1px solid #ccc;
  border-radius: 0.2rem;
  background: #fff;
  color: #333;
  font-size: 0.6rem;
  cursor: default;
}

.step-demo-dlg-btn--del     { border-color: #e53e3e; color: #e53e3e; }
.step-demo-dlg-btn--reg     { border-color: #2563eb; color: #2563eb; }
.step-demo-dlg-btn--confirm { border-color: #2563eb; color: #2563eb; }
.step-demo-dlg-btn--muted   { color: #bbb; border-color: #e0e0e0; }

.step-demo-dlg-input {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border: 1px solid #ccc;
  border-radius: 0.2rem;
  background: #fff;
  color: #333;
  font-size: 0.6rem;
  white-space: nowrap;
}

/* ====== 案件修正モーダルモックアップ ====== */

.step-demo-modal {
  border: 1px solid #d0d5dd;
  border-radius: 0.6rem;
  background: #ffffff;
  overflow: hidden;
}

.step-demo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: #f7fbff;
  border-bottom: 1px solid #ddd;
}

.step-demo-modal__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.step-demo-modal__close {
  font-size: 1rem;
  color: #666;
  line-height: 1;
}

.step-demo-modal__body {
  padding: 0.7rem 0.85rem;
}

.step-demo-modal__field {
  margin-bottom: 0.6rem;
  text-align: left;
}

.step-demo-modal__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
}

.step-demo-modal__input,
.step-demo-modal__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  background: #fff;
  color: #333;
  font-size: 0.78rem;
}

.step-demo-modal__textarea {
  min-height: 2.4rem;
}

.step-demo-modal__pw-panel {
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  background: #eff6ff;
  padding: 0.6rem 0.7rem;
}

.step-demo-modal__pw-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.step-demo-modal__pw-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.step-demo-modal__pw-text {
  flex: 1 1 auto;
  font-size: 0.72rem;
  color: #374151;
}

.step-demo-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #f7fbff;
  border-top: 1px solid #ddd;
}

.step-demo-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  background: #fff;
  color: #333;
  font-size: 0.78rem;
}

.step-demo-modal__btn--primary {
  font-weight: 700;
}

/* ====== クリック対象を示すマウスカーソル ====== */

.step-demo-click-target {
  position: relative;
}

.step-demo-cursor {
  position: absolute;
  right: -0.5rem;
  bottom: -0.85rem;
  width: 1.2rem;
  height: 1.2rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
