:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d9e2ef;
  --line-soft: #e8eef6;
  --text: #172033;
  --muted: #64748b;
  --primary: #155bd4;
  --primary-dark: #0f3f99;
  --primary-soft: #e8f0ff;
  --success: #0f8f6a;
  --success-soft: #e8f7f1;
  --warn: #b96500;
  --warn-soft: #fff3df;
  --danger: #c73737;
  --danger-soft: #fff0f0;
  --shadow: 0 12px 32px rgba(20, 39, 73, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: relative;
  background: #10213e;
  color: #d8e6ff;
  padding: 22px 16px 118px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand-mark {
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #10213e;
  background: #ffffff;
  font-weight: 800;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #9fb5d6;
}

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

.nav button {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #c9daf4;
  background: transparent;
  text-align: left;
}

.nav button:hover,
.nav button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
}

.nav .nav-icon {
  font-weight: 700;
  color: #91c2ff;
}

.nav .nav-count {
  min-width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 12px;
}

.sidebar-footer {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 228px;
  z-index: 20;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.role-label {
  margin-bottom: 8px;
  color: #9fb5d6;
  font-size: 12px;
}

.sidebar select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #ffffff;
  background: #132a50;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.crumb {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  height: 40px;
  display: grid;
  grid-template-columns: auto 240px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.btn,
.icon-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
}

.btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  color: #ffffff;
  background: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  color: var(--primary);
  border-color: var(--line);
}

.btn.danger {
  color: var(--danger);
  border-color: #ffd1d1;
  background: var(--danger-soft);
}

.icon-btn {
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
}

