@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");
:root {
  color-scheme: light;
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
  --color-text-primary: #222222;
  --color-text-secondary: #555555;
  --color-text-muted: #777777;
  --color-text-inverse: #ffffff;
  --color-bg-page: #f6f8fb;
  --color-bg-panel: #ffffff;
  --color-bg-soft: #edf2f7;
  --color-bg-assist: #f5f7ff;
  --color-bg-tint: #e8f2ff;
  --color-bg-hover: var(--color-bg-tint);
  --color-border: #cfd9e6;
  --color-border-muted: #ccd7e4;
  --color-border-soft: #d5dfeb;
  --color-control-border: #b5bac1;
  --color-table-head-bg: #f1f5f9;
  --color-table-head-text: #334155;
  --color-icon-muted: #475569;
  --color-popover-dark: #222222;
  --color-danger-text: #ef4444;
  --color-brand: #002e67;
  --color-brand-strong: #002451;
  --color-brand-hover: #174a86;
  --color-brand-soft: #EEF2FF;
  --color-primary: #115fcc;
  --color-link: var(--color-primary);
  --color-link-hover: #0f55b8;
  --state-success-bg: #dcfce7;
  --state-success-text: #166534;
  --state-attention-bg: #fff2f3;
  --state-attention-text: #c92b1d;
  --state-notice-bg: #fffbeb;
  --state-notice-border: #fde68a;
  --state-notice-text: #92400e;
  --ink: var(--color-text-primary);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --line-soft: var(--color-bg-soft);
  --bg: var(--color-bg-page);
  --panel: var(--color-bg-panel);
  --accent: var(--color-brand);
  --accent-strong: var(--color-brand-hover);
  --accent-soft: var(--color-brand-soft);
  --primary: var(--color-primary);
  --color-income-bg: #EEF2FF;
  --color-income-text: #002e67;
  --color-income-amount: #002e67;
  --entry-sale-bg: #e8efff;
  --entry-sale-text: #315EAF;
  --entry-sale-border: #abc0eb;
  --entry-expense-bg: #fff4eb;
  --entry-expense-text: #B96A16;
  --entry-expense-border: #f7ceab;
  --badge-sale-bg: var(--entry-sale-bg);
  --badge-sale-text: var(--entry-sale-text);
  --badge-sale-border: var(--entry-sale-border);
  --badge-expense-bg: var(--entry-expense-bg);
  --badge-expense-text: var(--entry-expense-text);
  --badge-expense-border: var(--entry-expense-border);
  --chart-sale-color: var(--entry-sale-text);
  --chart-sale-bg: var(--entry-sale-bg);
  --chart-expense-color: var(--entry-expense-text);
  --chart-expense-bg: var(--entry-expense-bg);
  --chart-withholding-color: #7c3aed;
  --chart-withholding-bg: #f3e8ff;
  --nav-bg: var(--color-brand);
  --nav-bg-strong: var(--color-brand-strong);
  --nav-text: var(--color-text-inverse);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2340526a' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E");
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --border-subtle: 1px solid var(--line);
  --border-muted: 1px solid var(--color-border-muted);
  --border-soft: 1px solid var(--color-border-soft);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 42px rgba(15, 23, 42, .055);
  --shadow-tiny: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-panel: 0 12px 30px rgba(15, 23, 42, .06);
  --shadow-popover: 0 14px 32px rgba(15, 23, 42, .16);
  --focus-ring: 0 0 0 3px rgba(0, 46, 103, .16);
  --button-radius: var(--radius-pill);
  --button-primary-bg: var(--primary);
  --button-primary-hover: #0f55b8;
  --button-primary-color: #ffffff;
  --button-secondary-bg: rgba(238, 242, 255, .74);
  --button-secondary-border: 1px solid rgba(0, 46, 103, .16);
  --button-secondary-color: var(--accent);
  --button-secondary-hover-bg: rgba(238, 242, 255, 1);
  --z-base: 1;
  --z-raised: 2;
  --z-dropdown: 20;
  --z-filter-panel: 40;
  --z-mobile-backdrop: 80;
  --z-mobile-drawer: 90;
  --z-help-popover: 160;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;
  --type-body: var(--text-base);
  --type-label: var(--text-xs);
  --type-meta: var(--text-xs);
  --type-table: var(--text-base);
  --type-section-title: var(--text-md);
  --type-page-title: var(--text-2xl);
  --type-amount: var(--text-xl);
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --gap-small: var(--space-2);
  --gap-ui: var(--space-3);
  --gap-form: var(--space-5);
  --pad-card-sm: var(--space-6);
  --pad-card: var(--space-7);
  --pad-card-lg: var(--space-9);
  --content-max: 1220px;
  --content-gutter: 32px;
  --content-width: min(var(--content-max), calc(100% - var(--content-gutter)));
  --section-gap: var(--space-7);
  --page-gap: var(--space-8);
  --control-height: 40px;
  --year-switch-width: 116px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, form, fieldset) {
  margin-block: 0;
}

:where(ul, ol) {
  margin-block: 0;
}

