.app-shell.approval-shell {
  position: relative;
  grid-template-rows: 68px 0 minmax(0, 1fr);
  background: var(--ui-primary-pale, #fff7f8);
}

.app-shell.approval-shell .topbar {
  height: 60px;
  align-self: start;
}

.app-shell.approval-shell .brand img {
  width: 148px;
}

.app-shell.approval-shell .primary-nav button {
  min-width: 68px;
  padding: 0 14px;
  font-size: 15px;
}

.app-shell.approval-shell .nav-home {
  min-width: 60px !important;
  font-size: 21px !important;
}

.app-shell.approval-shell .top-actions {
  gap: 10px;
  padding: 0 16px;
}

.app-shell.approval-shell .top-action {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 17px;
}

.app-shell.approval-shell .avatar {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.app-shell.approval-shell .tab-strip {
  position: absolute;
  z-index: 50;
  top: 68px;
  right: 25px;
  left: 211px;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

.app-shell.approval-shell .tab-scroll {
  height: 40px;
  background: #e5e5e5;
}

.app-shell.approval-shell .route-tab {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: 40px;
  padding: 0 8px;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

.app-shell.approval-shell .route-tab .tab-close {
  padding: 0;
}

.app-shell.approval-shell .route-tab:hover {
  color: #555;
  background: #f7f7f7;
}

.app-shell.approval-shell .route-tab.active {
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #555;
  font-weight: 400;
}

.app-shell.approval-shell .tab-grid,
.app-shell.approval-shell .tab-menu-wrap {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.app-shell.approval-shell .tab-grid {
  border: 0;
  background: #e5e5e5;
  color: var(--ui-ink, #343034);
  font-size: 16px;
}

.app-shell.approval-shell .workspace-wrap {
  grid-row: 3;
  min-height: 0;
  padding: 0 25px 16px;
}

.app-shell.approval-shell .workspace {
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.approval-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  background: transparent;
}

.approval-process-nav {
  width: 170px;
  min-width: 170px;
  height: 100%;
  min-height: 0;
  padding: 8px;
  overflow: auto;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.approval-process-scroll {
  width: 154px;
  min-width: 154px;
  padding: 0;
  display: block;
  overflow: visible;
}

.approval-process-item {
  width: 154px;
  position: static;
}

.approval-process-trigger {
  width: 154px;
  height: 38px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}

.approval-process-trigger i {
  width: 12px;
  flex: 0 0 12px;
  color: var(--ui-muted, #716a70);
  font-size: 17px;
  font-style: normal;
  line-height: 1;
  text-align: center;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.approval-process-item.open .approval-process-trigger i {
  transform: rotate(90deg);
}

.approval-process-item.active .approval-process-trigger,
.approval-process-trigger:hover {
  border-bottom: 0;
  background: #fff;
  color: var(--ui-accent-ink, #a21c27);
  font-weight: 400;
}

.approval-process-dropdown {
  position: static;
  width: 154px;
  padding: 0;
  display: none;
  transform: none;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.approval-process-item.open .approval-process-dropdown {
  display: block;
}

.approval-process-view {
  width: 154px;
  height: 38px;
  padding: 0 10px 0 24px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13px;
  text-align: left;
}

.approval-process-view:hover,
.approval-process-view.active {
  background: var(--ui-primary-soft, #fbeaec);
  color: var(--ui-accent-ink, #a21c27);
}

.approval-content {
  min-width: 0;
  min-height: 0;
  padding-top: 44px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(56, 36, 42, 0.08);
}

.approval-head {
  height: 43px;
  min-height: 43px;
  padding: 16px 20px 0;
}

.approval-head .toolbar {
  height: 26px;
  margin: 0;
  gap: 12px;
}

.approval-head .toolbar-left,
.approval-head .toolbar-right {
  height: 26px;
  gap: 10px;
}

.approval-head .search-box {
  width: 208px;
  height: 26px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.approval-head .search-box input {
  width: 185px;
  min-width: 185px;
  flex: 0 0 185px;
  height: 26px;
  padding: 0 30px 0 15px;
  border: 1px solid #f4f5f9;
  border-radius: 6px 0 0 6px;
  background: #f4f5f9;
  color: #000;
  font-size: 12px;
}

.approval-head .search-submit {
  width: 38px;
  min-width: 38px;
  height: 26px;
  margin-left: -15px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ui-primary, #b8202b);
  font-size: 14px;
}

.approval-head .search-submit span {
  display: none;
}

.approval-head .toolbar-left .btn[data-action="toggle-list"],
.approval-head .toolbar-left .btn[data-action="approval-columns-toggle"] {
  width: 38px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f4f5f9;
  color: var(--ui-ink, #343034);
  font-size: 15px;
}

.approval-head .toolbar-left .btn[data-action="reload"] {
  width: 17px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-ink, #343034);
  font-size: 15px;
}

.approval-head .toolbar-right > .btn-icon {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-accent-ink, #a21c27);
  font-size: 20px;
}

.approval-head .approval-column-button {
  font-size: 24px !important;
}

.approval-column-wrap {
  position: relative;
  height: 26px;
}

.approval-generic-columns {
  top: 31px;
  right: 0;
  width: 188px;
  max-height: 430px;
}

.approval-generic-columns > div {
  max-height: 360px;
  overflow: auto;
}

.approval-inline-actions {
  height: 26px;
  gap: 6px;
}

.approval-inline-actions .btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}

.approval-head + .approval-body,
.approval-body {
  min-height: 0;
  padding: 16px 20px 0 !important;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.approval-body .table-frame {
  min-height: 0;
  flex: 1;
  border: 1px solid var(--ui-primary-line, #efd0d5);
  border-radius: 5px;
}

.approval-body .data-table th,
.approval-body .data-table td {
  height: 40px;
  padding: 0 8px;
  font-size: 12px;
}

.approval-body .data-table th {
  background: var(--ui-primary-soft, #fbeaec);
  color: #000;
  font-weight: 600;
}

.approval-body .data-table .cell-index {
  left: 0;
  width: 40px !important;
}

.approval-body .data-table .cell-sticky-primary {
  left: 40px;
}

.approval-body .data-table .cell-actions {
  width: 40px !important;
}

.approval-body .cell-actions .row-actions {
  width: 40px;
  justify-content: center;
}

.approval-body .cell-actions .row-actions button:not(:first-child) {
  display: none;
}

.approval-body .table-frame .empty-state {
  position: absolute;
  inset: 40px 0 0;
  min-height: 0;
  display: grid;
  place-content: center;
}

.approval-body .empty-state p {
  display: none;
}

.approval-body .empty-icon {
  width: 60px;
  height: 30px;
  margin: 0 auto 16px;
  border: 6px solid var(--ui-primary, #b8202b);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.approval-body .empty-icon::before {
  top: -10px;
  left: -6px;
  width: 60px;
  height: 12px;
  border: 6px solid var(--ui-primary, #b8202b);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.approval-body .empty-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 18px;
  width: 12px;
  height: 5px;
  border-radius: 3px;
  background: var(--ui-muted, #716a70);
}

.approval-body .empty-state h3 {
  margin: 0;
  color: var(--ui-ink, #343034);
  font-size: 12px;
}

.approval-body .pagination {
  height: 62px;
  min-height: 62px;
  gap: 12px;
  font-size: 12px;
}

.approval-shell .seal-workflow {
  height: 100%;
  min-height: 0;
  background: #fff;
}

.approval-shell .seal-heading {
  display: none;
}

.approval-shell .seal-toolbar {
  height: 43px;
  min-height: 43px;
  padding: 16px 20px 0;
  border: 0;
  background: #fff;
}

.approval-shell .seal-search {
  width: 208px;
  height: 26px;
  overflow: visible;
}

.approval-shell .seal-search input {
  width: 185px;
  min-width: 185px;
  flex: 0 0 185px;
  height: 26px;
  padding: 0 30px 0 15px;
  border: 1px solid #f4f5f9;
  border-radius: 6px 0 0 6px;
  background: #f4f5f9;
  color: #000;
  font-size: 12px;
}

.approval-shell .seal-search .btn {
  width: 38px;
  min-width: 38px;
  height: 26px;
  margin-left: -15px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ui-primary, #b8202b);
  font-size: 14px;
}

.approval-shell .seal-toolbar-actions > * {
  display: none;
}

.approval-shell .seal-toolbar-actions [data-testid="seal-open-create"] {
  height: 26px;
  padding: 0 12px;
  display: inline-flex;
  border-radius: 6px;
  font-size: 12px;
}

.approval-shell .seal-body {
  min-height: 0;
  padding: 16px 20px 0;
  flex: 1;
}

.approval-shell .seal-table-wrap {
  min-height: 0;
  flex: 1;
  position: relative;
  overflow: auto;
  border: 1px solid var(--ui-primary-line, #efd0d5);
  border-radius: 5px;
}

.approval-shell .seal-table {
  width: 100%;
  min-width: 1627px;
  table-layout: fixed;
  color: #000;
  font-size: 12px;
}

.approval-shell .seal-table th,
.approval-shell .seal-table td {
  height: 40px;
  padding: 0 8px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid var(--ui-primary-line, #efd0d5);
  font-size: 12px;
}

.approval-shell .seal-table th {
  background: var(--ui-primary-soft, #fbeaec);
  color: #000;
  font-weight: 600;
}

.approval-shell .seal-table th:nth-child(1) { width: 40px !important; }
.approval-shell .seal-table th:nth-child(2) { width: 137px !important; }
.approval-shell .seal-table th:nth-child(3) { width: 88px !important; }
.approval-shell .seal-table th:nth-child(4) { width: 353px !important; }
.approval-shell .seal-table th:nth-child(5) { width: 132px !important; }
.approval-shell .seal-table th:nth-child(6) { width: 221px !important; }
.approval-shell .seal-table th:nth-child(7) { width: 132px !important; }
.approval-shell .seal-table th:nth-child(8) { width: 88px !important; }
.approval-shell .seal-table th:nth-child(9) { width: 132px !important; }
.approval-shell .seal-table th:nth-child(10) { width: 88px !important; }
.approval-shell .seal-table th:nth-child(11) { width: 176px !important; }
.approval-shell .seal-table th:nth-child(12) { width: 220px !important; }
.approval-shell .seal-table td:last-child {
  width: 220px;
  min-width: 220px;
  overflow: visible;
  white-space: normal;
}
.approval-shell .seal-table .seal-row-actions {
  min-width: max-content;
  flex-wrap: nowrap;
  overflow: visible;
}
.approval-shell .seal-table .seal-row-actions button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  overflow: visible;
}

.approval-shell .seal-table-wrap .seal-state {
  position: absolute;
  inset: 40px 0 0;
  min-height: 0;
  display: grid;
  place-content: center;
  border: 0;
  background: #fff;
}

.approval-shell .seal-table-wrap .seal-state::before {
  content: "";
  width: 60px;
  height: 30px;
  margin: 0 auto 16px;
  border: 6px solid var(--ui-primary, #b8202b);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.approval-shell .seal-state strong {
  color: var(--ui-ink, #343034);
  font-size: 12px;
  font-weight: 500;
}

.approval-shell .seal-pagination {
  height: 62px;
  min-height: 62px;
  justify-content: center;
  color: #111;
  font-size: 12px;
}

.approval-shell .seal-pagination button {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 0;
}

.approval-shell .iconfont {
  font-family: iconfont !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.approval-shell .icon-list::before { content: "\E629"; }
.approval-shell .icon-sync::before { content: "\E647"; }
.approval-shell .icon-subscribe-add::before { content: "\E637"; }
.approval-shell .icon-cloud-download::before { content: "\E654"; }
.approval-shell .icon-select-all::before { content: "\E653"; }
.approval-shell .icon-operation::before { content: "\E669"; }

.filing-approval-content {
  position: relative;
}

.filing-approval-toolbar,
.filing-approval-toolbar-left,
.filing-approval-toolbar-right,
.filing-approval-search,
.filing-approval-date-range {
  display: flex;
  align-items: center;
}

.filing-approval-toolbar {
  height: 26px;
  justify-content: space-between;
  gap: 12px;
}

.filing-approval-toolbar-left,
.filing-approval-toolbar-right {
  height: 26px;
  gap: 10px;
}

.filing-approval-search {
  width: 208px;
  height: 26px;
}

.filing-approval-search input {
  width: 185px;
  min-width: 185px;
  height: 26px;
  padding: 0 30px 0 15px;
  border: 1px solid #f4f5f9;
  border-radius: 6px 0 0 6px;
  outline: 0;
  background: #f4f5f9;
  color: #303133;
  font-size: 12px;
}

.filing-approval-search button {
  width: 38px;
  min-width: 38px;
  height: 26px;
  margin-left: -15px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ui-primary, #b8202b);
  color: #fff;
}

.filing-approval-advanced-button,
.filing-approval-reset,
.filing-approval-export-wrap > button,
.filing-approval-columns-wrap > button {
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-ink, #343034);
}

.filing-approval-advanced-button {
  width: 38px;
  border-radius: 10px;
  background: #f4f5f9;
  font-size: 15px;
}

.filing-approval-advanced-button.active,
.filing-approval-advanced-button:hover {
  background: var(--ui-primary, #b8202b);
  color: #fff;
}

.filing-approval-reset {
  width: 17px;
  font-size: 15px;
}

.filing-approval-reset:hover,
.filing-approval-export-wrap > button:hover,
.filing-approval-columns-wrap > button:hover {
  color: var(--ui-accent-ink, #a21c27);
}

.filing-approval-apply {
  height: 26px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: var(--ui-primary, #b8202b);
  color: #fff;
  font-size: 12px;
}

.filing-approval-export-wrap,
.filing-approval-columns-wrap {
  position: relative;
  height: 26px;
}

.filing-approval-export-wrap > button,
.filing-approval-columns-wrap > button {
  width: 26px;
  color: var(--ui-accent-ink, #a21c27);
  font-size: 24px;
}

.filing-approval-export-menu,
.filing-approval-columns {
  position: absolute;
  z-index: 90;
  top: 31px;
  right: 0;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.filing-approval-export-menu {
  width: 126px;
  padding: 5px 0;
}

.filing-approval-export-menu button {
  width: 100%;
  height: 30px;
  padding: 0 14px;
  border: 0;
  background: #fff;
  color: #606266;
  text-align: left;
  font-size: 12px;
}

.filing-approval-export-menu button:hover {
  background: #f5f7fa;
  color: var(--ui-accent-ink, #a21c27);
}

.filing-approval-columns {
  width: 188px;
  padding-top: 8px;
}

.filing-approval-columns > div {
  max-height: 390px;
  overflow: auto;
}

.filing-approval-columns label {
  min-height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #606266;
  font-size: 12px;
}

.filing-approval-columns label.fixed {
  color: #909399;
}

.filing-approval-columns input {
  margin: 0;
  accent-color: var(--ui-primary, #b8202b);
}

.filing-approval-columns footer {
  padding: 8px 12px;
  border-top: 1px solid #ebeef5;
  text-align: right;
}

.filing-approval-columns footer button {
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--ui-primary, #b8202b);
  border-radius: 3px;
  background: var(--ui-primary, #b8202b);
  color: #fff;
  font-size: 12px;
}

.filing-approval-advanced {
  position: absolute;
  z-index: 65;
  top: 87px;
  right: 0;
  left: 0;
  min-height: 204px;
  padding: 8px 20px 12px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 8px 18px rgba(56, 36, 42, .06);
}

.filing-approval-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

.filing-approval-filter {
  min-width: 0;
  height: 32px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.filing-approval-filter > span {
  color: #111;
  font-size: 12px;
  font-weight: 600;
}

.filing-approval-filter > input,
.filing-approval-filter > select,
.filing-approval-date-range {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  border-radius: 4px;
  outline: 0;
  background: #f4f5f9;
  color: #606266;
  font-size: 12px;
}

.filing-approval-filter > input,
.filing-approval-filter > select {
  padding: 0 12px;
}

.filing-approval-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
}

.filing-approval-date-range input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #606266;
  font-size: 12px;
  text-align: center;
}

.filing-approval-date-range i {
  display: grid;
  place-items: center;
  color: var(--ui-muted, #716a70);
  font-style: normal;
}

.filing-approval-body {
  padding-top: 16px !important;
}

.filing-approval-table-frame {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: auto;
  border: 1px solid var(--ui-primary-line, #efd0d5);
  border-radius: 5px;
}

.filing-approval-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: #000;
  font-size: 12px;
}

.filing-approval-table th,
.filing-approval-table td {
  height: 40px;
  padding: 0 8px;
  overflow: hidden;
  border-right: 1px solid #fff;
  border-bottom: 1px solid var(--ui-primary-line, #efd0d5);
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filing-approval-table th {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--ui-primary-soft, #fbeaec);
  color: #000;
  font-weight: 600;
  text-align: left;
}

.filing-approval-table .filing-approval-index {
  position: sticky;
  z-index: 5;
  left: 0;
  width: 40px !important;
  text-align: center;
}

.filing-approval-table th.filing-approval-index {
  z-index: 8;
  background: var(--ui-primary-soft, #fbeaec);
}

.filing-approval-table .filing-approval-name {
  position: sticky;
  z-index: 4;
  left: 40px;
}

.filing-approval-table th.filing-approval-name {
  z-index: 7;
  background: var(--ui-primary-soft, #fbeaec);
}

.filing-approval-table .filing-approval-operation {
  position: sticky;
  z-index: 5;
  right: 0;
  width: 40px !important;
  text-align: center;
}

.filing-approval-table th.filing-approval-operation {
  z-index: 8;
  background: var(--ui-primary-soft, #fbeaec);
}

.filing-approval-link {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filing-approval-link:hover {
  color: var(--ui-accent-ink, #a21c27);
}

.filing-approval-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filing-approval-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #909399;
}

.filing-approval-status.success { color: #48bf32; }
.filing-approval-status.success i { background: #48bf32; }
.filing-approval-status.warning { color: #df971f; }
.filing-approval-status.warning i { background: #df971f; }
.filing-approval-status.danger { color: #df4156; }
.filing-approval-status.danger i { background: #df4156; }

.filing-approval-operation button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-muted, #716a70);
  font-size: 16px;
}

.filing-approval-row-menu {
  position: fixed;
  z-index: 125;
  width: 110px;
  padding: 4px 0;
  overflow: hidden;
  border: 1px solid #e1e6eb;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(56, 36, 42, .18);
}

.filing-approval-row-menu button {
  width: 100%;
  height: 32px;
  padding: 0 14px;
  border: 0;
  background: #fff;
  color: #303133;
  font-size: 12px;
  text-align: left;
}

.filing-approval-row-menu button:hover {
  background: var(--ui-primary-pale, #fff7f8);
  color: var(--ui-accent-ink, #a21c27);
}

.filing-approval-table-frame .empty-state {
  position: absolute;
  inset: 40px 0 0;
  min-height: 0;
  display: grid;
  place-content: center;
}

.filing-approval-table-frame .empty-state p {
  display: none;
}

.filing-approval-pagination {
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #111;
  font-size: 12px;
}

.filing-approval-pagination button,
.filing-approval-pagination b {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 400;
}

.filing-approval-pagination button.active {
  background: var(--ui-primary, #b8202b);
  color: #fff;
}

.filing-approval-pagination button:disabled {
  color: var(--ui-muted, #716a70);
}

.filing-approval-pagination b {
  background: #f4f5f9;
}

@media (max-width: 1100px) {
  .filing-approval-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filing-approval-advanced {
    min-height: 252px;
  }
}

@media (max-width: 820px) {
  .app-shell.approval-shell {
    height: 100dvh !important;
    min-height: 0 !important;
    grid-template-rows: 60px minmax(0, 1fr) !important;
  }

  .app-shell.approval-shell .topbar {
    height: 60px;
  }

  .app-shell.approval-shell .brand img {
    width: 150px;
  }

  .app-shell.approval-shell .tab-strip {
    position: static;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--ui-primary-line, #efd0d5);
    border-radius: 0;
  }

  .app-shell.approval-shell .tab-scroll,
  .app-shell.approval-shell .route-tab,
  .app-shell.approval-shell .tab-grid,
  .app-shell.approval-shell .tab-menu-wrap {
    height: 46px;
  }

  .app-shell.approval-shell .workspace-wrap {
    grid-row: 2;
    min-height: 0;
    padding: 0;
  }

  .app-shell.approval-shell .workspace {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .approval-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 230px minmax(520px, auto);
    gap: 0;
    overflow-y: auto;
  }

  .approval-process-nav {
    width: 100%;
    min-width: 0;
    height: 230px;
    border-radius: 0;
  }

  .approval-content {
    min-height: 520px;
    padding-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .approval-head {
    height: auto;
    min-height: 78px;
    padding: 10px 12px;
  }

  .approval-head .toolbar {
    height: auto;
    min-height: 58px;
    align-items: stretch;
  }

  .approval-head .toolbar-left,
  .approval-head .toolbar-right {
    width: 100%;
  }

  .approval-head .search-box {
    width: min(250px, calc(100vw - 106px));
    flex: 0 0 auto;
  }

  .approval-head + .approval-body,
  .approval-body {
    min-height: 420px;
    padding: 10px 12px 0 !important;
  }

  .filing-approval-toolbar {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
  }

  .filing-approval-toolbar-left,
  .filing-approval-toolbar-right {
    width: 100%;
  }

  .filing-approval-toolbar-right {
    justify-content: flex-end;
  }

  .filing-approval-search {
    width: min(250px, calc(100vw - 106px));
  }

  .filing-approval-search input {
    width: calc(100% - 23px);
    min-width: 0;
  }

  .filing-approval-advanced {
    top: 78px;
    min-height: calc(100% - 78px);
    padding: 14px 12px;
  }

  .filing-approval-filter-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .filing-approval-filter {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .filing-approval-body {
    min-height: 420px;
    padding-top: 10px !important;
  }

  .filing-approval-pagination {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* The seal filter grows when it wraps; let the approval column flow with it. */
@media (max-width: 1260px) {
  .approval-shell .seal-toolbar {
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 20px 14px !important;
  }

  .approval-shell .seal-filter-row {
    width: 100%;
  }

  .approval-shell .seal-body {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .approval-page {
    grid-template-rows: 230px auto;
  }

  .approval-content {
    height: auto;
    min-height: 520px;
    overflow: visible;
  }

  .approval-shell .seal-body {
    min-height: 500px;
    flex: 0 0 auto;
    overflow: visible;
  }

  .approval-shell .seal-table-wrap {
    min-height: 420px;
  }
}
