@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../vendor/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../vendor/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../vendor/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../vendor/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #121417;
  --blue: #1A3FD6;
  --blue-hover: #102A9C;
  --waiting: #FFD84D;
  --over: #C2410C;
  --over-text: #9A3412;
  --paper: #FFFFFF;
  --ground: #F4F4F1;
  --muted: #5F6670;
  --secondary: #3D434B;
  --hairline: #D9DCDF;
  --track: #E6E8EA;
  --approved-bg: #E3E9FF;
  --approved-text: #102A9C;
  --danger: #B42318;
  --quiet: #9AA0A6;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.5;
  --bs-body-color: #121417;
  --bs-body-color-rgb: 18, 20, 23;
  --bs-body-bg: #F4F4F1;
  --bs-body-bg-rgb: 244, 244, 241;
  --bs-tertiary-bg: #F4F4F1;
  --bs-tertiary-bg-rgb: 244, 244, 241;
  --bs-primary: #1A3FD6;
  --bs-primary-rgb: 26, 63, 214;
  --bs-link-color: #1A3FD6;
  --bs-link-color-rgb: 26, 63, 214;
  --bs-link-hover-color: #102A9C;
  --bs-link-hover-color-rgb: 16, 42, 156;
  --bs-border-color: #D9DCDF;
  --bs-secondary-color: #5F6670;
  --bs-secondary-color-rgb: 95, 102, 112;
  --bs-danger: #B42318;
  --bs-danger-rgb: 180, 35, 24;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: 24px; }

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
td.text-end, th.text-end {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  --bs-btn-border-radius: 2px;
  --bs-btn-border-width: 1.5px;
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 0;
  --bs-btn-font-size: 15px;
  --bs-btn-font-weight: 600;
  --bs-btn-box-shadow: none;
  --bs-btn-focus-box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  line-height: 1;
  border-radius: 2px;
  box-shadow: none;
}
.btn-sm {
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 0;
  --bs-btn-font-size: 15px;
  --bs-btn-border-radius: 2px;
  height: 40px;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1A3FD6;
  --bs-btn-border-color: #1A3FD6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #102A9C;
  --bs-btn-hover-border-color: #102A9C;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #102A9C;
  --bs-btn-active-border-color: #102A9C;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1A3FD6;
  --bs-btn-disabled-border-color: #1A3FD6;
}
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-light,
.btn-outline-dark,
.btn-secondary {
  --bs-btn-color: #121417;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #121417;
  --bs-btn-hover-color: #121417;
  --bs-btn-hover-bg: #F4F4F1;
  --bs-btn-hover-border-color: #121417;
  --bs-btn-active-color: #121417;
  --bs-btn-active-bg: #E6E8EA;
  --bs-btn-active-border-color: #121417;
  --bs-btn-disabled-color: #121417;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #121417;
}
.btn-outline-danger,
.btn-danger {
  --bs-btn-color: #B42318;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #B42318;
  --bs-btn-hover-color: #B42318;
  --bs-btn-hover-bg: #FEF3F2;
  --bs-btn-hover-border-color: #B42318;
  --bs-btn-active-color: #B42318;
  --bs-btn-active-bg: #FEE4E2;
  --bs-btn-active-border-color: #B42318;
  --bs-btn-disabled-color: #B42318;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #B42318;
}
.btn-link {
  --bs-btn-color: #1A3FD6;
  --bs-btn-hover-color: #102A9C;
  --bs-btn-active-color: #102A9C;
  --bs-btn-border-color: transparent;
  --bs-btn-bg: transparent;
  --bs-btn-padding-x: 4px;
  height: auto;
  min-height: 44px;
}