:where(fieldset) {
  border: 0;
  min-inline-size: 0;
  padding: 0;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(button) {
  color: inherit;
}

:where(img, svg) {
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-feature-settings: "kern";
  font-synthesis-style: none;
  font-synthesis-weight: none;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
  max-width: 420px;
  padding: 36px;
  width: 100%;
}

.auth-heading {
  display: grid;
  gap: 8px;
}
.auth-heading h1 {
  color: var(--color-text-primary, #222222);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}
.auth-heading p {
  color: var(--color-text-primary, #222222);
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form label {
  color: var(--color-text-primary, #222222);
  display: grid;
  font-size: 14px;
  gap: 6px;
}
.auth-form input:not([type=checkbox]) {
  background: #fff;
  border: 1px solid var(--color-control-border, #b5bac1);
  border-radius: var(--radius-sm, 6px);
  color: var(--color-text-primary, #222222);
  font: inherit;
  min-height: var(--control-height, 40px);
  padding: 8px 12px;
}
.auth-form input:focus {
  border-color: var(--button-primary-bg, #115fcc);
  box-shadow: var(--focus-ring);
  outline: 0;
}

.auth-remember {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}
.auth-remember input {
  width: auto;
}

@media (max-width: 640px) {
  .auth-card {
    border-radius: 18px;
    padding: 28px 22px;
  }
}
.notice {
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.notice--success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.notice--warning {
  background: var(--state-notice-bg);
  color: var(--state-notice-text);
}

.notice--danger {
  background: #fee2e2;
  color: #991b1b;
}

.notice--action {
  align-items: center;
  display: flex;
  gap: var(--space-4, 10px);
  justify-content: space-between;
}
.notice--action span {
  min-width: 0;
}
.notice--action .notice-message {
  display: grid;
  gap: 6px;
  width: 100%;
}
.notice--action .notice-message-head {
  align-items: center;
  display: flex;
  gap: 18px;
}
.notice--action a {
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.notice--action a:hover {
  text-decoration: underline;
}

.text-link-arrow {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--color-text-primary, #222222);
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  gap: var(--space-2, 6px);
  min-height: 0;
  padding: 0;
  text-decoration: none;
  transform: none;
  white-space: nowrap;
}
.text-link-arrow:hover {
  background: transparent;
  box-shadow: none;
  color: var(--color-link, #115fcc);
  text-decoration: underline;
  transform: none;
}
.text-link-arrow::after {
  background: currentColor;
  content: "";
  height: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='0.5em' height='1em' viewBox='0 0 12 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='m7.588 12.43l-1.061 1.06L.748 7.713a.996.996 0 0 1 0-1.413L6.527.52l1.06 1.06l-5.424 5.425z' transform='rotate(-180 5.02 9.505)'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='0.5em' height='1em' viewBox='0 0 12 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='m7.588 12.43l-1.061 1.06L.748 7.713a.996.996 0 0 1 0-1.413L6.527.52l1.06 1.06l-5.424 5.425z' transform='rotate(-180 5.02 9.505)'/%3E%3C/svg%3E") center/contain no-repeat;
  width: 8px;
}

.text-link {
  color: var(--color-link, #115fcc);
  font-size: var(--type-body, 14px);
  font-weight: 400;
  text-decoration: none;
}
.text-link:hover {
  color: var(--color-link, #115fcc);
  text-decoration: underline;
}

.text-link-back {
  color: #222;
  text-decoration: none;
  align-items: center;
  display: inline-flex;
  gap: var(--space-2, 6px);
}
.text-link-back:hover {
  color: var(--color-link, #115fcc);
}
.text-link-back::before {
  background: currentColor;
  content: "";
  flex: 0 0 auto;
  height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M5 12l6 6'/%3E%3Cpath d='M5 12l6 -6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M5 12l6 6'/%3E%3Cpath d='M5 12l6 -6'/%3E%3C/svg%3E") center/contain no-repeat;
  width: 18px;
}

.month-state-link,
.table-ghost-link,
.table-action-link {
  border: 1px solid transparent;
  border-radius: var(--radius-pill, 999px);
  padding: 6px 12px;
}
.month-state-link::after,
.table-ghost-link::after,
.table-action-link::after {
  content: none;
}
.month-state-link:hover,
.table-ghost-link:hover,
.table-action-link:hover {
  background: var(--color-bg-hover, #e8f2ff);
  border-color: transparent;
  color: var(--color-link, #115fcc);
  text-decoration: none;
}

.overview-month-table .month-state-link {
  margin-left: 0;
}

.deposits-page .table-ghost-link {
  margin-left: 0;
}

.app-shell .overview-metric-icon {
  color: var(--accent, #002e67);
}

.badge {
  align-items: center;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  display: inline-flex;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  padding: 6px 8px;
  white-space: nowrap;
}

.badge--success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.badge--attention {
  background: var(--state-attention-bg);
  color: var(--state-attention-text);
}

.badge--danger {
  background: #fff1f2;
  color: #991b1b;
}

.badge--notice {
  background: var(--state-notice-bg);
  color: var(--state-notice-text);
}

.badge--empty {
  background: transparent;
  border-radius: 0;
  color: var(--color-text-primary, #222222);
  display: inline;
  font-size: 14px;
  line-height: inherit;
  padding: 0;
}

.badge--icon {
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.badge--count {
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #30437a);
  font-size: var(--type-meta, 12px);
  padding: var(--space-1, 4px) var(--space-4, 10px);
}

.status-text {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  gap: 3px;
  line-height: 1.4;
  white-space: nowrap;
}
.status-text svg {
  color: currentColor;
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.status-text--success svg {
  color: var(--state-success-text, #166534);
}

.status-text--attention svg {
  color: var(--state-attention-text, #be123c);
}

.status-text--muted-icon svg {
  color: var(--color-text-muted, #777777);
}

.num.positive, .num.income {
  color: var(--color-income-amount, #002e67);
}
.num.negative {
  color: var(--color-danger-text);
}

.table-wrap thead {
  border-bottom: 2px solid #ccc;
}

.month-entry-table {
  table-layout: fixed;
}
.month-entry-table col.month-entry-date {
  width: 116px;
}
.month-entry-table col.month-entry-type {
  width: 70px;
}
.month-entry-table col.month-entry-content {
  width: auto;
}
.month-entry-table col.month-entry-amount {
  width: 92px;
}
.month-entry-table col.month-entry-payment {
  width: 128px;
}
.month-entry-table col.month-entry-action {
  width: 54px;
}
.month-entry-table thead th {
  background: var(--color-table-head-bg, #f1f5f9);
  border-radius: 0;
  font-weight: 500;
}
.month-entry-table td {
  vertical-align: middle;
}
.month-entry-table th.num,
.month-entry-table td.num {
  text-align: left;
}

.month-entry-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.month-entry-detail strong,
.month-entry-detail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-entry-detail strong {
  color: var(--color-text-primary, #222222);
  font-size: var(--type-body, 14px);
  font-weight: 500;
}
.month-entry-detail span {
  color: var(--color-text-muted, #777777);
  font-size: 13px;
  font-weight: 400;
}

.month-entry-amount-cell {
  font-size: var(--type-body, 14px);
  font-weight: 500;
  letter-spacing: 0;
}

.action-menu {
  display: flex;
  justify-content: flex-end;
  min-width: 32px;
  position: relative;
}
.action-menu .action-menu__trigger {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-icon-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  list-style: none;
  min-width: 32px;
  padding: 0;
  width: 32px;
}
.action-menu .action-menu__trigger::-webkit-details-marker {
  display: none;
}
.action-menu .action-menu__trigger:hover, .action-menu[open] .action-menu__trigger {
  background: var(--color-bg-hover);
  color: var(--accent);
}
.action-menu .action-menu__icon {
  background-color: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 20px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  width: 20px;
}
.action-menu .action-menu__icon--more {
  -webkit-mask-image: url("../icons/majesticons-more-menu.svg");
  mask-image: url("../icons/majesticons-more-menu.svg");
}
.action-menu .action-menu__list {
  background: #fff;
  border: var(--border-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  display: grid;
  min-width: 108px;
  padding: var(--space-2);
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: var(--z-dropdown);
}
.action-menu:not([open]) .action-menu__list {
  display: none;
}
.action-menu .action-menu__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-table-head-text);
  display: flex;
  font-size: var(--type-body);
  font-weight: 500;
  gap: var(--space-3);
  justify-content: flex-start;
  min-height: 40px;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  text-decoration: none;
  transform: none;
  white-space: nowrap;
  width: 100%;
}
.action-menu .action-menu__item:hover {
  background: var(--color-bg-hover);
  box-shadow: none;
  color: var(--accent);
  transform: none;
}
.action-menu .action-menu__item.is-danger {
  color: #b91c1c;
}
.action-menu .action-menu__item.is-danger:hover {
  background: #fff1f2;
  color: #991b1b;
}
.action-menu .action-menu__item svg {
  fill: none;
  flex: 0 0 auto;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 20px;
}
.action-menu .action-menu__svg {
  fill: none;
  flex: 0 0 auto;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 20px;
}

.month-entry-actions {
  text-align: right;
}

.app-header {
  background: var(--nav-bg);
  border-right: 0;
  color: var(--nav-text);
  padding: 0;
}
.app-header .app-nav-links a {
  align-items: initial;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  display: block;
  font-size: 14px;
  font-weight: 400;
  justify-content: initial;
  line-height: 1.45;
  padding: 5px 8px 5px 0;
  text-decoration: none;
  transform: none;
}
.app-header .app-nav-links a:hover {
  background: transparent;
  color: var(--color-link, #115fcc);
  transform: none;
}
.app-header .app-nav-links a[aria-current=page] {
  background: transparent;
  box-shadow: none;
  color: var(--color-link, #115fcc);
}

.app-header-inner {
  align-items: start;
  display: grid;
  gap: 26px;
  margin: 0 auto;
  padding: 18px 0;
  width: var(--content-width);
}

.app-nav {
  display: grid;
  gap: 18px;
}

.app-nav-section {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  gap: 8px;
  padding-top: 18px;
}
.app-nav-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.app-nav-section p {
  color: var(--nav-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin: -3px 0 2px 28px;
}

.app-nav-heading {
  align-items: center;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  display: inline-flex;
  font-size: 16px;
  font-weight: 400;
  gap: 10px;
  justify-content: flex-start;
  padding: 0;
  text-decoration: none;
  transform: none;
}

.app-nav-icon {
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.app-nav-links {
  display: grid;
  gap: 4px;
  margin-left: 28px;
}

.app-shell .app-header {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--color-text-primary, #222222);
}
.app-shell .app-header::before, .app-shell .app-header::after {
  display: none;
}
.app-shell .app-header .app-nav-links a {
  color: var(--color-text-primary, #222222);
  font-weight: 400;
}
.app-shell .app-header .app-nav-links a:hover,
.app-shell .app-header .app-nav-links a[aria-current=page],
.app-shell .app-header .app-nav-links a[aria-current=page]:hover {
  background: transparent;
  box-shadow: none;
  color: var(--color-link, #115fcc);
}
.app-shell .app-nav-heading {
  box-shadow: none;
  color: var(--color-text-primary, #222222);
  font-weight: 400;
  transform: none;
}
.app-shell .app-nav-heading:hover,
.app-shell .app-nav-heading[aria-current=page],
.app-shell .app-nav-heading[aria-current=page]:hover {
  background: transparent;
  box-shadow: none;
  color: var(--color-link, #115fcc);
  transform: none;
}
.app-shell .app-nav-icon {
  color: var(--color-text-primary, #222222);
}
.app-shell .app-nav-section {
  border-top-color: rgba(34, 34, 34, 0.1);
}
.app-shell .app-nav-section p {
  color: var(--color-text-primary, #222222);
  font-weight: 400;
}
.app-shell .help::after {
  display: none;
}

.app-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin: 16px auto 0;
  width: var(--content-width);
}

.topbar-title {
  display: none;
}

.topbar-home-link,
.topbar-home-link:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  display: inline-flex;
  padding: 0;
  text-decoration: none;
  transform: none;
}

.help-popover {
  background: var(--color-popover-dark);
  border-radius: 16px;
  box-shadow: var(--shadow-popover, 0 18px 44px rgba(15, 23, 42, 0.24));
  color: #fff;
  font-size: 13px;
  left: 50%;
  line-height: 1.65;
  max-width: 440px;
  padding: 18px 48px 18px 18px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 100vw - 64px);
  z-index: var(--z-help-popover);
}
.help-popover[hidden] {
  display: none;
}

.help-popover-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: inherit;
  display: inline-flex;
  font-size: 20px;
  font-weight: 400;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  transform: none;
  width: 32px;
}
.help-popover-close:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}

.help-popover-text {
  display: block;
}

.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-nav-close {
  display: none;
}

.global-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-control-border, #cbd5e1);
  border-radius: var(--radius-pill, 999px);
  box-shadow: none;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(180px, 1fr) auto;
  max-width: 420px;
  padding: 0 12px;
  width: 100%;
}
.global-search svg {
  color: #45627f;
  fill: currentColor;
  height: 18px;
  width: 18px;
}
.global-search input[type=hidden] {
  display: none;
}
.global-search input {
  border: 0;
  box-shadow: none;
  color: var(--ink);
  min-height: 44px;
  padding: 0;
}
.global-search input:focus {
  box-shadow: none;
}
.global-search kbd {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar-settings-menu {
  justify-self: end;
  position: relative;
}
.topbar-settings-menu summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  box-shadow: none;
  color: var(--color-text-primary, #222222);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  list-style: none;
  padding: 0;
  transform: none;
  width: 40px;
}
.topbar-settings-menu summary::-webkit-details-marker {
  display: none;
}
.topbar-settings-menu summary:hover {
  background: var(--color-bg-hover, #e8f2ff);
}
.topbar-settings-menu summary > svg {
  height: 32px;
  width: 32px;
}
.topbar-settings-menu .topbar-settings-menu__list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: var(--z-dropdown, 80);
}
.topbar-settings-menu:not([open]) .topbar-settings-menu__list {
  display: none;
}
.topbar-settings-menu form {
  display: block;
  margin: 0;
}
.topbar-settings-menu .topbar-settings-menu__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  color: var(--color-text-primary, #222222);
  display: grid;
  font: inherit;
  font-size: 14px;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  justify-content: start;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.topbar-settings-menu .topbar-settings-menu__item:hover {
  background: var(--color-bg-hover, #e8f2ff);
  color: var(--color-link, #115fcc);
}
.topbar-settings-menu .topbar-settings-menu__item svg {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}
.topbar-settings-menu .topbar-settings-menu__item.is-disabled {
  color: var(--color-text-muted, #777777);
  cursor: default;
  opacity: 0.6;
}
.topbar-settings-menu .topbar-settings-menu__item.is-disabled:hover {
  background: transparent;
  color: var(--color-text-muted, #777777);
}

main {
  margin: var(--space-8, 24px) auto 64px;
  width: var(--content-width);
}

.app-shell .shell-card {
  background: var(--panel, #fff);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.04);
  min-height: var(--shell-card-min-height, calc(100vh - 112px));
  padding: 32px;
}
.app-shell .billing-document-detail-preview {
  overflow: hidden;
  border: 1px solid #ddd;
  width: 100%;
}
.app-shell .billing-document-detail-preview .billing-document-preview-frame {
  height: 297mm;
  overflow: hidden;
  width: 100%;
}
.app-shell .billing-document-detail-preview iframe {
  background: #fff;
  border: 0;
  display: block;
  height: 297mm;
  transform-origin: top left;
  width: 210mm;
}
.app-shell .billing-document-detail-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 560px);
  justify-content: space-between;
  margin-top: 32px;
}
.app-shell .billing-document-detail-side {
  display: grid;
  gap: 16px;
}
.app-shell .billing-document-side-title {
  color: var(--color-text-primary, #222222);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}
.app-shell .billing-document-relation-list {
  display: grid;
  gap: 22px;
}
.app-shell .billing-document-relation-item {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.app-shell .billing-document-relation-item .status-text {
  align-items: center;
  white-space: normal;
}
.app-shell .billing-document-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}
.app-shell .billing-document-edit-actions form {
  margin: 0;
  width: auto;
}
.app-shell .billing-document-detail-main {
  justify-self: end;
  min-width: 0;
  width: 100%;
}
.app-shell .billing-document-preview-title-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.app-shell .billing-document-preview-title-row h2 {
  color: var(--color-text-primary, #222222);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}
.app-shell .billing-document-preview-title-row .page-actions {
  flex: 0 0 auto;
}
@media (max-width: 960px) {
  .app-shell .billing-document-detail-layout {
    grid-template-columns: 1fr;
  }
  .app-shell .billing-document-preview-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.app-shell .invoice-payment-note {
  color: #555555;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
  white-space: nowrap;
}
.app-shell .sale-paid-title {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.app-shell .sale-paid-copy {
  background: transparent;
  border: 0;
  color: var(--color-link, #115fcc);
  font-weight: 400;
  min-height: 0;
  padding: 0;
  width: auto;
}
.app-shell .sale-paid-copy:hover {
  background: transparent;
  box-shadow: none;
  color: var(--color-link, #115fcc);
}
.app-shell .document-party-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.app-shell .document-party-cell strong {
  font-weight: 400;
  line-height: 1.4;
}
.app-shell .document-party-cell small {
  color: #555555;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.app-shell select.year-switch-select {
  width: var(--year-switch-width, 116px);
}
.app-shell .toolbar {
  align-items: center;
  display: grid;
  gap: var(--space-6, 16px);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
}
.app-shell .toolbar h1,
.app-shell .toolbar h2 {
  letter-spacing: 0;
}
.app-shell .toolbar .actions,
.app-shell .page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-ui, 8px);
  justify-content: flex-end;
}
.app-shell .toolbar .actions form,
.app-shell .toolbar .actions select,
.app-shell .page-actions form,
.app-shell .page-actions select {
  width: auto;
}
.app-shell .result-table-tools .button--secondary,
.app-shell .result-table-tools button.button--secondary,
.app-shell .result-table-tools .button--secondary:hover,
.app-shell .result-table-tools button.button--secondary:hover {
  border-color: var(--button-primary-bg, #115fcc);
}

.panel {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

a,
button {
  transition: background-color 0.14s ease, transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.button,
button.button {
  align-items: center;
  background: var(--button-primary-bg, #115fcc);
  border: 1px solid transparent;
  border-radius: var(--button-radius, 8px);
  color: var(--button-primary-color, #fff);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 4px 16px;
  text-decoration: none;
  transform: none;
}

.button:hover,
button.button:hover {
  background: var(--button-primary-hover, #0f55b8);
  box-shadow: var(--shadow-tiny);
  color: var(--button-primary-color, #fff);
}

.button.button--secondary,
button.button.button--secondary {
  background: #fff;
  border-color: #999;
  color: var(--button-primary-bg, #115fcc);
}

.button.button--secondary:hover,
button.button.button--secondary:hover {
  background: var(--button-secondary-hover-bg);
  color: var(--button-primary-bg, #115fcc);
}

.button--danger,
button.button--danger {
  background: #fff;
  border-color: var(--color-danger-text, #ef4444);
  color: var(--color-danger-text, #ef4444);
}

.button--danger:hover,
button.button--danger:hover {
  background: #fff;
  border-color: var(--color-danger-text, #ef4444);
  box-shadow: none;
  color: var(--color-danger-text, #ef4444);
}

.button--small {
  font-size: var(--type-body, 14px);
  min-height: 32px;
  padding: 6px 10px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--color-control-border, #cbd5e1);
  border-radius: var(--radius-sm, 6px);
  color: var(--color-text-primary, #222222);
  font: inherit;
  font-size: var(--type-body, 14px);
  font-weight: 400;
  line-height: 1.25;
  min-height: var(--control-height, 40px);
  padding: var(--space-3, 8px) var(--space-4, 10px);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  width: 100%;
}

textarea {
  line-height: 1.7;
  min-height: 70px;
  resize: vertical;
}

input[type=checkbox] {
  width: auto;
}

input[type=radio] {
  width: auto;
}

.checkbox-field {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: var(--control-height, 40px);
}
.checkbox-field input {
  margin: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.radio-field {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: 32px;
}
.radio-field input {
  margin: 0;
}

.form-help {
  color: #555;
  font-size: 14px;
  margin: 8px 0 0;
}

input::placeholder,
textarea::placeholder {
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  outline: 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-arrow);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  font-weight: 400;
  padding-right: 36px;
}

.page-title h1,
.page-title h2 {
  color: var(--color-text-primary, #222222);
  font-size: var(--type-page-title, 24px);
  font-weight: 500;
  line-height: 1.25;
}
.page-title p,
.page-title p.muted {
  color: var(--color-text-primary, #222222);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin: var(--space-3, 8px) 0 0;
}

.estimate-items-form-table,
.invoice-items-form-table {
  table-layout: fixed;
}
.estimate-items-form-table .estimate-item-description-col,
.invoice-items-form-table .estimate-item-description-col {
  width: auto;
}
.estimate-items-form-table .estimate-item-quantity-col,
.invoice-items-form-table .estimate-item-quantity-col {
  width: 76px;
}
.estimate-items-form-table .estimate-item-unit-col,
.invoice-items-form-table .estimate-item-unit-col {
  width: 76px;
}
.estimate-items-form-table .estimate-item-price-col,
.invoice-items-form-table .estimate-item-price-col {
  width: 136px;
}
.estimate-items-form-table .estimate-item-tax-col,
.invoice-items-form-table .estimate-item-tax-col {
  width: 116px;
}

.estimate-form-row,
.invoice-form-row {
  align-items: start;
  display: grid;
  gap: var(--gap-form, 12px);
  min-width: 0;
}
.estimate-form-row label,
.invoice-form-row label {
  min-width: 0;
}

.estimate-form-row-meta,
.invoice-form-row-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.estimate-form-row-client,
.invoice-form-row-client {
  grid-template-columns: calc(50% - 6px) minmax(0, 1fr) 112px;
}

.estimate-form-row-recipient,
.invoice-form-row-recipient {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.estimate-form-row-address,
.invoice-form-row-address {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
}

.toggle-field {
  align-items: center;
  color: var(--color-text-primary, #222222);
  display: flex;
  font-size: var(--type-body, 14px);
  font-weight: 400;
  gap: var(--space-4, 10px);
  min-height: 43px;
}
.toggle-field input {
  block-size: 1px;
  inline-size: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
.toggle-field input:checked + .toggle-control {
  background: var(--accent, #002e67);
  border-color: var(--accent, #002e67);
}
.toggle-field input:checked + .toggle-control::after {
  transform: translateX(18px);
}
.toggle-field input:focus-visible + .toggle-control {
  box-shadow: 0 0 0 3px rgba(0, 46, 103, 0.16);
}

.toggle-control {
  background: #e2e8f0;
  border: var(--border-subtle, 1px solid var(--color-control-border, #cbd5e1));
  border-radius: var(--radius-pill, 999px);
  flex: 0 0 auto;
  height: 24px;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
  width: 42px;
}
.toggle-control::after {
  background: #ffffff;
  border-radius: var(--radius-pill, 999px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.18s ease;
  width: 18px;
}

.toggle-text {
  min-width: 0;
}

@media (max-width: 760px) {
  .estimate-form-row,
  .estimate-form-row-meta,
  .estimate-form-row-client,
  .estimate-form-row-recipient,
  .estimate-form-row-address,
  .invoice-form-row,
  .invoice-form-row-meta,
  .invoice-form-row-client,
  .invoice-form-row-recipient,
  .invoice-form-row-address {
    grid-template-columns: 1fr;
  }
}
.overview-page .page-title h2 {
  font-weight: 500;
}

.breadcrumb {
  align-items: center;
  color: var(--color-text-muted, #777777);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin: 0 0 var(--space-4, 12px);
}
.breadcrumb a {
  color: var(--color-link, #115fcc);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span:last-child {
  color: var(--color-text-primary, #222222);
}

.month-detail-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
  margin-top: 24px;
}
.month-detail-layout .month-status,
.month-detail-layout .month-entry-panel {
  margin: 0;
}
.month-detail-layout .month-status-grid {
  gap: var(--space-5, 12px);
  grid-template-columns: 1fr;
}
.month-detail-layout .month-status-grid > div {
  padding: 0;
}
.month-detail-layout .month-status-grid > div + div {
  border-left: 0;
  border-top: 1px solid #ccc;
  margin-top: var(--space-3, 8px);
  padding-top: var(--space-7, 20px);
}

.panel-title-row p.muted {
  color: var(--color-text-primary, #222222);
  font-weight: 400;
}

.app-shell .month-shell-card {
  display: grid;
  gap: 24px;
}
.app-shell .month-shell-card .breadcrumb,
.app-shell .month-shell-card .toolbar,
.app-shell .month-shell-card .home-summary {
  margin-bottom: 0;
  margin-top: 0;
}
.app-shell .month-page .month-status,
.app-shell .month-page .month-entry-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.app-shell .month-page .month-entry-panel {
  padding: 0;
}
.app-shell .overview-page .overview-summary {
  padding: 8px 0;
}
.app-shell .table-wrap {
  overflow: visible;
}
.app-shell table {
  border-collapse: collapse;
  color: var(--color-text-primary, #222222);
  font-size: var(--type-table, 14px);
  width: 100%;
}
.app-shell table td:last-child {
  text-align: right;
}
.app-shell table td:last-child .button,
.app-shell table td:last-child .text-link-arrow {
  margin-left: auto;
}
.app-shell th,
.app-shell td {
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
}
.app-shell th,
.app-shell thead th {
  background: var(--color-table-head-bg, #f1f5f9);
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 0;
  padding-block: 12px;
}
.app-shell .num {
  white-space: nowrap;
}
.app-shell .table-wrap,
.app-shell .table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}
.app-shell .table-panel {
  margin-top: var(--space-8, 24px);
  overflow: visible;
  padding: 0;
}
.app-shell .result-table {
  min-width: 940px;
  table-layout: fixed;
}
.app-shell .result-table tbody tr {
  transition: background 0.15s ease;
}
.app-shell .result-table tbody tr:hover {
  background: var(--color-bg-hover, #e8f2ff);
}
.app-shell .panel-title-row h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.app-shell .overview-page .panel,
.app-shell .deposits-page .panel,
.app-shell .checks-page .panel,
.app-shell .search-page .panel,
.app-shell .year-end-page .preflight-panel,
.app-shell .expense-create-page .speed-input-panel,
.app-shell .sale-create-page .speed-input-panel,
.app-shell .edit-sale-page .panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.app-shell .deposits-page .panel h2,
.app-shell .checks-page .issue-action-section h2,
.app-shell .checks-page .panel h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}
.app-shell .home-page .page-title h2,
.app-shell .checks-page .page-title h2,
.app-shell .search-page .page-title h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}
.app-shell .home-page .page-title p,
.app-shell .checks-page .issue-action-section p,
.app-shell .checks-page .panel > p {
  color: var(--color-text-primary, #222222);
  font-size: 14px;
  font-weight: 400;
}
.app-shell .home-page .home-summary,
.app-shell .home-page .panel,
.app-shell .home-page .metric,
.app-shell .home-page .quick-entry-card,
.app-shell .home-page .quick-entry-support-card,
.app-shell .home-page .home-link-card {
  box-shadow: none;
}
.app-shell .home-page .home-summary,
.app-shell .home-page .panel {
  padding-left: 0;
  padding-right: 0;
}
.app-shell .home-page .quick-entry-main {
  border-right: 0;
  padding-right: 0;
}
.app-shell .home-page .quick-entry-sale {
  background: var(--entry-sale-bg, #e8efff);
  border-color: var(--entry-sale-border, #abc0eb);
}
.app-shell .home-page .quick-entry-expense {
  background: var(--entry-expense-bg, #fff4eb);
  border-color: var(--entry-expense-border, #f7ceab);
}
.app-shell .home-page .check-icon {
  background: transparent;
}
.app-shell .home-page .dashboard-lower {
  column-gap: 32px;
  margin-top: 32px;
}
.app-shell .deposits-page .page-title h2 {
  font-weight: 500;
}
.app-shell .deposits-page .compact-summary-bar {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 0;
}
.app-shell .deposits-page .deposit-metric {
  align-items: center;
  column-gap: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, max-content);
  grid-template-rows: auto auto;
}
.app-shell .deposits-page .deposit-metric-icon {
  color: var(--accent, #002e67);
  display: block;
  grid-row: 1/span 2;
  height: 48px;
  width: 48px;
}
.app-shell .deposits-page .deposit-metric-icon svg {
  display: block;
  height: 48px;
  width: 48px;
}
.app-shell .deposits-page .panel {
  margin-bottom: 32px;
  overflow-x: auto;
}
.app-shell .deposits-page .panel table th {
  background: #eef3f9;
}
.app-shell .deposits-page table th,
.app-shell .deposits-page table td {
  text-align: left;
}
.app-shell .deposits-page .missing-deposit-month-cell {
  background: #eef3f9;
}
.app-shell .deposits-page .missing-deposit-table,
.app-shell .deposits-page .deposit-detail-table {
  table-layout: fixed;
}
.app-shell .deposits-page .missing-deposit-table th,
.app-shell .deposits-page .missing-deposit-table td,
.app-shell .deposits-page .deposit-detail-table th,
.app-shell .deposits-page .deposit-detail-table td {
  overflow-wrap: normal;
  word-break: normal;
}
.app-shell .deposits-page .missing-deposit-table .num,
.app-shell .deposits-page .deposit-detail-table .num {
  text-align: left;
  white-space: nowrap;
}
.app-shell .deposits-page .missing-deposit-table th:last-child,
.app-shell .deposits-page .missing-deposit-table td:last-child,
.app-shell .deposits-page .deposit-detail-table th:last-child,
.app-shell .deposits-page .deposit-detail-table td:last-child {
  padding-right: 16px;
  text-align: left;
}
.app-shell .deposits-page .missing-deposit-table .text-link-arrow,
.app-shell .deposits-page .deposit-detail-table .text-link-arrow {
  white-space: nowrap;
}
.app-shell .deposits-page .missing-deposit-table {
  min-width: 760px;
}
.app-shell .deposits-page .missing-deposit-table th:last-child,
.app-shell .deposits-page .missing-deposit-table td:last-child {
  white-space: nowrap;
}
.app-shell .deposits-page .missing-deposit-col-month {
  width: 14%;
}
.app-shell .deposits-page .missing-deposit-col-client {
  width: 24%;
}
.app-shell .deposits-page .missing-deposit-col-project {
  width: 35%;
}
.app-shell .deposits-page .missing-deposit-col-amount,
.app-shell .deposits-page .missing-deposit-col-tax {
  width: 10%;
}
.app-shell .deposits-page .missing-deposit-col-action {
  width: auto;
}
.app-shell .deposits-page .party-project-cell {
  line-height: 1.45;
  text-align: left;
}
.app-shell .deposits-page .party-project-cell span {
  display: block;
}
.app-shell .deposits-page .deposit-month-summary-table {
  min-width: 680px;
  table-layout: fixed;
}
.app-shell .deposits-page .deposit-month-summary-table .num {
  text-align: left;
}
.app-shell .deposits-page .deposit-month-summary-col-month {
  width: 18%;
}
.app-shell .deposits-page .deposit-month-summary-col-count {
  width: 16%;
}
.app-shell .deposits-page .deposit-month-summary-col-amount,
.app-shell .deposits-page .deposit-month-summary-col-tax,
.app-shell .deposits-page .deposit-month-summary-col-net {
  width: 22%;
}
.app-shell .deposits-page .deposit-detail-table {
  min-width: 900px;
}
.app-shell .deposits-page .deposit-detail-col-date {
  width: 112px;
}
.app-shell .deposits-page .deposit-detail-col-month {
  width: 68px;
}
.app-shell .deposits-page .deposit-detail-col-party {
  width: auto;
}
.app-shell .deposits-page .deposit-detail-col-reference {
  width: 136px;
}
.app-shell .deposits-page .deposit-detail-col-amount,
.app-shell .deposits-page .deposit-detail-col-net {
  width: 88px;
}
.app-shell .deposits-page .deposit-detail-col-tax {
  width: 76px;
}
.app-shell .deposits-page .deposit-detail-col-action {
  width: 76px;
}
.app-shell .deposits-page .deposit-month-detail {
  border-top: 0;
  margin-bottom: 24px;
}
.app-shell .deposits-page .deposit-month-detail::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.22s allow-discrete;
}
.app-shell .deposits-page .deposit-month-detail summary {
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  min-height: 32px;
  padding: 0 48px 16px 0;
}
.app-shell .deposits-page .deposit-month-detail summary span {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.app-shell .deposits-page .deposit-month-detail summary::after {
  height: 24px;
  top: 13px;
  transform: translateY(-50%);
  width: 24px;
}
.app-shell .deposits-page .deposit-month-detail[open]::details-content {
  block-size: auto;
}
.app-shell .deposits-page .deposit-month-detail[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.app-shell .deposits-page .deposit-month-detail[open] .deposit-summary-title::after {
  content: "";
}
.app-shell .deposits-page .deposit-month-detail[open] .deposit-month-detail-body {
  opacity: 1;
  transform: translateY(0);
}
.app-shell .deposits-page .deposit-summary-title::after {
  content: "を見る";
}
.app-shell .deposits-page .deposit-month-detail-body {
  opacity: 0;
  padding: 0 0 20px;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.app-shell .search-page .result-table .num {
  text-align: left;
}
.app-shell .checks-page .issue-action-section {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 32px;
  padding: 0;
}
.app-shell .checks-page .issue-action-section p {
  margin: -8px 0 20px;
}
.app-shell .checks-page .panel {
  margin: 0;
}
.app-shell .checks-page .panel > p {
  margin: -8px 0 20px;
}
.app-shell .checks-page .panel + .panel {
  margin-top: 32px;
}
.app-shell .checks-page .issue-section-title {
  align-items: center;
  display: flex;
  gap: 8px;
}
.app-shell .checks-page .issue-section-title svg {
  color: var(--state-attention-text, #be123c);
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}
.app-shell .checks-page .issue-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.app-shell .checks-page .issue-jump-list a {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--color-text-primary, #222222);
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  gap: 4px;
  min-height: 32px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-shell .checks-page .issue-jump-list a::after {
  content: none;
}
.app-shell .checks-page .issue-jump-list a:hover {
  color: var(--color-link, #115fcc);
}
.app-shell .checks-page table {
  min-width: 920px;
  table-layout: fixed;
}
.app-shell .checks-page table th,
.app-shell .checks-page table td {
  font-size: 14px;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  word-break: normal;
}
.app-shell .checks-page table th {
  font-weight: 500;
}
.app-shell .checks-page table .num {
  text-align: left;
}
.app-shell .checks-page table td:last-child,
.app-shell .checks-page table th:last-child {
  padding-right: var(--space-8, 24px);
  text-align: right;
}
.app-shell .checks-page table td:last-child .actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.app-shell .checks-page .check-table--sales {
  min-width: 860px;
}
.app-shell .checks-page .check-col-revenue-month {
  width: 7%;
}
.app-shell .checks-page .check-col-date,
.app-shell .checks-page .check-col-deposit {
  width: 11%;
}
.app-shell .checks-page .check-col-client {
  width: 15%;
}
.app-shell .checks-page .check-col-project {
  width: 28%;
}
.app-shell .checks-page .check-col-reference {
  width: 14%;
}
.app-shell .checks-page .check-col-amount {
  width: 10%;
}
.app-shell .checks-page .check-col-action {
  width: 4%;
}
.app-shell .checks-page .issue-count-badge {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--color-text-primary, #222222);
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
  min-height: 0;
  padding: 0;
}

.app-shell .settings-page .page-title h2,
.app-shell .tax-report-page .page-title h2,
.app-shell .year-end-page .page-title h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}
.app-shell .settings-page .breadcrumb {
  font-size: 13px;
  margin: 0 0 16px;
  padding: 0;
}
.app-shell .settings-page .breadcrumb a,
.app-shell .settings-page .breadcrumb span {
  font-size: 13px;
}
.app-shell .settings-page .settings-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.app-shell .settings-page .settings-tab,
.app-shell .settings-page .settings-tab:hover,
.app-shell .settings-page .settings-tab:focus {
  text-decoration: none;
}
.app-shell .settings-page .list-header {
  margin-top: 28px;
}
.app-shell .settings-page .template-save-button {
  gap: 8px;
}
.app-shell .settings-page .form-cancel-link {
  align-items: center;
  border-radius: 999px;
  color: var(--color-text);
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}
.app-shell .settings-page .form-cancel-link:hover {
  background: var(--color-hover-bg);
  color: var(--color-link);
}
.app-shell .settings-page .memo-form {
  background: transparent;
  border: 0;
  padding: 0;
}
.app-shell .settings-page th {
  border-radius: 0;
}
.app-shell .settings-page .button--secondary,
.app-shell .settings-page .button--secondary:hover {
  background: #fff;
  border: 1px solid #777777;
  box-shadow: none;
  color: var(--button-primary-bg, #115fcc);
  transform: none;
}
.app-shell .settings-page .health-summary {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0;
}
.app-shell .settings-page .toggle-field {
  align-items: center;
  display: flex;
  gap: 10px;
}
.app-shell .settings-page .toggle-field input:checked + .toggle-control {
  background: var(--primary, #115fcc);
  border-color: var(--primary, #115fcc);
}
.app-shell .settings-page .toggle-field input:focus-visible + .toggle-control {
  box-shadow: 0 0 0 3px rgba(17, 95, 204, 0.16);
}
.app-shell .settings-page .toggle-field .toggle-text {
  min-width: 0;
}
.app-shell .settings-page .backup-heading {
  align-items: stretch;
  display: block;
}
.app-shell .settings-page .backup-heading a {
  display: none;
}
.app-shell .settings-page .backup-subsection-title {
  color: var(--color-text-primary, #222222);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 14px 0 6px;
}
.app-shell .settings-page .backup-card-title + .backup-subsection-title {
  margin-top: 0;
}
.app-shell .settings-page .backup-target-list {
  margin-top: 16px;
}
.app-shell .settings-page .backup-card-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}
.app-shell .settings-page .backup-card-actions a {
  background: #fff;
  border: 1px solid var(--button-primary-bg, #115fcc);
  border-radius: var(--button-radius, 8px);
  color: var(--button-primary-bg, #115fcc);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
}
.app-shell .settings-page .restore-preview-button {
  background: #fff;
  border: 1px solid var(--button-primary-bg, #115fcc);
  border-radius: var(--button-radius, 8px);
  color: var(--button-primary-bg, #115fcc);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  min-height: 36px;
  padding: 8px 16px;
  text-decoration: none;
  transform: none;
  white-space: nowrap;
}
.app-shell .settings-page .restore-preview-button:hover {
  background: rgba(17, 95, 204, 0.06);
  box-shadow: none;
  color: var(--button-primary-bg, #115fcc);
  transform: none;
}
.app-shell .settings-page .backup-note {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}
.app-shell .settings-page .backup-note::before {
  line-height: 1.75;
}
.app-shell .settings-page .backup-restore-card {
  align-content: start;
}
.app-shell .settings-page .restore-form .actions {
  justify-content: flex-start;
}
.app-shell .settings-page .restore-file-input {
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.app-shell .tax-report-page .tax-report-shell-card {
  --shell-card-min-height: calc(100vh - 120px);
}
.app-shell .tax-report-page .report-mobile-guidance {
  display: none;
}
.app-shell .tax-report-page .report-cover,
.app-shell .tax-report-page .report-section {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.app-shell .tax-report-page .report-cover {
  gap: 28px;
  margin-bottom: 48px;
}
.app-shell .tax-report-page .report-section {
  margin-bottom: 44px;
}
.app-shell .tax-report-page .report-section h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}
.app-shell .tax-report-page .cover-heading h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}
.app-shell .tax-report-page .cover-reports h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
}
.app-shell .tax-report-page .cover-reports ol {
  grid-template-columns: 1fr;
}
.app-shell .tax-report-page .cover-reports li {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 0;
}
.app-shell .tax-report-page .cover-reports span {
  white-space: nowrap;
  display: inline-block;
  margin-top: 4px;
}
.app-shell .tax-report-page .yearly-expense-matrix {
  table-layout: fixed;
}
.app-shell .tax-report-page .yearly-expense-matrix .expense-category-col {
  width: 12%;
}
.app-shell .tax-report-page .yearly-expense-matrix .expense-month-col {
  width: 6.4%;
}
.app-shell .tax-report-page .yearly-expense-matrix .expense-total-col {
  width: 11.2%;
}
.app-shell .year-end-page .preflight-panel {
  margin-bottom: 0;
}
.app-shell .year-end-page .panel-heading {
  margin-bottom: 24px;
}
.app-shell .year-end-page .panel-heading h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0;
}
.app-shell .year-end-page .panel-heading p {
  color: var(--color-text-primary, #222222);
  font-size: 14px;
  font-weight: 400;
}
.app-shell .year-end-page .submission-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-shell .year-end-page .submission-item {
  border-color: #d5dfeb;
  box-shadow: none;
}
.app-shell .year-end-page .submission-item strong {
  font-weight: 500;
}
.app-shell .year-end-page .submission-item.is-backup {
  border: 0;
  grid-column: 1/-1;
}
.app-shell .year-end-page .submission-item.is-backup.is-backup-fresh {
  background: color-mix(in srgb, var(--state-success-bg) 32%, #fff);
}
.app-shell .year-end-page .submission-item.is-backup.is-backup-stale {
  background: var(--state-attention-bg, #fff2f3);
}
.app-shell .year-end-page .badge--icon.badge--success,
.app-shell .year-end-page .badge--icon.badge--notice {
  background: transparent;
  height: 24px;
  width: 24px;
}
.app-shell .year-end-page .badge--icon.badge--success {
  color: var(--state-success-text, #166534);
}
.app-shell .year-end-page .badge--icon.badge--notice {
  color: var(--state-attention-text, #c92b1d);
}
.app-shell .year-end-page .badge--icon.badge--success::before,
.app-shell .year-end-page .badge--icon.badge--notice::before {
  background: currentColor;
  content: "";
  height: 24px;
  width: 24px;
}
.app-shell .year-end-page .badge--icon.badge--success::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center/24px 24px no-repeat;
}
.app-shell .year-end-page .badge--icon.badge--notice::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") center/24px 24px no-repeat;
}

.app-shell .expense-create-page .toolbar,
.app-shell .sale-create-page .toolbar,
.app-shell .edit-sale-page .toolbar {
  margin-bottom: 24px;
}
.app-shell .expense-create-page .page-title h2,
.app-shell .sale-create-page .page-title h2,
.app-shell .edit-sale-page .page-title h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}
.app-shell .expense-create-page .speed-input-panel,
.app-shell .sale-create-page .speed-input-panel,
.app-shell .edit-sale-page .speed-input-panel {
  margin-bottom: 0;
}
.app-shell .expense-create-page .speed-form,
.app-shell .sale-create-page .speed-form,
.app-shell .edit-sale-page .speed-form {
  padding: 0;
}
.app-shell .expense-create-page .speed-form .primary-section-title,
.app-shell .sale-create-page .speed-form .primary-section-title,
.app-shell .edit-sale-page .speed-form .primary-section-title {
  align-items: start;
  background: transparent;
  border-bottom: 0;
  display: grid;
  gap: 2px;
  padding-bottom: 16px;
}
.app-shell .expense-create-page .speed-form .primary-section-title strong,
.app-shell .sale-create-page .speed-form .primary-section-title strong,
.app-shell .edit-sale-page .speed-form .primary-section-title strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.app-shell .expense-create-page .speed-form .primary-section-title span,
.app-shell .sale-create-page .speed-form .primary-section-title span,
.app-shell .edit-sale-page .speed-form .primary-section-title span {
  font-size: 14px;
  line-height: 1.6;
}
.app-shell .expense-create-page .input-submit-row,
.app-shell .sale-create-page .input-submit-row,
.app-shell .edit-sale-page .input-submit-row {
  border-top: 0;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.app-shell .expense-create-page .input-submit-row form,
.app-shell .sale-create-page .input-submit-row form,
.app-shell .edit-sale-page .input-submit-row form {
  margin: 0;
  width: auto;
}
.app-shell .expense-create-page .input-submit-row button,
.app-shell .sale-create-page .input-submit-row button,
.app-shell .edit-sale-page .input-submit-row button {
  font-size: 16px;
  font-weight: 500;
  min-height: 56px;
  min-width: min(280px, 100%);
  padding: 0 36px;
}
.app-shell .expense-create-page details.form-details summary span,
.app-shell .sale-create-page details.form-details summary span,
.app-shell .edit-sale-page details.form-details summary span {
  color: var(--color-text-primary, #222222);
}
.app-shell .expense-create-page details.form-details::details-content,
.app-shell .sale-create-page details.form-details::details-content,
.app-shell .edit-sale-page details.form-details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.22s allow-discrete;
}
.app-shell .expense-create-page details.form-details .details-grid,
.app-shell .sale-create-page details.form-details .details-grid,
.app-shell .edit-sale-page details.form-details .details-grid {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.app-shell .expense-create-page details.form-details[open]::details-content,
.app-shell .sale-create-page details.form-details[open]::details-content,
.app-shell .edit-sale-page details.form-details[open]::details-content {
  block-size: auto;
}
.app-shell .expense-create-page details.form-details[open] .details-grid,
.app-shell .sale-create-page details.form-details[open] .details-grid,
.app-shell .edit-sale-page details.form-details[open] .details-grid {
  opacity: 1;
  transform: translateY(0);
}
.app-shell .expense-create-page .recent-copy-block,
.app-shell .sale-create-page .recent-copy-block,
.app-shell .edit-sale-page .recent-copy-block {
  border-radius: var(--radius-md, 8px);
  box-shadow: none;
  display: grid;
  gap: 10px;
}
.app-shell .expense-create-page .assist-heading strong,
.app-shell .sale-create-page .assist-heading strong,
.app-shell .edit-sale-page .assist-heading strong {
  font-size: 16px;
  font-weight: 500;
}
.app-shell .expense-create-page .assist-block-title strong,
.app-shell .sale-create-page .assist-block-title strong,
.app-shell .edit-sale-page .assist-block-title strong {
  font-weight: 400;
}
.app-shell .expense-create-page .assist-copy-list,
.app-shell .expense-create-page .assist-menu-list,
.app-shell .sale-create-page .assist-copy-list,
.app-shell .sale-create-page .assist-menu-list,
.app-shell .edit-sale-page .assist-copy-list,
.app-shell .edit-sale-page .assist-menu-list {
  display: grid;
  gap: 0;
  margin-left: -12px;
  margin-right: -12px;
  overflow-y: auto;
}
.app-shell .expense-create-page .assist-copy-list,
.app-shell .sale-create-page .assist-copy-list,
.app-shell .edit-sale-page .assist-copy-list {
  gap: 12px;
  margin-left: 0;
  margin-right: 0;
  max-height: 380px;
  overflow-x: hidden;
  padding: 0 4px 2px 0;
  scrollbar-gutter: stable;
}
.app-shell .expense-create-page .assist-copy-list a,
.app-shell .sale-create-page .assist-copy-list a,
.app-shell .edit-sale-page .assist-copy-list a {
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-tiny, 0 1px 2px rgba(15, 23, 42, 0.05));
  color: var(--color-text-primary, #222222);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 96px;
  min-width: 0;
  padding: 16px 12px;
  text-decoration: none;
  transform: none;
  width: 100%;
}
.app-shell .expense-create-page .assist-copy-list a:last-child,
.app-shell .sale-create-page .assist-copy-list a:last-child,
.app-shell .edit-sale-page .assist-copy-list a:last-child {
  border-bottom: 0;
}
.app-shell .expense-create-page .assist-copy-list a:hover,
.app-shell .sale-create-page .assist-copy-list a:hover,
.app-shell .edit-sale-page .assist-copy-list a:hover {
  background: #f8fbff;
  border-color: #c9d7e8;
  color: var(--color-text-primary, #222222);
  transform: none;
}
.app-shell .expense-create-page .assist-copy-list strong,
.app-shell .sale-create-page .assist-copy-list strong,
.app-shell .edit-sale-page .assist-copy-list strong {
  color: var(--color-text-primary, #222222);
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .expense-create-page .assist-copy-list em,
.app-shell .sale-create-page .assist-copy-list em,
.app-shell .edit-sale-page .assist-copy-list em {
  color: inherit;
  font-size: 14px;
  margin-left: 10px;
}
.app-shell .expense-create-page .assist-copy-list b,
.app-shell .sale-create-page .assist-copy-list b,
.app-shell .edit-sale-page .assist-copy-list b {
  background: #eef5ff;
  border-radius: var(--radius-sm, 6px);
  color: var(--color-link, #115fcc);
  display: inline-flex;
  font-size: 12px;
  font-weight: 400;
  grid-column: 2;
  justify-content: center;
  margin-bottom: auto;
  min-height: 32px;
  min-width: 56px;
  padding: 6px 8px;
}
.app-shell .expense-create-page .assist-copy-card__main,
.app-shell .sale-create-page .assist-copy-card__main,
.app-shell .edit-sale-page .assist-copy-card__main {
  grid-column: 1;
  min-width: 0;
}
.app-shell .expense-create-page .assist-copy-card__main span,
.app-shell .expense-create-page .assist-copy-card__main time,
.app-shell .sale-create-page .assist-copy-card__main span,
.app-shell .sale-create-page .assist-copy-card__main time,
.app-shell .edit-sale-page .assist-copy-card__main span,
.app-shell .edit-sale-page .assist-copy-card__main time {
  color: var(--color-text-secondary, #555555);
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .expense-create-page .assist-menu-list,
.app-shell .sale-create-page .assist-menu-list,
.app-shell .edit-sale-page .assist-menu-list {
  max-height: 184px;
}
.app-shell .expense-create-page .assist-menu-button,
.app-shell .sale-create-page .assist-menu-button,
.app-shell .edit-sale-page .assist-menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--color-text-primary, #222222);
  display: grid;
  font: inherit;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  min-height: 36px;
  padding: 8px 12px;
  transform: none;
  width: 100%;
}
.app-shell .expense-create-page .assist-menu-button span,
.app-shell .sale-create-page .assist-menu-button span,
.app-shell .edit-sale-page .assist-menu-button span {
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .expense-create-page .assist-menu-button:last-child,
.app-shell .sale-create-page .assist-menu-button:last-child,
.app-shell .edit-sale-page .assist-menu-button:last-child {
  border-bottom: 0;
}
.app-shell .expense-create-page .assist-menu-button:hover,
.app-shell .sale-create-page .assist-menu-button:hover,
.app-shell .edit-sale-page .assist-menu-button:hover {
  background: #eef2f6;
  color: var(--color-text-primary, #222222);
  transform: none;
}
.app-shell .edit-sale-page .related-invoices-panel {
  margin-bottom: 24px;
}
.app-shell .edit-sale-page .related-invoice-link-list {
  display: grid;
  gap: 6px;
}
.app-shell .edit-sale-page .related-invoice-link {
  align-items: center;
  color: var(--color-text-primary, #222222);
  display: inline-flex;
  gap: 8px;
  font-size: var(--type-body, 14px);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  width: fit-content;
}
.app-shell .edit-sale-page .related-invoice-link:hover {
  color: var(--color-link, #115fcc);
}
.app-shell .edit-sale-page .related-invoice-link-icon {
  background: var(--color-success, #15803d);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  position: relative;
  width: 18px;
}
.app-shell .edit-sale-page .related-invoice-link-icon::after {
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  top: 5px;
  transform: rotate(-45deg);
  width: 8px;
}
.app-shell .expense-create-page .expense-assist,
.app-shell .sale-create-page .sale-assist {
  background: var(--color-bg-assist, #ddebff);
  border-radius: 12px;
  height: auto;
  margin-left: 24px;
  padding: 20px 16px;
}
.app-shell .expense-create-page .assist-template-block {
  background: #fff;
  border-radius: var(--radius-md, 8px);
  box-shadow: none;
  gap: 10px;
  padding: 12px;
}
.app-shell .expense-create-page .assist-template-block {
  display: none;
}
.app-shell .expense-create-page .assist-template-select-label {
  display: block;
}
.app-shell .expense-create-page .assist-template-select-label select {
  background-color: #fff;
  background-image: var(--select-arrow);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  border: 1px solid var(--color-control-border, #cbd5e1);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 400;
  min-height: 42px;
  width: 100%;
}
.app-shell .sale-create-page .assist-details {
  background: #fff;
  border-radius: var(--radius-md, 8px);
  box-shadow: none;
  gap: 10px;
  padding: 12px;
}
.app-shell .sale-create-page .assist-details summary {
  border-bottom: 1px solid #e1e8f0;
  margin-bottom: 0;
  padding-bottom: 8px;
}
.app-shell .sale-create-page .assist-details {
  display: none;
}
.app-shell .sale-create-page .input-side-memo summary span {
  color: var(--color-text-primary, #222222);
}
.app-shell .input-page .notice--action {
  align-items: flex-start;
  gap: 12px;
}
.app-shell .input-page .notice--action span {
  line-height: 1.6;
}
.app-shell .speed-form .form-warning {
  grid-column: 1/-1;
  margin: 2px 0 0;
}
.app-shell .speed-form .form-warning + .input-submit-row {
  margin-top: 0;
}
.app-shell .speed-form .duplicate-warning,
.app-shell .speed-form .withholding-warning {
  font-size: 14px;
  font-weight: 400;
}
.app-shell .speed-form .duplicate-warning strong,
.app-shell .speed-form .withholding-warning strong {
  font-weight: 500;
}
.app-shell .mobile-assist-selects {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  order: 2;
}
.app-shell .mobile-assist-selects .assist-select--recent {
  display: none;
}
.app-shell .mobile-assist-selects label {
  display: grid;
  gap: 6px;
}
.app-shell .mobile-assist-selects span {
  color: var(--color-text-primary, #222222);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.app-shell .mobile-assist-selects select {
  background-color: #fff;
  background-image: var(--select-arrow);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  border: 1px solid var(--color-control-border, #cbd5e1);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 400;
  min-height: 42px;
  width: 100%;
}

@media (max-width: 640px) {
  .app-shell .expense-create-page .expense-assist,
  .app-shell .sale-create-page .sale-assist {
    border-top: 0;
    margin-left: 0;
    margin-top: 22px;
    padding: 18px 12px 14px;
  }
  .app-shell .expense-create-page .expense-assist .assist-heading,
  .app-shell .sale-create-page .sale-assist .assist-heading {
    padding: 0 4px;
  }
  .app-shell .expense-create-page .recent-copy-block,
  .app-shell .sale-create-page .recent-copy-block {
    display: grid;
    margin-top: 14px;
    order: 1;
  }
}
.print-profile {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 16px;
  margin: 10px 0 0;
}
.print-profile div {
  align-items: baseline;
  display: inline-flex;
  gap: 5px;
}
.print-profile dt {
  font-weight: 700;
}
.print-profile dd {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .month-detail-layout {
    grid-template-columns: 1fr;
  }
  .month-detail-layout .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }
  .app-header-inner {
    align-items: start;
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 16px 0 14px;
  }
  .app-nav {
    grid-template-columns: 1fr;
  }
  .app-topbar {
    align-items: stretch;
    flex-direction: column;
    margin-top: 12px;
  }
  .global-search {
    max-width: none;
  }
  .topbar-settings-menu {
    display: none;
  }
}
@media (max-width: 1099px) {
  body.app-shell {
    --mobile-shell-padding-x: 20px;
  }
  body.app-shell.nav-open {
    overflow: hidden;
  }
  body.app-shell.nav-open > .app-header {
    transform: translateX(0) !important;
  }
  .app-shell {
    --shell-card-padding: 28px var(--mobile-shell-padding-x) 36px;
  }
  .app-shell .app-topbar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    margin: 14px auto 0;
    width: min(100% - 32px, 760px);
  }
  .app-shell .topbar-title {
    display: block;
    min-width: 0;
  }
  .app-shell .topbar-title h1 {
    color: var(--color-text-primary, #222222);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
  }
  .app-shell .mobile-nav-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--color-text-primary, #222222);
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    grid-column: 3;
    grid-row: 1;
    height: 40px;
    justify-content: center;
    padding: 0;
    transform: none;
    width: 40px;
  }
  .app-shell .mobile-nav-toggle:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .app-shell .mobile-nav-toggle svg {
    display: block;
    height: 24px;
    width: 24px;
  }
  .app-shell .global-search {
    grid-column: 1/-1;
    max-width: none;
    width: 100%;
  }
  .app-shell .topbar-settings-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .app-shell .mobile-nav-backdrop {
    background: rgba(15, 23, 42, 0.28);
    display: block;
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity 0.18s ease;
    z-index: var(--z-mobile-backdrop);
  }
  .app-shell .mobile-nav-backdrop[hidden] {
    display: none;
  }
  .app-shell .app-header {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    color: var(--color-text-primary, #222222);
    display: block;
    height: 100dvh;
    left: auto;
    max-width: calc(100vw - 48px);
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform 0.2s ease;
    width: 288px;
    z-index: var(--z-mobile-drawer);
  }
  .app-shell .mobile-nav-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--color-text-primary, #222222);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 14px;
    transform: none;
    width: 40px;
    z-index: var(--z-raised);
  }
  .app-shell .mobile-nav-close:hover {
    background: transparent;
    box-shadow: none;
    color: var(--color-link, #115fcc);
    transform: none;
  }
  .app-shell .mobile-nav-close svg {
    display: block;
    height: 22px;
    width: 22px;
  }
  .app-shell .app-header-inner {
    margin: 0;
    padding: 54px 22px 40px;
    width: auto;
  }
  .app-shell .app-nav {
    gap: 18px;
  }
  .app-shell main {
    margin: 24px auto 32px;
  }
  .app-shell .home-page .home-summary .metric,
  .app-shell .home-page .home-summary .metric + .metric,
  .app-shell .home-page .overview-summary .metric,
  .app-shell .home-page .overview-summary .metric + .metric,
  .app-shell .month-page .home-summary .metric,
  .app-shell .month-page .home-summary .metric + .metric,
  .app-shell .month-page .overview-summary .metric,
  .app-shell .month-page .overview-summary .metric + .metric,
  .app-shell .overview-page .home-summary .metric,
  .app-shell .overview-page .home-summary .metric + .metric,
  .app-shell .overview-page .overview-summary .metric,
  .app-shell .overview-page .overview-summary .metric + .metric {
    border-left: 0;
    border-top: 0;
  }
  .app-shell.nav-open .mobile-nav-backdrop {
    opacity: 1;
  }
  .app-shell.nav-open .app-header {
    transform: translateX(0);
  }
}
@media (max-width: 640px) {
  .app-shell .form-grid,
  .app-shell .speed-form,
  .app-shell .details-grid,
  .app-shell .period-pair {
    grid-template-columns: 1fr;
  }
  .app-shell .search-page .search-form,
  .app-shell .search-page .search-primary,
  .app-shell .search-page .keyword-field {
    min-width: 0;
    width: 100%;
  }
  .app-shell .search-page .keyword-field {
    overflow: hidden;
  }
  .app-shell .search-page .keyword-field input {
    max-width: 100%;
    min-width: 0;
  }
  .app-shell .search-page .table-panel {
    overflow-x: auto;
  }
  .app-shell .overview-page .table-wrap {
    margin-left: calc(-1 * var(--mobile-shell-padding-x));
    margin-right: calc(-1 * var(--mobile-shell-padding-x));
    padding-left: var(--mobile-shell-padding-x);
    padding-right: var(--mobile-shell-padding-x);
  }
  .app-shell .overview-month-table {
    min-width: 680px;
    table-layout: auto;
  }
  .app-shell .overview-month-table th,
  .app-shell .overview-month-table td {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .app-shell .month-detail-layout {
    gap: var(--space-5, 12px);
  }
  .app-shell .month-detail-layout .month-entry-panel {
    min-width: 0;
    padding: var(--space-6, 16px);
  }
  .app-shell .month-detail-layout .month-entry-panel .table-wrap {
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    padding: 0 0 var(--space-2, 6px);
    width: 100%;
  }
  .app-shell .month-detail-layout .month-status {
    min-width: 0;
    overflow: hidden;
  }
  .app-shell .month-entry-table {
    min-width: 680px;
    table-layout: fixed;
  }
  .app-shell .month-entry-table th,
  .app-shell .month-entry-table td {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .app-shell .deposits-page .compact-summary-bar .metric,
  .app-shell .deposits-page .compact-summary-bar .metric + .metric {
    border-left: 0;
    border-top: 0;
  }
  .app-shell .deposits-page .panel h2 {
    font-size: 18px;
  }
  .app-shell .deposits-page .deposit-month-detail summary span {
    font-size: 18px;
  }
  .app-shell .year-end-page .submission-list {
    grid-template-columns: 1fr;
  }
  .app-shell .tax-report-page .toolbar {
    align-items: stretch;
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
  }
  .app-shell .tax-report-page .page-title h2 {
    font-size: 24px;
    line-height: 1.3;
    white-space: nowrap;
  }
  .app-shell .tax-report-page .page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .app-shell .tax-report-page .page-actions form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .app-shell .tax-report-page .page-actions select {
    width: auto;
  }
  .app-shell .tax-report-page .report-mobile-guidance {
    background: var(--accent-soft, #eef2ff);
    border-radius: 10px;
    color: var(--accent, #002e67);
    display: grid;
    gap: 6px;
    line-height: 1.65;
    margin-bottom: 20px;
    padding: 12px 14px;
  }
  .app-shell .tax-report-page .report-mobile-guidance strong {
    color: inherit;
    font-size: 14px;
    font-weight: 500;
  }
  .app-shell .tax-report-page .report-mobile-guidance span {
    color: inherit;
    font-size: 14px;
  }
  .app-shell .tax-report-page .report-print-preview {
    -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--mobile-shell-padding-x));
    margin-right: calc(-1 * var(--mobile-shell-padding-x));
    overflow-x: auto;
    padding-left: var(--mobile-shell-padding-x);
    padding-right: var(--mobile-shell-padding-x);
  }
  .app-shell .tax-report-page .report-document {
    min-width: 980px;
  }
  .app-shell .help::after {
    display: none;
  }
}
@media (min-width: 1100px) {
  body.app-shell {
    --app-layout-width: min(1280px, calc(100vw - 64px));
    --app-layout-gap: 0px;
    --app-main-overlap: 0px;
    --app-sidebar-offset-x: 0px;
    --app-sidebar-open: 224px;
    --app-sidebar-width: var(--app-sidebar-open);
    --app-main-width: calc(
        var(--app-layout-width) - var(--app-sidebar-width) +
            var(--app-main-overlap)
    );
    align-items: start;
    column-gap: var(--app-layout-gap);
    display: grid;
    grid-template-columns: var(--app-sidebar-width) minmax(0, var(--app-main-width));
    justify-content: center;
    overflow-anchor: none;
    transition: none;
  }
  .app-shell {
    --shell-card-min-height: calc(100vh - 120px);
  }
  .app-shell .app-header {
    background: transparent;
    border: 0;
    border-radius: 18px 0 0 18px;
    box-shadow: none;
    color: var(--color-text-primary, #222222);
    grid-column: 1;
    grid-row: 2;
    height: auto;
    inset: auto;
    margin: 24px 0 32px var(--app-sidebar-offset-x);
    min-height: 0;
    overflow: visible;
    position: static;
    top: auto;
    transition: none;
    width: var(--app-sidebar-width);
    will-change: width;
    z-index: var(--z-base);
  }
  .app-shell .app-header-inner {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0 16px 28px 20px;
    transition: none;
    width: var(--app-sidebar-open);
  }
  .app-shell .app-topbar {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-column: 1/-1;
    grid-row: 1;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 380px) auto;
    margin: 18px auto 0;
    max-width: none;
    transform: none;
    width: var(--app-layout-width);
  }
  .app-shell .topbar-title {
    display: block;
    min-width: 0;
  }
  .app-shell .topbar-title h1 {
    color: var(--color-text-primary, #222222);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
  }
  .app-shell .global-search {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
  .app-shell .topbar-settings-menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .app-shell main {
    grid-column: 2;
    grid-row: 2;
    margin: 24px 0 32px;
    max-width: none;
    min-width: 0;
    position: relative;
    transform: none;
    width: 100%;
    z-index: var(--z-raised);
  }
  .app-shell .app-nav {
    align-self: start;
    display: grid;
    gap: 8px;
    margin-top: 0;
    opacity: 1;
    transition: none;
  }
  .app-shell .app-nav-section {
    border-top: 0;
    gap: 6px;
    overflow: hidden;
    transition: none;
  }
  .app-shell .app-nav-section p {
    line-height: 1.4;
    margin: -4px 0 0 34px;
    max-height: 240px;
    opacity: 1;
    overflow: hidden;
    transform: none;
    transition: none;
    visibility: visible;
  }
  .app-shell .app-nav-heading {
    gap: 10px;
    min-height: 28px;
    transition: none;
    white-space: nowrap;
  }
  .app-shell .app-nav-heading span {
    display: inline-block;
    max-height: 240px;
    max-width: 160px;
    opacity: 1;
    overflow: hidden;
    transform: none;
    transition: none;
    visibility: visible;
  }
  .app-shell .app-nav-links {
    gap: 2px;
    margin-left: 34px;
    max-height: 240px;
    opacity: 1;
    overflow: hidden;
    transform: none;
    transition: none;
    visibility: visible;
  }
  .app-shell .app-header .app-nav-links a {
    line-height: 1.35;
    padding: 4px 8px 4px 0;
  }
}
@media print {
  .app-shell .tax-report-page .report-print-preview,
  .app-shell .tax-report-page .report-document {
    display: block;
    min-width: 0;
    overflow: visible;
  }
  .app-shell .tax-report-page .tax-report-shell-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
  }
  .app-header {
    display: none !important;
  }
  .app-topbar {
    display: none !important;
  }
  main {
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
  .print-profile {
    color: #374151;
    font-size: 12px;
    margin-top: 4px;
  }
}
