/* SWLARC Club Management v2.09.2 — Officers Page Layout Cleanup */

/* Leadership is the primary Officers-page content. */
#tableView.swlarc-officers-layout2091 #swlarcLeadershipCenter209{
  order:-20;
  margin-top:0;
  margin-bottom:12px;
}

/* Collapse the large v2.00 Club Business Center only on Officers. */
#clubBusinessCenterPanel.cb-officers-compact2091{
  display:block;
  margin:0 0 14px;
  gap:0;
}

#clubBusinessCenterPanel.cb-officers-compact2091 > .cb-hero,
#clubBusinessCenterPanel.cb-officers-compact2091 > .cb-metrics,
#clubBusinessCenterPanel.cb-officers-compact2091 > .cb-core-workspace,
#clubBusinessCenterPanel.cb-officers-compact2091 > .cb-current-label{
  display:none!important;
}

#clubBusinessCenterPanel.cb-officers-compact2091 > .cb-related-workspace{
  display:none!important;
}

#clubBusinessCenterPanel.cb-officers-compact2091.show-related2091 > .cb-related-workspace{
  display:block!important;
  padding:12px;
  border:1px solid #d8e0e8;
  border-top:0;
  background:#fff;
}

#clubBusinessCenterPanel.cb-officers-compact2091.show-related2091 .cb-related-workspace .cb-section-head{
  margin-bottom:8px;
}

#clubBusinessCenterPanel.cb-officers-compact2091.show-related2091 .cb-related-links{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* Small supporting toolbar instead of another dashboard. */
.officer-business-toolbar2091{
  min-height:52px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:#fff;
  border:1px solid #d8e0e8;
  border-left:4px solid #174a78;
  box-shadow:0 4px 12px rgba(16,42,67,.04);
}

.officer-business-title2091{
  min-width:145px;
}

.officer-business-title2091 span{
  display:block;
  color:#687b8e;
  font-size:9px;
  line-height:1;
  font-weight:800;
  letter-spacing:.14em;
}

.officer-business-title2091 b{
  display:block;
  margin-top:4px;
  color:#102a43;
  font-size:13px;
}

.officer-business-actions2091{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}

.officer-business-actions2091 button{
  min-height:32px;
  padding:0 11px;
  border:1px solid #b9c7d3;
  border-radius:2px;
  background:#f7f9fb;
  color:#183a5a;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

.officer-business-actions2091 button:first-child{
  color:#fff;
  background:#174a78;
  border-color:#174a78;
}

.officer-business-actions2091 button:hover{
  filter:brightness(.97);
}

/* The leadership cards already provide the primary readable officer view.
   Keep the position-record toolbar/table compact below them. */
#tableView.swlarc-officers-layout2091 #addRecord[data-officers-hidden2091="1"]{
  display:none!important;
}

#tableView.swlarc-officers-layout2091 .leadership-records-label209{
  margin-top:12px;
  margin-bottom:6px;
}

#tableView.swlarc-officers-layout2091 .table-panel{
  box-shadow:0 5px 16px rgba(13,34,66,.05);
}

#tableView.swlarc-officers-layout2091 .table-panel th{
  padding-top:8px;
  padding-bottom:8px;
  font-size:9px;
}

#tableView.swlarc-officers-layout2091 .table-panel td{
  padding-top:8px;
  padding-bottom:8px;
  font-size:11px;
}

/* Remove excessive white gap between page controls and Leadership. */
#tableView.swlarc-officers-layout2091{
  padding-top:0;
}

@media (max-width:950px){
  #clubBusinessCenterPanel.cb-officers-compact2091.show-related2091 .cb-related-links{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .officer-business-toolbar2091{
    align-items:flex-start;
    flex-direction:column;
  }

  .officer-business-actions2091{
    justify-content:flex-start;
  }
}

@media (max-width:650px){
  #clubBusinessCenterPanel.cb-officers-compact2091.show-related2091 .cb-related-links{
    grid-template-columns:1fr;
  }

  .officer-business-actions2091{
    width:100%;
  }

  .officer-business-actions2091 button{
    flex:1 1 46%;
  }
}


/* v2.09.2: a Committees module must never render inside the Officers page. */
#tableView.swlarc-officers-layout2091 .officers-stray-committees2092{
  display:none!important;
}

/* Position Records must begin after the compact Club Business toolbar. */
#tableView.swlarc-officers-layout2091 > .leadership-records-label209{
  margin-top:10px;
  margin-bottom:6px;
}
