/* Unified refresh controls at the right edge of table toolbars. */
.table-tools > :is(.table-refresh, .table-refresh-btn),
.attendance-table-toolbar > :is(.table-refresh, .table-refresh-btn) {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  align-self: center;
  justify-self: end;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid #d7e0e9;
  border-radius: 9px;
  background: #fff;
  color: #52647b;
  line-height: 1;
}
.table-tools > :is(.table-refresh, .table-refresh-btn) { order: 99; }
.table-tools > :is(.table-refresh, .table-refresh-btn) svg,
.attendance-table-toolbar > :is(.table-refresh, .table-refresh-btn) svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
}
.table-tools > :is(.table-refresh, .table-refresh-btn):hover,
.attendance-table-toolbar > :is(.table-refresh, .table-refresh-btn):hover {
  border-color: #a8c8e7;
  background: #f1f7ff;
  color: #1762bb;
}
.attendance-table-panel .absence-approval-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.attendance-table-panel .absence-approval-toolbar > :is(.table-refresh, .table-refresh-btn) {
  margin-left: auto;
}

/* The global last-child SVG rule also matches the only icon in each tile. */
.dashboard-activity .dashboard-shortcut {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
}
.dashboard-activity .dashboard-shortcut-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 9px;
  flex: none;
}
.dashboard-activity .dashboard-shortcut-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0;
  stroke-width: 2;
}
.dashboard-activity .dashboard-shortcut strong,
.dashboard-activity .dashboard-shortcut small {
  min-width: 0;
  line-height: 1.2;
}
.dashboard-activity .dashboard-shortcut strong { align-self: end; font-size: 13px; }
.dashboard-activity .dashboard-shortcut small { align-self: start; font-size: 13px; }
@media (max-width: 700px) {
  .dashboard-activity .dashboard-shortcut {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 62px;
    text-align: left;
  }
  .dashboard-activity .dashboard-shortcut small { display: none; }
  .dashboard-activity .dashboard-shortcut-icon { grid-row: 1 / 3; }
  .dashboard-activity .dashboard-shortcut-grid { align-items: stretch; }
}
@media (max-width: 520px) {
  .dashboard-activity .dashboard-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-activity .dashboard-shortcut-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
