﻿:root{
  --col-line: #e5e7eb;
  --bg: #0b1220;
  --panel: #0f1b33;
  --panel-2:#0c1730;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#0f172a;
  --line:#e5e7eb;
  --brand:#2563eb;
  --brand-2:#1d4ed8;
  --accent:#6ae661;
  --shadow: 0 10px 25px rgba(15, 23, 42, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{ box-sizing:border-box; }

/**/
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  height:100%;
  background:#f6f7fb;
}

/**/
.layout{ display:flex; min-height:100vh; }

/**/
.sidebar{
  width:360px;
  background: linear-gradient(180deg, #0b4a6f, #0b3b66);
  color:#eaf2ff;
  padding:22px 18px;
  position: sticky;
  top:0;
  height:100vh;
  overflow: auto;
  display:flex;
  flex-direction:column;
}

.user-box{
  padding:18px 18px;
  border-radius:14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
}

.user-ident{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.user-links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}

.inline-form{
  display:flex;
  margin:0;
  width:100%;
}

.user-name{
  font-size:29px;
  font-weight:800;
  line-height:1.05;
}

.user-meta{
  font-size:17px;
  color:rgba(234,242,255,.72);
  font-family: var(--mono);
}

.user-role{
  margin-top:8px;
  font-size:18px;
  color:rgba(234,242,255,.78);
}


.logout-mini{
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  min-height:38px;
  width:100%;
  padding:0 10px;
  border-radius:12px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  text-decoration:none;
  color:white;
  border:0;
  cursor:pointer;
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
}

.user-mini{
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  min-height:38px;
  width:100%;
  padding:0 10px;
  border-radius:12px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  text-decoration:none;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
}

.user-mini:hover,
.user-mini.active{
  background: rgba(255,255,255,.14);
}

.logout-mini:hover{
  background: rgba(255,255,255,.14);
}

/**/
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  color:#eaf2ff;
  text-decoration:none;
}

.brand:hover{
  opacity:.96;
}

.brand:focus-visible{
  outline:2px solid rgba(255,255,255,.6);
  outline-offset:3px;
  border-radius:12px;
}

/**/
.brand .logo{
  width:42px;
  height:42px;
  border-radius:50%;
  background-image:url("/static/img/logo.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  background-color: rgba(255,255,255,.06);
  box-shadow: 0 0 0 2px rgba(255,255,255,.10);
}

/**/
.brand .title b{
  font-size:18px;
  letter-spacing:.5px;
  line-height:1.1;
}

.brand .title span{
  display:block;
  margin-top:4px;
  font-size:13px;
  opacity:.75;
}
/**/
.nav{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.15);
}

/**/
.nav h4{
  margin:0 0 10px 0;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.9;
}

/**/
.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border-radius:12px;
  color:#eaf2ff;
  text-decoration:none;
  margin-bottom:6px;
  background: rgba(255,255,255,.06);
  transition:.15s ease;
  font-size:19px;
  line-height:1.3;
}

/**/
.nav a:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/**/
.nav a.active{
  background: rgba(125,233,117,.2);
  outline:1px solid rgba(52,190,94,.35);
}

/**/
.nav .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: rgba(255,255,255,.75);
}

/**/
.nav a.active .dot{ background: var(--accent); }

/**/
details.nav-dd{
  margin-bottom: 6px;
}

/**/
details.nav-dd > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;

  display:flex;
  align-items:center;
  gap:8px;
  padding:11px 13px;
  border-radius:12px;
  color:#eaf2ff;
  background: rgba(255,255,255,.06);
  transition:.15s ease;
  font-size:17px;
  line-height:1.3;
}

/**/
details.nav-dd > summary::-webkit-details-marker{ display:none; }
details.nav-dd > summary:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/**/
details.nav-dd.active > summary{
  background: rgba(125,233,117,.2);
  outline:1px solid rgba(52,190,94,.35);
}

/**/
details.nav-dd.active > summary .dot{ background: var(--accent); }

/**/
.dd-caret{
  margin-left:auto;
  opacity:.85;
  transition:.12s ease;
  transform: rotate(-90deg);
  font-size:17px;
}

/**/
details.nav-dd[open] .dd-caret{ transform: rotate(0deg); }

/**/
.dd-list{
  margin: 7px 0 11px 19px;
  padding-left: 11px;
  border-left: 1px solid rgba(255,255,255,.18);

  display:flex;
  flex-direction:column;
  gap:6px;
}

