/* Portal screen data standard. Printed documents retain their own layout. */
@media screen {
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(table>thead>tr>th,.wd-reminder-columns,.wp-list-columns,.wd-data-subheading){background:#E5E7EB!important;color:#000000!important;font-size:13px!important;font-weight:700!important;line-height:1.35!important;text-transform:none!important;text-align:left!important;vertical-align:middle!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main table>tbody>tr:nth-of-type(odd)>:is(td,th),
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wp-card,.wp-step,.wd-reminder-row,.wd-activity-row):nth-of-type(odd){background:#fff4d7!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main table>tbody>tr:nth-of-type(even)>:is(td,th),
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wp-card,.wp-step,.wd-reminder-row,.wd-activity-row):nth-of-type(even){background:#fff!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(table>tbody>tr>td,.wp-card,.wd-reminder-row){font-size:13px!important;line-height:1.4!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wd-code-cell,[data-column-label="Code"],[data-column-label="Customer Code"],[data-column-label="Account Code"]),
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wd-code-cell,[data-column-label="Code"],[data-column-label="Customer Code"],[data-column-label="Account Code"]) :is(span,a,strong){white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;width:auto!important;min-width:6ch!important;max-width:none!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main .wd-code-cell{width:1%!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wd-reminder-main strong,.wd-reminder-main small){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:break-word!important;line-height:1.35!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main .wd-reminder-main strong{font-size:14px!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main .wd-reminder-main small{font-size:12px!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main [data-money-tone="credit"],
html.wd-design-system[data-wd-design] body#wd-portal-ui main [data-money-tone="profit"]{color:#087443!important;font-weight:700!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main [data-money-tone="cost"],
html.wd-design-system[data-wd-design] body#wd-portal-ui main [data-money-tone="loss"]{color:#b42318!important;font-weight:700!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main [data-money-tone]>:is(strong,a,span):not(.wd-design-status){color:inherit!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.fn-stat,.wd-list-summary,.wd-statement-summary,.wd-month-summary,.wd-statement-header-totals,.wd-header-totals) [data-money-tone="credit"],
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.fn-stat,.wd-list-summary,.wd-statement-header-totals,.wd-header-totals) [data-money-tone="profit"]{color:#75e2b3!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.fn-stat,.wd-list-summary,.wd-statement-header-totals,.wd-header-totals) :is([data-money-tone="cost"],[data-money-tone="loss"]){color:#ff9d9d!important}
/* Shared left alignment for column headings, values and editable table fields. */
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(table.wd-design-data-grid,table) :is(th,td),
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(table.wd-design-data-grid,table) :is(th,td) :is(input,textarea,select),
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wd-reminder-columns,.wp-list-columns,.wd-data-subheading,.wd-reminder-row,.wp-card)>*{text-align:left!important}

/* Authoritative screen table headings: page-specific legacy rules must not override this standard. */
html.wd-design-system[data-wd-design] body#wd-portal-ui main table.wd-design-data-grid>thead>tr>th,
html.wd-design-system[data-wd-design] body#wd-portal-ui main table>thead>tr>th,
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(.wd-reminder-columns,.wp-list-columns,.wd-data-subheading){background:#E5E7EB!important;color:#000000!important;text-align:left!important;vertical-align:middle!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main table.wd-design-data-grid :is(th,td),
html.wd-design-system[data-wd-design] body#wd-portal-ui main table.wd-design-data-grid :is(th,td) :is(input,textarea,select){text-align:left!important}
}

/* wd-document-section-flush: dashboard-style section edges, no nested cream frames. */
@media screen {
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(#document-register-body,#tax-documents-body,#sponsored-persons-body){padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;gap:0!important;min-width:0!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(#document-register-body,#sponsored-persons-body)>div,
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(#document-register-body,#sponsored-persons-body) .wd-design-table-scroll{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;max-width:100%!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(#document-register-body,#sponsored-persons-body) table{margin:0!important;border:0!important;border-radius:0!important;width:100%!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main :is(#document-register-body,#sponsored-persons-body) table>thead>tr>th{background:#E5E7EB!important;color:#000!important;text-align:left!important;padding:7px 8px!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main #document-register-body table>tbody>tr>td{padding:7px 8px!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main #tax-documents-body>.wd-tax-record{border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main #tax-documents-body>.wd-tax-record:nth-child(odd){background:#fff4d7!important}
html.wd-design-system[data-wd-design] body#wd-portal-ui main #tax-documents-body>.wd-tax-record:nth-child(even){background:#fff!important}
}
