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-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;
    }
}