/**/
.dd-list a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:10px;
  text-decoration:none;
  color: rgba(234,242,255,.92);
  font-size:14px;
  background: rgba(255,255,255,.04);
  transition:.12s ease;
  margin-bottom:0;
  line-height:1.35;
}

/**/
.dd-list a:hover{ background: rgba(255,255,255,.10); }

/**/
.dd-list a.active{
  background: rgba(125,233,117,.18);
  outline: 1px solid rgba(52,190,94,.32);
  font-weight:800;
}

.nav-subdd{
  margin-bottom:6px;
}

.nav-subdd > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:10px;
  color: rgba(234,242,255,.92);
  font-size:14px;
  background: rgba(255,255,255,.04);
  transition:.12s ease;
  line-height:1.35;
}

.nav-subdd > summary::-webkit-details-marker{ display:none; }

.nav-subdd > summary:hover{
  background: rgba(255,255,255,.10);
}

.nav-subdd.active > summary{
  background: rgba(125,233,117,.18);
  outline: 1px solid rgba(52,190,94,.32);
  font-weight:800;
}

.nav-subdd.active > summary .mini-dot{
  background: var(--accent);
}

.subdd-list{
  margin: 7px 0 5px 15px;
  padding-left: 11px;
  border-left: 1px solid rgba(255,255,255,.14);
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav a.subitem{
  padding:7px 11px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:0;
}

/**/
.mini-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
}

/**/
.dd-list a.active .mini-dot{ background: var(--accent); }

/**/
.content{
  flex:1;
  padding:26px 28px;
  min-width: 0;
}

.flash-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}

.flash-banner{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow);
  font-weight:600;
}

.flash-banner.success,
.flash-banner.ok{
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #166534;
}

.flash-banner.error{
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.flash-banner.warn,
.flash-banner.warning{
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/**/
.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:16px;
}

/**/
.header h1{
  margin:0;
  font-size:42px;
  letter-spacing:-.02em;
}

/**/
.chiprow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

/**/
.chip{
  border:1px solid var(--line);
  background:#fff;
  padding:7px 10px;
  border-radius:999px;
  font-size:14px;
  color:#111827;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/**/
.chip b{ font-family:var(--mono); font-weight:700; }
.chip.primary{
  border-color: rgba(37,99,235,.25);
  background: rgba(37,99,235,.08);
  color:#0b2b6b;
}

/**/
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-bottom:18px;
}

/**/
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

/**/
.cardhead{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

/**/
.cardhead h3{ margin:0; font-size:14px; letter-spacing:.02em; }
.cardbody{ padding:14px 16px; }

/**/
.footerlinks{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
}

/**/
.footerlinks a{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}

.footerlinks a[href="javascript:history.back()"],
.footerlinks a.nav-back,
.footerlinks a[href="/"],
.footerlinks a.nav-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid #c7d2fe;
  background:#eff6ff;
  font-size:0;
  line-height:1;
  text-decoration:none;
}

.footerlinks a[href="javascript:history.back()"]::before,
.footerlinks a.nav-back::before{
  content:"\2190";
  font-size:17px;
  font-weight:700;
  color:#1d4ed8;
}

.footerlinks a[href="/"]::before,
.footerlinks a.nav-home::before{
  content:"\1F3E0";
  font-size:16px;
  font-weight:700;
  color:#1d4ed8;
}

.footerlinks a[href="javascript:history.back()"]:hover,
.footerlinks a.nav-back:hover,
.footerlinks a[href="/"]:hover,
.footerlinks a.nav-home:hover{
  background:#dbeafe;
  text-decoration:none;
}

.footerlinks a[href="javascript:history.back()"]:focus-visible,
.footerlinks a.nav-back:focus-visible,
.footerlinks a[href="/"]:focus-visible,
.footerlinks a.nav-home:focus-visible{
  outline:2px solid #1d4ed8;
  outline-offset:2px;
}

.footerlinks.right{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

/**/
.footerlinks a:hover{ text-decoration:underline; }

/**/
.scroll-box{
  max-height: 90vh;
  overflow: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

/**/
.tablewrap.scroll-box{ border-radius: var(--radius-sm); }


/**/
.scroll-wrap{ position: relative; }


/**/
.scroll-tools{
  position:absolute;
  right:10px;
  bottom:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:50;
  pointer-events:none;
}

/**/
.scroll-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .10);
  display:grid;
  place-items:center;
  cursor:pointer;
  pointer-events:auto;
  user-select:none;
}

/**/
.scroll-btn:hover{ filter: brightness(.98); }
.scroll-btn:active{ transform: translateY(1px); }
.scroll-tools[hidden]{ display:none; }
.scroll-btn[hidden]{ display:none; }
.scroll-btn svg{ width:18px; height:18px; opacity:.75; }

/**/
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:14px;
}

