
/* DTS_ATTACHMENT_PICKER_V1 */

#dtsAttachmentPicker[hidden] {
  display:none!important;
}

#dtsAttachmentPicker {
  position:fixed;
  inset:0;
  z-index:100001;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(0,4,10,.88);
  backdrop-filter:blur(5px);
}

.dts-attach-window {
  width:min(940px,100%);
  max-height:calc(100dvh - 32px);
  display:flex;
  flex-direction:column;
  min-height:0;
  background:#111c27;
  color:#edf8ff;
  border:1px solid #28617b;
  border-radius:12px;
  box-shadow:0 25px 80px #000b;
  overflow:hidden;
}

.dts-attach-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:17px 20px;
  border-bottom:1px solid #284759;
}

.dts-attach-header strong {
  font-size:19px;
  color:#e8faff;
}

.dts-attach-header p {
  font-size:12px;
  color:#a8c1d0;
  margin:6px 0 0;
}

#dtsAttachClose {
  font-size:26px;
  background:transparent;
  border:0;
  color:#d8e6ee;
}

.dts-attach-notice {
  padding:10px 20px;
  color:#b5d9e8;
  background:#0a2a3b;
  font-size:12px;
  line-height:1.5;
}

.dts-attach-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:12px 20px;
  border-bottom:1px solid #284759;
}

.dts-attach-tabs button {
  font-size:12px;
  padding:8px 11px;
}

.dts-attach-tabs button.active {
  background:#00cbe7;
  color:#041822;
  border-color:#00cbe7;
}

.dts-attach-content {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 265px;
}

.dts-attach-browser {
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:15px;
  border-right:1px solid #284759;
}

#dtsAttachSearch {
  width:100%;
  padding:11px 12px;
  background:#091723;
  border:1px solid #37647b;
  color:white;
  border-radius:7px;
}

.dts-attach-results {
  flex:1;
  min-height:150px;
  overflow-y:auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:9px;
  scrollbar-width:thin;
}

.dts-attach-card {
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  background:#0b2534;
  border:1px solid #24516a;
  border-radius:8px;
  padding:9px;
}

.dts-attach-card img {
  width:65px;
  height:65px;
  object-fit:contain;
  flex-shrink:0;
}

.dts-attach-card div {
  min-width:0;
  flex:1;
}

.dts-attach-card strong,
.dts-attach-card small {
  display:block;
  overflow-wrap:anywhere;
}

.dts-attach-card strong {
  font-size:12px;
}

.dts-attach-card small {
  color:#94b2c3;
  font-size:10px;
  margin-top:4px;
}

.dts-attach-card button {
  flex-shrink:0;
  font-size:11px;
  padding:7px;
}

.dts-attach-card button.selected {
  background:#087a59;
  color:white;
  border-color:#00c896;
}

.dts-attach-selected {
  padding:15px;
  overflow-y:auto;
  min-height:0;
}

.dts-attach-selected > strong {
  display:block;
  color:#00d9f5;
  margin-bottom:12px;
  font-size:14px;
}

.dts-attach-selected-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  background:#0a2939;
  border:1px solid #24516a;
  border-radius:7px;
  padding:8px;
  margin-bottom:8px;
  font-size:12px;
}

.dts-attach-selected-row span {
  overflow-wrap:anywhere;
}

.dts-attach-selected-row button {
  flex-shrink:0;
  padding:5px 9px;
}

.dts-attach-empty {
  color:#a4bac8;
  font-size:13px;
  line-height:1.5;
}

.dts-attach-footer {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  padding:13px 20px;
  border-top:1px solid #284759;
}

.dts-attach-footer span {
  margin-right:auto;
  color:#a5bbc9;
  font-size:11px;
}

#dtsAttachSave {
  background:#008c65;
  color:white;
  border-color:#00b785;
}

@media(max-width:760px) {
  .dts-attach-content {
    grid-template-columns:1fr;
    overflow-y:auto;
  }

  .dts-attach-browser {
    min-height:280px;
    border-right:0;
  }

  .dts-attach-selected {
    max-height:160px;
    border-top:1px solid #284759;
  }

  .dts-attach-results {
    grid-template-columns:1fr;
  }

  .dts-attach-footer span {
    width:100%;
  }
}


/* DTS_OPTIC_9V_BATTERY_V1 */

.dts-attach-battery {
  display:flex;
  align-items:center;
  gap:10px;
  margin:-3px 0 12px;
  padding:10px;
  background:#102d36;
  border:1px solid #187a86;
  border-radius:7px;
  color:#bfffe8;
  font-size:12px;
  cursor:pointer;
}

.dts-attach-battery input[type="checkbox"] {
  width:17px;
  height:17px;
  flex-shrink:0;
  accent-color:#00d9a5;
  cursor:pointer;
}

.dts-attach-battery span {
  line-height:1.5;
}
