/* HouseDesign 自訂樣式（版面與元件主要用 AdminLTE 4 / Bootstrap 5.3）。 */

/* 側邊欄品牌與使用者頭像（沒有圖片，用圖示與名字第一個字） */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-size: 1rem;
  vertical-align: middle;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 600;
  line-height: 1;
}

.user-menu .user-header .user-avatar-lg {
  width: 5rem;
  height: 5rem;
  font-size: 2rem;
  border: 3px solid rgba(255, 255, 255, .35);
}

/* 頁首：標題旁的小字說明與按鈕列 */
.app-content-header .page-subtitle {
  font-size: .875rem;
  color: var(--bs-secondary-color);
}

.app-content-header .breadcrumb {
  font-size: .875rem;
  margin-bottom: .25rem;
}

/* 卡片裡的表格貼齊邊緣 */
.card > .table-responsive > .table,
.card > .table {
  margin-bottom: 0;
}

.card > .table-responsive > .table > :not(caption) > * > *:first-child,
.card > .table > :not(caption) > * > *:first-child {
  padding-left: 1rem;
}

/* 統計方塊的數字 */
.small-box .inner h3 {
  font-size: 2rem;
}

/* Agent 網址等需要整串複製的值 */
.secret-value {
  font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .875rem;
}

.capability-list .form-check {
  margin-bottom: .35rem;
}

/* 單頁工作台：圖面縮放與證據定位 */
.viewer-stage {
  position: relative;
  height: 72vh;
  min-height: 420px;
  overflow: hidden;
  background: #eef0f2;
  cursor: grab;
  touch-action: none;
}

.viewer-stage.dragging {
  cursor: grabbing;
}

.viewer-content {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.viewer-content img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  background: #fff;
}

#viewer-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.evidence-shape {
  fill: rgba(255, 193, 7, 0.25);
  stroke: #dc3545;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.workbench-item {
  cursor: pointer;
}

.workbench-item.selected > td {
  background: #fff3cd;
}

/* 沒有錯誤時不要顯示空的提示框（asp-validation-summary 會留下一個 div） */
.validation-summary-valid {
  display: none;
}
