:root {
  --ink:#162331;
  --muted:#778494;
  --bg:#f6f7f8;
  --line:#e8ebee;
  --green:#266958;
  --green2:#1d5144;
  --dark:#16262a;
  --gold:#d9b98c;
  --white:#fff;
  --radius:15px;
  --shadow:0 5px 26px rgba(26,44,44,.035);
  font-family:'DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink)
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:var(--bg);
  font-size:14px;
  -webkit-font-smoothing:antialiased
}

a {
  color:inherit;
  text-decoration:none
}

button,input,select,textarea {
  font:inherit
}

button,a,input,select {
  outline-offset:3px
}

h1,h2,h3,p {
  margin-top:0
}

h1,h2,h3 {
  font-family:'Manrope','DM Sans',sans-serif
}

h1 {
  font-size:clamp(27px,3vw,34px);
  line-height:1.24;
  letter-spacing:-1.4px;
  margin-bottom:11px;
  font-weight:800
}

h2 {
  font-size:16px;
  letter-spacing:-.25px;
  margin-bottom:7px
}

h3 {
  font-size:16px
}

p {
  line-height:1.65
}

.app-shell {
  display:flex;
  min-height:100vh
}

.sidebar {
  width:267px;
  background:#18292b;
  color:#dce5e3;
  flex:none;
  display:flex;
  flex-direction:column;
  padding:27px 16px 18px;
  min-height:100vh;
  position:sticky;
  top:0;
  height:100vh
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  margin:2px 11px 46px
}

.brand-symbol {
  width:41px;
  height:41px;
  border:1px solid #81918a;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:Georgia,serif;
  font-size:27px;
  color:#f2f1eb;
  font-weight:bold
}

.brand-symbol span,.login-brand-m span {
  color:var(--gold)
}

.brand strong {
  font-size:13px;
  letter-spacing:3.8px;
  color:#f7f7f2;
  display:block
}

.brand small {
  font-size:9px;
  letter-spacing:1.9px;
  color:#a0afa9;
  display:block;
  margin-top:6px
}

.sidebar-label {
  font-size:10px;
  font-weight:800;
  letter-spacing:2.1px;
  color:#819690;
  padding-left:15px;
  margin-bottom:16px
}

.company-switch {
  border:1px solid #375152;
  border-radius:12px;
  padding:12px 10px;
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 2px 26px;
  background:rgba(255,255,255,.028)
}

.company-avatar {
  height:36px;
  width:36px;
  border-radius:9px;
  flex:none;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#375951;
  color:#f2e2c8;
  font-size:17px;
  font-weight:800
}

.company-switch-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:4px
}

.company-switch-copy strong {
  font-size:12px;
  color:#edf5f1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.company-switch-copy small {
  color:#9cb2a8;
  font-size:10px
}

.switch-arrow {
  margin-left:auto;
  color:#9eb2ad
}

.side-nav {
  display:flex;
  flex-direction:column;
  gap:5px
}

.nav-link {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 13px;
  border-radius:10px;
  color:#b8c9c6;
  font-size:13px;
  font-weight:600;
  transition:background .14s
}

.nav-link:hover,.nav-link.active {
  color:#fff;
  background:#305147
}

.nav-icon {
  height:22px;
  width:23px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  font-size:19px;
  font-weight:400;
  color:#bcd3c8
}

.nav-link.active .nav-icon {
  color:#e2d2b5
}

.sidebar-spacer {
  flex:1
}

.sidebar-help {
  border:1px solid #3a4b4c;
  border-radius:11px;
  padding:13px;
  display:flex;
  gap:10px;
  font-size:11px;
  line-height:1.6;
  margin-bottom:18px;
  color:#dae6e1
}

.sidebar-help small {
  color:#8ea29c
}

.status-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#74bfa5;
  display:inline-block;
  flex:none;
  box-shadow:0 0 0 3px rgba(96,185,144,.11)
}

.sidebar-help .status-dot {
  margin-top:4px
}

