.mbk-shell {
  --mbk-ink: #173b2c;
  --mbk-muted: #52665b;
  --mbk-border: #d5e3da;
  --mbk-panel: #ffffff;
  --mbk-bg: #f3f7f4;
  --mbk-accent: #216e49;
  --mbk-accent-soft: #e6f2e9;
  --mbk-nav: #164b35;
  position: relative;
  isolation: isolate;
  z-index: 0;
  color: var(--mbk-ink);
  background: var(--mbk-bg);
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
}
.mbk-workspace-page {
  background: #f3f7f4;
}
/* Sela sets the root to 10px, shrinking any rem-based Bookkeeper content. */
html:has(body.mbk-workspace-page) {
  font-size: 16px;
}
/* Themes such as Sela constrain the entire page before Bookkeeper's shell. */
body.mbk-workspace-page #page,
body.mbk-workspace-page #content,
body.mbk-workspace-page .content-wrapper,
body.mbk-workspace-page #primary {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body.mbk-workspace-page #tertiary {
  display: none !important;
}
/* Only the Bookkeeper page loses theme chrome; report/modal headers stay visible. */
body.mbk-headers-hidden .site-header,
body.mbk-headers-hidden #masthead,
body.mbk-headers-hidden .titlebar,
body.mbk-headers-hidden .entry-header,
body.mbk-headers-hidden .wp-block-post-title,
body.mbk-headers-hidden #wpadminbar {
  display: none !important;
}
html:has(body.mbk-headers-hidden) {
  margin-top: 0 !important;
}
.mbk-workspace-page .site-content,
.mbk-workspace-page .content-area,
.mbk-workspace-page .site-main,
.mbk-workspace-page #main.site-main,
.mbk-workspace-page .entry-content,
.mbk-workspace-page .container:has(.mbk-shell),
.mbk-workspace-page .row:has(.mbk-shell),
.mbk-workspace-page article:has(.mbk-shell) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}
.mbk-workspace-page .entry-content > .mbk-shell,
.mbk-workspace-page #mbk-app {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
}
/* WordPress may wrap a shortcode in a paragraph before its block markup. */
.mbk-workspace-page .entry-content > p[data-sd-block-type="core/shortcode"]:has(+ .mbk-shell) {
  margin: 0;
}
#mbk-app {
  padding: 0;
  min-height: 100vh;
}
#mbk-app > .mbk-header {
  padding: 16px 32px 20px;
  margin: 0;
  align-items: center;
}
.mbk-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.mbk-brand > div {
  min-width: 0;
}
.mbk-brand-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
}
#mbk-app > .mbk-view {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.mbk-shell h1,
.mbk-shell h2,
.mbk-shell h3 {
  color: var(--mbk-ink);
  font-family: inherit;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: none;
}
.mbk-shell h2 {
  font-size: 21px;
}
.mbk-shell :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #478662;
  outline-offset: 3px;
}
.mbk-shell :is(input, select, textarea) {
  accent-color: var(--mbk-accent);
}
.mbk-shell button {
  text-transform: none;
  letter-spacing: normal;
}
.mbk-shell button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.mbk-shell *,
.mbk-shell *::before,
.mbk-shell *::after {
  box-sizing: border-box;
}
.mbk-view,
.mbk-settings,
.mbk-detail,
.mbk-dashboard-section,
.mbk-filing-center,
.mbk-modal,
.mbk-form,
.mbk-split {
  min-width: 0;
}
.mbk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.mbk-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.mbk-header p {
  margin: 4px 0 0;
  color: var(--mbk-muted);
}
.mbk-pill {
  border: 1px solid var(--mbk-border);
  background: #eef8f6;
  color: #115e59;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.mbk-pill-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mbk-login-shell {
  display: grid;
  place-items: center;
  min-height: 360px;
}
.mbk-login-panel {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 22px;
}
.mbk-login-panel h1 {
  margin: 0 0 6px;
}
.mbk-login-panel p {
  margin: 0 0 16px;
  color: var(--mbk-muted);
}
.mbk-login-panel label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--mbk-muted);
}
.mbk-login-panel input[type="text"],
.mbk-login-panel input[type="password"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  padding: 8px;
}
.mbk-login-panel .login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mbk-login-panel .button {
  border: 0;
  border-radius: 6px;
  background: var(--mbk-accent);
  color: #fff;
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
}
.mbk-public-body {
  margin: 0;
  background: #eceff3;
}
.mbk-vendor-portal {
  width: min(1120px, calc(100vw - 32px));
  margin-left: auto !important;
  margin-right: auto !important;
}
.mbk-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.mbk-public-form-panel,
.mbk-public-preview-panel,
.mbk-filing-center {
  background: #fff;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 16px;
}
.mbk-tax-form-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}
.mbk-tax-form-preview div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.mbk-tax-form-preview div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mbk-tax-form-preview span {
  color: var(--mbk-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mbk-tax-form-preview strong {
  overflow-wrap: anywhere;
}
.mbk-alert {
  margin: 12px 0;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #0ea5e9;
  border-radius: 6px;
  background: #eff6ff;
  padding: 12px 14px;
}
.mbk-alert-success {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  background: #f0fdf4;
}
.mbk-alert-error {
  border-color: #fecdd3;
  border-left-color: #e11d48;
  background: #fff1f2;
}
.mbk-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}
.mbk-checkbox input {
  width: auto !important;
  margin-top: 3px;
}
.mbk-tabs {
  display: flex;
  gap: 4px;
  overflow: visible;
  align-items: center;
  border-bottom: 1px solid #123f2d;
  background: var(--mbk-nav);
  padding: 8px 32px;
  margin: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}
.mbk-tabs button,
.mbk-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--mbk-ink);
  padding: 9px 12px;
  min-height: 38px;
  cursor: pointer;
  font: inherit;
}
.mbk-tabs button {
  border-radius: 6px;
  color: #f5faf6;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
}
body.admin-bar:not(.mbk-headers-hidden) .mbk-tabs {
  top: 32px;
}
.mbk-tabs button:hover {
  background: #286046;
}
.mbk-tabs button:focus-visible {
  outline-color: #c5e8ce;
}
.mbk-tab-menu {
  position: relative;
  display: inline-flex;
}
.mbk-tab-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 210px;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 59, 44, 0.14);
}
.mbk-tab-menu.open .mbk-tab-menu-panel:not([hidden]) {
  display: grid;
}
.mbk-tab-menu-panel button {
  width: 100%;
  text-align: left;
  border-radius: 4px;
  color: var(--mbk-ink);
}
.mbk-tab-menu-panel button:hover,
.mbk-tab-menu-panel button.active {
  background: var(--mbk-accent-soft);
  color: var(--mbk-ink);
}
.mbk-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 6px;
}
[aria-expanded="true"] > .mbk-chevron {
  transform: translateY(2px) rotate(225deg);
}
.mbk-button {
  border-radius: 6px;
}
.mbk-button {
  background: var(--mbk-accent);
  color: #fff;
}
.mbk-tabs > button.active,
.mbk-tab-menu > button.active {
  background: #d9efde;
  color: #123f2d;
}
.mbk-button:hover:not(:disabled) {
  background: var(--mbk-nav);
}
.mbk-secondary:hover:not(:disabled),
.mbk-link:hover:not(:disabled),
.mbk-icon:hover:not(:disabled) {
  background: var(--mbk-accent-soft);
}
.mbk-secondary,
.mbk-link,
.mbk-icon,
.mbk-danger {
  border: 1px solid var(--mbk-border);
  background: #fff;
  color: var(--mbk-ink);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 36px;
  cursor: pointer;
  font: inherit;
}
.mbk-danger {
  border-color: #fecdd3;
  color: #b91c1c;
}
.mbk-danger:hover {
  background: #fff1f2;
}
.mbk-link {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--mbk-accent);
}
.mbk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
}
.mbk-edit-icon {
  font-size: 22px;
  line-height: 1;
}
.mbk-save.ready,
.mbk-save:not(:disabled) {
  background: #15803d;
  color: #fff;
}
.mbk-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mbk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.mbk-view > .mbk-grid:first-child {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.mbk-dashboard-ledger {
  grid-column: span 2;
}
.mbk-card {
  background: var(--mbk-panel);
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-wrap: anywhere;
}
.mbk-card.mbk-dashboard-ledger {
  border-color: #b4d0bf;
  background: #f0f8f2;
}
.mbk-card strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.mbk-card.mbk-dashboard-ledger strong {
  font-size: clamp(30px, 3vw, 40px);
}
.mbk-card small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mbk-muted);
}
.mbk-card[data-dashboard-filter] {
  cursor: pointer;
  box-shadow: none;
}
.mbk-card[data-dashboard-filter]:hover {
  border-color: var(--mbk-accent);
  background: #f8fcf9;
}
.mbk-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mbk-subtabs button {
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  background: #fff;
  color: var(--mbk-ink);
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.mbk-subtabs button.active {
  border-color: var(--mbk-accent);
  background: var(--mbk-accent-soft);
  color: var(--mbk-ink);
}
.mbk-dashboard-section {
  margin-top: 18px;
}
.mbk-dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}
.mbk-chart-wrap {
  background: #fff;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 14px;
}
.mbk-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mbk-panel);
  border: 1px solid var(--mbk-border);
}
.mbk-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mbk-table-wrap .mbk-table {
  min-width: 720px;
}
.mbk-table th,
.mbk-table td {
  padding: 10px;
  border-bottom: 1px solid var(--mbk-border);
  text-align: left;
  vertical-align: top;
}
.mbk-table th {
  background: #eaf2ed;
  font-weight: 650;
}
.mbk-sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 0;
  text-align: left;
}
.mbk-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  background: var(--mbk-panel);
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.mbk-form label {
  display: grid;
  gap: 5px;
  color: var(--mbk-muted);
  font-size: 13px;
}
.mbk-form input,
.mbk-form select,
.mbk-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  color: var(--mbk-ink);
  background: #fff;
}
.mbk-form input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--mbk-accent);
}
.mbk-shell input[type="text"],
.mbk-shell input[type="email"],
.mbk-shell input[type="url"],
.mbk-shell input[type="password"],
.mbk-shell input[type="search"],
.mbk-shell input[type="number"],
.mbk-shell input[type="tel"],
.mbk-shell input[type="range"],
.mbk-shell input[type="date"],
.mbk-shell input[type="month"],
.mbk-shell input[type="week"],
.mbk-shell input[type="time"],
.mbk-shell input[type="datetime"],
.mbk-shell input[type="datetime-local"],
.mbk-shell input[type="color"],
.mbk-shell textarea {
  margin: 0;
}
.mbk-form textarea {
  min-height: 90px;
  grid-column: 1 / -1;
}
.mbk-filterbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  background: var(--mbk-panel);
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.mbk-filterbar button {
  align-self: end;
}
.mbk-filterbar-hidden {
  display: none;
}
.mbk-secondary.active,
.mbk-icon.active {
  border-color: var(--mbk-accent);
  background: #eef8f6;
  color: #115e59;
}
.mbk-filterbar label,
.mbk-toggle {
  display: grid;
  gap: 5px;
  color: var(--mbk-muted);
  font-size: 13px;
}
.mbk-filterbar input,
.mbk-filterbar select {
  min-height: 36px;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  padding: 7px;
  font: inherit;
}
.mbk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
}
.mbk-wide {
  grid-column: 1 / -1;
}
.mbk-budget-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr);
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.mbk-form-error {
  flex: 1 1 100%;
}
.mbk-form-error:empty {
  display: none;
}
.mbk-amount-field {
  max-width: 180px;
}
.mbk-deposit-splits {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.mbk-deposit-splits[hidden] {
  display: none;
}
.mbk-split-lines {
  display: grid;
  gap: 8px;
}
.mbk-split-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px minmax(150px, 220px) 92px;
  gap: 8px;
  align-items: end;
}
.mbk-split-line-no-fund {
  grid-template-columns: minmax(220px, 1fr) 120px 92px;
}
.mbk-split-line label {
  min-width: 0;
}
.mbk-split-amount-field input {
  text-align: right;
}
.mbk-split-total {
  color: var(--mbk-muted);
  font-size: 13px;
}
.mbk-split-total #mbk-split-warning {
  display: inline-block;
  margin-left: 12px;
  color: #b91c1c;
  font-weight: 650;
}
.mbk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mbk-toolbar-start {
  justify-content: flex-start;
}
.mbk-toolbar-actions,
.mbk-button-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.mbk-toolbar h2 {
  margin: 0;
}
.mbk-toolbar h3 {
  margin: 0;
}
.mbk-report-total {
  font-weight: 750;
}
.mbk-report-child {
  display: inline-block;
  padding-left: 24px;
}
.mbk-table tr.mbk-parent-row td {
  font-weight: 650;
}
.mbk-table tr.mbk-parent-row .mbk-report-money {
  font-weight: 400;
}
.mbk-report-money.mbk-negative,
.mbk-report-money.mbk-positive {
  font-weight: 400;
}
.mbk-table tr.mbk-total-row td {
  font-weight: 750;
}
.mbk-table tr.mbk-total-row .mbk-report-money {
  font-weight: 750;
}
.mbk-table tr.mbk-net-row td {
  background: #eef1f5;
  font-weight: 850;
}
.mbk-table tr.mbk-net-row .mbk-report-money {
  font-weight: 850;
}
.mbk-pl-table {
  border: 1px solid var(--mbk-border);
}
.mbk-pl-table th,
.mbk-pl-table td {
  border-bottom: 0;
}
.mbk-pl-table th {
  border-bottom: 1px solid var(--mbk-border);
}
.mbk-pl-table .mbk-pl-amount {
  text-align: right;
  white-space: nowrap;
}
.mbk-pl-label {
  display: inline-block;
}
.mbk-pl-indent-1 {
  padding-left: 20px;
}
.mbk-pl-indent-2 {
  padding-left: 42px;
}
.mbk-pl-table tr.mbk-pl-section-row td {
  border-top: 2px solid #c8ced8;
  background: #fff;
  font-weight: 400;
  text-transform: uppercase;
}
.mbk-pl-table tr.mbk-parent-row td {
  background: #fff;
  font-weight: 750;
}
.mbk-pl-table tr.mbk-total-row td {
  background: #f3f4f6;
  font-weight: 750;
}
.mbk-pl-table tr.mbk-total-row .mbk-report-money {
  font-weight: 750;
}
.mbk-pl-table tr.mbk-net-row td {
  border-top: 2px solid #aeb6c2;
  background: #e5e7eb;
  font-weight: 850;
}
.mbk-pl-table tr.mbk-net-row .mbk-report-money {
  font-weight: 850;
}
.mbk-bs-table .mbk-bs-amount {
  text-align: right;
  white-space: nowrap;
}
.mbk-bs-label {
  display: inline-block;
}
.mbk-bs-indent-1 {
  padding-left: 20px;
}
.mbk-bs-indent-2 {
  padding-left: 42px;
}
.mbk-bs-table tr.mbk-bs-section-row td {
  border-top: 2px solid #c8ced8;
  background: #fff;
  font-weight: 400;
  text-transform: uppercase;
}
.mbk-bs-table tr.mbk-total-row td {
  background: #f3f4f6;
  font-weight: 750;
}
.mbk-bs-table tr.mbk-total-row .mbk-report-money,
.mbk-bs-table tr.mbk-net-row .mbk-report-money {
  font-weight: inherit;
}
.mbk-tb-table .mbk-tb-amount {
  text-align: right;
  white-space: nowrap;
}
.mbk-tb-label {
  display: inline-block;
}
.mbk-tb-indent-1 {
  padding-left: 20px;
}
.mbk-tb-indent-2 {
  padding-left: 42px;
}
.mbk-tb-indent-3 {
  padding-left: 64px;
}
.mbk-tb-table tr.mbk-parent-row td {
  background: #fff;
  font-weight: 750;
}
.mbk-tb-table tr.mbk-parent-row .mbk-report-money {
  font-weight: inherit;
}
.mbk-split {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 16px;
}
.mbk-side-list {
  display: grid;
  gap: 6px;
  align-content: start;
}
.mbk-side-list button {
  text-align: left;
  border: 1px solid var(--mbk-border);
  background: #fff;
  color: var(--mbk-ink);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
}
.mbk-side-list button.active {
  border-color: var(--mbk-accent);
  background: #eef8f6;
  color: #115e59;
}
#mbk-app .mbk-side-list .mbk-side-add,
#mbk-app .mbk-side-list .mbk-scheduled-report-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
#mbk-app .mbk-side-list .mbk-scheduled-report-button {
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.2);
}
.mbk-reconciliation-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  background: #f8fafc;
}
.mbk-reconciliation-balance strong {
  font-size: 22px;
  color: var(--mbk-ink);
}
.mbk-reconciliation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.mbk-reconciliation-summary .mbk-card {
  min-height: 92px;
}
.mbk-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.mbk-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 210px;
}
.mbk-subsection-toolbar {
  margin-top: 18px;
}
.mbk-subsection-toolbar h3 {
  margin: 0;
}
.mbk-danger-link {
  color: #b91c1c;
}
.mbk-detail {
  min-width: 0;
}
.mbk-report-schedules {
  margin-top: 0;
}
.mbk-preview-box {
  grid-column: 1 / -1;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}