/**/
.search{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:center;
}

/**/
.searchbox{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}

/**/
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 180px;
}

.field.field-full{
  width:100%;
  min-width:100%;
}

/**/
.field label{
  font-size:12px;
  letter-spacing:.04em;
  color: var(--muted);
  font-weight:600;
}


/**/
.input{
  height:38px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  outline:none;
  font-size:14px;
}

/**/
.input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

/**/
.btns{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
}

/**/
.btn{
  height:38px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  color:#111827;
  align-items:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/**/
.btn.primary{
  border-color: rgba(37,99,235,.25);
  background: rgba(37,99,235,.10);
  color:#0b2b6b;
}

/**/
.num{
  text-align:right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  white-space:nowrap;
}

/**/
.bom tbody tr:hover{ background: rgba(37,99,235,.06); }

.btn:hover{
  filter: brightness(.98);
  transform: translateY(-1px);
}

/**/
.btnlink{
  height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  color:#111827;
  background:#fff;
}

/**/
.btnlink:hover{ filter: brightness(.98); }

/**/
.link{
  color: var(--brand);
  text-decoration:none;
  font-weight:800;
}

/**/
.link:hover{ text-decoration:underline; color: var(--brand-2); }

/**/
.select{
  height:38px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  outline:none;
  font-size:14px;
}

/**/
.select:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

/**/
.hint{ color:var(--muted); font-size:13px; }

.project-chip-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}

.project-chip-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.project-chip-option{
  position:relative;
}

.project-chip-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.project-chip-option span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:#334155;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:.12s ease;
}

.project-chip-option input:checked + span{
  border-color:rgba(37,99,235,.25);
  background:rgba(37,99,235,.10);
  color:#0b2b6b;
}

.project-chip-option.all-chip span{
  border-color:rgba(15,23,42,.10);
  background:#f8fafc;
}

.project-chip-option input:focus + span{
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

/**/
.tablewrap{
  border-radius: var(--radius-sm);
  border:1px solid var(--line);
  background:#fff;
  width: 100%;
}

#item-table{
  width:100% !important;
  min-width:100% !important;
  table-layout:fixed !important;
  border-collapse:separate;
  border-spacing:0;
}

#item-table th,
#item-table td{
  width:auto;
}

#item-table tbody td{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/**/
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
  background:#fff;
  white-space:nowrap;
}

/**/
.badge.raw{ background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.25); }
.badge.sub{ background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.25); }
.badge.unk{ background: rgba(107,114,128,.08); border-color: rgba(107,114,128,.20); }

/**/
.list thead th{
  position: sticky;
  top:0;
  z-index:1;
  background:#fff7cc;
  border-bottom:1px solid var(--col-line);
  border-right:1px solid var(--col-line);
  padding:10px 10px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#3f3f46;
  white-space:nowrap;
}

/**/
.list thead th:last-child{
  border-right:none;
}


/**/
.list tbody td{
  border-bottom:1px solid var(--line);
  border-right: 1px solid var(--col-line);
  padding: 10px 10px;
  font-size:14px;
  vertical-align:top;
}

