/* ==========================================================
   Industry-specific UI Mocks
   ========================================================== */

.uimock--imd { font-size: 12px; }
.uimock--imd .imd-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
  font-family: var(--en);
}

.imd-body { padding: 0 !important; overflow-x: auto; }

/* table for accounting + ad-report */
.imd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  min-width: 480px;
}
.imd-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.imd-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.imd-table tr:last-child td { border-bottom: 0; }
.imd-name {
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.imd-muted { color: var(--muted); }
.imd-mono { font-family: var(--en); font-size: 11px; }
.imd-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--purple-soft);
  color: var(--purple-ink);
  letter-spacing: 0.02em;
}
.imd-bar {
  width: 80px;
  height: 5px;
  background: var(--bg-tint);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.imd-bar__fill {
  height: 100%;
  border-radius: 3px;
}
.imd-pct {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.imd-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
  display: inline-block;
}
.imd-chip--done { background: oklch(92% 0.05 155); color: oklch(40% 0.14 155); }
.imd-chip--queued { background: var(--bg-tint); color: var(--muted); }
.imd-chip--alert { background: oklch(94% 0.06 30); color: oklch(45% 0.18 30); }
.imd-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
}
.imd-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

/* ==========================================================
   Rental inbox
   ========================================================== */
.rentalbox {
  display: flex;
  flex-direction: column;
}
.rentalbox__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.rentalbox__row:last-child { border-bottom: 0; }
.rentalbox__time {
  font-family: var(--en);
  font-size: 11px;
  color: var(--muted);
  padding-top: 4px;
}
.rentalbox__head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}
.rentalbox__cat {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
  letter-spacing: 0.02em;
}
.rentalbox__prop {
  font-size: 10.5px;
  color: var(--muted);
}
.rentalbox__subject {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}
.rentalbox__meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.rentalbox__meta strong {
  color: var(--blue-ink);
  font-weight: 600;
}

/* ==========================================================
   Construction survey
   ========================================================== */
.survey-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  min-width: 0;
}
.survey-col {
  padding: 14px 16px;
}
.survey-col:first-child { border-right: 1px solid var(--line); background: var(--bg-soft); }
.survey-col__head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.survey-col__head--ai {
  color: var(--blue);
}
.survey-ai-tag {
  background: var(--blue);
  color: white;
  font-family: var(--en);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.survey-memo {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.survey-memo p {
  margin: 0 0 6px;
  padding-left: 10px;
  border-left: 2px solid var(--blue-line);
}
.survey-struct {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.survey-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  font-size: 11.5px;
  align-items: start;
}
.survey-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 1px;
}
.survey-val {
  color: var(--ink);
  line-height: 1.55;
}
.survey-mono { font-family: var(--en); font-weight: 700; }
.survey-warn {
  background: oklch(94% 0.06 80);
  color: oklch(45% 0.16 80);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================
   Care handoff
   ========================================================== */
.handoff {
  display: flex;
  flex-direction: column;
}
.handoff__row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
}
.handoff__row--high { border-left-color: oklch(65% 0.18 30); background: oklch(98.5% 0.01 30); }
.handoff__row--mid { border-left-color: oklch(70% 0.15 80); }
.handoff__row--low { border-left-color: oklch(70% 0.15 155); }
.handoff__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.handoff__name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
}
.handoff__name small {
  font-family: var(--en);
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}
.handoff__flags {
  display: flex;
  gap: 4px;
}
.handoff__flag {
  font-size: 10px;
  padding: 2px 7px;
  background: oklch(95% 0.04 30);
  color: oklch(40% 0.16 30);
  border-radius: var(--r-full);
  font-weight: 600;
}
.handoff__note {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.handoff__ai {
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
  background: var(--blue-soft);
  font-size: 11.5px;
  color: var(--blue-ink);
  line-height: 1.65;
}
.handoff__ai-tag {
  background: var(--blue);
  color: white;
  font-family: var(--en);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 8px;
}

/* ==========================================================
   Ad report bottom AI block
   ========================================================== */
.imd-table--ad td { padding: 9px 14px; }
.ad-ai {
  padding: 14px 16px;
  border-top: 1px dashed var(--line);
  background: var(--bg-soft);
}
.ad-ai__head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.ad-ai__tag {
  background: var(--blue);
  color: white;
  font-family: var(--en);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ad-ai__list {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.ad-ai__list li { margin-bottom: 3px; }

/* ==========================================================
   Annual cycle / 業務サイクル section
   ========================================================== */
.cycle {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cycle__card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.cycle__card-period {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cycle__card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--ink);
}
.cycle__card-body {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.85;
}
.cycle__card-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 3px 8px;
  background: var(--blue-soft);
  color: var(--blue-ink);
  border-radius: var(--r-full);
  margin-top: 12px;
  font-weight: 600;
}

/* ==========================================================
   Glossary / 業界用語
   ========================================================== */
.glossary {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.glossary__item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.glossary__term {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
.glossary__term small {
  font-family: var(--en);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.03em;
}
.glossary__def {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 720px) {
  .imd-table { font-size: 10.5px; }
  .imd-table th, .imd-table td { padding: 8px 10px; }
  .survey-body { grid-template-columns: 1fr; }
  .survey-col:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .cycle { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cycle { grid-template-columns: 1fr; }
}