.content {
  padding: 24px 28px 36px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.main-grid {
  grid-template-columns: 1.5fr .9fr;
  align-items: start;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 360px;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dashboard-simple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-panel,
.focus-panel,
.compact-panel {
  box-shadow: var(--shadow);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pipeline-step {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbff;
}

.pipeline-count {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.pipeline-step strong,
.row-card strong,
.project-card strong,
.focus-list strong,
.permission-note strong {
  display: block;
}

.pipeline-step span,
.row-card em,
.project-card em,
.focus-list span,
.permission-note span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.project-card {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  text-align: left;
}

.project-card:hover {
  border-color: #b9cff5;
  background: #fbfdff;
}

.project-card b {
  color: var(--primary);
  font-size: 18px;
}

.focus-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.focus-list {
  display: grid;
  gap: 10px;
}

.focus-list div,
.permission-note,
.row-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.permission-note {
  background: var(--primary-soft);
}

.row-card {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.row-card + .row-card {
  margin-top: 10px;
}

.panel,
.metric,
.toolbar,
.detail-head,
.form-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
}

.metric-clickable {
  cursor: pointer;
}

.metric-clickable:hover {
  border-color: #b9cff5;
  transform: translateY(-1px);
}

.metric.active {
  border-color: #1f66d1;
  box-shadow: 0 0 0 2px rgba(31, 102, 209, 0.12), 0 14px 34px rgba(15, 39, 76, 0.08);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
}

.metric-foot {
  margin-top: 6px;
  font-size: 12px;
}

.analysis-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.analysis-head h2 {
  font-size: 24px;
}

.analysis-head p {
  margin-top: 8px;
  color: var(--muted);
}

.analysis-total {
  min-width: 180px;
  padding: 14px;
  border-radius: 8px;
  background: var(--primary-soft);
}

.analysis-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analysis-total strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 16px;
  margin-top: 16px;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 58px;
  gap: 10px;
  align-items: center;
}

.bar-month {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bar-lines {
  display: grid;
  gap: 5px;
}

.bar {
  min-width: 30px;
  height: 20px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  padding-left: 8px;
  color: #ffffff;
  white-space: nowrap;
  font-size: 12px;
  overflow: visible;
}

.bar.current {
  background: var(--primary);
}

.bar.last {
  background: #94a3b8;
}

.bar-change {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.legend-current,
.legend-last {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.legend-current {
  background: var(--primary);
}

.legend-last {
  background: #94a3b8;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
}

.rank-item b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--primary);
}

.rank-item span,
.rank-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-track {
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.rank-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.application-card {
  min-height: 178px;
}

.flow-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.flow-step {
  min-height: 92px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 6px 10px;
  align-items: start;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.flow-step b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--muted);
}

.flow-step strong {
  font-size: 14px;
}

.flow-step span {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.flow-step.done b {
  background: var(--success);
}

.flow-step.todo {
  border-color: #f1d39b;
  background: #fffaf0;
}

.flow-step.todo b {
  background: var(--warn);
}

.table-input,
table select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #ffffff;
}

.attachment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  margin: 0 0 8px 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.attachment-name {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.45;
}

.attachment-tools {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.danger-link {
  color: var(--danger) !important;
}

.up {
  color: var(--success);
}

.down,
.risk {
  color: var(--danger);
}

.warn {
  color: var(--warn);
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 17px;
  font-weight: 800;
}

.page-section-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: none;
}

.page-section-tools > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-collapse-toggle {
  margin-left: auto;
  min-width: 64px;
  flex: 0 0 auto;
}

.panel.is-collapsed {
  padding-bottom: 18px;
}

.panel.is-collapsed .panel-head,
.form-panel.is-collapsed .panel-head {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: none;
}

.filters {
  display: flex;
  gap: 10px;
}

.project-ledger-panel {
  padding: 0;
  overflow: hidden;
}

.project-ledger-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.compact-filters {
  display: grid;
  grid-template-columns: 180px 160px 72px 88px;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.project-filters {
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(130px, 0.8fr)) 72px 92px;
  width: min(100%, 1100px);
}

.compact-filters input {
  width: 180px;
}

.compact-filters select {
  width: 160px;
}

.compact-filters .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
  white-space: nowrap;
}

.project-ledger-list {
  display: flex;
  flex-direction: column;
}

.focus-metric {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.focus-metric.active {
  border-color: rgba(28, 103, 216, 0.55);
  box-shadow: 0 12px 26px rgba(28, 103, 216, 0.12);
}

.project-type-metric {
  min-height: 118px;
  padding: 24px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.project-type-metric span {
  color: var(--muted);
  font-size: 15px;
}

.project-type-metric strong {
  display: block;
  margin-top: 16px;
  color: #020617;
  font-size: 34px;
  line-height: 1;
}

.project-type-metric em {
  display: block;
  margin-top: 16px;
  color: #059669;
  font-style: normal;
  font-weight: 700;
}

.project-type-metric.active {
  border-color: rgba(28, 103, 216, 0.45);
  box-shadow: 0 14px 28px rgba(28, 103, 216, 0.12);
}

.year-compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.year-compare-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
  font-weight: 700;
}

.project-focus-panel .panel-head {
  align-items: flex-start;
}

.department-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.department-project-card {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbff;
}

.department-project-card.active {
  border-color: rgba(28, 103, 216, 0.55);
  background: #f2f7ff;
}

.department-card-head,
.department-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.department-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.strong-link {
  font-size: 15px;
  font-weight: 900;
}

.department-card-stats {
  margin-top: 12px;
}

.department-card-stats button {
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.department-card-stats strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.department-card-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.closed-loop-panel.collapsed {
  padding-bottom: 18px;
}

.closed-loop-summary {
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
}

.project-ledger-panel .closed-loop-summary,
.panel .closed-loop-summary {
  margin-top: 4px;
}

.ledger-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(210px, 1fr) 120px minmax(150px, 0.8fr) 180px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.ledger-card:hover {
  background: #fbfdff;
}

.ledger-main,
.ledger-info {
  min-width: 0;
}

.ledger-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ledger-year {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1262bf;
  font-size: 12px;
  font-weight: 800;
}

.ledger-code,
.ledger-info .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ledger-title {
  display: block;
  margin-top: 6px;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
}

.ledger-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ledger-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f7fb;
}

.ledger-info strong {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
  word-break: break-word;
}

.money-block strong {
  font-size: 16px;
}

.ledger-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ledger-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.small-btn {
  min-height: 34px;
  padding: 7px 10px;
}

.filters input,
.filters select,
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
}

.field textarea {
  height: 92px;
  padding-top: 10px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

th,
td {
  height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #f7f9fd;
  font-size: 13px;
  font-weight: 700;
}

tr:hover td {
  background: #fbfdff;
}

.link {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.status.ok {
  color: var(--success);
  background: var(--success-soft);
}

.status.pending {
  color: var(--warn);
  background: var(--warn-soft);
}

.status.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf6;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stage {
  min-height: 160px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f9fbfe;
  padding: 12px;
}

.stage-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.task {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.task + .task {
  margin-top: 10px;
}

.task-title {
  font-weight: 800;
}

.task-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.task-column {
  min-height: 220px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbff;
}

.task-column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.task-column-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.task-column-title em {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--primary);
  font-style: normal;
  text-align: center;
}

.task-column-toggle {
  flex: 0 0 auto;
}

.task-column.is-collapsed {
  min-height: 0;
}

.task-column.is-collapsed .task-column-title {
  margin-bottom: 0;
}

.finance-project-list {
  display: grid;
  gap: 12px;
}

.finance-project-table-wrap {
  display: block;
  overflow-x: auto;
}

.finance-project-table {
  min-width: 1040px;
  table-layout: fixed;
}

.finance-project-table th,
.finance-project-table td {
  height: 46px;
  vertical-align: middle;
  white-space: nowrap;
}

.finance-project-table th:first-child,
.finance-project-table td:first-child {
  width: 30%;
  white-space: normal;
}

.finance-project-table th:last-child,
.finance-project-table td:last-child {
  width: 300px;
  white-space: nowrap;
}

.finance-project-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.finance-project-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 140px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #f8fbff;
}

.finance-project-name {
  font-weight: 900;
  line-height: 1.35;
}

.finance-project-meta {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.warn-text {
  color: #c46a00;
  font-weight: 800;
}

.finance-project-total {
  display: grid;
  gap: 4px;
}

.finance-project-total span,
.finance-mini span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.finance-project-total strong {
  font-size: 18px;
}

.finance-project-body {
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.finance-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.finance-mini {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
}

.finance-mini strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.finance-project-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  flex-wrap: nowrap;
}

.finance-project-actions .btn {
  min-width: 72px;
  height: 32px;
  padding: 0 10px;
}

.task-column-title span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--primary);
  font-size: 12px;
}

.todo-card {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 35, 65, 0.04);
  min-height: 118px;
}

.todo-card + .todo-card {
  margin-top: 10px;
}

.todo-title {
  color: var(--text);
  font-weight: 900;
  line-height: 1.45;
}

.todo-project {
  display: block;
  margin-top: 8px;
  text-align: left;
}

.todo-meta,
.todo-next {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.todo-next {
  color: #0f8a62;
  font-weight: 800;
}

.small-empty {
  padding: 18px 8px;
}

.detail-head {
  padding: 18px;
  margin-bottom: 16px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.detail-title {
  font-size: 22px;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.tab {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
}

.tab.active {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-item {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfdff;
}

.info-label {
  color: var(--muted);
  font-size: 12px;
}

.info-value {
  margin-top: 8px;
  font-weight: 800;
}

.readonly-field {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.5;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.form-panel {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-team-panel {
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.specialty-picker {
  display: grid;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line-soft);
}

.specialty-picker > label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.specialty-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specialty-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.specialty-options input {
  width: auto;
  height: auto;
}

.specialty-assignments {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.specialty-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.specialty-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.specialty-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.person-picker-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 8px;
  align-items: start;
}

.person-picker {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.person-picker select,
.person-picker input {
  min-width: 0;
}

.person-other {
  width: 100%;
  margin-top: 0;
}

.simple-people-panel .panel-head {
  align-items: flex-start;
}

.simple-participant-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.simple-participant-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.project-business-panel {
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.business-total {
  color: var(--muted);
  font-size: 13px;
}

.business-total strong {
  color: var(--text);
  font-size: 18px;
}

.business-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
}

.business-type-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.business-type-options input {
  width: auto;
  height: auto;
}

.business-amount-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.business-amount-row {
  display: grid;
  gap: 8px;
}

.business-amount-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.business-total-row input {
  background: #eef5ff;
  color: var(--text);
  font-weight: 800;
  cursor: default;
}

.application-form .panel-head {
  align-items: flex-start;
}

.upload-field input[type="file"] {
  height: auto;
  padding: 12px;
  border-style: dashed;
  background: #f8fbff;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.empty {
  padding: 48px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.modal-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .38);
}

.modal-layer[hidden] {
  display: none !important;
}

.modal {
  width: 760px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  overflow: hidden;
}

.modal-head,
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}

.modal-actions[hidden] {
  display: none !important;
}

.modal.project-basic-modal .modal-actions {
  display: none !important;
}

.modal.project-basic-modal .business-total-row {
  display: none !important;
}

.modal-body {
  padding: 18px;
  overflow: auto;
  min-height: 0;
}

.contract-entry-grid {
  align-items: start;
}

.contract-entry-grid .readonly-field {
  min-height: 44px;
  max-height: 170px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.export-project-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.export-project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.export-project-option {
  display: grid;
  grid-template-columns: 18px minmax(86px, 128px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.export-project-option input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.export-project-option:hover {
  border-color: var(--line);
}

.export-project-code,
.export-project-name {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-project-code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.export-project-name {
  color: var(--text);
}

.export-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.export-option:hover {
  border-color: var(--primary);
  background: #f8fbff;
}

.export-option strong {
  color: var(--text);
}

.export-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal.project-basic-modal {
  width: min(980px, calc(100vw - 36px));
}

.modal.export-modal {
  width: min(1080px, calc(100vw - 36px));
}

.project-basic-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-basic-form .field {
  gap: 5px;
}

.project-basic-form .field label,
.project-basic-modal .business-amount-row label {
  font-size: 12px;
}

.project-basic-form input,
.project-basic-form select,
.project-basic-form textarea,
.project-basic-modal .business-amount-row input {
  min-height: 36px;
  padding: 7px 10px;
}

.project-basic-modal .project-business-panel {
  margin-top: 12px !important;
}

.project-basic-modal .project-business-panel .panel-head {
  padding-bottom: 8px;
  margin-bottom: 0;
}

.project-basic-modal .business-type-options {
  padding: 10px 12px;
}

.project-basic-modal .business-type-options label {
  min-height: 30px;
  padding: 4px 8px;
}

.project-basic-modal .business-amount-rows {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.project-basic-modal .form-actions {
  position: sticky;
  bottom: -18px;
  margin: 12px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  z-index: 2;
}

.toast-layer {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  color: var(--text);
}

.toast strong {
  font-size: 14px;
}

.toast span {
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.warn {
  border-left-color: var(--warn);
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.archive-year {
  padding: 0 18px 18px;
}

.archive-year + .archive-year {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.archive-year-title {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1280px) {
  body {
    min-width: 1080px;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-card {
    grid-template-columns: minmax(300px, 1.6fr) minmax(180px, 1fr) 120px 150px;
  }

  .department-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-ledger-head {
    grid-template-columns: 1fr;
  }

  .compact-filters {
    justify-self: start;
  }

  .ledger-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px;
    gap: 12px;
  }

  .brand {
    grid-template-columns: 38px 1fr;
    padding-bottom: 10px;
  }

  .brand-mark {
    height: 38px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nav button {
    height: 38px;
    grid-template-columns: 1fr;
    padding: 0 8px;
    font-size: 12px;
    text-align: center;
  }

  .nav .nav-icon,
  .nav .nav-count {
    display: none;
  }

  .sidebar-footer {
    margin-top: 0;
    padding: 10px;
  }

  .topbar {
    height: auto;
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .top-actions,
  .filters,
  .form-actions,
  .panel-head,
  .detail-title-row {
    flex-wrap: wrap;
  }

  .search {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px;
  }

  .search input {
    min-width: 0;
  }

  .content {
    padding: 16px;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.main-grid,
  .dashboard-hero,
  .dashboard-lower,
  .analysis-grid,
  .form-grid,
  .project-basic-form,
  .info-list,
  .kanban,
  .task-board,
  .department-project-grid,
  .pipeline,
  .project-strip,
  .business-amount-rows,
  .simple-participant-row,
  .specialty-role-grid,
  .person-picker-row {
    grid-template-columns: 1fr;
  }

  .flow-panel {
    grid-template-columns: 1fr;
  }

  .project-ledger-head,
  .compact-filters,
  .ledger-card,
  .finance-project-head,
  .finance-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compact-filters input,
  .compact-filters select {
    width: 100%;
  }

  .ledger-actions {
    justify-content: flex-start;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .panel,
  .toolbar,
  .detail-head,
  .form-panel {
    overflow-x: auto;
  }

  table {
    min-width: 720px;
  }

  .modal-layer {
    align-items: stretch;
    padding: 12px;
  }

  .modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .modal.project-basic-modal {
    width: 100%;
  }

  .project-basic-modal .business-amount-rows {
    grid-template-columns: 1fr;
  }
}
.login-mode {
  min-width: 1080px;
  background:
    linear-gradient(135deg, rgba(16, 33, 62, .96), rgba(21, 91, 212, .72)),
    linear-gradient(180deg, #f8fbff, #eef4fb);
}

.login-mode .shell,
.login-mode .modal-layer,
.login-mode .toast-layer {
  display: none;
}

.app-mode .shell {
  display: grid !important;
}

.app-mode .login-root {
  display: none !important;
}

.login-root {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px;
}

.login-panel {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.18fr 420px;
  gap: 32px;
  align-items: stretch;
}

.login-copy {
  min-height: 520px;
  padding: 56px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 28px 80px rgba(9, 18, 38, .28);
}

.login-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 44px;
  color: #10213e;
  background: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.login-copy h1 {
  max-width: 560px;
  font-size: 42px;
  line-height: 1.18;
}

.login-copy p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.8;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.login-points span {
  padding: 9px 13px;
  border-radius: 999px;
  color: #d9e8ff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.login-card {
  padding: 34px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(9, 18, 38, .22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.login-card h2 {
  margin-top: 4px;
  font-size: 28px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.login-card input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  outline: 0;
}

.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 91, 212, .12);
}

.login-submit {
  width: 100%;
  height: 46px;
  justify-content: center;
}

.login-error {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #ffd5d5;
  font-size: 13px;
}

.login-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sidebar select:disabled {
  opacity: .78;
  cursor: not-allowed;
}

.sidebar-logout {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #d8e6ff;
  background: rgba(255, 255, 255, .08);
}

.sidebar-logout:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
}

.formal-login-panel {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.formal-login-brand {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 248, 253, .9)),
    #ffffff;
}

.formal-login-brand .login-logo {
  width: min(360px, 72%);
  height: auto;
  object-fit: contain;
  margin-bottom: 36px;
}

.formal-login-brand h1 {
  max-width: 640px;
  color: #10213e;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 900;
}

.formal-login-brand p {
  margin-top: 12px;
  color: #155bd4;
  font-size: 16px;
  letter-spacing: 3px;
  line-height: 1.4;
}

.formal-login-card {
  justify-content: center;
  gap: 22px;
}

.formal-login-card .eyebrow {
  color: #155bd4;
  letter-spacing: 1px;
}

.formal-login-card h2 {
  color: #10213e;
  font-size: 30px;
}

.formal-login-card input::placeholder {
  color: #aab7c8;
}

.official-login-panel {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

.official-login-brand {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 250, 254, .92)),
    #ffffff;
}

.login-symbol {
  width: min(390px, 74%);
  height: auto;
  object-fit: contain;
  margin-bottom: 34px;
}

.official-login-brand h1 {
  color: #10213e;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 900;
}

.official-login-line {
  width: 82px;
  height: 4px;
  margin-top: 24px;
  border-radius: 999px;
  background: #087abe;
}

.official-login-card {
  justify-content: center;
  gap: 24px;
}

.official-login-card h2 {
  color: #10213e;
  font-size: 30px;
}

.official-login-card input::placeholder {
  color: #aab7c8;
}

.login-mode {
  min-width: 0;
  background: #0b2f4a;
  overflow-x: hidden;
}

.login-mode .login-root {
  min-height: 100vh;
  display: block;
  padding: 0;
  width: 100vw;
  max-width: none;
  margin: 0;
}

.oa-login-page {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b304b;
}

.oa-login-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  background: url("./assets/login-bottom-scene.svg") center bottom / 100% 100% no-repeat;
  opacity: .72;
}

.oa-login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .08));
}

.oa-login-card {
  position: relative;
  z-index: 1;
  width: 430px;
  min-height: 474px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 0 46px 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 30px 88px rgba(3, 16, 28, .36);
  overflow: hidden;
}

.oa-login-card-head {
  margin: 0 -46px 20px;
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 24px 34px 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .22) 0 50px, transparent 51px),
    radial-gradient(circle at 0 88%, rgba(255, 255, 255, .16) 0 76px, transparent 77px),
    linear-gradient(135deg, #087abe, #20a2ee);
}

.oa-login-card-head img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  padding: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 22px rgba(4, 57, 98, .22);
}

.oa-login-card-head strong {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.oa-login-card-head h2 {
  margin-top: 6px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
}

.oa-login-field {
  height: 52px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dce6ef;
}

.oa-login-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7e96ad;
  background: #edf4fa;
  position: relative;
}

.oa-login-icon.user-icon::before,
.oa-login-icon.user-icon::after,
.oa-login-icon.lock-icon::before,
.oa-login-icon.lock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.oa-login-icon.user-icon::before {
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #8aa1b5;
  border-radius: 50%;
}

.oa-login-icon.user-icon::after {
  bottom: 6px;
  width: 15px;
  height: 8px;
  border: 2px solid #8aa1b5;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom: 0;
}

.oa-login-icon.lock-icon::before {
  top: 7px;
  width: 12px;
  height: 10px;
  border: 2px solid #8aa1b5;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.oa-login-icon.lock-icon::after {
  bottom: 6px;
  width: 16px;
  height: 13px;
  border-radius: 4px;
  background: #8aa1b5;
}

.oa-login-field input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  color: #172033;
  background: transparent;
  font-size: 16px;
}

.oa-login-field input::placeholder {
  color: #a8b7c6;
}

.oa-login-submit {
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #1597df;
  box-shadow: 0 12px 24px rgba(20, 146, 221, .32);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.oa-login-submit:hover {
  background: #087abe;
}

.oa-login-footer {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 1;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  font-size: 13px;
}

.quick-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quick-actions {
  padding-top: 4px;
}

.toolbar-actions {
  justify-content: flex-end;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.form-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.approval-group {
  margin-top: 14px;
}

.approval-group:first-child {
  margin-top: 0;
}

.approval-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #0f2748;
  font-weight: 700;
}

.approval-group-title span {
  color: #6b7b91;
  font-size: 13px;
  font-weight: 600;
}
