/* Shared responsive controls; preserves the existing desktop palette and dashboard grid. */
[hidden]{display:none!important}
#eaRecoveryForm label{display:grid;gap:7px;min-width:0;font-size:13px;color:#bec3c3}
#eaRecoveryForm input,#eaRecoveryForm select,#eaRecoveryForm textarea{width:100%;box-sizing:border-box;background:#0b0e0e;border:1px solid #343b3b;border-radius:6px;color:#f4f5f5;padding:10px;font:inherit}
#eaOrdersController a,#eaAttention a{color:#f0f2f2;text-decoration-color:#b45113}
#eaOrderReview .detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}#eaOrderReview strong{display:block;margin-top:8px;font-size:20px}
#eaRecoveryForm .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ear-basis{font-size:12px;color:#a8afaf;margin:8px 0}
#eaDashRewrite .ear-health>div{min-width:0;min-height:72px;box-sizing:border-box}
#eaDashRewrite .ear-health small{display:block;line-height:1.4;min-height:2.8em;overflow-wrap:anywhere}
#eaAttention{margin-top:14px}.ea-attention-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.ea-attention-grid a{padding:10px;border:1px solid #283030;border-radius:6px;font-size:12px}.ea-attention-grid strong{font-size:22px;display:block}.ea-attention-grid small{display:block;margin-top:8px;color:#aab1b1;line-height:1.4}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #ff7900;outline-offset:3px}
body[data-ea-workspace=accounting] #eaMobDock,body[data-ea-workspace=accounting] #eaMobShade{display:none!important}
@media(max-width:780px){
 html body #app .shell{display:block!important}html body #app .side{position:fixed!important;inset:0 auto 0 0!important;height:100dvh!important;max-height:100dvh!important;width:min(86vw,320px)!important;z-index:2300!important;overflow:auto!important}
 html body:not(.ea-menu-open) #app .side{visibility:hidden!important;pointer-events:none!important;transform:translateX(-105%)!important}
 html body.ea-menu-open #app .side{visibility:visible!important;pointer-events:auto!important;transform:translateX(0)!important}
 html body #app .main{margin:0!important;padding:16px 12px calc(85px + env(safe-area-inset-bottom))!important;min-width:0!important}
 html body #app .top{flex-wrap:wrap;gap:12px}html body #app .top .actions{flex-wrap:wrap}
 html body #app button,html body #app select,html body #eaacctApp button{min-height:44px!important;font-size:14px!important}
 html body #app input,html body #app textarea,html body #eaacctApp input{font-size:16px!important}
 html body #eaDashRewrite.ea-o2v16 .ear-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #eaDashRewrite.ea-o2v16 .ea-margin-card{grid-column:1/-1}
 html body #eaDashRewrite.ea-o2v16 .ear-health{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #eaDashRewrite.ea-o2v16 .ear-health small{font-size:12px!important}
 html body #eaDashRewrite.ea-o2v16 .ear-label,html body #eaDashRewrite.ea-o2v16 .ear-sub{font-size:12px!important;line-height:1.4!important}
 html body #eaDashRewrite.ea-o2v16 #eaOpsSnapshot{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #eaDashRewrite.ea-o2v16 .ea-v3-orders-panel{min-height:0!important;height:auto!important;max-height:none!important}
 html body #eaDashRewrite.ea-o2v16 .ea-v3-orders-scroll{max-height:360px!important}
 .ea-attention-grid{grid-template-columns:1fr 1fr}#eaOrderReview .detail-grid,#eaRecoveryForm .detail-grid{grid-template-columns:1fr 1fr}
 #eaacctChooser{overflow:auto;align-items:start!important;padding:16px!important}.eaacct-chooser-card{padding:20px!important;margin:auto!important;box-sizing:border-box}.eaacct-choices{grid-template-columns:1fr!important}.eaacct-choice span{font-size:14px!important}.eaacct-choice{min-height:44px!important}
 .ea-refund-table{min-width:0!important;width:100%!important}.ea-refund-table thead{display:none}.ea-refund-table tr{display:block;border:1px solid #303737;margin:10px 0;padding:10px}.ea-refund-table td{display:flex;justify-content:space-between;gap:10px;white-space:normal!important}.ea-refund-table td:before{content:attr(data-mobile-label);color:#aab0b0}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html body #eaDashRewrite a{color:#e6e9e9;text-decoration-color:#b45113}
@media(max-width:1600px){
 html body #eaDashRewrite.ea-o2v16 .ear-kpis>.ear-card{padding:16px 12px!important;height:158px!important}
 html body #eaDashRewrite.ea-o2v16 .ear-kpis .ear-label{padding-left:35px!important;min-height:30px!important;display:flex!important;align-items:center!important}
 html body #eaDashRewrite.ea-o2v16 .ear-kpis .ea-kpi-icon{width:26px!important;height:26px!important;top:16px!important;left:12px!important;font-size:16px!important;box-shadow:none!important}
 html body #eaDashRewrite.ea-o2v16 .ear-kpis .ear-value{font-size:clamp(20px,1.9vw,28px)!important;white-space:nowrap!important;letter-spacing:-.03em!important}
 html body #eaDashRewrite.ea-o2v16 .ea-margin-ring{width:36px!important;height:36px!important;right:12px!important;top:62px!important}
 html body #eaDashRewrite.ea-o2v16 .ea-margin-ring:after{width:26px!important;height:26px!important}
}
@media(max-width:780px){html body #eaDashRewrite.ea-o2v16 .ear-kpis .ear-value{font-size:22px!important}html body #eaDashRewrite.ea-o2v16 .ear-kpis>.ear-card{height:150px!important;min-height:150px!important}}
/* Keep order profit colours visible through the shared table/theme rules. */
html body #app #eaOrdersController table.data td.ea-order-profit-positive{color:#78db5d!important;font-weight:700!important}
html body #app #eaOrdersController table.data td.ea-order-profit-negative{color:#ff7058!important;font-weight:700!important}
html body #app #eaOrdersController table.data td.ea-order-profit-neutral{color:#aab0b0!important}

/* Orders owns its typography and responsive table, independent of legacy themes. */
html body #app #eaOrdersController{min-width:0!important;max-width:100%!important}
html body #app #eaOrdersController .panel-body{padding:20px!important}
html body #app #eaOrdersController label{display:grid;gap:8px;min-width:0;font-size:14px!important;line-height:1.5!important;color:#bec3c3}
html body #app #eaOrdersController input,html body #app #eaOrdersController select{width:100%;min-height:44px;box-sizing:border-box;background:#0b0e0e;border:1px solid #343b3b;border-radius:6px;color:#f4f5f5;padding:10px 12px;font-family:inherit;font-size:16px!important;line-height:1.4!important}
html body #app #eaOrdersController button{min-height:44px!important;font-size:15px!important;padding:10px 14px!important}
html body #app #eaOrdersController .ea-order-toolbar{display:grid;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) minmax(170px,1fr);gap:16px;align-items:end;margin-bottom:18px}
html body #app #eaOrdersController .ea-order-filters{border:1px solid #303737;border-radius:8px;padding:12px 16px;margin-bottom:16px}
html body #app #eaOrdersController summary{cursor:pointer;font-size:15px!important;line-height:1.5;min-height:24px}
html body #app #eaOrdersController .ea-order-filters .inline-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:16px;align-items:end}
html body #app #eaOrdersController .ea-order-actions,html body #app #eaOrderResults>.inline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0;font-size:15px!important}
html body #app #eaOrderStatus{font-size:15px!important;line-height:1.6!important;margin:16px 0}
html body #app #eaOrdersController .table-wrap{max-width:100%;overflow-x:auto!important}
html body #app #eaOrdersController table.data{width:100%!important;min-width:1300px!important;table-layout:auto!important;border-collapse:collapse}
html body #app #eaOrdersController table.data th,html body #app #eaOrdersController table.data td{font-size:15px!important;line-height:1.5!important;padding:15px 16px!important;white-space:nowrap!important;text-align:left!important;vertical-align:middle!important}
html body #app #eaOrdersController table.data th{font-weight:600!important;text-transform:none!important;letter-spacing:0!important;color:#bac2c2!important}
html body #app #eaOrdersController table.data th:first-child,html body #app #eaOrdersController table.data td:first-child{min-width:205px!important}
html body #app #eaOrdersController table.data th:nth-child(n+4),html body #app #eaOrdersController table.data td:nth-child(n+4){text-align:right!important;font-variant-numeric:tabular-nums!important}
html body #app #eaOrdersController table.data td a{font-size:15px!important;line-height:1.5!important}
@media(max-width:780px){
 html body #app #eaOrdersController .panel-body{padding:14px!important}
 html body #app #eaOrdersController .ea-order-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 html body #app #eaOrdersController .ea-order-search{grid-column:1/-1}
 html body #app #eaOrdersController .ea-order-filters .inline-actions{grid-template-columns:minmax(0,1fr)}
 html body #app #eaOrdersController table.data{min-width:0!important;display:block!important}
 html body #app #eaOrdersController table.data thead{display:none!important}
 html body #app #eaOrdersController table.data tbody{display:block!important}
 html body #app #eaOrdersController table.data tr{display:block!important;margin:14px 0;padding:12px;border:1px solid #303737;border-radius:8px;background:#0b0e0e}
 html body #app #eaOrdersController table.data td{display:flex!important;justify-content:space-between;align-items:baseline!important;gap:14px;min-width:0!important;border:0!important;padding:8px 0!important;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere}
 html body #app #eaOrdersController table.data td:before{content:attr(data-mobile-label);flex:0 0 40%;text-align:left;color:#aab0b0;font-weight:400}
 html body #app #eaOrdersController table.data td:first-child{display:block!important;border-bottom:1px solid #303737!important;padding-bottom:12px!important;text-align:left!important}
 html body #app #eaOrdersController table.data td:first-child:before{display:none}
 html body #app #eaOrdersController table.data td:last-child{border-top:1px solid #303737!important;margin-top:6px;font-size:17px!important;font-weight:700!important}
}

/* Shared tab readability. Dashboard and the dedicated Orders layout keep their own rules. */
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent){font-size:15px!important;line-height:1.5!important;min-width:0!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.panel-body,.eaacct-panel-body){padding:20px!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.panel-head,.eaacct-panel-head){padding:16px 20px!important;gap:12px;flex-wrap:wrap}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(h3,.section-head h2){font-size:18px!important;line-height:1.4!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(label,.metric-label,.metric-sub,.detail-box label,.eaacct-metric label,.eaacct-metric small,.pill,.eaacct-pill){font-size:13px!important;line-height:1.5!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(p,.note,.eaacct-note,.breadcrumb,.alert,.eaacct-alert){font-size:15px!important;line-height:1.6!important;overflow-wrap:anywhere}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(button,.button,.eaacct-button){font-size:15px!important;line-height:1.4!important;min-height:44px!important;padding:10px 14px!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;line-height:1.4!important;min-height:44px!important;padding:10px 12px!important;box-sizing:border-box!important;max-width:100%!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.toolbar,.eaacct-toolbar,.ea-refund-toolbar,.inline-actions){display:flex;flex-wrap:wrap!important;align-items:center;gap:12px!important;margin-bottom:16px!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.search,.eaacct-search,.ea-refund-search){min-width:0!important;flex:1 1 280px;max-width:100%!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.field,.eaacct-field){min-width:0!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.table-wrap,.eaacct-table-wrap,.ea-refund-table-wrap){max-width:100%!important;overflow-x:auto!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-table{width:100%!important;min-width:720px!important;table-layout:auto!important;border-collapse:collapse}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-table :is(th,td){font-size:15px!important;line-height:1.5!important;padding:15px 16px!important;vertical-align:middle!important;text-align:left!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-table th{font-weight:600!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-table td{min-width:95px;max-width:420px;overflow-wrap:anywhere}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-table :is(a,button,span,small){font-size:inherit!important;line-height:inherit!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-table .ea-numeric{text-align:right!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) .ea-profit-positive{color:#78db5d!important}html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) .ea-profit-negative{color:#ff7058!important}html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) .ea-profit-neutral{color:#aab0b0!important}
@media(max-width:780px){
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.panel-body,.eaacct-panel-body){padding:14px!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.panel-head,.eaacct-panel-head){padding:14px!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) :is(.grid50,.grid2,.form-grid,.eaacct-grid,.eaacct-grid2,.eaacct-form-grid){grid-template-columns:minmax(0,1fr)!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards{display:block!important;min-width:0!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards thead{display:none!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards tbody{display:block!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards tr{display:block!important;padding:12px!important;margin:12px 0!important;border:1px solid #303737!important;border-radius:8px!important;background:#0b0e0e!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards td{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:14px!important;width:100%!important;box-sizing:border-box!important;min-width:0!important;max-width:none!important;padding:8px 0!important;border:0!important;white-space:normal!important;text-align:right!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards td:before{content:attr(data-mobile-label);flex:0 0 40%;font-size:13px!important;line-height:1.5!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;color:#aab0b0!important;text-align:left!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards td.ea-empty-row{display:block!important;text-align:center!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards td.ea-empty-row:before{display:none!important}
 html body :is(#app #pageContent.ea-readable-page:not(:has(#eaDashRewrite)),#eaacctApp #eaacctContent) table.ea-readable-cards :is(input,select,textarea){min-width:0!important;width:100%!important}
}

/* Recovery estimates are visible without changing dashboard typography. */
.ea-recovery-assumed{color:#ff9a46!important}td small.ea-recovery-assumed{display:block;font-size:.8em;margin-top:4px}#eaRecoveryForm input[type="checkbox"]{width:18px;min-height:18px;height:18px}