.sidebar-user {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid #365052;
  padding:17px 3px 9px
}

.user-avatar {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e3d1b6;
  color:#32544b;
  font-weight:800
}

.sidebar-user-info {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0
}

.sidebar-user-info strong {
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.sidebar-user-info small {
  font-size:10px;
  color:#94aaa3
}

.logout-form {
  margin:0
}

.logout-button {
  border:0;
  cursor:pointer;
  background:none;
  color:#b6c8c2;
  padding:10px;
  font-size:12px
}

.logout-button:hover {
  color:white
}

.app-main {
  flex:1;
  min-width:0
}

.topbar {
  height:76px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.78);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(22px,4.5vw,64px);
  gap:18px
}

.topbar-title {
  color:#82919e;
  font-size:12px
}

.topbar-title strong {
  color:#34434e;
  font-weight:700
}

.slash {
  color:#c9d1d5;
  margin:0 10px
}

.topbar-right {
  display:flex;
  gap:22px;
  align-items:center;
  font-size:11px;
  color:#84919a
}

.secure-label {
  display:flex;
  align-items:center;
  gap:9px
}

.topbar-date {
  font-weight:700;
  color:#677581
}

.page-content {
  max-width:1460px;
  padding:43px clamp(22px,4.5vw,64px) 24px;
  margin:0 auto
}

.page-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin-bottom:33px
}

.page-heading p {
  color:var(--muted);
  margin:0;
  font-size:13px
}

.overline {
  font-weight:800;
  font-size:10px;
  letter-spacing:2px;
  color:#689085;
  margin-bottom:13px;
  text-transform:uppercase
}

.overline-sep {
  color:#c0c9c6;
  margin:0 8px
}

.heading-actions {
  display:flex;
  align-items:center;
  gap:12px
}

.btn {
  border:1px solid transparent;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border-radius:9px;
  padding:12px 17px;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .15s,background .15s;
  font-weight:700;
  font-size:12px;
  min-height:42px
}

.btn:hover {
  transform:translateY(-1px)
}

.btn-primary {
  background:var(--green);
  color:white;
  box-shadow:0 3px 7px rgba(38,105,88,.1)
}

.btn-primary:hover {
  background:var(--green2)
}

.btn-outline {
  background:white;
  border-color:#dbe2e3;
  color:#344a48
}

.btn-outline:hover {
  background:#f5f8f6
}

.btn-small {
  min-height:36px;
  padding:8px 12px;
  font-size:11px
}

.btn-icon {
  font-size:21px;
  font-weight:400;
  line-height:0
}

.btn-wide {
  width:100%;
  justify-content:space-between;
  font-size:13px
}

.btn-wide span {
  font-size:18px
}

.stats-strip {
  background:#eaf2ee;
  border:1px solid #d9e8e1;
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px 21px;
  border-radius:13px;
  margin-bottom:30px;
  color:#435d50
}

.strip-icon {
  font-size:23px;
  width:41px;
  height:41px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#dcebe3
}

.stats-strip strong {
  font-size:13px
}

.stats-strip span {
  font-size:12px;
  color:#6c8178
}

.strip-note {
  margin-left:auto
}

.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:28px 0 17px
}

.section-head h2 {
  font-size:18px;
  margin:0
}

.section-head span {
  font-size:11px;
  color:#8b97a0
}

.company-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(265px,1fr));
  gap:19px
}

.company-card {
  background:#fff;
  padding:22px;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  transition:border-color .18s,transform .18s
}

.company-card:hover {
  border-color:#b9d3c9;
  transform:translateY(-3px)
}

.company-card-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px
}

.company-monogram {
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:600;
  background:#eaf0ea;
  color:#527668;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:13px
}

.small-arrow {
  font-size:21px;
  color:#a1b0aa
}

.company-title {
  font-family:Manrope,sans-serif;
  font-weight:800;
  font-size:17px;
  letter-spacing:-.3px
}

.company-subtitle {
  font-size:11px;
  color:#9ba5ad;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  margin-top:7px
}

