.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  height: var(--toolbar-offset);
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.dashboard-page {
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.dashboard-page .dashboard-main {
  flex: 1 1 auto;
  height: auto;
  min-height: 100vh;
}

.dashboard-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-brand .pb-logo {
  margin-right: 0;
  margin-bottom: 4px;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-items: stretch;
}

.dashboard-shell.is-collapsed {
  grid-template-columns: 64px 1fr;
}

.dashboard-shell.is-collapsed .menu-label {
  display: none;
}

.dashboard-build-version {
  margin-top: auto;
  padding: 10px 6px 2px;
  color: var(--gray-400);
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.dashboard-shell.is-collapsed .dashboard-build-version {
  padding: 10px 0 2px;
  text-align: center;
}

.dashboard-shell.is-collapsed .settings-menu-item,
.dashboard-shell.is-collapsed .menu-toggle {
  justify-content: center;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
}

.menu-toggle-icon svg {
  fill: currentColor;
}

.new-form-menu {
  position: relative;
  width: 100%;
}

.new-form-menu > .settings-menu-item {
  width: 100%;
}

.new-form-dropdown {
  position: absolute;
  top: 0;
  left: calc(100% + var(--menu-inline-gap));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  min-width: 220px;
  z-index: 1100;
}

.new-form-dropdown.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--menu-stack-gap);
}

.new-form-dropdown .ant-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  box-shadow: none;
}

.new-form-dropdown .ant-btn:hover,
.new-form-dropdown .ant-btn:active {
  box-shadow: none;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 24px;
}

.dashboard-header .anticon,
.column-header .anticon,
.form-actions .anticon,
.form-meta .anticon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-header .anticon svg,
.column-header .anticon svg,
.form-actions .anticon svg,
.form-meta .anticon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.dashboard-main {
  padding: var(--page-padding);
  padding-top: var(--content-top);
  width: 100%;
  height: auto;
  min-height: 100vh;
}

.dashboard-skeleton {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  padding: 20px 32px 32px;
}

.skeleton-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-logo {
  width: 180px;
  height: 26px;
  border-radius: 8px;
  background: var(--skeleton-gradient);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-actions {
  display: flex;
  gap: 12px;
}

.skeleton-button {
  width: 120px;
  height: 40px;
}

.skeleton-body {
  display: flex;
  gap: 16px;
  height: calc(100vh - 140px);
}

.skeleton-menu {
  width: 64px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-menu-item {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--skeleton-gradient);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  height: 100%;
}

.skeleton-column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
}

.skeleton-subtitle {
  width: 120px;
  height: 16px;
}

.skeleton-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--skeleton-gradient);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-column-header {
  background: var(--gray-50);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
  margin-top: 0;
  align-items: stretch;
  min-height: 100%;
}

.status-column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--shell-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.column-header {
  background: var(--gray-50);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-header h2 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-column[data-status="rejected"] .column-header h2,
.status-column[data-status="rejected"] .column-header .anticon {
  color: var(--red-700);
}

.status-column[data-status="pending"] .column-header h2,
.status-column[data-status="pending"] .column-header .anticon {
  color: var(--orange-500);
}

.status-column[data-status="draft"] .column-header h2,
.status-column[data-status="draft"] .column-header .anticon {
  color: var(--gray-500);
}

.status-column[data-status="approved"] .column-header h2,
.status-column[data-status="approved"] .column-header .anticon {
  color: var(--green-700);
}

.status-column[data-status="rejected"] .column-header .anticon svg,
.status-column[data-status="pending"] .column-header .anticon svg,
.status-column[data-status="draft"] .column-header .anticon svg,
.status-column[data-status="approved"] .column-header .anticon svg {
  fill: currentColor;
}

.count {
  background: transparent;
  color: var(--gray-500);
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
}

.form-list {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--field-radius);
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.form-card-title {
  min-width: 0;
}

.form-card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.form-card-number {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.form-card-body {
  margin-bottom: 8px;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}

.form-meta--footer {
  margin: 0;
}

.form-status {
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-status--pending {
  color: var(--orange-500);
}

.form-status--rejected {
  color: var(--red-600);
}

.form-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-footer-actions {
  display: flex;
  gap: 8px;
}

.btn-revise {
  background: transparent;
  border-color: var(--button-brand);
  color: var(--button-brand);
}

.btn-revise:hover,
.btn-revise:active,
.btn-revise:focus {
  background: var(--overlay-brand-8);
  border-color: var(--button-brand);
  color: var(--button-brand);
}

.modal-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-row h3 {
  margin: 0;
}

.modal-title-row .anticon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.form-description {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-main .dashboard-shell.is-collapsed .menu-label {
    display: inline;
  }

  .dashboard-shell.is-collapsed .settings-menu-item,
  .dashboard-shell.is-collapsed .menu-toggle {
    justify-content: flex-start;
  }

  .status-columns {
    grid-template-columns: 1fr;
  }

  .skeleton-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: var(--page-padding);
    padding-top: var(--content-top);
  }

  .dashboard-header {
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
