.bz-view-documents .bz-docServiceFields{
  margin-top:12px;
  display:grid;
  gap:10px;
}

.bz-view-documents #svcAddApplianceBtn,
.bz-view-documents #svcOutcomeBtn,
.bz-view-documents #svcAlarmBtn,
.bz-view-documents #svcCustomerSignBtn{
  min-height:40px;
  padding-top:0;
  padding-bottom:0;
}

.bz-view-documents .bz-docServiceAddedBlock{
  border:1px solid #dbe4ef;
  border-radius:12px;
  background:#f8fbff;
  padding:10px;
}

.bz-view-documents #svcCustomerSignPreview{
  min-width:220px;
  min-height:76px;
  border:1px dashed #bfdbfe;
  border-radius:10px;
  background:#f8fbff;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bz-view-documents .bz-docServiceOutcomeSummary{
  min-height:44px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.bz-view-documents .bz-docServiceOutcomeChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#eff6ff;
  color:#0f172a;
  font-size:12px;
  font-weight:700;
}

.bz-view-documents .bz-docServiceOutcomeChip strong{
  color:#003d99;
}

.bz-view-documents #svcOutcomeBtn:disabled,
.bz-view-documents #svcAlarmBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.bz-view-documents .bz-docServiceOutcomeTab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#eff6ff;
  color:#0f172a;
  font-size:12px;
  font-weight:700;
}

.bz-view-documents .bz-docServiceOutcomeTabAction,
.bz-view-documents .bz-docServiceOutcomeTabRemove{
  border:0;
  background:transparent;
  color:#1e3a8a;
  font-size:12px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  padding:0;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.bz-view-documents .bz-docServiceOutcomeTabRemove{
  font-size:14px;
}

.bz-view-documents .bz-docServiceSignPreviewCard{
  position:relative;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}

.bz-view-documents .bz-docServiceSignRemove{
  position:absolute;
  top:-4px;
  right:-4px;
  width:18px;
  height:18px;
  border:0;
  border-radius:999px;
  background:#1e3a8a;
  color:#fff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  line-height:1;
}

.bz-view-documents .bz-docServiceSignName{
  font-size:12px;
  font-weight:700;
  color:#1e293b;
  text-align:center;
}

.bz-view-documents #svcSignModal .bz-input,
.bz-view-documents #svcSignModal .bz-select{
  font-size:16px;
}

body.bz-service-modal-open{
  overflow:hidden;
  position:fixed;
  top:calc(var(--bz-service-scroll-y, 0px) * -1);
  left:0;
  right:0;
  width:100%;
  padding-right:var(--bz-service-scrollbar-compensation, 0px);
}

@media (max-width:760px){
  .bz-view-documents #svcSignModal .bz-docServiceModalCard{
    margin:0 auto;
    max-height:calc(100dvh - 20px);
  }
  .bz-view-documents #svcSignCanvas{
    height:180px !important;
  }
}

.bz-view-documents .bz-docServiceFields .bz-section-title{
  margin:0;
}

.bz-view-documents .bz-docServiceGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.bz-view-documents .bz-docServiceGrid--triple{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.bz-view-documents .bz-docServiceUnitField{
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px;
  gap:8px;
}

.bz-view-documents .bz-docServiceCard{
  border:1px solid #dbe4ef;
  border-radius:12px;
  background:#f8fbff;
  padding:10px;
  display:grid;
  gap:8px;
}

.bz-view-documents .bz-docServiceApplianceList{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.bz-view-documents .bz-docServiceApplianceItem{
  border:1px solid #dbe4ef;
  border-radius:10px;
  background:#fff;
  padding:10px 12px;
}

.bz-view-documents .bz-docServiceModal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.38);
  z-index:2147483000;
  padding:18px;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  isolation:isolate;
}

.bz-view-documents .bz-docServiceModal[hidden]{
  display:none;
}

