.dtf-folder-dropdown {
    position: relative;
    max-width: 260px;
}
.dtf-folder-selected {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 16px;
}
.dtf-folder-list {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    position: absolute;
    width: 100%;
    left: 0; top: 100%;
    z-index: 11;
    box-shadow: 0 4px 18px #0001;
    border-radius: 0 0 7px 7px;
    max-height: 220px;
    overflow-y: auto;
}
.dtf-folder-row {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 15px;
}
.dtf-folder-row:hover {
    background: #f0f7ff;
}
.dtf-folder-delete {
    margin-left: auto;
    font-size: 18px;
    transition: color 0.1s;
}
.dtf-folder-delete:hover {
    color: #d00;
}


#dtf_length,
#dtf_width {
  width: 90px;   /* Juster etter ønske, f.eks. 60px, 100px, 150px */
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 6px;
  padding: 4px 8px;
}

.dtf-folder-dropdown-row:hover {
    background: #f2f2fa;
}

.dtf-folder-arrow {
  transition: transform 0.16s;
  margin-left: 2px;
}
.dtf-folder-dropdown-open .dtf-folder-arrow {
  transform: rotate(180deg);
}


#dtf_file_popup_content { display:flex; flex-wrap:wrap; gap:8px;}
.dtf-file-thumb-box { width: 140px; height: 250px; position:relative;}
.dtf-file-thumb-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 7px;
    background: #fafafd;
    box-sizing: border-box;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.2s;
    display: block;
    margin: 0 auto;
}
.dtf-file-thumb-img:hover,
.dtf-file-thumb-ico:hover {
    box-shadow: 0 2px 18px #3338;
    transform: scale(1.18);
    z-index: 12;
    background: #f6f8fa;
}
.dtf-file-thumb-label {
    font-size: 12px;
    max-width: 120px;
    overflow-wrap: break-word;
    margin: 4px auto 0 auto;
    line-height: 1.1;
    text-align: center;
}

.dtf-file-thumb-delete:hover { background: #ffd0d0; color: #a00; }

.dtf-file-thumb-box {
    display: inline-block;
    position: relative;
    width: 120px;
    height: auto;
    margin: 10px 8px;
    text-align: center;
    vertical-align: top;
}
.dtf-file-thumb-img, .dtf-file-thumb-ico {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 7px;
    background: #fafafd;
    box-sizing: border-box;
    transition: box-shadow 0.16s, transform 0.18s;
    cursor: pointer;
    z-index: 1;
}
.dtf-file-thumb-box:hover .dtf-file-thumb-img,
.dtf-file-thumb-box:hover .dtf-file-thumb-ico {
    box-shadow: 0 2px 16px 0 #5557;
    z-index: 10;
    transform: scale(1.2);
}
.dtf-file-thumb-label {
    font-size: 12px;
    max-width: 74px;
    overflow-wrap: break-word;
    margin: 4px auto 0 auto;
    line-height: 1.1;
}
.dtf-file-thumb-btn {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 5px;
    margin-top: 4px;
    cursor: pointer;
}
.dtf-file-thumb-delete {
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 21;
    background: #fff;
    color: #c33;
    border: 1px solid #ffd0d0;
    border-radius: 50%;
    font-size: 15px;
    width: 20px;
    height: 20px;
    line-height: 17px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px #0001;
    transition: background 0.15s, color 0.15s;
}
.dtf-file-thumb-delete:hover {
    background: #ffd0d0;
    color: #a00;
}

/* Popup thumbnails */
.dtf-file-thumb-img {
    width: 120px;      /* Endre denne verdien for bredde */
    height: 120px;     /* Endre denne for høyde */
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafd;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: box-shadow 0.18s, transform 0.2s;
}
.dtf-file-thumb-img:hover {
    box-shadow: 0 2px 18px #3338;
    transform: scale(1.12);
    background: #f6f8fa;
}



.dtf-file-thumb-box {
    width: 140px;            /* eller det du ønsker */
    height: 250px;           /* ENSARTET HØYDE – juster til ønsket verdi */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* eller center om du vil midtstille alt vertikalt */
    box-sizing: border-box;
    position: relative;
    margin: 8px 4px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.dtf-file-thumb-img,
.dtf-file-thumb-ico {
    margin-top: 10px;
}
.dtf-file-thumb-label {
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    max-width: 120px;
    word-break: break-all;
    text-align: center;
}

.dtf-file-thumb-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 140px;
    height: 230px;  /* samme verdi for lik høyde */
    position: relative;
    box-sizing: border-box;
    /* ... dine andre stiler ... */
}

.dtf-move-folder {
    margin-top: auto;   /* Dette sender dropdown til bunnen! */
    margin-bottom: 10px; /* Litt luft nederst */
    width: 90%;         /* Tilpass bredde etter behov */
    font-size: 12px;
}