a:focus-visible,
.btn:focus-visible,
.btn-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 3px solid #1A3FD6;
  outline-offset: 2px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-text {
  font-size: 13px;
  color: var(--muted);
}
.form-control, .form-select {
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: none;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
textarea.form-control {
  height: auto;
  padding: 10px 12px;
}
.form-control-sm, .form-select-sm {
  height: 40px;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}
.form-control:disabled, .form-select:disabled {
  background-color: var(--ground);
  color: var(--muted);
}
.form-control[inputmode="decimal"], .form-control[type="number"] {
  font-family: var(--font-num);
  font-weight: 500;
}
.form-select {
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #121417 50%),
    linear-gradient(135deg, #121417 50%, transparent 50%);
  background-position: right 1rem center, right .5rem center;
  background-size: .5rem .5rem, .5rem .5rem;
  background-repeat: no-repeat;
}
.form-check-input {
  -webkit-appearance: auto;
  appearance: auto;
  background-image: none;
  accent-color: var(--blue);
}
.form-switch .form-check-input {
  background-image: none;
}

.form-control.is-valid,
.was-validated .form-control:valid,
.form-control.is-invalid,
.was-validated .form-control:invalid {
  background-image: none;
  padding-right: 12px;
}
.form-select.is-valid:not([multiple]):not([size]),
.form-select.is-valid:not([multiple])[size="1"],
.was-validated .form-select:valid:not([multiple]):not([size]),
.was-validated .form-select:valid:not([multiple])[size="1"],
.form-select.is-invalid:not([multiple]):not([size]),
.form-select.is-invalid:not([multiple])[size="1"],
.was-validated .form-select:invalid:not([multiple]):not([size]),
.was-validated .form-select:invalid:not([multiple])[size="1"] {
  padding-right: 36px;
}

.card {
  --bs-card-bg: #fff;
  --bs-card-border-color: #D9DCDF;
  --bs-card-border-radius: 0;
  --bs-card-inner-border-radius: 0;
  --bs-card-cap-bg: #fff;
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: #D9DCDF;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  color: var(--ink);
}
.table > :not(caption) > * > * {
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}
.table > thead > tr > th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

.alert {
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
}
.alert-danger {
  --bs-alert-bg: #121417;
  --bs-alert-color: #fff;
  --bs-alert-border-color: #121417;
  --bs-alert-link-color: #fff;
  background-color: var(--ink);
  color: #fff;
}
.alert-success, .alert-info {
  --bs-alert-bg: #fff;
  --bs-alert-color: #121417;
  --bs-alert-border-color: #121417;
  background-color: var(--paper);
  color: var(--ink);
  border-left: 1.5px solid var(--ink);
}

.progress {
  --bs-progress-height: 4px;
  --bs-progress-bg: #E6E8EA;
  --bs-progress-bar-bg: #121417;
  --bs-progress-border-radius: 0;
  height: 4px;
  border-radius: 0;
  background-color: var(--track);
}
.progress-bar { background-color: var(--ink); }
.progress-bar.bg-success { background-color: var(--ink) !important; }
.progress-bar.bg-warning { background-color: var(--waiting) !important; }
.progress-bar.bg-danger { background-color: var(--over) !important; }

.list-group-item {
  --bs-list-group-border-color: #D9DCDF;
  --bs-list-group-border-radius: 0;
  --bs-list-group-bg: #fff;
}

.badge {
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: .3em .6em;
}

.text-bg-secondary,
.text-bg-light {
  border: 1px solid var(--quiet);
  background-color: var(--paper) !important;
  color: var(--muted) !important;
}
.text-bg-warning {
  background-color: var(--waiting) !important;
  color: var(--ink) !important;
}
.text-bg-danger {
  background-color: var(--over) !important;
  color: #fff !important;
}
.text-bg-success,
.text-bg-info {
  background-color: var(--approved-bg) !important;
  color: var(--approved-text) !important;
}
.text-bg-primary {
  background-color: var(--blue) !important;
  color: #fff !important;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.chip-waiting { height: 24px; background: var(--waiting); color: var(--ink); }
.chip-approved { height: 24px; background: var(--approved-bg); color: var(--approved-text); }
.chip-rejected { height: 24px; background: var(--ink); color: #fff; }
.chip-voided { border: 1px solid var(--quiet); color: var(--muted); text-decoration: line-through; }
.chip-self { border: 1px solid var(--over); color: var(--over-text); }
.chip-closed { border: 1px solid var(--ink); color: var(--ink); }
.chip-inactive { border: 1px solid var(--quiet); color: var(--muted); }
.chip-over { height: 24px; background: var(--over); color: #fff; }
.chip-overalloc { border: 1px solid var(--over); color: var(--over-text); }
.tab-strip { display: flex; gap: 0; border: 1.5px solid var(--ink); }
.tab-strip .tab { display: flex; align-items: center; height: 44px; padding: 0 18px; border-bottom: 1.5px solid var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; }
.tab-strip .tab-selected { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }


.shell {
  display: flex;
  min-height: 100vh;
  background: var(--ground);
}
.topbar {
  display: none;
}
.side {
  position: sticky;
  top: 0;
  flex: 0 0 240px;
  width: 240px;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 16px;
  background: var(--paper);
  border-right: 1px solid var(--hairline);
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.brand svg,
.topbar-brand svg {
  display: block;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.side-workspace {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}
.side-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-workspace-name {
  font-size: 15px;
  font-weight: 700;
}
.side-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.side-link:hover {
  background: var(--ground);
  color: var(--ink);
}
.side-link.is-current {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.count-badge {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  background: var(--waiting);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 1px 6px;
}
.side-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
}
.log-link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.log-link:hover {
  background: var(--ground);
  color: var(--ink);
}
.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 8px 0;
  border-top: 1px solid var(--hairline);
}
.side-email {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.side-role {
  font-size: 13px;
  color: var(--muted);
}
.side-signout {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.side-signout:hover {
  color: var(--blue);
}
.main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 40px 64px;
  box-sizing: border-box;
}
.main .container {
  width: 100%;
  max-width: 1180px;
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 767px) {
  .shell {
    display: block;
  }
  .topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }
  .topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .topbar-brand svg {
    flex: 0 0 24px;
  }
  .topbar-title {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-menu {
    flex: 0 0 auto;
  }
  .side {
    display: none;
  }
  .shell.menu-open .side {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    padding-top: 62px;
    border-right: 0;
  }
  .main {
    padding: 18px 16px;
  }
}

.signin-card {
  max-width: 32rem;
}

.auth {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}
.auth-aside {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  box-sizing: border-box;
  padding: 48px;
  background: var(--ink);
  color: #fff;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-brand svg {
  display: block;
}
.auth-brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.auth-aside-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  margin-bottom: auto;
}
.auth-headline {
  margin: 0;
  max-width: 440px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
}
.auth-invite-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #B7BCC2;
}
.auth-role {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}
.auth-small {
  margin: 0;
  font-size: 14px;
  color: #B7BCC2;
}
.auth-main {
  flex: 999 1 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 48px 24px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 400px;
}
.auth-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 400px;
}
.auth-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.auth-sub {
  margin: 0;
  font-size: 15px;
  color: var(--secondary);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.auth-form .form-control {
  height: 48px;
}
.auth-form .btn {
  height: 48px;
}
.auth-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}
.auth-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.auth-hint {
  display: flex;
  gap: 8px;
}
.auth-hint-done {
  font-weight: 700;
  color: var(--approved-text);
}
.auth-sent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--approved-bg);
  color: var(--approved-text);
  font-size: 14px;
  line-height: 1.5;
}
.auth-sent-title {
  font-size: 15px;
  font-weight: 700;
}

.plain-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
}
.plain-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.plain-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plain-bar-brand svg {
  display: block;
}
.plain-bar-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.plain-bar-user {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-size: 14px;
}
.plain-bar-email {
  overflow-wrap: anywhere;
}
.plain-signout {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: 600 14px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.plain-signout:hover {
  color: var(--blue-hover);
}
.plain-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 64px 24px;
}
.plain-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 720px;
}
.plain-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plain-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.plain-sub {
  margin: 0;
  font-size: 16px;
  color: var(--secondary);
}
.plain-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.choose-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}
.choose-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 16px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.choose-row:hover {
  background: var(--ground);
}
.choose-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.choose-name {
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.choose-meta {
  font-size: 14px;
  color: var(--muted);
}
.choose-open {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}
.access-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px;
}
.access-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  padding: 32px;
  background: var(--paper);
  border-top: 6px solid var(--ink);
}
.access-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.access-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .auth-aside {
    padding: 24px;
    gap: 24px;
  }
  .auth-headline {
    font-size: 28px;
  }
  .auth-main {
    padding: 32px 16px;
  }
  .plain-bar {
    padding: 16px;
  }
  .plain-main {
    padding: 32px 16px;
  }
  .plain-title {
    font-size: 28px;
  }
  .access-main {
    padding: 32px 16px;
  }
  .access-title {
    font-size: 24px;
  }
}

