:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #1d2733;
  --muted: #647282;
  --line: #d8e0e8;
  --primary: #0c6b58;
  --primary-dark: #084e42;
  --danger: #b42318;
  --warning: #a15c07;
  --info: #2457a6;
  --sidebar: #17212b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--sidebar);
  color: #fff;
  padding: 24px 18px;
  transition: transform .2s ease;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand-logo {
  flex: 0 0 auto;
  width: 68px;
  height: 42px;
  object-fit: contain;
}

.brand small {
  display: block;
  color: #b8c3cf;
  margin-top: 3px;
}

.nav {
  display: grid;
  flex: 1 0 auto;
  gap: 12px;
  margin-top: 24px;
}

.sidebar-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #dbe4ed;
  text-decoration: none;
}

.settings-link:hover,
.settings-link:focus,
.settings-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.settings-link span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
}

.settings-link strong {
  font-size: 13px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-toggle {
  width: 100%;
  min-height: 34px;
  justify-content: space-between;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #9fb0c1;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav-group-toggle::after {
  content: "v";
  margin-left: auto;
}

.nav-group.collapsed .nav-group-toggle::after {
  content: ">";
}

.nav-group-items {
  display: grid;
  gap: 6px;
}

.nav-group.collapsed .nav-group-items {
  display: none;
}

.nav a {
  color: #dbe4ed;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-dropdown {
  display: grid;
  gap: 6px;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbe4ed;
  font-weight: 400;
  text-align: left;
}

.nav-dropdown-trigger::after {
  content: ">";
  margin-left: auto;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-submenu {
  display: none;
  gap: 5px;
  margin-left: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.active .nav-submenu {
  display: grid;
}

.nav-submenu a {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
}

.main {
  margin-left: 248px;
  padding: 24px 28px 28px;
  transition: margin-left .2s ease;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .main {
  margin-left: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  margin: -24px -28px 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(29,39,51,.04);
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(8px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-left {
  min-width: 0;
}

.topbar-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.topbar-title {
  min-width: 0;
}

.sidebar-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-dark);
}

.sidebar-toggle:hover {
  border-color: #b8c3cf;
  background: #f9fbfc;
}

.sidebar-toggle-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.sidebar-toggle-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

body.sidebar-collapsed .sidebar-toggle-icon::before {
  transform: rotate(225deg);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #0057b8;
  font-size: 12px;
  font-weight: 700;
}

.user-meta {
  display: grid;
  gap: 2px;
  max-width: 260px;
  min-width: 0;
}

.user-meta strong,
.user-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta strong {
  color: var(--text);
  font-size: 13px;
}

.user-meta span {
  color: var(--muted);
  font-size: 12px;
}

.user-menu form {
  display: inline-flex;
}

.user-menu button {
  min-height: 32px;
  padding: 0 11px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.metric-card,
.panel,
.table-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card span {
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  font-size: 42px;
  color: var(--primary);
}

.metric-card.warning strong {
  color: var(--warning);
}

.metric-card.danger strong {
  color: var(--danger);
}

.metric-card.muted strong {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading .muted {
  margin: 6px 0 0;
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
}

.module-grid {
  display: grid;
  gap: 18px;
}

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

.table-panel {
  overflow: auto;
}

.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-bar,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f9fbfc;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f2ef;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

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

.status.warning {
  background: #fff4de;
  color: var(--warning);
}

.status.success {
  background: #e7f7ed;
  color: #147a3d;
}

.status.info {
  background: #eef5ff;
  color: var(--info);
}

.form-error {
  margin: 6px 0;
  color: var(--danger);
  font-weight: 700;
}

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

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.flash.success {
  border-color: #b8e1c8;
  background: #e7f7ed;
  color: #147a3d;
}

.flash.danger,
.flash.error {
  border-color: #f0c9c5;
  background: #fdecec;
  color: var(--danger);
}

.flash.info {
  border-color: #c6d9fb;
  background: #eef5ff;
  color: var(--info);
}

.checkbox-field {
  align-content: center;
  gap: 10px;
}

.checkbox-field input {
  width: auto;
  margin-right: 8px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--line);
}

.button.danger,
button.danger {
  background: #fff;
  color: var(--danger);
  border-color: #f0c9c5;
}

form.delete-form {
  display: inline;
}

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

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

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

.compact-form {
  display: grid;
  gap: 10px;
  min-width: 360px;
}

.compact-fields {
  gap: 10px;
}

.compact-fields textarea {
  min-height: 68px;
}

.purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.purchase-links a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.purchase-links a:hover {
  text-decoration: underline;
}

.purchase-board {
  display: grid;
  gap: 18px;
}

.purchase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.purchase-card-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfc;
}

.purchase-card-header h2 {
  margin: 4px 0 8px;
}

.purchase-meta,
.purchase-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.purchase-summary {
  min-width: 240px;
  justify-content: flex-end;
  align-content: flex-start;
}

.purchase-summary strong {
  display: block;
  width: 100%;
  color: var(--primary-dark);
  font-size: 24px;
  text-align: right;
}

.risk-alerts {
  display: grid;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff8ed;
}

.risk-alerts span {
  color: #8a4b00;
  font-size: 13px;
  font-weight: 700;
}

.purchase-steps {
  display: grid;
}

.purchase-step {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.purchase-step:last-child {
  border-bottom: 0;
}

.purchase-step-title {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.purchase-step-title > span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #0057b8;
  font-weight: 800;
}

.purchase-step-title p {
  margin: 4px 0 0;
}

.quotation-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.quotation-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(100px, .7fr));
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.quotation-row.selected {
  border-color: #0057b8;
  background: #eaf3ff;
}

.quotation-row span,
.approval-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.approval-strip > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
}

.supplier-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-checklist span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff4de;
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
}

.supplier-checklist span.ok {
  background: #e7f7ed;
  color: #147a3d;
}

.field,
.check-list {
  display: grid;
  gap: 7px;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 400;
}

.checkbox-grid input {
  width: auto;
  min-height: auto;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkbox-inline input {
  width: auto;
  min-height: auto;
}

.inspection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.inline-table input,
.inline-table textarea {
  min-width: 160px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.detail-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signature-thumb {
  max-width: 160px;
  max-height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.org-print-surface {
  background: #f4f6f8;
}

.guide-panel {
  border-top: 4px solid #0057b8;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.guide-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.guide-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #0057b8;
  font-weight: 700;
}

.guide-card strong {
  color: #0b1f3a;
}

.guide-card small,
.form-hint {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

.management-section {
  border-left: 4px solid #0057b8;
}

.boarding-command {
  border-top: 4px solid #0057b8;
}

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

.boarding-preview div {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #f9fbfc;
}

.boarding-preview span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.boarding-preview strong {
  color: #0b1f3a;
  font-size: 14px;
}

.boarding-details summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 700;
}

.boarding-details form {
  margin-top: 18px;
}

.boarding-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 760px;
}

.boarding-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #d9e1e8;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
}

.boarding-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.timeline-day {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 118px;
  padding: 9px;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #fff;
}

.timeline-day strong {
  color: #0b1f3a;
  font-size: 13px;
}

.timeline-day > span,
.timeline-day small {
  color: #6b7280;
  font-size: 12px;
}

.calendar-day {
  min-height: 170px;
}

.calendar-entry {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  padding: 4px 0;
  border-top: 1px solid #edf1f5;
}

.calendar-entry span {
  overflow: hidden;
  color: #0b1f3a;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-entry small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-code {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eaf3ff;
  color: #0057b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.timeline-code.code-a {
  background: #fff4de;
  color: #a15c07;
}

.timeline-code.code-d {
  background: #e7f7ed;
  color: #147a3d;
}

.timeline-code.code-e {
  background: #eef5ff;
  color: #2457a6;
}

.timeline-code.code-b,
.timeline-code.code-c,
.timeline-code.code-h,
.timeline-code.code-i {
  background: #eaf3ff;
  color: #0057b8;
}

.timeline-code.code-f,
.timeline-code.code-k {
  background: #fdecec;
  color: #b42318;
}

.timeline-code.code-g,
.timeline-code.code-j,
.timeline-code.code-x {
  background: #f4f6f8;
  color: #6b7280;
}

.timeline-code.code-l {
  background: #e7f7ed;
  color: #147a3d;
}

.schedule-timeline-wrap {
  overflow: auto;
  max-width: 100%;
}

.schedule-timeline-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-timeline-table th,
.schedule-timeline-table td {
  min-width: 74px;
  text-align: center;
  vertical-align: middle;
}

.schedule-timeline-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fbfc;
}

.schedule-timeline-table th span,
.employee-cell span,
.employee-cell small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

.schedule-timeline-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 230px;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 0 #d9e1e8;
}

.schedule-timeline-table th.sticky-col {
  z-index: 3;
  background: #f9fbfc;
}

.timeline-cell {
  height: 54px;
}

.daily-schedule {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.daily-schedule-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #f9fbfc;
}

.readiness {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f7ed;
  color: #147a3d;
  font-size: 12px;
  font-weight: 700;
}

.readiness.attention {
  background: #fff4de;
  color: #a15c07;
}

.readiness.blocked {
  background: #fdecec;
  color: var(--danger);
}

.advanced-options {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.advanced-options summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 700;
}

.advanced-options .form-grid {
  margin-top: 12px;
}

.org-chart {
  overflow-x: auto;
  padding: 12px 0 8px;
}

.org-chart ul {
  display: flex;
  justify-content: center;
  gap: 18px;
  position: relative;
  min-width: max-content;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
}

.org-chart li {
  display: grid;
  justify-items: center;
  position: relative;
  gap: 16px;
  padding-top: 24px;
}

.org-chart > ul > li {
  padding-top: 0;
}

.org-chart li::before,
.org-chart li::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 24px;
  border-top: 1px solid #d9e1e8;
}