.company-tags {
  display:flex;
  gap:7px;
  margin:18px 0 20px;
  flex-wrap:wrap
}

.company-tags span {
  font-size:10px;
  padding:6px 8px;
  border-radius:6px;
  background:#f4f7f6;
  color:#6d8179
}

.company-card-foot {
  border-top:1px solid var(--line);
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  color:#788a8f;
  font-size:11px
}

.empty-state {
  text-align:center;
  max-width:570px;
  padding:65px 22px;
  margin:8vh auto;
  border-radius:15px;
  border:1px dashed #cbd7d5;
  background:white
}

.empty-icon {
  width:66px;
  height:66px;
  border-radius:18px;
  background:#e7f1ec;
  color:#548776;
  display:grid;
  place-items:center;
  font-size:35px;
  margin:0 auto 20px
}

.empty-state h2 {
  font-size:21px;
  margin-bottom:10px
}

.empty-state p {
  font-size:13px;
  color:#7b8992;
  margin-bottom:22px
}

.panel-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:17px;
  color:#7c8a93;
  font-size:12px
}

.period-form {
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap
}

.period-form label {
  font-size:11px;
  font-weight:700;
  color:#6d7b83
}

.field-input {
  border:1px solid #dce4e7;
  border-radius:8px;
  background:#fff;
  min-height:43px;
  padding:10px 12px;
  width:100%;
  color:#2e434c;
  outline-offset:2px;
  font-size:13px;
  transition:border-color .15s,box-shadow .15s
}

.field-input:focus {
  border-color:#5d9986;
  box-shadow:0 0 0 3px rgba(44,118,94,.10)
}

.field-input::placeholder {
  color:#b0b8bd
}

.input-month {
  width:auto;
  min-height:36px;
  padding:8px 11px;
  font-size:12px
}

.metric-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:23px
}

.metric-card {
  background:white;
  border-radius:14px;
  padding:23px 23px 21px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  min-height:156px
}

.metric-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#7e8d97;
  font-size:12px;
  font-weight:700;
  margin-bottom:17px
}

.metric-icon {
  font-size:19px;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:9px
}

.metric-icon.green {
  color:#31735a;
  background:#e8f4ec
}

.metric-icon.amber {
  color:#9d7e48;
  background:#fbf3e4
}

.metric-icon.white {
  color:#d3e3d9;
  border:1px solid #72958b
}

.metric-value {
  font-family:Manrope,sans-serif;
  font-size:clamp(22px,2.6vw,29px);
  letter-spacing:-1px;
  font-weight:800;
  white-space:nowrap
}

.metric-bottom {
  font-size:11px;
  color:#9eaaae;
  margin-top:12px
}

.metric-featured {
  background:#215b4e;
  border-color:#215b4e;
  color:#fff
}

.metric-featured .metric-top {
  color:#cfe3db
}

.metric-featured .metric-bottom {
  color:#bdd6cd
}

.dashboard-columns {
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(300px,1fr);
  gap:18px
}

.surface-card {
  border:1px solid var(--line);
  background:white;
  box-shadow:var(--shadow);
  border-radius:14px;
  min-width:0
}

.surface-head {
  padding:23px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line)
}

.surface-head .overline {
  margin-bottom:9px
}

.surface-head h2 {
  font-size:16px;
  margin:0
}

.surface-head p {
  font-size:11px;
  color:#94a0a8;
  margin:7px 0 0
}

.text-link {
  font-size:11px;
  color:#387b67;
  font-weight:800;
  white-space:nowrap
}

.text-link:hover {
  text-decoration:underline
}

.table-scroller {
  width:100%;
  overflow:auto
}

.data-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px;
  min-width:580px
}

.data-table th {
  padding:15px 21px 13px;
  font-size:10px;
  color:#97a3aa;
  letter-spacing:.65px;
  font-weight:800;
  text-transform:uppercase;
  white-space:nowrap;
  background:#fcfdfd
}