.bz-view-documents .bz-docServiceModalCard{
  position:relative;
  z-index:1;
  max-width:980px;
  margin:20px auto 0;
  border:1px solid #d9e2ec;
  border-radius:16px;
  background:#fff;
  box-shadow:0 16px 32px rgba(15,23,42,.18);
  padding:14px;
  display:grid;
  gap:10px;
  max-height:calc(100vh - 50px);
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

body.bz-service-modal-open .bz-view-documents .bz-docPanel--preview{
  z-index:0 !important;
}

body.bz-service-modal-open .bz-view-documents .bz-docPanel--form{
  z-index:auto !important;
}

body.bz-service-modal-open .bz-view-documents .bz-docPreviewStage,
body.bz-service-modal-open .bz-view-documents .bz-docPreviewExportRoot{
  pointer-events:none;
}

.bz-view-documents .bz-docServiceModalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.bz-view-documents .bz-docServiceSectionRibbon{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:0;
  border-radius:12px 12px 0 0;
  background:#003d99;
  padding:10px 14px;
  cursor:pointer;
  list-style:none;
}

.bz-view-documents .bz-docServiceSectionRibbon::-webkit-details-marker{
  display:none;
}

.bz-view-documents .bz-docServicePart{
  border:1px solid #dbe4ef;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.bz-view-documents .bz-docServicePartBody{
  padding:12px;
}

.bz-view-documents .bz-docServiceSectionRibbonTitle{
  font-size:13px;
  font-weight:800;
  color:#fff;
  letter-spacing:.02em;
}

.bz-view-documents .bz-docServiceSectionRibbon::after{
  content:"+";
  color:#fff;
  font-size:18px;
  font-weight:800;
  line-height:1;
}

.bz-view-documents .bz-docServicePart[open] .bz-docServiceSectionRibbon::after{
  content:"−";
}

.bz-view-documents .bz-docServiceInspectToggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:2px;
  cursor:pointer;
}

.bz-view-documents .bz-docServiceInspectToggle input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}

.bz-view-documents .bz-docServiceInspectTrack{
  width:48px;
  height:28px;
  border-radius:999px;
  background:#cbd5e1;
  position:relative;
  transition:background-color .2s ease;
}

.bz-view-documents .bz-docServiceInspectTrack::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.2);
  transition:transform .2s ease;
}

.bz-view-documents .bz-docServiceInspectToggle input:checked + .bz-docServiceInspectTrack{
  background:#003d99;
}

.bz-view-documents .bz-docServiceInspectToggle input:checked + .bz-docServiceInspectTrack::after{
  transform:translateX(20px);
}

.bz-view-documents .bz-docServiceInspectText{
  font-size:12px;
  font-weight:800;
  color:#0f172a;
}

.bz-view-documents .bz-docServiceCard textarea{
  min-height:78px;
}

.bz-view-documents .bz-docServiceInnerCard{
  margin-top:10px;
  padding:12px;
  border:1px solid #dbe4ef;
  border-radius:12px;
  background:#f8fbff;
}

.bz-view-documents .bz-docServiceDefectActionList{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.bz-view-documents .bz-docServiceDefectActionCard{
  padding:12px;
  border:1px solid #dbe4ef;
  border-radius:12px;
  background:#f8fbff;
}

.bz-view-documents .bz-docServiceDefectActionCardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.bz-view-documents .bz-docServiceAlarmTestTabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.bz-view-documents .bz-docServiceAlarmTestTab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#eff6ff;
  color:#0f172a;
  font-size:12px;
  font-weight:700;
}

.bz-view-documents .bz-docServiceAlarmTestTabRemove{
  border:0;
  background:transparent;
  color:#1e3a8a;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  padding:0;
}

.bz-view-documents .bz-docServiceDefectActionCard .bz-input{
  min-height:42px;
}

.bz-view-documents .bz-docServiceDefectActionCard textarea.bz-input{
  min-height:42px;
  height:42px;
  overflow:hidden;
  resize:vertical;
}

.bz-view-documents #svcClearSignBtn,
.bz-view-documents #svcCancelSignBtn,
.bz-view-documents #svcSaveSignBtn{
  min-width:44px;
  min-height:40px;
  padding:0 12px;
  font-size:18px;
  font-weight:800;
}

@media (max-width:760px){
  .bz-view-documents .bz-docServiceGrid,
  .bz-view-documents .bz-docServiceGrid--triple{
    grid-template-columns:1fr;
  }
  .bz-view-documents .bz-docServiceModal{
    padding:10px;
  }
  .bz-view-documents .bz-docServiceModalCard{
    margin:0 auto;
    max-height:calc(100dvh - 20px);
  }
  .bz-view-documents .bz-docServiceUnitField{
    grid-template-columns:minmax(0,1fr) 92px;
  }
}
