/* tarjousui/static/laajennukset/kohde_id.css — the duplicates feature under the kohde header (#10001).
 *
 * One column on a phone: a member's address and pills on the first lines, its reasons
 * small under them, its buttons wrapping below. From 700 px the buttons sit to the right
 * of the member. Colours from app.css's variables, so the dark theme follows. */

.kohde-id { display: flex; flex-direction: column; gap: 8px; margin: 8px 12px 0; }
.kohde-id:empty { display: none; }
.kohde-id h3 { margin: 0 0 6px; font-size: 15px; }
.kohde-id p { margin: 0 0 6px; overflow-wrap: anywhere; }

.kohde-id-banneri {
  padding: 10px 12px;
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warn) 12%, var(--surface));
}

.kohde-id-paneeli,
.kohde-id-osio {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.kohde-id-jasenet { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.kohde-id-jasen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.kohde-id-jasen:first-child { border-top: 0; }
.kohde-id-tieto { flex: 1 1 100%; min-width: 0; }
.kohde-id-rivi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kohde-id-rivi strong { overflow-wrap: anywhere; }
.kohde-id-nimi { color: var(--muted); overflow-wrap: anywhere; }
.kohde-id-syyt { margin-top: 2px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

.kohde-id-napit { display: flex; flex-wrap: wrap; gap: 6px; }
.kohde-id-nappi {
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.kohde-id-nappi:disabled { opacity: 0.6; cursor: default; }
.kohde-id-nappi[data-armed="1"] { border-color: var(--danger); color: var(--danger); }
.kohde-id-varmistus { margin: 6px 0 0; font-size: 13px; color: var(--danger); }

.kohde-id-lomake { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.kohde-id-kentta {
  min-height: var(--tap);
  width: 9em;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

@media (min-width: 700px) {
  .kohde-id-tieto { flex: 1 1 320px; }
  .kohde-id-jasen > .kohde-id-napit { justify-content: flex-end; }
}
