/* === WRAPPER POZNÁMEK === */
#dkLabNoteDetailWrapper{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:600px;
  margin:0 auto 12px;
}

/* === KARTA POZNÁMKY === */
.dkLabNoteDetailDiv{
  border-radius:18px;
  padding:14px 16px;
  border:1px solid rgba(185,24,35,.16);
  background:
    radial-gradient(800px 220px at 20% 0%, rgba(185,24,35,.06), transparent 60%),
    radial-gradient(680px 220px at 85% 0%, rgba(255,186,120,.10), transparent 55%),
    linear-gradient(180deg, #fff7f7 0%, #ffffff 78%);
  box-shadow:0 10px 26px rgba(0,0,0,.07);
}

/* === HLAVIČKA POZNÁMKY === */
.dkLabNoteHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}

.dkLabNoteHeader span:first-child{
  font-weight:800;
  font-size:17px;
  color:#2b2b2b;
  letter-spacing:.2px;
}

.dkLabNoteHeader span:last-child{
  font-size:.95rem;
  font-style:italic;
  color:#b91823;
  background:rgba(185,24,35,.08);
  border:1px solid rgba(185,24,35,.16);
  padding:3px 8px;
  border-radius:999px;
  line-height:1.2;
  white-space:nowrap;
}

/* === TEXTAREA === */
.dkLabNoteTextArea{
  width:100%;
  border:1px solid rgba(0,0,0,.16);
  border-radius:14px;
  padding:10px 12px;
  font-size:14px;
  line-height:1.45;
  resize:vertical;
  transition:border-color .2s, box-shadow .2s, background-color .2s;
  background-color:rgba(255,255,255,.85);
  color:#2b2b2b;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.noteShadow{
  box-shadow:none !important;
}

.dkLabNoteTextArea:focus{
  border-color:rgba(185,24,35,.55);
  outline:none;
  box-shadow:0 0 0 4px rgba(185,24,35,.14);
  background-color:#ffffff;
}

.dkLabNoteTextArea::placeholder{
  color:#7b7b7b;
  opacity:1;
}

.dkLabNoteTextArea[rows="3"]{
  min-height:62px;
}

/* === UPLOAD OBRÁZKU === */

.dkLabNoteAttachmentWrapper{
  max-width:600px;
  margin:6px auto 14px;
}

#dkLabNoteFileForm{
  padding:14px 16px 16px;
  border-radius:18px;
  border:1px dashed rgba(185,24,35,.35);
  background:
    radial-gradient(800px 220px at 20% 0%, rgba(185,24,35,.06), transparent 60%),
    radial-gradient(680px 220px at 85% 0%, rgba(255,186,120,.10), transparent 55%),
    linear-gradient(180deg, #fff7f7 0%, #ffffff 78%);
  box-shadow:0 10px 26px rgba(0,0,0,.07);
  text-align:center;
}

#dkLabNoteFile{
  display:none;
}

.dkLabFileButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 22px;
  border-radius:999px;
  background:linear-gradient(180deg, #ca1622 0%, #b91823 100%);
  color:#fff;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(185,24,35,.35);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.dkLabFileButton::before{
  content:"📷";
  font-size:18px;
  line-height:1;
}

.dkLabFileButton:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(185,24,35,.45);
  filter:brightness(1.05);
}

.dkLabFileButton:active{
  transform:translateY(0);
  box-shadow:0 5px 14px rgba(185,24,35,.35);
}

.dkLabNoteChooseAttachLabel{
  pointer-events:none;
}

.dkLabNoteResult{
  margin-top:12px;
  font-size:14px;
  color:#444;
}

.dkLabNoteUpload{
  font-weight:600;
  color:#2b2b2b;
}

/* =========================================================
   SVICKOMANIE3D – NAHRANÉ SOUBORY K POZNÁMCE
   ========================================================= */

.dkLabNoteAttachFiles{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* jedna položka */
.dkLabNoteAttachFile{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(185,24,35,.18);
  background:
    linear-gradient(180deg, #fff7f7 0%, #ffffff 80%);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

/* ikona souboru */
.dkLabNoteAttachIcon{
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(185,24,35,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.dkLabNoteAttachIcon::before{
  content:"🖼️";
  font-size:18px;
  line-height:1;
}

/* název souboru */
.dkLabNoteAttachFile a{
  flex:1;
  text-decoration:none;
  overflow:hidden;
}

.dkLabNoteAttachName{
  display:block;
  font-weight:700;
  color:#2b2b2b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
}

/* delete ikonka */
.dkLabNoteAttachDelete{
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease, transform .15s ease;
  flex-shrink:0;
}

.dkLabNoteAttachDelete::before{
  content:"✖";
  font-size:14px;
  color:#b91823;
  font-weight:800;
}

.dkLabNoteAttachDelete:hover{
  background:rgba(185,24,35,.12);
  transform:scale(1.05);
}

/* mobil */
@media (max-width:480px){
  .dkLabNoteAttachFile{
    padding:10px 10px;
    border-radius:12px;
  }

  .dkLabNoteAttachIcon,
  .dkLabNoteAttachDelete{
    width:32px;
    height:32px;
    border-radius:9px;
  }

  .dkLabNoteAttachName{
    font-size:15px;
  }
}

/* === MOBIL === */
@media (max-width:480px){
  #dkLabNoteDetailWrapper{
    padding:0 12px;
    margin-bottom:12px;
  }
  .dkLabNoteDetailDiv{
    padding:12px 12px;
    border-radius:16px;
  }
  .dkLabNoteHeader span:first-child{
    font-size:16px;
  }
  .dkLabNoteHeader span:last-child{
    font-size:.85rem;
    padding:3px 7px;
  }
  .dkLabNoteTextArea{
    font-size:15px;
    padding:10px 10px;
    border-radius:14px;
  }

  #dkLabNoteFileForm{
    padding:12px 12px 14px;
    border-radius:16px;
  }
  .dkLabFileButton{
    width:100%;
    font-size:16px;
    padding:14px 18px;
  }
}
