.resource-workbench{
  padding-top:4px!important;
  gap:2px!important;
  row-gap:2px!important;
  align-content:stretch!important;
}
#overview,#registry{margin:0!important}
.resource-commandbar{
  min-height:58px;
  padding:8px 14px;
  margin-bottom:0!important;
}
.title-block h1{margin:2px 0 1px}
.metrics{
  grid-template-columns:repeat(2,96px);
  gap:8px;
}
.workspace-panel{
  border-radius:10px;
  margin-top:0!important;
}
.controls{padding:5px 9px}
.workspace-status{
  min-height:25px;
  padding:4px 10px;
}
.resource-table{
  min-width:1010px;
  table-layout:fixed;
}
.resource-table th,
.resource-table td{
  padding:8px 8px;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:break-word;
  vertical-align:middle;
}
.resource-table thead th{
  font-size:13px;
}
.resource-table th:first-child,
.resource-table td:first-child{
  position:static;
  min-width:0;
  width:56px;
  max-width:56px;
}
.resource-table th:nth-child(2),
.resource-table td:nth-child(2){
  position:static;
  left:auto;
  min-width:0;
  width:160px;
  max-width:160px;
}
.resource-table th:nth-child(3),
.resource-table td:nth-child(3){width:210px}
.resource-table th:nth-child(4),
.resource-table td:nth-child(4){width:112px}
.resource-table th:nth-child(5),
.resource-table td:nth-child(5){width:156px}
.resource-table th:nth-child(6),
.resource-table td:nth-child(6){width:auto}
.resource-table th:nth-child(7),
.resource-table td:nth-child(7){width:112px}

.header-filter{
  position:relative;
  display:inline-block;
}
.header-filter summary{
  display:inline-flex;
  align-items:center;
  gap:4px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  font:inherit;
  font-weight:800;
  color:inherit;
  white-space:nowrap;
}
.header-filter summary::-webkit-details-marker{display:none}
.filter-arrow{
  font-size:10px;
  line-height:1;
  transition:transform .15s ease;
}
.header-filter[open] .filter-arrow{transform:rotate(180deg)}
.header-filter-popover{
  position:absolute;
  z-index:20;
  top:calc(100% + 7px);
  left:0;
  min-width:160px;
  padding:5px;
  background:#fff;
  border:1px solid #cfd5dd;
  border-radius:8px;
  box-shadow:0 10px 28px rgba(15,23,42,.14);
}
#direction-filter-options{min-width:190px}
.filter-option{
  width:100%;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 8px;
  border-radius:6px;
  text-align:left;
  font:inherit;
  font-size:11px;
  color:#273241;
  cursor:pointer;
}
.filter-option:hover{background:#f1f5f7}
.filter-option.active{
  background:#eaf5f3;
  color:#0f5f58;
  font-weight:800;
}
.filter-check{width:12px;text-align:center}

.chip-list{
  max-width:none;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.chip,.kind-chip{
  white-space:normal!important;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.kind-chip{white-space:nowrap!important}
.direction-group td{
  position:static!important;
  background:#f3f6f8!important;
  border-bottom:1px solid var(--line);
  padding:7px 10px!important;
}
.direction-label{
  font-size:11px;
  font-weight:850;
  color:#26323f;
  letter-spacing:.02em;
}
.row-actions{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.card-link{
  color:#8b1e2d;
  font-weight:800;
  text-decoration:none;
}
.card-link:hover{
  color:#6f1421;
  text-decoration:underline;
}

.grid-footer{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.footer-controls{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.footer-page-size{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  color:var(--muted);
}
.footer-page-size select{
  height:30px;
  min-width:62px;
  border:1px solid #cfd5dd;
  border-radius:7px;
  background:#fff;
  padding:3px 6px;
  font:inherit;
  font-size:12px;
}
.pagination{
  display:flex;
  align-items:center;
  gap:8px;
}
.pagination .btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
@media(max-width:1000px){
  .metrics{display:grid}
}
@media(max-width:760px){
  .resource-workbench{padding-top:3px!important;gap:2px!important}
  .resource-commandbar{min-height:46px}
  .metrics{grid-template-columns:repeat(2,78px)}
  .resource-table{min-width:930px}
  .resource-table th:first-child,.resource-table td:first-child{width:52px;max-width:52px}
  .resource-table th:nth-child(2),.resource-table td:nth-child(2){width:145px;max-width:145px}
  .resource-table th:nth-child(3),.resource-table td:nth-child(3){width:190px}
  .resource-table th:nth-child(4),.resource-table td:nth-child(4){width:106px}
  .resource-table th:nth-child(5),.resource-table td:nth-child(5){width:146px}
  .resource-table th:nth-child(7),.resource-table td:nth-child(7){width:104px}
}
