body[data-theme="xero"] {
    --xero-blue: #1276bf;
    --xero-blue-strong: #0f6bac;
    --xero-blue-soft: #dff0fb;
    --xero-surface: #f3f5f7;
    --xero-panel: #ffffff;
    --xero-panel-alt: #f8fafc;
    --xero-border: #d8e0e8;
    --xero-border-strong: #bfd0de;
    --xero-text: #1f2937;
    --xero-text-soft: #607081;
    --xero-success: #1d9e53;
    --xero-warning: #d59b14;
    --xero-danger: #df5a52;
    --xero-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    background: var(--xero-surface);
    color: var(--xero-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body[data-theme="xero"] *,
body[data-theme="xero"] *::before,
body[data-theme="xero"] *::after {
    box-sizing: border-box;
}

body[data-theme="xero"] .sidebar-overlay,
body[data-theme="xero"] .native-app-statusbar,
body[data-theme="xero"] .native-app-tabbar {
    display: none !important;
}

body[data-theme="xero"] .shell {
    display: block;
    min-height: 100vh;
    background: var(--xero-surface);
}

body[data-theme="xero"] .sidebar {
    display: none;
}

body[data-theme="xero"] .content {
    margin: 0;
    padding: 0 0 40px;
    min-height: 100vh;
    background: var(--xero-surface);
}

body[data-theme="xero"] .app-header {
    background: var(--xero-blue);
    color: #fff;
    padding: 14px 20px 8px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
}

body[data-theme="xero"] .app-header__top {
    display: grid;
    grid-template-columns: 240px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 16px;
}

body[data-theme="xero"] .app-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

body[data-theme="xero"] .app-brand__logo,
body[data-theme="xero"] .mobile-topbar__logo {
    width: 82px;
    height: auto;
    display: block;
}

body[data-theme="xero"] .app-brand__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

body[data-theme="xero"] .app-brand__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-theme="xero"] .app-brand__page {
    display: none;
}

body[data-theme="xero"] .global-search {
    position: relative;
}

body[data-theme="xero"] .global-search__field {
    display: block;
}

body[data-theme="xero"] .global-search__field input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #fff;
    color: var(--xero-text);
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    box-shadow: var(--xero-shadow);
}

body[data-theme="xero"] .global-search__field input::placeholder {
    color: #73859a;
}

body[data-theme="xero"] .global-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    z-index: 40;
}

body[data-theme="xero"] .app-header__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

body[data-theme="xero"] .app-header__meta-pill,
body[data-theme="xero"] .app-header__user,
body[data-theme="xero"] .button,
body[data-theme="xero"] .header-subnav__link,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .pill {
    border-radius: 12px;
}

body[data-theme="xero"] .app-header__meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-theme="xero"] .app-header__user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

body[data-theme="xero"] .app-header__user-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

body[data-theme="xero"] .app-header__user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button,
body[data-theme="xero"] input[type="submit"],
body[data-theme="xero"] input[type="button"] {
    appearance: none;
    border: 1px solid var(--xero-border);
    background: #fff;
    color: var(--xero-text);
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

body[data-theme="xero"] .button.primary,
body[data-theme="xero"] .button.button-primary,
body[data-theme="xero"] button.button-primary {
    background: var(--xero-blue);
    border-color: var(--xero-blue);
    color: #fff;
}

body[data-theme="xero"] .button.button-compact {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
}

body[data-theme="xero"] .app-header__nav {
    margin-top: 12px;
}

body[data-theme="xero"] .header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

body[data-theme="xero"] .header-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 4px;
}

body[data-theme="xero"] .header-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

body[data-theme="xero"] .app-header__subnav {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-theme="xero"] .header-subnav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .header-subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

body[data-theme="xero"] .header-subnav__link.is-active {
    background: rgba(255, 255, 255, 0.22);
}

body[data-theme="xero"] .mobile-topbar {
    display: none;
}

body[data-theme="xero"] .flash {
    width: min(1280px, calc(100% - 24px));
    margin: 16px auto 0;
    border: 1px solid var(--xero-border);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--xero-text);
}

body[data-theme="xero"] .flash.flash-error {
    border-color: #efc0bd;
    background: #fff5f4;
    color: #9a3128;
}

body[data-theme="xero"] .flash.flash-success {
    border-color: #bde2c6;
    background: #f3fbf5;
    color: #12693a;
}

body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .settings-sections {
    width: min(1280px, calc(100% - 24px));
    margin: 20px auto 0;
}

body[data-theme="xero"] .page-shell {
    display: block;
}

body[data-theme="xero"] .workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .workspace-head__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

body[data-theme="xero"] .workspace-head__marker {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--xero-blue-soft);
    border: 1px solid #c4def4;
}

body[data-theme="xero"] .workspace-head__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #718296;
}

body[data-theme="xero"] .xui-dashboard-shell {
    width: min(1280px, calc(100% - 24px));
    margin: 20px auto 0;
}

body[data-theme="xero"] .xui-home-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .xui-home-banner__copy,
body[data-theme="xero"] .xui-home-banner__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

body[data-theme="xero"] .xui-home-banner__badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #d8eef9;
    color: var(--xero-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #c7e0ef;
}

body[data-theme="xero"] .xui-home-banner__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7a89;
    font-weight: 700;
}

body[data-theme="xero"] .xui-home-banner__title,
body[data-theme="xero"] .xui-section-head__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 600;
    color: #182838;
}

body[data-theme="xero"] .xui-home-banner__hint {
    font-size: 13px;
    color: #6b7a89;
}

body[data-theme="xero"] .xui-home-toolbar {
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 18px;
    box-shadow: var(--xero-shadow);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .xui-home-toolbar__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #415264;
    font-size: 13px;
}

body[data-theme="xero"] .xui-home-toolbar__notice strong {
    color: #182838;
}

body[data-theme="xero"] .xui-home-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body[data-theme="xero"] .xui-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body[data-theme="xero"] .xui-widget {
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 18px;
    box-shadow: var(--xero-shadow);
    padding: 18px;
}

body[data-theme="xero"] .xui-widget--wide {
    grid-column: span 2;
}

body[data-theme="xero"] .xui-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body[data-theme="xero"] .xui-widget__eyebrow {
    margin: 0 0 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6d7d8c;
    font-weight: 700;
}

body[data-theme="xero"] .xui-widget__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #182838;
    font-weight: 600;
}

body[data-theme="xero"] .xui-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf6fd;
    border: 1px solid #d7e9f7;
    color: #0f6bac;
    font-size: 12px;
    font-weight: 700;
}

body[data-theme="xero"] .xui-chip--success {
    background: #ebf8f0;
    border-color: #cdebd7;
    color: #167343;
}

body[data-theme="xero"] .xui-link {
    color: var(--xero-blue);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

body[data-theme="xero"] .xui-stat-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eef4;
    margin-bottom: 14px;
}

body[data-theme="xero"] .xui-stat-pair strong {
    display: block;
    font-size: 24px;
    line-height: 1.08;
    color: #182838;
    font-weight: 600;
    margin-bottom: 4px;
}

body[data-theme="xero"] .xui-stat-pair span,
body[data-theme="xero"] .xui-line-meta,
body[data-theme="xero"] .xui-list-row span,
body[data-theme="xero"] .xui-list-row strong,
body[data-theme="xero"] .xui-metric-grid span {
    font-size: 13px;
    color: #607081;
}

body[data-theme="xero"] .xui-line-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .xui-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .xui-metric-grid article,
body[data-theme="xero"] .xui-mini-chart,
body[data-theme="xero"] .xui-brief-grid,
body[data-theme="xero"] .xui-app-grid {
    margin-top: 4px;
}

body[data-theme="xero"] .xui-metric-grid strong {
    display: block;
    font-size: 18px;
    line-height: 1.15;
    color: #182838;
    margin-bottom: 4px;
}

body[data-theme="xero"] .xui-list-rows {
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .xui-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

body[data-theme="xero"] .xui-list-row:last-child {
    border-bottom: 0;
}

body[data-theme="xero"] .xui-list-row strong {
    color: #182838;
    font-size: 15px;
}

body[data-theme="xero"] .xui-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 160px;
    padding-top: 10px;
}

body[data-theme="xero"] .xui-mini-chart__bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

body[data-theme="xero"] .xui-mini-chart__fill {
    width: 100%;
    max-width: 44px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #8ec9ec 0%, #1276bf 100%);
}

body[data-theme="xero"] .xui-mini-chart__bar span {
    text-align: center;
    font-size: 12px;
    color: #607081;
}

body[data-theme="xero"] .xui-widget__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

body[data-theme="xero"] .xui-brief-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body[data-theme="xero"] .xui-subpanel {
    border: 1px solid #e7edf4;
    border-radius: 14px;
    padding: 16px;
    background: #fbfcfd;
}

body[data-theme="xero"] .xui-subpanel h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #182838;
}

body[data-theme="xero"] .xui-bullet-list {
    margin: 0;
    padding-left: 18px;
    color: #445465;
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .xui-app-strip {
    margin-top: 22px;
}

body[data-theme="xero"] .xui-lower-window {
    margin-top: 20px;
}

body[data-theme="xero"] .xui-lower-window__panel {
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    box-shadow: var(--xero-shadow);
    overflow: hidden;
}

body[data-theme="xero"] .xui-lower-window__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

body[data-theme="xero"] .xui-lower-window__summary::-webkit-details-marker {
    display: none;
}

body[data-theme="xero"] .xui-lower-window__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    color: #162331;
}

body[data-theme="xero"] .xui-lower-window__metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body[data-theme="xero"] .xui-lower-window__metrics span {
    border: 1px solid #dce7f1;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f7fbff;
    color: #5c6f83;
    font-size: 12px;
    font-weight: 700;
}

body[data-theme="xero"] .xui-lower-window__body {
    border-top: 1px solid #e7eef5;
    padding: 18px 20px 20px;
}

body[data-theme="xero"] .xui-sweep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body[data-theme="xero"] .xui-sweep-card {
    border: 1px solid #dce7f1;
    border-radius: 14px;
    padding: 14px 15px;
    background: #fbfdff;
    display: grid;
    gap: 6px;
}

body[data-theme="xero"] .xui-sweep-card--attention {
    border-color: #f1caca;
    background: #fff8f8;
}

body[data-theme="xero"] .xui-sweep-card--watch {
    border-color: #ecd58d;
    background: #fffcef;
}

body[data-theme="xero"] .xui-sweep-card--healthy {
    border-color: #cfe3f5;
    background: #f7fbff;
}

body[data-theme="xero"] .xui-sweep-card__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8b9c;
    font-weight: 700;
}

body[data-theme="xero"] .xui-sweep-card strong {
    font-size: 17px;
    line-height: 1.2;
    color: #162331;
}

body[data-theme="xero"] .xui-sweep-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #5d7085;
}

body[data-theme="xero"] .xui-lower-window__actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .xui-lower-window__body > .panel {
    margin: 0;
    box-shadow: none;
}

body[data-theme="xero"] .xui-lower-window__body > .panel + .panel {
    margin-top: 14px;
}

body[data-theme="xero"] .orders-lower-window,
body[data-theme="xero"] .receivables-lower-window {
    margin-top: 20px;
}

body[data-theme="xero"] .xui-section-head {
    margin-bottom: 16px;
}

body[data-theme="xero"] .xui-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body[data-theme="xero"] .xui-app-card {
    display: block;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: #182838;
    box-shadow: var(--xero-shadow);
}

body[data-theme="xero"] .xui-app-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

body[data-theme="xero"] .xui-app-card span {
    font-size: 13px;
    color: #607081;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="xero"] .xui-widget--wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    body[data-theme="xero"] .xui-home-banner,
    body[data-theme="xero"] .xui-home-toolbar,
    body[data-theme="xero"] .xui-home-toolbar__notice,
    body[data-theme="xero"] .xui-home-toolbar__actions,
    body[data-theme="xero"] .xui-brief-grid,
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-app-grid,
    body[data-theme="xero"] .xui-stat-pair {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    body[data-theme="xero"] .xui-widget--wide {
        grid-column: span 1;
    }

    body[data-theme="xero"] .xui-home-banner__title,
    body[data-theme="xero"] .xui-widget__title {
        font-size: 24px;
    }
}

body[data-theme="xero"] .workspace-head__title {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
    color: #162331;
}

body[data-theme="xero"] .workspace-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .hero,
body[data-theme="xero"] .settings-directory,
body[data-theme="xero"] .settings-card,
body[data-theme="xero"] .order-preview,
body[data-theme="xero"] .module-card {
    background: var(--xero-panel);
    border: 1px solid var(--xero-border);
    border-radius: 16px;
    box-shadow: var(--xero-shadow);
    color: var(--xero-text);
}

body[data-theme="xero"] .panel {
    padding: 18px;
}

body[data-theme="xero"] .panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #162331;
}

body[data-theme="xero"] .panel-header p,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small {
    color: var(--xero-text-soft);
}

body[data-theme="xero"] .pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--xero-border);
    background: #fff;
    color: var(--xero-text-soft);
}

body[data-theme="xero"] .pill-accent {
    color: var(--xero-blue);
    border-color: #c6def3;
    background: #eef7ff;
}

body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] table {
    width: 100%;
}

body[data-theme="xero"] table {
    border-collapse: collapse;
    background: transparent;
}

body[data-theme="xero"] th,
body[data-theme="xero"] td {
    border-bottom: 1px solid #e8edf2;
    padding: 12px 10px;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
    color: var(--xero-text);
}

body[data-theme="xero"] th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #72849a;
    font-weight: 700;
    background: #fbfcfd;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea {
    width: 100%;
    border: 1px solid var(--xero-border);
    border-radius: 10px;
    background: #fff;
    color: var(--xero-text);
    padding: 10px 12px;
    min-height: 40px;
    font-size: 13px;
}

body[data-theme="xero"] textarea {
    min-height: 112px;
}

body[data-theme="xero"] .field label,
body[data-theme="xero"] .field span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7c8f;
}

body[data-theme="xero"] .page-dashboard--home {
    margin-top: 18px;
}

body[data-theme="xero"] .dashboard-home-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .dashboard-home-notice__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body[data-theme="xero"] .dashboard-home-notice__content strong {
    font-size: 14px;
    color: #233244;
}

body[data-theme="xero"] .dashboard-home-notice__content span {
    font-size: 13px;
    color: #6b7c8f;
}

body[data-theme="xero"] .dashboard-home-notice__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .dashboard-home-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .workspace-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--xero-shadow);
}

body[data-theme="xero"] .workspace-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #74869a;
}

body[data-theme="xero"] .workspace-stat strong {
    font-size: 30px;
    line-height: 1.05;
    color: #162331;
    font-weight: 600;
}

body[data-theme="xero"] .workspace-stat small {
    font-size: 12px;
}

body[data-theme="xero"] .dashboard-home-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 18px;
    align-items: start;
}

body[data-theme="xero"] .dashboard-home-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body[data-theme="xero"] .dashboard-home-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

body[data-theme="xero"] .dashboard-home-card__header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 600;
}

body[data-theme="xero"] .dashboard-home-card__header p {
    margin: 4px 0 0;
    font-size: 13px;
}

body[data-theme="xero"] .dashboard-home-card__menu {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--xero-blue);
}

body[data-theme="xero"] .dashboard-home-card__metrics {
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .dashboard-home-card__metrics--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="xero"] .dashboard-home-card__metrics--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="xero"] .dashboard-home-card__metrics > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body[data-theme="xero"] .dashboard-home-card__metrics span,
body[data-theme="xero"] .dashboard-home-list__row span,
body[data-theme="xero"] .dashboard-home-bars__item span,
body[data-theme="xero"] .dashboard-home-card__footer span,
body[data-theme="xero"] .dashboard-home-brief span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #73849a;
}

body[data-theme="xero"] .dashboard-home-card__metrics strong {
    font-size: 38px;
    line-height: 1.05;
    font-weight: 600;
    color: #162331;
}

body[data-theme="xero"] .dashboard-home-card__rule {
    height: 1px;
    background: #e7edf2;
    margin: 18px 0;
}

body[data-theme="xero"] .dashboard-home-bars,
body[data-theme="xero"] .dashboard-home-list {
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .dashboard-home-bars {
    margin-top: 16px;
}

body[data-theme="xero"] .dashboard-home-bars__item,
body[data-theme="xero"] .dashboard-home-list__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f6;
}

body[data-theme="xero"] .dashboard-home-bars__item strong,
body[data-theme="xero"] .dashboard-home-list__row strong,
body[data-theme="xero"] .dashboard-home-card__footer strong {
    font-size: 22px;
    font-weight: 600;
    color: #1a2636;
}

body[data-theme="xero"] .dashboard-home-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

body[data-theme="xero"] .dashboard-home-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}

body[data-theme="xero"] .dashboard-home-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body[data-theme="xero"] .dashboard-home-brief ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #425569;
    font-size: 13px;
}

body[data-theme="xero"] .dashboard-home-brief li + li {
    margin-top: 8px;
}

body[data-theme="xero"] .dashboard-home-lower {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

body[data-theme="xero"] .dashboard-lower-card .panel-header--compact {
    margin-bottom: 14px;
}

body[data-theme="xero"] .dashboard-lower-card .workspace-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .dashboard-lower-card .workspace-stat {
    min-height: 110px;
}

body[data-theme="xero"] .dashboard-home-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 180px;
    padding-top: 20px;
}

body[data-theme="xero"] .dashboard-home-chart__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

body[data-theme="xero"] .dashboard-home-chart__column {
    width: 100%;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #8fd1ff 0%, var(--xero-blue) 100%);
    min-height: 18px;
}

body[data-theme="xero"] .dashboard-home-chart__label {
    font-size: 11px;
    color: #72849a;
}

body[data-theme="xero"] .dashboard-home-taskstack {
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .dashboard-home-taskstack .dashboard-home-list__row {
    padding: 14px 0;
}

body[data-theme="xero"] .eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] a {
    color: var(--xero-blue);
}

@media (max-width: 1120px) {
    body[data-theme="xero"] .app-header__top {
        grid-template-columns: minmax(0, 1fr);
    }

    body[data-theme="xero"] .app-header__controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body[data-theme="xero"] .dashboard-home-grid,
    body[data-theme="xero"] .dashboard-home-lower {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body[data-theme="xero"] .app-header {
        display: none;
    }

    body[data-theme="xero"] .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        background: var(--xero-blue);
        color: #fff;
    }

    body[data-theme="xero"] .mobile-topbar__brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    body[data-theme="xero"] .mobile-topbar__title-group {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    body[data-theme="xero"] .mobile-topbar__title {
        font-size: 14px;
        color: #fff;
    }

    body[data-theme="xero"] .mobile-topbar__page {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.78);
    }

    body[data-theme="xero"] .mobile-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
    }

    body[data-theme="xero"] .workspace-head,
    body[data-theme="xero"] .dashboard-home-notice,
    body[data-theme="xero"] .dashboard-home-brief {
        grid-template-columns: 1fr;
        display: grid;
    }

    body[data-theme="xero"] .workspace-head__actions,
    body[data-theme="xero"] .dashboard-home-notice__actions {
        justify-content: flex-start;
    }

    body[data-theme="xero"] .dashboard-home-summary,
    body[data-theme="xero"] .dashboard-home-grid,
    body[data-theme="xero"] .dashboard-home-lower,
    body[data-theme="xero"] .dashboard-lower-card .workspace-stats,
    body[data-theme="xero"] .dashboard-home-card__metrics--split,
    body[data-theme="xero"] .dashboard-home-card__metrics--triple,
    body[data-theme="xero"] .dashboard-home-brief {
        grid-template-columns: 1fr;
    }
}

body[data-theme="xero"] .page-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: start;
}

body[data-theme="xero"] .page-stack {
    display: grid;
    gap: 18px;
}

body[data-theme="xero"] .workspace-head--filter-shell,
body[data-theme="xero"] .workspace-head--tight {
    margin-top: 0;
}

body[data-theme="xero"] .workspace-head--filter-shell .workspace-head__actions {
    width: 100%;
    gap: 8px;
}

body[data-theme="xero"] .button-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 107, 172, 0.12);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}

body[data-theme="xero"] .table-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--xero-text-soft);
    font-size: 12px;
}

body[data-theme="xero"] .table-link,
body[data-theme="xero"] .table-detail-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--xero-blue);
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

body[data-theme="xero"] .table-link {
    font-weight: 700;
}

body[data-theme="xero"] .table-detail-link {
    font-size: 12px;
    font-weight: 600;
}

body[data-theme="xero"] .table-row-link {
    cursor: pointer;
}

body[data-theme="xero"] .table-row-link.is-preview-selected {
    background: #eef7ff;
}

body[data-theme="xero"] .table-cell-inline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body[data-theme="xero"] .table-cell-inline--primary {
    gap: 6px;
}

body[data-theme="xero"] .table-cell-inline--numeric {
    align-items: flex-end;
}

body[data-theme="xero"] .table-cell-numeric {
    text-align: right;
}

body[data-theme="xero"] .table-meta-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

body[data-theme="xero"] .compact-table {
    border-radius: 14px;
    overflow: hidden;
}

body[data-theme="xero"] .compact-table tbody tr:hover {
    background: #f7fbff;
}

body[data-theme="xero"] .orders-workbench-panel,
body[data-theme="xero"] .receivables-ledger,
body[data-theme="xero"] .receivables-filter-panel,
body[data-theme="xero"] .receivables-aging-note,
body[data-theme="xero"] .customer-command-deck,
body[data-theme="xero"] .customer-priority-ledger__card {
    border-radius: 18px;
}

