/* Web presentation shares the Miniapp V30 palette; business templates own their data. */
.web-v30 {
    --web-primary: #0A66FF;
    --web-primary-pressed: #0057DF;
    --web-primary-soft: #EAF2FF;
    --web-background: #F5F5F7;
    --web-surface: #FFFFFF;
    --web-text: #1D1D1F;
    --web-secondary: #6E6E73;
    --web-border: #E5E5EA;
    --pico-primary: var(--web-primary);
    background: var(--web-background);
    color: var(--web-text);
}
.web-navigation { background: var(--web-surface); border-color: var(--web-border); box-shadow: none; }
.web-navigation a, .web-navigation a.contrast { color: var(--web-text); }
.web-navigation a:hover { color: var(--web-primary); text-decoration: none; }
.web-navigation a:focus-visible { outline-color: var(--web-primary); }
.web-brand { flex-shrink: 0; }
.web-brand strong { font-size: 1.05rem; }
.web-account-name { overflow-wrap: anywhere; }
.web-preview-banner { padding: 12px 16px; background: var(--web-primary-soft); color: #0057DF; border: 1px solid #C9DCFF; border-radius: 12px; font-size: 14px; }
.web-page-heading { margin: 8px 0 24px; }
.web-page-heading h2 { margin: 4px 0; font-size: 28px; letter-spacing: -.03em; }
.web-eyebrow { margin: 0; font-size: 14px; color: var(--web-secondary); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) a { color: var(--web-primary); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(article,details,.filter-form,.summary-bar) { background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 16px; box-shadow: none; }
:is(.web-dashboard,.web-purchase,.web-sales) .filter-form { padding: 20px; }
:is(.web-dashboard,.web-purchase,.web-sales) .filter-form .grid { align-items: end; }
:is(.web-dashboard,.web-purchase,.web-sales) .filter-form label { font-size: 14px; margin-bottom: 0; color: var(--web-secondary); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(input:not([type="hidden"]),select,textarea) { border-color: var(--web-border); border-radius: 10px; min-height: 44px; }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(input,select,textarea):focus { border-color: var(--web-primary); outline-color: rgb(10 102 255 / 18%); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(button,[role="button"]) { border-color: var(--web-primary); background: var(--web-primary); border-radius: 10px; min-height: 44px; }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(button,[role="button"]):hover { background: var(--web-primary-pressed); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(button.outline,[role="button"].outline) { color: var(--web-primary); background: var(--web-surface); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :is(button.outline,[role="button"].outline):hover { background: var(--web-primary-soft); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) button.secondary { color: var(--web-secondary); background: #EDEDF0; border-color: var(--web-border); }
:is(.web-login,.web-dashboard,.web-purchase,.web-sales) :focus-visible { outline-color: var(--web-primary); }
.web-login { max-width: 420px; margin: 48px auto; }
.web-login-heading { text-align: center; margin-bottom: 24px; }
.web-login-heading h2 { font-size: 28px; margin: 16px 0 8px; }
.web-login-mark { width: 56px; height: 56px; margin: auto; display: grid; place-items: center; border-radius: 18px; background: var(--web-primary); color: white; font-size: 28px; font-weight: 700; }
.web-login-card { padding: 28px; border: 1px solid var(--web-border); border-radius: 16px; background: var(--web-surface); }
.web-login-card label { font-size: 14px; }
.web-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.web-metrics .web-metric { margin: 0; padding: 20px; overflow-wrap: anywhere; }
.web-metric h5 { margin: 0 0 16px; color: var(--web-secondary); font-weight: 500; font-size: 14px; }
.web-metric small { display: block; margin-top: 8px; color: var(--web-secondary); font-size: 12px; }
.web-summary-section { padding: 20px; margin: 16px 0; }
.web-summary-section summary { font-size: 18px; }
.web-dashboard th, :is(.web-purchase,.web-sales) th { color: var(--web-secondary); background: #FAFAFC; font-size: 13px; }
:is(.web-dashboard,.web-purchase,.web-sales) :is(th,td) { border-color: var(--web-border); padding: 14px 12px; }
:is(.web-dashboard,.web-purchase,.web-sales) .striped tbody tr:nth-child(even) { background: #FAFAFC; }
.web-dashboard td:not(:first-child), .web-dashboard th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.web-dashboard .web-payment-section td:nth-child(-n+2), .web-dashboard .web-payment-section th:nth-child(-n+2) { text-align: left; }
.web-payment-section { margin-top: 24px; }
.web-dashboard .pagination, :is(.web-purchase,.web-sales) .web-pagination { position: static; background: transparent; box-shadow: none; border: 0; min-height: 44px; flex-direction: row; flex-wrap: wrap; }
:is(.web-purchase,.web-sales) .summary-bar { padding: 20px; gap: 24px; margin: 20px 0; }
:is(.web-purchase,.web-sales) .summary-bar strong { font-variant-numeric: tabular-nums; }
:is(.web-purchase,.web-sales) .summary-bar > :last-child { margin-left: auto; color: var(--web-secondary); font-size: 14px; }
:is(.web-purchase,.web-sales) details { padding: 20px; }
:is(.web-purchase-table,.web-sales-table) { border: 1px solid var(--web-border); border-radius: 16px; }
:is(.web-purchase-table,.web-sales-table) table { min-width: 1100px; }
.web-purchase-table td:nth-child(n+7):nth-child(-n+9), .web-purchase-table th:nth-child(n+7):nth-child(-n+9) { text-align: right; font-variant-numeric: tabular-nums; }
:is(.web-purchase,.web-sales) .action-cell { white-space: normal; min-width: 170px; }
:is(.web-purchase,.web-sales) .action-cell :is(button,a,form) { margin: 2px 0; }
:is(.web-purchase,.web-sales) button.small, :is(.web-purchase,.web-sales) a[role="button"].small { min-height: 40px; padding: 8px 12px; }
:is(.web-purchase,.web-sales) .action-cell .hint { display: block; }
:is(.web-purchase,.web-sales) button.del-btn:hover { background: #FFF0EF; }
:is(.web-purchase,.web-sales) dialog { border-radius: 16px; max-height: calc(100dvh - 32px); }
:is(.web-purchase,.web-sales) dialog article { min-width: 0; padding: 24px; }
:is(.web-purchase,.web-sales) dialog header { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--web-border); }
:is(.web-purchase,.web-sales) dialog .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
:is(.web-purchase,.web-sales) dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.web-empty { padding: 32px 16px; margin: 0; text-align: center; color: var(--web-secondary); }
@media (min-width: 901px) {
    .web-authenticated .web-navigation { position: fixed; left: 0; top: 0; bottom: 0; width: 220px; padding: 24px 16px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; border-right: 1px solid var(--web-border); border-bottom: 0; }
    .web-authenticated .web-navigation ul { flex-direction: column; align-items: stretch; }
    .web-authenticated .web-nav-links { flex: 1; gap: 8px; }
    .web-authenticated .web-nav-links a { display: block; padding: 12px 16px; border-radius: 12px; }
    .web-authenticated .web-nav-links a:hover { background: var(--web-primary-soft); }
    .web-authenticated .web-account-name { margin-top: auto; padding: 12px 16px 0; }
    .web-authenticated .web-account-logout { padding: 0 16px; }
    .web-authenticated :is(.web-content,.web-flashes,.web-footer) { width: calc(100% - 284px); max-width: 1400px; margin-left: 252px; margin-right: 32px; }
    .web-content { padding-top: 32px; }
}
@media (max-width: 1100px) {
    .web-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .web-authenticated { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .web-navigation { position: sticky; top: 0; min-height: 64px; padding: 16px; flex-direction: row; align-items: center; }
    .web-navigation .web-brand { width: auto; }
    .web-authenticated .web-nav-links { position: fixed; bottom: 0; left: 0; right: 0; min-height: 68px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--web-border); justify-content: space-around; gap: 4px; }
    .web-authenticated .web-nav-links a { padding: 12px 8px; font-size: 14px; }
    .web-account-name { position: fixed; top: 22px; right: 64px; max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .web-account-logout { position: fixed; top: 19px; right: 16px; }
    .web-account-logout button { min-height: 28px; }
    .web-public .web-nav-links:empty { display: none; }
    .web-content { padding-top: 20px; }
}
@media (max-width: 600px) {
    .web-brand strong { font-size: .95rem; }
    .web-account-name { max-width: 70px; }
    .web-page-heading { margin-bottom: 20px; }
    .web-page-heading h2 { font-size: 24px; }
    .web-login { margin: 32px auto; }
    .web-login-card { padding: 24px; }
    .web-metrics { gap: 12px; }
    .web-metrics .web-metric { padding: 16px; }
    .web-metric > div { font-size: 1.4rem !important; }
    :is(.web-dashboard,.web-purchase,.web-sales) .filter-form { padding: 16px; }
    :is(.web-dashboard,.web-purchase,.web-sales) .filter-form .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .web-summary-section { padding: 16px; }
    :is(.web-purchase,.web-sales) .summary-bar { align-items: stretch; gap: 12px; }
    :is(.web-purchase,.web-sales) .summary-bar > :last-child { margin-left: 0; }
    :is(.web-purchase-table,.web-sales-table) { border: 0; overflow: visible; }
    :is(.web-purchase-table,.web-sales-table) table { min-width: 0; display: block; background: transparent; }
    :is(.web-purchase-table,.web-sales-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    :is(.web-purchase-table,.web-sales-table) tbody { display: grid; gap: 16px; }
    :is(.web-purchase-table,.web-sales-table) tr { display: grid; grid-template-columns: minmax(0,1fr); padding: 16px; background: white !important; border: 1px solid var(--web-border); border-radius: 16px; }
    :is(.web-purchase-table,.web-sales-table) td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 6px 0; min-width: 0; text-align: right; }
    :is(.web-purchase-table,.web-sales-table) td::before { content: attr(data-label); color: var(--web-secondary); flex: 0 0 76px; text-align: left; font-weight: 400; }
    :is(.web-purchase-table,.web-sales-table) td:first-child { font-size: 16px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--web-border); }
    :is(.web-purchase-table,.web-sales-table) .action-cell { display: block; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--web-border); text-align: left; }
    :is(.web-purchase-table,.web-sales-table) .action-cell::before { display: block; margin-bottom: 8px; }
    :is(.web-purchase-table,.web-sales-table) .action-cell button { margin: 4px 4px 4px 0; }
    :is(.web-purchase,.web-sales) dialog .grid { grid-template-columns: 1fr; }
    :is(.web-purchase,.web-sales) dialog article { padding: 20px; }
}

.web-navigation a.web-nav-active { color: var(--web-primary); background: var(--web-primary-soft); font-weight: 600; }
:is(.web-purchase,.web-sales) .web-advanced-filters { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px; }
:is(.web-purchase,.web-sales) .web-advanced-filters summary { font-size: 14px; color: var(--web-secondary); }
.web-sales .web-sales-sections { position: static; z-index: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin: 0 0 24px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.web-sales .web-sales-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 10px; font-size: 14px; }
.web-sales .web-sales-sections a:hover, .web-sales .web-sales-sections a.contrast { background: var(--web-primary-soft); border-color: #C9DCFF; color: var(--web-primary); text-decoration: none; }
.web-sales-section-heading { margin: 32px 0 12px; font-size: 20px; scroll-margin-top: 24px; }
.web-sales .filter-form .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.web-sales .filter-form button { justify-self: start; min-width: 100px; }
.web-sales-entry { margin: 16px 0; }
.web-sales-entry > summary { font-size: 16px; }
.web-sales .web-sales-form { margin-top: 20px; scroll-margin-top: 24px; }
.web-sales-form fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.web-sales-form legend { width: 100%; padding: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--web-text); }
.web-sales-form .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.web-sales :is(.web-sales-form,.web-sales-entry) label { margin-bottom: 0; font-size: 14px; font-weight: 500; color: var(--web-secondary); }
.web-sales-form :is(input,select,textarea) { color: var(--web-text); }
.web-sales-form .web-form-wide { grid-column: 1 / -1; }
.web-sales-form .web-inline-control { display: flex; align-items: stretch; gap: 8px; margin-top: .3rem; }
.web-sales-form .web-inline-control select { flex: 1; min-width: 0; margin-top: 0; }
.web-sales-form .web-inline-control button { width: 44px; min-width: 44px; margin: 0; }
.web-sales .sales-candidate-more { margin-top: 8px; }
.web-sales .sales-candidate-more[hidden] { display: none; }
.web-sales-table :is(th,td).web-number { text-align: right; font-variant-numeric: tabular-nums; }
.web-sales dialog footer { padding-top: 16px; border-top: 1px solid var(--web-border); }
.web-sales #quick-add-dialog { max-width: 480px; }
.web-sales #qa-extra label { margin-top: 16px; }
@media (min-width: 601px) {
    .web-sales-table table { min-width: 1400px; }
    .web-sales-table :is(th,.web-number,td[data-label="日期"],td[data-label="状态"]) { white-space: nowrap; overflow-wrap: normal; }
}
@media (max-width: 900px) {
    .web-navigation a.web-nav-active { background: transparent; }
    .web-sales-section-heading, .web-sales .web-sales-form { scroll-margin-top: 88px; }
}
@media (max-width: 600px) {
    .web-sales .web-sales-sections { gap: 6px; margin-bottom: 20px; }
    .web-sales .web-sales-sections a { padding: 8px 12px; }
    .web-sales :is(.filter-form,.web-sales-form) .grid { grid-template-columns: 1fr; }
    .web-sales .filter-form button, .web-sales-form > button { width: 100%; }
    .web-sales-form fieldset { margin-bottom: 20px; }
    .web-sales-table td > :is(strong,span) { min-width: 0; }
    .web-sales dialog footer > button { flex: 1; }
}

/* Administration keeps its existing permission controls and business forms. */
.web-admin a { color: var(--web-primary); }
.web-admin [hidden] { display: none !important; }
.web-admin .web-admin-section { min-width: 0; margin: 24px 0; padding: 24px; border: 1px solid var(--web-border); border-radius: 16px; background: var(--web-surface); }
.web-admin .web-admin-section-heading { margin: 0 0 20px; font-size: 20px; }
.web-admin :is(article,details) { border-color: var(--web-border); border-radius: 12px; background: var(--web-surface); box-shadow: none; }
.web-admin .web-admin-entry { margin: 16px 0; padding: 20px; }
.web-admin .web-admin-entry > summary { font-size: 16px; }
.web-admin .web-admin-entry > p { margin: 16px 0; color: var(--web-secondary); font-size: 14px; }
.web-admin label { margin-bottom: 0; font-size: 14px; color: var(--web-secondary); font-weight: 500; }
.web-admin :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea) { border-color: var(--web-border); border-radius: 10px; min-height: 44px; color: var(--web-text); }
.web-admin :is(input,select,textarea):focus { border-color: var(--web-primary); outline-color: rgb(10 102 255 / 18%); }
.web-admin :is(input[type="checkbox"],input[type="radio"]) { accent-color: var(--web-primary); }
.web-admin :focus-visible { outline-color: var(--web-primary); }
.web-admin :is(button,[role="button"]) { min-height: 44px; border-color: var(--web-primary); border-radius: 10px; background: var(--web-primary); }
.web-admin :is(button,[role="button"]):hover { background: var(--web-primary-pressed); }
.web-admin :is(button.outline,a.outline) { border-color: var(--web-primary); color: var(--web-primary); background: var(--web-surface); }
.web-admin :is(button.outline,a.outline):hover { background: var(--web-primary-soft); text-decoration: none; }
.web-admin button.secondary { border-color: var(--web-border); color: var(--web-secondary); background: #EDEDF0; }
.web-admin button.del-btn:hover { background: #FFF0EF; }
.web-admin :is(button.small,a.small) { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; }
.web-admin a.small { border: 1px solid var(--web-primary); border-radius: 10px; }
.web-admin .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: end; }
.web-admin .web-admin-form { margin: 20px 0 0; }
.web-admin .web-admin-form > button { margin-top: 16px; }
.web-admin .web-admin-inline-form { max-width: 640px; margin: 0 0 24px; }
.web-admin .web-admin-inline-form .grid { grid-template-columns: minmax(0,1fr) auto; }
.web-admin .web-admin-inline-form button { min-width: 96px; }
.web-admin :is(.web-admin-table,.web-admin-account-table) { min-width: 0; border: 1px solid var(--web-border); border-radius: 12px; }
.web-admin th { color: var(--web-secondary); background: #FAFAFC; font-size: 13px; }
.web-admin :is(th,td) { border-color: var(--web-border); padding: 14px 12px; }
.web-admin .striped tbody tr:nth-child(even) { background: #FAFAFC; }
.web-admin .web-number { text-align: right; font-variant-numeric: tabular-nums; }
.web-admin .web-admin-actions { min-width: 100px; }
.web-admin .web-admin-actions form { margin: 0; }
.web-admin #web-admin-rbac { margin: 24px 0; }
.web-admin #web-admin-rbac > details { margin: 16px 0; padding: 20px; border-color: var(--web-border); border-radius: 12px; }
.web-admin #rbac-feedback { padding: 16px; border-radius: 12px; background: var(--web-primary-soft); color: #0057DF; font-size: 14px; }
.web-admin #rbac-feedback[data-error="true"] { color: #9b2020; background: #fce4ec; }
.web-admin #rbac-admin-list > h3 { margin: 24px 0 8px; font-size: 18px; }
.web-admin #rbac-admin-list > .hint { margin-bottom: 16px; font-size: 14px; color: var(--web-secondary); }
.web-admin #rbac-account-detail { margin: 20px 0 0; padding: 24px; border-color: var(--web-border); border-radius: 12px; }
.web-admin #rbac-account-detail h3 { margin: 28px 0 12px; font-size: 18px; }
.web-admin #rbac-account-detail h3:first-child { margin-top: 0; }
.web-admin #rbac-account-detail h4 { font-size: 16px; }
.web-admin #rbac-account-detail > form { margin: 16px 0 24px; }
.web-admin #rbac-account-detail > form button { margin-top: 16px; }
.web-admin .rbac-info { gap: 8px 24px; color: var(--web-secondary); font-size: 14px; }
.web-admin .rbac-info p { min-width: 0; overflow-wrap: anywhere; }
.web-admin .rbac-permission-group { margin: 12px 0; padding: 0; border-color: var(--web-border); border-radius: 12px; overflow: hidden; }
.web-admin .rbac-permission-group summary { padding: 16px; font-size: 15px; }
.web-admin .rbac-permission-group[open] > summary { margin-bottom: 0; }
.web-admin .rbac-permission-row { padding: 16px; border-color: var(--web-border); }
.web-admin .rbac-permission-row > div { min-width: 0; overflow-wrap: anywhere; }
.web-admin .rbac-permission-row strong { font-size: 14px; }
.web-admin .rbac-permission-meta { color: var(--web-secondary); font-size: 12px; }
.web-admin .rbac-permission-switch { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--web-text); }
.web-admin dialog { max-width: 560px; max-height: calc(100dvh - 32px); border-radius: 16px; }
.web-admin dialog article { min-width: 0; padding: 24px; }
.web-admin dialog header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--web-border); }
.web-admin dialog .grid { grid-template-columns: 1fr; }
.web-admin dialog footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--web-border); }
@media (min-width: 601px) {
    .web-admin .web-admin-expense-table table { min-width: 680px; }
    .web-admin .web-admin-expense-table :is(th,.web-number,td[data-label="日期"],td[data-label="分类"]) { white-space: nowrap; overflow-wrap: normal; }
}
@media (max-width: 600px) {
    .web-admin .web-admin-section { margin: 20px 0; padding: 16px; }
    .web-admin .web-admin-section-heading { margin-bottom: 16px; font-size: 18px; }
    .web-admin .web-admin-entry, .web-admin #web-admin-rbac > details { padding: 16px; }
    .web-admin .grid, .web-admin .web-admin-inline-form .grid { grid-template-columns: 1fr; }
    .web-admin .web-admin-form > button, .web-admin .web-admin-inline-form button, .web-admin #rbac-account-detail > form button { width: 100%; }
    .web-admin .web-admin-table { border: 0; border-radius: 0; overflow: visible; }
    .web-admin .web-admin-table table { display: block; background: transparent; }
    .web-admin .web-admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .web-admin .web-admin-table tbody { display: grid; gap: 12px; }
    .web-admin .web-admin-table tr { display: grid; grid-template-columns: minmax(0,1fr); padding: 16px; border: 1px solid var(--web-border); border-radius: 12px; background: var(--web-surface); }
    .web-admin .web-admin-table td { display: flex; justify-content: space-between; gap: 12px; min-width: 0; padding: 6px 0; border: 0; text-align: right; }
    .web-admin .web-admin-table td::before { content: attr(data-label); flex: 0 0 64px; color: var(--web-secondary); font-weight: 400; text-align: left; }
    .web-admin .web-admin-table td:first-child { margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--web-border); }
    .web-admin .web-admin-table td > :is(strong,span) { min-width: 0; }
    .web-admin .web-admin-table .web-admin-actions { display: block; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--web-border); text-align: left; }
    .web-admin .web-admin-table .web-admin-actions::before { display: block; margin-bottom: 8px; }
    .web-admin #rbac-account-detail { padding: 16px; }
    .web-admin .rbac-permission-group summary, .web-admin .rbac-permission-row { padding: 12px; }
    .web-admin dialog article { padding: 20px; }
    .web-admin dialog footer > button { flex: 1; }
}

/* Finance uses the Miniapp's existing account and balance-sheet hierarchy. */
.web-finance [hidden] { display: none !important; }
.web-finance { max-width: 1120px; margin: auto; }
.web-finance-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.web-finance h3 { font-size: 20px; margin: 0 0 24px; }
.web-finance [data-view] > h3 { margin-top: 24px; }
.web-finance button { width: auto; min-height: 44px; border-radius: 10px; background: var(--web-primary); border-color: var(--web-primary); padding: 10px 18px; font-size: 14px; }
.web-finance button.outline { background: var(--web-surface); color: var(--web-primary); }
.web-finance button:disabled { opacity: .45; cursor: not-allowed; }
.web-finance :is(input,textarea) { border-radius: 10px; border-color: var(--web-border); font-size: 16px; min-height: 44px; }
.web-finance label { font-size: 14px; }
.web-finance :focus-visible { outline-color: var(--web-primary); }
.web-finance :is(.web-finance-card,.web-finance-net) { background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 16px; box-shadow: none; padding: 28px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.web-finance-net { text-align: center; margin-bottom: 24px !important; }
.web-finance-net h3 { font-size: 16px; color: var(--web-secondary); margin-bottom: 8px; }
.web-finance-net > strong { display: block; color: var(--web-primary); font-size: clamp(28px,4vw,42px); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.web-finance-net p { margin: 12px 0 0; color: var(--web-secondary); font-size: 13px; }
.web-finance-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.web-finance-values { margin: 0 0 24px; }
.web-finance-values > div { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,1.5fr); gap: 12px; margin-bottom: 20px; align-items: baseline; }
.web-finance-values dt { color: var(--web-secondary); font-size: 14px; font-weight: 400; }
.web-finance-values dd { margin: 0; text-align: right; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.web-finance-values .web-finance-total { padding-top: 20px; border-top: 1px solid var(--web-border); }
.web-finance-total dd { color: var(--web-primary); }
.web-finance-values > .web-finance-party-group { display: block; }
.web-finance button.web-finance-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: -8px 0; padding: 8px 0; border: 0; background: transparent; color: var(--web-secondary); text-align: left; font-weight: 400; }
.web-finance-toggle-amount { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: right; font-size: 18px; font-weight: 600; color: var(--web-text); font-variant-numeric: tabular-nums; }
.web-finance-toggle [data-arrow] { color: var(--web-secondary); font-size: 14px; }
.web-finance-values dd[data-party-list] { margin-top: 12px; padding: 12px; background: var(--web-bg, #F5F5F7); border-radius: 10px; font-size: 14px; font-weight: 400; text-align: left; }
.web-finance-party-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: baseline; gap: 12px; padding: 8px 0; }
.web-finance-party-row span { overflow-wrap: anywhere; }
.web-finance-party-row strong { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.web-finance-party-expense { border-top: 1px solid var(--web-border); margin-top: 4px; }
.web-finance-party-empty { margin: 4px 0; color: var(--web-secondary); }
.web-finance-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.web-finance-actions button { flex: 1; }
.web-finance-targets { display: grid; gap: 12px; max-width: 680px; }
.web-finance button.web-finance-target { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 24px; border-color: var(--web-border); color: var(--web-text); text-align: left; overflow-wrap: anywhere; }
.web-finance-target strong { text-align: right; min-width: 0; font-variant-numeric: tabular-nums; }
.web-finance-form { max-width: 680px; margin-top: 24px !important; }
.web-finance-hint { color: var(--web-secondary); font-size: 13px; }
.web-finance-history { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.web-finance-history h4 { margin: 12px 0; font-size: 18px; }
.web-finance-history p { white-space: pre-wrap; }
.web-finance-history p:last-child { margin-bottom: 0; }
.web-finance-history-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
    .web-finance-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .web-finance :is(.web-finance-card,.web-finance-net) { padding: 20px; }
    .web-finance-history { grid-template-columns: 1fr; }
    .web-finance-values > div { grid-template-columns: minmax(80px,1fr) minmax(0,1.7fr); }
    .web-finance-values dd { font-size: 16px; }
    .web-finance-actions { gap: 8px; }
    .web-finance-actions button { padding-inline: 10px; }
}

/* Administrator home: current Miniapp period, metrics and summary hierarchy. */
.web-home [hidden] { display: none !important; }
.web-home { max-width: 1120px; margin: auto; }
.web-home-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.web-home :is(button,[role="button"]) { width: auto; min-height: 44px; border-radius: 10px; padding: 10px 18px; font-size: 14px; background: var(--web-primary); border-color: var(--web-primary); }
.web-home :is(button.outline,[role="button"].outline) { background: var(--web-surface); color: var(--web-primary); }
.web-home button.secondary { background: #EDEDF0; border-color: var(--web-border); color: var(--web-text); }
.web-home :focus-visible { outline-color: var(--web-primary); }
.web-home .web-home-periods { position: static; box-shadow: none; display: flex; flex-direction: row; align-items: stretch; width: fit-content; gap: 4px; border: 1px solid var(--web-border); border-radius: 12px; padding: 4px; margin: 0 0 16px; background: #EBEBEF; }
.web-home .web-home-periods :is(a,button) { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; text-decoration: none; min-height: 44px; padding: 10px 22px; margin: 0; border: 0; border-radius: 8px; color: var(--web-secondary); background: transparent; }
.web-home .web-home-periods :is([aria-current="true"],.active) { background: var(--web-surface); color: var(--web-primary); font-weight: 600; }
.web-home-range,.web-home-hint { color: var(--web-secondary); font-size: 14px; }
.web-home-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 20px 0 28px; }
.web-home-metric { margin: 0; border: 1px solid var(--web-border); padding: 24px; background: var(--web-surface); border-radius: 16px; box-shadow: none; min-width: 0; overflow-wrap: anywhere; }
.web-home-metric h3 { color: var(--web-secondary); font-size: 14px; font-weight: 400; margin: 0 0 14px; }
.web-home-metric strong { font-size: clamp(20px,2vw,28px); font-variant-numeric: tabular-nums; word-break: break-all; }
.web-home-metric.emphasis { background: var(--web-primary-soft); border-color: #DAE7FF; }
.web-home-metric.emphasis strong { color: var(--web-primary); }
.web-home .negative { color: #C62828 !important; }
.web-home-section { padding: 0; margin: 16px 0; background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 16px; overflow: hidden; }
.web-home-section > summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; margin: 0; list-style: none; }
.web-home-section > summary::after { content: '⌄'; margin-left: auto; color: var(--web-secondary); }
.web-home-section[open] > summary::after { transform: rotate(180deg); }
.web-home-section summary strong { display: block; font-size: 18px; margin-bottom: 6px; }
.web-home-section summary small { display: block; color: var(--web-secondary); font-size: 13px; overflow-wrap: anywhere; }
.web-home-icon { display: grid; place-items: center; background: var(--web-primary-soft); border-radius: 12px; color: var(--web-primary); width: 44px; height: 44px; flex: 0 0 44px; font-size: 18px; }
.web-home-table { overflow-x: auto; padding: 0 24px 24px; }
.web-home table { table-layout: fixed; width: 100%; margin: 0; }
.web-home table :is(th,td) { border-color: var(--web-border); font-size: 14px; padding: 16px 10px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.web-home table :is(th,td):first-child { text-align: left; width: 32%; }
.web-home thead th { color: var(--web-secondary); font-weight: 400; background: #FAFAFC; }
.web-home th[scope="row"] { font-weight: 500; }
.web-home button.web-home-customer { color: var(--web-primary); border: 0; background: transparent; padding: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.web-home-customer span { flex-shrink: 0; }
.web-home-customer[aria-expanded="true"] span { transform: rotate(180deg); }
.web-home .web-home-children-row > td { padding: 20px; background: #F8FAFF; }
.web-home-child-heading { font-size: 14px; font-weight: 600; margin: 0 0 12px; text-align: left; }
.web-home button.web-home-more { display: block; background: transparent; border: 0; color: var(--web-primary); margin: 12px auto 0; }
.web-home-legacy { margin-top: 24px; font-size: 14px; text-align: right; }
.web-home dialog { border-radius: 16px; padding: 0; width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.web-home dialog article { min-width: 0; padding: 24px; margin: 0; }
.web-home dialog h3 { font-size: 22px; margin-bottom: 8px; }
.web-home dialog label { font-size: 14px; }
.web-home dialog input { min-height: 44px; border-radius: 10px; width: 100%; min-width: 0; }
.web-home dialog input[type="date"] { margin-bottom: 16px; }
.web-home-quick { display: flex; gap: 12px; margin: 20px 0; }
.web-home-quick > a { flex: 1; text-align: center; }
.web-home dialog footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
@media(max-width:600px) {
    .web-home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .web-home-metric { padding: 20px 16px; }
    .web-home-metric strong { font-size: 20px; }
    .web-home .web-home-periods { width: 100%; }
    .web-home .web-home-periods :is(a,button) { flex: 1; padding-inline: 8px; }
    .web-home-section > summary { padding: 20px 16px; gap: 12px; }
    .web-home-section summary strong { font-size: 17px; }
    .web-home-table { padding: 0 16px 16px; }
    .web-home table,.web-home tbody { display: block; }
    .web-home thead { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
    .web-home tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--web-border); padding: 16px 0; gap: 12px; }
    .web-home tr > th[scope="row"] { grid-column: 1 / -1; width: 100%; }
    .web-home table :is(th,td) { border: 0; padding: 0; text-align: left; min-width: 0; }
    .web-home td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--web-secondary); margin-bottom: 8px; }
    .web-home tr.web-home-children-row { display: block; padding: 0; border: 0; }
    .web-home .web-home-children-row > td:first-child { display: block; width: 100%; padding: 16px; border-radius: 10px; }
    .web-home .web-home-children-row tr { column-gap: 8px; }
    .web-home dialog article { padding: 20px; }
}

/* Business query: the Miniapp hierarchy with the existing V30 data contracts. */
@media (min-width: 901px) {
    /* Let document columns use the available desktop width beyond the shared cap. */
    .web-authenticated .web-content:has(.web-business) { max-width: none; }
}
.web-business { max-width: 100%; min-width: 0; margin: auto; }
.web-business [hidden] { display: none !important; }
.web-business .web-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.web-business :is(button,[role="button"]) { width: auto; min-height: 44px; border-radius: 10px; padding: 10px 18px; font-size: 14px; background: var(--web-primary); border-color: var(--web-primary); }
.web-business :is(button,[role="button"]).outline { color: var(--web-primary); background: var(--web-surface); }
.web-business button.secondary { background: #EDEDF0; border-color: var(--web-border); color: var(--web-text); }
.web-business :focus-visible { outline-color: var(--web-primary); }
.web-business :is(.wb-tabs,.wb-subtabs) { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.web-business .wb-tabs { background: #EBEBEF; padding: 5px; border-radius: 12px; width: fit-content; }
.web-business .wb-tabs button { min-width: 96px; color: var(--web-secondary); background: transparent; border: 0; }
.web-business .wb-tabs button[aria-pressed="true"] { color: var(--web-primary); background: white; font-weight: 600; }
.web-business .wb-subtabs button { border: 1px solid var(--web-border); background: white; color: var(--web-secondary); }
.web-business .wb-subtabs button[aria-pressed="true"] { background: var(--web-primary-soft); border-color: #BDD4FF; color: var(--web-primary); }
.web-business .wb-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.web-business .wb-hint { color: var(--web-secondary); font-size: 14px; overflow-wrap: anywhere; }
.web-business .wb-hint:empty { display: none; }
.web-business .wb-legacy { margin-left: auto; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.web-business .wb-group { margin: 24px 0; }
.web-business button.wb-group-title { width: 100%; text-align: left; display: flex; justify-content: space-between; border: 0; background: transparent; color: var(--web-text); font-size: 18px; font-weight: 600; padding: 12px 0; }
.web-business .wb-group-title::after { content: '⌄'; margin-left: 12px; color: var(--web-secondary); }
.web-business .wb-group-title[aria-expanded="true"]::after { transform: rotate(180deg); }
/* Keep the full document grid readable on desktop; narrow screens scroll locally. */
.web-business .wb-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--web-border); border-radius: 12px; background: var(--web-surface); }
.web-business .wb-table { width: 100%; min-width: 1000px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.web-business .wb-table-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.web-business .wb-table :is(th,td) { padding: 14px 12px; vertical-align: middle; border: 0; border-bottom: 1px solid var(--web-border); background: var(--web-surface); overflow-wrap: anywhere; }
.web-business .wb-table thead th { background: #F3F4F7; color: var(--web-secondary); font-size: 12px; font-weight: 500; text-align: left; }
.web-business .wb-table tbody tr:last-child > * { border-bottom: 0; }
.web-business .wb-table .is-voided > * { background: #FCF9F9; }
.web-business .wb-table .wb-document { min-width: 140px; max-width: 190px; text-align: left; font-weight: 500; }
.web-business .wb-table .wb-order { color: var(--web-text); font-size: 13px; }
.web-business .wb-table .wb-product { min-width: 120px; max-width: 200px; }
.web-business .wb-table .wb-party { min-width: 140px; max-width: 220px; }
.web-business .wb-table .wb-party > span { display: block; }
.web-business .wb-table .wb-warehouse { min-width: 90px; max-width: 140px; }
.web-business .wb-cell-secondary { display: block; color: var(--web-secondary); font-size: 12px; margin-top: 5px; font-weight: 400; }
.web-business .wb-table .wb-date-range { min-width: 150px; max-width: 190px; }
.web-business .wb-table .wb-amount { min-width: 96px; max-width: 190px; text-align: right; font-variant-numeric: tabular-nums; }
.web-business .wb-table .wb-badge { white-space: nowrap; }
.web-business .wb-table tr > :nth-last-child(2) { min-width: 84px; }
.web-business .wb-table .wb-actions { position: sticky; right: 0; width: 104px; min-width: 104px; padding-inline: 8px; box-shadow: -1px 0 0 var(--web-border); }
.web-business .wb-table .wb-actions > button { display: block; margin: 0; }
.web-business .wb-table .wb-actions > button + button { margin-top: 10px; }
.web-business .wb-detail-card { min-width: 0; margin: 0; padding: 24px; background: var(--web-surface); border: 1px solid var(--web-border); border-radius: 16px; box-shadow: none; overflow-wrap: anywhere; }
.web-business [data-detail] { max-width: 1120px; margin-inline: auto; }
.web-business .wb-badge { display: inline-block; flex-shrink: 0; background: var(--web-primary-soft); color: var(--web-primary); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.web-business .wb-badge.voided { color: #C62828; background: #FFEDED; }
.web-business .wb-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 24px; margin: 20px 0 0; }
.web-business .wb-values > div { min-width: 0; }
.web-business .wb-values .wb-wide-value { grid-column: 1 / -1; }
.web-business .wb-values dt { font-size: 13px; color: var(--web-secondary); font-weight: 400; margin-bottom: 8px; }
.web-business .wb-values dd { margin: 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.web-business .negative { color: #C62828 !important; }
.web-business button.wb-open { min-height: 44px; padding: 10px; margin: 0; white-space: nowrap; border: 0; background: var(--web-primary-soft); color: var(--web-primary); }
.web-business .wb-pagination { position: static; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 20px 16px; }
.web-business .wb-pagination span { color: var(--muted, #606b7a); text-align: center; }
.web-business .wb-detail-heading { margin: 24px 0; }
.web-business .wb-detail-heading h3 { margin: 0 0 8px; font-size: 24px; }
.web-business .wb-detail-heading p { margin: 0 0 12px; color: var(--web-secondary); overflow-wrap: anywhere; }
.web-business .wb-detail-card { margin-bottom: 16px; }
.web-business .wb-detail-card h4 { font-size: 18px; margin: 0; }
.web-business .wb-detail-card .wb-hint { margin: 16px 0 0; }
.web-business [data-detail] .wb-expense-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.web-business [data-detail] .wb-expense-actions button { margin: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.web-business [data-detail] .wb-expense-actions .wb-hint { flex-basis: 100%; margin: 0; }
.web-business [data-detail] .wb-detail-navigation:has(button) { margin-block: 24px; }
.web-business .wb-related { display: flex; gap: 12px; flex-wrap: wrap; }
.web-business .wb-related + .wb-edit-actions { margin-top: 16px; }
.web-business dialog { position: fixed; inset: clamp(16px,8vh,72px) auto auto 50%; margin: 0; transform: translateX(-50%); border-radius: 16px; padding: 0; width: min(560px,calc(100vw - 32px)); max-height: calc(100dvh - clamp(16px,8vh,72px) - 16px); overflow-y: auto; }
.web-business dialog[data-purchase-loss-dialog] { height: min(820px,calc(100dvh - clamp(16px,8vh,72px) - 16px)); }
.web-business dialog article { padding: 24px; margin: 0; min-width: 0; width: 100%; max-width: 100%; }
.web-business dialog h3 { font-size: 22px; margin-bottom: 12px; }
.web-business dialog :is(input,select) { width: 100%; min-height: 44px; min-width: 0; border-radius: 10px; margin: 8px 0 16px; }
.web-business dialog label { font-size: 14px; min-width: 0; }
.web-business .wb-filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.web-business dialog footer { display: flex; justify-content: flex-end; gap: 12px; margin: 20px 0 0; }

/* Business presentation follows the V30 Miniapp tokens while retaining the desktop table. */
.web-business .wb-tabs { gap: 0; padding: 3px; background: #EAF2FF; border-radius: 12px; }
.web-business .wb-tabs button { border-radius: 9px; }
.web-business .wb-tabs button[aria-pressed="true"] { box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.web-business .wb-subtabs { gap: 8px; }
.web-business .wb-subtabs button { border-color: #BFD7FF; color: var(--web-primary); background: var(--web-surface); }
.web-business .wb-subtabs button[aria-pressed="true"] { background: var(--web-primary-soft); border-color: var(--web-primary); }
.web-business button.wb-group-title { min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--web-primary); background: var(--web-primary-soft); }
.web-business .wb-group:has(.is-voided) button.wb-group-title { color: #D92D25; background: #FFF2F0; }
.web-business .wb-table-scroll { border: 0; border-radius: 16px; box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.web-business .wb-table thead th { background: #F8F8FA; }
.web-business .wb-table tbody tr:hover > * { background: #F8FBFF; }
.web-business .wb-table .wb-actions { box-shadow: -1px 0 0 var(--web-border), -4px 0 10px rgb(15 23 41 / 3%); }
.web-business .wb-badge { border-radius: 8px; font-weight: 500; }
.web-business .wb-status-neutral { color: #6E6E73; background: #EDEDF0; }
.web-business .wb-status-active,.web-business .wb-status-partial { color: #0A66FF; background: #EAF2FF; }
.web-business .wb-status-pending,.web-business .wb-status-warning { color: #BD6D00; background: #FFF6E5; }
.web-business .wb-status-success { color: #16863A; background: #EAF8EE; }
.web-business .wb-status-danger { color: #D92D25; background: #FFEDED; }
.web-business .wb-detail-heading { padding: 4px 2px 8px; }
.web-business .wb-detail-heading h3 { font-size: 26px; font-weight: 700; }
.web-business .wb-detail-card { padding: 24px; border: 0; border-radius: 16px; box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.web-business .wb-detail-card h4 { font-size: 17px; font-weight: 600; }
.web-business .wb-values { gap: 16px 24px; }
.web-business .wb-values > div { padding-bottom: 12px; border-bottom: 1px solid #F2F2F7; }
.web-business .wb-values dt { margin-bottom: 6px; }
.web-business .wb-values dd { font-weight: 600; }
.web-business .wb-values .wb-value-primary dd { color: #0A66FF; font-size: 20px; }
.web-business .wb-values .wb-value-loss dd { color: #0A66FF; }
.web-business .wb-values .wb-value-fee dd { color: #BD6D00; }
.web-business .wb-related { gap: 10px; }
.web-business .wb-edit-actions { padding: 16px; border: 1px solid var(--web-border); border-radius: 16px; background: var(--web-surface); box-shadow: 0 2px 8px rgb(0 0 0 / 5%); }
.web-business .wb-edit-actions :is(button,[role="button"]) { flex: 1 1 160px; }
.web-business button.wb-action-edit { color: #fff; background: #0A66FF; border-color: #0A66FF; }
.web-business button.wb-action-loss { color: #0A66FF; background: #EAF2FF; border-color: #BFD7FF; }
.web-business button.wb-action-fee { color: #BD6D00; background: #FFF6E5; border-color: #F2D7A5; }
.web-business button.wb-action-delete { color: #D84A4A; background: #FFF8F7; border-color: #F1B8B4; }
.web-business button.wb-action-delete:hover { color: #fff; background: #D84A4A; border-color: #D84A4A; }
.web-business dialog button.danger { color: #fff; background: #D84A4A; border-color: #D84A4A; }
.web-business .wb-loss-preview { display: grid; gap: 12px; margin: 12px 0 20px; }
.web-business .wb-loss-preview[aria-busy="true"] { opacity: .72; }
.web-business .wb-loss-preview-card { margin: 0; padding: 16px; border: 1px solid #BFD7FF; border-radius: 12px; background: #F8FBFF; box-shadow: none; }
.web-business .wb-loss-preview-card h5 { margin: 0; color: #0A66FF; font-size: 14px; }
.web-business dialog :is(input,select,textarea) { background: #F8FBFF; border-color: #D1D1D6; }
.web-business dialog :is(input,select,textarea):focus { border-color: #0A66FF; box-shadow: 0 0 0 3px rgb(10 102 255 / 14%); }
@media(max-width:700px) {
    .web-business .wb-detail-card { padding: 20px; }
    .web-business .wb-tabs { width: 100%; }
    .web-business .wb-tabs button { flex: 1; min-width: 0; padding-inline: 8px; }
    .web-business .wb-subtabs { gap: 6px; }
    .web-business .wb-subtabs button { flex: 1; padding-inline: 6px; font-size: 13px; }
    .web-business .wb-values { gap: 20px 16px; }
    .web-business .wb-legacy { width: 100%; margin-left: 0; }
    .web-business dialog article { padding: 20px; }
}
@media(max-width:480px) {
    .web-business .wb-date-grid { grid-template-columns: 1fr; }
}

/* Shared registration details remain readable on public and signed-in pages. */
.web-v30 .web-footer { text-align: center; padding-top: 24px; padding-bottom: 24px; color: var(--web-secondary); font-size: 13px; line-height: 1.8; }
.web-v30 .web-footer-brand { margin: 0 0 8px; font-size: inherit; }
.web-v30 .web-site-registration p { margin: 0; font-size: inherit; overflow-wrap: anywhere; }
.web-v30 .web-site-registration a { color: var(--web-secondary); text-decoration: underline; text-underline-offset: 3px; }
.web-v30 .web-site-registration a:hover { color: var(--web-primary); }
.web-v30 .web-site-registration a:focus-visible { outline: 2px solid var(--web-primary); outline-offset: 4px; }
