/* CABALL: measurements of the dog */
/* folded group (the same way as the text fields group) */
.pc_group.pc_collapsed .pc_measures { height: 0 !important; padding: 0 !important; overflow: hidden; }
.pc_group_measures .pc_measures { padding: 8px 12px 10px; container-type: inline-size; container-name: pcmeasures; }
.pc_measure_notice { color: #c00; font-size: 11.5px; line-height: 1.35; margin-bottom: 8px; }
.pc_measure_container { margin: 8px 0; }
.pc_measure_line { display: flex; align-items: flex-start; gap: 14px; }
.pc_measure_row { flex: 0 0 112px; display: inline-flex; align-items: center; gap: 4px; }
.pc_measure_row .pc_measure_input { width: 76px; height: 30px; padding: 2px 6px; text-align: right; }
.pc_measure_unit { color: #666; font-size: 12px; }
.pc_measure_text { flex: 1 1 auto; min-width: 0; line-height: 1.3; padding-top: 4px; }
.pc_measure_name { font-weight: 700; font-size: 13px; display: block; }
.pc_measure_desc { display: block; font-size: 11.5px; color: #555; margin-top: 1px; }
.pc_measure_info {
  display: none; width: 18px; height: 18px; line-height: 17px; text-align: center; border-radius: 50%;
  border: 1px solid #888; color: #555; font-size: 12px; font-weight: 700; text-decoration: none; margin-left: 4px;
}
/* narrow panel: the description is folded behind the "?" */
@container pcmeasures (max-width: 430px) {
  .pc_measure_name { display: inline; }
  .pc_measure_info { display: inline-block; }
  .pc_measure_desc { display: none; }
  .pc_measure_desc.pc_open { display: block; }
  .pc_measure_line { gap: 8px; }
}
.pc_gender { margin-top: 4px; padding-left: 126px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@container pcmeasures (max-width: 430px) {
  .pc_gender { padding-left: 0; }
}
.pc_gender_label { font-size: 12px; margin-right: 2px; }
.pc_gender_btn.pc_selected, .pc_gender_btn.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.pc_measure_hint { font-size: 11px; color: #777; margin-top: 6px; }
.pc_measure_scheme_open { margin-bottom: 4px; }
.pc_measure_modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6);
  overflow: auto;
}
.pc_measure_modal_box {
  position: relative;
  background: #fff;
  box-shadow: 0 0 30px 6px rgba(0, 0, 0, .35);
  max-width: 96vw;
  max-height: 96vh;
  box-sizing: border-box;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
/* the picture shrinks to the height of the window, so the PDF button is always visible */
.pc_measure_scheme_img {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: calc(96vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.pc_measure_modal_close {
  position: absolute; top: 4px; right: 12px;
  font-size: 34px; line-height: 1; color: #333; text-decoration: none; z-index: 2;
}
.pc_measure_pdf { flex: 0 0 auto; margin: 10px 0 0; }


/* Popup dopasowany do okna: lewa kolumna przewija się wewnątrz, dolny pasek zawsze widoczny */
@media (min-width: 768px) and (min-height: 480px) {
	.pc_composer_popup { overflow: hidden; }
	.pc_composer_popup #pc_composer { display: flex; flex-direction: column; height: calc(100vh - 40px); }
	.pc_composer_popup #pc_top, .pc_composer_popup #pc_bottom { flex: 0 0 auto; }
	.pc_composer_popup #pc_bottom { position: static; }
	.pc_composer_popup #pc_content { flex: 1 1 auto; min-height: 0; height: auto !important; overflow: hidden; }
	.pc_composer_popup #pc_content .pc_side { overflow-y: auto; overflow-x: hidden; max-height: 100%; align-self: stretch; scrollbar-gutter: stable; }
}

.pc_group.pc_linked_hidden { display: none !important; }
.pc_image.pc_linked_none_hidden { display: none !important; }

.pc_measure_row .pc_measure_input { border: 2px solid #555 !important; border-radius: 4px; background: #fff; }
.pc_measure_row .pc_measure_input:focus { border-color: #2f6fed !important; outline: none; box-shadow: 0 0 0 2px rgba(47,111,237,.2); }

.pc_file_field_container .pc_file_thumb { margin-top: 8px; }
.pc_file_field_container .pc_file_thumb img { display: block; max-width: 120px; max-height: 120px; border: 2px solid #555; border-radius: 4px; object-fit: cover; background: #fff; }

.pc_file_field_container.pc_has_thumb .pc_file_name { display: none !important; }
.pc_file_field_container .pc_file_thumb { position: relative; display: inline-block; }
.pc_file_field_container .pc_file_thumb .pc_thumb_remove { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; background: #fff; border: 2px solid #555; color: #333; font-size: 16px; font-weight: bold; text-decoration: none; cursor: pointer; }
.pc_file_field_container .pc_file_thumb .pc_thumb_remove:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
