@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 750;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 750;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: #1e2a1e;
  background: #f5f7f2;
  font-synthesis: none;
  --accent: #4a6b3a;
  --border: #d0dcc8;
  --muted: #5a6a58;
  --surface-dark: #1a2016;
  --accent-pale: #d4e5bd;
  --shadow: 0 2px 16px rgb(74 107 58 / 6%);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
input,
select {
  border: 1px solid #d0dcc8;
  border-radius: 7px;
  background: #fff;
  color: #1e2a1e;
  min-height: 38px;
  padding: 8px 10px;
  max-width: 100%;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #6b8c5e;
  outline-offset: 2px;
}
button {
  border: 0;
  border-radius: 7px;
  background: none;
  color: inherit;
  transition: background 0.15s;
}
a {
  color: var(--accent);
}
label {
  font-size: 12px;
  font-weight: 600;
  color: #5a6a58;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #3d5930;
}
.secondary {
  background: #fff;
  border: 1px solid #d0dcc8;
}
.secondary:hover {
  background: #eef3e9;
}
.text-button {
  color: #4b6046;
  padding: 9px 7px;
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover {
  background: #eef3e9;
}
.icon-button {
  display: grid;
  place-items: center;
  font-size: 22px;
  min-width: 32px;
  height: 32px;
}
.icon-button:hover {
  background: #e8efdf;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #61745b;
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: fit-content;
}
.brand-logo {
  display: block;
  width: 140px;
  height: auto;
  aspect-ratio: 314 / 126;
  object-fit: contain;
}
.brand-small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-pale);
}
.login-form-brand {
  display: none;
}
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a2016 60%, #2e3229 100%);
  color: white;
  padding: 55px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  bottom: -220px;
  right: -220px;
  width: 530px;
  height: 530px;
  border: 1px solid rgb(212 229 189 / 12%);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgb(141 175 126 / 3%),
    0 0 0 61px rgb(212 229 189 / 8%);
  pointer-events: none;
}
.login-story h1 {
  font-size: clamp(34px, 3.4vw, 55px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.6px;
  margin: 18px 0 25px;
}
.login-story .eyebrow {
  color: var(--accent-pale);
}
.login-story p {
  font-size: 15px;
  color: #c6d0bf;
  line-height: 1.8;
  max-width: 365px;
}
.login-story small {
  font-size: 11px;
  color: #a5b59a;
  z-index: 1;
}
.story-lines {
  margin-top: 38px;
  display: grid;
  gap: 18px;
  color: #8daf7e;
  font-size: 11px;
}
.story-lines b {
  color: #e1e8db;
  font-size: 12px;
  margin-left: 18px;
  font-weight: 500;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  background: #f5f7f2;
  padding: 40px;
}
.login-form-wrap form {
  width: min(100%, 350px);
}
.login-form-wrap h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 13px 0;
}
.login-form-wrap p {
  font-size: 13px;
  line-height: 1.7;
}
.login-form-wrap label {
  margin-top: 22px;
}
.login-form-wrap input {
  height: 45px;
}
.login-form-wrap .primary {
  width: 100%;
  height: 45px;
  justify-content: space-between;
  margin-top: 12px;
}
.login-note {
  text-align: center;
  color: #697b61;
  font-size: 11px !important;
  margin-top: 26px;
}
.error {
  color: #b83939;
  min-height: 8px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  min-width: 228px;
  background: linear-gradient(165deg, #0a0a0a 0%, #1a2016 58%, #2e3229 100%);
  color: #d4dfca;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebar .brand {
  margin: 0 11px 25px;
}
.sidebar .brand-logo {
  width: 112px;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #a5b59a;
  font-weight: 700;
  margin: 18px 12px 12px;
}
.tenant-select {
  background: #2a3423;
  border-color: #4c5b42;
  color: #f1f5ed;
  width: 100%;
  font-size: 12px;
  padding: 11px;
}
.connection {
  font-size: 10px;
  padding: 10px 11px;
  color: #b1c2a6;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7b59c;
}
.connection.online:before {
  background: #a5cb8e;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 13px 11px;
  font-size: 12px;
  color: #d4dfca;
  margin: 3px 0;
}
.nav-item > span:first-child {
  font-size: 19px;
  color: #b1c2a6;
}
.nav-item:hover {
  background: #2a3423;
}
.nav-item.active {
  background: #3b5130;
  color: white;
  box-shadow: inset 3px 0 0 var(--accent-pale);
}
.nav-item.active > span:first-child {
  color: #d4e5bd;
}
.nav-arrow {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.user-card {
  border-top: 1px solid #3c4734;
  padding-top: 23px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3e5133;
  color: #e5eddc;
  font-size: 12px;
  width: 33px;
  height: 33px;
}
.user-card strong {
  font-size: 11px;
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card small {
  font-size: 9px;
  display: block;
  margin-top: 4px;
  color: #a5b59a;
}
.user-card .icon-button {
  margin-left: auto;
}
.workspace main {
  margin-left: 228px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 74px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  font-size: 11px;
  gap: 20px;
}
.breadcrumb {
  color: #6c7c64;
}
.breadcrumb-separator {
  margin: 0 12px;
  color: #bac8b0;
}
.topbar-company {
  display: flex;
  align-items: center;
  gap: 13px;
}
.topbar-company select {
  min-width: 210px;
  font-size: 12px;
  background: #f5f7f2;
}
.demo-badge {
  margin-left: 20px;
  color: #926c19;
  background: #fff4d8;
  padding: 5px 7px;
  font-size: 9px;
  border-radius: 4px;
}
.page {
  padding: 32px 35px 20px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.page-heading h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin: 10px 0 7px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.1fr;
  gap: 18px;
  margin-bottom: 25px;
}
.metrics article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 23px;
  display: flex;
  flex-direction: column;
}
.metrics article > span {
  font-size: 11px;
  color: #5a6a58;
  font-weight: 500;
}
.metrics strong {
  font-size: 29px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 11px 0 8px;
}
.metrics small {
  font-size: 10px;
  color: #65765d;
}
.metrics .metric-title {
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 35px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: white;
  overflow: hidden;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 17px;
  align-self: stretch;
}
.tab {
  padding: 19px 2px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  font-size: 12px;
  color: #65765d;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 650;
}
.toolbar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filters {
  padding: 19px 20px 14px;
  background: #fafbf8;
  border-bottom: 1px solid var(--border);
}
.filter-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-row input {
  font-size: 11px;
  min-height: 35px;
}
.filter-row label {
  font-size: 10px;
  gap: 6px;
}
.search-label {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-label input {
  width: 100%;
  padding-left: 31px;
}
.search-label > span {
  position: absolute;
  left: 10px;
  bottom: 4px;
  font-size: 24px;
  color: #65765d;
}
.filter-row input[type="date"] {
  width: 128px;
  padding: 7px;
}
.filter-row .secondary {
  min-height: 35px;
  padding: 8px 12px;
}
.filter-bottom {
  justify-content: space-between;
  margin-top: 16px;
  align-items: center;
}
.status-filters {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.status-filters label {
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.status-filters input {
  min-height: 0;
  accent-color: var(--accent);
  margin: 0;
  width: 12px;
  height: 12px;
}
.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #9ab;
}
.waiting {
  background: #93a3b2;
}
.ok {
  background: #2e8b57;
}
.warning {
  background: #d99e38;
}
.failed {
  background: #d06769;
}
.flag {
  background: #8a77b7;
}
.read-filter {
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
}
.read-filter select {
  font-size: 10px;
  min-height: 29px;
  padding: 4px 20px 4px 8px;
}
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 10px;
}
.table-controls > span {
  font-size: 11px;
  font-weight: 650;
  color: #5a6a58;
}
.table-controls > div {
  display: flex;
  gap: 8px;
}
.table-controls select {
  font-size: 11px;
  min-height: 31px;
  padding: 4px 10px;
}
.table-controls .secondary {
  padding: 7px 10px;
  font-size: 11px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
}
th {
  text-align: left;
  background: #f0f4eb;
  font-size: 10px;
  color: #5f7255;
  font-weight: 600;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}
th button {
  font: inherit;
  padding: 0;
  border-radius: 0;
}
td {
  padding: 14px;
  border-bottom: 1px solid #e5ebdf;
  height: 62px;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
td.numeric,
th.numeric {
  text-align: right;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover {
  background: #f5f8f0;
}
tbody tr.selected {
  background: #eaf2e1;
}
tbody tr.unread .invoice-number {
  font-weight: 750;
}
td small {
  display: block;
  color: #738269;
  font-size: 9px;
  margin-top: 4px;
}
td .invoice-number {
  font-size: 11px;
  color: #33472a;
}
td .invoice-number:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  margin-right: 7px;
}
.unread td .invoice-number:before {
  background: var(--accent);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 600;
  color: #63775a;
  background: #edf2e8;
  white-space: nowrap;
}
.status.s10 {
  color: #287448;
  background: #edf5e8;
}
.status.s20 {
  color: #b58328;
  background: #fff7e5;
}
.status.s30 {
  color: #b55156;
  background: #fff0f0;
}
.status.s40 {
  color: #7d66a4;
  background: #f3eff9;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.type {
  font-size: 9px;
  color: #5f7255;
  background: #f0f4eb;
  border-radius: 4px;
  padding: 4px 5px;
}
.paperclip {
  font-size: 17px;
  color: #708463;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 10px;
  color: #67795e;
}
.table-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-footer label {
  font-size: 10px;
  font-weight: 400;
}
.table-footer select {
  min-height: 28px;
  font-size: 10px;
  padding: 4px 6px;
}
.table-footer .icon-button {
  border: 1px solid var(--border);
  width: 27px;
  min-width: 27px;
  height: 27px;
  font-size: 18px;
}
.empty {
  text-align: center;
  padding: 45px;
  color: #697d5f;
}
.empty > span {
  font-size: 35px;
  color: #b8c9a9;
}
.empty h3 {
  font-size: 15px;
  font-weight: 500;
}
.empty p {
  font-size: 12px;
}
.page-footnote {
  font-size: 10px;
  color: #738269;
  margin-top: 17px;
}
.party-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf5e8;
  color: var(--accent);
  padding: 3px 20px;
  font-size: 11px;
}
.detail {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 335px;
  background: white;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 50px #28372014;
  z-index: 8;
  padding: 37px 25px;
  overflow: auto;
}
.close-detail {
  position: absolute;
  top: 13px;
  right: 13px;
}
.detail h2 {
  font-size: 26px;
  margin: 17px 0 8px;
  letter-spacing: -0.6px;
}
.detail > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.detail dl {
  margin: 25px 0;
}
.detail dt {
  font-size: 10px;
  color: #65765d;
  margin-top: 14px;
}
.detail dd {
  font-size: 12px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.detail label {
  margin-bottom: 17px;
}
.detail > .primary {
  width: 100%;
  margin-bottom: 10px;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.detail-actions button {
  font-size: 10px;
  white-space: normal;
  min-height: 40px;
  padding: 9px 5px;
}
.detail-actions button:nth-last-child(2) {
  grid-column: span 2;
}
.busy {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #26351e;
  color: white;
  border-radius: 9px;
  box-shadow: 0 10px 40px #1a201626;
  padding: 15px 22px;
  z-index: 30;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
  max-width: 90vw;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #8daf7e;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #26351e;
  color: white;
  max-width: 450px;
  padding: 17px 21px;
  border-radius: 8px;
  z-index: 40;
  box-shadow: 0 5px 30px #1a201626;
  font-size: 12px;
  line-height: 1.6;
}
.toast.error-toast {
  background: #8c333a;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 20px 90px #1a201626;
  padding: 0;
  width: min(1080px, 94vw);
  max-height: 92vh;
  color: #1e2a1e;
}
dialog::backdrop {
  background: #151c1288;
  backdrop-filter: blur(2px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 26px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 20px;
  margin: 8px 0 0;
}
#modal-body {
  padding: 24px;
  overflow: auto;
  max-height: 70vh;
}
#modal-body iframe {
  width: 100%;
  height: 62vh;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}
#modal-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}
#modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 19px;
}
dialog.document-modal[open] {
  display: flex;
  flex-direction: column;
  width: min(1440px, 96vw);
  height: 94vh;
  height: 94dvh;
  max-height: 94vh;
  max-height: 94dvh;
}
.document-modal .modal-header {
  flex: 0 0 auto;
  padding: 14px 20px;
}
.document-modal #modal-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 12px 16px;
  overflow: hidden;
}
.document-modal #modal-body iframe {
  display: block;
  height: 100%;
  min-height: 0;
}
.document-modal #modal-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}
.attachment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.attachment-row div:first-child {
  flex: 1;
  font-size: 13px;
}
.attachment-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-form {
  display: grid;
  gap: 15px;
  max-width: 500px;
}
.admin-form label.checkbox {
  flex-direction: row;
  align-items: center;
}
.admin-form .checkbox input {
  min-height: 0;
}
.admin-form textarea {
  width: 100%;
  min-height: 80px;
  overflow-wrap: anywhere;
}
.admin-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.report-summary {
  display: flex;
  gap: 25px;
  font-size: 14px;
  margin-bottom: 20px;
}
.report-errors {
  color: #a34549;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.success-label {
  color: #287448;
}
.admin-table {
  white-space: normal;
}
.admin-table td {
  height: auto;
}
.admin-table tr {
  cursor: default;
}
@media (min-width: 1550px) {
  body:has(.detail:not([hidden])) .workspace main {
    margin-right: 335px;
  }
  .filter-row input[type="date"] {
    width: 135px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    min-width: 200px;
    padding: 25px 13px;
  }
  .workspace main {
    margin-left: 200px;
  }
  .page {
    padding: 25px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .panel-top {
    flex-wrap: wrap;
  }
  .toolbar {
    padding-bottom: 7px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 17px;
  }
  .filter-row {
    gap: 8px;
  }
  .filter-row input[type="date"] {
    width: 123px;
  }
  .metrics strong {
    font-size: 25px;
  }
  .metrics .metric-title {
    font-size: 14px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 12px 15px;
    min-width: 0;
  }
  .sidebar .brand {
    margin: 0 0 10px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .sidebar .brand-logo {
    width: 80px;
  }
  .sidebar .brand-small {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  .sidebar nav .sidebar-label,
  .sidebar > .sidebar-label,
  .sidebar-bottom .user-card,
  .connection {
    display: none;
  }
  .sidebar nav .nav-item {
    font-size: 10px;
    white-space: nowrap;
    padding: 9px 5px;
  }
  .sidebar-bottom {
    position: absolute;
    right: 15px;
    top: 12px;
  }
  .sidebar-bottom .nav-item {
    font-size: 10px;
  }
  .tenant-select {
    margin-bottom: 5px;
    max-width: 100%;
  }
  .workspace {
    display: block;
  }
  .workspace main {
    margin-left: 0;
  }
  .topbar {
    height: auto;
    min-height: 65px;
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-company select {
    min-width: 170px;
  }
  .page {
    padding: 23px 13px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics article:last-child {
    display: none;
  }
  .metrics strong {
    font-size: 23px;
  }
  .metrics article {
    padding: 16px;
  }
  .panel-top {
    padding: 0 12px;
  }
  .filters {
    padding: 14px 12px;
  }
  .search-label {
    flex-basis: 100%;
  }
  .filter-row input[type="date"] {
    width: 130px;
  }
  .status-filters {
    gap: 10px;
  }
  .filter-bottom {
    gap: 12px;
  }
  .table-controls {
    padding: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .table-controls .secondary {
    font-size: 10px;
  }
  .table-controls select {
    max-width: 155px;
  }
  .table-footer {
    padding: 12px;
    gap: 8px;
  }
  .detail {
    width: min(360px, 100vw);
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 22px;
    background: linear-gradient(135deg, #0a0a0a, #1a2016 60%, #2e3229);
  }
  .login-form-wrap form {
    padding: 30px 26px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 40px rgb(0 0 0 / 16%);
  }
  .login-form-wrap h2 {
    font-size: 25px;
  }
  .login-form-brand {
    display: flex;
    align-items: center;
    margin: 0 auto 30px;
  }
  .login-form-brand .brand-small {
    color: var(--accent);
  }
  .demo-badge {
    margin-left: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .breadcrumb-separator {
    display: none;
  }
  .modal-header {
    padding: 17px;
  }
  #modal-body {
    padding: 17px;
  }
  .attachment-row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.status-filters {
  min-inline-size: 0;
}
.metrics article {
  min-width: 0;
}
.table-scroll {
  max-width: 100%;
  position: relative;
}
.metric-title {
  overflow-wrap: anywhere;
}
#metric-amount {
  overflow-wrap: anywhere;
}
.mobile-only {
  display: none;
}
@media (max-width: 800px) {
  .mobile-only {
    display: inline-flex;
  }
}