.org-chart li::before {
  right: 50%;
}

.org-chart li::after {
  left: 50%;
  border-left: 1px solid #d9e1e8;
}

.org-chart > ul > li::before,
.org-chart > ul > li::after,
.org-chart li:only-child::before,
.org-chart li:only-child::after {
  display: none;
}

.org-chart li:first-child::before,
.org-chart li:last-child::after {
  border: 0;
}

.org-chart li:last-child::before {
  border-right: 1px solid #d9e1e8;
  border-radius: 0 8px 0 0;
}

.org-chart li:first-child::after {
  border-radius: 8px 0 0 0;
}

.org-chart li > ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 28px;
  border-left: 1px solid #d9e1e8;
}

.org-node {
  display: grid;
  gap: 5px;
  width: 238px;
  min-height: 136px;
  padding: 14px;
  border: 1px solid #d9e1e8;
  border-top: 5px solid #eaf3ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(11,31,58,.08);
  text-align: center;
}

.org-node.management {
  border-top-color: #0b1f3a;
}

.org-node.leadership {
  border-top-color: #0057b8;
}

.org-node.operational {
  border-top-color: #eaf3ff;
}

.org-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #0057b8;
  font-weight: 700;
}

.org-node span,
.org-node small {
  color: #6b7280;
}

.org-node small {
  font-size: 12px;
}