body[data-theme="xero"] .orders-main .orders-workbench-panel {
    overflow: hidden;
}

body[data-theme="xero"] .orders-main #orders-preview {
    position: sticky;
    top: 18px;
}

body[data-theme="xero"] .orders-main .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .detail-card {
    padding: 14px;
    min-height: 104px;
    background: var(--xero-panel-alt);
    border: 1px solid #e4ebf1;
    border-radius: 14px;
}

body[data-theme="xero"] .detail-card span,
body[data-theme="xero"] .detail-card .muted {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
}

body[data-theme="xero"] .detail-card strong {
    display: block;
    margin-top: 6px;
    color: #162331;
    font-size: 20px;
    line-height: 1.15;
}

body[data-theme="xero"] .orders-preview-editor {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .orders-preview-editor__sync {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--xero-border);
    border-radius: 12px;
    background: #f8fbfe;
}

body[data-theme="xero"] .orders-preview-editor__lines,
body[data-theme="xero"] .orders-preview-editor__line-list {
    display: grid;
    gap: 14px;
}

body[data-theme="xero"] .orders-preview-line {
    border: 1px solid #e4ebf1;
    border-radius: 14px;
    background: #fbfcfd;
    padding: 14px;
}

body[data-theme="xero"] .orders-preview-line__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body[data-theme="xero"] .orders-preview-line__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body[data-theme="xero"] .orders-preview-line__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--xero-text-soft);
    font-size: 12px;
}

body[data-theme="xero"] .inline-action-form,
body[data-theme="xero"] .customer-overview-actions__inline-form {
    display: inline;
}

body[data-theme="xero"] .receivables-filter-panel .receivables-filter-presets,
body[data-theme="xero"] .active-filter-bar,
body[data-theme="xero"] .receivables-export-bar,
body[data-theme="xero"] .receivables-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .receivables-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

body[data-theme="xero"] .filter-multiselect {
    position: relative;
}

body[data-theme="xero"] .filter-multiselect summary {
    list-style: none;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--xero-border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: var(--xero-text);
    cursor: pointer;
}

body[data-theme="xero"] .filter-multiselect__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    max-width: 320px;
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--xero-border);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    z-index: 30;
}

body[data-theme="xero"] .filter-multiselect__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

body[data-theme="xero"] .filter-multiselect__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

body[data-theme="xero"] .receivables-export-bar {
    justify-content: space-between;
    margin-bottom: 14px;
}

body[data-theme="xero"] .receivables-export-bar__left,
body[data-theme="xero"] .receivables-export-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .customer-command-deck {
    padding: 14px 16px;
}

body[data-theme="xero"] .customer-command-deck__lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

body[data-theme="xero"] .customer-command-deck__identity h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
    color: #162331;
}

body[data-theme="xero"] .customer-command-deck__address-line,
body[data-theme="xero"] .customer-command-deck__contact-line {
    margin: 4px 0 0;
    color: var(--xero-text-soft);
    font-size: 13px;
    line-height: 1.35;
}

body[data-theme="xero"] .customer-command-deck__balance {
    border: 1px solid #dce6ef;
    background: #f8fbfe;
    border-radius: 16px;
    padding: 12px 14px;
    display: grid;
    gap: 4px;
}

body[data-theme="xero"] .customer-command-deck__balance > span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .customer-command-deck__balance strong {
    font-size: 22px;
    line-height: 1.05;
    color: #162331;
    font-weight: 600;
}

body[data-theme="xero"] .customer-command-deck__balance-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--xero-text-soft);
    font-size: 11px;
}

body[data-theme="xero"] .customer-command-deck__content {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.68fr);
    gap: 12px;
}

body[data-theme="xero"] .customer-command-deck__facts,
body[data-theme="xero"] .customer-command-deck__more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body[data-theme="xero"] .customer-command-deck__fact,
body[data-theme="xero"] .customer-command-deck__actions-card {
    background: #fbfcfd;
    border: 1px solid #e4ebf1;
    border-radius: 14px;
    padding: 10px 12px;
}

body[data-theme="xero"] .customer-command-deck__fact span,
body[data-theme="xero"] .customer-command-deck__more-summary span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #73849a;
}

body[data-theme="xero"] .customer-command-deck__fact strong {
    display: block;
    margin-top: 4px;
    color: #162331;
    font-size: 15px;
    line-height: 1.15;
}

body[data-theme="xero"] .customer-command-deck__fact small,
body[data-theme="xero"] .customer-command-deck__more-summary small,
body[data-theme="xero"] .customer-command-deck__actions-foot {
    color: var(--xero-text-soft);
    font-size: 11px;
}

body[data-theme="xero"] .customer-command-deck__fact--wide {
    grid-column: 1 / -1;
}

body[data-theme="xero"] .customer-command-deck__more-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

body[data-theme="xero"] .customer-command-deck__more-grid {
    margin-top: 8px;
}

body[data-theme="xero"] .customer-command-deck__actions-head {
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
}

body[data-theme="xero"] .customer-overview-actions__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body[data-theme="xero"] .customer-command-deck__actions-more {
    margin-top: 8px;
}

body[data-theme="xero"] .customer-command-deck__actions-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

body[data-theme="xero"] .customer-command-deck__pills {
    gap: 6px;
    margin-top: 2px;
}

body[data-theme="xero"] .customer-command-deck__pills .pill {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 11px;
}

body[data-theme="xero"] .customer-command-deck__actions-card .button,
body[data-theme="xero"] .customer-command-deck__actions-card button {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
}

body[data-theme="xero"] .customer-priority-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

body[data-theme="xero"] .customer-priority-ledger__card--statement {
    grid-column: span 2;
}

body[data-theme="xero"] .customer-priority-ledger__statement-summary,
body[data-theme="xero"] .customer-priority-ledger__statement-actions,
body[data-theme="xero"] .customer-priority-ledger__statement-pills,
body[data-theme="xero"] .customer-priority-ledger__statement-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .customer-priority-ledger__statement-form,
body[data-theme="xero"] .customer-priority-ledger__statement-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric {
    border: 1px solid #e4ebf1;
    background: #fbfcfd;
    border-radius: 14px;
    padding: 14px;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric--wide {
    grid-column: span 2;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    color: #162331;
}

body[data-theme="xero"] .stack-list {
    display: grid;
    gap: 10px;
}

body[data-theme="xero"] .list-item {
    border: 1px solid #e6edf3;
    border-radius: 14px;
    background: #fbfcfd;
    padding: 12px 14px;
}

body[data-theme="xero"] .customer-history-list__item,
body[data-theme="xero"] .customer-history-list__item--current {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body[data-theme="xero"] .customer-history-list__copy {
    display: grid;
    gap: 4px;
}

body[data-theme="xero"] .customer-history-list__amount {
    white-space: nowrap;
}

body[data-theme="xero"] .xui-shell-page {
    display: grid;
    gap: 22px;
}

body[data-theme="xero"] .xui-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    background: #ffffff;
}

body[data-theme="xero"] .xui-page-head__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

body[data-theme="xero"] .xui-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #dff0fb;
    color: #0d6fb8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
}

body[data-theme="xero"] .xui-page-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .xui-page-head__title,
body[data-theme="xero"] .xui-widget__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    color: #162331;
}

body[data-theme="xero"] .xui-widget__title {
    font-size: 22px;
}

body[data-theme="xero"] .xui-page-head__subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    color: #5f7186;
    font-size: 14px;
}

body[data-theme="xero"] .xui-page-head__actions,
body[data-theme="xero"] .xui-alertbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-theme="xero"] .xui-alertbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #dce7f1;
    border-radius: 16px;
    background: #ffffff;
    color: #466074;
}

body[data-theme="xero"] .xui-alertbar--inline {
    margin-top: 10px;
}

body[data-theme="xero"] .xui-kpi-grid,
body[data-theme="xero"] .xui-mini-kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-theme="xero"] .xui-mini-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi,
body[data-theme="xero"] .xui-widget {
    border: 1px solid #dce7f1;
    border-radius: 18px;
    background: #ffffff;
}

body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi {
    padding: 18px;
}

body[data-theme="xero"] .xui-kpi-card span,
body[data-theme="xero"] .xui-mini-kpi span {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73849a;
    font-weight: 700;
}

body[data-theme="xero"] .xui-kpi-card strong,
body[data-theme="xero"] .xui-mini-kpi strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.1;
    color: #162331;
}

body[data-theme="xero"] .xui-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #5f7186;
}

body[data-theme="xero"] .xui-home-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="xero"] .xui-widget {
    padding: 20px 22px;
}

body[data-theme="xero"] .xui-widget--span-2 {
    grid-column: span 2;
}

body[data-theme="xero"] .xui-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body[data-theme="xero"] .xui-stack-list {
    display: grid;
    gap: 12px;
}

body[data-theme="xero"] .xui-stack-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    background: #fbfcfd;
}

body[data-theme="xero"] .xui-stack-row strong {
    color: #162331;
}

body[data-theme="xero"] .xui-stack-row p {
    margin: 4px 0 0;
    color: #5f7186;
}

body[data-theme="xero"] .xui-link-list {
    display: grid;
    gap: 12px;
}

body[data-theme="xero"] .xui-link-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    background: #fbfcfd;
    color: #0d6fb8;
    font-weight: 700;
    text-decoration: none;
}

body[data-theme="xero"] .command-center-list--xui {
    display: grid;
    gap: 12px;
}

@media (max-width: 1120px) {
    body[data-theme="xero"] .page-main-grid,
    body[data-theme="xero"] .customer-command-deck__content,
    body[data-theme="xero"] .customer-command-deck__lead,
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-priority-ledger__statement-form,
    body[data-theme="xero"] .customer-priority-ledger__statement-metrics,
    body[data-theme="xero"] .receivables-filter-form,
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-kpi-grid,
    body[data-theme="xero"] .xui-mini-kpi-grid {
        grid-template-columns: 1fr;
    }

    body[data-theme="xero"] .customer-priority-ledger__card--statement,
    body[data-theme="xero"] .customer-command-deck__fact--wide,
    body[data-theme="xero"] .customer-priority-ledger__statement-metric--wide,
    body[data-theme="xero"] .xui-widget--span-2 {
        grid-column: auto;
    }

    body[data-theme="xero"] .orders-main #orders-preview {
        position: static;
    }

    body[data-theme="xero"] .orders-preview-line__grid,
    body[data-theme="xero"] .customer-command-deck__facts,
    body[data-theme="xero"] .customer-command-deck__more-grid,
    body[data-theme="xero"] .xui-page-head,
    body[data-theme="xero"] .xui-alertbar {
        grid-template-columns: 1fr;
    }

    body[data-theme="xero"] .xui-page-head,
    body[data-theme="xero"] .xui-alertbar,
    body[data-theme="xero"] .xui-stack-row {
        display: grid;
    }

    body[data-theme="xero"] .xui-lower-window__summary,
    body[data-theme="xero"] .xui-sweep-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

body[data-theme="xero"] .xui-lower-window__metrics {
        justify-content: flex-start;
    }
}

/* 2026-05-03 restore classic customer detail flow */
body[data-theme="xero"] .customer-detail-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
}

body[data-theme="xero"] .customer-detail-workspace__full,
body[data-theme="xero"] .customer-detail-workspace__main,
body[data-theme="xero"] .customer-detail-workspace__side,
body[data-theme="xero"] .customer-detail-workspace__automation,
body[data-theme="xero"] .customer-detail-workspace__ai,
body[data-theme="xero"] .customer-detail-workspace__summary,
body[data-theme="xero"] .customer-detail-workspace__commercials,
body[data-theme="xero"] .customer-detail-workspace__operations,
body[data-theme="xero"] .customer-detail-workspace__history {
    grid-column: 1 / -1;
}

body[data-theme="xero"] .customer-priority-ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

body[data-theme="xero"] .customer-priority-ledger__card,
body[data-theme="xero"] .customer-priority-ledger__card--statement {
    grid-column: auto;
    min-height: 360px;
    max-height: 360px;
    height: 360px;
    overflow: auto;
}

body[data-theme="xero"] .customer-section-toggle {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dce6ef;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body[data-theme="xero"] .customer-section-toggle__summary {
    padding: 14px 16px;
}

body[data-theme="xero"] .customer-section-toggle__body {
    padding: 0 16px 16px;
}

body[data-theme="xero"] .customer-detail-compact-grid--collapsed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="xero"] .customer-panel-drawer {
    grid-column: 1 / -1;
}

@media (max-width: 1280px) {
    body[data-theme="xero"] .customer-priority-ledger {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="xero"] .customer-detail-compact-grid--collapsed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-detail-compact-grid--collapsed {
        grid-template-columns: 1fr;
    }

    body[data-theme="xero"] .customer-priority-ledger__card,
    body[data-theme="xero"] .customer-priority-ledger__card--statement {
        min-height: 0;
        max-height: none;
        height: auto;
        overflow: visible;
    }
}

/* 2026-05-03 professional compact shell pass */
body[data-theme="xero"] {
    --xero-shell-width: min(1360px, calc(100% - 20px));
}

body[data-theme="xero"] .content {
    padding: 0 0 24px;
}