/**/
.list tbody td:last-child{ border-right:none; }
.list tbody tr:nth-child(even){ background:#fafafa; }
.list tbody tr:hover{ background: rgba(37,99,235,.06); }


/**/
.tbl thead th:last-child{ border-right:none; }

/**/
.tbl tbody td:last-child{ border-right:none; }


/**/
.info-grid{
  display:grid;
  grid-template-columns: 160px 1fr 160px 1fr;
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow:hidden;
  background:#fff;
}

/**/
.info-grid .label{
  background:#fafafa;
  padding:10px 10px;
  font-size:14px;
  font-weight:600;
  color:#374151;
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);
}
/**/
.info-grid .value{
  padding:10px 10px;
  font-size:14px;
  border-bottom:1px solid var(--line);
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.info-grid .value input,
.info-grid .value textarea,
.info-grid .value select{
  width:100%;
  min-width:0;
}

/**/
.info-grid .label.r{ border-left:1px solid var(--line); }
.info-grid .row-end{ border-bottom:none !important; }

/**/
.pn{
  font-family: var(--mono);
  font-weight:800;
  letter-spacing:.02em;
}

/**/
.pn a{
  color: var(--brand);
  text-decoration:none;
  font-weight:800;
  font-family: var(--mono);
}

/**/
.pn a:hover{ text-decoration:underline; }
    
/**/
.mono{
  font-family: var(--mono);
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

/**/
.muted{ color: var(--muted); }
    
/**/
@media (max-width: 980px){
  .sidebar{ width:360px; padding:18px 14px; }
  .content{ padding:18px 16px; }
  .header h1{ font-size:30px; }
  .field{ min-width: 160px; }
  .scroll-box{ max-height: 75vh; }
  .info-grid{
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .info-grid .label.r{
    border-left:none;
  }
}

/**/
@media (max-width: 720px){
  .layout{ flex-direction:column; }
  .sidebar{ position:relative; height:auto; width:auto; }
  .info-grid{
    grid-template-columns: 1fr;
  }
  .info-grid .label{
    border-right:none;
    border-bottom:none;
  }
  .info-grid .label.r{
    border-left:none;
  }
}

/**/
.bom tbody tr:nth-child(even){ background:#fafafa; }
.bom tbody tr:hover{ background: rgba(37,99,235,.06); }

/* table header filter UI */
.th-filter { cursor: pointer; }
.th-filter .th-title{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/**/
.th-filter .th-fbtn{
    margin-left:auto;
    width:30px; height:28px;
    border-radius:999px;
    border:1px solid rgba(37,99,235,.18);
    background: rgba(37,99,235,.06);
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

/**/
.th-filter .th-fbtn:hover{
    transform: translateY(-1px);
    background: rgba(37,99,235,.10);
    border-color: rgba(37,99,235,.28);
}

/**/
.th-filter .th-fbtn:active{ transform: translateY(0px); }
.th-filter .th-fbtn .ico{
    width:14px; height:14px;
    position:relative; display:block;
}
.th-filter .th-fbtn .ico:before,
.th-filter .th-fbtn .ico:after{
    content:"";
    position:absolute; left:0; right:0;
    height:2px; border-radius:2px;
    background:#1f3a8a; opacity:.9;
}

/**/
.th-filter .th-fbtn .ico:before{ top:3px; }
.th-filter .th-fbtn .ico:after{ bottom:3px; }
.th-pill{
    display:inline-flex;
    align-items:center;
    padding:4px 8px;
    border-radius:999px;
    border:1px solid rgba(37,99,235,.22);
    background: rgba(37,99,235,.08);
    color:#0b2b6b;
    font-size:12px;
    font-weight:800;
}

/**/
.th-pill [data-pill-count]{ font-family: var(--mono); }



/* ?꾪꽣 ?앹뾽 ?꾩껜 */
.filter-popover {
  display: flex;
  flex-direction: column;
  max-height: 360px;      /* ?앹뾽 ?꾩껜 ?믪씠 ?쒗븳 */
}

/* 泥댄겕諛뺤뒪 由ъ뒪???곸뿭留??ㅽ겕濡?*/
.filter-popover .filter-list {
  overflow: auto;
  max-height: 280px;      /* ?ш린留??ㅽ겕濡?*/
  padding-bottom: 8px;
}

/* Apply/Close ?곸뿭???섎떒??sticky */
.filter-popover .filter-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

/*Table filter popover*/
.tf-pop{
  position: absolute;
  z-index: 9999;
  width: 320px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
  padding: 10px;
}

/**/
.tf-in{
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(15,23,42,.02);
  outline: none;
}

/**/
.tf-in:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
  background: #fff;
}

/**/
.tf-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/**/
.tf-count{
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

/**/
.tf-btn{
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.03);
  cursor: pointer;
  font-size: 13px;
}

/**/
.tf-btn:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.22);
}

/**/
.tf-btn:active{ transform: translateY(1px); }


/**/
.tf-list{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: #fff;
}

/* option row */
.tf-list label{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
}

/**/
.tf-list label:hover{
  background: rgba(15,23,42,.04);
}

/**/
.tf-list input[type="checkbox"]{
  width: 14px;
  height: 14px;
  accent-color: rgb(37,99,235);
}

/**/
.tf-foot{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(15,23,42,.10);
}

/**/
.bom thead th{
  position: sticky;
  top:0;
  z-index:1;
  background: #fff7cc;
  border-bottom: 1px solid #e8d67a;
  padding: 10px 10px;
  font-size:12px;
  text-transform: uppercase;
  letter-spacing:.08em;
  color:#3f3f46;
  white-space:nowrap;
}

/**/
.bom tbody td{
  border-bottom:1px solid var(--line);
  padding: 10px 10px;
  font-size:14px;
  vertical-align:top;
}

/**/
table.bom{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 980px;
  background:#fff;
}

/**/
.vt-viewport {
  border: 1px solid var(--line);
  border-radius: 10px;
}

/**/
.vt-viewport table {
  margin: 0;
}

/**/
.vt-viewport tbody {
  position: relative;
}

/**/
.vb-spacer td{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
  

/* part number 洹몃９ 援щ텇 諛곌꼍 */
#bom-table tbody tr.pn0 td { background: #f6f3f3; }
#bom-table tbody tr.pn1 td { background: #f3fcff; }

#bom-table tbody tr.pn0:hover td,
#bom-table tbody tr.pn1:hover td { background: #e1e3e9; }

/* BOM TREE (replace old CSS)*/
/* 0) l3-holder: ?먮━ ??李⑥??섍쾶 */
#tree-table tr.l3-holder,
#tree-table tr.l3-holder > td{
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  background: transparent !important;
}

/* 5) Usage column 醫 李⑤텇?섍쾶 */
#tree-table tbody tr.l3 td:last-child{
  color: #64748b;
}

/* form input inside info-grid */

.info-grid input{
  width:100%;
  box-sizing:border-box;
  padding:6px 8px;
  font-size:13px;
  border:1px solid #c7b8b8;
  border-radius:4px;
  background:#fff;
}

.info-grid input:focus{
  outline:none;
  border-color:#1a3176;
  box-shadow:0 0 0 2px rgba(1, 27, 105, 0.15);
}

.info-grid textarea{
  width:100%;
  box-sizing:border-box;
  padding:6px 8px;
  border:1px solid #cfd4dc;
  border-radius:4px;
}

/* label alignment */

.info-grid .label{
  font-weight:600;
  color:#051f42;
  font-size:13px;
}

/* value spacing */

.info-grid .value{
  padding-right:14px;
}

/* nicer row height */

.info-grid{
  row-gap:6px;
}

.card.edit-mode{
  border-color:#4f7cff;
}

.img-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}

.img-modal-bg{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}

.img-modal-box{
  position:relative;
  width:min(1100px, 92vw);
  max-height:88vh;
  margin:3vh auto 0;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.img-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid #e5e7eb;
}

.img-modal-head-left{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.img-modal-head-left h3{
  margin:0;
}

.img-modal-name{
  font-size:14px;
  font-weight:600;
  color:#444;
}

.img-modal-head-right{
  display:flex;
  gap:8px;
  align-items:center;
}

.img-modal-body{
  padding:20px;
}

.img-modal-gallery{
  min-height:450px;              /* 鍮④컙 諛뺤뒪 ?믪씠 */
  max-height:68vh;
  overflow:auto;
  display:flex;
  flex-wrap:wrap;                /* 2媛쒕㈃ ?꾨옒濡??대젮媛?*/
  align-content:flex-start;
  gap:16px;
  border:1px solid #d9dee7;      /* 鍮④컙 諛뺤뒪 ?먮굦 */
  border-radius:8px;
  padding:16px;
  background:#fafbfc;
}

.img-modal-empty{
  margin-top: 12px;
  color: #6b7280;
}

.img-modal-status{
  margin-top: 12px;
  font-size: 13px;
  color: #475569;
}

.img-modal-status.error{
  color: #b91c1c;
  font-weight: 700;
}

.img-modal-gallery img{
  max-width:320px;
  max-height:320px;
  object-fit:contain;
  border:1px solid #d8dde6;
  border-radius:8px;
  background:#fff;
  padding:6px;
}

.img-viewer{
  position:fixed;
  inset:0;
  z-index:10000;
}

.img-viewer-bg{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
}

.img-viewer-box{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.img-viewer-box img{
  max-width:90vw;
  max-height:90vh;
  object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  border-radius:10px;
  background:#fff;
}

.img-item{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  position: relative;
}

.img-item.manage{
  padding-bottom: 6px;
}

.img-delete-btn{
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, .18);
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.img-delete-btn:hover{
  background: rgba(220, 38, 38, .12);
}

.img-modal-box.edit-mode .img-modal-head{
  background: linear-gradient(180deg, #fffafa, #fff5f5);
}

.img-label{
  font-size:13px;
  color:#666;
  text-align:center;
  max-width:160px;
  word-break:break-all;
}

