:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #1b2d3c;
  background: #aebdca;
  --menu-bar-height: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(#dce8f4 0, #b8c8d7 42px, #92a8ba 42px, #d8e1e8 100%);
  font-size: 13px;
}

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

button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #7c93a8;
  border-radius: 3px;
  color: #1c3344;
  cursor: pointer;
  background: linear-gradient(#ffffff, #d9e6f0 52%, #c4d5e1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

button:hover {
  border-color: #3d6f9e;
  background: linear-gradient(#ffffff, #e5f3ff 48%, #bed8ec);
}

button.primary {
  border-color: #2e6898;
  color: #fff;
  background: linear-gradient(#5fa0ce, #2f78ad 52%, #1f5f91);
  font-weight: 600;
}

button.subtle {
  color: #25445a;
  border-color: #9db1c1;
  background: linear-gradient(#ffffff, #eef4f8);
  box-shadow: none;
}

button.subtle.active {
  border-color: #467aa2;
  background: linear-gradient(#eff8ff, #cfe4f4);
  font-weight: 600;
}

button.small {
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

button.tiny {
  min-height: 18px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 1;
}

button.danger {
  border-color: #9b6464;
  color: #6c1e1e;
  background: linear-gradient(#fff, #ead7d7);
}

input,
select,
textarea {
  width: 100%;
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid #8fa4b5;
  border-radius: 2px;
  color: #1b2d3c;
  background: linear-gradient(#ffffff, #f6fbff);
  box-shadow: inset 0 1px 2px rgba(41, 70, 92, 0.12);
}

textarea {
  min-height: 58px;
  padding: 7px;
  resize: vertical;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 19px;
  font-weight: 600;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  padding: 8px 12px;
  color: #102f46;
  border: 1px solid #8ea8bd;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#f7fbff, #cfe0ee 48%, #a9c4d9 49%, #dbe9f4);
}

h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #26465d;
}

.app-frame {
  min-height: 100vh;
  padding-top: var(--menu-bar-height);
}

.classic-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--menu-bar-height);
  min-height: var(--menu-bar-height);
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
  padding: 0 8px;
  border-bottom: 1px solid #6b849a;
  background: linear-gradient(#f7fbff, #c4d8e9);
  box-shadow: inset 0 1px 0 #fff;
}

.menu-slot {
  position: relative;
}

.classic-menu button {
  min-height: 22px;
  padding: 0 9px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.classic-menu button:hover {
  border-color: #7ca3c3;
  background: linear-gradient(#fff, #d7ebfb);
}

.classic-menu button.menu-open {
  border-color: #6f97b8;
  background: linear-gradient(#eaf6ff, #c2dcec);
}

.classic-menu .home-top-button {
  margin-right: 6px;
  border-color: #6f97b8;
  color: #123650;
  font-weight: 700;
  background: linear-gradient(#ffffff, #e3f0fa);
}

.classic-menu .home-top-button.active {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.top-utility-slot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-account-slot {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.classic-menu button.account-top-button {
  width: 25px;
  min-width: 25px;
  min-height: 23px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: #7ca3c3;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #e5f3ff 48%, #c2d9eb);
}

.classic-menu button.account-top-button.active {
  border-color: #2e6898;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.account-outline-icon {
  position: relative;
  width: 14px;
  height: 15px;
  display: block;
}

.account-outline-icon::before,
.account-outline-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid #24485f;
}

.account-outline-icon::before {
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.account-outline-icon::after {
  bottom: 1px;
  width: 12px;
  height: 6px;
  border-radius: 8px 8px 2px 2px;
  border-bottom: 0;
}

.account-top-button.active .account-outline-icon::before,
.account-top-button.active .account-outline-icon::after {
  border-color: #fff;
}

.menu-popover {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 1001;
  min-width: 188px;
  padding: 3px;
  border: 1px solid #6f879b;
  background: #f8fbfe;
  box-shadow: 2px 4px 10px rgba(33, 56, 74, 0.22);
}

.menu-popover button {
  display: block;
  width: 100%;
  min-height: 25px;
  padding: 0 18px 0 8px;
  border: 0;
  border-radius: 0;
  color: #1b3448;
  text-align: left;
  background: transparent;
}

.menu-popover button:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.menu-popover button:disabled {
  color: #8ca0ae;
  cursor: default;
}

.global-search-box {
  position: relative;
  width: min(260px, 28vw);
}

.global-search-box input {
  width: 100%;
  min-height: 22px;
  padding: 0 8px;
  border-color: #8ca7bc;
  border-radius: 12px;
  background: #fff;
}

.global-search-popover,
.utility-popover {
  position: absolute;
  top: 25px;
  right: 0;
  z-index: 1002;
  width: 320px;
  max-height: min(440px, calc(100vh - 50px));
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #6f879b;
  background: #f8fbfe;
  box-shadow: 2px 4px 14px rgba(33, 56, 74, 0.26);
}

.global-search-popover button,
.utility-popover button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 38px;
  padding: 5px 8px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
}

.global-search-popover button:hover,
.utility-popover button:hover {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.global-search-popover button span,
.utility-popover button span {
  color: #5d7282;
  font-size: 11px;
}

.global-search-popover button:hover span,
.utility-popover button:hover span {
  color: #e9f4fb;
}

.utility-menu {
  position: relative;
}

.classic-menu button.admin-alert-button {
  border-color: #7ca3c3;
  background: linear-gradient(#ffffff, #e5f3ff);
}

.classic-menu button.admin-alert-button.active {
  border-color: #b17b32;
  color: #6a390b;
  background: linear-gradient(#fff7df, #efd092);
  font-weight: 700;
}

.popover-title {
  padding: 6px 8px;
  font-weight: 700;
  color: #24475f;
  border-bottom: 1px solid #c3d4e0;
}

.popover-empty {
  padding: 10px;
  color: #607789;
  font-size: 12px;
}

.app-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  height: calc(100vh - 28px);
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-gutter: stable;
  color: #21384a;
  padding: 8px;
  border-right: 1px solid #6d8294;
  background: linear-gradient(#d6e4ef, #b5c8d8);
}

.company-pane {
  border: 1px solid #7f9ab0;
  border-radius: 3px;
  padding: 9px 10px 10px;
  margin-bottom: 8px;
  background: linear-gradient(#ffffff, #d8e8f5);
  box-shadow: inset 0 1px 0 #fff;
  text-align: center;
}

.company-logo,
.company-logo-mark {
  display: grid;
  width: 54px;
  height: 45px;
  margin: 0 auto 5px;
  place-items: center;
}

.company-logo {
  display: block;
  object-fit: contain;
}

.company-logo-mark {
  border: 1px solid #7f9ab0;
  border-radius: 4px;
  color: #16354c;
  background: linear-gradient(#fffbe7, #d6b25e);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.company-pane strong,
.company-pane span {
  display: block;
}

.company-pane span {
  margin-top: 2px;
  color: #566d7e;
  font-size: 12px;
}

nav {
  flex: 0 0 auto;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 7px;
}

.nav-group {
  overflow: hidden;
  border: 1px solid #7f9ab0;
  border-radius: 3px;
  background: #f8fbfe;
}

.nav-heading {
  padding: 4px 8px;
  color: #123650;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(#eaf4fc, #bad2e5);
  border-bottom: 1px solid #8ea8bd;
}

nav button {
  justify-content: flex-start;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 25px;
  padding: 3px 8px;
  border: 0;
  border-radius: 0;
  color: #1b3448;
  background: transparent;
  box-shadow: none;
  text-align: left;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

nav button.active {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
  font-weight: 600;
}

nav button:hover:not(.active) {
  background: #e7f1f8;
}

.shortcut-drop {
  min-height: 70px;
}

.shortcut-drop.empty {
  border-style: dashed;
}

.shortcut-empty {
  padding: 8px;
  color: #607789;
  font-size: 12px;
  line-height: 1.3;
  background: #fff;
}

.shortcut-context-menu {
  position: fixed;
  z-index: 60;
  width: 202px;
  padding: 4px;
  border: 1px solid #657f95;
  background: #f8fbfe;
  box-shadow: 2px 5px 14px rgba(31, 54, 72, 0.26);
}

.shortcut-context-menu .context-title {
  padding: 6px 8px;
  color: #23445e;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #c3d4e0;
  background: linear-gradient(#fff, #e1edf6);
}

.shortcut-context-menu button {
  display: block;
  width: 100%;
  min-height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.shortcut-context-menu button:hover {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

main {
  min-width: 0;
  padding: 12px;
  background: #edf2f6;
}

.topbar {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid #8099ae;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #dceaf5 52%, #c2d8e9);
  box-shadow: inset 0 1px 0 #fff;
}

.workspace-topbar {
  align-items: stretch;
  padding: 7px 10px;
  border-color: #6f8ca3;
  background: linear-gradient(#fdfefe, #d6e7f4 48%, #b9d1e4);
}

.workspace-commandbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid #9bb2c4;
}

.ribbon-group {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 54px;
  padding: 3px 8px 15px;
  border-right: 1px solid #9bb2c4;
  background: linear-gradient(#f9fcff, #dcebf6);
}

.ribbon-group:last-child {
  border-right: 0;
}

.ribbon-group-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  color: #536b7e;
  font-size: 10px;
  text-align: center;
}

.ribbon-button {
  display: grid;
  grid-template-columns: 32px minmax(44px, auto);
  gap: 6px;
  align-items: center;
  min-width: 92px;
  min-height: 42px;
  padding: 3px 7px;
  border-color: transparent;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}

.ribbon-button:hover,
.ribbon-button.primary {
  border-color: #d3a13d;
  background: linear-gradient(#fff9e8, #ffe4a8 52%, #f2c46e);
}

.ribbon-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  border: 1px solid #2f6e9f;
  border-radius: 3px;
  background: linear-gradient(#6fa8cf, #2f78ad);
  font-size: 9px;
  font-weight: 700;
}

.ribbon-text {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.ribbon-text strong {
  font-size: 12px;
}

.ribbon-text small {
  color: #526b7f;
  font-size: 10px;
}

.workspace-local-actions {
  margin-bottom: 8px;
}

.hidden-file-input {
  display: none;
}

.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  color: #1f5f91;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  text-decoration: underline;
}

.link-button:hover,
.link-button.selected {
  color: #fff;
  background: #2f78ad;
  padding: 2px 5px;
  text-decoration: none;
}

.eyebrow {
  display: block;
  color: #587084;
  font-size: 11px;
  margin-bottom: 2px;
}

.session-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #455e71;
}

.profile-dock {
  flex: 0 0 auto;
  margin-top: 8px;
  border: 1px solid #7f9ab0;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #d8e8f5);
  box-shadow: inset 0 1px 0 #fff;
}

.profile-dock button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 7px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.muted {
  color: #6f8292;
  font-size: 12px;
}

.inventory-import {
  grid-template-columns: minmax(220px, 360px) 110px;
}

.profile-dock button.active {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.profile-dock strong,
.profile-dock small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-dock small {
  color: #5f7282;
  font-size: 11px;
}

.profile-dock button.active small {
  color: #dceaf5;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #7f9ab0;
  border-radius: 3px;
  color: #19364b;
  background: linear-gradient(#fffbe7, #d6b25e);
  font-size: 12px;
  font-weight: 800;
}

section {
  display: grid;
  gap: 10px;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.dashboard-heading h2 {
  margin: 0;
}

.period-toggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: #e8f0f6;
}

.period-toggle button {
  min-width: 64px;
}

.period-toggle button.active {
  color: #fff;
  border-color: #1b5f91;
  background: linear-gradient(#3d91c6, #1d6498);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
  gap: 10px;
}

.home-hero-panel,
.chart-panel {
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.home-hero-panel {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 13px;
}

.home-hero-panel strong {
  display: block;
  color: #123650;
  font-size: 28px;
  line-height: 1.1;
}

.home-hero-panel small {
  color: #607789;
}

.profit-badge {
  display: grid;
  gap: 3px;
  width: max-content;
  min-width: 150px;
  padding: 9px;
  border: 1px solid #9eb4c5;
  background: #fff;
}

.profit-badge.good {
  border-left: 4px solid #39815c;
}

.profit-badge.bad {
  border-left: 4px solid #b55343;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.office-attention {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f4f8fb);
}

.attention-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.attention-card {
  min-height: 94px;
  padding: 9px;
  display: grid;
  gap: 3px;
  align-content: start;
  text-align: left;
  border-color: #8ba9bf;
  background: linear-gradient(#ffffff, #eaf3f9);
}

.attention-card strong {
  color: #103953;
  font-size: 24px;
  line-height: 1;
}

.attention-card em {
  color: #315d78;
  font-style: normal;
  font-weight: 700;
}

.attention-card small {
  min-height: 28px;
  color: #5f7586;
  line-height: 1.2;
}

.chart-panel {
  min-width: 0;
  padding: 10px;
}

.chart-panel.wide {
  grid-column: 1 / -1;
}

.donut-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.donut-chart {
  width: 126px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #91aabd;
  box-shadow: inset 0 1px 2px rgba(24, 50, 70, 0.18);
}

.donut-chart::before {
  content: "";
  position: absolute;
}

.donut-chart span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #17374e;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  box-shadow: 0 0 0 1px #c5d3de;
}

.chart-legend {
  display: grid;
  gap: 6px;
}

.chart-legend div,
.home-bar-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(28, 51, 68, 0.25);
}

.chart-legend span,
.home-bar-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend strong,
.home-bar-row strong {
  font-size: 12px;
}

.home-bar-list {
  display: grid;
  gap: 8px;
}

.home-bar-row {
  grid-template-columns: 120px minmax(0, 1fr) 90px;
}

.home-bar-track {
  height: 13px;
  border: 1px solid #a7bac8;
  background: #edf3f7;
}

.home-bar-track i {
  display: block;
  height: 100%;
}

.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric,
.table-wrap,
.journal-form,
.login-panel,
.user-row,
.item-form,
.tax-form,
.invoice-form {
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.metric {
  padding: 10px;
}

.metric span {
  color: #566d7e;
  font-size: 11px;
}

.metric strong {
  display: block;
  font-size: 18px;
  margin-top: 5px;
}

.ledger-review-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.ledger-review-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.ledger-review-head h3 {
  margin: 2px 0 0;
}

.table-wrap,
.journal-form,
.login-panel,
.user-row,
.item-form,
.tax-form,
.invoice-form {
  padding: 10px;
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.table-title-row h3 {
  margin-bottom: 8px;
}

.column-menu {
  position: relative;
  margin-bottom: 6px;
}

.column-menu summary {
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #a1b5c5;
  border-radius: 3px;
  color: #24475f;
  background: linear-gradient(#fff, #e8f1f8);
  cursor: pointer;
  list-style: none;
}

.column-menu summary::-webkit-details-marker {
  display: none;
}

.column-menu-list {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #7f9ab0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(34, 58, 78, 0.18);
}

.column-menu-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.column-menu-list input {
  width: auto;
  min-height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #a8b9c6;
}

th,
td {
  border-bottom: 1px solid #d9e3eb;
  border-right: 1px solid #edf2f6;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #233d52;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(#f8fbfe, #d8e7f2);
}

tr:nth-child(even) td {
  background: #f8fbfe;
}

.table-amount-input {
  width: 96px;
  min-width: 96px;
}

.empty {
  color: #6f8292;
  text-align: center;
  padding: 22px;
}

.empty strong,
.empty span {
  display: block;
}

.empty strong {
  color: #344f63;
  margin-bottom: 3px;
}

.toolbar-form {
  display: grid;
  grid-template-columns: 110px minmax(170px, 1fr) 145px 145px 120px 80px;
  gap: 7px;
  align-items: end;
}

.toolbar-form.single {
  grid-template-columns: minmax(240px, 360px);
}

.toolbar-form.ledger-toolbar {
  grid-template-columns: minmax(260px, 420px) minmax(240px, 360px);
}

.toolbar-form.customer-form {
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(220px, 1.4fr) 80px;
}

.customer-form {
  display: block;
}

.customer-card,
.vendor-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #a8b9c6;
  background: linear-gradient(#f7fbfe, #e8f0f6);
}

.vendor-card > label,
.vendor-card > .form-actions {
  min-width: 0;
}

.customer-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-section h3 {
  margin: 0;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 7px;
}

.address-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 92px 110px 112px;
  gap: 7px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
}

.toolbar-form.directory-form {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) 80px;
}

.toolbar-form.vendor-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.vendor-form textarea,
.vendor-form .form-actions {
  grid-column: 1 / -1;
}

.toolbar-form.document-form {
  grid-template-columns: minmax(190px, 1.1fr) minmax(170px, 1fr) 145px minmax(190px, 1fr) 145px 100px 90px;
}

.toolbar-form.bank-import-form {
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr) 110px;
}

.bank-rule-panel,
.custom-field-panel {
  display: grid;
  gap: 9px;
}

.bank-rule-form,
.custom-field-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  align-items: end;
}

.bank-rule-form .wide,
.custom-field-form .wide {
  grid-column: 1 / -1;
}

.custom-field-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  align-items: start;
}

.custom-field-entity-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 10px;
  align-items: center;
  margin: 8px 0 10px;
  padding: 9px 10px;
  border: 1px solid #9db7cb;
  background: linear-gradient(#f8fbfd, #e8f1f7);
}

.custom-field-entity-picker strong,
.custom-field-entity-picker span {
  display: block;
}

.custom-field-entity-picker span {
  margin-top: 2px;
  color: #5c7181;
  font-size: 11px;
}

.field-note {
  display: block;
  margin-top: 3px;
  color: #5c7181;
  font-size: 11px;
}

.file-picker {
  position: relative;
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid #8fa4b5;
  border-radius: 2px;
  color: #1b2d3c;
  background: linear-gradient(#ffffff, #d9e6f0 52%, #c4d5e1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.file-picker span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.item-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 7px;
  align-items: end;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid #d1dde7;
  color: #24455e;
  font-size: 12px;
  font-weight: 700;
}

.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-help {
  grid-column: 1 / -1;
  margin: -2px 0 1px;
  color: #5c7181;
  font-size: 11px;
}

.item-form textarea {
  grid-column: span 2;
}

.tax-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px minmax(220px, 1fr) 90px;
  gap: 7px;
  align-items: end;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bill-taskbar {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #a4b8c7;
  background: linear-gradient(#f9fcff, #e7f0f7);
}

.bill-taskbar-main,
.bill-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bill-taskbar-note {
  color: #5b7183;
  font-size: 12px;
}

.bill-secondary-actions {
  padding-top: 7px;
  border-top: 1px solid #c6d4de;
}

.inline-details {
  align-self: center;
  color: #334f64;
  font-size: 12px;
}

.inline-details summary {
  cursor: pointer;
}

.inline-details span {
  display: inline-block;
  max-width: 760px;
  margin-left: 8px;
  color: #5f7282;
}

.inline-notice {
  margin: 8px 0 10px;
  padding: 8px 10px;
  color: #24475f;
  border: 1px solid #9eb4c5;
  border-left: 4px solid #2f78ad;
  background: #fff;
}

.inline-warning {
  margin: 8px 0 10px;
  padding: 8px 10px;
  color: #68450f;
  border: 1px solid #d4b16f;
  border-left: 4px solid #b87818;
  background: #fff9ea;
}

.status-filter {
  display: inline-flex;
  width: max-content;
  overflow: hidden;
  border: 1px solid #7c93a8;
  border-radius: 3px;
  background: #fff;
}

.status-filter button {
  min-height: 26px;
  border: 0;
  border-right: 1px solid #b9c7d2;
  border-radius: 0;
  background: linear-gradient(#ffffff, #e8f0f6);
}

.status-filter button:last-child {
  border-right: 0;
}

.status-filter button.active {
  color: #fff;
  background: linear-gradient(#5fa0ce, #2f78ad 52%, #1f5f91);
  font-weight: 700;
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid #a8b9c6;
  background: linear-gradient(#f8fbfe, #e2edf5);
}

.filter-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.filter-field {
  display: inline-grid;
  grid-template-columns: auto minmax(150px, 210px);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.filter-field select {
  min-width: 0;
}

.count-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #a8b9c6;
  border-radius: 3px;
  color: #334f64;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.tax-rate-toolbar {
  margin-top: 10px;
}

.collapsible-panel {
  display: block;
}

.collapsible-panel summary {
  width: max-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #6f879a;
  border-radius: 2px;
  color: #17374e;
  background: linear-gradient(#ffffff, #d9e6f0 52%, #c4d5e1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style-position: inside;
}

.collapsible-panel[open] summary {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.collapsible-panel[open] .item-form {
  margin-top: 8px;
}

.compact-select {
  width: auto;
  min-width: 130px;
}

.archive-action {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 5px;
  align-items: center;
}

.archive-action input {
  min-width: 130px;
}

.compact-panel {
  background: #f8fbfe;
}

.location-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 4px;
  min-width: 155px;
}

.location-mini-grid input {
  min-width: 0;
  padding: 0 5px;
}

.trace-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #9fb9cc;
}

.journal-preview,
.story-panel,
.aging-panel {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #b4c8d7;
}

.journal-preview h3,
.story-panel h3,
.aging-panel h3 {
  margin: 0 0 6px;
  color: #23445e;
  font-size: 14px;
}

.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.aging-metrics {
  margin-bottom: 8px;
}

.smoke-metrics {
  margin-bottom: 8px;
}

.invoice-form {
  display: grid;
  gap: 8px;
}

.email-draft-panel {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
}

.email-draft-panel h3 {
  margin: 0;
}

.email-draft-panel textarea {
  min-height: 92px;
}

.email-draft-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(240px, 1.2fr);
}

.money-in-panel {
  display: grid;
  gap: 10px;
}

.money-in-form,
.payment-draft-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
}

.money-in-form h3,
.payment-draft-panel h3 {
  margin: 0;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tab-strip button.active {
  border-color: #2e6898;
  background: linear-gradient(#dff0fc, #b9d6eb);
  font-weight: 700;
}

.tab-strip button.utility {
  margin-left: auto;
}

.smoke-tabs {
  margin: 8px 0;
}

.smoke-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 10px;
  align-items: start;
}

.smoke-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.form-grid.smoke-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.smoke-catalog-form,
.smoke-pos-form,
.smoke-receiving-form,
.smoke-master-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.smoke-pos-form {
  grid-template-columns: 1fr;
}

.smoke-current-panel {
  grid-template-columns: 1fr;
  min-width: 0;
}

.smoke-receiving-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 10px;
  align-items: start;
}

.smoke-receiving-form,
.smoke-receiving-cart,
.smoke-restock-panel,
.smoke-recent-receiving {
  min-width: 0;
}

.smoke-receiving-form {
  grid-template-columns: 1fr;
}

.smoke-receiving-form > .form-grid,
.smoke-receiving-form > .form-actions,
.smoke-receiving-form > .receive-product-preview {
  grid-column: 1 / -1;
}

.smoke-receiving-cart,
.smoke-restock-panel,
.smoke-recent-receiving {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.smoke-restock-panel {
  grid-column: 2;
  grid-row: 1;
}

.smoke-receiving-cart,
.smoke-recent-receiving {
  grid-column: 1 / -1;
}

.receive-product-preview {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid #c0d1de;
  background: #f8fbfe;
}

.receive-product-preview strong {
  color: #24475f;
}

.receive-product-preview span {
  color: #5a7184;
  font-size: 11px;
}

.receive-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 7px;
}

.receive-summary div {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid #c2d2df;
  background: #f8fbfe;
}

.receive-summary span {
  color: #5a7184;
  font-size: 11px;
}

.receive-summary strong {
  color: #17374e;
  font-size: 14px;
}

.smoke-sale-total {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding: 8px;
  border: 1px solid #b8c9d6;
  background: #f8fbfe;
}

.smoke-sale-total strong {
  flex-basis: 100%;
  font-size: 18px;
  color: #163a52;
}

.smoke-pos-form > .form-grid,
.smoke-pos-form > .check.inline,
.smoke-pos-form > .form-actions {
  grid-column: 1 / -1;
}

.smoke-product-card {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid #c8d6e1;
  background: #f8fbfe;
}

.pos-workspace {
  container-type: inline-size;
  display: grid;
  gap: 10px;
}

.pos-register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 10px;
  align-items: start;
}

.pos-register-panel,
.pos-tender-panel,
.gift-card-guide article {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.pos-register-panel,
.pos-tender-panel {
  min-width: 0;
}

.pos-register-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 7px;
}

.pos-register-meta label.wide {
  grid-column: span 2;
}

.pos-add-cashier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
}

.pos-add-cashier button {
  min-width: 48px;
  padding: 0 8px;
}

.pos-scan-row,
.pos-gift-card-issue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 7px;
  align-items: end;
}

.pos-scan-row + .pos-scan-row {
  grid-template-columns: minmax(200px, 1fr) auto minmax(90px, 120px);
}

.pos-gift-card-issue {
  grid-template-columns: minmax(130px, auto) minmax(140px, 1fr) 110px minmax(140px, 1fr) auto;
  align-items: center;
  padding: 8px;
  border: 1px solid #b8c9d6;
  background: #f8fbfe;
}

.pos-gift-card-issue strong {
  color: #24475f;
}

.pos-total-box {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #9db6c9;
  background: linear-gradient(#f9fcff, #e7f0f7);
}

.pos-total-box span,
.pos-tender-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(90px, auto);
  gap: 6px;
  align-items: center;
}

.pos-total-box strong {
  text-align: right;
}

.pos-total-box .total-due {
  padding-top: 5px;
  border-top: 1px solid #bdd0de;
  color: #123650;
  font-size: 16px;
  font-weight: 700;
}

.pos-total-box .paid {
  color: #20603a;
}

.pos-total-box .due {
  color: #8b3428;
}

.pos-tender-list {
  display: grid;
  gap: 7px;
}

.pos-tender-row {
  grid-template-columns: minmax(78px, 0.95fr) minmax(64px, 78px) minmax(70px, 1fr) 40px;
  gap: 4px;
}

.pos-tender-row strong {
  display: grid;
  gap: 2px;
  color: #24475f;
  line-height: 1.15;
}

.pos-tender-row strong small {
  color: #6b7f8f;
  font-size: 10px;
  font-weight: 600;
}

.pos-tender-row input {
  min-width: 0;
}

.pos-tender-row button.small {
  width: 100%;
  min-width: 0;
  padding: 0 2px;
  font-size: 11px;
}

.pos-gift-card-ledger,
.gift-card-guide {
  display: grid;
  gap: 10px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.gift-card-guide article h4 {
  margin: 0;
  color: #23445e;
  font-size: 13px;
}

.gift-card-guide article p {
  color: #38566d;
  line-height: 1.45;
}

.invoice-line-header,
.invoice-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 80px 110px 110px;
  gap: 6px;
}

.invoice-line-header.with-tax,
.invoice-line.with-tax {
  grid-template-columns: minmax(220px, 1fr) 80px 110px 110px 76px;
}

.tax-line-check {
  align-self: center;
  justify-content: center;
  min-height: 30px;
  white-space: nowrap;
}

.bill-line-header,
.bill-line {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) 80px 100px 100px;
  gap: 6px;
}

.ap-check-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
}

.ap-check-panel h3 {
  margin: 0;
}

.check-run-form {
  grid-template-columns: 150px minmax(230px, 1fr) 150px;
}

.invoice-line-header,
.bill-line-header,
.line-header {
  color: #334f64;
  font-size: 11px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 180px;
  gap: 7px;
}

label {
  display: grid;
  gap: 3px;
  color: #425a6d;
  font-size: 12px;
}

.line-header,
.entry-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px 130px;
  gap: 7px;
  align-items: center;
}

.journal-form .form-grid {
  grid-template-columns: 150px minmax(280px, 1fr) 180px;
}

.journal-form {
  max-width: 920px;
  display: grid;
  gap: 10px;
}

.journal-lines {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid #c8d6e1;
  background: #f8fbfe;
}

.save-note {
  min-height: 24px;
  display: flex;
  align-items: center;
  color: #245f3d;
  font-weight: 700;
}

.save-note.inline {
  min-height: 0;
}

.check.inline {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 5px;
}

.form-actions,
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check input,
.permission input {
  width: auto;
  min-height: auto;
}

.balance-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.balance-status.good {
  color: #1d6d3c;
}

.balance-status.bad {
  color: #8a3131;
}

.user-list {
  display: grid;
  gap: 8px;
}

.user-summary-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 0.9fr) minmax(150px, 1fr) 90px auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #a8b9c6;
  background: linear-gradient(#ffffff, #eef5fa);
}

.status-pill {
  width: max-content;
  min-width: 64px;
  padding: 3px 7px;
  border-radius: 3px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.status-pill.active {
  color: #1f5a38;
  background: #e7f4eb;
  border: 1px solid #95bd9c;
}

.status-pill.inactive {
  color: #6d4a1e;
  background: #f4ecdb;
  border: 1px solid #c7aa75;
}

.profile-form {
  max-width: 760px;
  display: grid;
  gap: 8px;
  border: 1px solid #91aabd;
  border-radius: 3px;
  padding: 10px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.profile-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9e3eb;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card span {
  color: #5d7282;
  font-size: 12px;
}

.large-avatar {
  width: 40px;
  height: 40px;
}

.profile-grid,
.profile-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.profile-password-grid {
  padding-top: 8px;
  border-top: 1px solid #d9e3eb;
}

.data-tabs {
  margin-bottom: 8px;
}

.data-center-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 10px;
  align-items: start;
}

.data-panel {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #8ea8bd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f4f9fd);
  box-shadow: inset 0 1px 0 #fff;
}

.data-panel.wide {
  grid-column: 1 / -1;
}

.csv-paste-box {
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.bulk-edit-bar,
.report-builder-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 7px;
  align-items: end;
}

.report-builder-bar {
  grid-template-columns: 180px minmax(220px, 1fr) auto auto;
}

.report-column-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border: 1px solid #c4d4df;
  background: #fff;
}

.report-column-picker label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid #d5e1ea;
  background: #f8fbfe;
  font-size: 12px;
}

.report-column-picker input {
  width: auto;
  min-height: auto;
}

.export-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 8px;
}

.export-package-button {
  min-height: 76px;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: left;
}

.export-package-button strong,
.export-package-button span {
  display: block;
}

.export-package-button span {
  color: #5d7282;
  font-size: 12px;
}

.user-row {
  display: grid;
  gap: 8px;
}

.user-row-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.permission-panel {
  display: block;
}

.permission-panel summary {
  width: max-content;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #7c93a8;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #e8f0f6);
  cursor: pointer;
  font-weight: 700;
}

.permission-panel[open] summary {
  margin-bottom: 8px;
}

.help-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(360px, 1fr) minmax(230px, 300px);
  gap: 10px;
  align-items: start;
}

.help-rail,
.help-side,
.help-panel,
.guide-detail,
.help-admin-panel {
  min-width: 0;
  border: 1px solid #91aabd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f3f8fc);
  box-shadow: inset 0 1px 0 #fff;
}

.help-rail,
.guide-detail,
.help-side,
.help-panel,
.help-admin-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.help-search-box {
  display: grid;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d5e0e8;
}

.help-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.help-category-strip button {
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.help-category-strip button.active {
  color: #fff;
  border-color: #1b5f91;
  background: linear-gradient(#3d91c6, #1d6498);
}

.guide-list {
  display: grid;
  gap: 6px;
}

.guide-list button {
  display: grid;
  justify-items: start;
  min-height: 48px;
  padding: 7px 8px;
  text-align: left;
  line-height: 1.2;
}

.guide-list button.active {
  color: #fff;
  border-color: #1f5f91;
  background: linear-gradient(#5d97c5, #2e6f9f);
}

.guide-list span {
  color: #5f7282;
  font-size: 11px;
}

.guide-list button.active span {
  color: #dceaf5;
}

.guide-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 10px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid #d5e0e8;
}

.guide-title-row h3 {
  margin: 0 0 4px;
  color: #17374e;
  font-size: 19px;
}

.guide-title-row p,
.guide-section {
  color: #38566d;
  line-height: 1.4;
}

.guide-section {
  display: grid;
  gap: 7px;
}

.guide-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps li {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #d4e0e8;
  background: #fff;
}

.guide-steps li::before {
  content: counter(guide-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  border-radius: 3px;
  background: linear-gradient(#5d97c5, #2e6f9f);
  font-size: 12px;
  font-weight: 700;
}

.guide-field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 7px;
}

.guide-field-list div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid #d4e0e8;
  background: #fff;
}

.guide-field-list span {
  color: #5b7182;
  font-size: 12px;
}

.help-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
}

.help-actions button {
  justify-content: flex-start;
  text-align: left;
}

.help-empty {
  padding: 12px;
  color: #607789;
  border: 1px dashed #b7c6d2;
  background: #fff;
}

.help-support summary,
.help-admin-panel summary {
  cursor: pointer;
  color: #24475f;
  font-weight: 700;
}

.issue-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
}

.issue-description textarea {
  min-height: 88px;
  resize: vertical;
}

.help-status {
  gap: 6px;
}

.help-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #dbe5ec;
}

.help-status-row:last-child {
  border-bottom: 0;
}

.help-status-row span {
  color: #5a7082;
  font-size: 12px;
}

.help-status-row strong {
  max-width: 140px;
  overflow: hidden;
  color: #1e3d54;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-admin-panel {
  margin-top: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.feature-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #a8b9c6;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #eef5fa);
}

.feature-tile strong,
.feature-tile span {
  display: block;
}

.feature-tile span,
.feature-tile small,
.feature-metric small {
  color: #5d7282;
  font-size: 12px;
}

.feature-metric {
  min-height: 90px;
  display: grid;
  gap: 3px;
}

.module-tabs {
  margin-bottom: 10px;
}

.explainer {
  padding: 9px 10px;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: #fff;
  color: #3b5265;
  font-weight: 600;
}

.integration-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.report-tabs {
  margin: 8px 0 10px;
}

.report-section {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.report-section h3 {
  margin-bottom: 0;
}

.quick-task-layout {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.quick-task-list,
.quick-task-panel {
  min-width: 0;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: #fff;
}

.quick-task-list {
  padding: 10px 8px;
}

.quick-task-list h3 {
  padding: 0 6px 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid #dbe5ec;
}

.quick-task {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 4px 8px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.quick-task:hover,
.quick-task.active {
  background: #e9f3fb;
}

.quick-star {
  width: 22px;
  color: #697986;
  font-size: 23px;
  line-height: 1;
}

.quick-task-panel {
  padding: 10px;
}

.statement-panel,
.tax-panel {
  display: grid;
  gap: 10px;
}

.service-workspace {
  display: grid;
  gap: 10px;
}

.service-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid #a4b8c7;
  border-radius: 3px;
  background: linear-gradient(#f9fcff, #e7f0f7);
}

.service-toolbar input {
  flex: 1 1 220px;
}

.service-toolbar select {
  flex: 0 1 210px;
}

.hidden-file-input {
  display: none;
}

.service-edit-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: #fff;
}

.service-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
}

.service-form-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #40596b;
  font-size: 12px;
  font-weight: 600;
}

.service-form-grid .wide {
  grid-column: 1 / -1;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 9px;
}

.service-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: #fff;
}

.service-card-head,
.service-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.service-card-actions {
  display: flex;
  justify-content: flex-end;
}

.service-card-head strong {
  min-width: 0;
  color: #183b55;
  font-size: 14px;
}

.service-card-head span,
.service-card-foot span,
.service-card-meta,
.service-card-note {
  color: #5a7080;
  font-size: 12px;
}

.service-card-meta,
.service-card-note {
  min-height: 18px;
}

.service-rate-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.service-rate-row span {
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #d5e1ea;
  border-radius: 2px;
  color: #536879;
  background: #f8fbfe;
}

.service-rate-row strong {
  color: #163a52;
}

.service-margin.good strong {
  color: #27643f;
}

.service-margin.bad strong {
  color: #8c3328;
}

.tax-review-list {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d2dde6;
  background: #f8fbfe;
}

.review-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-check input {
  width: auto;
  min-height: auto;
}

.integration-card,
.report-panel,
.calendar-board,
.calendar-agenda {
  min-width: 0;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f2f7fb);
  box-shadow: inset 0 1px 0 #fff;
}

.integration-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
}

.integration-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.integration-card strong,
.integration-card span {
  display: block;
}

.integration-card span {
  color: #5d7282;
  font-size: 12px;
  text-align: right;
}

.integration-card p,
.report-panel p {
  color: #445d70;
  line-height: 1.35;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  margin: 10px 0;
  border: 1px solid #91aabd;
  background: linear-gradient(#ffffff, #e5f0f8);
}

.calendar-nav,
.calendar-mode,
.agenda-head {
  display: flex;
  align-items: center;
  gap: 5px;
}

.calendar-nav .icon-button {
  width: 30px;
  min-width: 30px;
  padding: 0;
  font-weight: 800;
}

.calendar-mode {
  overflow: hidden;
  border: 1px solid #7c93a8;
  border-radius: 3px;
  background: #fff;
}

.calendar-mode button,
.calendar-mode input {
  min-height: 26px;
  border: 0;
  border-right: 1px solid #b9c7d2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.calendar-mode input {
  width: 132px;
  padding: 0 6px;
  color: #16384f;
}

.calendar-mode button:last-child,
.calendar-mode input:last-child {
  border-right: 0;
}

.calendar-mode button.active {
  color: #fff;
  background: linear-gradient(#5d97c5, #2e6f9f);
  font-weight: 700;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(240px, 320px);
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-board {
  padding: 9px;
}

.calendar-title {
  min-width: 0;
  color: #14364f;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 6px 5px;
  color: #4f687b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #c5d3de;
  border-bottom: 0;
  background: linear-gradient(#f8fbfe, #dfeaf2);
}

.calendar-day {
  position: relative;
  min-height: 104px;
  padding: 5px;
  border: 1px solid #c5d3de;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.calendar-day.outside {
  color: #879aaa;
  background: #f2f6f9;
}

.calendar-day.today {
  outline: 2px solid #2f78ad;
  outline-offset: -2px;
}

.calendar-day.selected-range {
  background: #eef7ff;
}

.calendar-day.selected-range .calendar-date {
  border-radius: 3px;
  background: #2f78ad;
  color: #fff;
}

.calendar-date {
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: #1f4059;
  font-weight: 700;
}

.day-add-reminder {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 21px;
  max-width: calc(100% - 38px);
  padding: 0 5px;
  opacity: 0;
  pointer-events: none;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.calendar-day:hover .day-add-reminder,
.calendar-day:focus-within .day-add-reminder {
  opacity: 1;
  pointer-events: auto;
}

.calendar-events {
  display: grid;
  gap: 3px;
}

.calendar-event,
.calendar-more {
  display: block;
  min-width: 0;
  padding: 2px 5px;
  border-radius: 2px;
  color: #183247;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #e7f1f8;
  border-left: 3px solid #5d97c5;
}

.calendar-event {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 2px;
}

.calendar-event-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-remove {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: #6c1e1e;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.calendar-event-remove:hover {
  color: #fff;
  background: #9b3e3e;
}

.calendar-confirm {
  display: flex;
  min-width: 0;
  width: 100%;
  align-items: center;
  gap: 3px;
}

.calendar-confirm span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event.invoice {
  border-left-color: #2f78ad;
}

.calendar-event.order {
  border-left-color: #7d8b2f;
  background: #f2f4de;
}

.calendar-event.payroll {
  border-left-color: #7e5aa7;
  background: #eee8f5;
}

.calendar-event.recurring {
  border-left-color: #b05a32;
  background: #f7eee6;
}

.calendar-event.banking,
.calendar-event.reconcile {
  border-left-color: #39815c;
  background: #e8f4ed;
}

.calendar-more {
  margin-top: 3px;
  color: #5b6f7e;
  background: transparent;
  border-left-color: transparent;
}

.calendar-agenda {
  padding: 9px;
}

.agenda-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.agenda-head h3 {
  margin-bottom: 0;
}

.reminder-form {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.reminder-form.quick {
  grid-template-columns: 1fr;
  padding: 8px;
  border: 1px solid #9eb4c5;
  background: #fff;
}

.reminder-form.quick strong {
  color: #24475f;
}

.recurring-form {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d2dde6;
}

.recurring-form h3 {
  margin: 0;
}

.agenda-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: center;
  padding: 7px 8px;
  margin-bottom: 6px;
  border-left: 4px solid #5d97c5;
  background: #fff;
}

.agenda-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.agenda-delete {
  display: flex;
  justify-content: flex-end;
  min-width: 28px;
}

.agenda-delete .reminder-remove {
  width: 26px;
  min-width: 26px;
  padding: 0;
  font-weight: 700;
}

.agenda-confirm {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6c1e1e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.agenda-row.order {
  border-left-color: #7d8b2f;
}

.agenda-row.payroll {
  border-left-color: #7e5aa7;
}

.agenda-row.recurring {
  border-left-color: #b05a32;
}

.agenda-row.banking,
.agenda-row.reconcile {
  border-left-color: #39815c;
}

.agenda-row small {
  color: #607789;
}

.report-panel {
  padding: 10px;
}

.report-lines {
  display: grid;
  gap: 7px;
}

.report-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dbe5ec;
}

.report-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.report-line span {
  min-width: 0;
  color: #4f6678;
}

.bar-list {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  gap: 4px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #273f52;
  font-size: 12px;
}

.bar-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  border: 1px solid #a7bac8;
  background: #edf3f7;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f78ad, #74a845);
}

.watch-number {
  color: #14364f;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.watch-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #d5e0e8;
}

.watch-row span {
  color: #607789;
}

.empty-card {
  padding: 9px;
  color: #607789;
  border: 1px dashed #b7c6d2;
  background: #fff;
}

.schema-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #9eb4c5;
  border-radius: 3px;
  background: #fff;
}

.schema-toolbar span {
  color: #526c7f;
  font-weight: 700;
}

.schema-list {
  display: grid;
  gap: 10px;
}

.schema-table {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid #8ea8bd;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #f2f7fb);
}

.schema-table h3 {
  margin: 0;
  font-size: 14px;
}

.proposed-schema {
  border-style: dashed;
}

.schema-purpose {
  color: #41586a;
  font-weight: 600;
}

.time-form {
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) 150px 110px auto auto;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row span {
  color: #5d7282;
  font-size: 12px;
  margin-top: 2px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 6px;
}

.permission {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #a8b9c6;
  border-radius: 3px;
  padding: 6px;
  background: #fff;
}

.permission.allowed {
  background: #eef6ed;
  border-color: #96b992;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(#d8e8f5, #8aa9c2);
  padding: 24px;
}

.login-panel {
  width: min(410px, 100%);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.login-panel form {
  display: grid;
  gap: 10px;
}

.brand.large {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.brand-mark {
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #7f9ab0;
  border-radius: 3px;
  background: linear-gradient(#fffbe7, #d6b25e);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #5f7282;
}

.login-field {
  display: grid;
  gap: 4px;
  color: #17344a;
  font-size: 12px;
  font-weight: 700;
}

.login-field input {
  font-weight: 400;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.password-row input {
  min-width: 0;
}

.password-row button {
  min-width: 58px;
}

.login-divider {
  height: 1px;
  margin: 2px 0;
  background: #bfd0dc;
}

.link-button {
  width: max-content;
  padding: 0;
  border: 0;
  color: #175e92;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  text-align: left;
}

.link-button:hover {
  color: #0f4167;
  text-decoration: underline;
  background: transparent;
}

.recovery-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #9fb4c5;
  border-radius: 3px;
  background: #f8fbfe;
}

.login-hint {
  margin: 0;
  color: #526a7b;
  font-size: 12px;
  line-height: 1.35;
}

.login-hint.warning {
  color: #8b5a00;
  font-weight: 700;
}

.error,
.toast {
  color: #812727;
}

.toast {
  position: fixed;
  right: 16px;
  top: 44px;
  z-index: 10;
  border: 1px solid #9aaec0;
  border-left: 4px solid #d6b25e;
  border-radius: 3px;
  background: #fff;
  padding: 9px 11px;
  box-shadow: 0 8px 22px rgba(34, 58, 78, 0.18);
}

.save-pulse {
  position: fixed;
  right: 16px;
  top: 92px;
  z-index: 10;
  display: grid;
  gap: 2px;
  min-width: 190px;
  border: 1px solid #83a889;
  border-left: 4px solid #39815c;
  border-radius: 3px;
  background: #f5fff7;
  padding: 8px 10px;
  color: #24543a;
  box-shadow: 0 8px 22px rgba(34, 58, 78, 0.14);
}

.save-pulse span {
  color: #587064;
  font-size: 12px;
}

.admin-reset-panel {
  border: 1px solid #c5a35d;
  border-radius: 3px;
  padding: 10px;
  background: #fff8e8;
}

.record-drawer {
  position: fixed;
  top: 28px;
  right: 0;
  bottom: 0;
  z-index: 900;
  width: min(390px, 92vw);
  overflow-y: auto;
  border-left: 1px solid #6d8294;
  background: linear-gradient(#ffffff, #eef5fa);
  box-shadow: -8px 0 24px rgba(32, 52, 68, 0.24);
  padding: 12px;
}

.record-drawer-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid #cfdae3;
}

.record-drawer-head h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.record-drawer-head p {
  color: #61778a;
}

.record-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.drawer-section {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d8e2ea;
}

.drawer-row,
.attachment-preview,
.audit-preview {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid #d5e1ea;
  background: #fff;
}

.drawer-row {
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
}

.drawer-row span,
.attachment-preview span,
.audit-preview span,
.audit-preview small {
  color: #5f7282;
  font-size: 12px;
}

@media (max-width: 980px) {
  .app-frame {
    padding-top: var(--menu-bar-height);
  }

  .classic-menu {
    overflow-x: auto;
    flex-wrap: nowrap;
    min-height: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .data-center-grid,
  .export-package-grid,
  .bulk-edit-bar,
  .report-builder-bar {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .period-toggle {
    width: max-content;
    max-width: 100%;
  }

  .sidebar {
    height: auto;
    max-height: none;
    position: static;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #6d8294;
  }

  nav,
  .metrics,
  .home-dashboard,
  .dashboard-chart-grid,
  .donut-layout,
  .toolbar-form,
  .customer-grid,
  .address-columns,
  .address-grid,
  .form-grid,
  .line-header,
  .entry-line,
  .permission-grid,
  .item-form,
  .tax-form,
  .profile-form,
  .invoice-line-header,
  .invoice-line,
  .bill-line-header,
  .bill-line,
  .check-run-form,
  .user-summary-row,
  .user-row-header,
  .help-shell,
  .help-actions,
  .guide-title-row,
  .custom-field-entity-picker,
  .calendar-summary,
  .calendar-toolbar,
  .reminder-form,
  .integration-grid,
  .report-grid,
  .quick-task-layout,
  .smoke-panel-grid,
  .smoke-receiving-layout,
  .pos-register-grid,
  .pos-scan-row,
  .pos-scan-row + .pos-scan-row,
  .pos-gift-card-issue,
  .pos-tender-row {
    grid-template-columns: 1fr;
  }

  .calendar-title {
    text-align: left;
  }

  .chart-panel.wide {
    grid-column: auto;
  }

  .home-bar-row {
    grid-template-columns: 1fr;
  }

  .calendar-board {
    overflow-x: auto;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 700px;
  }

  .tab-strip button.utility {
    margin-left: 0;
  }

  .profile-card {
    grid-column: auto;
  }

  .smoke-restock-panel,
  .smoke-receiving-cart,
  .smoke-recent-receiving {
    grid-column: auto;
    grid-row: auto;
  }
}

@container (max-width: 900px) {
  .pos-register-grid {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 380px) {
  .pos-register-meta label.wide {
    grid-column: auto;
  }

  .pos-tender-row {
    grid-template-columns: 1fr 1fr;
  }

  .pos-tender-row strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-agenda {
    order: -1;
  }
}

@media print {
  body {
    background: #fff;
  }

  .classic-menu,
  .sidebar,
  .topbar,
  .toast,
  .section-actions,
  .tab-strip,
  .status-filter,
  button {
    display: none !important;
  }

  .app-frame,
  .app-shell,
  main {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #fff;
  }

  main {
    padding: 0;
  }

  section {
    display: block;
  }

  .metric,
  .table-wrap,
  .chart-panel,
  .home-hero-panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
