.invoice-demo-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.invoice-demo-board {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  min-width: 970px;
  align-items: stretch;
}

.invoice-demo-column {
  min-height: 280px;
  padding: 11px;
}

.invoice-demo-column .kanban-col-head {
  min-height: 31px;
  margin-bottom: 8px;
  font-size: 12px;
}

.invoice-demo-column-count {
  flex: 0 0 24px;
}

.invoice-demo-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.invoice-demo-card {
  padding: 0;
  overflow: hidden;
}

.invoice-demo-open {
  padding: 11px;
  border-radius: 9px;
}

.invoice-demo-open:hover {
  background: #f7faf7;
}

.invoice-demo-open:focus-visible,
.invoice-demo-action:focus-visible,
.invoice-demo-reset:focus-visible,
.invoice-demo-icon-button:focus-visible {
  outline: 3px solid #8daf47;
  outline-offset: 2px;
}

.invoice-demo-card-title,
.invoice-demo-card-meta,
.invoice-demo-card-age {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.invoice-demo-card-title {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}

.invoice-demo-card-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-demo-card-status {
  flex: 0 1 auto;
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9f4ee;
  color: #17634a;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.invoice-demo-card-meta,
.invoice-demo-card-age {
  display: block;
  margin-top: 6px;
  color: #6d7c73;
  font-size: 10px;
  line-height: 1.45;
}

.invoice-demo-card-age {
  color: #52645b;
}

.invoice-demo-card .kanban-item-foot {
  margin-top: 9px;
}

.invoice-demo-card .kanban-item-foot b {
  font-size: 12px;
}

.invoice-demo-card .kanban-company {
  max-width: 55%;
  font-size: 9px;
}

.invoice-demo-card-note {
  display: block;
  margin: 0 10px 10px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #fff6e3;
  color: #725921;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.invoice-demo-card-note.is-rejected {
  background: #fff0ec;
  color: #91492f;
}

.invoice-demo-empty {
  margin: 8px 2px;
  color: #79867f;
  font-size: 11px;
  line-height: 1.5;
}

.invoice-demo-reset {
  flex: 0 0 auto;
  border: 1px solid #dce5de;
  border-radius: 9px;
  padding: 8px 10px;
  background: white;
  color: #3e5548;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.invoice-demo-reset:hover {
  border-color: #9cb8a5;
  background: #f7faf7;
}

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

.invoice-demo-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(16 40 32 / 54%);
  overscroll-behavior: contain;
}

.invoice-demo-dialog {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  border: 1px solid #dce5de;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(16 40 32 / 25%);
  outline: none;
  overflow: hidden;
}

.invoice-demo-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 15px;
  border-bottom: 1px solid #e8ede9;
}

.invoice-demo-dialog h2 {
  margin: 6px 0 3px;
  font-size: 24px;
  line-height: 1.2;
}

.invoice-demo-ref {
  color: #718077;
  font-size: 12px;
}

.invoice-demo-icon-button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #dce5de;
  border-radius: 50%;
  background: #fff;
  color: #244b3c;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.invoice-demo-dialog-body {
  overflow: auto;
  padding: 18px 24px 22px;
}

.invoice-demo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.invoice-demo-fact {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e3eae4;
  border-radius: 10px;
  background: #fff;
}

.invoice-demo-fact dt {
  margin-bottom: 4px;
  color: #78867e;
  font-size: 10px;
}

.invoice-demo-fact dd {
  margin: 0;
  color: #18352a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.invoice-demo-fact.is-status {
  background: #f6f9f6;
}

.invoice-demo-route,
.invoice-demo-history {
  margin-top: 19px;
}

.invoice-demo-route h3,
.invoice-demo-history h3 {
  margin: 0 0 9px;
  color: #18352a;
  font-size: 14px;
}

.invoice-demo-route-list,
.invoice-demo-history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.invoice-demo-route-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3eae4;
  border-radius: 9px;
  color: #66766d;
  font-size: 11px;
  line-height: 1.35;
}

.invoice-demo-route-list li.is-current {
  border-color: #78ac91;
  background: #eef7f1;
  color: #12573f;
  font-weight: 700;
}

.invoice-demo-route-list li.is-complete .invoice-demo-route-dot {
  background: #0d684c;
  color: #fff;
}

.invoice-demo-route-dot {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e9f1eb;
  color: #496256;
  font-size: 10px;
  font-weight: 800;
}

.invoice-demo-history-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.invoice-demo-history-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 3px;
  border-bottom: 1px solid #edf1ed;
}