@media print {
  body { background-color: #fff; }
  .no-print { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .table-responsive { overflow: visible !important; }
  table { min-width: 100% !important; }
}

.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  z-index: 50;
}

dialog.dlg {
  width: 480px;
  max-width: 92vw;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--ink);
}
dialog.dlg::backdrop { background: rgba(18, 20, 23, 0.5); }

.fig-cell { border: 1px solid var(--hairline); background: #fff; padding: 16px; height: 100%; }
.fig-value { font-size: 28px; font-weight: 700; }
.fig-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }

progress.bar { appearance: none; display: block; width: 100%; height: 4px; border: 0; background: var(--track); }
progress.bar::-webkit-progress-bar { background: var(--track); }
progress.bar::-webkit-progress-value { background: var(--ink); }
progress.bar::-moz-progress-bar { background: var(--ink); }
progress.bar-over::-webkit-progress-value { background: var(--over); }
progress.bar-over::-moz-progress-bar { background: var(--over); }
progress.bar-warn::-webkit-progress-value { background: var(--waiting); }
progress.bar-warn::-moz-progress-bar { background: var(--waiting); }

.queue-head { display: flex; flex-direction: column; gap: 10px; border-bottom: 3px solid var(--ink); padding-bottom: 28px; margin-bottom: 24px; }
.queue-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.queue-headline { margin: 0; font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.queue-total { font-size: 15px; color: var(--secondary); }
.queue-tabs { align-self: flex-start; display: inline-flex; margin-bottom: 24px; }
.queue-tabs .tab { height: 40px; }
.queue-filter { max-width: 320px; margin-bottom: 16px; }
.queue-card { overflow-x: auto; background: var(--paper); border: 1px solid var(--hairline); }
.queue-table { border-collapse: collapse; width: 100%; }
.queue-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.queue-table td { padding: 14px 12px; border-bottom: 1px solid var(--hairline); font-size: 14px; vertical-align: top; }
.queue-table th.text-end { text-align: right; }
.q-row-oldest { background: #F7F8FF; }
.q-age { white-space: nowrap; }
.age { font-family: var(--font-num); }
.age-oldest { background: var(--waiting); padding: 1px 6px; font-weight: 700; }
.q-ref { color: var(--muted); }
.q-facts { font-size: 13px; color: var(--secondary); }
.q-expired { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; font-size: 13px; color: var(--secondary); }
.chip-expired { height: 22px; border: 1px solid var(--muted); color: var(--secondary); flex: none; }
.decide { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.decide .btn { height: 40px; }
.queue-foot { margin-top: 12px; font-size: 13px; color: var(--muted); }
.notice { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; margin-bottom: 16px; font-size: 15px; line-height: 1.45; }
.notice-dark { background: var(--ink); color: #fff; }
.notice-blue { background: var(--approved-bg); color: var(--approved-text); }

dialog.dlg .dlg-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
dialog.dlg .dlg-label { font-size: 13px; color: var(--muted); }
dialog.dlg .dlg-title { margin: 0; font-size: 22px; font-weight: 800; }
dialog.dlg .dlg-hint { font-size: 13px; font-weight: 400; color: var(--muted); }
dialog.dlg .dlg-count { display: block; text-align: right; font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
dialog.dlg-void { width: 600px; border-top: 6px solid var(--danger); }
.dlg-rules { margin: 0 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.dlg-rules li { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 1.5; }
.btn-void { background: var(--danger); border-color: var(--danger); color: #fff; }

.detail-head { display: flex; flex-direction: column; gap: 14px; border-bottom: 3px solid var(--ink); padding-bottom: 28px; margin-bottom: 32px; }
.detail-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.detail-title h1 { margin: 0; font-size: 40px; line-height: 1.08; }
.detail-amount { font-family: var(--font-num); font-size: 32px; font-weight: 600; }
.detail-body { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.detail-main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.detail-bill { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(140px, auto) 1fr; border-top: 1px solid var(--ink); }
.facts dt { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; font-weight: 400; color: var(--muted); }
.facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.decision { display: flex; flex-direction: column; gap: 12px; }
.decision h2 { margin: 0; font-size: 20px; }
.bill-frame { display: block; max-width: 100%; border: 1px solid var(--hairline); background: var(--paper); }
.bill-line { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }

@media (max-width: 767px) {
  .queue-headline, .detail-title h1 { font-size: 28px; }
  .queue-card { overflow-x: visible; background: transparent; border: 0; }
  .queue-table, .queue-table tbody { display: block; }
  .queue-table thead { display: none; }
  .queue-table tr { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--hairline); }
  .queue-table td { padding: 0; border: 0; }
  .q-expense { order: 1; }
  .q-amount { order: 2; font-weight: 600; text-align: left; }
  .q-age { order: 3; }
  .q-objective { order: 4; }
  .q-from { order: 5; }
  .q-bill { order: 6; }
  .q-decide { order: 7; }
  .decide { min-width: 0; }
  .decide .btn { width: 100%; }
  dialog.dlg-void { width: 92vw; }
}

.ledger-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; align-items: end; margin-bottom: 22px; }
.ledger-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ledger-field-wide { grid-column: 1 / -1; }
.ledger-field .form-label { margin-bottom: 0; }
.ledger-field-hint { font-weight: 400; color: var(--muted); }
.ledger-dates { display: flex; gap: 8px; }
.ledger-dates .form-control { min-width: 0; font-family: var(--font-num); font-size: 14px; }
.ledger-search-hint { font-size: 13px; color: var(--muted); }
.ledger-results { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.ledger-results .btn-link { min-height: 0; padding: 0 4px; font-size: 14px; font-weight: 600; vertical-align: baseline; }
.ledger-note { color: var(--muted); }
.ledger-table td.lg-id { color: var(--muted); white-space: nowrap; }
.ledger-table td.lg-date, .ledger-table td.lg-by, .ledger-table td.lg-decided, .ledger-table td.lg-status, .ledger-table td.lg-bill { white-space: nowrap; }
.ledger-table td.lg-amount { text-align: right; font-family: var(--font-num); white-space: nowrap; }
.ledger-table td.lg-amount-voided { color: var(--quiet); text-decoration: line-through; }
.ledger-table td.lg-act { white-space: nowrap; }
.ledger-table th.lg-amount-head { text-align: right; }
.lg-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.lg-reason { display: block; margin-top: 4px; font-size: 13px; color: var(--secondary); }
.lg-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lg-row-voided td { color: var(--muted); }
.lg-link { min-height: 0; padding: 0; font-size: 13px; font-weight: 600; }
.lg-void { --bs-btn-color: var(--danger); --bs-btn-hover-color: var(--danger); --bs-btn-active-color: var(--danger); }
.ledger-empty { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper); border: 1px solid var(--hairline); }
.ledger-empty h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.ledger-empty p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--secondary); }
.ledger-empty .btn { align-self: flex-start; }
.ledger-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 767px) {
  .ledger-table .lg-id { order: 1; }
  .ledger-table .lg-date { order: 2; }
  .ledger-table .lg-desc { order: 3; }
  .ledger-table .lg-status { order: 4; }
  .ledger-table .lg-amount { order: 5; text-align: left; font-weight: 600; }
  .ledger-table .lg-objective { order: 6; }
  .ledger-table .lg-by { order: 7; }
  .ledger-table .lg-decided { order: 8; }
  .ledger-table .lg-bill { order: 9; }
  .ledger-table .lg-act { order: 10; }
  .ledger-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .ledger-empty { padding: 20px; }
}
.adv-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.adv-figures { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.adv-lines { display: flex; flex-direction: column; margin-top: 10px; font-size: 14px; }
.adv-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--hairline); }
.adv-sub { margin-top: 6px; font-size: 14px; color: var(--secondary); }
.adv-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.adv-table td.adv-num, .adv-table th.adv-num { text-align: right; white-space: nowrap; }
.adv-note { display: block; font-size: 13px; color: var(--secondary); }
.adv-equation { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--hairline); background: var(--paper); margin-bottom: 24px; }
.adv-equation > div { padding: 14px 16px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.adv-equation > div:last-child { border-right: 0; background: var(--ink); color: #fff; }
.adv-equation .fig-label { color: inherit; }
.adv-equation .num { font-size: 20px; font-weight: 600; }
.adv-awaiting { margin: 12px 0 0; font-size: 15px; font-weight: 700; }
.adv-corrections { display: flex; flex-direction: column; gap: 24px; background: var(--paper); border: 1px solid var(--hairline); padding: 20px; }
.adv-corrections h2 { margin: 0; font-size: 20px; }
.adv-corrections h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.adv-corrections p { margin: 0 0 10px; font-size: 14px; color: var(--secondary); }
.adv-amount { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.adv-ro { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 15px; }
.adv-ro dt { font-weight: 400; color: var(--muted); }
.adv-ro dd { margin: 0; }
dialog.dlg-wide { width: 560px; }

@media (max-width: 767px) {
  .adv-figures { grid-template-columns: 1fr; }
  .adv-equation { grid-template-columns: 1fr 1fr; }
  .adv-equation > div { border-bottom: 1px solid var(--hairline); }
  .adv-table, .adv-table tbody { display: block; }
  .adv-table thead { display: none; }
  .adv-table tr { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--hairline); }
  .adv-table td { padding: 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .adv-table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .adv-table td.adv-num { text-align: right; }
  dialog.dlg-wide { width: 92vw; }
}

.lf { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.lf-form { display: flex; flex-direction: column; flex: 1 1 auto; }
.lf-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.lf-head h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1 1 auto; }
.lf-head .btn-link { min-height: 44px; padding: 0 4px; font-weight: 600; }
.lf-ref { font-family: var(--font-num); font-size: 14px; color: var(--muted); }
.lf-body { display: flex; flex-direction: column; gap: 20px; padding: 16px; flex: 1 1 auto; }
.lf-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.lf-field .form-label, .lf-field legend { margin: 0; font-size: 15px; font-weight: 700; float: none; width: auto; }
.lf-opt { font-weight: 400; color: var(--muted); }
.lf-hint { font-size: 13px; color: var(--muted); }
.lf-msg { font-size: 14px; font-weight: 600; color: var(--over-text); }
.lf-static { display: flex; flex-direction: column; gap: 2px; }
.lf-static span { font-size: 13px; color: var(--muted); }
.lf-amount { display: flex; align-items: center; gap: 8px; }
.lf-amount span { font-family: var(--font-num); font-size: 24px; }
.lf-amount .form-control { font-family: var(--font-num); font-size: 24px; min-height: 56px; }
.lf .form-control, .lf .form-select { min-height: 44px; }
.lf-choices { display: flex; flex-direction: column; gap: 8px; }
.lf-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--hairline); cursor: pointer; }
.lf-choice-on { border: 2px solid var(--ink); padding: 9px 11px; }
.lf-choice input { margin-top: 4px; flex: none; }
.lf-choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-choice-text strong { font-size: 15px; }
.lf-choice-text span { font-family: var(--font-num); font-size: 13px; color: var(--muted); }
.lf-seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--paper); }
.lf-seg button { min-height: 44px; padding: 0 4px; border: 0; border-right: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; }
.lf-seg button:last-child { border-right: 0; }
.lf-seg .lf-seg-on { background: var(--ink); color: #fff; }
.lf-stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.lf-stepper button { min-height: 56px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 24px; font-weight: 600; }
.lf-stepper .form-control { min-height: 56px; text-align: center; font-family: var(--font-num); font-size: 24px; }
.lf-bill { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--paper); border: 1px solid var(--hairline); }
.lf-bill-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.lf-bill-text span { font-family: var(--font-num); font-size: 13px; color: var(--muted); }
.lf-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--hairline); }
.lf-box-over { background: #FDEBDD; border-color: var(--over); color: var(--over-text); }
.lf-box-wait { background: #FFF6CC; border-color: var(--waiting); color: var(--ink); }
.lf-refused { margin: 0; padding: 12px 16px; background: #FDEBDD; border: 1px solid var(--over); color: var(--over-text); font-weight: 700; }
.lf-summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--hairline); }
.lf-summary span:last-child { font-family: var(--font-num); white-space: nowrap; }
.lf-sending { display: flex; flex-direction: column; gap: 8px; }
.lf-bar { width: 100%; height: 8px; }
.lf-kept { margin: 0; font-size: 14px; color: var(--secondary); }
.lf-sticky { position: sticky; bottom: 0; padding: 12px 16px; background: var(--paper); border-top: 1px solid var(--hairline); }
.lf-sticky .btn, .lf-body .btn-lg { width: 100%; min-height: 48px; font-weight: 700; }
.lf-sent h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; }
.lf-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 12px 16px; background: var(--paper); border: 1px solid var(--hairline); }
.lf-list dt { font-weight: 400; color: var(--muted); }
.lf-list dd { margin: 0; overflow-wrap: anywhere; }
.lf-actions { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: var(--paper); border-top: 1px solid var(--hairline); position: sticky; bottom: 0; }
.lf-actions .btn { min-height: 48px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) {
  .lf { border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); }
}
.lf-fields { display: flex; flex-direction: column; gap: 20px; }
.lf-list .contents { display: contents; }
.tabbar { display: none; }
.m-page { display: flex; flex-direction: column; gap: 16px; }
.m-who { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.m-h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.m-h2 { margin: 0; font-size: 16px; font-weight: 700; }
.m-actions { display: flex; flex-direction: column; gap: 10px; }
.m-big { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; }
.m-big:hover { color: var(--ink); background: var(--ground); }
.m-big-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.m-big-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.m-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--hairline); background: #fff; }
.m-fig { font-size: 28px; font-weight: 700; }
.m-section { display: flex; flex-direction: column; gap: 10px; }
.m-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.m-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border: 1px solid var(--hairline); background: #fff; }
.m-entry-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.m-list { display: flex; flex-direction: column; border: 1px solid var(--hairline); background: #fff; }
.m-list-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.m-list-row:last-child { border-bottom: 0; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.m-chip.is-on { background: var(--ink); color: #fff; }
.m-dl { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--hairline); background: #fff; }
.m-dl div { padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.m-dl div:last-child { border-bottom: 0; }
.m-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.m-dl dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.shell.has-tabs .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; display: flex; max-width: 480px; margin: 0 auto; background: var(--paper); border-top: 1px solid var(--hairline); }
.tabbar-link { flex: 1; display: flex; align-items: center; justify-content: center; height: 56px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar-link.is-current { color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.shell.has-tabs .lf-sticky { bottom: 56px; }
.shell.has-tabs .main { padding-bottom: 88px; }
@media (min-width: 768px) {
  .shell.has-tabs { display: block; }
  .shell.has-tabs .side { display: none; }
  .shell.has-tabs .topbar { display: flex; align-items: center; justify-content: space-between; max-width: 480px; margin: 0 auto; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
  .shell.has-tabs .topbar-brand { display: flex; align-items: center; gap: 8px; }
  .shell.has-tabs .topbar-title { font-size: 15px; font-weight: 700; }
  .shell.has-tabs .topbar-menu { display: none; }
  .shell.has-tabs .main { max-width: 480px; margin: 0 auto; padding: 18px 16px 88px; }
}
.dn-page { min-height: 100vh; background: var(--ground); }
.dn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 32px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.dn-head-left, .dn-head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dn-head-left { gap: 20px; }
.dn-brand { display: flex; align-items: center; gap: 10px; }
.dn-brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.dn-divider { width: 1px; height: 28px; background: var(--hairline); }
.dn-org { font-size: 16px; font-weight: 700; }
.dn-link { font-size: 14px; font-weight: 600; }
.dn-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.dn-person { font-size: 14px; }
.dn-signout { padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 600; }
.dn-signout:hover { color: var(--blue-hover); }
.dn-body { max-width: 1040px; margin: 0 auto; padding: 28px 32px 72px; display: flex; flex-direction: column; gap: 28px; }
.dn-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dn-pick { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.dn-pick label { font-size: 13px; font-weight: 600; }
.dn-pick select { height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 2px; font: 500 15px var(--font-body); background: var(--paper); color: var(--ink); }
.dn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dn-asof { font-size: 13px; color: var(--muted); }
.dn-card { background: var(--paper); border: 1px solid var(--hairline); padding: 36px; display: flex; flex-direction: column; gap: 30px; }
.dn-title-block { display: flex; flex-direction: column; gap: 8px; border-bottom: 3px solid var(--ink); padding-bottom: 22px; }
.dn-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dn-title { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.dn-sub { font-size: 15px; color: var(--secondary); }
.dn-section { display: flex; flex-direction: column; gap: 12px; }
.dn-section h2 { margin: 0; font-size: 20px; font-weight: 700; }
.dn-spend { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 28px; font-weight: 600; }
.dn-of { font-size: 16px; font-weight: 400; color: var(--secondary); }
.dn-bar-track { appearance: none; display: block; width: 100%; height: 10px; border: 0; background: var(--track); }
.dn-bar-track::-webkit-progress-bar { background: var(--track); }
.dn-bar-track::-webkit-progress-value { background: var(--blue); }
.dn-bar-track::-moz-progress-bar { background: var(--blue); }
.dn-bar-over::-webkit-progress-value { background: var(--over); }
.dn-bar-over::-moz-progress-bar { background: var(--over); }
.dn-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); }
.dn-table { border-collapse: collapse; width: 100%; }
.dn-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.dn-table td { padding: 13px 12px; border-bottom: 1px solid var(--hairline); font-size: 14px; vertical-align: top; }
.dn-table td.dn-fig, .dn-table th.dn-fig { text-align: right; white-space: nowrap; }
.dn-table td.dn-fig { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.dn-table td.dn-achieved { font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-table tr:last-child td { border-bottom: 0; }
.dn-obj { font-weight: 600; }
.dn-obj-misc { font-weight: 400; color: var(--secondary); }
.dn-note { display: block; font-size: 13px; font-weight: 400; color: var(--secondary); }
.dn-foot { font-size: 13px; color: var(--muted); }
.dn-approvals { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--hairline); padding-top: 18px; }
.dn-approvals h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dn-approvals p { margin: 0; font-size: 15px; line-height: 1.5; }
.dn-assure { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.dn-empty { background: var(--paper); border: 1px solid var(--hairline); padding: 36px; display: flex; flex-direction: column; gap: 6px; }
.dn-empty h1 { margin: 0; font-size: 22px; font-weight: 800; }
.dn-empty p { margin: 0; color: var(--secondary); }

@media (max-width: 767px) {
  .dn-head { padding: 14px 16px; }
  .dn-body { padding: 20px 16px 56px; }
  .dn-card { padding: 20px 16px; gap: 24px; }
  .dn-title { font-size: 26px; }
  .dn-spend { font-size: 22px; }
  .dn-pick { min-width: 100%; }
  .dn-table-wrap { border: 0; overflow: visible; }
  .dn-table, .dn-table tbody { display: block; }
  .dn-table thead { display: none; }
  .dn-table tr { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--hairline); }
  .dn-table td { padding: 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .dn-table td.dn-obj-cell { display: block; }
  .dn-table td.dn-achieved { white-space: normal; overflow-wrap: anywhere; }
  .dn-table td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
}

.rp-sheet { box-sizing: border-box; width: 794px; max-width: 100%; margin: 24px auto; padding: 56px 56px 40px; background: var(--paper); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 28px; }
.rp-bar { width: 794px; max-width: 100%; margin: 24px auto 0; display: flex; justify-content: flex-end; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 3px solid var(--ink); padding-bottom: 20px; }
.rp-head-text { display: flex; flex-direction: column; gap: 6px; }
.rp-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); }
.rp-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.rp-meta { font-size: 14px; color: var(--secondary); }
.rp-mark { display: flex; align-items: center; gap: 6px; flex: none; font-size: 14px; font-weight: 800; }
.rp-section { display: flex; flex-direction: column; gap: 10px; }
.rp-section h2 { margin: 0; font-size: 18px; font-weight: 700; }
.rp-section p { margin: 0; font-size: 15px; line-height: 1.5; }
.rp-table { border-collapse: collapse; width: 100%; }
.rp-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 6px; border-bottom: 2px solid var(--ink); }
.rp-table td { padding: 10px 6px; border-bottom: 1px solid var(--hairline); font-size: 15px; vertical-align: top; }
.rp-table th.rp-fig, .rp-table td.rp-fig { text-align: right; }
.rp-table td.rp-fig, .rp-table td.rp-achieved { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.rp-total td { font-weight: 700; border-bottom: 2px solid var(--ink); }
.rp-notes { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--secondary); }
.rp-foot { margin-top: auto; border-top: 1px solid var(--ink); padding-top: 10px; font-size: 12px; color: var(--secondary); }

@media (max-width: 767px) {
  .rp-sheet { padding: 24px 16px; margin: 12px auto; }
  .rp-head { flex-direction: column-reverse; }
  .rp-title { font-size: 24px; }
  .rp-table { display: block; overflow-x: auto; }
}

@page { size: A4; margin: 14mm; }

@media print {
  .rp-sheet { width: 100%; margin: 0; padding: 0; border: 0; gap: 22px; }
  .rp-bar { display: none; }
  .rp-head { break-inside: avoid; }
  .rp-table tr { break-inside: avoid; }
  .rp-table thead { display: table-header-group; }
}

.legal-head {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}
.auth-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.consent-row input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
