/* AimEx Inbox palette. Screen chrome only; documents retain their own styling. */
@media screen {
html:root {background:var(--hub-bg);color-scheme:var(--hub-scheme)}
html body {background:var(--hub-bg)!important;color:var(--hub-text)!important}
body main {color:var(--hub-text)}
body :is(nav,.main-navigation,.sidebar) {background:var(--hub-panel)!important;border-color:var(--hub-border)!important;border-radius:12px}
body :is(main>section,#editor>section,.panel,.card,.section-note,.welcome,.login,.identity,dialog,.party-add-dialog) {background:var(--hub-panel)!important;color:var(--hub-text)!important;border-color:var(--hub-border)!important}
body :is(section,.auth-panel,.backup-panel,.parties>div,.saved-item,.role,.zoom-controls,.document-zoom-controls):not(:where(#paper *,#label-paper *,#invoice-paper *,#receipt-paper *,#receipt-print-sheet *,#csd-paper *,#dg-paper *,#report-paper *,.export-page *,.page *)) {background:var(--hub-panel)!important;color:var(--hub-text)!important;border-color:var(--hub-border)!important}
body :is(.auth-panel,.backup-panel) :is(p,label,h2,h3,small,span) {color:var(--hub-muted)!important}
body :is(main>h1,main>h2,main>p,.toolbar,.actions,#preview-title,#totals,#receipt-list,#invoice-saved) {color:var(--hub-text)!important}
body a:not(:where(#paper *,#label-paper *,#invoice-paper *,#receipt-paper *,#receipt-print-sheet *,#csd-paper *,#dg-paper *,#report-paper *,.export-page *,.page *,.card,nav a,a.btn,a.button)) {color:#ffd23f!important;background:transparent!important;border-color:var(--hub-border)!important}
body .intro {background:var(--hub-navy)!important;color:var(--hub-text)!important}
body :is(.party-card,.notice) {background:var(--hub-raised)!important;color:var(--hub-text)!important;border-color:var(--hub-border)!important}
body .field {background:transparent!important;color:var(--hub-text)!important;border-color:var(--hub-border)!important}
body :is(.other-editor,.other-preview) {background:transparent!important;color:var(--hub-text)!important;border-color:var(--hub-border)!important}
html:root:root:root body #goods-charges-panel {background:var(--hub-raised)!important}
body .card:hover {background:var(--hub-raised)!important;border-color:#ffd23f!important}
body :is(h1,h2,h3,label,p,.muted,.badge,.card span,.staff-session,.party-picker-status,#message,#status,footer):not(:where(#paper *,#label-paper *,#invoice-paper *,#receipt-paper *,#receipt-print-sheet *,#csd-paper *,#dg-paper *,#preview *,#invoice-preview *,#receipt-preview *,#csd-preview *,#dg-preview *)) {color:var(--hub-text)!important}
body :is(p,.muted,.badge,.card span,footer,.party-picker-status):not(:where(#paper *,#preview *,#invoice-preview *,#receipt-preview *,#csd-preview *,#dg-preview *)) {color:var(--hub-muted)!important}
html body :is(input,select,textarea):not(:where(#paper *,#label-paper *,#invoice-paper *,#receipt-paper *,#preview *,#invoice-preview *,#receipt-preview *,#csd-preview *,#dg-preview *)) {background:transparent!important;color:var(--hub-text)!important;border:1px solid var(--hub-border)!important;border-radius:7px}
body input::placeholder,body textarea::placeholder {color:#9dacC5!important;opacity:1}
html:root:root:root body :is(button,a.btn,a.button,a.action,nav a,nav strong,.sidebar a) {background:var(--hub-raised)!important;color:var(--hub-text)!important;border:1px solid var(--hub-border)!important;border-radius:8px!important;box-shadow:none;transition:background-color .15s,border-color .15s,color .15s}
html:root:root:root body :is(button,a.btn,a.button,a.action,nav a,.sidebar a):hover {background:var(--hub-hover)!important;color:#ffd23f!important;border-color:#a28635!important}
html:root:root:root body :is(button,a.btn,a.button,nav a,nav strong):is(.active,[aria-current="page"],[aria-pressed="true"],[aria-selected="true"],:active) {background:#ffd23f1a!important;color:#ffd23f!important;border-color:#a28635!important}
html:root:root:root body :is(button.primary,a.btn.primary,#finalize,#invoice-issue,#receipt-issue,#continue,.button:not(.secondary)) {background:#ffd23f!important;color:#10182b!important;border-color:#ffd23f!important;font-weight:700}
html:root:root:root body :is(button,a.btn,a.button):disabled {background:var(--hub-raised)!important;color:#8190aa!important;border-color:var(--hub-border)!important;opacity:.65;cursor:not-allowed}
html body :is(button,a,input,select,textarea):focus-visible {outline:2px solid #ffd23f!important;outline-offset:3px}
body :is(.card em,.tools,.eyebrow) {color:#ffd23f!important}
body :is(#hawb-data-table,main table):not(:where(#paper *,#invoice-paper *,#receipt-paper *,#preview *)) {color:var(--hub-text)!important;background:var(--hub-panel)!important}
body :is(#hawb-data-table,main table):not(:where(#paper *,#invoice-paper *,#preview *)) :is(th,td) {border-color:var(--hub-border)!important;background:var(--hub-panel)!important;color:var(--hub-text)!important}
body :is(#hawb-data-table,main table):not(:where(#paper *,#invoice-paper *,#preview *)) th {background:var(--hub-raised)!important;color:var(--hub-text)!important}
body #goods-charges-panel .other-preview table,body #goods-charges-panel .other-preview :is(th,td) {background:transparent!important}
body :is(#paper,#label-paper,#invoice-paper,#receipt-paper,#receipt-print-sheet,#csd-paper,#dg-paper,#report-paper,#preview>div:has(svg)) {color-scheme:light}
body :is(#paper,#label-paper,#invoice-paper,#receipt-paper,#receipt-print-sheet,#csd-paper,#dg-paper,.export-page,.page) {background:white!important;color:#173657!important;color-scheme:light}
body #report-paper {background:white!important;color:#173657!important}
body #report-paper :is(h1,h2,h3,p,th,td) {color:#173657!important;background:transparent!important}
}

@media screen{html:root:root:root body nav .onehub-brand{background:#fff!important;border:0!important;padding:4px 8px!important;display:flex;align-items:center;justify-content:center;flex:0 0 auto;height:44px;min-height:44px;border-radius:8px!important}nav .onehub-brand img{width:132px;height:35px;object-fit:contain}.intro .logo{width:260px;background:#fff;border-radius:8px;padding:8px;box-sizing:border-box}}
@media print{.onehub-brand{display:none!important}}

@media screen{html:root:root:root body nav .onehub-brand{background:transparent!important;padding:0 8px!important}.intro .logo{background:transparent!important;border-radius:0;padding:0;width:260px}nav .onehub-brand img{width:146px;height:35px;object-fit:contain}}

/* High-contrast report screen; print/export styles stay unchanged. */
@media screen {
html:root:root:root body #report-paper {background:var(--hub-panel)!important;color:var(--hub-text)!important;color-scheme:var(--hub-scheme);border-color:var(--hub-border)!important}
html:root:root:root body #report-paper :is(h1,h2,h3,p,span,strong,small,label,th,td) {color:var(--hub-text)!important;background:transparent!important}
html:root:root:root body #report-paper :is(#report-basis,#report-filter-summary,#report-generated) {color:var(--hub-text)!important}
html:root:root:root body #report-paper th {background:var(--hub-raised)!important;color:var(--hub-text)!important}
html:root:root:root body #report-paper :is(th,td,.summary>div) {border-color:var(--hub-border)!important}
html:root:root:root body #report-paper .summary strong {color:var(--hub-text)!important}
}
/* Consistent breathing room for screen controls; printable documents are unchanged. */
@media screen {
html:root:root:root body :is(button,a.btn,a.button,a.action) {
 margin-block:8px!important;
 margin-inline:0 8px!important;
}
html:root:root:root body :is(.toolbar,.actions,.receipt-controls,.party-picker,.party-dialog-actions,.document-action-toolbar,.shipment-import-toolbar,.sup-toolbar) {
 gap:12px!important;
 margin-block:16px!important;
}
html:root:root:root body :is(.toolbar,.actions,.receipt-controls,.party-picker,.party-dialog-actions,.document-action-toolbar,.shipment-import-toolbar,.sup-toolbar,.sup-tabs,.sup-row,.sup-picker,.sup-grid,.fields,.invoice-row,.label-record-filters,.shipment-picker,.staff-session,nav)>:is(button,a.btn,a.button,a.action) {
 margin:0!important;
}
html:root:root:root body :is(.sup-tabs,.sup-row,.sup-picker,.label-record-filters,.shipment-picker,nav,.staff-session) {gap:12px!important}
html:root:root:root body :is(.sup-header,.document-action-header) {gap:16px!important}
html:root:root:root body :is(.sup-header,.document-action-header)>:is(.sup-toolbar,.document-action-toolbar) {margin-block:8px!important}
html:root:root:root body :is(button,a.btn,a.button,a.action)+:is(p,.fields,.sup-grid,table,.scroll,.sup-scroll) {margin-top:12px!important}
html:root:root:root body :is(.toolbar,.actions,.sup-toolbar,.document-action-toolbar)+p {margin-top:12px!important}
}
