:root {
  --ink: #17221f;
  --muted: #6e7875;
  --line: #e5ebe8;
  --green: #0e5b49;
  --green-2: #e7f4ee;
  --paper: #f7f9f8;
  --amber: #a65e02;
  --purple: #6f4cc3;
  --blue: #1a6a9b;
  --shadow: 0 20px 55px rgba(19, 43, 36, 0.12);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
.office-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top right, rgba(212, 241, 103, 0.22), transparent 34%),
    #12332b;
}
.office-login-brand {
  position: fixed;
  top: 28px;
  left: 28px;
}
.office-login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.24);
}
.office-login-card h1,
.office-login-card p {
  margin: 0;
}
.office-login-card > span,
.office-login-card small {
  color: var(--muted);
  line-height: 1.5;
}
.office-login-card form {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.office-login-card label {
  display: grid;
  gap: 7px;
  color: #42524d;
  font-size: 13px;
  font-weight: 700;
}
.office-login-card input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  background: #fff;
}
.office-login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-2);
  color: var(--green);
  font-size: 24px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 14px 16px;
  background: #12332b;
  color: #e6f4ed;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  color: white;
  font-size: 26px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -1.2px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #d4f167;
  color: #12332b;
  border-radius: 8px;
  font-size: 19px;
  letter-spacing: -2px;
}
.brand-dot {
  color: #d4f167;
}
.workspace-label,
.eyebrow {
  color: #7e938d;
  letter-spacing: 0.085em;
  font-size: 10px;
  font-weight: 800;
}
.workspace-label {
  margin: 39px 11px 10px;
}
.company-switcher select {
  appearance: none;
  width: 100%;
  border: 1px solid #32544b;
  border-radius: 9px;
  padding: 10px 29px 10px 12px;
  background: #1b4237;
  color: #fff;
  font-size: 13px;
  background-image:
    linear-gradient(45deg, transparent 50%, #b2c9bf 50%),
    linear-gradient(135deg, #b2c9bf 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 15px,
    calc(100% - 11px) 15px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
nav {
  margin-top: 25px;
  display: grid;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  width: 100%;
  padding: 10px 11px;
  background: transparent;
  color: #b8cdc5;
  text-align: left;
  font-size: 14px;
}
.nav-link:hover,
.nav-link.active {
  background: #245246;
  color: #fff;
}
.nav-link.active {
  font-weight: 650;
}
.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 18px;
  color: #d4f167;
}
.nav-badge {
  margin-left: auto;
  border-radius: 5px;
  background: #325d50;
  color: #d8eee4;
  padding: 2px 6px;
  font-size: 10px;
}
.nav-divider {
  height: 1px;
  background: #2b4e44;
  margin: 13px 9px;
}
.sidebar-footer {
  margin-top: auto;
}
.secure-note {
  padding: 11px;
  color: #9ab1a8;
  font-size: 11px;
  line-height: 1.45;
}
.secure-note span {
  color: #9bda7a;
  font-size: 9px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-top: 1px solid #2a4d43;
  background: transparent;
  color: #dcebe4;
  text-align: left;
}
.profile small {
  display: block;
  color: #8ca49b;
  margin-top: 2px;
  font-size: 10px;
}
.profile > :last-child {
  margin-left: auto;
}
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8b76e;
  color: #56350c;
  font-size: 10px;
  font-weight: 800;
}
main {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 111px;
  padding: 24px clamp(25px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar h1 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: -0.7px;
}
.topbar .eyebrow {
  margin: 0;
}
.top-actions {
  display: flex;
  gap: 9px;
}
.icon-button,
.mobile-menu {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #355149;
  font-size: 19px;
}
.notification-dot {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #da5b46;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1460px;
  margin: 0 auto;
  padding: 32px clamp(25px, 5vw, 72px) 72px;
}
.intro-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 25px;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.page-note {
  display: block;
  margin-top: 7px;
  color: #87948f;
  font-size: 11px;
}
.primary-button,
.secondary-button,
.text-button {
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-button {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 8px rgba(14, 91, 73, 0.15);
}
.primary-button:hover {
  background: #0a483a;
}
.secondary-button {
  border-color: #d5dfda;
  background: #fff;
  color: #35534b;
}
.secondary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.text-button {
  padding: 5px 0;
  background: transparent;
  color: var(--green);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  min-height: 134px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(29, 53, 45, 0.02);
}
.metric p {
  margin: 0;
  color: #64746e;
  font-size: 12px;
  font-weight: 650;
}
.metric strong {
  display: block;
  margin: 14px 0 7px;
  font-size: 25px;
  letter-spacing: -0.9px;
}
.metric span {
  color: #80908a;
  font-size: 11px;
}
.metric.amber strong {
  color: var(--amber);
}
.metric.purple strong {
  color: var(--purple);
}
.metric.blue strong {
  color: var(--blue);
}
.metric.red strong {
  color: #be412d;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.8fr);
  gap: 20px;
}
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(29, 53, 45, 0.02);
}
.panel-wide {
  min-height: 340px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 22px 16px;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.panel-head p {
  margin: 5px 0 0;
  color: #75827e;
  font-size: 12px;
}
.check-list {
  padding: 1px 22px 17px;
  margin: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2ef;
  font-size: 12px;
  font-weight: 600;
  color: #39564e;
}
.check-list li span {
  color: #19855f;
  font-weight: 900;
}
.check-list li small {
  margin-left: auto;
  color: #b34a38;
  font-size: 10px;
  white-space: nowrap;
}
.check-list li.muted {
  color: #a3aeaa;
}
.check-list li.muted span {
  color: #a3aeaa;
}
.table-panel {
  min-height: 400px;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.inbox-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}
.inbox-toolbar > label:first-child {
  width: 235px;
}
.inbox-toolbar .search {
  height: 36px;
  width: min(310px, 100%);
}
.inbox-panel td:nth-child(3) {
  min-width: 165px;
}
.company-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(380px, 1.25fr);
  gap: 20px;
}
.company-list,
.integrations {
  min-height: 0;
}
.company-card,
.integrations article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 22px;
  border-top: 1px solid #edf1ef;
}
.company-card > div,
.integrations article > div {
  min-width: 0;
}
.company-card strong,
.integrations article strong,
.company-card small,
.integrations article small {
  display: block;
}
.company-card strong,
.integrations article strong {
  font-size: 12px;
}
.company-card small,
.integrations article small {
  margin-top: 4px;
  color: #81908a;
  font-size: 10px;
  line-height: 1.45;
}
.company-monogram {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #e7f4ee;
  color: #0e5b49;
  font-size: 12px;
  font-weight: 850;
}
.company-card .status,
.integrations article .status {
  margin-left: auto;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter {
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  color: #6f7c77;
  font-size: 11px;
  font-weight: 650;
}
.filter:hover,
.filter.selected {
  background: #eaf4ef;
  color: #0e5b49;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 195px;
  padding: 0 9px;
  border: 1px solid #dbe4df;
  border-radius: 7px;
  color: #889791;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  padding: 11px 20px;
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
  color: #71807a;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 800;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf1ef;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.16s;
}
tbody tr:hover {
  background: #fbfdfc;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
td small {
  display: block;
  margin-top: 4px;
  color: #82908b;
  font-size: 10px;
}
.payment-label {
  white-space: nowrap;
  color: #48645c;
  font-size: 11px;
  font-weight: 600;
}
.confidence {
  font-weight: 750;
  color: #23725c;
}
.status {
  display: inline-block;
  border-radius: 99px;
  padding: 5px 8px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 750;
}
.status.warning {
  background: #fff2dc;
  color: #9f5a00;
}
.status.purple {
  background: #f0e9ff;
  color: #7047c2;
}
.status.info {
  background: #e2f0fa;
  color: #18618b;
}
.status.success {
  background: #e2f5eb;
  color: #18754d;
}
.status.neutral {
  background: #ecefed;
  color: #57625e;
}
.status.danger {
  background: #fce7e3;
  color: #b13c2b;
}
.due {
  color: #52655e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.due.urgent {
  color: #b13c2b;
}
.row-button {
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #eff5f1;
  color: #175744;
  font-size: 16px;
}
.empty-state,
.empty-cell {
  padding: 50px;
  text-align: center;
  color: #8b9893;
}
.coming-soon {
  max-width: 650px;
  padding: 65px 45px;
  margin: 38px auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.coming-soon .spark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: #e7f4ee;
  color: var(--green);
  font-size: 25px;
}
.coming-soon h2 {
  margin: 8px 0;
  font-size: 25px;
  letter-spacing: -0.7px;
}
.coming-soon p:not(.eyebrow) {
  margin: 0 auto 23px;
  max-width: 480px;
  color: #687671;
  line-height: 1.6;
  font-size: 14px;
}
.modal-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 34, 29, 0.5);
  backdrop-filter: blur(3px);
}
.modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}
.modal header,
.modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 25px;
}
.modal header {
  border-bottom: 1px solid var(--line);
}
.modal footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.modal h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.close {
  border: 0;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  background: #f0f4f2;
  color: #52655e;
  font-size: 22px;
  line-height: 1;
}
form {
  padding: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 22px;
}
.upload-area {
  position: relative;
  min-height: 214px;
  display: grid;
  place-items: center;
  border: 1.5px dashed #a8beb5;
  border-radius: 10px;
  background: #fbfdfc;
  text-align: center;
  overflow: hidden;
}
.upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-area #uploadContent {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #597067;
  font-size: 13px;
  pointer-events: none;
}
.upload-area i {
  color: #16825d;
  font-style: normal;
  font-size: 32px;
}
.upload-area small {
  color: #94a29d;
  font-size: 10px;
}
.upload-area img {
  width: 100%;
  height: 164px;
  object-fit: cover;
}
.field-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: #52635e;
  font-size: 11px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e1dc;
  border-radius: 7px;
  padding: 9px 10px;
  outline: none;
  background: #fff;
  color: #1c2b26;
  font-size: 12px;
  font-weight: 500;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #16825d;
  box-shadow: 0 0 0 3px #e1f3eb;
}
textarea {
  min-height: 67px;
  resize: vertical;
}
.payment-hint {
  margin: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #edf6f1;
  color: #436359;
  font-size: 11px;
  line-height: 1.4;
}
.ocr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 25px 0 19px;
  padding: 12px 14px;
  border: 1px solid #d8e9df;
  border-radius: 9px;
  background: #fbfefc;
}
.ocr-row > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ocr-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #e0f2e9;
  color: #0d7450;
}
.ocr-row strong,
.ocr-row small {
  display: block;
}
.ocr-row strong {
  font-size: 12px;
}
.ocr-row small {
  margin-top: 2px;
  color: #7d8d87;
  font-size: 10px;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.span-two {
  grid-column: span 2;
}
.detail-modal {
  width: min(680px, 100%);
}
.notifications-modal {
  width: min(660px, 100%);
}
.errors-modal {
  width: min(1160px, 100%);
}
.errors-copy {
  margin: 18px 25px 8px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff5e8;
  color: #82511c;
  font-size: 11px;
  line-height: 1.5;
}
.error-reason {
  min-width: 240px;
  color: #a24738;
  font-size: 11px;
  line-height: 1.45;
}
.retry-ocr {
  padding: 7px 10px;
}
.notification-list {
  padding: 7px 25px 18px;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e8eeeb;
}
.notification-item:last-child {
  border-bottom: 0;
}
.notification-symbol {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #edf6f1;
  color: #147052;
  font-weight: 850;
}
.notification-symbol.urgent {
  background: #fce8e4;
  color: #b13c2b;
}
.notification-item div {
  min-width: 0;
}
.notification-item strong {
  display: block;
  font-size: 12px;
}
.notification-item p {
  margin: 4px 0 0;
  color: #83918c;
  font-size: 10px;
}
.notification-item > b {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.reimbursements {
  min-height: 0;
  margin-top: 20px;
}
.original-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 17px 25px;
  padding: 14px;
  border: 1px solid #d9e5df;
  border-radius: 9px;
  background: #fff;
}
.original-file span,
.original-file strong,
.original-file small {
  display: block;
}
.original-file span {
  margin-bottom: 4px;
  color: #7d8b86;
  font-size: 10px;
  font-weight: 750;
}
.original-file strong {
  font-size: 12px;
}
.original-file small {
  margin-top: 4px;
  color: #80908a;
  font-size: 10px;
}
.original-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audit-trail {
  margin: 17px 25px;
  padding: 14px;
  border-top: 1px solid #e3ebe7;
}
.audit-trail > span {
  display: block;
  margin-bottom: 8px;
  color: #6f8179;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.audit-trail p {
  margin: 7px 0;
  color: #63746d;
  font-size: 11px;
}
.audit-trail p strong {
  color: #314b41;
}
.audit-trail p small {
  display: block;
  margin-top: 2px;
  color: #9aa7a1;
  font-size: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 24px 25px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.detail-grid div {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-grid div:nth-child(even) {
  border-right: 0;
}
.detail-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.detail-grid span,
.detail-note span,
.suggestion span {
  display: block;
  margin-bottom: 5px;
  color: #7d8b86;
  font-size: 10px;
  font-weight: 750;
}
.detail-grid strong {
  font-size: 12px;
}
.detail-note,
.suggestion {
  margin: 17px 25px;
  padding: 14px;
  border-radius: 9px;
}
.accounting-edit {
  display: grid;
  grid-template-columns: 1fr minmax(170px, 210px) auto;
  gap: 12px;
  align-items: end;
  margin: 17px 25px;
  padding: 14px;
  border: 1px solid #cfe5d8;
  border-radius: 9px;
  background: #f4fbf7;
}
.accounting-edit span {
  display: block;
  margin-bottom: 4px;
  color: #386452;
  font-size: 11px;
  font-weight: 800;
}
.accounting-edit p {
  margin: 0;
  color: #688078;
  font-size: 10px;
  line-height: 1.45;
}
.detail-note {
  background: #f7f9f8;
}
.detail-note p {
  margin: 0;
  color: #40564e;
  font-size: 13px;
  line-height: 1.5;
}
.suggestion {
  border: 1px solid #cae7d7;
  background: #f2faf5;
}
.suggestion strong,
.suggestion small {
  display: block;
}
.suggestion strong {
  color: #1d5c48;
  font-size: 12px;
}
.suggestion small {
  margin-top: 6px;
  color: #638074;
  font-size: 10px;
  line-height: 1.45;
}
.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #173c32;
  box-shadow: 0 12px 35px rgba(13, 40, 32, 0.25);
  color: white;
  font-size: 12px;
  animation: in 0.2s ease-out;
}
@keyframes in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.employee-messages {
  margin-bottom: 18px;
}
.message-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}
.message-list article {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.message-list strong,
.message-list p,
.message-list small {
  display: block;
}
.message-list strong {
  font-size: 13px;
}
.message-list p {
  max-width: 760px;
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.message-list small,
.message-list time {
  color: var(--muted);
  font-size: 11px;
}
.message-list time {
  flex: 0 0 115px;
  text-align: right;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: min(292px, 84vw);
    box-shadow: 18px 0 45px rgba(18, 51, 43, 0.26);
  }
  .mobile-menu {
    display: inline-grid;
    place-items: center;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .company-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .topbar {
    min-height: 90px;
    padding: 18px 20px;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .content {
    padding: 22px 15px 50px;
  }
  .intro-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .intro-row .primary-button {
    width: 100%;
  }
  .intro-actions {
    width: 100%;
  }
  .intro-actions .secondary-button,
  .intro-actions .primary-button {
    flex: 1 1 170px;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric {
    min-height: 105px;
  }
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .inbox-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .inbox-toolbar > label:first-child,
  .inbox-toolbar .search {
    width: 100%;
  }
  .search {
    width: 100%;
    height: 34px;
  }
  th,
  td {
    padding-left: 12px;
    padding-right: 12px;
  }
  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(6),
  td:nth-child(6) {
    display: none;
  }
  .modal-backdrop {
    padding: 0;
  }
  .modal {
    max-height: 100vh;
    border-radius: 0;
  }
  .modal header,
  .modal footer,
  form {
    padding-left: 18px;
    padding-right: 18px;
  }
  .form-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .ocr-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ocr-row .secondary-button {
    width: 100%;
  }
  .detail-grid {
    margin-left: 18px;
    margin-right: 18px;
  }
  .detail-note,
  .suggestion {
    margin-left: 18px;
    margin-right: 18px;
  }
  .accounting-edit {
    grid-template-columns: 1fr;
    margin-left: 18px;
    margin-right: 18px;
  }
  .original-file {
    align-items: stretch;
    flex-direction: column;
    margin-left: 18px;
    margin-right: 18px;
  }
  .audit-trail {
    margin-left: 18px;
    margin-right: 18px;
  }
  .original-actions {
    display: grid;
  }
  .message-list article {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .message-list time {
    flex-basis: auto;
    text-align: left;
  }
}