.data-table td {
  border-top:1px solid #eff1f2;
  padding:15px 21px;
  vertical-align:middle;
  line-height:1.4
}

.data-table tbody tr:hover {
  background:#fafcfb
}

.data-table .muted {
  color:#88969c;
  white-space:nowrap
}

.text-right {
  text-align:right
}

.amount {
  white-space:nowrap;
  font-weight:700;
  font-variant-numeric:tabular-nums
}

.table-empty {
  color:#89979d;
  text-align:center;
  padding:45px 15px!important
}

.table-total {
  background:#f0f6f3;
  font-weight:800
}

.table-total td {
  font-size:12px;
  color:#305d4e
}

.row-title {
  display:block;
  max-width:360px;
  font-weight:700
}

.row-secondary {
  display:block;
  margin-top:5px;
  color:#97a3aa
}

.quick-stat {
  padding:18px 24px;
  border-bottom:1px solid #eef0f0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  font-size:12px;
  color:#788991
}

.quick-stat strong {
  color:#2d4449;
  font-size:13px;
  text-align:right
}

.chip {
  display:inline-flex;
  white-space:nowrap;
  align-items:center;
  border-radius:99px;
  padding:6px 9px;
  font-size:10px;
  font-weight:800
}

.chip-success {
  color:#357866;
  background:#e6f4ee
}

.chip-warning {
  color:#997b3e;
  background:#fcf4de
}

.chip-neutral {
  color:#6c7f86;
  background:#eff2f4
}

.chip-soft {
  color:#5e8276;
  background:#f0f5f3
}

.action-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:20px;
  gap:10px
}

.quick-link {
  background:#f5f8f6;
  border:1px solid #e9efeb;
  padding:13px 10px;
  border-radius:8px;
  font-size:11px;
  color:#376253;
  font-weight:800;
  display:flex;
  justify-content:space-between;
  gap:8px
}

.quick-link span {
  color:#85a497
}

.notice {
  display:flex;
  align-items:start;
  gap:10px;
  background:#fbfbf8;
  border:1px solid #eceee5;
  padding:15px 18px;
  border-radius:10px;
  margin-top:22px;
  color:#75817b
}

.notice-icon {
  font-family:Georgia,serif;
  color:#729383;
  border:1px solid #bccdc5;
  border-radius:50%;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  flex:none;
  font-weight:bold;
  font-size:12px
}

.notice p {
  font-size:11px;
  margin:0
}

.notice strong {
  color:#597669
}

.account-code {
  font-family:'DM Sans',sans-serif;
  font-weight:800;
  color:#4d8070;
  white-space:nowrap
}

.weight-semibold {
  font-weight:800
}

.count-pill {
  background:#f2f6f4;
  color:#52766a;
  font-size:11px;
  border-radius:99px;
  padding:8px 11px
}

.table-action {
  border:0;
  background:none;
  color:#b17a54;
  font-weight:700;
  font-size:11px;
  cursor:pointer
}

.table-action:hover {
  text-decoration:underline
}

.form-layout {
  display:grid;
  grid-template-columns:minmax(0,680px) minmax(250px,340px);
  gap:24px;
  align-items:start
}

.form-card {
  padding:30px
}

.form-stack {
  display:flex;
  flex-direction:column;
  gap:21px
}

.form-field {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px
}

.form-field label {
  font-size:11px;
  font-weight:800;
  color:#43545a
}

.form-help {
  font-size:11px;
  color:#95a2a5
}

.form-error {
  color:#b5403e;
  font-size:11px
}

.field-check {
  width:19px;
  height:19px;
  accent-color:var(--green)
}

.form-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding-top:22px;
  border-top:1px solid #ecf0f0
}

.form-aside {
  padding:28px 20px;
  color:#74848b
}

.form-aside-icon {
  color:#397963;
  background:#e8f3ed;
  width:52px;
  height:52px;
  border-radius:15px;
  display:grid;
  place-items:center;
  font-size:30px;
  margin-bottom:22px
}