.org-badge {
  justify-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.org-badge.success {
  background: #2e7d32;
}

.org-badge.warning {
  background: #f59e0b;
}

.org-badge.danger {
  background: #dc2626;
}

.org-node-action {
  margin-top: 4px;
}

.org-node-action button {
  min-height: 30px;
  padding: 0 10px;
}

.equipment-photo {
  display: block;
  max-width: min(420px, 100%);
  max-height: 260px;
  margin-top: 10px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.signature-modal[hidden] {
  display: none;
}

.signature-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 20, 30, .64);
}

.signature-lock {
  overflow: hidden;
}

.signature-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.signature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.signature-context {
  display: grid;
  gap: 3px;
  margin: 14px 0;
  color: var(--muted);
}

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

.signature-help {
  margin: 0 0 10px;
  color: var(--muted);
}

.saved-signature-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
}

.saved-signature-panel[hidden] {
  display: none;
}

.saved-signature-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.signature-save-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
}

.signature-save-option input {
  width: auto;
  min-height: auto;
}

.signature-canvas-wrap {
  width: 100%;
  height: min(320px, 44vh);
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.signature-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.signature-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.signature-status {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.preview {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--text);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.auth-body {
  min-height: 100vh;
  background: #edf2f5;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(320px, 1fr);
  min-height: 100vh;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 44px;
  background: var(--sidebar);
  color: #fff;
}

.auth-logo {
  width: 150px;
  max-width: 70%;
  height: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.auth-hero .eyebrow,
.auth-hero p {
  color: #c8d4df;
}

.auth-content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px;
}

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

.auth-login-wrap {
  display: grid;
  justify-items: start;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-card-single {
  max-width: 560px;
  width: 100%;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.auth-links a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-language-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #b9c8c7;
  border-radius: 6px;
  background: #ffffff;
  color: #006b68;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29,39,51,.12);
}

.auth-language-toggle:hover {
  border-color: #007c7a;
  background: #e9f6f4;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #b9c8c7;
  border-radius: 6px;
  background: #ffffff;
  color: #006b68;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.language-toggle:hover {
  border-color: #007c7a;
  background: #e9f6f4;
}

.quick-filters,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
}

.pagination {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.compact-metrics .metric-card {
  min-height: 112px;
}

.compact-metrics .metric-card strong {
  font-size: 34px;
}

/* Legacy corporate operations theme */
:root {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --line: #c8c8c8;
  --primary: #007c7a;
  --primary-dark: #006064;
  --danger: #ff5a3d;
  --warning: #f5c400;
  --info: #00a6b2;
  --sidebar: #2f2f2f;
}

body {
  background: #f2f2f2;
  color: #1f1f1f;
  font-size: 13px;
}

.legacy-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 6px 14px;
  border-bottom: 1px solid #b7b7b7;
  background: #ffffff;
}

.legacy-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.legacy-brand-logo {
  width: 78px;
  height: 38px;
  object-fit: contain;
}

.legacy-brand strong {
  display: block;
  color: #2f2f2f;
  font-size: 15px;
  line-height: 1.1;
}

.legacy-brand small {
  display: block;
  margin-top: 2px;
  color: #666666;
  font-size: 11px;
  text-transform: uppercase;
}

.legacy-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.legacy-tabs {
  position: fixed;
  inset: 54px 0 auto 0;
  z-index: 59;
  display: flex;
  align-items: stretch;
  height: 34px;
  overflow-x: auto;
  border-bottom: 1px solid #004e52;
  background: #006064;
}

.legacy-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.legacy-tabs a:hover,
.legacy-tabs a.active {
  background: #007c7a;
  color: #ffffff;
}

.sidebar {
  top: 88px;
  height: calc(100vh - 88px);
  width: 252px;
  padding: 7px;
  background: #2f2f2f;
  border-right: 1px solid #1d1d1d;
  transition: transform .15s ease;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #777777;
  border-radius: 0;
}

.brand {
  gap: 8px;
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid #555555;
  background: #3a3a3a;
}

.brand-logo {
  display: none;
}

.brand strong {
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
}

.brand small {
  color: #dadada;
  font-size: 11px;
}

.nav {
  align-items: stretch;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}

.nav-group {
  align-self: stretch;
  flex: 0 0 auto;
  gap: 0;
  border: 1px solid #555555;
  background: #3a3a3a;
}

.nav-group-toggle {
  min-height: 20px;
  padding: 0 6px;
  background: #4a4a4a;
  color: #ffffff;
  border-bottom: 1px solid #2d2d2d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

.nav-group-toggle::after {
  content: "-";
  color: #ffffff;
}

.nav-group.collapsed .nav-group-toggle::after {
  content: "+";
}

.nav-group-items {
  gap: 0;
  padding: 2px;
}

.nav a,
.nav-dropdown-trigger,
.nav-submenu a {
  min-height: 20px;
  padding: 4px 6px;
  border-radius: 0;
  color: #f3f3f3;
  font-size: 10px;
  line-height: 1.15;
}

.nav a:hover,
.nav a.active,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
  background: #006064;
  color: #ffffff;
}

.nav-submenu {
  gap: 0;
  margin-left: 0;
  padding: 2px 0 2px 8px;
  border-left: 3px solid #007c7a;
  background: #333333;
}

.sidebar-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #555555;
}

.settings-link {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 0;
  border-color: #666666;
  background: #3a3a3a;
  color: #ffffff;
}

.main {
  margin-left: 252px;
  padding: 104px 14px 18px;
  transition: margin-left .15s ease;
}

body.sidebar-collapsed .main {
  margin-left: 0;
}

.topbar {
  min-height: 45px;
  margin: 0 0 10px;
  padding: 8px 10px;
  top: 88px;
  border: 1px solid #c8c8c8;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar-left,
.topbar-right {
  gap: 8px;
}

.sidebar-toggle {
  width: 30px;
  height: 28px;
  min-height: 28px;
  border-radius: 0;
  border-color: #8b8b8b;
  background: #ffffff;
  color: #111111;
}

.sidebar-toggle:hover {
  background: #eeeeee;
  border-color: #6f6f6f;
}

.sidebar-toggle-icon::before {
  width: 7px;
  height: 7px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.eyebrow {
  margin-bottom: 2px;
  color: #666666;
  font-size: 10px;
  font-weight: 700;
}

h1 {
  font-size: 18px;
}

h2 {
  margin-bottom: 10px;
  font-size: 15px;
}

h3 {
  font-size: 13px;
}

.panel,
.table-panel,
.metric-card,
.purchase-card,
.guide-card,
.detail-item,
.approval-strip > div,
.quotation-row {
  border-color: #c8c8c8;
  border-radius: 0;
  box-shadow: none;
}

.panel {
  padding: 12px;
  margin-bottom: 10px;
}

.metric-grid,
.module-grid,
.guide-grid,
.purchase-board {
  gap: 10px;
}

.metric-card {
  min-height: 80px;
  padding: 10px;
}

.metric-card span {
  font-size: 11px;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 28px;
}

.section-heading {
  gap: 8px;
  margin-bottom: 10px;
}

.section-heading .muted {
  margin-top: 2px;
}

.table-actions {
  min-height: 34px;
  padding: 8px 10px;
  background: #ffffff;
}

.filter-grid {
  gap: 8px;
}

.filter-bar,
.button-row {
  gap: 6px;
}

.field,
.check-list {
  gap: 4px;
}

label,
.field span {
  color: #4b4b4b;
  font-size: 11px;
  text-transform: uppercase;
}

input,
select,
textarea {
  min-height: 28px;
  padding: 5px 7px;
  border-color: #9d9d9d;
  border-radius: 0;
  font-size: 12px;
}

textarea {
  min-height: 58px;
}

button,
.button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #8b8b8b;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

button:hover,
.button:hover {
  background: #eeeeee;
}

.button.secondary,
button.secondary,
.button.danger,
button.danger {
  background: #ffffff;
  color: #111111;
  border-color: #8b8b8b;
}

.button.danger,
button.danger {
  color: #a33120;
}

table {
  border: 1px solid #bcbcbc;
  background: #ffffff;
}

th,
td {
  padding: 7px 8px;
  border: 1px solid #d1d1d1;
  font-size: 12px;
  line-height: 1.25;
}

th {
  background: #2e2e2e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

th a {
  color: #ffffff;
}

tbody tr:nth-child(even) {
  background: #f3f3f3;
}

tbody tr:hover,
tbody tr.selected,
.quotation-row.selected {
  background: #d5f3f6;
}

.status {
  min-height: 18px;
  padding: 2px 6px 2px 18px;
  border-radius: 0;
  position: relative;
  background: transparent;
  color: #2f2f2f;
  font-size: 11px;
  line-height: 1.1;
}

.status::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a6b2;
  transform: translateY(-50%);
}

.status.danger {
  background: transparent;
  color: #8a1e12;
}

.status.danger::before {
  background: #ff5a3d;
}

.status.warning {
  background: transparent;
  color: #6f5700;
}

.status.warning::before {
  background: #f5c400;
}

.status.success,
.status.info {
  background: transparent;
  color: #006064;
}

.status.success::before,
.status.info::before {
  background: #00a6b2;
}

.detail-grid {
  gap: 8px;
}

.detail-item {
  padding: 8px;
  background: #ffffff;
}

.checkbox-grid {
  gap: 6px;
}

.checkbox-grid label {
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 0;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 12px;
  text-transform: none;
}

.flash {
  border-radius: 0;
  padding: 8px 10px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: #007c7a;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
}

.user-meta strong {
  font-size: 12px;
}

.user-meta span {
  font-size: 11px;
}

.user-menu {
  border-radius: 0;
}

.guide-panel {
  border-top: 3px solid #007c7a;
}

.guide-card {
  min-height: 88px;
  padding: 9px;
}

.guide-card span,
.purchase-step-title > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #006064;
  color: #ffffff;
  font-size: 11px;
}

.purchase-card-header {
  padding: 10px;
  background: #ffffff;
}

.purchase-step {
  padding: 10px;
}

.purchase-meta span {
  border-radius: 0;
  background: #eeeeee;
}

.purchase-summary strong {
  font-size: 18px;
}

.risk-alerts {
  padding: 8px 10px;
  background: #fff7d6;
}

.approval-strip,
.quotation-list {
  gap: 6px;
}

.quotation-row {
  padding: 7px;
}

.supplier-checklist span {
  border-radius: 0;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.45);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(380px, 100%);
  border: 1px solid #6f6f6f;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.confirm-header {
  padding: 8px 10px;
  border-bottom: 1px solid #2e2e2e;
  background: #2e2e2e;
  color: #ffffff;
  text-transform: uppercase;
}

.confirm-dialog p {
  margin: 0;
  padding: 14px 10px;
  color: #1f1f1f;
}

.confirm-dialog .button-row {
  justify-content: flex-end;
  padding: 8px 10px 10px;
  border-top: 1px solid #c8c8c8;
  background: #f3f3f3;
}

.event-report-warning {
  border-left: 4px solid var(--warning);
}

.event-report-warning strong {
  color: var(--warning);
}

.capa-report-summary {
  border-top: 3px solid #007c7a;
}

.capa-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.capa-description {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #c8c8c8;
  background: #ffffff;
}

.capa-description span {
  color: #4b4b4b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.capa-description p {
  margin: 0;
}

.capa-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.capa-entry-panel {
  border-left: 4px solid #007c7a;
}

.capa-log-section {
  margin-bottom: 10px;
}

.capa-log-section .table-actions {
  align-items: center;
}

.capa-log-section .table-actions p {
  margin: 2px 0 0;
}

.capa-clickable-row {
  cursor: pointer;
}

.capa-clickable-row:hover td,
.capa-clickable-row.is-open td {
  background: #f4faf9;
}

.icon-column {
  width: 48px;
  text-align: right;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #b9c8c7;
  border-radius: 6px;
  background: #ffffff;
  color: #006b68;
  text-decoration: none;
  cursor: pointer;
}

.icon-button:hover,
.icon-button.active {
  border-color: #007c7a;
  background: #e9f6f4;
  color: #004f4d;
}

.capa-detail-row td {
  padding: 0;
  background: #ffffff;
}

.capa-detail-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #dce6e5;
  background: #fbfdfd;
}