.mbk-review-grid {
  margin-bottom: 12px;
}
.mbk-attachment-list {
  grid-column: 1 / -1;
  max-width: 100%;
  overflow-x: auto;
}
.mbk-attachment-list .mbk-table {
  min-width: 680px;
}
.mbk-attachment-list .mbk-table th:last-child,
.mbk-attachment-list .mbk-table td:last-child {
  min-width: 170px;
}
.mbk-attachment-list .mbk-link {
  margin: 0 4px 4px 0;
}
.mbk-checklist {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.mbk-checklist span {
  display: block;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
}
.mbk-checklist small {
  color: var(--mbk-muted);
}
.mbk-check-pass {
  color: #166534;
}
.mbk-check-fail {
  color: #b91c1c;
}
.mbk-assist-panel {
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.mbk-assist-panel h3 {
  margin: 0 0 6px;
}
.mbk-choice-list {
  display: grid;
  gap: 10px;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 14px;
}
.mbk-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.mbk-lodge-grid,
.mbk-address-grid,
.mbk-officer-row {
  display: grid;
  gap: 12px;
  align-items: end;
}
.mbk-lodge-identity {
  grid-template-columns: minmax(0, 1.4fr) minmax(92px, 0.45fr) minmax(130px, 0.7fr) minmax(80px, 0.36fr) minmax(110px, 0.46fr);
}
.mbk-address-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}
.mbk-address-box {
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  padding: 16px 14px 14px;
  margin: 0;
  background: #fff;
}
.mbk-address-box legend {
  padding: 0 8px;
  color: var(--mbk-ink);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
.mbk-address-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.mbk-address-grid label:nth-child(1) {
  grid-column: 1 / 4;
}
.mbk-address-grid label:nth-child(2) {
  grid-column: 4 / 7;
}
.mbk-address-city {
  grid-column: 1 / 4;
}
.mbk-address-state {
  grid-column: 4 / 5;
}
.mbk-address-zip {
  grid-column: 5 / 7;
}
.mbk-officer-list {
  display: grid;
  gap: 10px;
}
.mbk-officer-row {
  grid-template-columns: 54px minmax(150px, 1fr) minmax(170px, 1.1fr) minmax(180px, 0.9fr);
}
.mbk-officer-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  background: #fff;
}
.mbk-officer-icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.mbk-officer-email-toggle,
.mbk-profile .mbk-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--mbk-border);
  border-radius: 6px;
  background: #fff;
}
.mbk-additional-email {
  max-width: 420px;
}
.mbk-settings {
  display: grid;
  gap: 24px;
}
.mbk-status {
  display: inline-block;
  border: 1px solid var(--mbk-border);
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8fafc;
  font-size: 12px;
}
.mbk-status-button {
  display: inline-block;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef8f6;
  color: #115e59;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.mbk-negative {
  color: #b91c1c;
  font-weight: 650;
}
.mbk-positive {
  color: #166534;
}
.mbk-warning-text {
  color: #92400e;
  font-weight: 650;
}
.mbk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(20, 33, 61, 0.36);
  padding: 16px;
}
.mbk-modal {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--mbk-border);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(20, 33, 61, 0.24);
}
.mbk-modal header,
.mbk-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--mbk-border);
}
.mbk-modal header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.mbk-modal footer {
  justify-content: flex-end;
  border-top: 1px solid var(--mbk-border);
  border-bottom: 0;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.mbk-modal h2 {
  margin: 0;
}
.mbk-modal .mbk-form {
  border: 0;
  margin: 0;
}
.mbk-muted {
  color: var(--mbk-muted);
}
.mbk-nowrap {
  white-space: nowrap;
}
.mbk-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 8px;
  padding: 10px;
}
@media (max-width: 1100px) {
  .mbk-view > .mbk-grid:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 782px) {
  body.admin-bar:not(.mbk-headers-hidden) .mbk-tabs {
    top: 46px;
  }
}
@media (max-width: 720px) {
  #mbk-app > .mbk-view {
    padding: 16px 16px 32px;
  }
  #mbk-app > .mbk-header {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .mbk-brand {
    gap: 12px;
  }
  .mbk-brand-logo {
    width: 48px;
    height: 48px;
  }
  .mbk-brand h1 {
    font-size: 23px;
  }
  #mbk-app-header .mbk-pill-row {
    justify-content: flex-start;
  }
  .mbk-tabs {
    padding: 8px 12px;
    gap: 4px;
  }
  .mbk-tabs button {
    padding: 8px 10px;
  }
  .mbk-tab-menu {
    position: static;
  }
  .mbk-tab-menu-panel {
    left: 12px;
    right: auto;
    min-width: min(210px, calc(100vw - 32px));
    max-height: 60vh;
    overflow-y: auto;
  }
  .mbk-card {
    padding: 14px;
  }
  .mbk-card strong {
    font-size: 20px;
  }
  .mbk-shell {
    padding: 12px;
    width: calc(100% - 24px);
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .mbk-header {
    display: block;
  }
  .mbk-nav,
  .mbk-toolbar-actions,
  .mbk-actions,
  .mbk-button-group {
    width: 100%;
  }
  .mbk-toolbar-actions > *,
  .mbk-actions > *,
  .mbk-button-group > * {
    flex: 1 1 160px;
  }
  .mbk-button,
  .mbk-secondary,
  .mbk-link {
    min-height: 44px;
  }
  .mbk-form {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .mbk-table { display: block; overflow-x: auto; }
  .mbk-table-wrap .mbk-table {
    min-width: 680px;
  }
  .mbk-responsive-cards {
    overflow: visible;
  }
  .mbk-responsive-cards .mbk-table {
    display: table;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .mbk-responsive-cards .mbk-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .mbk-responsive-cards .mbk-table tbody,
  .mbk-responsive-cards .mbk-table tr,
  .mbk-responsive-cards .mbk-table td {
    display: block;
    width: 100%;
  }
  .mbk-responsive-cards .mbk-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--mbk-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .mbk-responsive-cards .mbk-table td {
    display: grid;
    grid-template-columns: minmax(105px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf0f4;
    overflow-wrap: anywhere;
  }
  .mbk-responsive-cards .mbk-table td:last-child {
    border-bottom: 0;
  }
  .mbk-responsive-cards .mbk-table td::before {
    content: attr(data-label);
    color: var(--mbk-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .mbk-responsive-cards .mbk-table .mbk-empty-row td {
    display: block;
  }
  .mbk-responsive-cards .mbk-table .mbk-empty-row td::before {
    content: none;
  }
  .mbk-modal-backdrop {
    align-items: stretch;
    place-items: stretch;
    padding: 8px;
  }
  .mbk-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
  }
  .mbk-modal footer > * {
    flex: 1 1 150px;
  }
  .mbk-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 -12px -12px;
    padding: 12px;
    border-top: 1px solid var(--mbk-border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 20px rgba(20, 33, 61, 0.08);
  }
  .mbk-view > .mbk-grid:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mbk-filterbar {
    grid-template-columns: 1fr;
  }
  .mbk-split {
    grid-template-columns: 1fr;
  }
  .mbk-reconciliation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mbk-reconciliation-balance {
    align-items: flex-start;
    flex-direction: column;
  }
  .mbk-public-layout {
    grid-template-columns: 1fr;
  }
  .mbk-split-line {
    grid-template-columns: 1fr;
  }
  .mbk-budget-line {
    grid-template-columns: 1fr;
  }
  .mbk-lodge-identity,
  .mbk-address-grid,
  .mbk-officer-row {
    grid-template-columns: 1fr;
  }
  .mbk-address-city,
  .mbk-address-state,
  .mbk-address-zip {
    grid-column: auto;
    grid-row: auto;
  }
  .mbk-officer-icon {
    width: 48px;
    height: 48px;
  }
}