.form-aside h3 {
  font-size:19px;
  line-height:1.35;
  color:#2d474a
}

.form-aside p {
  font-size:12px
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.entry-side-label {
  font-size:10px;
  font-weight:800;
  color:#6e9a89;
  letter-spacing:1.5px;
  padding-bottom:10px;
  border-bottom:1px solid #edf1f0
}

.account-select-wrap {
  position:relative
}

.account-select-wrap .field-input {
  padding-left:48px
}

.side-badge {
  position:absolute;
  top:7px;
  left:8px;
  width:29px;
  height:29px;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-weight:800;
  font-size:12px
}

.side-badge.debit {
  background:#e8f3ee;
  color:#378064
}

.side-badge.credit {
  background:#f6f0e8;
  color:#a17d51
}

.info-inline {
  padding:13px;
  background:#edf5f0;
  border:1px solid #e3eee8;
  border-radius:8px;
  font-size:11px;
  color:#59786c;
  line-height:1.6
}

.report-tabs {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 19px
}

.report-tabs a {
  background:#eaf0ed;
  border-radius:8px;
  color:#426c5d;
  padding:10px 14px;
  font-size:11px;
  font-weight:800
}

.report-tabs a:hover {
  background:#d9e8df
}

.report-card {
  margin-bottom:20px;
  scroll-margin-top:30px
}

.report-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 24px;
  border-bottom:1px solid #f0f2f2;
  font-size:12px
}

.report-line.main {
  font-weight:800;
  color:#31584d;
  background:#fbfdfc
}

.report-line.sub {
  padding-left:42px;
  color:#88959b;
  font-size:11px
}

.report-line.total {
  background:#ebf3ef;
  border:none;
  font-size:14px;
  font-weight:800;
  color:#285b4a;
  padding:20px 24px
}

.report-line.foot {
  font-size:11px;
  color:#7b8c8c;
  border:none
}

.one-metric {
  grid-template-columns:minmax(240px,370px)
}

.flash {
  padding:14px 17px;
  border-radius:9px;
  font-size:12px;
  font-weight:600;
  margin-bottom:16px;
  background:#e7f5eb;
  color:#317158;
  border:1px solid #d3ebdc
}

.flash-error {
  background:#fff0ed;
  color:#a84640;
  border-color:#f5d6d0
}

.messages {
  margin-bottom:18px
}

.footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:50px;
  color:#a0aab0;
  font-size:10px;
  border-top:1px solid #e8ecee;
  padding-top:20px
}

.login-body {
  background:#fff
}

.login-layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(430px,1fr)
}

.login-hero {
  background:#182e2b;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:47px clamp(35px,7vw,100px);
  color:#f6f4ed;
  position:relative;
  overflow:hidden
}

.login-hero:before {
  content:'';
  position:absolute;
  border:1px solid rgba(223,233,222,.1);
  border-radius:50%;
  width:790px;
  height:790px;
  right:-520px;
  bottom:-330px
}

.login-hero:after {
  content:'';
  position:absolute;
  border:1px solid rgba(223,233,222,.1);
  border-radius:50%;
  width:575px;
  height:575px;
  right:-270px;
  bottom:-200px
}

.login-brand {
  letter-spacing:4.7px;
  font-size:14px;
  font-weight:800;
  position:relative;
  z-index:1
}

.login-brand-m {
  font-family:Georgia,serif;
  letter-spacing:-4px;
  font-size:30px;
  margin-right:16px
}

.login-hero-content {
  margin:auto 0;
  z-index:1;
  position:relative
}

.login-kicker {
  font-size:11px;
  letter-spacing:2.7px;
  color:#b7d0c3;
  font-weight:800;
  margin-bottom:24px
}

.login-hero h1 {
  font-family:Manrope,sans-serif;
  font-weight:800;
  font-size:clamp(32px,3.7vw,54px);
  line-height:1.3;
  letter-spacing:-2.6px;
  max-width:610px;
  margin:0 0 25px
}

