:root {
  --ink: #203034;
  --muted: #718083;
  --green: #146c62;
  --green-dark: #12554e;
  --green-soft: #e9f4ef;
  --gold: #9f7a28;
  --gold-light: #e7c66f;
  --gold-soft: #f2e7c8;
  --gold-ink: #806222;
  --line: #e0e7e7;
  --page: #f5f7f8;
  --white: #fff;
  --amber: #9b6715;
  --blue: #3f6f96;
  --radius: 7px;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--page);
  letter-spacing: 0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
svg {
  flex-shrink: 0;
}
button svg,
.button svg,
.icon-button svg,
nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
small {
  font-size: 12px;
}
input,
select,
textarea {
  min-width: 0;
  border: 1px solid #d4dddd;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 40px;
}
input::placeholder,
textarea::placeholder {
  color: #98a3a4;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold-soft);
  outline-offset: 0;
}
label {
  display: block;
  font-size: 12px;
  color: #546569;
  font-weight: 600;
  margin-bottom: 7px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
input[type='checkbox'] {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  white-space: normal;
}
.button:hover {
  background: #f2f6f5;
  border-color: #bdcfca;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.primary .lucide-arrow-right {
  color: var(--gold-light);
}
.text-link .lucide-arrow-right,
.notice a .lucide-arrow-right,
.icon-button:hover .lucide-arrow-up-right {
  color: var(--gold);
}
.button.quiet {
  background: transparent;
}
.button.danger {
  color: #a84141;
}
.button.small {
  padding: 6px 11px;
  min-height: 32px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.icon-button {
  border: 1px solid transparent;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: transparent;
  color: #64777a;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #edf3f1;
  color: var(--green);
}
.icon-button.bordered {
  border-color: var(--line);
  background: white;
}
.field-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}
.field-validation {
  border-left: 2px solid var(--gold);
  padding-left: 8px;
  margin: 7px 0 0;
  color: var(--gold-ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--gold);
}
.form-error {
  color: #a43838;
  background: transparent;
  border-left: 2px solid #b96a5d;
  font-size: 13px;
  padding: 2px 0 2px 10px;
  margin-top: 14px;
  line-height: 1.5;
}
.form-note {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.muted {
  color: var(--muted);
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.text-right {
  text-align: right;
}
.text-link {
  color: var(--green);
  font-weight: 600;
}
.spinner {
  width: 21px;
  height: 21px;
  border: 2px solid #d8e7e2;
  border-top-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
.loading-state {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-page {
  --login-background: #f4f7f8;
  min-height: 100dvh;
  background: var(--login-background);
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.login-stack {
  width: min(100%, 370px);
  text-align: center;
}
.login-sun {
  display: inline-block;
  position: relative;
  isolation: isolate;
  contain: layout paint;
  width: 270px;
  max-width: 100%;
  height: 152px;
  margin-bottom: 0;
}
.login-sun > div,
.login-sun > .logo-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.login-sun svg {
  display: block;
  width: 100%;
  height: 100%;
}
.logo-line {
  fill: none;
  stroke: #3f5756;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.login-sun .logo-cover {
  fill: var(--login-background);
}
.login-sun .sun-circle {
  transform: translate3d(0, 20.714286%, 0);
}
.login-sun .logo-rays {
  opacity: 0;
}
.login-sun:not([data-sunrise='complete']) .sun-circle {
  will-change: transform;
}
.login-sun:not([data-sunrise='complete']) .logo-rays {
  will-change: opacity;
}
.login-sun:is([data-sunrise='running'], [data-sunrise='paused']) .sun-circle {
  animation: login-sunrise 3.6s cubic-bezier(0.3, 0, 0.2, 1) both;
}
.login-sun:is([data-sunrise='running'], [data-sunrise='paused']) .logo-rays {
  animation: login-rays-fade 1.4s ease-in-out 1.8s both;
}
.login-sun[data-sunrise='paused'] :is(.sun-circle, .logo-rays) {
  animation-play-state: paused;
}
.login-sun[data-sunrise='complete'] .sun-circle {
  transform: none;
}
.login-sun[data-sunrise='complete'] .logo-rays {
  opacity: 1;
}
@keyframes login-sunrise {
  from {
    transform: translate3d(0, 20.714286%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes login-rays-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-sun .sun-circle,
  .login-sun .logo-rays {
    animation: none !important;
    will-change: auto !important;
  }
  .login-sun .sun-circle {
    transform: none;
  }
  .login-sun .logo-rays {
    opacity: 1;
  }
}
.login-brand {
  margin-bottom: 30px;
}
.login-brand h1 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0;
}
.login-brand p {
  font-size: 13px;
  color: #7b8b8a;
  margin-top: 8px;
}
.login-panel {
  background: white;
  border: 1px solid #e4eaea;
  border-top-color: var(--gold-light);
  border-radius: 8px;
  text-align: left;
  padding: 28px 29px;
  box-shadow: 0 10px 28px #213c3508;
}
.login-panel h2 {
  text-align: center;
  font-size: 21px;
  margin-bottom: 25px;
}
.login-panel input {
  width: 100%;
  margin-bottom: 17px;
  min-height: 44px;
}
.login-panel .field-validation {
  margin: -9px 0 17px;
}
.login-panel .primary {
  min-height: 43px;
  margin-top: 4px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 45px;
}
.password-eye {
  position: absolute;
  right: 5px;
  top: 5px;
}
.login-footer {
  color: #95a19f;
  font-size: 11px;
  margin-top: 24px;
}
.login-panel .field-hint {
  margin: 0 0 16px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 30px 16px 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  padding: 0 15px 31px;
  font-size: 22px;
  font-weight: 650;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.workspace-label {
  font-size: 10px;
  font-weight: 650;
  color: #9ba5a5;
  padding: 0 16px;
  margin: 9px 0 14px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a,
.sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #697a7b;
  font-size: 13px;
  min-height: 42px;
  border-radius: 5px;
  padding: 10px 13px;
  white-space: nowrap;
}
.sidebar a:hover {
  background: #f3f7f6;
}
.sidebar a.active {
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 650;
  box-shadow: inset 2px 0 0 var(--gold);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.sidebar-bottom > a svg {
  width: 18px;
}
.sidebar-signature {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 20px 13px 0;
  margin-top: 15px;
  font-size: 10px;
  color: #9aa7a5;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #77a98f;
}
.app-main {
  margin-left: 234px;
  min-width: 0;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.year-label {
  font-size: 11px;
  color: #83918f;
  margin: 0;
}
.year-select {
  min-height: 32px;
  padding: 5px 25px 5px 9px;
  font-size: 12px;
}
.topbar-divider {
  height: 24px;
  width: 1px;
  background: var(--line);
  margin: 0 7px;
}
.user-avatar {
  background: #edf3ef;
  border: 1px solid #dfe8e1;
  color: #527b62;
  font-size: 11px;
  font-weight: 600;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.user-name {
  font-size: 12px;
}
.mobile-menu {
  display: none;
}
.main-content {
  padding: 35px 38px 70px;
  max-width: 2000px;
  margin: auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  color: #8a9b98;
  margin-bottom: 8px;
}
.page-heading p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  margin-bottom: 29px;
}
.metric {
  padding: 22px 23px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.metric-label {
  font-size: 11px;
  color: #83918f;
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric-label svg {
  width: 14px;
  height: 14px;
}
.metric-value {
  font-size: 25px;
  font-weight: 600;
  margin-top: 11px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.metric-foot {
  color: #8a9997;
  font-size: 10px;
  margin-top: 9px;
}
.metric-value.accent {
  color: var(--green);
}
.metric-value.blue {
  color: var(--blue);
}
.metric-value.amber {
  color: var(--amber);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 16px;
}
.section-heading .muted {
  font-size: 11px;
}
.filterbar {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.segmented {
  display: inline-flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  align-self: stretch;
  max-width: 100%;
  overflow: auto;
}
.segment {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 14px 12px;
  color: #8a9899;
  font-size: 12px;
  white-space: nowrap;
}
.segment.active {
  color: var(--green);
  border-color: var(--gold);
  font-weight: 650;
}
.segment small {
  margin-left: 6px;
  color: #9aa6a5;
}
.filters-right {
  display: flex;
  align-items: center;
  gap: 9px;
}
.search {
  position: relative;
}
.search > svg {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 15px;
  height: 15px;
  color: #9aaba7;
}
.search input {
  padding-left: 34px;
  width: 210px;
  min-height: 36px;
  font-size: 12px;
}
.filter-select {
  min-height: 36px;
  font-size: 12px;
  max-width: 180px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.data-table th {
  padding: 13px 16px;
  background: #f9fbfb;
  color: #879795;
  font-size: 10px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 17px 16px;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr[data-open] {
  cursor: pointer;
}
.data-table tbody tr[data-open]:hover {
  background: #fafcfb;
}
.document-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 190px;
}
.document-thumb {
  width: 35px;
  height: 44px;
  border: 1px solid #dfe6e4;
  box-shadow: 0 2px 4px #20303406;
  background: white;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #8aaba1;
  overflow: hidden;
}
.document-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.document-thumb svg {
  width: 20px;
  height: 20px;
}
.cell-title {
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cell-subtitle {
  font-size: 10px;
  color: #95a19f;
  line-height: 1.4;
}
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #71817f;
  font-size: 11px;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.inbox,
.badge.draft {
  background: #fbf3e5;
  color: #a67d2e;
}
.badge.reviewed {
  background: #eaf2fa;
  color: #557fa8;
}
.badge.posted,
.badge.issued {
  background: #eaf4ed;
  color: #60906c;
}
.badge.neutral {
  background: #f0f3f3;
  color: #82938e;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
  color: #94a39e;
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice {
  padding: 12px 15px;
  background: #edf4f0;
  color: #567969;
  border-left: 3px solid #88b59b;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin: 0 0 22px;
}
.notice.amber {
  background: #fcf6e9;
  border-color: #d9bd76;
  color: #8b753f;
}
.notice a {
  font-weight: 600;
}
.empty-state {
  padding: 70px 24px;
  text-align: center;
  color: #8b9b97;
}
.empty-state > svg {
  width: 37px;
  height: 37px;
  color: #adc3b8;
  margin-bottom: 18px;
  stroke-width: 1.2;
}
.empty-state h3 {
  color: #62786f;
  font-weight: 500;
  font-size: 16px;
}
.empty-state p {
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}
.empty-state .button {
  margin-top: 20px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.plain-section {
  margin-bottom: 32px;
}
.activity-list {
  border-top: 1px solid var(--line);
}
.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.activity .activity-icon {
  background: #edf3ef;
  border-radius: 5px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #85a18f;
}
.activity svg {
  width: 15px;
}
.activity strong {
  font-size: 12px;
  font-weight: 500;
}
.activity small {
  display: block;
  color: #94a39f;
  margin-top: 5px;
  font-size: 10px;
}
.activity time {
  font-size: 10px;
  margin-left: auto;
  color: #9caaa5;
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog {
  padding: 0;
  border: 1px solid #dce5e1;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 70px #102b2c30;
}
dialog::backdrop {
  background: #102d2c55;
  backdrop-filter: blur(2px);
}
.detail-dialog {
  width: calc(100vw - 64px);
  max-width: 1500px;
  height: calc(100dvh - 60px);
  max-height: calc(100dvh - 40px);
}
#detail-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dialog-head {
  height: 65px;
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 23px;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 15px;
}
.dialog-head .muted {
  font-size: 10px;
  margin-top: 5px;
}
.dialog-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dialog-head-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(350px, 0.85fr);
  flex: 1;
  min-height: 0;
}
.pdf-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #e9eeed;
  min-width: 0;
}
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #d9e2de;
  background: #f6f8f7;
  padding: 9px;
  min-height: 49px;
  color: #7f9189;
  font-size: 11px;
}
.pdf-toolbar .icon-button {
  height: 28px;
  width: 28px;
}
.pdf-scroll {
  scrollbar-gutter: stable;
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.pdf-scroll canvas {
  display: block;
  background: white;
  box-shadow: 0 3px 18px #21383115;
  max-width: none;
  height: auto;
  flex-shrink: 0;
}
.pdf-scroll img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdf-scroll iframe {
  border: 0;
  width: 100%;
  height: 100%;
  background: white;
}
.pdf-placeholder {
  padding: 100px 30px;
  text-align: center;
  color: #8aa095;
  font-size: 12px;
}
.index-panel {
  padding: 25px 25px 12px;
  overflow: auto;
  min-width: 0;
}
.index-section {
  margin-bottom: 23px;
}
.index-section-title {
  font-size: 10px;
  font-weight: 650;
  color: #99a79f;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.index-grid .full {
  grid-column: 1/-1;
}
.index-grid input,
.index-grid select,
.index-grid textarea {
  width: 100%;
  font-size: 12px;
  min-height: 38px;
}
.index-grid label {
  font-size: 11px;
}
.suggestion {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #8a9d92;
  font-size: 10px;
  font-weight: 400;
}
.suggestion svg {
  width: 11px;
  height: 11px;
}
.field-source {
  display: block;
  max-width: 100%;
  font-size: 9px;
  color: #a4afa9;
  line-height: 1.3;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.invoice-amounts {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0;
}
.invoice-amounts .amount-label {
  font-size: 10px;
  color: #91a297;
  margin-bottom: 7px;
}
.invoice-amounts strong {
  font-size: 20px;
  font-weight: 600;
}
.dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 22px;
  background: #fff;
  min-height: 68px;
}
.dialog-foot .muted {
  font-size: 10px;
}
.dialog-foot-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.form-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
}
.form-dialog.wide {
  width: min(1000px, calc(100vw - 32px));
}
.form-body {
  padding: 25px;
  max-height: calc(100dvh - 210px);
  overflow: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
}
.form-dialog form {
  margin: 0;
}
.inline-error {
  font-size: 12px;
  color: #a23838;
  line-height: 1.4;
  padding: 0 25px 15px;
}
.settings-layout {
  max-width: 860px;
}
.settings-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
}
.settings-section h3 {
  font-size: 13px;
}
.settings-section > div > p {
  font-size: 11px;
  color: #91a096;
  line-height: 1.5;
  margin-top: 8px;
}
.settings-actions {
  padding-top: 22px;
  display: flex;
  justify-content: flex-end;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #203c34;
  color: white;
  box-shadow: 0 4px 20px #12362930;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 1000;
  max-width: min(480px, calc(100vw - 30px));
  line-height: 1.5;
}
.toast.error {
  background: #934737;
}
.ledger-lines {
  margin-top: 10px;
  background: #f6f8f7;
  padding: 12px;
  border-radius: 4px;
}
.ledger-lines table {
  width: 100%;
  font-size: 11px;
}
.ledger-lines td {
  padding: 6px;
}
.journal-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.journal-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.journal-entry-head h3 {
  font-size: 13px;
}
.journal-entry-head p {
  font-size: 11px;
  color: #8e9f94;
  margin-top: 6px;
}
.report-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 25px;
}
.report-table td,
.report-table th {
  padding: 14px 18px;
}
.report-table .total td {
  background: #f0f5f2;
  font-weight: 650;
}
.amount-positive {
  color: #508365;
}
.amount-negative {
  color: #a06c51;
}
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.customer-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 23px;
}
.customer-item h3 {
  font-size: 15px;
  margin-bottom: 14px;
}
.customer-item p {
  font-size: 12px;
  line-height: 1.7;
  color: #81938a;
}
.customer-item a {
  font-size: 12px;
  display: inline-block;
  margin-top: 15px;
}
.outgoing-items input,
.outgoing-items textarea {
  width: 100%;
  font-size: 12px;
}
.outgoing-items input[type='number'] {
  width: 65px;
}
.outgoing-items td {
  padding: 8px 5px;
}
.outgoing-items textarea {
  min-width: 160px;
  min-height: 65px;
}
.calculation {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  font-size: 12px;
  color: #748c7c;
  line-height: 1.8;
}
.journal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 32px;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.journal-grid select,
.journal-grid input {
  width: 100%;
  font-size: 12px;
}
.page-error {
  padding: 60px 20px;
  text-align: center;
  color: #9a6150;
}
.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  padding: 15px;
  font-size: 12px;
  border: 1px dashed #b8cdc2;
  background: #f5faf7;
  margin: 15px 0;
  border-radius: 5px;
}
.source-list {
  padding-top: 12px;
}
.source-list button {
  display: block;
  background: none;
  border: 0;
  color: var(--green);
  font-size: 11px;
  margin: 9px 0;
  padding: 0;
  text-align: left;
}
.report-context {
  font-size: 11px;
  color: #98a69d;
  margin-top: 15px;
  line-height: 1.6;
}
.notice > span {
  flex: 1;
}
.notice > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.notice > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.notice > a svg {
  width: 14px;
  height: 14px;
}
@media (min-width: 1700px) {
  .main-content {
    padding-top: 46px;
  }
  .metric {
    padding: 27px;
  }
  .data-table td {
    padding-top: 21px;
    padding-bottom: 21px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-main {
    margin-left: 210px;
  }
  .main-content {
    padding: 28px 24px 50px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 19px 16px;
  }
  .metric-value {
    font-size: 23px;
  }
  .data-table th,
  .data-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .user-name {
    display: none;
  }
  .index-panel {
    padding: 20px;
  }
  .detail-layout {
    grid-template-columns: minmax(300px, 1fr) minmax(330px, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
  }
  .sidebar nav a,
  .sidebar-bottom > a {
    font-size: 12px;
    padding-left: 9px;
  }
  .brand {
    padding-left: 9px;
    font-size: 20px;
  }
  .app-main {
    margin-left: 190px;
  }
  .main-content {
    padding: 25px 19px;
  }
  .topbar {
    padding: 0 19px;
  }
  .year-label {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .filters-right {
    flex: 1;
    justify-content: flex-end;
  }
  .detail-dialog {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }
  .index-grid {
    gap: 11px;
  }
  .index-panel {
    padding: 18px 15px;
  }
  .dialog-foot {
    padding: 12px 15px;
  }
  .dialog-foot .muted {
    display: none;
  }
  .settings-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 24px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 234px;
    box-shadow: 15px 0 40px #20303420;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 61px;
    padding: 0 13px;
    gap: 8px;
  }
  .topbar-right {
    gap: 5px;
  }
  .topbar-divider,
  .user-avatar {
    display: none;
  }
  .year-select {
    font-size: 11px;
    max-width: 80px;
  }
  .main-content {
    padding: 25px 15px 45px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
    gap: 14px;
  }
  .page-heading p {
    max-width: 220px;
  }
  .page-heading .heading-actions .button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .page-heading .heading-actions .button svg {
    width: 15px;
  }
  .metrics {
    margin-bottom: 24px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .filterbar {
    gap: 12px;
  }
  .segmented {
    width: 100%;
    justify-content: space-between;
  }
  .segment {
    padding: 10px 9px;
    font-size: 11px;
  }
  .filters-right {
    width: 100%;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .filter-select {
    max-width: 145px;
  }
  .data-table th,
  .data-table td {
    padding: 13px 10px;
  }
  .data-table {
    min-width: 680px;
  }
  .data-table.compact-mobile {
    min-width: 500px;
  }
  .detail-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  .dialog-head {
    padding: 10px 13px;
    min-height: 60px;
    height: 60px;
  }
  .dialog-head h2 {
    font-size: 13px;
    max-width: 230px;
    overflow-wrap: anywhere;
  }
  .dialog-head .badge {
    display: none;
  }
  .detail-layout {
    display: block;
    overflow: auto;
  }
  .pdf-panel {
    height: 48dvh;
    min-height: 260px;
  }
  .pdf-scroll {
    padding: 15px;
  }
  .index-panel {
    overflow: visible;
    padding: 21px 18px;
  }
  .dialog-foot {
    min-height: 66px;
    justify-content: flex-end;
    padding: 11px 13px;
  }
  .dialog-foot-right {
    width: 100%;
    justify-content: flex-end;
  }
  .dialog-foot .button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .form-body {
    padding: 20px 17px;
  }
  .form-dialog {
    max-height: calc(100dvh - 24px);
  }
  .settings-section {
    padding: 21px 0;
  }
  .settings-section .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-section .form-grid .full {
    grid-column: 1/-1;
  }
  .notice {
    font-size: 11px;
    line-height: 1.4;
  }
  .notice .button {
    font-size: 10px;
    min-width: 80px;
  }
  .customer-grid {
    grid-template-columns: 1fr;
  }
  .journal-grid {
    grid-template-columns: 1fr 80px 80px 26px;
  }
  .journal-grid select {
    padding-left: 7px;
  }
  .journal-entry-head h3 {
    font-size: 12px;
  }
  .table-footer {
    font-size: 10px;
  }
  .toast {
    bottom: 16px;
    right: 15px;
  }
  .year-label {
    display: none;
  }
  .login-panel {
    padding: 26px;
  }
  .login-sun {
    height: 130px;
  }
}
.sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.sidebar-heading .brand {
  min-width: 0;
}
.sidebar-close,
.mobile-navigation {
  display: none;
}
.navigation-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  border: 0;
  background: #132e354d;
}
.install-button {
  width: 100%;
  justify-content: flex-start;
  font-size: 12px;
}
.login-install {
  margin-top: 10px;
  color: var(--green);
  font-size: 12px;
}
.pwa-notices {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: min(400px, calc(100% - 32px));
  display: grid;
  gap: 8px;
  z-index: 45;
}
.pwa-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 15px;
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 15px #20303410;
  font-size: 12px;
  line-height: 1.5;
}
.pwa-notice > svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
}
.pwa-notice > span {
  flex: 1;
  min-width: 0;
}
.pwa-install-dialog {
  max-width: 450px;
}
.pwa-install-dialog .form-body {
  line-height: 1.7;
}
.install-icon {
  display: block;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.offline-content {
  max-width: 390px;
  text-align: center;
}
.offline-content img {
  border-radius: 8px;
  margin-bottom: 24px;
}
.offline-content p {
  margin: 20px 0 28px;
  color: var(--muted);
  line-height: 1.6;
}
.metric-value,
.dialog-head h2,
.activity strong,
.activity small {
  overflow-wrap: anywhere;
}
.activity > div {
  min-width: 0;
}
.activity time {
  flex-shrink: 0;
}
.topbar-right {
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .sidebar {
    width: min(290px, calc(100vw - 40px));
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close,
  .mobile-menu {
    display: inline-flex;
  }
  .sidebar nav a,
  .sidebar-bottom > a {
    min-height: 46px;
    font-size: 14px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .navigation-open {
    overflow: hidden;
  }
  .app-main {
    margin-left: 0;
  }
  .topbar {
    height: calc(62px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
  .main-content {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .user-avatar,
  .topbar-divider {
    display: none;
  }
}
@media (max-width: 650px) {
  input,
  select,
  textarea,
  .search input,
  .filter-select,
  .year-select,
  .journal-grid input,
  .journal-grid select,
  .outgoing-items input,
  .outgoing-items textarea {
    font-size: 16px;
  }
  .button,
  .button.small,
  .icon-button,
  input,
  select {
    min-height: 44px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .password-eye {
    top: 0;
    right: 2px;
  }
  .topbar-left {
    gap: 6px;
  }
  .topbar-right {
    gap: 2px;
  }
  .year-select {
    max-width: 83px;
    padding-right: 15px;
    font-size: 16px;
  }
  .main-content {
    padding: 22px max(16px, env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading > div:first-child {
    min-width: 0;
  }
  .page-heading p {
    max-width: none;
    font-size: 13px;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .page-heading .heading-actions .button {
    font-size: 13px;
    padding: 10px 13px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-value {
    font-size: 21px;
  }
  .metric-foot {
    font-size: 10px;
    line-height: 1.4;
  }
  .filters-right {
    flex-wrap: wrap;
  }
  .filters-right .search {
    flex-basis: 100%;
  }
  .filter-select {
    max-width: 100%;
    width: 100%;
  }
  .search > svg {
    top: 15px;
  }
  .mobile-navigation {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 25;
    border-top: 1px solid var(--line);
    background: white;
    padding: 6px env(safe-area-inset-right) calc(6px + env(safe-area-inset-bottom))
      env(safe-area-inset-left);
  }
  .mobile-navigation a,
  .mobile-navigation button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 51px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #718083;
    font-size: 10px;
    border-radius: 5px;
    padding: 4px 0;
  }
  .mobile-navigation svg {
    width: 21px;
    height: 21px;
  }
  .mobile-navigation a.active {
    color: var(--green-dark);
    background: var(--green-soft);
    font-weight: 650;
    box-shadow: inset 0 2px 0 var(--gold);
  }
  .mobile-records.data-table {
    min-width: 0;
  }
  .mobile-records thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mobile-records tbody {
    display: block;
  }
  .mobile-records tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px 3px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-records tbody tr:last-child {
    border-bottom: 0;
  }
  .mobile-records td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    border: 0;
    min-width: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .mobile-records td:first-child,
  .mobile-records td:nth-child(2) {
    grid-column: 1 / -1;
  }
  .mobile-records td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 5px;
  }
  .mobile-records td[data-label='']::before {
    display: none;
  }
  .mobile-records td:last-child {
    align-items: flex-end;
    justify-content: flex-end;
  }
  .mobile-records td.money {
    white-space: normal;
  }
  .document-cell {
    min-width: 0;
    width: 100%;
  }
  .document-cell > div {
    min-width: 0;
  }
  .report-table.data-table {
    min-width: 0;
  }
  .report-table td,
  .report-table th {
    padding: 12px 8px;
    overflow-wrap: anywhere;
  }
  .report-table td.money {
    white-space: normal;
  }
  .report-tabs {
    overflow-x: auto;
    max-width: 100%;
  }
  .report-tabs .button {
    flex-shrink: 0;
  }
  .detail-dialog .dialog-head {
    height: auto;
    padding-top: calc(10px + env(safe-area-inset-top));
    min-height: calc(64px + env(safe-area-inset-top));
  }
  .dialog-head h2 {
    max-width: none;
    font-size: 14px;
  }
  .dialog-head-actions {
    gap: 2px;
    flex-shrink: 0;
  }
  .detail-layout {
    overscroll-behavior: contain;
  }
  .detail-dialog .dialog-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .dialog-foot {
    flex-wrap: wrap;
  }
  .dialog-foot-right {
    flex-wrap: wrap;
    gap: 7px;
  }
  .dialog-foot .button {
    font-size: 12px;
  }
  .detail-dialog .dialog-foot-right > .button {
    flex: 1 1 auto;
  }
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-grid .full {
    grid-column: auto;
  }
  .form-dialog {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .form-body {
    max-height: calc(100dvh - 250px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .outgoing-items textarea,
  .outgoing-items input[type='number'] {
    width: 100%;
    min-width: 0;
  }
  .journal-grid {
    grid-template-columns: 1fr 1fr 44px;
  }
  .journal-grid select {
    grid-column: 1 / -1;
  }
  .notice {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .activity {
    flex-wrap: wrap;
  }
  .activity > div {
    flex: 1;
  }
  .pwa-notices,
  .app-body .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
    right: 16px;
  }
  .login-page {
    padding: calc(20px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
      calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
}
@media (max-width: 380px) {
  .settings-section .form-grid {
    grid-template-columns: 1fr;
  }
  .settings-section .form-grid .full {
    grid-column: auto;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .button {
    flex: 1;
  }
}
.filters-right {
  flex-wrap: wrap;
}
.intake-main {
  height: calc(100dvh - 72px);
  max-width: none;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}
.intake-main .page-heading {
  flex: 0 0 auto;
  margin-bottom: 18px;
}
.intake-main .eyebrow {
  display: none;
}
.intake-main h1 {
  font-size: 23px;
}
.intake-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  border-block: 1px solid var(--line);
  background: white;
}
.intake-inbox {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.intake-filters {
  padding: 13px;
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}
.intake-filters input,
.intake-filters select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.intake-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.intake-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px 13px;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  min-height: 132px;
}
.intake-item:hover {
  background: #f5f9f7;
}
.intake-item.selected {
  background: #edf5f1;
  box-shadow: inset 2px 0 var(--gold);
}
.intake-thumb {
  width: 60px;
  height: 84px;
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
}
.intake-thumb > svg {
  width: 24px;
  color: #758c80;
}
.intake-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.intake-item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  font-size: 10px;
  color: #657a70;
  line-height: 1.4;
}
.intake-item-info strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.intake-item-info > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.intake-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 8px;
  font-size: 10px;
  color: #657a70;
}
.intake-pagination > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.intake-document {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.intake-document > .empty-state {
  margin: auto;
}
.intake-document .dialog-head {
  padding: 10px 18px;
}
.intake-document .dialog-head h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 470px;
}
.intake-document .dialog-head-left > div {
  min-width: 0;
}
.intake-document .intake-layout {
  grid-template-columns: minmax(0, var(--invoice-split, 54%)) 9px minmax(0, 1fr);
  overflow: hidden;
}
.invoice-splitter {
  cursor: col-resize;
  touch-action: none;
  background: #f5f7f6;
  border-inline: 1px solid var(--line);
}
.invoice-splitter:hover,
.invoice-splitter:focus {
  background: var(--gold-soft);
  outline-offset: -2px;
}
.intake-document .index-panel {
  padding: 20px 18px;
}
.intake-document .index-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.intake-document .dialog-foot {
  flex: 0 0 auto;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.intake-document .dialog-foot-right {
  flex-wrap: wrap;
}
.invoice-check {
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--green);
  padding: 3px 0 3px 12px;
  margin-bottom: 22px;
  color: #426857;
  font-size: 11px;
  line-height: 1.5;
}
.invoice-check strong {
  font-weight: 600;
}
.invoice-check.needs-review {
  border-color: var(--gold);
  color: var(--gold-ink);
}
.invoice-check ul {
  padding-left: 15px;
  margin: 0;
}
.index-grid .needs-review {
  border-color: var(--gold);
}
.intake-job {
  display: flex;
  gap: 8px;
  padding: 12px;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.intake-job > svg {
  flex: 0 0 16px;
  width: 16px;
}
.intake-job > div {
  min-width: 0;
  flex: 1;
}
.intake-job strong,
.intake-job span:not(.spinner) {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 400;
  line-height: 1.5;
}
.intake-job.failed {
  color: #9a3939;
}
.intake-job .spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
#intake-jobs {
  max-height: 30%;
  overflow: auto;
  flex: 0 0 auto;
}
.intake-back {
  display: none;
}
@media (max-width: 1400px) and (min-width: 1051px) {
  .intake-workspace {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .intake-thumb {
    width: 45px;
    flex-basis: 45px;
    height: 64px;
  }
  .intake-item {
    gap: 8px;
    padding-inline: 10px;
  }
  .intake-document .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .intake-document .index-grid .full {
    grid-column: auto;
  }
  .intake-document .dialog-head h2 {
    max-width: 250px;
  }
}
@media (max-width: 1050px) {
  .intake-workspace {
    display: flex;
  }
  .intake-inbox {
    width: 100%;
    border-right: 0;
  }
  .intake-document {
    display: none;
    width: 100%;
  }
  .intake-workspace.has-selection .intake-inbox {
    display: none;
  }
  .intake-workspace.has-selection .intake-document {
    display: flex;
  }
  .intake-back {
    display: inline-flex;
  }
  .invoice-splitter {
    display: none;
  }
  .intake-document .intake-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .intake-document .dialog-head h2 {
    max-width: 350px;
  }
}
@media (max-width: 650px) {
  .intake-main {
    height: calc(100dvh - 134px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 12px 10px;
  }
  .intake-main .page-heading {
    gap: 8px;
    margin-bottom: 12px;
  }
  .intake-main .page-heading p {
    display: none;
  }
  .intake-main .heading-actions {
    width: auto;
  }
  .intake-main .heading-actions .button {
    font-size: 11px;
    padding-inline: 9px;
  }
  .intake-main h1 {
    font-size: 19px;
  }
  .intake-document .intake-layout {
    display: block;
    overflow: auto;
  }
  .intake-document .pdf-panel {
    height: 40dvh;
    min-height: 260px;
  }
  .intake-document .index-panel {
    overflow: visible;
    padding: 18px 14px;
  }
  .intake-document .dialog-head {
    padding: 8px;
    height: auto;
    min-height: 58px;
  }
  .intake-document .dialog-head h2 {
    font-size: 12px;
    max-width: 165px;
  }
  .intake-document .dialog-head-left > svg {
    display: none;
  }
  .intake-document .dialog-foot {
    padding: 8px;
  }
  .intake-document .dialog-foot > .muted {
    display: none;
  }
  .intake-document .dialog-foot-right {
    flex-wrap: nowrap;
    width: 100%;
  }
  .intake-document .dialog-foot .button {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
    font-size: 11px;
  }
  .intake-document .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .intake-document .index-grid input,
  .intake-document .index-grid select,
  .intake-document .index-grid textarea,
  .intake-filters input,
  .intake-filters select {
    font-size: 16px;
  }
  .intake-document .index-grid .full {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