.invoice-demo-history-item:last-child {
  border-bottom: 0;
}

.invoice-demo-history-item > div {
  min-width: 0;
}

.invoice-demo-history-item strong,
.invoice-demo-history-item small {
  display: block;
}

.invoice-demo-history-item strong {
  color: #29463a;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.invoice-demo-history-item small {
  margin-top: 3px;
  color: #7a887f;
  font-size: 10px;
}

.invoice-demo-history-dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9f4ee;
  color: #0d684c;
  text-align: center;
  line-height: 16px;
}

.invoice-demo-actions,
.invoice-demo-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.invoice-demo-action {
  min-height: 40px;
  border: 1px solid #dce5de;
  border-radius: 999px;
  padding: 9px 15px;
  background: #fff;
  color: #165b43;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.invoice-demo-action:hover {
  background: #f4f8f5;
}

.invoice-demo-action.primary {
  border-color: #0d6248;
  background: #0d6248;
  color: #fff;
}

.invoice-demo-action.primary:hover {
  background: #084c38;
}

.invoice-demo-action.danger {
  border-color: #edd9d0;
  color: #984b30;
}

.invoice-demo-action.quiet {
  margin-inline-start: auto;
}

.invoice-demo-composer {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dce5de;
  border-radius: 12px;
  background: #f8faf8;
}

.invoice-demo-composer[hidden] {
  display: none;
}

.invoice-demo-form label {
  display: block;
  margin-bottom: 7px;
  color: #18352a;
  font-size: 12px;
  font-weight: 750;
}

.invoice-demo-textarea {
  display: block;
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid #d5e0d8;
  border-radius: 9px;
  padding: 10px 11px;
  background: white;
  color: #18352a;
  font-size: 13px;
}

.invoice-demo-textarea:focus-visible {
  outline: 3px solid #abd0b6;
  outline-offset: 1px;
}

.invoice-demo-help {
  display: block;
  margin-top: 7px;
  color: #718077;
  font-size: 10px;
  line-height: 1.45;
}

.invoice-demo-form-actions {
  margin-top: 10px;
}

body.invoice-demo-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .invoice-demo-board {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    min-width: 1010px;
  }
  .invoice-demo-reset {
    padding: 7px 8px;
    font-size: 10px;
  }

  .invoice-demo-modal {
    align-items: end;
    padding: 0;
  }

  .invoice-demo-dialog {
    width: 100%;
    max-height: min(92vh, 820px);
    border-radius: 18px 18px 0 0;
  }

  .invoice-demo-dialog-top {
    padding: 18px 18px 13px;
  }

  .invoice-demo-dialog-body {
    padding: 15px 18px 20px;
  }

}

