/* Compact layout: header, buttons and navigation in two short rows; the rest of the height goes to the table */
body {
  margin: 8px;
}

header.header {
  margin-bottom: 4px;
}

.header-top {
  width: 98%;
  align-items: center;
}

.header-top img.logo,
.logo {
  width: 140px;
}

.header-title {
  margin: 0;
  text-align: center;
  flex: 1;
}

.header-title h2 {
  margin: 0;
  font-size: 20px;
}

.header-title h3 {
  margin: 0;
  font-size: 13px;
}

.buttons-container {
  max-width: 98%;
}

.buttons-row {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 4px 0;
}

.buttons-row button {
  width: auto;
  height: 34px;
  padding: 0 12px;
}

#header_nav {
  grid-template-columns: 36px minmax(0, 40vw) 36px;
  margin: 0;
}

.nav_side svg,
.nav_arrow {
  width: 36px;
  height: 36px;
}

.nav_center h4 {
  margin: 0;
  font-size: 15px;
}

.nav_center h5 {
  margin: 0;
  font-size: 13px;
  font-weight: normal;
}

#control_buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

#section_label {
  display: inline-flex;
  min-width: 110px;
  justify-content: center;
  align-items: center;
}

.tab_cabinet {
  width: 98%;
}

.tab_folder {
  padding: 5px 18px;
}

.tab_content {
  min-height: 0;
  margin: 0;
}

.table-wrapper {
  overflow-x: auto;
  max-height: calc(100vh - 230px);
}

thead th td {
  font-size: 11px;
}

/* Long values (states, amounts, comments) wrap inside their column instead of spilling over */
#pending_table td,
#ended_table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