body[data-theme="xero"] .app-header {
    padding: 10px 14px 6px;
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav,
body[data-theme="xero"] .flash,
body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .settings-sections,
body[data-theme="xero"] .xui-dashboard-shell {
    width: var(--xero-shell-width);
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: 210px minmax(220px, 1fr) auto;
    gap: 12px;
}

body[data-theme="xero"] .app-brand {
    gap: 10px;
}

body[data-theme="xero"] .app-brand__logo,
body[data-theme="xero"] .mobile-topbar__logo {
    width: 68px;
}

body[data-theme="xero"] .app-brand__eyebrow,
body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-home-banner__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow {
    font-size: 10px;
    letter-spacing: 0.07em;
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 20px;
    line-height: 1.02;
}

body[data-theme="xero"] .global-search__field input {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

body[data-theme="xero"] .app-header__controls {
    gap: 8px;
}

body[data-theme="xero"] .app-header__meta-pill,
body[data-theme="xero"] .app-header__user {
    padding: 6px 10px;
}

body[data-theme="xero"] .app-header__user-name {
    font-size: 12px;
}

body[data-theme="xero"] .app-header__user-role {
    font-size: 10px;
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button,
body[data-theme="xero"] input[type="submit"],
body[data-theme="xero"] input[type="button"] {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 10px;
}

body[data-theme="xero"] .button.button-compact {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 11px;
}

body[data-theme="xero"] .header-nav {
    gap: 12px;
}

body[data-theme="xero"] .header-nav__link {
    min-height: 32px;
    font-size: 13px;
    padding: 0 2px;
}

body[data-theme="xero"] .header-nav__link.is-active::after {
    bottom: -7px;
    height: 2px;
}

body[data-theme="xero"] .app-header__subnav {
    margin-top: 10px;
    padding-top: 8px;
}

body[data-theme="xero"] .header-subnav {
    gap: 8px;
}

body[data-theme="xero"] .header-subnav__link {
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
}

body[data-theme="xero"] .flash {
    margin: 12px auto 0;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 12px;
}

body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .settings-sections,
body[data-theme="xero"] .xui-dashboard-shell {
    margin: 14px auto 0;
}

body[data-theme="xero"] .workspace-head {
    gap: 12px;
    margin-bottom: 14px;
}

body[data-theme="xero"] .workspace-head__title {
    font-size: 24px;
    line-height: 1.06;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .hero,
body[data-theme="xero"] .settings-directory,
body[data-theme="xero"] .settings-card,
body[data-theme="xero"] .order-preview,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card {
    border-radius: 14px;
}

body[data-theme="xero"] .panel {
    padding: 14px;
}

body[data-theme="xero"] .panel-header {
    gap: 10px;
    margin-bottom: 10px;
}

body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2 {
    font-size: 17px;
    line-height: 1.16;
}

body[data-theme="xero"] .panel-header p,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small {
    font-size: 12px;
    line-height: 1.38;
}

body[data-theme="xero"] .table-wrap table thead th {
    padding: 10px 10px;
    font-size: 10px;
    line-height: 1;
}

body[data-theme="xero"] .table-wrap table tbody td {
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.3;
}

body[data-theme="xero"] .table-wrap table td .table-link,
body[data-theme="xero"] .table-wrap table td strong {
    font-size: 12px;
    line-height: 1.22;
}

body[data-theme="xero"] .table-wrap table td small,
body[data-theme="xero"] .table-wrap table td .muted {
    font-size: 11px;
    line-height: 1.22;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 9px;
}

body[data-theme="xero"] textarea {
    min-height: 92px;
}

body[data-theme="xero"] .field {
    gap: 6px;
}

body[data-theme="xero"] .field span {
    font-size: 11px;
}

body[data-theme="xero"] .pill {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1.1;
}

body[data-theme="xero"] .dashboard-home-card__header h2,
body[data-theme="xero"] .xui-home-banner__title,
body[data-theme="xero"] .xui-section-head__title {
    font-size: 20px;
    line-height: 1.12;
}

body[data-theme="xero"] .xui-home-banner,
body[data-theme="xero"] .xui-page-head,
body[data-theme="xero"] .xui-alertbar {
    gap: 12px;
    margin-bottom: 14px;
}

body[data-theme="xero"] .xui-home-banner__badge {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .metric-card,
body[data-theme="xero"] .choice-card,
body[data-theme="xero"] .role-choice {
    padding: 12px;
}

body[data-theme="xero"] .system360-chat__bubble {
    min-height: 46px;
}

@media (max-width: 980px) {
    body[data-theme="xero"] .app-header__top {
        grid-template-columns: 1fr;
    }

    body[data-theme="xero"] .global-search {
        order: 3;
    }

    body[data-theme="xero"] .app-header__controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* 2026-05-03 enterprise shell rewrite */
body[data-theme="xero"] {
    --xero-shell-width: min(1420px, calc(100% - 24px));
    --xero-blue: #0f6fb6;
    --xero-blue-strong: #0b5f9d;
    --xero-surface: #f4f7fa;
    --xero-panel: #ffffff;
    --xero-panel-alt: #f8fafc;
    --xero-border: #dbe5ee;
    --xero-border-strong: #c7d5e2;
    --xero-text: #162638;
    --xero-text-soft: #66788d;
    --xero-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.04);
}

body[data-theme="xero"] .content {
    padding: 0 0 18px !important;
}

body[data-theme="xero"] .app-header {
    padding: 10px 14px 4px !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav,
body[data-theme="xero"] .flash,
body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .settings-sections,
body[data-theme="xero"] .xui-dashboard-shell {
    width: var(--xero-shell-width) !important;
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: minmax(180px, 228px) minmax(260px, 540px) minmax(280px, auto) !important;
    gap: 12px !important;
    align-items: center !important;
}

body[data-theme="xero"] .app-brand {
    gap: 10px !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .app-brand__logo,
body[data-theme="xero"] .mobile-topbar__logo {
    width: 64px !important;
}

body[data-theme="xero"] .app-brand__meta {
    gap: 0 !important;
}

body[data-theme="xero"] .app-brand__eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.68) !important;
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 16px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .global-search__field input {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
}

body[data-theme="xero"] .app-header__controls {
    gap: 8px !important;
}

body[data-theme="xero"] .app-header__meta-pill,
body[data-theme="xero"] .app-header__user {
    min-height: 34px !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
}

body[data-theme="xero"] .app-header__user-name {
    font-size: 12px !important;
}

body[data-theme="xero"] .app-header__user-role {
    font-size: 10px !important;
}

body[data-theme="xero"] .header-nav {
    gap: 14px !important;
}

body[data-theme="xero"] .header-nav__link {
    min-height: 28px !important;
    padding: 0 2px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .header-nav__link.is-active::after {
    bottom: -5px !important;
    height: 2px !important;
}

body[data-theme="xero"] .app-header__subnav {
    margin-top: 8px !important;
    padding-top: 6px !important;
}

body[data-theme="xero"] .header-subnav {
    gap: 8px !important;
}

body[data-theme="xero"] .header-subnav__link {
    min-height: 30px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
    color: #4b5f75 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 111, 182, 0.12) !important;
}

body[data-theme="xero"] .header-subnav__link.is-active {
    color: var(--xero-blue) !important;
    background: #ffffff !important;
    border-color: rgba(15, 111, 182, 0.32) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 111, 182, 0.08) !important;
}

body[data-theme="xero"] .flash {
    margin: 10px auto 0 !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .settings-sections,
body[data-theme="xero"] .xui-dashboard-shell {
    margin: 12px auto 0 !important;
}

body[data-theme="xero"] .workspace-head {
    gap: 10px !important;
    margin-bottom: 12px !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .xui-page-head__title {
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-page-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .settings-card,
body[data-theme="xero"] .settings-directory,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card,
body[data-theme="xero"] .order-preview,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .xui-page-head,
body[data-theme="xero"] .xui-alertbar,
body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi {
    border-radius: 14px !important;
    border-color: var(--xero-border) !important;
    box-shadow: var(--xero-shadow) !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi,
body[data-theme="xero"] .xui-page-head,
body[data-theme="xero"] .xui-alertbar {
    padding: 14px !important;
}

body[data-theme="xero"] .panel-header {
    gap: 8px !important;
    margin-bottom: 10px !important;
}

body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .xui-widget__title {
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

body[data-theme="xero"] p,
body[data-theme="xero"] small,
body[data-theme="xero"] .muted,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] .panel small {
    font-size: 12px !important;
    line-height: 1.42 !important;
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button,
body[data-theme="xero"] input[type="submit"],
body[data-theme="xero"] input[type="button"] {
    min-height: 32px !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

body[data-theme="xero"] .button.button-compact {
    min-height: 28px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea {
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] textarea {
    min-height: 84px !important;
}

body[data-theme="xero"] .field span,
body[data-theme="xero"] label,
body[data-theme="xero"] .table-wrap table thead th {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] .table-wrap table thead th {
    padding: 10px 10px !important;
}

body[data-theme="xero"] .table-wrap table tbody td {
    padding: 10px !important;
    font-size: 12px !important;
    vertical-align: top !important;
}

body[data-theme="xero"] .table-wrap table td strong,
body[data-theme="xero"] .table-wrap table td .table-link {
    font-size: 12px !important;
    line-height: 1.24 !important;
}

body[data-theme="xero"] .table-wrap table td .muted,
body[data-theme="xero"] .table-wrap table td small {
    font-size: 11px !important;
}

body[data-theme="xero"] .table-cell-inline,
body[data-theme="xero"] .table-meta-inline {
    gap: 6px !important;
}

body[data-theme="xero"] .pill {
    min-height: 22px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

body[data-theme="xero"] .page-main-grid,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .xui-home-grid,
body[data-theme="xero"] .xui-kpi-grid,
body[data-theme="xero"] .xui-mini-kpi-grid {
    gap: 14px !important;
}

body[data-theme="xero"] .customer-command-deck {
    padding: 14px !important;
}

body[data-theme="xero"] .customer-command-deck__lead {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 250px) !important;
    gap: 12px !important;
    align-items: start !important;
    margin-bottom: 12px !important;
}

body[data-theme="xero"] .customer-command-deck__identity {
    min-width: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__identity h1 {
    font-size: 22px !important;
    line-height: 1.08 !important;
    margin: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__address-line,
body[data-theme="xero"] .customer-command-deck__contact-line {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 4px 0 0 !important;
}

body[data-theme="xero"] .customer-command-deck__balance {
    padding: 12px !important;
    border-radius: 14px !important;
    gap: 4px !important;
}

body[data-theme="xero"] .customer-command-deck__balance > span {
    font-size: 10px !important;
}

body[data-theme="xero"] .customer-command-deck__balance strong {
    font-size: 20px !important;
    line-height: 1.05 !important;
}

body[data-theme="xero"] .customer-command-deck__balance-meta {
    font-size: 11px !important;
    gap: 8px !important;
}

body[data-theme="xero"] .customer-command-deck__content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.72fr) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .customer-command-deck__facts {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .customer-command-deck__fact,
body[data-theme="xero"] .customer-command-deck__actions-card {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .customer-command-deck__actions-head strong {
    font-size: 14px !important;
    line-height: 1.18 !important;
}

body[data-theme="xero"] .customer-command-deck__fact small,
body[data-theme="xero"] .customer-command-deck__actions-foot,
body[data-theme="xero"] .customer-command-deck__more-summary small {
    font-size: 11px !important;
}

body[data-theme="xero"] .customer-command-deck__fact--wide {
    grid-column: 1 / -1 !important;
}

body[data-theme="xero"] .customer-command-deck__more {
    margin: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__more-summary {
    gap: 2px !important;
    padding: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__more-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

body[data-theme="xero"] .customer-command-deck__actions-card .button,
body[data-theme="xero"] .customer-command-deck__actions-card button {
    min-height: 30px !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
}

body[data-theme="xero"] .customer-overview-actions__grid {
    gap: 8px !important;
}

body[data-theme="xero"] .customer-priority-ledger {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 14px !important;
}

body[data-theme="xero"] .customer-priority-ledger__card,
body[data-theme="xero"] .customer-priority-ledger__card--statement {
    min-height: 0 !important;
    height: 320px !important;
    max-height: 320px !important;
    overflow: auto !important;
    padding: 12px !important;
    grid-column: auto !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-summary,
body[data-theme="xero"] .customer-priority-ledger__statement-actions,
body[data-theme="xero"] .customer-priority-ledger__statement-pills,
body[data-theme="xero"] .customer-priority-ledger__statement-foot {
    gap: 8px !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-form {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metrics {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric,
body[data-theme="xero"] .customer-priority-ledger__statement-metric--wide {
    grid-column: auto !important;
    padding: 10px !important;
    border-radius: 12px !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric strong {
    font-size: 18px !important;
    margin-top: 5px !important;
}

body[data-theme="xero"] .customer-section-toggle {
    padding: 0 !important;
    border-radius: 14px !important;
    margin-top: 12px !important;
}

body[data-theme="xero"] .customer-section-toggle__summary {
    padding: 12px 14px !important;
}

body[data-theme="xero"] .customer-section-toggle__body {
    padding: 0 14px 14px !important;
}

body[data-theme="xero"] .customer-detail-compact-grid--collapsed {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .orders-main {
    gap: 14px !important;
}

body[data-theme="xero"] .orders-workbench-panel .table-wrap table tbody td:first-child,
body[data-theme="xero"] .customers-table td:first-child,
body[data-theme="xero"] .receivables-table td:first-child {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding-left: 8px !important;
    padding-right: 6px !important;
}

body[data-theme="xero"] .table-wrap input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
}

body[data-theme="xero"] .orders-preview-line__grid,
body[data-theme="xero"] .xui-sweep-grid,
body[data-theme="xero"] .detail-card-grid {
    gap: 10px !important;
}

body[data-theme="xero"] .xui-kpi-card strong,
body[data-theme="xero"] .xui-mini-kpi strong {
    font-size: 22px !important;
    margin-top: 8px !important;
}

body[data-theme="xero"] .xui-home-banner__title,
body[data-theme="xero"] .xui-section-head__title,
body[data-theme="xero"] .dashboard-home-card__header h2 {
    font-size: 18px !important;
    line-height: 1.12 !important;
}

body[data-theme="xero"] .stack-list,
body[data-theme="xero"] .xui-stack-list,
body[data-theme="xero"] .xui-link-list {
    gap: 8px !important;
}

body[data-theme="xero"] .list-item,
body[data-theme="xero"] .xui-stack-row,
body[data-theme="xero"] .xui-link-list a {
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

body[data-theme="xero"] .table-link,
body[data-theme="xero"] .button,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .header-nav__link,
body[data-theme="xero"] .header-subnav__link,
body[data-theme="xero"] .app-brand__meta strong,
body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .customer-command-deck__identity h1,
body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .panel h2 {
    overflow-wrap: anywhere;
}

body[data-theme="xero"] .table-link,
body[data-theme="xero"] .customer-name-link,
body[data-theme="xero"] .table-wrap td strong,
body[data-theme="xero"] .customer-command-deck__identity,
body[data-theme="xero"] .customer-command-deck__fact,
body[data-theme="xero"] .app-brand__meta,
body[data-theme="xero"] .workspace-head__identity,
body[data-theme="xero"] .panel-header > div {
    min-width: 0 !important;
}

@media (max-width: 1260px) {
    body[data-theme="xero"] .customer-command-deck__content,
    body[data-theme="xero"] .customer-command-deck__lead {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .customer-command-deck__facts,
    body[data-theme="xero"] .customer-command-deck__more-grid,
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-detail-compact-grid--collapsed {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .customer-priority-ledger__statement-form,
    body[data-theme="xero"] .customer-priority-ledger__statement-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    body[data-theme="xero"] .app-header__top {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .global-search {
        order: 3 !important;
    }

    body[data-theme="xero"] .app-header__controls {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    body[data-theme="xero"] .customer-command-deck__facts,
    body[data-theme="xero"] .customer-command-deck__more-grid,
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-priority-ledger__statement-form,
    body[data-theme="xero"] .customer-priority-ledger__statement-metrics,
    body[data-theme="xero"] .customer-detail-compact-grid--collapsed,
    body[data-theme="xero"] .xui-home-grid,
    body[data-theme="xero"] .xui-kpi-grid,
    body[data-theme="xero"] .xui-mini-kpi-grid,
    body[data-theme="xero"] .page-main-grid,
    body[data-theme="xero"] .settings-layout {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .customer-priority-ledger__card,
    body[data-theme="xero"] .customer-priority-ledger__card--statement {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* 2026-05-03 final customer 360 scale and type pass */
body[data-theme="xero"],
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] button {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
}

body[data-theme="xero"] .app-header {
    padding: 7px 14px 1px !important;
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: 150px minmax(220px, 440px) auto !important;
    gap: 8px !important;
}

body[data-theme="xero"] .app-brand {
    gap: 8px !important;
}

body[data-theme="xero"] .app-brand__logo {
    width: 52px !important;
}

body[data-theme="xero"] .app-brand__eyebrow {
    font-size: 10px !important;
    margin: 0 !important;
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .global-search__field input {
    height: 32px !important;
    font-size: 11px !important;
}

body[data-theme="xero"] .app-header__controls {
    gap: 6px !important;
    align-items: center !important;
}

body[data-theme="xero"] .app-header__meta-pill,
body[data-theme="xero"] .app-header__user,
body[data-theme="xero"] .app-header__icon-button {
    min-height: 28px !important;
    width: 28px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .app-header__icon-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body[data-theme="xero"] .app-header__icon-pill svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}

body[data-theme="xero"] .app-header__user-name,
body[data-theme="xero"] .app-header__user-role {
    display: none !important;
}

body[data-theme="xero"] .app-header__nav {
    margin-top: 8px !important;
}

body[data-theme="xero"] .header-nav {
    gap: 12px !important;
}

body[data-theme="xero"] .header-nav__link {
    min-height: 24px !important;
    font-size: 10px !important;
}

body[data-theme="xero"] .app-header__subnav {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(1120px, calc(100% - 28px)) !important;
    margin-top: 0 !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--xero-border) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 80 !important;
}

body[data-theme="xero"] .app-header:hover .app-header__subnav,
body[data-theme="xero"] .app-header:focus-within .app-header__subnav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body[data-theme="xero"] .header-subnav {
    gap: 6px !important;
}

body[data-theme="xero"] .header-subnav__link {
    min-height: 26px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    color: #43566c !important;
    background: #f6f9fc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body[data-theme="xero"] .header-subnav__link:hover,
body[data-theme="xero"] .header-subnav__link.is-active {
    color: var(--xero-blue) !important;
    background: rgba(15, 111, 182, 0.08) !important;
    border-color: rgba(15, 111, 182, 0.2) !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .panel h1,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .panel-header h2 {
    font-size: 15px !important;
}

body[data-theme="xero"] p,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] .panel small,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] .button,
body[data-theme="xero"] button {
    font-size: 11px !important;
}

body[data-theme="xero"] .customer-command-deck {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.9fr) repeat(4, minmax(130px, 0.9fr)) minmax(250px, 1.15fr) !important;
    gap: 10px !important;
    grid-auto-flow: row dense !important;
}

body[data-theme="xero"] .customer-command-deck__lead,
body[data-theme="xero"] .customer-command-deck__content,
body[data-theme="xero"] .customer-command-deck__facts {
    display: contents !important;
}

body[data-theme="xero"] .customer-command-deck__identity {
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: 2px 0 !important;
}

body[data-theme="xero"] .customer-command-deck__identity h1 {
    font-size: 16px !important;
    line-height: 1.08 !important;
}

body[data-theme="xero"] .customer-command-deck__address-line,
body[data-theme="xero"] .customer-command-deck__contact-line {
    font-size: 10px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .customer-command-deck__balance {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 10px !important;
}

body[data-theme="xero"] .customer-command-deck__balance > span,
body[data-theme="xero"] .customer-command-deck__fact span,
body[data-theme="xero"] .customer-command-deck__more-summary span,
body[data-theme="xero"] .customer-command-deck__actions-head .eyebrow {
    font-size: 9px !important;
}

body[data-theme="xero"] .customer-command-deck__balance strong {
    font-size: 14px !important;
}

body[data-theme="xero"] .customer-command-deck__balance-meta {
    font-size: 9px !important;
}

body[data-theme="xero"] .customer-command-deck__fact {
    min-height: 78px !important;
    padding: 9px 10px !important;
}

/* 2026-05-03 dashboard professional compact pass */
body[data-theme="xero"] .xui-dashboard-shell {
    gap: 12px !important;
}

body[data-theme="xero"] .xui-home-banner.xui-home-banner--compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding: 0 2px !important;
}

body[data-theme="xero"] .xui-home-banner__copy {
    gap: 10px !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .xui-home-banner__mark {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    flex: 0 0 24px !important;
}

body[data-theme="xero"] .xui-home-banner__title {
    font-size: 15px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

body[data-theme="xero"] .xui-home-banner__meta {
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

body[data-theme="xero"] .xui-home-banner__meta .button {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .xui-home-grid {
    gap: 12px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .xui-widget {
    padding: 14px 14px 12px !important;
    border-radius: 14px !important;
}

body[data-theme="xero"] .xui-widget__head {
    margin-bottom: 10px !important;
    gap: 10px !important;
}

body[data-theme="xero"] .xui-widget__eyebrow {
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 2px !important;
}

body[data-theme="xero"] .xui-widget__title {
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .xui-widget__subtitle {
    margin: -2px 0 10px !important;
    color: #607081 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .xui-stat-pair {
    gap: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}

body[data-theme="xero"] .xui-stat-pair strong {
    font-size: 18px !important;
    line-height: 1.05 !important;
    margin-bottom: 3px !important;
}

body[data-theme="xero"] .xui-stat-pair span,
body[data-theme="xero"] .xui-line-meta,
body[data-theme="xero"] .xui-list-row span,
body[data-theme="xero"] .xui-list-row strong,
body[data-theme="xero"] .xui-metric-grid span {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .xui-line-meta {
    gap: 12px !important;
}

body[data-theme="xero"] .xui-metric-grid {
    gap: 10px !important;
}

body[data-theme="xero"] .xui-metric-grid strong {
    font-size: 15px !important;
    line-height: 1.08 !important;
    margin-bottom: 2px !important;
}

body[data-theme="xero"] .xui-mini-chart {
    min-height: 118px !important;
    gap: 10px !important;
    padding-top: 6px !important;
}

body[data-theme="xero"] .xui-mini-chart__fill {
    max-width: 30px !important;
    border-radius: 8px 8px 0 0 !important;
}

body[data-theme="xero"] .xui-mini-chart__bar {
    gap: 7px !important;
}

body[data-theme="xero"] .xui-mini-chart__bar span {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

body[data-theme="xero"] .xui-list-rows {
    gap: 8px !important;
}

body[data-theme="xero"] .xui-list-row {
    padding: 8px 10px !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .xui-widget__actions {
    gap: 8px !important;
    margin-top: 12px !important;
}

body[data-theme="xero"] .xui-widget__actions .button,
body[data-theme="xero"] .xui-link,
body[data-theme="xero"] .xui-chip {
    font-size: 11px !important;
}

body[data-theme="xero"] .xui-widget__actions .button {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .xui-app-strip,
body[data-theme="xero"] .xui-lower-window {
    margin-top: 14px !important;
}

body[data-theme="xero"] .xui-section-head__title,
body[data-theme="xero"] .xui-lower-window__title {
    font-size: 14px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .xui-app-card {
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
}

body[data-theme="xero"] .xui-app-card strong {
    font-size: 12px !important;
}

body[data-theme="xero"] .xui-app-card span,
body[data-theme="xero"] .xui-sweep-card p,
body[data-theme="xero"] .xui-bullet-list li {
    font-size: 11px !important;
    line-height: 1.4 !important;
}

body[data-theme="xero"] .xui-subpanel h3,
body[data-theme="xero"] .xui-sweep-card strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .xui-lower-window__summary {
    padding: 12px 14px !important;
}

body[data-theme="xero"] .xui-lower-window__body {
    padding: 0 14px 14px !important;
}

@media (max-width: 980px) {
    body[data-theme="xero"] .xui-home-banner.xui-home-banner--compact {
        align-items: flex-start !important;
    }

    body[data-theme="xero"] .xui-home-banner__meta {
        justify-content: flex-start !important;
    }
}

/* 2026-05-03 customer snapshot and buying history pass */
body[data-theme="xero"] .customer-more-details-shell {
    margin-top: 14px !important;
}

body[data-theme="xero"] .customer-more-details-shell__body {
    display: grid !important;
    gap: 14px !important;
}

body[data-theme="xero"] .customer-snapshot-grid,
body[data-theme="xero"] .customer-more-details-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .customer-snapshot-card {
    min-width: 0 !important;
}

body[data-theme="xero"] .customer-snapshot-card h2 {
    margin-bottom: 8px !important;
}

body[data-theme="xero"] .buying-history-summary {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

body[data-theme="xero"] .buying-history-summary__card {
    border: 1px solid #e4ebf1 !important;
    background: #fbfcfd !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    display: grid !important;
    gap: 4px !important;
}

body[data-theme="xero"] .buying-history-summary__card span {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #73849a !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .buying-history-summary__card strong {
    font-size: 14px !important;
    line-height: 1.12 !important;
    color: #162331 !important;
}

body[data-theme="xero"] .product-price-table--customer-history th:first-child,
body[data-theme="xero"] .product-price-table--customer-history td:first-child {
    min-width: 220px !important;
    text-align: left !important;
}

body[data-theme="xero"] .product-price-table--customer-history td:first-child strong {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

body[data-theme="xero"] .product-price-table--customer-history th,
body[data-theme="xero"] .product-price-table--customer-history td {
    font-size: 11px !important;
    vertical-align: top !important;
}

@media (max-width: 980px) {
    body[data-theme="xero"] .customer-snapshot-grid,
    body[data-theme="xero"] .customer-more-details-grid,
    body[data-theme="xero"] .buying-history-summary {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-03 hard type ceiling */
body[data-theme="xero"],
body[data-theme="xero"] *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
}

body[data-theme="xero"],
body[data-theme="xero"] p,
body[data-theme="xero"] span,
body[data-theme="xero"] small,
body[data-theme="xero"] label,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] button,
body[data-theme="xero"] .button,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .xui-chip,
body[data-theme="xero"] .header-nav__link,
body[data-theme="xero"] .header-subnav__link,
body[data-theme="xero"] .table-link,
body[data-theme="xero"] td,
body[data-theme="xero"] th {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body[data-theme="xero"] .app-brand__meta strong,
body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .xui-home-banner__title,
body[data-theme="xero"] .xui-section-head__title,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .panel h1,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .customer-command-deck__identity h1,
body[data-theme="xero"] .customer-command-deck__balance strong,
body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .xui-stat-pair strong,
body[data-theme="xero"] .xui-metric-grid strong,
body[data-theme="xero"] .xui-kpi-card strong,
body[data-theme="xero"] .xui-mini-kpi strong,
body[data-theme="xero"] .customer-priority-ledger__statement-metric strong,
body[data-theme="xero"] .buying-history-summary__card strong,
body[data-theme="xero"] .xui-subpanel h3 {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .xui-home-banner__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .customer-command-deck__fact span,
body[data-theme="xero"] .customer-command-deck__balance > span,
body[data-theme="xero"] .buying-history-summary__card span {
    font-size: 10px !important;
    line-height: 1.3 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(1) {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(2) {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(3) {
    grid-column: 5 !important;
    grid-row: 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(4) {
    grid-column: 6 !important;
    grid-row: 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .customer-command-deck__actions-head strong {
    font-size: 12px !important;
    line-height: 1.18 !important;
}

body[data-theme="xero"] .customer-command-deck__fact small,
body[data-theme="xero"] .customer-command-deck__actions-foot,
body[data-theme="xero"] .customer-command-deck__more-summary small {
    font-size: 9px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .customer-command-deck__actions {
    grid-column: 7 !important;
    grid-row: 1 !important;
}

body[data-theme="xero"] .customer-command-deck__actions-card {
    padding: 10px !important;
}

body[data-theme="xero"] .customer-command-deck__actions-card--toolbar {
    display: grid !important;
    gap: 8px !important;
    align-content: start !important;
}

body[data-theme="xero"] .customer-overview-actions__grid--toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
}

body[data-theme="xero"] .customer-command-deck__actions-card .button,
body[data-theme="xero"] .customer-command-deck__actions-card button {
    min-height: 26px !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
}

body[data-theme="xero"] .customer-command-deck__actions-more {
    margin-top: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__actions-more summary {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #4d6177 !important;
    cursor: pointer !important;
}

body[data-theme="xero"] .customer-command-deck__more {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
}

body[data-theme="xero"] .customer-command-deck__more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1280px) {
    body[data-theme="xero"] .customer-command-deck {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .customer-command-deck__identity {
        grid-column: 1 / span 2 !important;
    }

    body[data-theme="xero"] .customer-command-deck__balance {
        grid-column: 3 / span 2 !important;
    }

    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(1),
    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(2),
    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(3),
    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(4) {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    body[data-theme="xero"] .customer-command-deck__actions {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 980px) {
    body[data-theme="xero"] .app-header__subnav {
        display: none !important;
    }
}

/* 2026-05-03 customer 360 top rail alignment */
body[data-theme="xero"] .customer-command-deck {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.5fr) minmax(190px, 0.95fr) repeat(4, minmax(150px, 0.9fr)) minmax(260px, 1.2fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
}

body[data-theme="xero"] .customer-command-deck__lead,
body[data-theme="xero"] .customer-command-deck__content,
body[data-theme="xero"] .customer-command-deck__facts {
    display: contents !important;
}

body[data-theme="xero"] .customer-command-deck__identity {
    grid-column: 1 / span 1 !important;
    align-self: start !important;
    padding: 4px 0 !important;
}

body[data-theme="xero"] .customer-command-deck__balance {
    grid-column: 2 / span 1 !important;
    align-self: stretch !important;
}

body[data-theme="xero"] .customer-command-deck__fact {
    min-height: 104px !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(1) {
    grid-column: 3 / span 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(2) {
    grid-column: 4 / span 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(3) {
    grid-column: 5 / span 1 !important;
}

body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(4) {
    grid-column: 6 / span 1 !important;
}

body[data-theme="xero"] .customer-command-deck__actions {
    grid-column: 7 / span 1 !important;
}

body[data-theme="xero"] .customer-command-deck__actions-card {
    min-height: 100% !important;
}

body[data-theme="xero"] .customer-command-deck__more {
    grid-column: 1 / -1 !important;
}

body[data-theme="xero"] .customer-command-deck__more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1500px) {
    body[data-theme="xero"] .customer-command-deck {
        grid-template-columns: minmax(260px, 1.45fr) minmax(190px, 0.95fr) repeat(3, minmax(160px, 1fr)) minmax(260px, 1.15fr) !important;
    }

    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(4) {
        grid-column: 3 / span 1 !important;
    }

    body[data-theme="xero"] .customer-command-deck__actions {
        grid-column: 6 / span 1 !important;
    }
}

@media (max-width: 1260px) {
    body[data-theme="xero"] .customer-command-deck {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .customer-command-deck__identity {
        grid-column: 1 / span 2 !important;
    }

    body[data-theme="xero"] .customer-command-deck__balance {
        grid-column: 3 / span 2 !important;
    }

    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(1),
    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(2),
    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(3),
    body[data-theme="xero"] .customer-command-deck__fact:nth-of-type(4) {
        grid-column: auto !important;
    }

    body[data-theme="xero"] .customer-command-deck__actions {
        grid-column: 1 / -1 !important;
    }
}

/* 2026-05-03 absolute final ui ceiling */
html[data-font-size="small"],
html[data-font-size="medium"],
html[data-font-size="large"] {
    font-size: 12px !important;
}

body[data-theme="xero"],
body[data-theme="xero"] *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
}

body[data-theme="xero"] [hidden],
body[data-theme="xero"] .customer-panel-drawer[hidden],
body[data-theme="xero"] [data-customer-panel][hidden] {
    display: none !important;
}

body[data-theme="xero"],
body[data-theme="xero"] p,
body[data-theme="xero"] span,
body[data-theme="xero"] small,
body[data-theme="xero"] label,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] button,
body[data-theme="xero"] .button,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .xui-chip,
body[data-theme="xero"] .header-nav__link,
body[data-theme="xero"] .header-subnav__link,
body[data-theme="xero"] .table-link,
body[data-theme="xero"] td,
body[data-theme="xero"] th {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body[data-theme="xero"] .app-brand__meta strong,
body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .xui-home-banner__title,
body[data-theme="xero"] .xui-section-head__title,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .panel h1,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .customer-command-deck__identity h1,
body[data-theme="xero"] .customer-command-deck__balance strong,
body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .xui-stat-pair strong,
body[data-theme="xero"] .xui-metric-grid strong,
body[data-theme="xero"] .xui-kpi-card strong,
body[data-theme="xero"] .xui-mini-kpi strong,
body[data-theme="xero"] .customer-priority-ledger__statement-metric strong,
body[data-theme="xero"] .buying-history-summary__card strong,
body[data-theme="xero"] .xui-subpanel h3 {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .xui-home-banner__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .customer-command-deck__fact span,
body[data-theme="xero"] .customer-command-deck__balance > span,
body[data-theme="xero"] .buying-history-summary__card span {
    font-size: 10px !important;
    line-height: 1.3 !important;
}

body[data-theme="xero"] .customer-priority-ledger__card,
body[data-theme="xero"] .customer-priority-ledger__card--statement,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .xui-mini-kpi,
body[data-theme="xero"] .customer-command-deck__actions-card,
body[data-theme="xero"] .customer-command-deck__fact {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

/* 2026-05-03 enterprise stabilization pass */
body[data-theme="xero"] #cmg-page-content {
    width: min(1480px, calc(100% - 28px)) !important;
    margin: 0 auto !important;
    padding: 12px 0 28px !important;
}

body[data-theme="xero"] .app-header {
    padding: 10px 18px 6px !important;
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav {
    width: min(1480px, calc(100% - 28px)) !important;
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: 168px minmax(260px, 420px) auto !important;
    gap: 12px !important;
}

body[data-theme="xero"] .app-brand {
    gap: 10px !important;
}

body[data-theme="xero"] .app-brand__logo,
body[data-theme="xero"] .mobile-topbar__logo {
    width: 38px !important;
}

body[data-theme="xero"] .app-brand__eyebrow {
    font-size: 9px !important;
    letter-spacing: 0.1em !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 15px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .global-search__field input {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 14px !important;
    border-radius: 18px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .app-header__controls {
    gap: 6px !important;
}

body[data-theme="xero"] .app-header__icon-pill,
body[data-theme="xero"] .app-header__icon-button {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    justify-content: center !important;
}

body[data-theme="xero"] .app-header__icon-pill svg,
body[data-theme="xero"] .app-header__icon-button svg {
    width: 13px !important;
    height: 13px !important;
}

body[data-theme="xero"] .app-header__nav {
    margin-top: 6px !important;
}

body[data-theme="xero"] .header-nav {
    gap: 12px !important;
}

body[data-theme="xero"] .header-nav__link {
    min-height: 24px !important;
    font-size: 11px !important;
    padding: 0 0 5px !important;
}

body[data-theme="xero"] .header-nav__link.is-active::after {
    bottom: -4px !important;
    height: 2px !important;
}

body[data-theme="xero"] .app-header__subnav {
    display: none !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card {
    border-radius: 12px !important;
    padding: 14px !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

body[data-theme="xero"] .panel-header,
body[data-theme="xero"] .panel-header--compact,
body[data-theme="xero"] .xui-widget__head {
    margin-bottom: 10px !important;
    gap: 8px !important;
}

body[data-theme="xero"] .xui-widget {
    padding: 14px !important;
}

body[data-theme="xero"] .xui-home-banner.xui-home-banner--compact {
    padding: 12px 14px !important;
    border-radius: 12px !important;
}

body[data-theme="xero"] .xui-home-banner__copy {
    gap: 8px !important;
}

body[data-theme="xero"] .xui-home-banner__mark {
    width: 34px !important;
    height: 34px !important;
}

body[data-theme="xero"] .xui-home-banner__meta {
    gap: 8px !important;
}

body[data-theme="xero"] .xui-home-banner__meta .button {
    min-height: 30px !important;
    padding: 0 10px !important;
}

body[data-theme="xero"] .customer-command-deck {
    grid-template-columns: minmax(240px, 1.5fr) minmax(150px, 0.8fr) repeat(4, minmax(120px, 0.72fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .customer-command-deck__identity,
body[data-theme="xero"] .customer-command-deck__balance,
body[data-theme="xero"] .customer-command-deck__fact {
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

body[data-theme="xero"] .customer-command-deck__identity h1 {
    margin: 2px 0 6px !important;
}

body[data-theme="xero"] .customer-command-deck__address-line,
body[data-theme="xero"] .customer-command-deck__contact-line,
body[data-theme="xero"] .customer-command-deck__balance-meta,
body[data-theme="xero"] .customer-command-deck__fact small {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .customer-command-deck__actions {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
}

body[data-theme="xero"] .customer-command-deck__actions-card--toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
}

body[data-theme="xero"] .customer-command-deck__actions-head {
    min-width: 132px !important;
}

body[data-theme="xero"] .customer-overview-actions__grid--toolbar {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body[data-theme="xero"] .customer-command-deck__actions-foot {
    margin-left: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 6px 10px !important;
}

body[data-theme="xero"] .customer-priority-ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .customer-priority-ledger__card,
body[data-theme="xero"] .customer-priority-ledger__card--statement {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px !important;
}

body[data-theme="xero"] .statement-shell--enterprise {
    display: grid !important;
    gap: 10px !important;
}

body[data-theme="xero"] .statement-header--enterprise {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

body[data-theme="xero"] .statement-header--enterprise .lede {
    margin: 0 !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .statement-header__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

body[data-theme="xero"] .statement-toolbar {
    padding: 10px 12px !important;
}

body[data-theme="xero"] .statement-toolbar__filters {
    grid-template-columns: repeat(2, minmax(170px, 220px)) auto !important;
    gap: 10px !important;
}

body[data-theme="xero"] .statement-summary-grid--enterprise {
    grid-template-columns: minmax(260px, 1.7fr) repeat(6, minmax(120px, 0.7fr)) !important;
    gap: 10px !important;
    align-items: start !important;
}

body[data-theme="xero"] .statement-summary-grid--enterprise > * {
    align-self: start !important;
}

body[data-theme="xero"] .statement-summary-card {
    gap: 6px !important;
    align-content: start !important;
    min-height: 0 !important;
    height: auto !important;
}

body[data-theme="xero"] .statement-summary-card--customer {
    grid-column: span 2 !important;
}

body[data-theme="xero"] .statement-summary-card h2 {
    margin: 0 !important;
}

body[data-theme="xero"] .statement-contact-list,
body[data-theme="xero"] .statement-balance-list {
    gap: 4px !important;
}

body[data-theme="xero"] .statement-contact-list span,
body[data-theme="xero"] .statement-balance-list span,
body[data-theme="xero"] .customer-detail-compact-list p,
body[data-theme="xero"] .customer-detail-compact-list li,
body[data-theme="xero"] .buying-history-summary__card span,
body[data-theme="xero"] .table-wrap td,
body[data-theme="xero"] .table-wrap th {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .statement-contact-list strong,
body[data-theme="xero"] .statement-balance-list strong,
body[data-theme="xero"] .customer-detail-compact-list strong,
body[data-theme="xero"] .statement-ledger-panel td strong,
body[data-theme="xero"] .statement-ledger-panel th strong {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body[data-theme="xero"] .statement-workspace--enterprise {
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.9fr) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .statement-ledger-panel .table-wrap {
    border-radius: 10px !important;
    padding: 0 !important;
}

body[data-theme="xero"] .statement-email-panel {
    align-self: start !important;
}

body[data-theme="xero"] .statement-email-form {
    gap: 10px !important;
}

body[data-theme="xero"] .statement-email-form textarea {
    min-height: 180px !important;
}

body[data-theme="xero"] .buying-history-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .buying-history-summary__card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] table.responsive-table-card th,
body[data-theme="xero"] table.responsive-table-card td {
    padding: 9px 12px !important;
    vertical-align: middle !important;
}

body[data-theme="xero"] table.responsive-table-card tbody tr {
    height: auto !important;
}

body[data-theme="xero"] .table-wrap table thead th {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
}

body[data-theme="xero"] .detail-card strong,
body[data-theme="xero"] .panel p strong,
body[data-theme="xero"] .panel li strong {
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (max-width: 1280px) {
    body[data-theme="xero"] .statement-summary-grid--enterprise {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .statement-summary-card--customer {
        grid-column: span 2 !important;
    }

    body[data-theme="xero"] .statement-workspace--enterprise {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 980px) {
    body[data-theme="xero"] #cmg-page-content {
        width: calc(100% - 16px) !important;
        padding-top: 10px !important;
    }

    body[data-theme="xero"] .app-header__top {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .statement-toolbar__filters,
    body[data-theme="xero"] .statement-summary-grid--enterprise,
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .buying-history-summary {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .statement-summary-card--customer {
        grid-column: auto !important;
    }

    body[data-theme="xero"] .customer-command-deck {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .customer-command-deck__actions-foot {
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
}

/* 2026-05-03 enterprise layout reset */
body[data-theme="xero"] {
    background: #eef3f7 !important;
    color: #1d2c3c !important;
}

body[data-theme="xero"] .shell {
    display: block !important;
    min-height: 100vh !important;
}

body[data-theme="xero"] .content {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 0 28px !important;
}

body[data-theme="xero"] .content-frame {
    width: min(1360px, calc(100% - 28px)) !important;
    margin: 0 auto !important;
}

body[data-theme="xero"] #cmg-page-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 0 28px !important;
    display: grid !important;
    gap: 12px !important;
}

body[data-theme="xero"] .app-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
    border-radius: 0 0 12px 12px !important;
    padding: 8px 18px 6px !important;
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav {
    width: min(1360px, calc(100% - 28px)) !important;
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: 160px minmax(240px, 380px) auto !important;
    gap: 10px !important;
}

body[data-theme="xero"] .app-brand {
    min-width: 0 !important;
    gap: 8px !important;
}

body[data-theme="xero"] .app-brand__logo {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
}

body[data-theme="xero"] .app-brand__meta {
    gap: 0 !important;
}

body[data-theme="xero"] .app-brand__eyebrow {
    font-size: 8px !important;
    line-height: 1.1 !important;
}

body[data-theme="xero"] .app-header__controls {
    gap: 5px !important;
}

body[data-theme="xero"] .header-nav {
    gap: 10px !important;
}

body[data-theme="xero"] .header-nav__link {
    min-height: 22px !important;
    font-size: 11px !important;
}

body[data-theme="xero"] .workspace-head,
body[data-theme="xero"] .hero {
    margin-bottom: 0 !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .hero h1,
body[data-theme="xero"] .panel h1 {
    font-size: 16px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

body[data-theme="xero"] .workspace-head__subtitle,
body[data-theme="xero"] .lede,
body[data-theme="xero"] .muted,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] small {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .settings-card,
body[data-theme="xero"] .settings-directory,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card,
body[data-theme="xero"] .xui-widget {
    border-radius: 10px !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 38, 63, 0.08) !important;
    box-shadow: 0 4px 14px rgba(16, 38, 63, 0.04) !important;
}

body[data-theme="xero"] .detail-grid,
body[data-theme="xero"] .card-grid,
body[data-theme="xero"] .settings-grid,
body[data-theme="xero"] .dashboard-module-grid,
body[data-theme="xero"] .dashboard-module-grid--secondary,
body[data-theme="xero"] .panel-grid {
    gap: 12px !important;
}

body[data-theme="xero"] .panel-header,
body[data-theme="xero"] .panel-header--compact,
body[data-theme="xero"] .xui-widget__head {
    margin-bottom: 8px !important;
    gap: 8px !important;
}

body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .dashboard-home-card__header h2 {
    font-size: 14px !important;
    line-height: 1.18 !important;
    margin: 0 !important;
}

body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .xui-kpi-card strong,
body[data-theme="xero"] .xui-mini-kpi strong,
body[data-theme="xero"] .dashboard-home-card__metric strong {
    font-size: 16px !important;
    line-height: 1.08 !important;
}

body[data-theme="xero"] .field {
    gap: 6px !important;
}

body[data-theme="xero"] .field span,
body[data-theme="xero"] label,
body[data-theme="xero"] .eyebrow {
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em !important;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] .button,
body[data-theme="xero"] button {
    font-size: 12px !important;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
}

body[data-theme="xero"] textarea {
    min-height: 120px !important;
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button {
    min-height: 30px !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}

body[data-theme="xero"] .table-wrap {
    overflow: auto !important;
    padding: 0 !important;
}

body[data-theme="xero"] .table-wrap table,
body[data-theme="xero"] table.responsive-table-card {
    width: 100% !important;
    border-collapse: collapse !important;
}

body[data-theme="xero"] .table-wrap table thead th,
body[data-theme="xero"] table.responsive-table-card thead th {
    padding: 10px 12px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em !important;
    color: #6d7d8c !important;
    background: #f7fafc !important;
    border-bottom: 1px solid rgba(16, 38, 63, 0.08) !important;
}

body[data-theme="xero"] .table-wrap table tbody td,
body[data-theme="xero"] table.responsive-table-card tbody td {
    padding: 9px 12px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    border-bottom: 1px solid rgba(16, 38, 63, 0.06) !important;
}

body[data-theme="xero"] table.responsive-table-card tbody tr:last-child td,
body[data-theme="xero"] .table-wrap table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body[data-theme="xero"] .page-customers .customers-directory td,
body[data-theme="xero"] .page-orders td,
body[data-theme="xero"] .page-receivables td,
body[data-theme="xero"] .page-customers-statement td {
    white-space: normal !important;
}

body[data-theme="xero"] .customer-section-toggle,
body[data-theme="xero"] .customer-panel-drawer {
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 38, 63, 0.08) !important;
    box-shadow: 0 4px 14px rgba(16, 38, 63, 0.04) !important;
}

body[data-theme="xero"] .customer-section-toggle__summary {
    padding: 12px 14px !important;
}

body[data-theme="xero"] .customer-section-toggle__body {
    padding: 0 14px 14px !important;
}

body[data-theme="xero"] .customer-priority-ledger__header-copy,
body[data-theme="xero"] .customer-section-toggle__meta {
    gap: 6px !important;
}

body[data-theme="xero"] .buying-history-summary {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .buying-history-summary__card {
    min-height: 0 !important;
}

body[data-theme="xero"] .customer-command-deck {
    display: grid !important;
    grid-template-columns: minmax(280px, 1.5fr) repeat(5, minmax(120px, 0.8fr)) !important;
    gap: 10px !important;
    align-items: start !important;
}

body[data-theme="xero"] .customer-command-deck__identity {
    grid-column: 1 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__rail {
    grid-column: 2 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .customer-command-deck__fact--balance {
    background: #f7fafc !important;
}

body[data-theme="xero"] .customer-more-details-grid--support {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .customer-more-details-card {
    padding: 12px !important;
}

body[data-theme="xero"] .customer-overview-actions__grid--details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body[data-theme="xero"] .customer-overview-actions__grid--details .button,
body[data-theme="xero"] .customer-overview-actions__grid--details button {
    min-height: 28px !important;
    padding: 4px 10px !important;
}

body[data-theme="xero"] .customer-more-details-card--support .customer-detail-compact-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 14px !important;
}

body[data-theme="xero"] .customer-more-details-card--support .customer-detail-compact-list p {
    margin: 0 !important;
}

body[data-theme="xero"] .buying-history-summary {
    margin-bottom: 10px !important;
}

body[data-theme="xero"] .empty-state.compact {
    padding: 10px 0 !important;
}

body[data-theme="xero"] .empty-state.compact h3 {
    margin: 0 0 4px !important;
    font-size: 13px !important;
}

body[data-theme="xero"] .empty-state.compact p {
    margin: 0 !important;
}

@media (max-width: 980px) {
    body[data-theme="xero"] .content-frame {
        width: calc(100% - 16px) !important;
    }

    body[data-theme="xero"] .customer-command-deck,
    body[data-theme="xero"] .customer-command-deck__rail,
    body[data-theme="xero"] .customer-more-details-grid--support {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .buying-history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .customer-more-details-card--support .customer-detail-compact-list {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-03 quantum enterprise final shell */
body[data-theme="xero"] {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
    color: #10263f !important;
    background: #f4f7fb !important;
}

body[data-theme="xero"] .content-frame {
    width: min(1480px, calc(100% - 24px)) !important;
    margin: 14px auto 28px !important;
}

body[data-theme="xero"] .content,
body[data-theme="xero"] .page-shell,
body[data-theme="xero"] #cmg-page-content {
    gap: 14px !important;
}

body[data-theme="xero"] .app-header {
    padding: 8px 18px 10px !important;
    min-height: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="xero"] .app-header__top {
    min-height: 0 !important;
    gap: 12px !important;
    align-items: center !important;
}

body[data-theme="xero"] .app-brand {
    gap: 8px !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .app-brand__logo {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
}

body[data-theme="xero"] .app-brand__meta {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 16px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .app-brand__eyebrow,
body[data-theme="xero"] .app-header__subnav {
    display: none !important;
}

body[data-theme="xero"] .global-search--desktop {
    max-width: 330px !important;
}

body[data-theme="xero"] .global-search__field input {
    min-height: 34px !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .app-header__controls {
    gap: 6px !important;
}

body[data-theme="xero"] .app-header__icon-pill,
body[data-theme="xero"] .app-header__icon-button {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 999px !important;
}

body[data-theme="xero"] .header-nav {
    gap: 2px !important;
}

body[data-theme="xero"] .header-nav__link {
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    border-radius: 8px !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .xui-app-card,
body[data-theme="xero"] .customer-section-toggle,
body[data-theme="xero"] .statement-summary-card,
body[data-theme="xero"] .statement-email-panel,
body[data-theme="xero"] .statement-ledger-panel {
    border-radius: 12px !important;
    padding: 14px !important;
    box-shadow: 0 4px 12px rgba(16, 38, 63, 0.04) !important;
}

body[data-theme="xero"] .panel-header,
body[data-theme="xero"] .panel-header--compact,
body[data-theme="xero"] .xui-widget__head {
    margin-bottom: 10px !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(16, 38, 63, 0.08) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 38, 63, 0.04) !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar__summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar__summary h1 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar__summary span {
    font-size: 12px !important;
    color: #5f7284 !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar__actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body[data-theme="xero"] .xui-home-banner,
body[data-theme="xero"] .xui-app-strip {
    display: none !important;
}

body[data-theme="xero"] .xui-home-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

body[data-theme="xero"] .xui-widget {
    grid-column: span 4 !important;
    min-height: 0 !important;
}

body[data-theme="xero"] .xui-widget--wide {
    grid-column: span 12 !important;
}

body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .customer-command-deck__identity h1,
body[data-theme="xero"] .statement-header__title h1,
body[data-theme="xero"] .statement-summary-card h2,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .detail-card h2 {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .xui-widget__subtitle,
body[data-theme="xero"] .lede,
body[data-theme="xero"] .muted,
body[data-theme="xero"] .customer-command-deck__address-line,
body[data-theme="xero"] .customer-command-deck__contact-line,
body[data-theme="xero"] .statement-contact-list,
body[data-theme="xero"] .statement-summary-card p,
body[data-theme="xero"] .panel p,
body[data-theme="xero"] .detail-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body[data-theme="xero"] .xui-stat-pair strong,
body[data-theme="xero"] .xui-metric-grid strong,
body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .statement-summary-card strong {
    font-size: 16px !important;
    line-height: 1.1 !important;
}

body[data-theme="xero"] .xui-line-meta,
body[data-theme="xero"] .xui-list-rows,
body[data-theme="xero"] .xui-brief-grid {
    gap: 8px !important;
}

body[data-theme="xero"] .customer-command-deck {
    grid-template-columns: minmax(260px, 1.65fr) repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 12px !important;
}

body[data-theme="xero"] .customer-command-deck__identity,
body[data-theme="xero"] .customer-command-deck__fact {
    min-height: 0 !important;
}

body[data-theme="xero"] .customer-command-deck__rail {
    gap: 12px !important;
}

body[data-theme="xero"] .customer-command-deck__fact {
    padding: 12px !important;
}

body[data-theme="xero"] .customer-priority-ledger,
body[data-theme="xero"] .statement-summary-grid--enterprise,
body[data-theme="xero"] .statement-workspace--enterprise,
body[data-theme="xero"] .customer-more-details-grid,
body[data-theme="xero"] .customer-more-details-grid--support,
body[data-theme="xero"] .customer-snapshot-grid {
    gap: 14px !important;
}

body[data-theme="xero"] .customer-priority-ledger {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
}

body[data-theme="xero"] .customer-priority-ledger__card,
body[data-theme="xero"] .customer-priority-ledger__card--statement {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-summary,
body[data-theme="xero"] .customer-priority-ledger__statement-form--top,
body[data-theme="xero"] .customer-priority-ledger__statement-metrics,
body[data-theme="xero"] .customer-priority-ledger__statement-actions,
body[data-theme="xero"] .customer-priority-ledger__statement-pills {
    gap: 8px !important;
}

body[data-theme="xero"] .customer-priority-ledger__statement-metric {
    padding: 10px !important;
    min-height: 0 !important;
}

body[data-theme="xero"] .customer-section-toggle__summary {
    padding: 12px 14px !important;
}

body[data-theme="xero"] .customer-section-toggle__body {
    padding: 0 14px 14px !important;
}

body[data-theme="xero"] .customer-more-details-grid--support {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
}

body[data-theme="xero"] .customer-overview-actions__grid--details {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .customer-overview-actions__grid--details .button,
body[data-theme="xero"] .customer-overview-actions__inline-form,
body[data-theme="xero"] .customer-overview-actions__inline-form .button {
    width: 100% !important;
}

body[data-theme="xero"] .customer-detail-compact-list {
    gap: 6px !important;
}

body[data-theme="xero"] .customer-snapshot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .buying-history-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .buying-history-summary__card,
body[data-theme="xero"] .customer-history-list__item,
body[data-theme="xero"] .customer-payment-list__item,
body[data-theme="xero"] .list-item {
    min-height: 0 !important;
    padding: 10px 12px !important;
}

body[data-theme="xero"] .statement-shell--enterprise {
    gap: 14px !important;
}

body[data-theme="xero"] .statement-header--enterprise {
    padding: 14px !important;
}

body[data-theme="xero"] .statement-toolbar {
    padding: 10px 14px !important;
}

body[data-theme="xero"] .statement-summary-grid--enterprise {
    grid-template-columns: minmax(240px, 1.6fr) repeat(6, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .statement-summary-card {
    min-height: 0 !important;
    padding: 12px !important;
}

body[data-theme="xero"] .statement-workspace--enterprise {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr) !important;
}

body[data-theme="xero"] .table-wrap {
    padding: 0 !important;
    overflow: auto !important;
}

body[data-theme="xero"] .table-wrap table,
body[data-theme="xero"] table.responsive-table-card,
body[data-theme="xero"] table.compact-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] table.responsive-table-card th,
body[data-theme="xero"] table.responsive-table-card td,
body[data-theme="xero"] table.compact-table th,
body[data-theme="xero"] table.compact-table td {
    padding: 8px 10px !important;
    min-height: 0 !important;
    vertical-align: top !important;
    line-height: 1.3 !important;
}

body[data-theme="xero"] .table-wrap table td > *,
body[data-theme="xero"] .table-wrap table th > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body[data-theme="xero"] .table-wrap table td br {
    display: none !important;
}

body[data-theme="xero"] .table-cell-stack,
body[data-theme="xero"] .table-cell-stack--primary,
body[data-theme="xero"] .table-meta-stack {
    gap: 2px !important;
}

@media (max-width: 1280px) {
    body[data-theme="xero"] .xui-home-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .xui-widget {
        grid-column: span 4 !important;
    }

    body[data-theme="xero"] .xui-widget--wide {
        grid-column: span 8 !important;
    }

    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .customer-overview-actions__grid--details {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .statement-summary-grid--enterprise {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .statement-summary-card--customer {
        grid-column: span 3 !important;
    }
}

@media (max-width: 980px) {
    body[data-theme="xero"] .app-header__top,
    body[data-theme="xero"] .xui-dashboard-toolbar,
    body[data-theme="xero"] .statement-workspace--enterprise,
    body[data-theme="xero"] .customer-priority-ledger,
    body[data-theme="xero"] .customer-command-deck,
    body[data-theme="xero"] .customer-command-deck__rail,
    body[data-theme="xero"] .customer-more-details-grid--support,
    body[data-theme="xero"] .customer-snapshot-grid,
    body[data-theme="xero"] .buying-history-summary,
    body[data-theme="xero"] .statement-summary-grid--enterprise,
    body[data-theme="xero"] .xui-home-grid {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .xui-widget,
    body[data-theme="xero"] .xui-widget--wide,
    body[data-theme="xero"] .statement-summary-card--customer {
        grid-column: auto !important;
    }

    body[data-theme="xero"] .customer-overview-actions__grid--details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* 2026-05-03 systemic enterprise compression pass */
body[data-theme="xero"] .workspace-head,
body[data-theme="xero"] .workspace-head--overview-shell,
body[data-theme="xero"] .workspace-head--filter-shell,
body[data-theme="xero"] .workspace-head--reports-shell,
body[data-theme="xero"] .workspace-head--settings-shell,
body[data-theme="xero"] .workspace-head--users-shell {
    padding: 10px 14px !important;
    border-radius: 12px !important;
    gap: 10px !important;
}

body[data-theme="xero"] .workspace-head__identity {
    gap: 8px !important;
}

body[data-theme="xero"] .workspace-head__marker {
    width: 20px !important;
    height: 20px !important;
    border-radius: 8px !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .workspace-head__title h1 {
    font-size: 16px !important;
    line-height: 1.1 !important;
}

body[data-theme="xero"] .workspace-head__subtitle {
    display: none !important;
}

body[data-theme="xero"] .workspace-head__actions,
body[data-theme="xero"] .workspace-head__actions--clustered,
body[data-theme="xero"] .workspace-head__actions--preview {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body[data-theme="xero"] .workspace-head__actions .button,
body[data-theme="xero"] .workspace-head__actions .button-counter {
    font-size: 11px !important;
}

body[data-theme="xero"] .page-main-grid,
body[data-theme="xero"] .detail-grid {
    gap: 12px !important;
}

body[data-theme="xero"] .page-dashboard .xui-widget,
body[data-theme="xero"] .page-orders .panel,
body[data-theme="xero"] .page-customers .panel,
body[data-theme="xero"] .page-receivables .panel,
body[data-theme="xero"] .page-settings .panel,
body[data-theme="xero"] .page-users .panel {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-dashboard .xui-home-grid {
    align-items: start !important;
}

body[data-theme="xero"] .page-dashboard .xui-widget__footnote {
    margin-top: 8px !important;
    font-size: 11px !important;
    color: #6d7d8c !important;
}

body[data-theme="xero"] .page-dashboard .xui-app-strip,
body[data-theme="xero"] .page-dashboard .xui-lower-window {
    margin-top: 12px !important;
}

body[data-theme="xero"] .page-dashboard .xui-lower-window__panel[open] .xui-lower-window__body {
    padding-top: 10px !important;
}

body[data-theme="xero"] .page-orders .workspace-head--filter-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body[data-theme="xero"] .page-orders .orders-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr) !important;
    gap: 12px !important;
    align-items: start !important;
}

body[data-theme="xero"] .page-orders #orders-preview {
    top: 12px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card {
    padding: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-pills {
    gap: 6px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-editor-drawer {
    margin-top: 10px !important;
    border: 1px solid rgba(16, 38, 63, 0.08) !important;
    border-radius: 10px !important;
    background: #f8fbfd !important;
}

body[data-theme="xero"] .page-orders .orders-preview-editor-drawer summary {
    cursor: pointer !important;
    list-style: none !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #24405f !important;
}

body[data-theme="xero"] .page-orders .orders-preview-editor {
    padding: 0 12px 12px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-line {
    padding: 10px !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-line__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-orders .orders-lower-window {
    margin-top: 12px !important;
}

body[data-theme="xero"] .page-customers .workspace-head,
body[data-theme="xero"] .page-receivables .workspace-head,
body[data-theme="xero"] .page-settings .workspace-head,
body[data-theme="xero"] .page-users .workspace-head,
body[data-theme="xero"] .page-warehouse .workspace-head {
    margin-bottom: 12px !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-stats--inventory,
body[data-theme="xero"] .page-inventory-items .workspace-stats--inventory {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-stat,
body[data-theme="xero"] .page-inventory-items .workspace-stat {
    padding: 10px 12px !important;
    min-height: 0 !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-overview-grid {
    grid-template-columns: 1fr !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-shell {
    margin-top: 12px !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-shell__summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 14px !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-shell__meta {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-shell__body {
    padding: 0 14px 14px !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table th:first-child,
body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table td:first-child {
    width: 32% !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-link,
body[data-theme="xero"] .page-inventory-items .table-link {
    line-height: 1.25 !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .muted,
body[data-theme="xero"] .page-inventory-items .muted {
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-inventory-items .inventory-filter-strip--wide,
body[data-theme="xero"] .page-inventory-overview .stack-form .detail-grid--compact {
    gap: 10px !important;
}

body[data-theme="xero"] .page-inventory-items .compact-table td:first-child {
    width: 28% !important;
}

body[data-theme="xero"] .page-inventory-items .compact-table td:first-child .table-link,
body[data-theme="xero"] .page-inventory-items .compact-table td:first-child strong {
    display: block !important;
}

body[data-theme="xero"] .table-wrap table tbody tr {
    height: auto !important;
}

body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] .table-wrap table th {
    white-space: normal !important;
}

body[data-theme="xero"] .table-wrap .table-link,
body[data-theme="xero"] .table-wrap strong,
body[data-theme="xero"] .table-wrap .muted,
body[data-theme="xero"] .table-wrap small,
body[data-theme="xero"] .table-wrap span {
    display: inline-block !important;
}

@media (max-width: 1180px) {
    body[data-theme="xero"] .page-orders .orders-main {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .page-orders .workspace-head--filter-shell {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .page-inventory-overview .inventory-support-grid,
    body[data-theme="xero"] .page-inventory-overview .workspace-stats--inventory,
    body[data-theme="xero"] .page-inventory-items .workspace-stats--inventory {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* 2026-05-04 single-scroll system rule */
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .orders-preview-editor__line-list,
body[data-theme="xero"] .orders-preview-editor__lines,
body[data-theme="xero"] .live-ops-user-card__popover-copy,
body[data-theme="xero"] .xui-lower-window__body,
body[data-theme="xero"] .detail-dialog__body,
body[data-theme="xero"] .panel,
body[data-theme="xero"] .xui-widget {
    max-height: none !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
}

body[data-theme="xero"] .table-wrap {
    overflow-x: auto !important;
}

body[data-theme="xero"] .table-wrap table {
    height: auto !important;
}

body[data-theme="xero"] .page-orders .table-wrap {
    max-height: none !important;
    overflow-y: visible !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open,
body[data-theme="xero"].page-orders.is-order-editor-open {
    position: relative !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview {
    position: absolute !important;
    top: 14px !important;
    right: auto !important;
    left: 50% !important;
    width: min(1080px, calc(100vw - 64px)) !important;
    max-height: none !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__line-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

/* 2026-05-04 final typography authority */
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .section-header h2,
body[data-theme="xero"] .detail-dialog__header h2,
body[data-theme="xero"] .orders-preview-shell .panel-header h2,
body[data-theme="xero"] .orders-workbench-panel .panel-header h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .hero h1,
body[data-theme="xero"] .xui-page-head__title,
body[data-theme="xero"] .page-orders .workspace-head__title {
    font-size: 22px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] h3,
body[data-theme="xero"] .panel h3,
body[data-theme="xero"] .detail-card strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .stat-card__value,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] .table-wrap table td strong,
body[data-theme="xero"] .table-wrap table td .table-link,
body[data-theme="xero"] .list-item strong,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] .button,
body[data-theme="xero"] button.button {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .field span,
body[data-theme="xero"] label > span,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .badge,
body[data-theme="xero"] .ai-pill,
body[data-theme="xero"] .button-counter,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-summary-card span,
body[data-theme="xero"] .orders-preview-summary-card p,
body[data-theme="xero"] .orders-preview-summary-grid .detail-card .muted,
body[data-theme="xero"] .orders-preview-line__meta,
body[data-theme="xero"] .workspace-stat span,
body[data-theme="xero"] .metric-card span,
body[data-theme="xero"] .stat-card__label {
    font-size: 10px !important;
    line-height: 1.22 !important;
    letter-spacing: 0.06em !important;
}

body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-line__meta {
    letter-spacing: 0 !important;
}

/* 2026-05-04 final typography authority */
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .section-header h2,
body[data-theme="xero"] .detail-dialog__header h2,
body[data-theme="xero"] .orders-preview-shell .panel-header h2,
body[data-theme="xero"] .orders-workbench-panel .panel-header h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .hero h1,
body[data-theme="xero"] .xui-page-head__title {
    font-size: 22px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] h3,
body[data-theme="xero"] .panel h3,
body[data-theme="xero"] .detail-card strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .stat-card__value,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] .table-wrap table td strong,
body[data-theme="xero"] .table-wrap table td .table-link,
body[data-theme="xero"] .list-item strong,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] .button,
body[data-theme="xero"] button.button {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .field span,
body[data-theme="xero"] label > span,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .badge,
body[data-theme="xero"] .ai-pill,
body[data-theme="xero"] .button-counter,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-summary-card span,
body[data-theme="xero"] .orders-preview-summary-card p,
body[data-theme="xero"] .orders-preview-summary-grid .detail-card .muted,
body[data-theme="xero"] .orders-preview-line__meta,
body[data-theme="xero"] .workspace-stat span,
body[data-theme="xero"] .metric-card span,
body[data-theme="xero"] .stat-card__label {
    font-size: 10px !important;
    line-height: 1.22 !important;
    letter-spacing: 0.06em !important;
}

body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-line__meta {
    letter-spacing: 0 !important;
}

/* 2026-05-04 final enterprise typography scale */
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .section-header h2,
body[data-theme="xero"] .detail-dialog__header h2,
body[data-theme="xero"] .orders-preview-shell .panel-header h2,
body[data-theme="xero"] .orders-workbench-panel .panel-header h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .hero h1,
body[data-theme="xero"] .xui-page-head__title {
    font-size: 22px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] h3,
body[data-theme="xero"] .panel h3,
body[data-theme="xero"] .detail-card strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .stat-card__value,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] .table-wrap table td strong,
body[data-theme="xero"] .table-wrap table td .table-link,
body[data-theme="xero"] .list-item strong,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] .button,
body[data-theme="xero"] button.button {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .field span,
body[data-theme="xero"] label > span,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .badge,
body[data-theme="xero"] .ai-pill,
body[data-theme="xero"] .button-counter,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-summary-card span,
body[data-theme="xero"] .orders-preview-summary-card p,
body[data-theme="xero"] .orders-preview-summary-grid .detail-card .muted,
body[data-theme="xero"] .orders-preview-line__meta,
body[data-theme="xero"] .workspace-stat span,
body[data-theme="xero"] .metric-card span,
body[data-theme="xero"] .stat-card__label {
    font-size: 10px !important;
    line-height: 1.22 !important;
    letter-spacing: 0.06em !important;
}

body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-line__meta {
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .page-orders #orders-preview {
    scrollbar-width: auto !important;
}

/* 2026-05-03 systemic no-waste layout pass */
body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .content-frame {
    max-width: 1460px !important;
}

body[data-theme="xero"] .page-shell {
    gap: 10px !important;
}

body[data-theme="xero"] .page-stack {
    gap: 10px !important;
}

body[data-theme="xero"] .page-main-grid {
    align-items: start !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .diagnostic-result {
    border-radius: 12px !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .xui-widget {
    padding: 12px !important;
}

body[data-theme="xero"] .panel-header,
body[data-theme="xero"] .xui-widget__head {
    margin-bottom: 10px !important;
}

body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .detail-card strong,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .xui-stat-pair strong,
body[data-theme="xero"] .xui-metric-grid strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .table-wrap table {
    table-layout: fixed !important;
}

body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .table-wrap table td {
    padding: 9px 10px !important;
    line-height: 1.25 !important;
    vertical-align: top !important;
}

body[data-theme="xero"] .table-wrap table td:first-child .table-link,
body[data-theme="xero"] .table-wrap table td:first-child strong {
    display: block !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .table-wrap .muted {
    display: block !important;
    margin-top: 2px !important;
}

body[data-theme="xero"] .workspace-stats {
    gap: 8px !important;
}

body[data-theme="xero"] .workspace-stats .workspace-stat {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-dashboard .xui-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .page-dashboard .xui-widget {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-dashboard .xui-widget--wide {
    grid-column: span 3 !important;
}

body[data-theme="xero"] .page-dashboard .xui-support-strip {
    margin-top: 2px !important;
}

body[data-theme="xero"] .page-dashboard .xui-support-strip__summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    cursor: pointer !important;
    list-style: none !important;
}

body[data-theme="xero"] .page-dashboard .xui-support-strip__metrics {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

body[data-theme="xero"] .page-dashboard .xui-support-strip__metrics span {
    padding: 4px 8px !important;
    border: 1px solid rgba(32, 67, 114, 0.12) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
}

body[data-theme="xero"] .page-dashboard .xui-support-strip__body {
    padding-top: 10px !important;
    display: grid !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-dashboard .xui-app-strip,
body[data-theme="xero"] .page-dashboard .xui-lower-window {
    margin-top: 0 !important;
}

body[data-theme="xero"] .page-dashboard .xui-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-main {
    grid-template-columns: 1fr !important;
}

body[data-theme="xero"] .page-orders #orders-preview {
    position: relative !important;
    top: 0 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-orders .orders-preview-shell__summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    cursor: pointer !important;
    list-style: none !important;
}

body[data-theme="xero"] .page-orders .orders-preview-shell__summary::-webkit-details-marker {
    display: none !important;
}

body[data-theme="xero"] .page-orders .orders-preview-shell__body {
    padding-top: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card,
body[data-theme="xero"] .page-orders .orders-preview-editor-drawer {
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-line__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-stats--inventory {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-head__actions {
    gap: 5px !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-head__actions .button {
    min-height: 28px !important;
    padding: 4px 10px !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table th:first-child,
body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table td:first-child {
    width: 40% !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table th,
body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table td,
body[data-theme="xero"] .page-inventory-items .compact-table th,
body[data-theme="xero"] .page-inventory-items .compact-table td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .muted,
body[data-theme="xero"] .page-inventory-items .muted {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-shell summary::-webkit-details-marker,
body[data-theme="xero"] .page-dashboard .xui-support-strip summary::-webkit-details-marker {
    display: none !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-support-shell[open],
body[data-theme="xero"] .page-dashboard .xui-support-strip[open] {
    background: #fcfdff !important;
}

body[data-theme="xero"] .page-inventory-items .compact-table td:first-child,
body[data-theme="xero"] .page-warehouse-show-item .compact-table td:first-child {
    width: 34% !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__rail {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-customers .customer-overview-actions__grid--details {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-statement .statement-summary-grid {
    grid-template-columns: minmax(260px, 1.6fr) repeat(6, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-statement .statement-workspace--enterprise {
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr) !important;
}

body[data-theme="xero"] .page-receivables .workspace-stats--mini {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-receivables .page-main-grid,
body[data-theme="xero"] .page-customers .page-main-grid,
body[data-theme="xero"] .page-settings .page-main-grid {
    gap: 10px !important;
}

@media (max-width: 1320px) {
    body[data-theme="xero"] .page-dashboard .xui-home-grid,
    body[data-theme="xero"] .page-dashboard .xui-app-grid,
    body[data-theme="xero"] .page-customers .customer-command-deck__rail,
    body[data-theme="xero"] .page-statement .statement-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .page-statement .statement-workspace--enterprise,
    body[data-theme="xero"] .page-orders .orders-preview-line__grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    body[data-theme="xero"] .page-dashboard .xui-home-grid,
    body[data-theme="xero"] .page-dashboard .xui-app-grid,
    body[data-theme="xero"] .page-customers .customer-command-deck__rail,
    body[data-theme="xero"] .page-customers .customer-overview-actions__grid--details,
    body[data-theme="xero"] .page-receivables .workspace-stats--mini,
    body[data-theme="xero"] .page-inventory-overview .workspace-stats--inventory,
    body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-03 user-first action and density pass */
body[data-theme="xero"] .workspace-head__support-details {
    margin-top: 6px !important;
}

body[data-theme="xero"] .workspace-head__support-details summary,
body[data-theme="xero"] .page-customers .customer-overview-actions__secondary summary {
    cursor: pointer !important;
    list-style: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #44617f !important;
}

body[data-theme="xero"] .workspace-head__support-details summary::-webkit-details-marker,
body[data-theme="xero"] .page-customers .customer-overview-actions__secondary summary::-webkit-details-marker {
    display: none !important;
}

body[data-theme="xero"] .workspace-head__actions--support {
    padding-top: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-overview-actions__grid--details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
}

body[data-theme="xero"] .page-customers .customer-overview-actions__grid--details .button,
body[data-theme="xero"] .page-customers .customer-overview-actions__grid--details button {
    width: auto !important;
    min-width: 92px !important;
}

body[data-theme="xero"] .page-customers .customer-overview-actions__secondary {
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary .button,
body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary button,
body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary .customer-overview-actions__inline-form,
body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary .customer-overview-actions__inline-form .button {
    width: auto !important;
}

body[data-theme="xero"] .page-orders .workspace-head__actions--clustered {
    gap: 5px !important;
}

body[data-theme="xero"] .page-orders .workspace-head__actions--clustered .button {
    min-height: 28px !important;
    padding: 4px 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card .pill-group {
    gap: 4px !important;
}

body[data-theme="xero"] .page-receivables .workspace-stats--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-receivables .receivables-export-form {
    gap: 8px !important;
}

body[data-theme="xero"] .page-receivables .receivables-filter-form {
    gap: 10px !important;
}

body[data-theme="xero"] .page-receivables .receivables-filter-presets {
    gap: 6px !important;
}

body[data-theme="xero"] .page-receivables .table-wrap table th:first-child,
body[data-theme="xero"] .page-receivables .table-wrap table td:first-child {
    width: 34% !important;
}

body[data-theme="xero"] .page-receivables .receivables-export-bar {
    gap: 8px !important;
    align-items: center !important;
}

/* 2026-05-03 global no-overflow enterprise fit pass */
body[data-theme="xero"] .panel,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .workspace-linkbar__item,
body[data-theme="xero"] .customer-command-deck__fact,
body[data-theme="xero"] .customer-priority-ledger__statement-metric,
body[data-theme="xero"] .orders-preview-summary-card,
body[data-theme="xero"] .detail-card {
    overflow: hidden !important;
}

body[data-theme="xero"] .panel h1,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .panel h3,
body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .customer-command-deck h1,
body[data-theme="xero"] .customer-command-deck__fact strong,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .orders-preview-summary-card strong,
body[data-theme="xero"] .detail-card strong {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__identity h1 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__address-line,
body[data-theme="xero"] .page-customers .customer-command-deck__contact-line,
body[data-theme="xero"] .page-customers .customer-command-deck__fact small,
body[data-theme="xero"] .page-customers .customer-detail-compact-list p,
body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-foot .muted,
body[data-theme="xero"] .page-customers .customer-history-list__copy span {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__rail {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__fact {
    min-height: 88px !important;
    padding: 12px 12px 10px !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__fact span {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__fact strong {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger {
    align-items: start !important;
    gap: 12px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__card {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-summary {
    display: flex !important;
    align-items: start !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-summary-copy strong,
body[data-theme="xero"] .page-customers .customer-priority-ledger__header-copy h2,
body[data-theme="xero"] .page-customers .customer-priority-ledger__card h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form {
    gap: 8px !important;
    align-items: end !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metric {
    padding: 8px 10px !important;
    min-height: 0 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metric span {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metric strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .page-customers .customer-more-details-card--actions .customer-overview-actions__grid--details,
body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
}

body[data-theme="xero"] .page-customers .customer-more-details-card--actions .button,
body[data-theme="xero"] .page-customers .customer-overview-actions__grid--secondary .button {
    min-width: 0 !important;
    padding-inline: 10px !important;
}

body[data-theme="xero"] .page-customers .workspace-stats--customers-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-customers .workspace-stat--details-toggle summary {
    list-style: none !important;
    cursor: pointer !important;
}

body[data-theme="xero"] .page-customers .workspace-stat--details-toggle summary::-webkit-details-marker {
    display: none !important;
}

body[data-theme="xero"] .page-customers .workspace-stat--details-toggle__body,
body[data-theme="xero"] .page-customers .workspace-linkbar--support {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-customers .workspace-linkbar--support .workspace-linkbar__item {
    min-height: 0 !important;
    padding: 10px !important;
}

body[data-theme="xero"] .page-customers .workspace-linkbar--support .workspace-linkbar__item span {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-customers .workspace-linkbar--support .workspace-linkbar__item strong {
    font-size: 13px !important;
}

body[data-theme="xero"] .page-warehouse-show-item .workspace-stats--inventory {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-warehouse-show-item .page-main-grid {
    grid-template-columns: 1fr !important;
}

body[data-theme="xero"] .page-warehouse-show-item .inventory-support-shell--item {
    margin-top: 10px !important;
}

body[data-theme="xero"] .page-warehouse-show-item .inventory-support-shell--item .inventory-support-shell__summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    cursor: pointer !important;
    list-style: none !important;
}

body[data-theme="xero"] .page-warehouse-show-item .inventory-support-shell--item .inventory-support-shell__summary::-webkit-details-marker {
    display: none !important;
}

body[data-theme="xero"] .page-warehouse-show-item .inventory-support-shell__body--item {
    padding-top: 10px !important;
}

body[data-theme="xero"] .page-warehouse-show-item .inventory-support-shell__body--item .page-stack--support {
    gap: 10px !important;
}

body[data-theme="xero"] .page-warehouse-show-item .table-wrap table th:first-child,
body[data-theme="xero"] .page-warehouse-show-item .table-wrap table td:first-child,
body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table th:first-child,
body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table td:first-child {
    width: 46% !important;
}

body[data-theme="xero"] .page-warehouse-show-item .table-wrap table th,
body[data-theme="xero"] .page-warehouse-show-item .table-wrap table td,
body[data-theme="xero"] .page-customers .table-wrap table th,
body[data-theme="xero"] .page-customers .table-wrap table td,
body[data-theme="xero"] .page-orders .table-wrap table th,
body[data-theme="xero"] .page-orders .table-wrap table td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

body[data-theme="xero"] .page-warehouse-show-item .table-wrap table td:first-child strong,
body[data-theme="xero"] .page-inventory-overview .table-wrap table td:first-child strong,
body[data-theme="xero"] .page-customers .customers-directory td:first-child strong {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-warehouse-show-item .table-wrap .muted,
body[data-theme="xero"] .page-inventory-overview .table-wrap .muted,
body[data-theme="xero"] .page-orders .table-wrap .muted,
body[data-theme="xero"] .page-customers .table-wrap .muted {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

@media (max-width: 1320px) {
    body[data-theme="xero"] .page-customers .customer-command-deck__rail,
    body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics,
    body[data-theme="xero"] .page-customers .workspace-stats--customers-primary,
    body[data-theme="xero"] .page-customers .workspace-linkbar--support,
    body[data-theme="xero"] .page-warehouse-show-item .workspace-stats--inventory {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body[data-theme="xero"] .page-customers .customer-command-deck__rail,
    body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics,
    body[data-theme="xero"] .page-customers .workspace-stats--customers-primary,
    body[data-theme="xero"] .page-customers .workspace-linkbar--support,
    body[data-theme="xero"] .page-warehouse-show-item .workspace-stats--inventory {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-03 orders preview is primary work surface */
body[data-theme="xero"] .page-orders .orders-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr) !important;
    gap: 12px !important;
    align-items: start !important;
}

body[data-theme="xero"] .page-orders #orders-preview {
    position: sticky !important;
    top: 12px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-shell {
    padding: 12px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card {
    min-height: 0 !important;
    padding: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card span {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card small,
body[data-theme="xero"] .page-orders .orders-preview-shell .muted {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-line__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-editor-drawer {
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td:first-child,
body[data-theme="xero"] .page-orders .orders-table--single-line th:first-child {
    width: 34px !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(2),
body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(2) {
    width: 21% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(3),
body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(3) {
    width: 25% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td strong,
body[data-theme="xero"] .page-orders .orders-table--single-line .table-link {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-orders .orders-workbench-panel .panel-header h2,
body[data-theme="xero"] .page-orders .orders-preview-shell .panel-header h2 {
    font-size: 14px !important;
}

body[data-theme="xero"] .page-orders .workspace-head__actions--clustered {
    row-gap: 6px !important;
}

@media (max-width: 1180px) {
    body[data-theme="xero"] .page-orders .orders-main {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .page-orders #orders-preview {
        position: relative !important;
        top: 0 !important;
    }
}

/* 2026-05-03 enterprise hierarchy stabilization */
body[data-theme="xero"] .workspace-head {
    gap: 10px !important;
    padding: 12px 14px !important;
}

body[data-theme="xero"] .workspace-head__subtitle,
body[data-theme="xero"] .xui-widget__footnote,
body[data-theme="xero"] .xui-widget__subtitle {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__rail {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__fact {
    min-height: 0 !important;
    padding: 10px 12px !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__fact strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-customers .customer-command-deck__fact small,
body[data-theme="xero"] .page-customers .customer-command-deck__address-line,
body[data-theme="xero"] .page-customers .customer-command-deck__contact-line {
    font-size: 11px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger {
    align-items: start !important;
    gap: 12px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__card {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-summary,
body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form--top,
body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-pills {
    gap: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-summary-copy strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-summary-copy span,
body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-foot .muted {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics--inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__metric-inline {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    background: #fff !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__metric-inline strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__metric-inline small {
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #61708a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

body[data-theme="xero"] .page-customers .customer-history-list__item {
    padding: 9px 10px !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-history-list__copy strong,
body[data-theme="xero"] .page-customers .customer-history-list__amount {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-customers .customer-history-list__copy span {
    font-size: 10px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-orders .workspace-head__actions--clustered {
    align-items: center !important;
}

body[data-theme="xero"] .page-orders .orders-head__active-filter {
    margin-left: 4px !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .page-orders .workspace-head__support-details summary {
    font-size: 11px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card,
body[data-theme="xero"] .page-orders .orders-preview-summary-card,
body[data-theme="xero"] .page-orders .orders-preview-editor-drawer {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card {
    padding: 10px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card .muted,
body[data-theme="xero"] .page-orders .orders-preview-summary-card span,
body[data-theme="xero"] .page-orders .orders-preview-summary-card p {
    font-size: 11px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-pills {
    gap: 6px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-pills > span {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(3),
body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(3) {
    width: 30% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(4),
body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(4) {
    width: 18% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(5),
body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(5) {
    width: 16% !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-stats--inventory {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-inventory-overview .workspace-stat--inventory-more {
    grid-column: span 2 !important;
}

body[data-theme="xero"] .page-inventory-overview .inventory-overview-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr) !important;
    gap: 12px !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table th:first-child,
body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap table td:first-child {
    width: 38% !important;
}

body[data-theme="xero"] .page-inventory-overview #inventory-low-stock .table-wrap .table-link,
body[data-theme="xero"] .page-inventory-overview #inventory-movements .table-wrap .table-link {
    display: inline-block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar {
    padding: 10px 12px !important;
}

body[data-theme="xero"] .xui-dashboard-toolbar__summary strong,
body[data-theme="xero"] .xui-widget__title {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .xui-widget {
    padding: 12px !important;
}

body[data-theme="xero"] .xui-stat-pair strong,
body[data-theme="xero"] .xui-metric-grid strong,
body[data-theme="xero"] .xui-list-row strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

@media (max-width: 1320px) {
    body[data-theme="xero"] .page-orders .orders-preview-summary-grid,
    body[data-theme="xero"] .page-customers .customer-command-deck__rail,
    body[data-theme="xero"] .page-inventory-overview .workspace-stats--inventory {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .page-inventory-overview .inventory-overview-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-04 customer finance compact pass */
body[data-theme="xero"] .page-customers .workspace-linkbar--customer-priority {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 0 10px !important;
    padding: 0 2px !important;
}

body[data-theme="xero"] .page-customers .workspace-linkbar--customer-priority .workspace-linkbar__item {
    padding: 5px 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__card {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-pills {
    gap: 5px !important;
    margin: 2px 0 8px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-pills .pill {
    padding: 4px 8px !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.04em !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form--top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: end !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form--top .field span {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form--top input {
    min-height: 34px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form--top .button {
    min-height: 34px !important;
    font-size: 11px !important;
    padding: 0 12px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics--inline {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__metric-inline {
    display: grid !important;
    gap: 2px !important;
    align-content: start !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__metric-inline strong {
    font-size: 12px !important;
    line-height: 1.12 !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__metric-inline small {
    font-size: 9px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.03em !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-foot {
    gap: 4px 10px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-foot .muted {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-summary-copy span,
body[data-theme="xero"] .page-customers .customer-history-list__copy span {
    overflow-wrap: anywhere !important;
}

@media (max-width: 980px) {
    body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics--inline {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-form--top,
    body[data-theme="xero"] .page-customers .customer-priority-ledger__statement-metrics--inline {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-04 live ops compact workbench */
body[data-theme="xero"] .page-operations-live-locations .stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-operations-live-locations .stat-card {
    padding: 10px !important;
    min-height: 0 !important;
}

body[data-theme="xero"] .page-operations-live-locations .stat-card__label {
    font-size: 9px !important;
}

body[data-theme="xero"] .page-operations-live-locations .stat-card__value {
    font-size: 15px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .page-operations-live-locations .stat-card__meta {
    font-size: 10px !important;
}

body[data-theme="xero"] .page-operations-live-locations .filters-grid--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr) !important;
    gap: 12px !important;
    align-items: start !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-panel {
    min-height: 0 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-map {
    min-height: 460px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-list {
    display: grid !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card {
    position: relative !important;
    display: grid !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: visible !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__identity {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-status-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    flex: 0 0 auto !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-status-dot--online {
    background: #1f9d55 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-status-dot--stale,
body[data-theme="xero"] .page-operations-live-locations .live-ops-status-dot--offline {
    background: #cf3346 !important;
}

body[data-theme="xero"] .page-sync-progress {
    min-height: calc(100vh - 140px) !important;
    display: grid !important;
    place-items: center !important;
    padding: 28px !important;
}

body[data-theme="xero"] .sync-progress-stage {
    width: min(760px, 100%) !important;
}

body[data-theme="xero"] .sync-progress-card {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 44, 71, 0.12) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 60px rgba(15, 44, 71, 0.12) !important;
    padding: clamp(24px, 4vw, 38px) !important;
    text-align: center !important;
}

body[data-theme="xero"] .sync-progress-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, #0b7bc1, #21a67a, #f2b84b) !important;
}

body[data-theme="xero"] .sync-progress-orbit {
    position: absolute !important;
    inset: 20px 20px auto auto !important;
    width: 84px !important;
    height: 84px !important;
    border: 1px solid rgba(11, 123, 193, 0.18) !important;
    border-radius: 999px !important;
    opacity: 0.8 !important;
}

body[data-theme="xero"] .sync-progress-orbit span {
    position: absolute !important;
    inset: 14px !important;
    border: 1px solid rgba(33, 166, 122, 0.2) !important;
    border-radius: 999px !important;
}

body[data-theme="xero"] .sync-progress-brand {
    width: 92px !important;
    height: 92px !important;
    margin: 0 auto 16px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    border: 1px solid rgba(15, 44, 71, 0.1) !important;
    background: #f8fbfd !important;
}

body[data-theme="xero"] .sync-progress-brand img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain !important;
}

body[data-theme="xero"] .sync-progress-kicker {
    margin: 0 0 8px !important;
    color: #536b7d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

body[data-theme="xero"] .sync-progress-card h1 {
    margin: 0 !important;
    color: #12283a !important;
    font-size: clamp(28px, 5vw, 42px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .sync-progress-message {
    max-width: 560px !important;
    margin: 14px auto 0 !important;
    color: #4d6374 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

body[data-theme="xero"] .sync-progress-meter {
    position: relative !important;
    overflow: hidden !important;
    height: 8px !important;
    margin: 22px auto !important;
    border-radius: 999px !important;
    background: #e8f1f7 !important;
}

body[data-theme="xero"] .sync-progress-meter span {
    display: block !important;
    width: 46% !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #0b7bc1, #21a67a) !important;
    animation: sync-progress-meter 1.8s ease-in-out infinite alternate !important;
}

body[data-theme="xero"] [data-current-state="complete"] .sync-progress-meter span {
    width: 100% !important;
    animation: none !important;
}

body[data-theme="xero"] [data-current-state="attention"] .sync-progress-meter span {
    width: 100% !important;
    background: #cf3346 !important;
    animation: none !important;
}

body[data-theme="xero"] .sync-progress-steps {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
}

body[data-theme="xero"] .sync-progress-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr) !important;
    gap: 14px !important;
    align-items: start !important;
}

body[data-theme="xero"] .sync-progress-step {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(15, 44, 71, 0.1) !important;
    border-radius: 8px !important;
    background: #fbfdff !important;
}

body[data-theme="xero"] .sync-progress-step__dot {
    width: 12px !important;
    height: 12px !important;
    margin-top: 4px !important;
    border-radius: 999px !important;
    background: #b8c8d4 !important;
    box-shadow: 0 0 0 4px rgba(184, 200, 212, 0.18) !important;
}

body[data-theme="xero"] .sync-progress-step.is-done .sync-progress-step__dot {
    background: #21a67a !important;
    box-shadow: 0 0 0 4px rgba(33, 166, 122, 0.18) !important;
}

body[data-theme="xero"] .sync-progress-step.is-current .sync-progress-step__dot,
body[data-theme="xero"] .sync-progress-step.is-running .sync-progress-step__dot {
    background: #0b7bc1 !important;
    box-shadow: 0 0 0 4px rgba(11, 123, 193, 0.18) !important;
}

body[data-theme="xero"] .sync-progress-step.is-attention .sync-progress-step__dot {
    background: #cf3346 !important;
    box-shadow: 0 0 0 4px rgba(207, 51, 70, 0.18) !important;
}

body[data-theme="xero"] .sync-progress-step strong {
    display: block !important;
    color: #142c3e !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

body[data-theme="xero"] .sync-progress-message[hidden],
body[data-theme="xero"] .sync-progress-step small:empty {
    display: none !important;
}

body[data-theme="xero"] .workspace-head__lead,
body[data-theme="xero"] .workspace-head p:not(.workspace-head__eyebrow):not(.workspace-head__title),
body[data-theme="xero"] .panel-header p.muted,
body[data-theme="xero"] .panel-header .muted,
body[data-theme="xero"] .form-help,
body[data-theme="xero"] .field-help,
body[data-theme="xero"] .helper-text,
body[data-theme="xero"] .live-location-consent__hint {
    display: none !important;
}

body[data-theme="xero"] .page-settings-sync .settings-section > .detail-card.detail-card--compact p.muted,
body[data-theme="xero"] .page-settings-sync .settings-section > p.muted,
body[data-theme="xero"] .page-settings-sync .table-row-details__body p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .page-operations-live-locations .hero .lede,
body[data-theme="xero"] .page-operations-live-locations .stat-card__meta {
    display: none !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-details {
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-details summary {
    cursor: pointer !important;
    color: #0b7bc1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-copy {
    max-height: 72px !important;
    overflow: auto !important;
    margin: 6px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body[data-theme="xero"] .workspace-stat small,
body[data-theme="xero"] .metric-card small {
    max-width: 18ch !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .sync-progress-step small {
    display: block !important;
    margin-top: 3px !important;
    color: #5b7182 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body[data-theme="xero"] .sync-progress-jobs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 0 !important;
    text-align: left !important;
}

body[data-theme="xero"] .sync-progress-job {
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(15, 44, 71, 0.1) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

body[data-theme="xero"] .sync-progress-job strong,
body[data-theme="xero"] .sync-progress-job span,
body[data-theme="xero"] .sync-progress-job small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .sync-progress-job strong {
    color: #12283a !important;
    font-size: 13px !important;
}

body[data-theme="xero"] .sync-progress-job span {
    margin-top: 4px !important;
    color: #0b7bc1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] .sync-progress-job small {
    margin-top: 4px !important;
    color: #5b7182 !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .sync-progress-actions {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 26px !important;
}

@keyframes sync-progress-meter {
    0% {
        transform: translateX(-8%);
    }

    100% {
        transform: translateX(118%);
    }
}

@media (max-width: 640px) {
    body[data-theme="xero"] .page-sync-progress {
        padding: 14px !important;
        place-items: start stretch !important;
    }

    body[data-theme="xero"] .sync-progress-card {
        padding: 26px 18px !important;
    }

    body[data-theme="xero"] .sync-progress-orbit {
        display: none !important;
    }

    body[data-theme="xero"] .sync-progress-grid {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .sync-progress-jobs {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .sync-progress-actions .button {
        width: 100% !important;
        justify-content: center !important;
    }
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__copy {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__copy strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__copy span,
body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__meta span {
    font-size: 10px !important;
    line-height: 1.3 !important;
    color: #61708a !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-hover-chip,
body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__open {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-hover-chip {
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    background: #fff !important;
    color: #355070 !important;
    cursor: default !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__meta {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    padding-left: 18px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__location {
    color: #23354d !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 10px !important;
    width: min(300px, calc(100vw - 48px)) !important;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 24, 39, 0.1) !important;
    background: #ffffff !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16) !important;
    display: none !important;
    z-index: 30 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card:hover .live-ops-user-card__popover,
body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card:focus-within .live-ops-user-card__popover {
    display: grid !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-grid small {
    display: block !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #718198 !important;
}

body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-grid strong,
body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-copy {
    font-size: 10px !important;
    line-height: 1.35 !important;
    color: #23354d !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 1240px) {
    body[data-theme="xero"] .page-operations-live-locations .stats-grid,
    body[data-theme="xero"] .page-operations-live-locations .filters-grid--wide {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body[data-theme="xero"] .page-operations-live-locations .live-ops-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    body[data-theme="xero"] .page-operations-live-locations .stats-grid,
    body[data-theme="xero"] .page-operations-live-locations .filters-grid--wide,
    body[data-theme="xero"] .page-operations-live-locations .live-ops-user-card__popover-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-05-04 enterprise layout cleanup */
body[data-theme="xero"] *,
body[data-theme="xero"] *::before,
body[data-theme="xero"] *::after {
    box-sizing: border-box !important;
}

body[data-theme="xero"] {
    overflow-x: hidden !important;
}

body[data-theme="xero"] #cmg-page-content,
body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .app-header__subnav {
    width: min(1560px, calc(100% - 24px)) !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card,
body[data-theme="xero"] .stat-card,
body[data-theme="xero"] .metric-card {
    min-width: 0 !important;
}

body[data-theme="xero"] .hero,
body[data-theme="xero"] .page-hero,
body[data-theme="xero"] .workspace-head,
body[data-theme="xero"] .panel-header,
body[data-theme="xero"] .statement-header--enterprise {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] .hero-actions,
body[data-theme="xero"] .button-row,
body[data-theme="xero"] .statement-header__actions,
body[data-theme="xero"] .workspace-head__actions {
    min-width: 0 !important;
}

body[data-theme="xero"] .table-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
}

body[data-theme="xero"] .table-wrap table,
body[data-theme="xero"] table.responsive-table-card {
    width: 100% !important;
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: minmax(150px, 190px) minmax(220px, 420px) minmax(0, 1fr) !important;
}

body[data-theme="xero"] .global-search,
body[data-theme="xero"] .global-search__field {
    min-width: 0 !important;
}

body[data-theme="xero"] .app-header__controls {
    min-width: 0 !important;
    justify-content: flex-end !important;
}

body[data-theme="xero"] .app-header__user {
    min-width: 0 !important;
    max-width: 190px !important;
}

body[data-theme="xero"] .app-header__user-name,
body[data-theme="xero"] .app-header__user-role {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 1180px) {
    body[data-theme="xero"] #cmg-page-content,
    body[data-theme="xero"] .app-header__top,
    body[data-theme="xero"] .app-header__nav,
    body[data-theme="xero"] .app-header__subnav {
        width: calc(100% - 18px) !important;
    }

    body[data-theme="xero"] .app-header__top {
        grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr) auto !important;
    }

    body[data-theme="xero"] .hero,
    body[data-theme="xero"] .page-hero,
    body[data-theme="xero"] .workspace-head,
    body[data-theme="xero"] .statement-header--enterprise {
        gap: 10px !important;
    }
}

@media (max-width: 760px) {
    body[data-theme="xero"] #cmg-page-content {
        width: calc(100% - 16px) !important;
        padding-top: 8px !important;
    }

    body[data-theme="xero"] .hero,
    body[data-theme="xero"] .page-hero,
    body[data-theme="xero"] .workspace-head,
    body[data-theme="xero"] .panel-header,
    body[data-theme="xero"] .statement-header--enterprise {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .hero-actions,
    body[data-theme="xero"] .button-row,
    body[data-theme="xero"] .statement-header__actions,
    body[data-theme="xero"] .workspace-head__actions {
        justify-content: flex-start !important;
    }

    body[data-theme="xero"] .button,
    body[data-theme="xero"] button {
        max-width: 100% !important;
    }
}

/* 2026-05-04 system-wide scan polish */
body[data-theme="xero"] .table-wrap {
    max-height: min(68vh, 720px) !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
}

body[data-theme="xero"] .table-wrap thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: #f8fafc !important;
}

body[data-theme="xero"] .table-wrap td,
body[data-theme="xero"] .table-wrap th {
    max-width: 280px !important;
}

body[data-theme="xero"] .table-wrap td > strong,
body[data-theme="xero"] .table-wrap td > .table-link,
body[data-theme="xero"] .table-wrap td > .muted,
body[data-theme="xero"] .table-wrap td > small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .table-row-details {
    position: relative !important;
    min-width: 132px !important;
}

body[data-theme="xero"] .table-row-details summary {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid #d8e1ea !important;
    background: #ffffff !important;
    color: #355070 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    list-style: none !important;
}

body[data-theme="xero"] .table-row-details summary::-webkit-details-marker {
    display: none !important;
}

body[data-theme="xero"] .table-row-details__body {
    width: min(420px, 100%) !important;
    display: grid !important;
    gap: 6px !important;
    margin-top: 8px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

body[data-theme="xero"] .table-row-details__body p {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #40536a !important;
    overflow-wrap: anywhere !important;
}

body[data-theme="xero"] details.workspace-head__support-details,
body[data-theme="xero"] details.customer-section-toggle,
body[data-theme="xero"] details.orders-preview-shell__summary,
body[data-theme="xero"] details.inventory-support-shell {
    overflow: visible !important;
}

body[data-theme="xero"] details.workspace-head__support-details summary,
body[data-theme="xero"] details.customer-section-toggle > summary,
body[data-theme="xero"] details.inventory-support-shell summary {
    cursor: pointer !important;
}

body[data-theme="xero"] details.workspace-head__support-details:not([open]),
body[data-theme="xero"] details.customer-section-toggle:not([open]),
body[data-theme="xero"] details.inventory-support-shell:not([open]) {
    padding-bottom: 10px !important;
}

body[data-theme="xero"] .workspace-stat small,
body[data-theme="xero"] .stat-card__meta,
body[data-theme="xero"] .metric-card .muted,
body[data-theme="xero"] .detail-card p.muted {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

@media (max-width: 760px) {
    body[data-theme="xero"] .table-wrap {
        max-height: none !important;
        overflow: visible !important;
    }

    body[data-theme="xero"] .table-row-details__body {
        width: 100% !important;
        box-shadow: none !important;
    }
}

/* Enterprise Apex visual system pass */
body[data-theme="xero"] {
    --apex-bg: #eef2f6;
    --apex-shell: #0f1720;
    --apex-shell-2: #142332;
    --apex-surface: #ffffff;
    --apex-surface-subtle: #f7f9fb;
    --apex-border: #d9e1e8;
    --apex-border-strong: #c5d0da;
    --apex-text: #101820;
    --apex-muted: #5a6b7a;
    --apex-blue: #0b6fb3;
    --apex-green: #1f9d78;
    --apex-amber: #c98918;
    --apex-red: #c93d4a;
    background: var(--apex-bg) !important;
    color: var(--apex-text) !important;
}

body[data-theme="xero"] .content {
    background:
        linear-gradient(180deg, rgba(15, 23, 32, 0.04), rgba(15, 23, 32, 0) 220px),
        var(--apex-bg) !important;
}

body[data-theme="xero"] .app-header {
    background: linear-gradient(180deg, var(--apex-shell), var(--apex-shell-2)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 32, 0.28), 0 12px 30px rgba(15, 23, 32, 0.16) !important;
}

body[data-theme="xero"] .app-header::after {
    content: "" !important;
    display: block !important;
    height: 3px !important;
    width: 100% !important;
    margin-top: 8px !important;
    background: linear-gradient(90deg, var(--apex-blue), var(--apex-green), var(--apex-amber)) !important;
}

body[data-theme="xero"] .header-nav,
body[data-theme="xero"] .header-subnav {
    gap: 2px !important;
}

body[data-theme="xero"] .header-nav__link,
body[data-theme="xero"] .header-subnav__link {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .header-nav__link:hover,
body[data-theme="xero"] .header-subnav__link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="xero"] .header-nav__link.is-active,
body[data-theme="xero"] .header-subnav__link.is-active {
    color: #ffffff !important;
    background: rgba(11, 111, 179, 0.34) !important;
    box-shadow: inset 0 -2px 0 #57b7ff !important;
}

body[data-theme="xero"] .global-search__field,
body[data-theme="xero"] .app-header__icon-pill {
    border-radius: 6px !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .page-stack,
body[data-theme="xero"] .settings-layout,
body[data-theme="xero"] .workspace-head,
body[data-theme="xero"] .hero,
body[data-theme="xero"] .stats-grid,
body[data-theme="xero"] .workspace-stats,
body[data-theme="xero"] .xui-page {
    width: min(1480px, calc(100% - 32px)) !important;
}

body[data-theme="xero"] .hero,
body[data-theme="xero"] .workspace-head,
body[data-theme="xero"] .xui-page-head {
    min-height: 0 !important;
    padding: 14px 0 10px !important;
    margin-bottom: 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="xero"] .hero h1,
body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .xui-page-head__title {
    margin: 0 !important;
    color: var(--apex-text) !important;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
    font-weight: 800 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .xui-home-banner__eyebrow {
    margin: 0 0 5px !important;
    color: var(--apex-blue) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] .lede,
body[data-theme="xero"] .hero p:not(.eyebrow),
body[data-theme="xero"] .xui-page-head__copy,
body[data-theme="xero"] .xui-home-banner__copy,
body[data-theme="xero"] .settings-card p,
body[data-theme="xero"] .module-card p,
body[data-theme="xero"] .empty-state p {
    display: none !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .metric-card,
body[data-theme="xero"] .stat-card,
body[data-theme="xero"] .settings-card,
body[data-theme="xero"] .settings-directory,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .xui-kpi-card,
body[data-theme="xero"] .choice-card,
body[data-theme="xero"] .role-choice {
    border-radius: 8px !important;
    border: 1px solid var(--apex-border) !important;
    background: var(--apex-surface) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 32, 0.05) !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .dashboard-home-card,
body[data-theme="xero"] .dashboard-lower-card,
body[data-theme="xero"] .xui-widget {
    padding: 12px !important;
}

body[data-theme="xero"] .panel-header,
body[data-theme="xero"] .xui-widget__header,
body[data-theme="xero"] .section-header {
    min-height: 32px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid var(--apex-border) !important;
    align-items: center !important;
}

body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .section-header h2 {
    color: var(--apex-text) !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .panel-header p:not(.eyebrow),
body[data-theme="xero"] .section-header p:not(.eyebrow),
body[data-theme="xero"] .panel > p.muted,
body[data-theme="xero"] .detail-card > p.muted,
body[data-theme="xero"] .metric-card > small,
body[data-theme="xero"] .stat-card__meta {
    display: none !important;
}

body[data-theme="xero"] .workspace-stat,
body[data-theme="xero"] .metric-card,
body[data-theme="xero"] .stat-card,
body[data-theme="xero"] .xui-kpi-card {
    min-height: 78px !important;
    padding: 10px 12px !important;
    gap: 3px !important;
}

body[data-theme="xero"] .workspace-stat span,
body[data-theme="xero"] .metric-card span,
body[data-theme="xero"] .stat-card__label,
body[data-theme="xero"] .xui-kpi-card span {
    color: var(--apex-muted) !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .stat-card__value,
body[data-theme="xero"] .xui-kpi-card strong {
    color: var(--apex-text) !important;
    font-size: clamp(20px, 2vw, 27px) !important;
    line-height: 1.02 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .table-wrap {
    max-height: min(62vh, 680px) !important;
    overflow: auto !important;
    background: var(--apex-surface) !important;
}

body[data-theme="xero"] table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body[data-theme="xero"] .table-wrap table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid var(--apex-border-strong) !important;
    background: #f3f6f9 !important;
    color: #334455 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] .table-wrap table tbody td {
    padding: 8px 10px !important;
    border-bottom: 1px solid #edf1f4 !important;
    color: var(--apex-text) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

body[data-theme="xero"] .table-wrap table tbody tr:hover td {
    background: #f7fbff !important;
}

body[data-theme="xero"] .table-wrap td .muted,
body[data-theme="xero"] .table-wrap td small,
body[data-theme="xero"] .table-cell-stack span,
body[data-theme="xero"] .table-cell-stack small {
    color: var(--apex-muted) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .table-wrap td p,
body[data-theme="xero"] .table-wrap td small,
body[data-theme="xero"] .table-wrap td .muted {
    max-width: 34ch !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .filters-grid,
body[data-theme="xero"] .workspace-filters,
body[data-theme="xero"] .stack-form,
body[data-theme="xero"] .form-grid {
    gap: 10px !important;
}

body[data-theme="xero"] .field span,
body[data-theme="xero"] label > span {
    color: var(--apex-muted) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea {
    min-height: 34px !important;
    border-radius: 6px !important;
    border: 1px solid var(--apex-border-strong) !important;
    background: #ffffff !important;
    color: var(--apex-text) !important;
    font-size: 12px !important;
}

body[data-theme="xero"] textarea {
    min-height: 82px !important;
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button,
body[data-theme="xero"] .button.primary,
body[data-theme="xero"] .button-secondary,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .badge,
body[data-theme="xero"] .ai-pill {
    border-radius: 6px !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .button,
body[data-theme="xero"] button.button {
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid var(--apex-border-strong) !important;
    background: #ffffff !important;
    color: var(--apex-text) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body[data-theme="xero"] .button.primary,
body[data-theme="xero"] button.primary,
body[data-theme="xero"] .button-primary {
    border-color: #095f9b !important;
    background: var(--apex-blue) !important;
    color: #ffffff !important;
}

body[data-theme="xero"] .button:hover,
body[data-theme="xero"] button.button:hover {
    transform: none !important;
    box-shadow: 0 1px 4px rgba(15, 23, 32, 0.12) !important;
}

body[data-theme="xero"] .pill,
body[data-theme="xero"] .badge,
body[data-theme="xero"] .ai-pill {
    min-height: 22px !important;
    padding: 2px 7px !important;
    border: 1px solid var(--apex-border) !important;
    background: var(--apex-surface-subtle) !important;
    color: #334455 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body[data-theme="xero"] details > summary {
    border-radius: 6px !important;
}

body[data-theme="xero"] .table-row-details summary,
body[data-theme="xero"] .live-ops-user-card__popover-details summary {
    min-height: 24px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
}

body[data-theme="xero"] .table-row-details__body,
body[data-theme="xero"] .detail-dialog,
body[data-theme="xero"] .live-ops-user-card__popover {
    border-radius: 8px !important;
    border: 1px solid var(--apex-border) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 32, 0.18) !important;
}

body[data-theme="xero"] .sync-progress-card {
    border-radius: 8px !important;
    box-shadow: 0 16px 42px rgba(15, 23, 32, 0.12) !important;
}

body[data-theme="xero"] .sync-progress-message,
body[data-theme="xero"] .sync-progress-step small {
    display: none !important;
}

body[data-theme="xero"] details:not([open]) > .table-row-details__body,
body[data-theme="xero"] details:not([open]) > .live-ops-user-card__popover-copy,
body[data-theme="xero"] details:not([open]) .live-ops-user-card__popover-copy {
    display: none !important;
}

body[data-theme="xero"] .ai-brief__card > p,
body[data-theme="xero"] .assistant-route-request-card__header p.muted,
body[data-theme="xero"] .invoice-export-panel p.muted {
    display: none !important;
}

@media (max-width: 900px) {
    body[data-theme="xero"] .page-shell,
    body[data-theme="xero"] .page-stack,
    body[data-theme="xero"] .settings-layout,
    body[data-theme="xero"] .workspace-head,
    body[data-theme="xero"] .hero,
    body[data-theme="xero"] .stats-grid,
    body[data-theme="xero"] .workspace-stats,
    body[data-theme="xero"] .xui-page {
        width: min(100% - 18px, 1480px) !important;
    }

    body[data-theme="xero"] .table-wrap {
        max-height: none !important;
    }
}

/* 2026-05-04 global enterprise method layer */
body[data-theme="xero"] {
    --method-page-max: 1680px;
    --method-page-pad: 16px;
    --method-gap: 12px;
    --method-radius: 8px;
    --method-surface: #ffffff;
    --method-line: #d8e1e8;
    --method-soft-line: #edf2f6;
    --method-soft: #f6f8fa;
    --method-ink: #142335;
    --method-muted: #52667a;
    --method-blue: #0067a8;
    --method-blue-soft: #e8f4fd;
}

body[data-theme="xero"] .page-shell,
body[data-theme="xero"] .xui-page,
body[data-theme="xero"] .workspace-head,
body[data-theme="xero"] .hero,
body[data-theme="xero"] .stats-grid,
body[data-theme="xero"] .workspace-stats,
body[data-theme="xero"] .settings-layout {
    width: min(var(--method-page-max), calc(100% - (var(--method-page-pad) * 2))) !important;
    max-width: var(--method-page-max) !important;
}

body[data-theme="xero"] .panel,
body[data-theme="xero"] .xui-widget,
body[data-theme="xero"] .detail-card,
body[data-theme="xero"] .metric-card,
body[data-theme="xero"] .stat-card,
body[data-theme="xero"] .workspace-stat {
    border-radius: var(--method-radius) !important;
    border: 1px solid var(--method-line) !important;
    background: var(--method-surface) !important;
    box-shadow: 0 1px 2px rgba(20, 35, 53, 0.05) !important;
}

body[data-theme="xero"] .workspace-head {
    display: grid !important;
    grid-template-columns: minmax(220px, max-content) minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: var(--method-gap) !important;
    padding: 10px 12px !important;
    overflow: visible !important;
}

body[data-theme="xero"] .workspace-head__identity {
    min-width: 0 !important;
}

body[data-theme="xero"] .workspace-head__title {
    max-width: none !important;
    color: var(--method-ink) !important;
    font-size: 22px !important;
    line-height: 1 !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .workspace-head__actions {
    gap: 6px !important;
    flex-wrap: wrap !important;
}

body[data-theme="xero"] .workspace-head__support-details {
    justify-self: end !important;
    min-width: max-content !important;
}

body[data-theme="xero"] .workspace-head__support-details summary {
    white-space: nowrap !important;
}

body[data-theme="xero"] .table-wrap {
    border-radius: var(--method-radius) !important;
    border: 1px solid var(--method-line) !important;
}

body[data-theme="xero"] .table-wrap table {
    width: 100% !important;
    min-width: 960px !important;
    table-layout: fixed !important;
}

body[data-theme="xero"] .table-cell-inline,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .table-meta-stack {
    min-width: 0 !important;
}

body[data-theme="xero"] .table-wrap td strong,
body[data-theme="xero"] .table-wrap td .table-link,
body[data-theme="xero"] .table-wrap td span,
body[data-theme="xero"] .table-wrap td p,
body[data-theme="xero"] .table-wrap td small {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .method-popover,
body[data-theme="xero"] .method-editor-surface {
    border-radius: var(--method-radius) !important;
    border: 1px solid var(--method-line) !important;
    background: var(--method-surface) !important;
    box-shadow: 0 18px 42px rgba(20, 35, 53, 0.18) !important;
}

body[data-theme="xero"] .method-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)) !important;
    gap: 6px !important;
}

body[data-theme="xero"] .method-mini-card {
    min-height: 48px !important;
    padding: 7px 8px !important;
    border-radius: 7px !important;
    border: 1px solid var(--method-line) !important;
    background: #fbfcfe !important;
}

/* 2026-05-04 orders full-width table workbench */
body[data-theme="xero"] .page-orders {
    --method-page-max: 1720px;
}

body[data-theme="xero"] .page-orders .workspace-head--filter-shell {
    grid-template-columns: minmax(120px, max-content) minmax(0, 1fr) auto !important;
}

body[data-theme="xero"] .page-orders .workspace-head__title {
    font-size: 26px !important;
}

body[data-theme="xero"] .page-orders .orders-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

body[data-theme="xero"] .page-orders .orders-main > .page-stack:first-child,
body[data-theme="xero"] .page-orders #orders-list,
body[data-theme="xero"] .page-orders .orders-workbench-panel,
body[data-theme="xero"] .page-orders .table-wrap,
body[data-theme="xero"] .page-orders [data-orders-list-table] {
    width: 100% !important;
    max-width: none !important;
}

body[data-theme="xero"] .page-orders #orders-list {
    padding: 12px !important;
}

body[data-theme="xero"] .page-orders #orders-list .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body[data-theme="xero"] .page-orders .table-wrap {
    max-height: calc(100vh - 232px) !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line {
    min-width: 1280px !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line th,
body[data-theme="xero"] .page-orders .orders-table--single-line td {
    padding: 8px 10px !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line th:first-child,
body[data-theme="xero"] .page-orders .orders-table--single-line td:first-child {
    width: 38px !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(2),
body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(2) {
    width: 16% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(3),
body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(3) {
    width: 24% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(4),
body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(4) {
    width: 16% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line th:nth-child(5),
body[data-theme="xero"] .page-orders .orders-table--single-line td:nth-child(5) {
    width: 13% !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line tbody tr {
    cursor: pointer !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line tbody tr.is-preview-selected td {
    background: var(--method-blue-soft) !important;
    box-shadow: none !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line tbody tr.is-preview-selected td:first-child {
    box-shadow: inset 3px 0 0 var(--method-blue) !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line .table-cell-inline {
    display: grid !important;
    gap: 4px !important;
}

body[data-theme="xero"] .page-orders .orders-table--single-line .table-detail-link {
    display: none !important;
}

body[data-theme="xero"] .page-orders .orders-main > .page-stack:nth-child(2) {
    pointer-events: none !important;
}

body[data-theme="xero"] .page-orders #orders-preview {
    position: fixed !important;
    z-index: 30 !important;
    top: 128px !important;
    right: 20px !important;
    width: min(470px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 156px) !important;
    overflow: auto !important;
    padding: 12px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(14px) scale(0.99) !important;
    transition: opacity 140ms ease, transform 140ms ease !important;
    box-shadow: 0 18px 42px rgba(20, 35, 53, 0.18) !important;
}

body[data-theme="xero"] .page-orders #orders-preview::before,
body[data-theme="xero"].page-orders #orders-preview::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -1 !important;
    display: none !important;
    background: rgba(20, 35, 53, 0.18) !important;
}

body[data-theme="xero"] .page-orders.is-order-preview-open #orders-preview,
body[data-theme="xero"].page-orders.is-order-preview-open #orders-preview,
body[data-theme="xero"] .page-orders #orders-preview:focus-within,
body[data-theme="xero"].page-orders #orders-preview:focus-within,
body[data-theme="xero"] .page-orders #orders-preview:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview {
    top: 136px !important;
    right: auto !important;
    left: 50% !important;
    width: min(1080px, calc(100vw - 64px)) !important;
    max-height: calc(100vh - 164px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview::before,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview::before {
    display: block !important;
}

body[data-theme="xero"] .page-orders #orders-preview .panel-header .table-meta-stack,
body[data-theme="xero"] .page-orders #orders-preview .panel-header .muted {
    display: none !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card {
    min-height: 52px !important;
    padding: 7px 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card strong,
body[data-theme="xero"] .page-orders .orders-preview-summary-card strong {
    font-size: 12px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-grid .detail-card .muted,
body[data-theme="xero"] .page-orders .orders-preview-summary-card p,
body[data-theme="xero"] .page-orders .orders-preview-summary-card span {
    font-size: 10px !important;
    line-height: 1.2 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-summary-card {
    padding: 8px !important;
}

body[data-theme="xero"] .page-orders .workspace-head__actions--preview {
    justify-content: flex-end !important;
}

body[data-theme="xero"] .page-orders .orders-preview-close {
    display: none !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-close,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-close {
    display: inline-flex !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-summary-grid,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-summary-card,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-summary-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-editor-drawer {
    margin-top: 8px !important;
}

body[data-theme="xero"] .page-orders .orders-preview-editor-drawer > summary {
    min-height: 30px !important;
    padding: 6px 9px !important;
    border: 1px solid var(--method-line) !important;
    background: var(--method-soft) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body[data-theme="xero"] .page-orders .orders-preview-line__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor {
    padding: 10px !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__line-list {
    max-height: 420px !important;
    overflow: auto !important;
    padding-right: 4px !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-line,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-line {
    padding: 9px !important;
    border-radius: 7px !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-line__grid,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-line__grid {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(92px, 0.8fr)) minmax(180px, 1.2fr) !important;
    gap: 8px !important;
}

@media (max-width: 1180px) {
    body[data-theme="xero"] .workspace-head,
    body[data-theme="xero"] .page-orders .workspace-head--filter-shell {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .workspace-head__support-details {
        justify-self: stretch !important;
        min-width: 0 !important;
    }

    body[data-theme="xero"] .page-orders #orders-preview {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        margin-top: 12px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview,
    body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview {
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-height: none !important;
        transform: none !important;
    }

    body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-summary-grid,
    body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-summary-grid,
    body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-line__grid,
    body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-line__grid {
        grid-template-columns: 1fr !important;
    }

    body[data-theme="xero"] .page-orders .orders-main > .page-stack:nth-child(2) {
        pointer-events: auto !important;
    }
}

/* 2026-05-04 final single-scroll authority */
body[data-theme="xero"] .table-wrap,
body[data-theme="xero"] .orders-preview-editor__line-list,
body[data-theme="xero"] .orders-preview-editor__lines,
body[data-theme="xero"] .live-ops-user-card__popover-copy,
body[data-theme="xero"] .xui-lower-window__body,
body[data-theme="xero"] .detail-dialog__body {
    max-height: none !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
}

body[data-theme="xero"] .table-wrap {
    overflow-x: auto !important;
}

body[data-theme="xero"] .page-orders .table-wrap {
    max-height: none !important;
    overflow-y: visible !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open,
body[data-theme="xero"].page-orders.is-order-editor-open {
    position: relative !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview {
    position: absolute !important;
    top: 14px !important;
    right: auto !important;
    left: 50% !important;
    width: min(1080px, calc(100vw - 64px)) !important;
    max-height: none !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__line-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

/* 2026-05-04 final typography authority */
body[data-theme="xero"] .panel-header h2,
body[data-theme="xero"] .panel h2,
body[data-theme="xero"] .xui-widget__title,
body[data-theme="xero"] .xui-lower-window__title,
body[data-theme="xero"] .section-header h2,
body[data-theme="xero"] .detail-dialog__header h2,
body[data-theme="xero"] .orders-preview-shell .panel-header h2,
body[data-theme="xero"] .orders-workbench-panel .panel-header h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .hero h1,
body[data-theme="xero"] .xui-page-head__title {
    font-size: 22px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] h3,
body[data-theme="xero"] .panel h3,
body[data-theme="xero"] .detail-card strong,
body[data-theme="xero"] .metric-card strong,
body[data-theme="xero"] .stat-card__value,
body[data-theme="xero"] .workspace-stat strong,
body[data-theme="xero"] .table-wrap table td,
body[data-theme="xero"] .table-wrap table td strong,
body[data-theme="xero"] .table-wrap table td .table-link,
body[data-theme="xero"] .list-item strong,
body[data-theme="xero"] input,
body[data-theme="xero"] select,
body[data-theme="xero"] textarea,
body[data-theme="xero"] .button,
body[data-theme="xero"] button.button {
    font-size: 12px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .eyebrow,
body[data-theme="xero"] .workspace-head__eyebrow,
body[data-theme="xero"] .xui-widget__eyebrow,
body[data-theme="xero"] .xui-section-head__eyebrow,
body[data-theme="xero"] .table-wrap table th,
body[data-theme="xero"] .field span,
body[data-theme="xero"] label > span,
body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .pill,
body[data-theme="xero"] .badge,
body[data-theme="xero"] .ai-pill,
body[data-theme="xero"] .button-counter,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-summary-card span,
body[data-theme="xero"] .orders-preview-summary-card p,
body[data-theme="xero"] .orders-preview-summary-grid .detail-card .muted,
body[data-theme="xero"] .orders-preview-line__meta,
body[data-theme="xero"] .workspace-stat span,
body[data-theme="xero"] .metric-card span,
body[data-theme="xero"] .stat-card__label {
    font-size: 10px !important;
    line-height: 1.22 !important;
    letter-spacing: 0.06em !important;
}

body[data-theme="xero"] .muted,
body[data-theme="xero"] small,
body[data-theme="xero"] .table-meta-stack,
body[data-theme="xero"] .table-meta-inline,
body[data-theme="xero"] .orders-preview-line__meta {
    letter-spacing: 0 !important;
}

/* 2026-05-04 page title correction */
body[data-theme="xero"] .workspace-head__title,
body[data-theme="xero"] .page-orders .workspace-head__title,
body[data-theme="xero"].page-orders .workspace-head__title {
    font-size: 22px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

/* 2026-05-04 final fixed header authority */
body[data-theme="xero"] .app-header {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 38px 34px 2px !important;
    align-items: center !important;
    min-height: 0 !important;
    height: 96px !important;
    max-height: 96px !important;
    padding: 12px 18px 10px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, var(--apex-shell, #101b27), var(--apex-shell-2, #0f1c29)) !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 32, 0.16) !important;
}

body[data-theme="xero"] .app-header::after {
    align-self: end !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    margin: 0 !important;
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav {
    width: min(1560px, calc(100% - 24px)) !important;
    max-width: 1560px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body[data-theme="xero"] .app-header__top {
    display: grid !important;
    grid-template-columns: minmax(145px, 190px) minmax(240px, 420px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
}

body[data-theme="xero"] .app-header__nav {
    align-self: center !important;
}

body[data-theme="xero"] .app-header__subnav {
    display: none !important;
}

body[data-theme="xero"] .app-brand {
    height: 30px !important;
    min-height: 30px !important;
    gap: 8px !important;
}

body[data-theme="xero"] .app-brand__logo {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
}

body[data-theme="xero"] .app-brand__meta {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
}

body[data-theme="xero"] .app-brand__meta strong {
    font-size: 14px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .global-search {
    margin: 0 !important;
}

body[data-theme="xero"] .global-search__field {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .app-header__controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-height: 30px !important;
}

body[data-theme="xero"] .app-header__icon-pill,
body[data-theme="xero"] .app-header__icon-button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
}

body[data-theme="xero"] .app-header__icon-pill svg,
body[data-theme="xero"] .app-header__icon-button svg {
    width: 13px !important;
    height: 13px !important;
}

body[data-theme="xero"] .header-nav {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 32px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

body[data-theme="xero"] .header-nav__link {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    line-height: 28px !important;
    border-radius: 6px !important;
}

body[data-theme="xero"] .header-nav__link.is-active::after {
    display: none !important;
}

body[data-theme="xero"] #cmg-page-content {
    padding-top: 16px !important;
}

@media (max-width: 820px) {
    body[data-theme="xero"] .app-header {
        display: none !important;
    }
}

/* 2026-05-04 compact fixed header correction */
body[data-theme="xero"] .app-header {
    grid-template-rows: 30px 28px 2px !important;
    height: 72px !important;
    max-height: 72px !important;
    padding: 7px 18px 5px !important;
    overflow: hidden !important;
}

body[data-theme="xero"] .app-header__top,
body[data-theme="xero"] .app-header__nav {
    width: min(1560px, calc(100% - 24px)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body[data-theme="xero"] .app-header__top {
    grid-template-columns: minmax(145px, 190px) minmax(240px, 420px) minmax(0, 1fr) !important;
    height: 30px !important;
}

body[data-theme="xero"] .app-header__nav,
body[data-theme="xero"] .header-nav {
    height: 28px !important;
    min-height: 28px !important;
}

body[data-theme="xero"] .header-nav__link {
    height: 26px !important;
    min-height: 26px !important;
    line-height: 26px !important;
    padding: 0 9px !important;
}

body[data-theme="xero"] .global-search__field,
body[data-theme="xero"] .app-brand,
body[data-theme="xero"] .app-header__controls {
    height: 28px !important;
    min-height: 28px !important;
}

body[data-theme="xero"] #cmg-page-content {
    padding-top: 8px !important;
}

body[data-theme="xero"] .page-shell {
    margin-top: 8px !important;
}

/* 2026-05-04 single-line header authority */
body[data-theme="xero"] .app-header {
    display: flex !important;
    align-items: center !important;
    height: 52px !important;
    max-height: 52px !important;
    min-height: 52px !important;
    padding: 8px 18px !important;
    overflow: hidden !important;
}

body[data-theme="xero"] .app-header::after {
    display: none !important;
}

body[data-theme="xero"] .app-header__top {
    display: grid !important;
    grid-template-columns: 170px 310px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: min(1560px, calc(100% - 24px)) !important;
    height: 36px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body[data-theme="xero"] .app-header__nav {
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body[data-theme="xero"] .header-nav {
    height: 32px !important;
    min-height: 32px !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

body[data-theme="xero"] .header-nav__link {
    height: 28px !important;
    min-height: 28px !important;
    line-height: 28px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
}

body[data-theme="xero"] .app-brand,
body[data-theme="xero"] .global-search__field,
body[data-theme="xero"] .app-header__controls {
    height: 32px !important;
    min-height: 32px !important;
}

body[data-theme="xero"] #cmg-page-content {
    padding-top: 6px !important;
}

body[data-theme="xero"] .page-shell {
    margin-top: 6px !important;
}

/* 2026-05-04 content flow authority */
body[data-theme="xero"] .content {
    display: block !important;
    align-content: start !important;
    justify-content: stretch !important;
    gap: 0 !important;
    padding: 0 0 24px !important;
}

body[data-theme="xero"] .content-frame {
    width: min(1480px, calc(100% - 24px)) !important;
    max-width: 1480px !important;
    margin: 8px auto 24px !important;
    padding: 0 !important;
}

body[data-theme="xero"] #cmg-page-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 24px !important;
    display: block !important;
    gap: 0 !important;
}

body[data-theme="xero"] .page-shell {
    margin-top: 6px !important;
    gap: 10px !important;
}

body[data-theme="xero"] .page-dashboard-detail {
    margin-top: 0 !important;
}

/* 2026-05-04 sync progress decisive finish */
body[data-theme="xero"] .sync-progress-orbit {
    display: none !important;
}

body[data-theme="xero"] .sync-progress-brand {
    width: 190px !important;
    height: 84px !important;
    margin: 0 auto 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body[data-theme="xero"] .sync-progress-brand img {
    width: 190px !important;
    height: 84px !important;
    object-fit: contain !important;
    filter: none !important;
}

body[data-theme="xero"] .sync-progress-meter span {
    width: 100% !important;
    transform-origin: left center !important;
    animation: sync-progress-finish 4.5s ease-out forwards !important;
}

body[data-theme="xero"] [data-current-state="complete"] .sync-progress-meter span,
body[data-theme="xero"] [data-current-state="attention"] .sync-progress-meter span {
    animation: none !important;
}

@keyframes sync-progress-finish {
    0% {
        transform: scaleX(0.18);
    }

    62% {
        transform: scaleX(0.72);
    }

    100% {
        transform: scaleX(1);
    }
}

/* 2026-05-04 orders editor single-scroll authority */
body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    contain: none !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview *,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview * {
    overscroll-behavior: auto !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor,
body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__lines,
body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor-drawer,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__lines,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor-drawer {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
}

/* 2026-05-04 orders modal own-scroll authority */
body[data-theme="xero"] .page-orders.is-order-editor-open #orders-preview,
body[data-theme="xero"].page-orders.is-order-editor-open #orders-preview {
    position: fixed !important;
    top: 58px !important;
    left: 50% !important;
    right: auto !important;
    width: min(1080px, calc(100vw - 56px)) !important;
    max-height: calc(100vh - 76px) !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    transform: translateX(-50%) !important;
    scrollbar-gutter: stable !important;
}

body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor,
body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__lines,
body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"] .page-orders.is-order-editor-open .orders-preview-editor-drawer,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__lines,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor__line-list,
body[data-theme="xero"].page-orders.is-order-editor-open .orders-preview-editor-drawer {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

body[data-theme="xero"] .orders-preview-saving {
    position: sticky !important;
    top: 0 !important;
    z-index: 6 !important;
    display: none !important;
    place-items: center !important;
    gap: 8px !important;
    min-height: 210px !important;
    margin: -12px -12px 12px !important;
    padding: 28px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--method-line) !important;
}

body[data-theme="xero"] .orders-preview-saving img {
    width: 170px !important;
    height: 76px !important;
    object-fit: contain !important;
    animation: orders-save-logo 900ms ease-out both !important;
}

body[data-theme="xero"] .orders-preview-saving strong {
    display: block !important;
    color: var(--method-ink) !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .orders-preview-saving span {
    display: block !important;
    color: var(--method-muted) !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .page-orders.is-order-save-running .orders-preview-saving,
body[data-theme="xero"].page-orders.is-order-save-running .orders-preview-saving {
    display: grid !important;
}

body[data-theme="xero"] .page-orders.is-order-save-running #orders-preview > :not(.orders-preview-saving),
body[data-theme="xero"].page-orders.is-order-save-running #orders-preview > :not(.orders-preview-saving) {
    opacity: 0.2 !important;
    pointer-events: none !important;
}

@keyframes orders-save-logo {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 2026-05-05 CMG Flow SaaS copilot */
body[data-theme="xero"] .system360-chat {
    z-index: 120 !important;
}

body[data-theme="xero"] .system360-chat__bubble {
    min-height: 38px !important;
    padding: 7px 13px 7px 9px !important;
    border: 1px solid rgba(10, 132, 194, 0.24) !important;
    background: #ffffff !important;
    color: #0f2236 !important;
    box-shadow: 0 14px 34px rgba(15, 35, 54, 0.16) !important;
}

body[data-theme="xero"] .system360-chat__bubble strong {
    font-size: 12px !important;
    letter-spacing: 0 !important;
}

body[data-theme="xero"] .system360-chat__bubble small {
    color: #355a78 !important;
    font-size: 10px !important;
}

body[data-theme="xero"] .system360-chat__pulse {
    width: 11px !important;
    height: 11px !important;
    background: #25b884 !important;
    box-shadow: 0 0 0 6px rgba(37, 184, 132, 0.16) !important;
}

body[data-theme="xero"] .system360-chat__panel {
    width: min(520px, calc(100vw - 34px)) !important;
    max-height: min(680px, calc(100vh - 92px)) !important;
    border-radius: 10px !important;
    border-color: #cfdbe6 !important;
    background: #f8fafc !important;
    box-shadow: 0 26px 70px rgba(15, 35, 54, 0.22) !important;
}

body[data-theme="xero"] .system360-chat.is-expanded .system360-chat__panel {
    position: fixed !important;
    inset: 66px 18px 18px auto !important;
    width: min(980px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 84px) !important;
}

body[data-theme="xero"] .system360-chat__header {
    gap: 10px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-bottom-color: #dbe5ee !important;
}

body[data-theme="xero"] .system360-chat__header h2 {
    font-size: 14px !important;
    line-height: 1.15 !important;
}

body[data-theme="xero"] .system360-chat__tools {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
}

body[data-theme="xero"] .system360-chat__tool,
body[data-theme="xero"] .system360-chat__close {
    min-width: 30px !important;
    min-height: 28px !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
    border: 1px solid #cfdbe6 !important;
    background: #f7fafc !important;
    color: #16324a !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body[data-theme="xero"] .system360-chat__context,
body[data-theme="xero"] .system360-chat__prompts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e3ebf2 !important;
}

body[data-theme="xero"] .system360-chat__context span,
body[data-theme="xero"] .system360-chat__prompts button,
body[data-theme="xero"] .system360-chat__answer-meta span {
    border: 1px solid #d8e4ee !important;
    border-radius: 999px !important;
    background: #f7fafc !important;
    color: #31516d !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 6px 8px !important;
}

body[data-theme="xero"] .system360-chat__prompts button {
    cursor: pointer !important;
}

body[data-theme="xero"] .system360-chat__prompts button:hover {
    border-color: #1185c8 !important;
    color: #0b6faa !important;
}

body[data-theme="xero"] .system360-chat__messages {
    gap: 8px !important;
    padding: 12px !important;
}

body[data-theme="xero"] .system360-chat__message {
    max-width: 94% !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
    padding: 9px 10px !important;
}

body[data-theme="xero"] .system360-chat__message--assistant {
    background: #ffffff !important;
}

body[data-theme="xero"] .system360-chat__message--assistant.is-thinking p::after {
    content: "" !important;
    display: inline-block !important;
    width: 18px !important;
    height: 7px !important;
    margin-left: 8px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #1185c8 0 33%, #25b884 33% 66%, #d99a16 66% 100%) !important;
    animation: cmg-copilot-thinking 900ms ease-in-out infinite alternate !important;
}

body[data-theme="xero"] .system360-chat__answer-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-top: 8px !important;
}

body[data-theme="xero"] .system360-chat__outputs {
    gap: 7px !important;
}

body[data-theme="xero"] .system360-chat__output,
body[data-theme="xero"] .system360-chat__candidate {
    border-radius: 8px !important;
    background: #fbfdff !important;
    padding: 8px !important;
}

body[data-theme="xero"] .system360-chat__output strong,
body[data-theme="xero"] .system360-chat__candidate span {
    font-size: 12px !important;
}

body[data-theme="xero"] .system360-chat__output small,
body[data-theme="xero"] .system360-chat__candidate small {
    font-size: 10px !important;
    color: #49667f !important;
}

body[data-theme="xero"] .system360-chat__actions a {
    border-radius: 7px !important;
    background: #0b75b7 !important;
    font-size: 10px !important;
    padding: 6px 8px !important;
}

body[data-theme="xero"] .system360-chat__form {
    gap: 8px !important;
    padding: 10px !important;
    background: #ffffff !important;
}

body[data-theme="xero"] .system360-chat__form textarea {
    min-height: 40px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

body[data-theme="xero"] .b2b-activation-strip .detail-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-theme="xero"] .b2b-activation-strip .detail-card-stat {
    min-height: 72px !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
}

body[data-theme="xero"] .b2b-activation-strip .detail-card-stat span {
    font-size: 10px !important;
}

body[data-theme="xero"] .b2b-activation-strip .detail-card-stat strong {
    font-size: 22px !important;
}

body[data-theme="xero"] .b2b-lifecycle-form {
    display: grid !important;
    grid-template-columns: minmax(120px, 1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 220px !important;
}

body[data-theme="xero"] .b2b-lifecycle-form select {
    min-height: 30px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
}

body[data-theme="xero"] .orders-backorder-radar {
    margin-top: 10px !important;
    padding: 10px !important;
}

body[data-theme="xero"] .orders-backorder-radar .detail-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body[data-theme="xero"] .orders-backorder-radar .detail-card-stat {
    min-height: 58px !important;
}

@keyframes cmg-copilot-thinking {
    from {
        opacity: 0.45;
        transform: translateY(1px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    body[data-theme="xero"] .b2b-activation-strip .detail-card-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    body[data-theme="xero"] .orders-backorder-radar .detail-card-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    body[data-theme="xero"] .system360-chat.is-expanded .system360-chat__panel {
        inset: 14px !important;
        width: calc(100vw - 28px) !important;
        max-height: calc(100vh - 28px) !important;
    }
}