@media (max-width: 480px) {
  .invoice-demo-facts {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .invoice-demo-fact {
    padding: 8px;
  }

  .invoice-demo-fact dd {
    font-size: 11px;
  }

  .invoice-demo-route-list {
    grid-template-columns: 1fr;
  }

  .invoice-demo-actions .invoice-demo-action {
    flex: 1 1 42%;
  }

  .invoice-demo-actions .quiet {
    margin-inline-start: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invoice-demo-modal,
  .invoice-demo-action,
  .invoice-demo-open {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Approval path follows the product timeline: AP submission is separate from approver stages. */
.invoice-demo-route-list {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0;
  margin: 14px 0 8px;
  direction: ltr;
}

.invoice-demo-route-list .invoice-demo-route-node {
  position: relative;
  display: grid;
  grid-template-rows: 38px auto;
  justify-items: center;
  align-content: start;
  min-height: 104px;
  padding: 0 9px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: #536b60;
}

.invoice-demo-route-list .invoice-demo-route-node:not(:last-child)::after {
  position: absolute;
  top: 17px;
  right: 0;
  width: 50%;
  height: 2px;
  border-radius: 2px;
  background: #d5e5d9;
  content: '';
}

.invoice-demo-route-list .invoice-demo-route-node.is-done:not(:last-child)::after {
  background: #80b49a;
}

.invoice-demo-route-list .invoice-demo-route-dot {
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1.5px solid #c9ddd0;
  border-radius: 50%;
  background: #e5f2e9;
  color: #176746;
  font-size: 13px;
  box-shadow: 0 0 0 4px #fbfdfb;
}

.invoice-demo-route-list .invoice-demo-route-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding-top: 8px;
}

.invoice-demo-route-copy strong { color: #17392d; font-size: 11px; line-height: 1.35; }
.invoice-demo-route-copy .invoice-demo-route-detail { color: #536b60; font-size: 10px; line-height: 1.35; }
.invoice-demo-route-copy time,
.invoice-demo-route-copy small { color: #71847a; font-size: 9px; line-height: 1.35; }

.invoice-demo-route-list .invoice-demo-route-node.is-upcoming .invoice-demo-route-dot {
  background: #fff;
}

.invoice-demo-route-list .invoice-demo-route-node.is-current .invoice-demo-route-dot {
  border: 2px solid #126c4f;
  background: #126c4f;
  color: #fff;
  box-shadow: 0 0 0 4px #fbfdfb, 0 0 0 7px #d8ebdf;
}

.invoice-demo-route-list .invoice-demo-route-node.is-question .invoice-demo-route-dot {
  border-color: #bf8c34;
  background: #fff6e5;
  color: #805c1d;
}

.invoice-demo-route-list .invoice-demo-route-node.is-rejected .invoice-demo-route-dot {
  border-color: #b94b4b;
  background: #fff0ee;
  color: #a13c39;
}

.invoice-demo-route-list[hidden] { display: none; }

.invoice-demo-card-status.is-attention { background: #fff3d9; color: #805b18; }
.invoice-demo-card-status.is-negative { background: #fff0ec; color: #91492f; }
.invoice-demo-card-next {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #edf1ed;
  color: #52645b;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.invoice-demo-special-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dce9df;
  border-radius: 11px;
  background: #f7fbf8;
}

.invoice-demo-special-panel > p { margin: 0; color: #52675c; font-size: 12px; line-height: 1.55; }
.invoice-demo-bank-detail,
.invoice-demo-match { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid #e1ebe4; border-radius: 8px; background: #fff; }
.invoice-demo-bank-detail span,
.invoice-demo-match span { color: #718077; font-size: 11px; }
.invoice-demo-bank-detail strong,
.invoice-demo-match strong { color: #18352a; font-size: 12px; direction: ltr; }
.invoice-demo-special-panel.is-review-signal { border-color: #eadbb8; background: #fffbf1; }
.invoice-demo-special-panel.is-review-signal > strong { color: #765414; font-size: 12px; }

@media (max-width: 480px) {
  .invoice-demo-bank-detail,
  .invoice-demo-match { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 760px) {
  .invoice-demo-route-list {
    grid-template-columns: 1fr;
    margin: 14px 0 8px;
  }

  .invoice-demo-route-list .invoice-demo-route-node {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    align-items: start;
    min-height: 66px;
    padding: 0 2px 11px;
    text-align: start;
  }

  .invoice-demo-route-list .invoice-demo-route-node:not(:last-child)::after {
    top: 34px;
    right: auto;
    left: 16px;
    width: 2px;
    height: calc(100% - 34px);
    background: #d5e5d9;
  }

  .invoice-demo-route-list .invoice-demo-route-node.is-done:not(:last-child)::after { background: #80b49a; }
  .invoice-demo-route-list .invoice-demo-route-copy { grid-column: 2; justify-items: start; gap: 3px; padding: 2px 0 0; text-align: start; }
}

.invoice-demo-due-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  color: #3e5548;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.invoice-demo-due-toggle input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  box-sizing: border-box;
  flex: none;
  width: 34px;
  height: 20px;
  margin: 0;
  border: 1px solid #d6e0e8;
  border-radius: 20px;
  background: #e8edf2;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.invoice-demo-due-toggle input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #20283820;
  transition: transform .15s;
}

.invoice-demo-due-toggle input:checked {
  border-color: var(--green);
  background: var(--green);
}

.invoice-demo-due-toggle input:checked::after { transform: translateX(14px); }
.invoice-demo-due-toggle input:focus-visible { outline: 2px solid #91a8ba; outline-offset: 2px; }
.invoice-demo-due-toggle:has(input:checked) { color: #17634a; }

#ops-screens .ops-board-screen .board-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

#ops-screens .ops-board-screen .board-heading {
  margin-inline-end: auto;
}

#ops-screens .ops-board-screen .board-filter,
#ops-screens .ops-board-screen .invoice-demo-due-toggle,
#ops-screens .ops-board-screen .invoice-demo-reset {
  min-height: 36px;
}

#ops-screens .ops-board-screen .invoice-demo-due-toggle { min-height: 44px; }

@media (max-width: 560px) {
  #ops-screens .ops-board-screen .board-heading {
    flex: 1 0 100%;
    margin-inline-end: 0;
  }

  #ops-screens .ops-board-screen .board-toolbar {
    column-gap: 8px;
    row-gap: 10px;
  }
}