.login-hero h1 em {
  font-style:normal;
  color:#c7b493
}

.login-hero-content p {
  font-size:14px;
  max-width:390px;
  color:#bdccc5
}

.login-footnote {
  position:relative;
  z-index:1;
  font-size:11px;
  color:#b2c2bb;
  letter-spacing:1px
}

.login-panel {
  display:grid;
  place-items:center;
  padding:35px
}

.login-box {
  width:100%;
  max-width:410px
}

.login-box .overline {
  margin-bottom:17px
}

.login-box h2 {
  font-size:31px;
  letter-spacing:-1.4px;
  margin-bottom:12px
}

.login-box>p {
  color:#8c99a0;
  font-size:13px;
  margin-bottom:38px
}

.login-box .form-stack {
  gap:24px
}

.login-box .field-input {
  min-height:51px
}

.login-box .btn {
  min-height:52px;
  margin-top:6px
}

.login-assurance {
  margin-top:28px;
  text-align:center;
  color:#9caaa8;
  font-size:11px
}

.sub-dot {
  margin:0 6px;
  color:#c9d0cf
}

@media(max-width:1100px) {
  .sidebar {
    width:227px
  }
  .page-content {
    padding:35px 24px
  }
  .topbar {
    padding:0 24px
  }
  .dashboard-columns {
    grid-template-columns:1fr
  }
  .metric-grid {
    gap:11px
  }
  .metric-card {
    padding:19px 17px
  }
  .metric-value {
    font-size:23px
  }
  .company-grid {
    grid-template-columns:repeat(auto-fill,minmax(235px,1fr))
  }
  .form-layout {
    grid-template-columns:minmax(0,1fr) 230px
  }
}

@media(max-width:790px) {
  .app-shell {
    display:block
  }
  .sidebar {
    width:100%;
    height:auto;
    min-height:0;
    position:static;
    padding:12px 18px 10px
  }
  .brand {
    margin:3px 0 14px
  }
  .brand-symbol {
    width:32px;
    height:32px;
    font-size:21px
  }
  .brand strong {
    font-size:11px
  }
  .brand small {
    font-size:8px
  }
  .sidebar-label,.company-switch,.sidebar-help,.sidebar-user,.logout-form {
    display:none
  }
  .side-nav {
    display:flex;
    flex-direction:row;
    overflow:auto;
    gap:5px
  }
  .nav-link {
    white-space:nowrap;
    padding:10px;
    font-size:11px
  }
  .nav-icon {
    font-size:17px
  }
  .topbar {
    height:55px
  }
  .secure-label {
    display:none
  }
  .page-content {
    padding:25px 18px
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column
  }
  .panel-toolbar {
    flex-wrap:wrap
  }
  .metric-grid {
    grid-template-columns:1fr
  }
  .metric-card {
    min-height:118px
  }
  .dashboard-columns {
    grid-template-columns:1fr
  }
  .form-layout {
    grid-template-columns:1fr
  }
  .form-aside {
    display:none
  }
  .login-layout {
    display:block
  }
  .login-hero {
    min-height:260px;
    padding:27px
  }
  .login-hero-content {
    margin:28px 0
  }
  .login-kicker {
    font-size:9px;
    margin-bottom:11px
  }
  .login-hero h1 {
    font-size:27px;
    letter-spacing:-1px
  }
  .login-hero-content p,.login-footnote {
    display:none
  }
  .login-panel {
    padding:40px 24px
  }
  .footer {
    flex-direction:column
  }
}

@media(max-width:470px) {
  .form-row {
    grid-template-columns:1fr
  }
  .stats-strip {
    flex-wrap:wrap
  }
  .strip-note {
    margin-left:56px
  }
  .period-form {
    justify-content:flex-start
  }
  .company-card {
    padding:17px
  }
  .report-line {
    padding:13px 16px
  }
  .report-line.sub {
    padding-left:22px
  }
  .report-line.total {
    padding:17px
  }
  .quick-stat {
    padding:13px 16px
  }
}
