/* 3DP dizaina rīks 1.0 */
.dpd-box{margin:14px 0 18px;padding:14px;border:1px solid #e1ddd3;border-radius:10px;background:#fbfaf7}
.dpd-box .dpd-open{white-space:normal}
.dpd-small{font-size:13px;line-height:1.45;color:#5d5a52;margin:8px 0 0}
.dpd-msg{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#fff4e5;color:#7a4b00;font-size:14px}
.dpd-done{display:flex;gap:12px;align-items:flex-start}
.dpd-thumb{width:96px;height:auto;border:1px solid #e1ddd3;border-radius:8px;background:#fff;flex:0 0 auto}
.dpd-done b{color:#1f6b3a}
.dpd-done .btn{margin-top:8px}
html.dpd-lock,html.dpd-lock body{overflow:hidden}
.dpd-ov{position:fixed;inset:0;z-index:100000;background:rgba(20,18,14,.55);display:none;align-items:center;justify-content:center;padding:16px}
.dpd-ov.on{display:flex}
.dpd-modal{background:#fff;color:#1d1d1b;border-radius:14px;width:min(1120px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3);font-size:15px;line-height:1.4}
.dpd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #ece9e1}
.dpd-head b{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dpd-x{border:0;background:none;font-size:28px;line-height:1;width:40px;height:40px;border-radius:8px;cursor:pointer;color:#444}
.dpd-x:hover,.dpd-x:focus{background:#f2efe8}
.dpd-body{display:flex;gap:16px;padding:16px;overflow:auto;min-height:0;flex:1 1 auto}
.dpd-stage{flex:1 1 60%;min-width:0;display:flex;flex-direction:column;gap:6px}
.dpd-svg{width:100%;height:auto;max-height:62vh;background:repeating-conic-gradient(#f4f2ec 0 25%,#fbfaf7 0 50%) 0 0/20px 20px;border-radius:10px;touch-action:none;user-select:none;-webkit-user-select:none}
.dpd-el{cursor:move}
.dpd-hit{cursor:move}
.dpd-h{cursor:pointer}
.dpd-info{font-size:13px;color:#3d3a33}
.dpd-note{font-size:12px;color:#8a867c}
.dpd-side{flex:0 0 330px;display:flex;flex-direction:column;gap:10px;min-width:0}
.dpd-add{display:flex;gap:8px;flex-wrap:wrap}
.dpd-add .btn{flex:1 1 auto;position:relative;overflow:hidden;margin:0}
.dpd-file{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;font-size:0}
.dpd-props h4{margin:6px 0 8px;font-size:15px}
.dpd-field{display:block;margin:0 0 10px;font-weight:400}
.dpd-field>span{display:block;font-size:13px;color:#5d5a52;margin-bottom:3px}
.dpd-field .form-control{width:100%;box-sizing:border-box}
.dpd-field textarea{min-height:60px;resize:vertical}
.dpd-thr{width:100%}
.dpd-check{display:flex;gap:8px;align-items:center;margin:0 0 10px;font-weight:400}
.dpd-row{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.dpd-row .btn.active{background:#2f4a3c;color:#fff;border-color:#2f4a3c}
.dpd-foot{border-top:1px solid #ece9e1;padding:12px 16px;display:flex;flex-direction:column;gap:6px}
.dpd-warn{display:none;padding:8px 10px;border-radius:8px;background:#fdecea;color:#8a1c12;font-size:14px}
.dpd-warn.on{display:block}
.dpd-approve{display:flex;gap:10px;align-items:flex-start;font-weight:600;margin:0;cursor:pointer}
.dpd-approve input{width:20px;height:20px;margin:1px 0 0;flex:0 0 auto}
.dpd-btns{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.dpd-btns .btn{min-height:44px;min-width:120px}
.dpd-save[disabled]{opacity:.5;cursor:not-allowed}
@media (max-width:800px){
  .dpd-ov{padding:0}
  .dpd-modal{border-radius:0;max-height:100vh;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .dpd-head{position:sticky;top:0;background:#fff;z-index:3}
  .dpd-body{flex-direction:column;padding:12px;overflow:visible;flex:0 0 auto}
  .dpd-stage{position:sticky;top:57px;background:#fff;z-index:2;padding-bottom:6px;border-bottom:1px solid #ece9e1}
  .dpd-side{flex:0 0 auto}
  .dpd-svg{max-height:38vh}
  .dpd-note{display:none}
  .dpd-btns .btn{flex:1 1 0}
}
.dpd-tabs{display:flex;flex-direction:column;gap:6px}
.dpd-tabrow{display:flex;gap:6px;flex-wrap:wrap}
.dpd-tab{border:1px solid #d6d2c8;background:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:14px;cursor:pointer;min-height:36px}
.dpd-tab.on{background:#2f4a3c;border-color:#2f4a3c;color:#fff}
.dpd-stagebar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.dpd-stagebar .dpd-check{margin:0}
.dpd-svg.tech{background:#fff;border:1px solid #e1ddd3}
.dpd-icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px;padding:8px;border:1px solid #e1ddd3;border-radius:10px;background:#fbfaf7}
.dpd-icons[hidden]{display:none}
.dpd-ic{width:44px;height:44px;border:1px solid #e1ddd3;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#2b2b2b;padding:0}
.dpd-ic:hover,.dpd-ic:focus{border-color:#2f4a3c;outline:none;box-shadow:0 0 0 2px rgba(47,74,60,.25)}
.dpd-numrow{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}
.dpd-numrow .dpd-field{margin:0}
.dpd-warn.info{background:#eef4ff;color:#1c3d7a}
.dpd-cart-thumb{display:block;width:72px;height:auto;margin-top:6px;border:1px solid #e1ddd3;border-radius:6px;background:#fff}
.dpd-listbox[hidden]{display:none}
.dpd-listbox textarea{min-height:110px;font-family:inherit}
.dpd-listfile{position:relative;overflow:hidden}
