/* ===== Runsheet sidebar ===== */
.rs-sidebar-wrapper{
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* ===== Bath: operation cells ===== */
.rs-filled{
  border:1px solid rgba(34, 197, 94, 0.6);
  background-color: rgba(34, 197, 94, 0.10);
}
.rs-cell[data-locked="1"]{
  border-color: rgba(59,130,246,0.9) !important;
  background-color: rgba(59,130,246,0.22) !important;
}
.rs-cell[data-locked="1"] .js-cell-result-badge{
  color:#dbeafe;
  font-weight:600;
}

/* template expired row */
.tmpl-row--expired{
  color:#9ca3af;
  background-color:#020617;
}
.tmpl-row--expired td{ text-decoration: line-through; }

/* ==============================
   Runsheet Templates layout
   ============================== */
.page--runsheet-templates .rs-templates-layout{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.page--runsheet-templates .rs-templates-main{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
}
.page--runsheet-templates .rs-sidebar-wrapper{
  flex:0 0 320px;
  width:320px;
  max-width:360px;
}
.page--runsheet-templates .rs-sidebar-sticky{
  position:sticky;
  top:12px;
}

/* SP/狭幅は縦積み */
@media (max-width: 900px){
  .page--runsheet-templates .rs-templates-layout{ flex-direction:column; }
  .page--runsheet-templates .rs-sidebar-wrapper{ width:100%; max-width:none; }
}