.capa-edit-row td {
  background: #f7f7f7;
}

.capa-edit-row form {
  margin: 0;
}

.risk-result {
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
  text-align: right;
}

.risk-result span,
.risk-result small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.risk-result strong {
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 1;
}

.risk-result.success strong {
  color: #147a3d;
}

.risk-result.info strong {
  color: var(--info);
}

.risk-result.warning strong {
  color: var(--warning);
}

.risk-result.danger strong {
  color: var(--danger);
}

.risk-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(380px, 1.25fr);
  gap: 16px;
  align-items: start;
  margin: 18px 0;
}

.risk-scale {
  display: grid;
  gap: 8px;
}

.risk-scale h3 {
  margin: 0;
  font-size: 14px;
}

.risk-scale div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
}

.risk-scale strong {
  color: var(--text);
  font-size: 13px;
}

.risk-scale span {
  color: var(--muted);
  font-size: 12px;
}

.risk-matrix-wrap {
  overflow: auto;
}

.risk-matrix {
  min-width: 430px;
  table-layout: fixed;
}

.risk-matrix th,
.risk-matrix td {
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.risk-matrix td {
  height: 58px;
  border: 2px solid #fff;
}

.risk-matrix td strong,
.risk-matrix td span {
  display: block;
}

.risk-matrix td strong {
  color: #111827;
}

.risk-matrix td span {
  font-size: 11px;
}

.risk-matrix td.success {
  background: #dff3e7;
}

.risk-matrix td.info {
  background: #e4efff;
}

.risk-matrix td.warning {
  background: #ffe6ad;
}

.risk-matrix td.danger {
  background: #f6b7b2;
}

.risk-matrix td.selected {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
  background: #edf5f2;
  color: var(--primary-dark);
}

.password-toggle img {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 840px) {
  .legacy-header {
    height: 54px;
    padding: 6px 8px;
  }

  .legacy-brand small,
  .legacy-user .user-meta {
    display: none;
  }

  .legacy-tabs {
    top: 54px;
  }

  .sidebar {
    position: fixed;
    top: 88px;
    width: 252px;
    height: calc(100vh - 88px);
  }

  .main {
    margin-left: 0;
    padding: 98px 8px 12px;
  }

  body.sidebar-collapsed .sidebar {
    display: flex;
    transform: translateX(-100%);
  }

  .topbar,
  .table-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    margin: 0 0 8px;
    padding: 8px;
    position: sticky;
    top: 88px;
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .user-menu {
    justify-content: flex-start;
    width: 100%;
  }

  .user-meta {
    max-width: none;
  }

  .form-grid,
  .form-grid.three,
  .form-grid.four,
  .module-grid.two,
  .filter-grid,
  .purchase-card-header,
  .approval-strip,
  .quotation-row {
    grid-template-columns: 1fr;
  }

  .purchase-card-header {
    display: grid;
  }

  .purchase-summary,
  .purchase-summary strong {
    justify-content: flex-start;
    text-align: left;
  }

  .boarding-preview {
    grid-template-columns: 1fr;
  }

  .risk-layout {
    grid-template-columns: 1fr;
  }

  .risk-result {
    width: 100%;
    text-align: left;
  }

  .saved-signature-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero,
  .auth-content {
    padding: 24px;
  }

  .auth-card-grid {
    grid-template-columns: 1fr;
  }
}
