:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263246;
  background: #f7f8fa;
  font-size: 14px;
  --accent: #34745b;
  --line: #e7eaee;
  --muted: #7c8797;
  --surface: #fff;
  --bg: #f7f8fa;
  --text: #263246;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
.btn {
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--surface);
  color: var(--text);
  font-weight: 550;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
button:hover,
.btn:hover {
  background: #eef2f0;
}
button.primary,
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: #2b604c;
}
.danger {
  color: #b34747 !important;
}
.ghost {
  border-color: transparent;
  background: transparent;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.initial {
  padding: 15vh 10vw;
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.initial span,
.brand b {
  color: #62a485;
}
.initial small {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: fixed;
  width: 238px;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 32px 19px 18px;
  z-index: 30;
}
.brand {
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -1.5px;
  padding: 0 12px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.2px;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
}
.workspace {
  margin: 32px 4px 22px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.workspace .avatar {
  background: #eaf2ee;
  color: var(--accent);
}
.workspace strong {
  display: block;
  font-size: 12px;
}
.workspace small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-transform: uppercase;
  color: #99a1ad;
  margin: 15px 13px 9px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  color: #737e8e;
  font-size: 13px;
  font-weight: 500;
}
.nav a:hover {
  background: var(--bg);
  color: var(--text);
}
.nav a.active {
  color: var(--accent);
  background: #edf4ef;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 2px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eff0f5;
  color: #68708d;
  font-size: 12px;
  font-weight: 650;
}
.profile div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.profile strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  font-size: 11px;
  color: var(--muted);
}
.profile button {
  padding: 7px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 20px;
}
.crumb {
  color: #8e97a5;
  font-size: 12px;
}
.crumb span {
  color: var(--text);
  margin-left: 12px;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.top-actions .today {
  color: var(--muted);
  font-size: 12px;
}
.search-global {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--muted);
  width: 225px;
}
.search-global input {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  font-size: 12px;
  outline: none;
}
.kbd {
  font-size: 10px;
  background: var(--surface);
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.content {
  max-width: 1550px;
  padding: 38px 42px 50px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0 0 14px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.head-actions {
  display: flex;
  gap: 8px;
}
.welcome {
  background: #edf3ef;
  border: 1px solid #e0e9e3;
  border-radius: 12px;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  position: relative;
  overflow: hidden;
}
.welcome h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 6px 0 8px;
}
.welcome p {
  margin: 0;
  color: #6a7d71;
  font-size: 12px;
}
.welcome .eyebrow {
  color: #678373;
  font-size: 9px;
}
.welcome-decoration {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 22px;
  transform: rotate(-8deg);
  opacity: 0.85;
}
.welcome-decoration span {
  width: 44px;
  height: 68px;
  border: 1px solid #b7cdbf;
  border-radius: 10px;
  background: #dce9df;
}
.welcome-decoration span:nth-child(2) {
  height: 100px;
  background: #c9ddce;
}
.welcome-decoration span:nth-child(3) {
  height: 54px;
  background: #b5cfbe;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat-icon {
  display: grid;
  place-items: center;
  background: #f2f5f3;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  color: #72877b;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 12px 0 8px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat small span {
  color: var(--accent);
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 22px;
}
.grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.panel-body {
  padding: 22px;
}
.panel-link {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.panel-link:hover {
  color: var(--accent);
}
.empty {
  padding: 47px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.empty h3 {
  color: #566276;
  font-weight: 550;
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 300px;
  margin: 0 auto 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  background: var(--surface);
  font-size: 12px;
  gap: 14px;
}
.quick svg {
  color: var(--accent);
}
.quick small {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  margin-top: -6px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters input {
  min-width: 230px;
}
.filters select {
  width: auto;
}
.count {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  background: var(--surface);
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
  width: 100%;
  outline: none;
  line-height: 1.4;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #72a28a;
  box-shadow: 0 0 0 3px #34745b12;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
input[type="date"] {
  min-width: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  margin: 0;
  padding: 7px 0;
}
.field {
  margin-bottom: 18px;
}
.field small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 13px 22px;
  font-size: 10px;
  font-weight: 550;
  color: var(--muted);
  background: #fafbfc;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 22px;
  font-size: 12px;
  border-bottom: 1px solid #f0f1f4;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #fafcfb;
}
td strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
td small {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-top: 5px;
}
td .row-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f0f2f5;
  color: #788292;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  color: #3a8866;
  background: #eef6f0;
}
.badge.amber {
  color: #b58835;
  background: #fbf5e8;
}
.badge.red {
  color: #b65d5d;
  background: #fceeee;
}
.badge.blue {
  color: #6183ad;
  background: #edf3fc;
}
.detail-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}
.detail-section {
  padding: 22px;
}
.detail-section + .detail-section {
  border-top: 1px solid var(--line);
}
.text-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.definition small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.definition div {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.message {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.message.note {
  background: #fffaf0;
}
.message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 12px;
}
.message-head small {
  color: var(--muted);
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 0;
}
.timeline-row {
  display: flex;
  gap: 12px;
  padding: 15px 22px;
}
.timeline-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #9eb9a9;
  margin-top: 5px;
}
.timeline-row p {
  margin: 0;
  font-size: 12px;
}
.timeline-row small {
  font-size: 10px;
  color: var(--muted);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border: 0;
}
.task-row div {
  flex: 1;
}
.task-row strong {
  font-size: 12px;
  font-weight: 500;
}
.task-row small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.task-row input {
  flex: none;
}
.notice {
  border: 1px solid #e8dfc7;
  background: #fdf9ef;
  color: #927238;
  padding: 14px 17px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 8px;
  margin-bottom: 20px;
}
.notice.info {
  background: #eff5f1;
  border-color: #dfe9e2;
  color: #607e6b;
}
.error {
  padding: 12px 15px;
  color: #ab4141;
  background: #fff0f0;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 15px;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tabs a {
  padding: 12px 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tabs a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.code {
  display: block;
  background: #f4f6f8;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.7;
  user-select: all;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 180px;
  padding: 15px 0 0;
}
.chart-column {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.chart-bar {
  background: #9abca9;
  width: 100%;
  max-width: 30px;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.chart-column small {
  color: var(--muted);
  font-size: 8px;
  writing-mode: vertical-rl;
  height: 30px;
}
.progress {
  height: 5px;
  background: #eff2f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 7px;
}
.progress span {
  height: 100%;
  display: block;
  background: #9fbfac;
}
.login {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login-aside {
  background: #edf3ef;
  padding: 52px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-copy {
  max-width: 480px;
  margin: 80px 0;
}
.login-copy h1 {
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -2.5px;
  color: #314f40;
  font-weight: 550;
}
.login-copy p {
  font-size: 15px;
  color: #74887b;
  max-width: 360px;
  margin-top: 25px;
}
.login-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 35px;
  color: #52735e;
  font-size: 11px;
}
.login-footer {
  font-size: 11px;
  color: #91a397;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form-inner {
  max-width: 350px;
  width: 100%;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.login-form p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}
.login-form button {
  width: 100%;
  padding: 12px;
}
.login-help {
  margin-top: 24px !important;
  font-size: 11px !important;
  line-height: 1.8;
}
.login-help a {
  color: var(--accent);
}
.login-art {
  height: 170px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 45px 0 0;
}
.login-art div {
  border: 1px solid #bcd2c3;
  border-radius: 13px;
  width: 95px;
  height: 100px;
  background: #e0ebe3;
  transform: rotate(-8deg);
}
.login-art div:nth-child(2) {
  height: 160px;
  background: #c4dacb;
  transform: rotate(7deg);
}
.login-art div:nth-child(3) {
  height: 125px;
  background: #a8c6b3;
  transform: rotate(-5deg);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(620px, calc(100% - 28px));
  max-height: 88vh;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 100px #1e293b20;
}
dialog::backdrop {
  background: #1e293b60;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 20px 25px;
}
.modal-body {
  padding: 25px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 90px 32px;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}
.line-item input {
  font-size: 12px;
  padding: 9px;
}
.line-item button {
  padding: 8px;
}
.line-labels {
  font-size: 10px;
  color: var(--muted);
}
.invoice-total {
  font-size: 21px;
  font-weight: 600;
  text-align: right;
  margin: 20px 0;
}
.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-note {
  font-size: 10px;
  color: #a2a9b4;
  display: flex;
  justify-content: space-between;
  margin-top: 33px;
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 400px;
  background: #263c30;
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 8px 30px #0002;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
svg {
  width: 18px;
  height: 18px;
  flex: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8fbaa2;
  outline-offset: 3px;
}
.loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.skeleton {
  background: linear-gradient(90deg, #f0f2f4, #f8f9fa, #f0f2f4);
  height: 15px;
  border-radius: 5px;
}
.right {
  text-align: right;
}
.stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mt {
  margin-top: 20px;
}
.mb {
  margin-bottom: 20px;
}
.hidden {
  display: none !important;
}
body.dark {
  --surface: #202731;
  --bg: #181e27;
  --text: #dce3eb;
  --line: #323a46;
  --muted: #98a3b3;
  background: var(--bg);
  color: var(--text);
}
body.dark th,
body.dark tr.clickable:hover {
  background: #232c36;
}
body.dark input,
body.dark select,
body.dark textarea {
  border-color: var(--line);
}
body.dark .welcome,
body.dark .nav a.active {
  background: #26392f;
  border-color: #354e3e;
}
body.dark .welcome h2 {
  color: #d3e7d8;
}
body.dark .stat-icon,
body.dark .code {
  background: #29332f;
}
body.dark td {
  border-color: var(--line);
}
body.dark .badge {
  background: #303944;
}
body.dark .message.note {
  background: #363126;
}
body.dark .login-aside {
  background: #26392f;
}
body.dark .login-copy h1 {
  color: #d3e7d8;
}
body.dark button:hover {
  background: #344238;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
}
@media (max-width: 1150px) {
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .content {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .today {
    display: none;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .login-aside {
    padding: 45px;
  }
  .login-copy h1 {
    font-size: 43px;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
    padding: 25px 12px 15px;
  }
  .brand {
    font-size: 23px;
  }
  .workspace {
    margin-top: 25px;
  }
  .nav a {
    font-size: 12px;
    padding: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid,
  .grid-equal {
    grid-template-columns: 1fr;
  }
  .search-global {
    width: 185px;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-decoration {
    display: none;
  }
  .login {
    grid-template-columns: 1fr 1fr;
  }
  .login-aside {
    padding: 32px;
  }
  .login-copy h1 {
    font-size: 36px;
  }
  .login-art div {
    width: 60px;
  }
  .login-form {
    padding: 30px;
  }
}
@media (max-width: 620px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 238px;
    transition: 0.2s;
    box-shadow: 10px 0 50px #0001;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
    padding: 7px;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
  }
  .crumb span {
    margin-left: 0;
  }
  .top-actions {
    gap: 8px;
  }
  .search-global {
    width: 140px;
    padding: 7px;
  }
  .search-global .kbd {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 240px;
  }
  .head-actions .btn,
  .head-actions button {
    padding: 9px 11px;
    font-size: 11px;
  }
  .welcome {
    padding: 22px;
  }
  .welcome h2 {
    font-size: 18px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .quick-grid {
    gap: 9px;
  }
  .quick {
    padding: 16px;
  }
  .grid2,
  .grid-equal {
    gap: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .filters {
    width: 100%;
  }
  .filters input {
    min-width: 0;
    flex: 1;
  }
  .toolbar {
    gap: 10px;
  }
  .panel {
    margin-bottom: 18px;
  }
  td,
  th {
    padding: 14px 17px;
  }
  .login {
    display: block;
  }
  .login-aside {
    padding: 28px 25px;
  }
  .login-copy {
    margin: 38px 0 5px;
  }
  .login-copy h1 {
    font-size: 35px;
    max-width: 290px;
  }
  .login-copy p {
    font-size: 12px;
    margin-top: 15px;
    max-width: 300px;
  }
  .login-art,
  .login-footer,
  .login-features {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .login-form-inner {
    max-width: 400px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .login-form p {
    margin-bottom: 25px;
  }
  .footer-note {
    font-size: 9px;
  }
  .modal-body {
    padding: 20px;
  }
  .definition {
    gap: 18px;
  }
  .line-item {
    grid-template-columns: minmax(0, 1fr) 50px 73px 28px;
    gap: 5px;
  }
  .line-item input {
    padding: 8px 6px;
  }
  .welcome p {
    font-size: 11px;
  }
  .detail-meta {
    gap: 7px;
  }
  .message {
    padding: 18px;
  }
  .message-head {
    flex-wrap: wrap;
  }
  #toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .top-actions > button {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sidebar {
  overflow-y: auto;
}
