:root{--ariel-bg:#f3f5f7;--ariel-card:#fff;--ariel-text:#17202a;--ariel-muted:#66717d;--ariel-line:#dfe4e8;--ariel-accent:#173f5f;--ariel-accent-soft:#eaf1f6;--ariel-danger:#8f2f2f;--ariel-warning:#8a6514;--ariel-success:#2f6b4f}
body.toplevel_page_arielcorner #wpcontent{padding-left:0}body.toplevel_page_arielcorner #wpbody-content{padding-bottom:0}.ariel-wrap{margin:0}.ariel-app{min-height:calc(100vh - 32px);display:grid;grid-template-columns:245px minmax(0,1fr);background:var(--ariel-bg);color:var(--ariel-text)}
.ariel-sidebar{background:#112b40;color:#fff;padding:24px 16px;display:flex;flex-direction:column;min-height:calc(100vh - 32px);box-sizing:border-box}.ariel-brand{display:flex;gap:12px;align-items:center;padding:0 10px 25px;border-bottom:1px solid rgba(255,255,255,.13);margin-bottom:18px}.ariel-brand-mark{width:38px;height:38px;border-radius:11px;background:#fff;color:#112b40;display:grid;place-items:center;font-size:21px;font-weight:800}.ariel-brand strong,.ariel-brand small{display:block}.ariel-brand strong{font-size:16px}.ariel-brand small{font-size:11px;opacity:.72;margin-top:2px}.ariel-nav-item{display:flex;align-items:center;gap:11px;color:rgba(255,255,255,.78)!important;text-decoration:none;padding:10px 12px;border-radius:8px;margin:2px 0;font-weight:600}.ariel-nav-item:hover,.ariel-nav-item.is-active{background:rgba(255,255,255,.11);color:#fff!important}.ariel-nav-item .dashicons{font-size:18px;width:18px;height:18px}.ariel-sidebar-foot{margin-top:auto;padding:20px 10px 0;border-top:1px solid rgba(255,255,255,.13);font-size:12px;opacity:.72}
.ariel-main{min-width:0}.ariel-topbar{background:#fff;border-bottom:1px solid var(--ariel-line);padding:21px 30px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:32px;z-index:20}.ariel-topbar h1{margin:0;font-size:23px;line-height:1.2;color:var(--ariel-text)}.ariel-topbar p{margin:5px 0 0;color:var(--ariel-muted)}.ariel-user{padding:8px 12px;background:var(--ariel-bg);border-radius:999px;font-weight:600}.ariel-content{padding:28px 30px 50px;max-width:1500px}.ariel-loading,.ariel-error,.ariel-empty{background:#fff;border:1px solid var(--ariel-line);border-radius:12px;padding:35px;text-align:center;color:var(--ariel-muted)}.ariel-error strong,.ariel-empty strong{display:block;color:var(--ariel-text);font-size:18px}.ariel-error p,.ariel-empty p{margin:7px 0 15px}
.ariel-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.ariel-metric{background:#fff;border:1px solid var(--ariel-line);border-radius:12px;padding:19px}.ariel-metric span,.ariel-metric small{display:block;color:var(--ariel-muted)}.ariel-metric strong{display:block;font-size:31px;line-height:1;margin:10px 0}.ariel-grid{display:grid;gap:18px}.ariel-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ariel-card{background:var(--ariel-card);border:1px solid var(--ariel-line);border-radius:12px;padding:20px;box-shadow:0 1px 1px rgba(0,0,0,.02)}.ariel-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.ariel-card-head h2{margin:0;color:var(--ariel-text);font-size:18px}.ariel-card-head p{margin:5px 0 0;color:var(--ariel-muted)}.ariel-callout{background:var(--ariel-accent-soft);border-left:4px solid var(--ariel-accent);padding:12px 14px;border-radius:5px;color:#284356}.ariel-checklist{margin:0}.ariel-checklist li{margin:9px 0;padding-left:3px}.ariel-checklist li:before{content:'✓';font-weight:700;margin-right:8px;color:var(--ariel-success)}
.ariel-table-wrap{overflow:auto;border:1px solid var(--ariel-line);border-radius:9px}.ariel-table{border-collapse:collapse;width:100%;min-width:700px;background:#fff}.ariel-table th,.ariel-table td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--ariel-line);vertical-align:middle}.ariel-table th{background:#f7f8fa;color:#4c5965;font-size:12px;text-transform:uppercase;letter-spacing:.03em;position:sticky;top:0}.ariel-table tbody tr:last-child td{border-bottom:0}.ariel-table tbody tr:hover{background:#fafbfc}.ariel-actions-col{width:85px}.ariel-status{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef1f3;font-size:11px;font-weight:700;white-space:nowrap}.ariel-status-active,.ariel-status-paid,.ariel-status-resolved{color:var(--ariel-success);background:#e8f2ed}.ariel-status-urgent,.ariel-status-failed{color:var(--ariel-danger);background:#f7e9e9}.ariel-status-attention,.ariel-status-under_works{color:var(--ariel-warning);background:#f8f0d9}.ariel-status-information{color:#385b78;background:#eaf1f6}
.ariel-panel-backdrop{position:fixed;inset:0;background:rgba(15,28,39,.42);z-index:100000;display:flex;justify-content:flex-end}.ariel-panel{height:100%;width:min(620px,94vw);background:#fff;box-shadow:-8px 0 24px rgba(0,0,0,.15);overflow:auto}.ariel-panel-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 24px;border-bottom:1px solid var(--ariel-line);position:sticky;top:0;background:#fff;z-index:2}.ariel-panel-head h2{margin:0;font-size:21px}.ariel-panel-head p{margin:5px 0 0;color:var(--ariel-muted)}.ariel-icon-btn{border:0;background:#eef1f3;border-radius:8px;width:35px;height:35px;font-size:23px;cursor:pointer}.ariel-panel-form{padding:22px 24px 40px}.ariel-form{display:grid;gap:14px}.ariel-form label{display:grid;gap:6px;font-weight:600;color:#3b4650}.ariel-form input[type=text],.ariel-form input[type=search],.ariel-form input[type=email],.ariel-form input[type=number],.ariel-form input[type=date],.ariel-form input[type=datetime-local],.ariel-form select,.ariel-form textarea{width:100%;max-width:none;border:1px solid #cbd2d8;border-radius:7px;padding:8px 10px;box-shadow:none}.ariel-form textarea{min-height:100px;resize:vertical}.ariel-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ariel-form-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--ariel-line);padding-top:16px;margin-top:4px}.ariel-form-message{min-height:20px;color:var(--ariel-muted)}.ariel-form-message.is-error{color:var(--ariel-danger)}.ariel-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:7px!important;font-weight:400!important}.ariel-check-inline{margin-top:3px}.ariel-cap-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;max-height:360px;overflow:auto;padding:12px;border:1px solid var(--ariel-line);border-radius:8px}.ariel-form fieldset{border:0;padding:0;margin:0}.ariel-form legend{font-weight:700;margin-bottom:8px}.ariel-form small{color:var(--ariel-muted);font-weight:400}.ariel-role{border:1px solid var(--ariel-line);border-radius:8px;margin:10px 0;overflow:hidden}.ariel-role summary{cursor:pointer;padding:12px 14px;background:#f7f8fa;display:flex;justify-content:space-between;gap:15px}.ariel-role summary span{color:var(--ariel-muted);font-size:12px}.ariel-role-form{padding:15px}.ariel-kv{display:grid;gap:0}.ariel-kv>div{display:grid;grid-template-columns:220px 1fr;padding:11px 0;border-bottom:1px solid var(--ariel-line)}.ariel-kv dt{font-weight:700}.ariel-kv dd{margin:0;color:var(--ariel-muted)}
@media(max-width:1000px){.ariel-app{grid-template-columns:76px minmax(0,1fr)}.ariel-brand>div,.ariel-nav-item span:last-child,.ariel-sidebar-foot{display:none}.ariel-brand{padding-left:3px;padding-right:3px}.ariel-nav-item{justify-content:center}.ariel-metrics{grid-template-columns:repeat(2,1fr)}.ariel-grid-2,.ariel-grid-3{grid-template-columns:1fr}}@media(max-width:782px){.ariel-app{min-height:100vh}.ariel-sidebar{min-height:100vh}.ariel-topbar{top:46px;padding:16px}.ariel-content{padding:16px}.ariel-metrics{grid-template-columns:1fr 1fr}.ariel-form-row,.ariel-cap-grid{grid-template-columns:1fr}}@media(max-width:560px){.ariel-app{display:block}.ariel-sidebar{min-height:auto;padding:10px;position:relative}.ariel-brand,.ariel-sidebar-foot{display:none}.ariel-sidebar nav{display:flex;overflow:auto}.ariel-nav-item{min-width:44px}.ariel-topbar{position:static}.ariel-metrics{grid-template-columns:1fr}.ariel-card-head{flex-direction:column}.ariel-content{padding:12px}}
.ariel-panel-wide{width:min(880px,96vw)}.ariel-panel-body{padding:22px 24px 45px}.ariel-panel-body h3{margin:26px 0 10px}.ariel-panel-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 24px}.ariel-record-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--ariel-line)}.ariel-record-hero h3{font-size:24px;margin:4px 0}.ariel-record-hero p{margin:0;color:var(--ariel-muted)}.ariel-eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--ariel-muted)}.ariel-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.ariel-kpi-row>div{border:1px solid var(--ariel-line);border-radius:9px;padding:12px}.ariel-kpi-row span{display:block;color:var(--ariel-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.ariel-kpi-row strong{display:block;margin-top:5px;font-size:16px}.ariel-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border:1px solid var(--ariel-line);border-radius:8px;max-height:220px;overflow:auto}.ariel-subcard{border:1px solid var(--ariel-line);border-radius:10px;padding:14px;margin:10px 0;background:#fbfcfd}.ariel-subcard-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ariel-muted{color:var(--ariel-muted)}.ariel-status-due,.ariel-status-open,.ariel-status-expected,.ariel-status-draft,.ariel-status-in{color:#385b78;background:#eaf1f6}.ariel-status-overdue,.ariel-status-expired_action_required,.ariel-status-out{color:var(--ariel-danger);background:#f7e9e9}.ariel-status-partially_paid{color:var(--ariel-warning);background:#f8f0d9}.ariel-status-closed_renewed,.ariel-status-closed_tenant_left,.ariel-status-closed_transferred,.ariel-status-cancelled{color:#53606b;background:#eceff2}
@media(max-width:782px){.ariel-kpi-row,.ariel-choice-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.ariel-kpi-row,.ariel-choice-grid{grid-template-columns:1fr}}
.ariel-table-actions{display:flex;flex-wrap:wrap;gap:8px;margin:-8px 0 18px}.ariel-review-chip{margin:0 6px 6px 0}.ariel-status-confirmed,.ariel-status-high,.ariel-status-reconciled,.ariel-status-applied,.ariel-status-canonical,.ariel-status-reviewed_not_duplicate{color:var(--ariel-success);background:#e8f2ed}.ariel-status-medium,.ariel-status-suggested,.ariel-status-possible,.ariel-status-highly_likely,.ariel-status-partially_applied,.ariel-status-partially_reconciled{color:var(--ariel-warning);background:#f8f0d9}.ariel-status-low,.ariel-status-unidentified,.ariel-status-review_required,.ariel-status-exact,.ariel-status-exact_duplicate,.ariel-status-confirmed_duplicate,.ariel-status-unapplied{color:var(--ariel-danger);background:#f7e9e9}
.ariel-detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:0 0 18px;border-bottom:1px solid var(--ariel-line)}.ariel-detail-hero>div:first-child span,.ariel-detail-hero>div:first-child small{display:block;color:var(--ariel-muted)}.ariel-detail-hero>div:first-child strong{display:block;font-size:23px;margin:5px 0}.ariel-detail-hero>div:last-child{text-align:right;display:grid;gap:8px;justify-items:end}.ariel-detail-hero>div:last-child>strong{font-size:24px}.ariel-actions-row{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}.ariel-ce-allocation-grid{display:grid;gap:8px;border:1px solid var(--ariel-line);border-radius:9px;padding:10px;max-height:420px;overflow:auto}.ariel-ce-allocation-grid label{display:grid!important;grid-template-columns:minmax(0,1fr) 130px;align-items:center;gap:14px!important;padding:9px 10px;border-bottom:1px solid var(--ariel-line);font-weight:400!important}.ariel-ce-allocation-grid label:last-child{border-bottom:0}.ariel-ce-allocation-grid label span strong,.ariel-ce-allocation-grid label span small{display:block}.ariel-ce-allocation-grid label span small{margin-top:3px;color:var(--ariel-muted);font-weight:400}.ariel-ce-allocation-grid input{margin:0!important}.ariel-form input.is-invalid{border-color:var(--ariel-danger)!important;background:#fff6f6}.ariel-status-submitted{color:#385b78;background:#eaf1f6}.ariel-status-open,.ariel-status-outstanding{color:var(--ariel-warning);background:#f8f0d9}.ariel-status-settled{color:var(--ariel-success);background:#e8f2ed}
@media(max-width:600px){.ariel-detail-hero{display:block}.ariel-detail-hero>div:last-child{text-align:left;justify-items:start;margin-top:12px}.ariel-ce-allocation-grid label{grid-template-columns:1fr}}
.ariel-status-locked{color:#39424a;background:#e6e9ec}
/* Phase 5 status treatment */
.ariel-status-approved,.ariel-status-completed,.ariel-status-financially_settled,.ariel-status-current,.ariel-status-good,.ariel-status-new{color:var(--ariel-success);background:#e8f2ed}
.ariel-status-proposed,.ariel-status-in_progress,.ariel-status-in_storage,.ariel-status-under_repair,.ariel-status-due_soon,.ariel-status-fair,.ariel-status-not_started{color:var(--ariel-warning);background:#f8f0d9}
.ariel-status-out_of_service,.ariel-status-poor,.ariel-status-damaged,.ariel-status-missing_evidence{color:var(--ariel-danger);background:#f7e9e9}
.ariel-status-retired,.ariel-status-disposed,.ariel-status-replaced,.ariel-status-fully_depreciated,.ariel-status-partially_depreciated,.ariel-status-not_applicable{color:#53606b;background:#eceff2}

/* Phase 8 — Historical Migration */
.ariel-migration-upload { margin-top: 18px; }
.ariel-json-preview { max-height: 240px; overflow: auto; padding: 12px; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 6px; white-space: pre-wrap; word-break: break-word; }

/* RC3 — guided UX, setup navigation and help */
body.arielcorner_page_arielcorner-roles #wpcontent,body.arielcorner_page_arielcorner-access #wpcontent,body.arielcorner_page_arielcorner-system #wpcontent{padding-left:0}
.ariel-page-heading{display:flex;align-items:flex-start;gap:10px}.ariel-info-btn,.ariel-inline-info{display:inline-grid;place-items:center;border:1px solid #9fb2c2;background:#fff;color:var(--ariel-accent);border-radius:50%;font-weight:800;cursor:pointer;line-height:1}.ariel-info-btn{width:26px;height:26px;font-size:15px;margin-top:1px}.ariel-inline-info{width:20px;height:20px;font-size:12px;vertical-align:2px;margin-left:5px}.ariel-info-btn:hover,.ariel-inline-info:hover{background:var(--ariel-accent-soft)}
.ariel-help-backdrop{position:fixed;inset:0;background:rgba(15,28,39,.42);z-index:100100;display:flex;justify-content:flex-end}.ariel-help-panel{height:100%;width:min(520px,94vw);background:#fff;box-shadow:-8px 0 24px rgba(0,0,0,.15);overflow:auto}.ariel-help-body{padding:22px 24px 40px;font-size:15px;line-height:1.55}.ariel-help-body h3{margin:22px 0 7px}.ariel-help-body p{margin:0 0 14px}
.ariel-nav-group{margin:10px 0 0;border-top:1px solid rgba(255,255,255,.13);padding-top:9px}.ariel-nav-group>summary{display:flex;align-items:center;gap:11px;color:rgba(255,255,255,.78);padding:10px 12px;border-radius:8px;font-weight:700;cursor:pointer;list-style:none}.ariel-nav-group>summary::-webkit-details-marker{display:none}.ariel-nav-group>summary:hover{background:rgba(255,255,255,.08);color:#fff}.ariel-nav-group>summary .dashicons{font-size:18px;width:18px;height:18px}.ariel-nav-subitems{padding-left:8px}.ariel-nav-subitem{padding:8px 10px;font-size:12px}.ariel-nav-subitem .dashicons{font-size:15px;width:15px;height:15px}
.ariel-guide-card{border-left:4px solid var(--ariel-accent)}.ariel-warning{background:#fff7e7;border-left:4px solid #b78617;padding:12px 14px;border-radius:5px;color:#60480c}.ariel-step-list{list-style:none;counter-reset:arielstep;padding:0;margin:0;display:grid;gap:12px}.ariel-step-list li{counter-increment:arielstep;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 14px;align-items:center;padding:14px;border:1px solid var(--ariel-line);border-radius:9px}.ariel-step-list li:before{content:counter(arielstep);width:28px;height:28px;border-radius:50%;background:var(--ariel-accent);color:#fff;display:grid;place-items:center;font-weight:800;grid-row:1 / span 2}.ariel-step-list li strong{display:block}.ariel-step-list li span{grid-column:2;color:var(--ariel-muted)}.ariel-step-list li .button{grid-column:3;grid-row:1 / span 2;align-self:center}
.ariel-setup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ariel-setup-tile{display:block;text-decoration:none!important;border:1px solid var(--ariel-line);border-radius:10px;padding:16px;background:#fff;color:var(--ariel-text)!important}.ariel-setup-tile:hover{border-color:#a9bbc9;background:#f9fbfc}.ariel-setup-tile strong,.ariel-setup-tile span{display:block}.ariel-setup-tile span{margin-top:5px;color:var(--ariel-muted);font-size:12px;line-height:1.45}
.ariel-bank-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 14px}.ariel-bank-steps span{display:block;text-align:center;padding:10px 7px;border:1px solid var(--ariel-line);border-radius:8px;background:#f7f8fa;color:var(--ariel-muted);font-size:12px;font-weight:700}.ariel-bank-steps span.is-current{background:var(--ariel-accent-soft);color:var(--ariel-accent);border-color:#b8c9d6}.ariel-bank-steps span.is-done{background:#e8f2ed;color:var(--ariel-success);border-color:#bdd8ca}
.ariel-role-guide{margin-bottom:18px}.ariel-cap-section{border:1px solid var(--ariel-line);border-radius:9px;padding:12px}.ariel-cap-section h3{margin:0 0 8px;font-size:14px}.ariel-cap-friendly{display:block}.ariel-cap-friendly small{display:block;color:var(--ariel-muted);font-size:10px;margin-top:2px}
@media(max-width:1000px){.ariel-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-bank-steps{grid-template-columns:1fr 1fr}.ariel-nav-group>summary span:last-child{display:none}.ariel-nav-subitems{padding-left:0}}
@media(max-width:700px){.ariel-setup-grid{grid-template-columns:1fr}.ariel-step-list li{grid-template-columns:auto 1fr}.ariel-step-list li .button{grid-column:2;grid-row:auto;justify-self:start}.ariel-bank-steps{grid-template-columns:1fr}}

/* RC6 — Bank Matching Rules quick access */
.ariel-floating-tool{position:fixed;right:28px;bottom:28px;z-index:90;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #c3c4c7;border-radius:999px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.16);cursor:pointer;font-weight:600}
.ariel-floating-tool:hover,.ariel-floating-tool:focus{border-color:#2271b1;box-shadow:0 8px 28px rgba(0,0,0,.22)}
.ariel-floating-tool kbd{font-size:11px;font-weight:500;background:#f0f0f1;border:1px solid #dcdcde;border-bottom-width:2px;border-radius:4px;padding:2px 5px}
.ariel-rule-condition{margin-bottom:10px}
.ariel-error-text{color:#b32d2e;font-weight:600}
@media (max-width:782px){.ariel-floating-tool{right:12px;bottom:12px}.ariel-floating-tool kbd{display:none}}

/* RC7 — front-end Arielcorner application shortcode */
.ariel-shortcode-host{width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ariel-text)}
.ariel-shortcode-host .ariel-wrap{margin:0}.ariel-shortcode-host .ariel-app{min-height:100vh}.ariel-shortcode-host .ariel-sidebar{min-height:100vh}.ariel-shortcode-host .ariel-topbar{top:0}
.ariel-shortcode-host .button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 11px;border:1px solid #8c8f94;border-radius:4px;background:#f6f7f7;color:#2c3338!important;text-decoration:none!important;font-size:13px;line-height:2.15384615;cursor:pointer;box-sizing:border-box;white-space:nowrap}
.ariel-shortcode-host .button:hover,.ariel-shortcode-host .button:focus{background:#f0f0f1;border-color:#2271b1;color:#0a4b78!important;outline:none}.ariel-shortcode-host .button-primary{background:#2271b1;border-color:#2271b1;color:#fff!important}.ariel-shortcode-host .button-primary:hover,.ariel-shortcode-host .button-primary:focus{background:#135e96;border-color:#135e96;color:#fff!important}.ariel-shortcode-host .button-small{min-height:26px;padding:0 8px;font-size:11px}
.ariel-shortcode-host .notice{margin:16px 30px 0;padding:1px 12px;background:#fff;border:1px solid var(--ariel-line);border-left-width:4px;border-radius:4px}.ariel-shortcode-host .notice-success{border-left-color:var(--ariel-success)}.ariel-shortcode-host .notice-error{border-left-color:var(--ariel-danger)}
.ariel-shortcode-host .ariel-user{display:flex;align-items:center;gap:10px}.ariel-shortcode-host .ariel-logout{font-size:11px;font-weight:700;text-decoration:none;color:var(--ariel-accent)}
.ariel-shortcode-message{max-width:620px;margin:32px auto;padding:24px;background:#fff;border:1px solid var(--ariel-line);border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.ariel-shortcode-message strong{display:block;font-size:18px}.ariel-shortcode-message p{color:var(--ariel-muted)}
/* Break the app out of the narrow content column used by many themes. A Blank /
   Full Width page template remains recommended when the theme offers one. */
.arielcorner-frontend-page .ariel-shortcode-host{position:relative;left:50%;right:50%;width:100vw;max-width:100vw;margin-left:-50vw;margin-right:-50vw}
@media(max-width:782px){.ariel-shortcode-host .ariel-app,.ariel-shortcode-host .ariel-sidebar{min-height:100vh}.ariel-shortcode-host .ariel-topbar{top:0}.ariel-shortcode-host .notice{margin:12px 16px 0}}

.ariel-searchable-field{display:grid;gap:6px}.ariel-searchable-field>label{margin:0}.ariel-searchable-field select{margin-top:0}.ariel-choice-search{font-weight:400}.ariel-searchable-checks .ariel-choice-search{margin-bottom:8px}.ariel-searchable-checks .ariel-choice-grid{max-height:260px}

/* RC9 — quick inline editing for Setup & Configuration directories */
.ariel-row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.ariel-actions-col{width:150px}.ariel-inline-edit-row>td{background:#f7fafc!important;padding:0!important;border-bottom:1px solid var(--ariel-line)!important}.ariel-inline-edit-form{padding:16px 18px 18px;border-left:4px solid var(--ariel-accent);box-shadow:inset 0 1px 0 rgba(0,0,0,.02)}.ariel-inline-edit-head{display:flex;align-items:baseline;gap:10px;margin-bottom:4px}.ariel-inline-edit-head strong{font-size:14px}.ariel-inline-edit-head span{color:var(--ariel-muted);font-size:12px}.ariel-inline-edit-fields{display:grid;gap:12px}.ariel-inline-edit-form .ariel-form-actions{margin-top:2px}.ariel-inline-edit-form textarea{min-height:72px}
@media(max-width:782px){.ariel-inline-edit-head{display:block}.ariel-inline-edit-head span{display:block;margin-top:3px}.ariel-row-actions{min-width:118px}}

/* RC9 — dedicated full-screen front-end app page; theme header/footer/content chrome is bypassed. */
html:has(body.arielcorner-frontend-page),body.arielcorner-frontend-page{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;background:var(--ariel-bg)}
body.arielcorner-frontend-page .ariel-shortcode-host{left:auto;right:auto;width:100%;max-width:none;margin:0;padding:0}
body.arielcorner-frontend-page .ariel-content{max-width:none}

/* RC12 — Matching Rule library, grouping, coverage and usage intelligence */
.ariel-rule-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin:16px 0 20px;padding:14px;border:1px solid var(--ariel-line);border-radius:10px;background:#f9fbfc}.ariel-rule-filters label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#4c5965}.ariel-rule-filters input,.ariel-rule-filters select{width:100%;max-width:none}.ariel-rule-group{margin:18px 0 24px}.ariel-rule-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}.ariel-rule-group-head h3{margin:0;font-size:16px}.ariel-rule-group-head span{color:var(--ariel-muted);font-size:12px}.ariel-rule-coverage-result{margin-top:20px}.ariel-rule-coverage-choices h3{margin:0 0 6px}.ariel-rule-coverage-choices .ariel-subcard{margin:0}.ariel-rule-coverage-metrics{margin-top:18px}.ariel-rule-coverage-result h3{margin:24px 0 9px}.ariel-rule-coverage-result .ariel-table{min-width:760px}
@media(max-width:900px){.ariel-rule-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-rule-coverage-choices{grid-template-columns:1fr}}
@media(max-width:600px){.ariel-rule-filters{grid-template-columns:1fr}}

/* RC13 — exception-driven Bank review and existing-rule extension picker */
.ariel-rule-picker-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px 12px;margin:16px 0;padding:14px;border:1px solid var(--ariel-line);border-radius:10px;background:#f9fbfc}.ariel-rule-picker-filters label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#4c5965}.ariel-rule-picker-filters input,.ariel-rule-picker-filters select{width:100%;max-width:none}.ariel-rule-suggested-condition code{display:block;white-space:normal;overflow-wrap:anywhere;padding:8px 10px;background:#f4f6f8;border:1px solid var(--ariel-line);border-radius:6px;margin:8px 0}.ariel-row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
@media(max-width:900px){.ariel-rule-picker-filters{grid-template-columns:1fr}}

/* RC14 — intelligent Bank import workbench and bulk exception processing */
.ariel-status-classified{color:var(--ariel-success);background:#e8f2ed}
.ariel-import-readiness{border:1px solid var(--ariel-line);border-radius:12px;padding:16px 18px;margin:20px 0;background:#fbfcfd}.ariel-import-readiness .ariel-card-head{margin-bottom:10px}.ariel-import-readiness .ariel-card-head h3{margin:0}.ariel-readiness-percent{font-size:28px;color:var(--ariel-accent)}
.ariel-progress-track{height:10px;border-radius:999px;background:#e5e9ed;overflow:hidden;margin:8px 0 16px}.ariel-progress-track>span{display:block;height:100%;border-radius:inherit;background:var(--ariel-accent);transition:width .2s ease}
.ariel-kpi-row-5{grid-template-columns:repeat(5,minmax(0,1fr))}.ariel-import-actions{align-items:center}.ariel-import-actions small{flex:1 1 100%}
.ariel-bulk-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 10px}.ariel-bulk-toolbar small{color:var(--ariel-muted)}
.ariel-selected-patterns{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border:1px solid var(--ariel-line);border-radius:8px;background:#f8fafb}.ariel-selected-patterns code{max-width:100%;overflow-wrap:anywhere;white-space:normal;background:#eef2f5;border-radius:5px;padding:5px 7px}.ariel-selected-patterns small{align-self:center;color:var(--ariel-muted)}
.ariel-import-batch-summary{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:10px;margin:14px 0 18px}.ariel-import-batch-summary>div{border:1px solid var(--ariel-line);border-radius:9px;padding:11px;background:#fbfcfd}.ariel-import-batch-summary span{display:block;color:var(--ariel-muted);font-size:11px;text-transform:uppercase;letter-spacing:.03em}.ariel-import-batch-summary strong{display:block;margin-top:5px}.ariel-compact-heading{margin:18px 0 9px;font-size:15px}
@media(max-width:1000px){.ariel-kpi-row-5{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-import-batch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ariel-kpi-row-5,.ariel-import-batch-summary{grid-template-columns:1fr}}

/* RC15 — guided Bank import review lifecycle and safe exit/resume */
.ariel-panel-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ariel-workbench-safety{display:grid;gap:4px;padding:13px 15px;margin:0 0 14px;border:1px solid #bdd8ca;border-radius:10px;background:#f1f8f4;color:#315846}.ariel-workbench-safety strong{font-size:14px}.ariel-workbench-safety span{font-size:12px;line-height:1.45}.ariel-workbench-static-steps{margin-bottom:18px}.ariel-workbench-live-steps{margin:4px 0 14px}.ariel-workbench-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px 18px;margin:0 0 18px;border:2px solid #b8c9d6;border-radius:12px;background:var(--ariel-accent-soft)}.ariel-workbench-next strong{display:block;font-size:17px;color:var(--ariel-text);margin-top:3px}.ariel-workbench-next p{margin:6px 0 0;color:#4a5a67;max-width:720px}.ariel-workbench-next-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:360px}.ariel-workbench-context{display:grid;gap:4px;padding:12px 14px;border:1px solid #b8c9d6;border-radius:9px;background:var(--ariel-accent-soft);color:#334d61}.ariel-workbench-context strong{font-size:13px}.ariel-workbench-context span{font-size:12px;line-height:1.45}.ariel-rule-coverage-result h3[id]{scroll-margin-top:90px}.ariel-shortcode-host .button-link-delete{border-color:#b32d2e;color:#b32d2e!important;background:#fff}.ariel-shortcode-host .button-link-delete:hover,.ariel-shortcode-host .button-link-delete:focus{border-color:#8f2223;color:#8f2223!important;background:#fff7f7}
@media(max-width:900px){.ariel-workbench-next{grid-template-columns:1fr}.ariel-workbench-next-actions{justify-content:flex-start;max-width:none}.ariel-panel-head-actions .button{display:none}}
.ariel-bank-workspace-nav{border-left:4px solid var(--ariel-accent)}.ariel-bank-workspace-nav .ariel-card-head{margin-bottom:10px}.ariel-bank-workspace-nav .ariel-actions-row{margin-top:0}.ariel-content section[id^="bank-"]{scroll-margin-top:95px}

/* RC17 — Banking workspace tabs and disciplined action hierarchy */
.ariel-bank-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;position:sticky;top:108px;z-index:14;margin:0 0 18px;padding:8px;background:rgba(243,245,247,.96);border:1px solid var(--ariel-line);border-radius:11px;backdrop-filter:blur(8px)}
.ariel-bank-tabs button{appearance:none;border:0;background:transparent;color:#42505c;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;border-radius:8px;font-weight:700;cursor:pointer;white-space:nowrap}
.ariel-bank-tabs button:hover{background:#fff;color:var(--ariel-accent)}.ariel-bank-tabs button.is-active{background:var(--ariel-accent);color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.ariel-bank-tabs em{font-style:normal;font-size:10px;line-height:1;min-width:18px;padding:4px 6px;border-radius:999px;background:rgba(23,63,95,.09);color:#53606b;text-align:center}.ariel-bank-tabs button.is-active em{background:rgba(255,255,255,.18);color:#fff}.ariel-bank-tabs em.is-attention{background:#f8f0d9;color:var(--ariel-warning)}.ariel-bank-tabs button.is-active em.is-attention{background:#fff4ce;color:#6c4e0d}
.ariel-bank-view{display:none}.ariel-bank-view.is-active{display:block}.ariel-bank-view{min-height:360px}
.ariel-section-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.ariel-section-toolbar h2{margin:2px 0 0;font-size:19px;color:var(--ariel-text)}.ariel-section-toolbar p{margin:6px 0 0;color:var(--ariel-muted);max-width:820px}.ariel-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.ariel-bank-filterbar{display:grid;grid-template-columns:minmax(260px,2fr) repeat(4,minmax(145px,1fr));gap:9px;margin:0 0 12px;padding:12px;border:1px solid var(--ariel-line);border-radius:10px;background:#f9fbfc}.ariel-bank-filterbar label{display:grid;gap:5px;color:#4c5965;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}.ariel-bank-filterbar input,.ariel-bank-filterbar select{width:100%;max-width:none;margin:0;text-transform:none;letter-spacing:0;font-weight:400}.ariel-bank-list-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin:0 0 8px;color:var(--ariel-muted);font-size:12px}.ariel-pagination{display:flex;align-items:center;gap:8px;white-space:nowrap}.ariel-pagination span{font-weight:700;color:#53606b}
.ariel-action-menu{position:relative;display:inline-block;margin:0}.ariel-action-menu>summary{list-style:none;display:inline-flex!important;align-items:center;gap:5px;cursor:pointer}.ariel-action-menu>summary::-webkit-details-marker{display:none}.ariel-action-menu-popover{position:absolute;right:0;top:calc(100% + 5px);z-index:40;min-width:175px;padding:6px;background:#fff;border:1px solid var(--ariel-line);border-radius:8px;box-shadow:0 8px 24px rgba(15,28,39,.16)}.ariel-action-menu-item{display:block;width:100%;border:0;background:transparent;text-align:left;padding:8px 9px;border-radius:5px;color:#2c3338;cursor:pointer;font-size:12px}.ariel-action-menu-item:hover,.ariel-action-menu-item:focus{background:#f2f5f7;color:var(--ariel-accent);outline:none}.ariel-action-menu-danger{color:var(--ariel-danger);border-top:1px solid var(--ariel-line);border-radius:0;margin-top:3px;padding-top:9px}.ariel-action-menu-danger:hover,.ariel-action-menu-danger:focus{background:#fff4f4;color:#7b2424}
.ariel-bank-view .ariel-table th{top:0}.ariel-bank-view .ariel-table-wrap{max-height:66vh}.ariel-bank-view .ariel-table-wrap .ariel-table th{z-index:1}
@media(max-width:1150px){.ariel-bank-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}.ariel-bank-filterbar .ariel-filter-search{grid-column:span 2}}
@media(max-width:782px){.ariel-bank-tabs{top:0;position:relative}.ariel-section-toolbar{display:grid;grid-template-columns:1fr}.ariel-section-actions{justify-content:flex-start}.ariel-bank-filterbar{grid-template-columns:1fr 1fr}.ariel-bank-filterbar .ariel-filter-search{grid-column:1/-1}.ariel-bank-list-meta{align-items:flex-start;flex-direction:column}.ariel-bank-view .ariel-table-wrap{max-height:none}}
@media(max-width:560px){.ariel-bank-filterbar{grid-template-columns:1fr}.ariel-bank-filterbar .ariel-filter-search{grid-column:auto}}
.ariel-shortcode-host .ariel-bank-tabs{top:84px}
@media(max-width:782px){.ariel-shortcode-host .ariel-bank-tabs{top:0}}
.ariel-table .ariel-action-menu-popover{position:static;margin-top:5px;box-shadow:none;min-width:150px}.ariel-table .ariel-action-menu[open]{vertical-align:top}

/* RC18 — Expense Type directory intelligence */
.ariel-directory-count{align-self:flex-start;display:inline-flex;align-items:center;padding:5px 9px;border:1px solid var(--ariel-line);border-radius:999px;background:#f7f9fa;color:var(--ariel-muted);font-size:12px;font-weight:700;white-space:nowrap}
.ariel-directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-6px 0 12px}.ariel-expense-type-group{margin:12px 0 16px;border:1px solid var(--ariel-line);border-radius:10px;background:#fff;overflow:hidden}.ariel-expense-type-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;background:#f7f9fa;cursor:pointer;font-weight:800;list-style:none}.ariel-expense-type-group>summary::-webkit-details-marker{display:none}.ariel-expense-type-group>summary:before{content:'▾';font-size:12px;margin-right:8px}.ariel-expense-type-group:not([open])>summary:before{content:'▸'}.ariel-expense-type-group>summary span{flex:1}.ariel-expense-type-group>summary small{color:var(--ariel-muted);font-size:12px;font-weight:700}.ariel-expense-type-group .ariel-table-wrap{margin:0;border:0;border-top:1px solid var(--ariel-line);border-radius:0}.ariel-expense-type-group .ariel-table{margin:0}
@media(max-width:700px){.ariel-directory-toolbar{align-items:flex-start;flex-direction:column}.ariel-directory-toolbar .ariel-row-actions{width:100%}}

/* RC21 — live Common Expense workspace */
.ariel-ce-workspace-nav{border-left:4px solid var(--ariel-accent)}
.ariel-ce-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;position:sticky;top:108px;z-index:14;margin:0 0 18px;padding:8px;background:rgba(243,245,247,.96);border:1px solid var(--ariel-line);border-radius:11px;backdrop-filter:blur(8px)}
.ariel-ce-tabs button{appearance:none;border:0;background:transparent;color:#42505c;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;border-radius:8px;font-weight:700;cursor:pointer;white-space:nowrap}
.ariel-ce-tabs button:hover{background:#fff;color:var(--ariel-accent)}.ariel-ce-tabs button.is-active{background:var(--ariel-accent);color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.ariel-ce-tabs em{font-style:normal;font-size:10px;line-height:1;min-width:18px;padding:4px 6px;border-radius:999px;background:rgba(23,63,95,.09);color:#53606b;text-align:center}.ariel-ce-tabs button.is-active em{background:rgba(255,255,255,.18);color:#fff}.ariel-ce-tabs em.is-attention{background:#f8f0d9;color:var(--ariel-warning)}.ariel-ce-tabs button.is-active em.is-attention{background:#fff4ce;color:#6c4e0d}
.ariel-ce-view{display:none;min-height:360px}.ariel-ce-view.is-active{display:block}.ariel-ce-view .ariel-table-wrap{max-height:66vh}.ariel-ce-view .ariel-table th{top:0;z-index:1}
.ariel-ce-filterbar{display:grid;grid-template-columns:minmax(260px,2fr) repeat(4,minmax(145px,1fr));gap:9px;margin:0 0 12px;padding:12px;border:1px solid var(--ariel-line);border-radius:10px;background:#f9fbfc}.ariel-ce-filterbar label{display:grid;gap:5px;color:#4c5965;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}.ariel-ce-filterbar input,.ariel-ce-filterbar select{width:100%;max-width:none;margin:0;text-transform:none;letter-spacing:0;font-weight:400}
.ariel-action-menu-popover a.ariel-action-menu-item{text-decoration:none;box-sizing:border-box}
@media(max-width:1150px){.ariel-ce-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}.ariel-ce-filterbar .ariel-filter-search{grid-column:span 2}}
@media(max-width:782px){.ariel-ce-tabs{top:0;position:relative}.ariel-ce-filterbar{grid-template-columns:1fr 1fr}.ariel-ce-filterbar .ariel-filter-search{grid-column:1/-1}.ariel-ce-view .ariel-table-wrap{max-height:none}}
@media(max-width:560px){.ariel-ce-filterbar{grid-template-columns:1fr}.ariel-ce-filterbar .ariel-filter-search{grid-column:auto}}
.ariel-shortcode-host .ariel-ce-tabs{top:84px}@media(max-width:782px){.ariel-shortcode-host .ariel-ce-tabs{top:0}}

/* RC23 — reconciliation, manual Bank assignment memory and management reporting */
.ariel-manual-assignment-note{border-left:4px solid var(--ariel-accent)}
.ariel-report-dashboard{border-left:4px solid var(--ariel-accent)}
.ariel-report-dashboard .ariel-actions-row{margin-top:14px;align-items:center;gap:7px;flex-wrap:wrap}
.ariel-report-dashboard .ariel-actions-row>strong{margin-right:4px;color:var(--ariel-text)}
#bank-reconciliation .ariel-table-wrap{max-height:42vh}
@media print{
  /* RC57 — report-safe printing.
     Button-driven printing marks one explicit target; Ctrl/Cmd+P falls back to
     the central report output or the currently visible embedded module report. */
  body.ariel-print-report *{visibility:hidden!important}
  body.ariel-print-report .ariel-print-target,body.ariel-print-report .ariel-print-target *{visibility:visible!important}
  body.ariel-print-report .ariel-print-target{position:absolute!important;left:0!important;top:0!important;width:100%!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:#fff!important}
  body.ariel-print-report .ariel-print-target .ariel-table-wrap{overflow:visible!important;max-height:none!important}
  body.ariel-print-report .ariel-print-target .ariel-table{font-size:10pt!important}

  body:not(.ariel-print-report) *{visibility:hidden!important}
  body:not(.ariel-print-report) #report-output,body:not(.ariel-print-report) #report-output *,body:not(.ariel-print-report) .ariel-module-report-output,body:not(.ariel-print-report) .ariel-module-report-output *{visibility:visible!important}
  body:not(.ariel-print-report) #report-output,body:not(.ariel-print-report) .ariel-module-report-output{position:absolute!important;left:0!important;top:0!important;width:100%!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:#fff!important}
  body:not(.ariel-print-report) #report-output .ariel-table-wrap,body:not(.ariel-print-report) .ariel-module-report-output .ariel-table-wrap{overflow:visible!important;max-height:none!important}
  body:not(.ariel-print-report) #report-output .ariel-table,body:not(.ariel-print-report) .ariel-module-report-output .ariel-table{font-size:10pt!important}
}

/* RC28 permanent Bank classification backlog */
.ariel-backlog-years{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:14px 0 18px}.ariel-backlog-year{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 14px;border:1px solid #d7dee5;border-radius:10px;background:#fff;cursor:pointer;text-align:left}.ariel-backlog-year:hover,.ariel-backlog-year:focus-visible{border-color:#486b52;box-shadow:0 0 0 2px rgba(72,107,82,.08)}.ariel-backlog-year.is-current{border-color:#486b52}.ariel-backlog-year span{font-weight:700}.ariel-backlog-year strong{font-size:1.45rem;line-height:1}.ariel-backlog-year small{color:#667382}.ariel-backlog-filterbar{align-items:end}

/* RC30 — guided Bank Import and explanatory statistics */
.ariel-bank-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
.ariel-stat-info{margin-left:4px;vertical-align:0;transform:translateY(-1px)}
.ariel-metric>span,.ariel-kpi-row>div>span,.ariel-import-batch-summary>div>span,.ariel-import-validation-stats>div>span{display:flex;align-items:center;gap:4px}
.ariel-active-import-label{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#f8f0d9;color:#72551d;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ariel-import-idle,.ariel-import-active-head{border:1px solid var(--ariel-line);border-radius:10px;padding:16px;margin:14px 0;background:#fbfcfd}
.ariel-import-idle{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ariel-import-idle strong,.ariel-import-active-head strong{display:block;font-size:16px;margin-top:5px;color:var(--ariel-text)}
.ariel-import-idle p,.ariel-import-active-head p{margin:6px 0 0;color:var(--ariel-muted)}
.ariel-inline-import-form{border:1px solid var(--ariel-line);border-radius:10px;padding:16px;margin:0 0 18px;background:#fff}
.ariel-inline-import-form>label{display:block;margin-bottom:14px;font-weight:700;color:var(--ariel-text)}
.ariel-inline-import-form>label input[type=file]{display:block;width:100%;margin-top:7px;padding:11px;border:1px solid var(--ariel-line);border-radius:7px;background:#fbfcfd}
.ariel-required{color:var(--ariel-danger)}
.ariel-next-action{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:14px;border:1px solid #b8c9d6;border-radius:9px;background:var(--ariel-accent-soft)}
.ariel-next-action strong{display:block;margin:3px 0;color:var(--ariel-text);font-size:15px}.ariel-next-action p{margin:0;color:var(--ariel-muted);max-width:760px}
.ariel-next-action .button-primary{flex:0 0 auto}
.ariel-import-validation-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.ariel-import-validation-stats>div{border:1px solid var(--ariel-line);border-radius:9px;padding:12px;background:#fbfcfd}
.ariel-import-validation-stats span{color:var(--ariel-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.ariel-import-validation-stats strong{display:block;margin-top:6px;font-size:18px;color:var(--ariel-text)}
.ariel-import-validation-stats small{display:block;margin-top:4px;color:var(--ariel-muted)}
.ariel-success-note{margin:12px 0;padding:11px 13px;border:1px solid #bdd8ca;border-radius:7px;background:#e8f2ed;color:#315d45}
.ariel-latest-import{margin:20px 0;padding-top:18px;border-top:1px solid var(--ariel-line)}
.ariel-subsection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.ariel-subsection-heading h3{margin:0;font-size:16px}.ariel-subsection-heading p{margin:5px 0 0;color:var(--ariel-muted)}
.ariel-import-batch-summary-detailed{grid-template-columns:repeat(5,minmax(0,1fr))}
.ariel-import-batch-summary-detailed small{display:block;margin-top:4px;color:var(--ariel-muted)}
@media(max-width:1100px){.ariel-import-validation-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-import-batch-summary-detailed{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ariel-next-action,.ariel-subsection-heading{align-items:stretch;flex-direction:column}.ariel-next-action .button-primary{width:100%}.ariel-import-validation-stats,.ariel-import-batch-summary-detailed{grid-template-columns:1fr}}

/* RC32 fast Classification Review */
.ariel-backlog-year em{font-style:normal;font-size:12px;font-weight:800;color:#2f5a3d;margin-top:5px}.ariel-backlog-year strong{font-size:1.2rem}.ariel-rule-run-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:14px 0}.ariel-rule-run-summary>div{position:relative;border:1px solid var(--ariel-line);border-radius:9px;background:#fff;padding:12px 14px}.ariel-rule-run-summary span{display:block;color:var(--ariel-muted);font-size:12px;font-weight:700}.ariel-rule-run-summary strong{display:block;font-size:1.45rem;margin-top:3px}.ariel-rule-run-summary .ariel-inline-info{position:absolute;right:8px;top:8px}.ariel-rule-run-result{margin:8px 0 14px;min-height:0}.ariel-rule-run-result.is-running,.ariel-rule-run-result.is-done,.ariel-rule-run-result.is-error{padding:10px 12px;border-radius:8px;border:1px solid var(--ariel-line);background:#f8faf9}.ariel-rule-run-result.is-error{background:#fff3f3;border-color:#e5b9b9}.ariel-backlog-bulk{position:sticky;top:48px;z-index:4;background:#fff;border:1px solid var(--ariel-line);border-radius:9px;padding:9px 10px;margin:10px 0;box-shadow:0 3px 12px rgba(28,40,33,.06)}.ariel-backlog-audit-table .ariel-table-wrap{max-height:68vh;overflow:auto}.ariel-backlog-audit-table .ariel-table{min-width:3300px}.ariel-backlog-audit-table .ariel-table th,.ariel-backlog-audit-table .ariel-table td{vertical-align:top;white-space:nowrap}.ariel-backlog-audit-table .ariel-table td:nth-child(8){white-space:normal;min-width:260px;max-width:360px}.ariel-rule-check{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.ariel-rule-check-matched{background:#e8f2ed;color:#27613d}.ariel-rule-check-no_match{background:#fff1d9;color:#805600}.ariel-rule-check-not_checked{background:#eef1f3;color:#53606a}.ariel-rule-check-manual{background:#eaf1f6;color:#385b78}.ariel-rule-why{margin-left:5px}.ariel-backlog-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:330px}
@media(max-width:1100px){.ariel-rule-run-summary{grid-template-columns:1fr 1fr}}@media(max-width:782px){.ariel-rule-run-summary{grid-template-columns:1fr}.ariel-backlog-bulk{position:relative;top:auto}.ariel-backlog-audit-table .ariel-table-wrap{max-height:none}}

/* RC32 import-complete action clarity */
.ariel-next-action-buttons{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;flex:0 0 auto}
@media(max-width:700px){.ariel-next-action-buttons{width:100%;justify-content:stretch}.ariel-next-action-buttons .button{flex:1 1 auto}}

/* RC33 — Professional Banking workspace */
.ariel-content.ariel-bank-content-wide{max-width:none;padding-left:18px;padding-right:18px}
.ariel-list-workspace{padding:14px 16px}
.ariel-list-workspace .ariel-section-toolbar-compact{margin-bottom:10px;align-items:center}
.ariel-list-workspace .ariel-section-toolbar-compact p{margin-top:3px;font-size:12px;max-width:720px}
.ariel-list-summary-strip{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin:6px 0 9px;padding:7px 10px;border:1px solid var(--ariel-line);border-radius:7px;background:#f8fafb;color:#53606b;font-size:12px}
.ariel-list-summary-strip span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.ariel-list-summary-strip strong{font-size:14px;color:var(--ariel-text)}.ariel-list-summary-strip .ariel-summary-secondary{color:var(--ariel-muted)}
.ariel-list-toolbar{display:flex;align-items:end;gap:7px;flex-wrap:wrap;margin:0 0 7px;padding:6px 7px;border:1px solid var(--ariel-line);border-radius:7px;background:#fbfcfd}
.ariel-list-toolbar>label{display:grid;gap:2px;min-width:125px;color:#5a6671;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.ariel-list-toolbar>.ariel-filter-search{flex:1 1 260px;min-width:220px}.ariel-list-toolbar input,.ariel-list-toolbar select{min-height:31px;width:100%;max-width:none;margin:0;font-size:12px;text-transform:none;letter-spacing:0;font-weight:400}
.ariel-compact-filters{position:relative;align-self:end}.ariel-compact-filters>summary{list-style:none;cursor:pointer;min-height:31px;display:inline-flex;align-items:center}.ariel-compact-filters>summary::-webkit-details-marker{display:none}.ariel-compact-filter-popover{position:absolute;right:0;top:calc(100% + 5px);z-index:25;display:grid;grid-template-columns:repeat(2,minmax(170px,1fr));gap:8px;width:min(460px,82vw);padding:10px;background:#fff;border:1px solid var(--ariel-line);border-radius:8px;box-shadow:0 12px 28px rgba(23,32,42,.13)}.ariel-compact-filter-popover label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#5a6671;text-transform:uppercase}.ariel-compact-filter-popover input,.ariel-compact-filter-popover select{width:100%;max-width:none;text-transform:none;font-weight:400}
.ariel-backlog-years{display:flex;gap:6px;overflow-x:auto;margin:7px 0 9px;padding-bottom:2px}.ariel-backlog-year{flex:0 0 auto;min-width:86px;padding:7px 10px;gap:1px;border-radius:7px}.ariel-backlog-year span{font-size:11px}.ariel-backlog-year strong{font-size:15px!important}.ariel-backlog-year small,.ariel-backlog-year em{display:none}
.ariel-backlog-audit-table .ariel-table-wrap{max-height:calc(100vh - 330px);min-height:330px;overflow:auto}.ariel-backlog-audit-table .ariel-table{min-width:1450px;table-layout:fixed}.ariel-backlog-audit-table .ariel-table th,.ariel-backlog-audit-table .ariel-table td{padding:7px 8px;vertical-align:middle;white-space:nowrap;font-size:12px}.ariel-backlog-audit-table .ariel-table td:nth-child(4){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ariel-backlog-audit-table .ariel-table td:nth-child(8){white-space:nowrap;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis}.ariel-backlog-actions{min-width:0;flex-wrap:nowrap}
.ariel-record-link{appearance:none;border:0;background:none;padding:0;color:#1f5c82;text-decoration:underline;text-underline-offset:2px;font:inherit;font-weight:700;cursor:pointer}.ariel-record-link:hover,.ariel-record-link:focus-visible{color:#0e3f61;text-decoration-thickness:2px}
.ariel-bank-description{display:block;max-width:440px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-icon-actions{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.ariel-icon-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;padding:0;border:1px solid #cad3da;border-radius:6px;background:#fff;color:#3d5669;cursor:pointer}.ariel-icon-action:hover,.ariel-icon-action:focus-visible{border-color:#7290a6;background:#edf4f8;color:#173f5f}.ariel-icon-action.is-primary{background:#edf5ef;border-color:#9ab8a4;color:#2f6b4f}.ariel-icon-action.is-danger{color:#8f2f2f}.ariel-icon-action .dashicons{font-size:16px;width:16px;height:16px}
.ariel-bank-statement .ariel-table-wrap{max-height:calc(100vh - 290px);min-height:380px;overflow:auto;border-radius:5px}.ariel-bank-statement .ariel-table{min-width:820px;table-layout:fixed;font-variant-numeric:tabular-nums}.ariel-bank-statement .ariel-table th,.ariel-bank-statement .ariel-table td{padding:7px 9px;font-size:12px;white-space:nowrap}.ariel-bank-statement .ariel-table th{font-size:10px;letter-spacing:.045em;background:#f4f6f7}.ariel-bank-statement .ariel-table th:nth-child(1),.ariel-bank-statement .ariel-table td:nth-child(1){width:92px}.ariel-bank-statement .ariel-table th:nth-child(2),.ariel-bank-statement .ariel-table td:nth-child(2){width:auto}.ariel-bank-statement .ariel-table th:nth-child(3),.ariel-bank-statement .ariel-table td:nth-child(3){width:175px}.ariel-bank-statement .ariel-table th:nth-child(4),.ariel-bank-statement .ariel-table td:nth-child(4),.ariel-bank-statement .ariel-table th:nth-child(5),.ariel-bank-statement .ariel-table td:nth-child(5),.ariel-bank-statement .ariel-table th:nth-child(6),.ariel-bank-statement .ariel-table td:nth-child(6){width:118px;text-align:right}.ariel-bank-statement-group{margin:0 0 12px}.ariel-bank-statement-group>h3{position:sticky;top:0;z-index:3;margin:0;padding:6px 9px;border:1px solid var(--ariel-line);border-bottom:0;background:#eaf0f3;font-size:12px}
.ariel-rule-inline-list .ariel-table-wrap{max-height:calc(100vh - 310px);min-height:330px;overflow:auto}.ariel-rule-inline-list .ariel-table{min-width:1050px;table-layout:fixed}.ariel-rule-inline-list .ariel-table th,.ariel-rule-inline-list .ariel-table td{padding:7px 8px;font-size:12px}.ariel-rule-inline-list .ariel-table td:nth-child(1),.ariel-rule-inline-list .ariel-table td:nth-child(2){white-space:normal}.ariel-rule-summary-text{line-height:1.3}
.ariel-rule-condition{display:grid;grid-template-columns:minmax(145px,.8fr) minmax(175px,1fr) minmax(230px,2fr) 32px;gap:6px;align-items:center;margin:0 0 6px}.ariel-rule-condition select,.ariel-rule-condition input{width:100%;max-width:none;margin:0}.ariel-rule-builder{margin:12px 0;padding:11px;border:1px solid var(--ariel-line);border-radius:8px}.ariel-rule-builder legend,.ariel-rule-assignment legend{padding:0 5px;font-weight:800}.ariel-rule-builder-tip{display:block;margin:0 0 8px;color:var(--ariel-muted)}.ariel-rule-builder-tip code{font-size:11px}.ariel-rule-assignment{margin:12px 0;padding:11px;border:1px solid var(--ariel-line);border-radius:8px}.ariel-rule-target-line{display:flex;align-items:center;gap:7px 15px;flex-wrap:wrap;margin-bottom:8px}.ariel-rule-target-line label{display:inline-flex;align-items:center;gap:5px;margin:0;font-weight:600}.ariel-rule-target-label{font-weight:800;color:#4c5965}.ariel-rule-target-picker{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(280px,1.5fr);gap:7px}.ariel-rule-target-picker input,.ariel-rule-target-picker select{width:100%;max-width:none}
.ariel-panel-wide{width:min(1020px,97vw)}.ariel-record-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:12px 0}.ariel-record-section{margin:14px 0;padding:12px 14px;border:1px solid var(--ariel-line);border-radius:8px;background:#fff}.ariel-record-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.ariel-record-section-head h3{margin:0!important;font-size:15px}.ariel-record-section-head span{color:var(--ariel-muted);font-size:11px}.ariel-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 14px;margin:0}.ariel-source-grid>div{min-width:0;padding-bottom:6px;border-bottom:1px solid #eef1f3}.ariel-source-grid>div.is-wide{grid-column:1/-1}.ariel-source-grid dt{color:#69747e;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.ariel-source-grid dd{margin:2px 0 0;color:var(--ariel-text);word-break:break-word}.ariel-record-history{margin:12px 0}.ariel-record-history>summary{cursor:pointer;font-weight:700}.ariel-rule-source-line{margin:0 0 10px;padding:8px 10px;background:#f6f8f9;border:1px solid var(--ariel-line);border-radius:6px}
@media(max-width:1100px){.ariel-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-backlog-audit-table .ariel-table{min-width:1320px}.ariel-bank-statement .ariel-table{min-width:760px}}
@media(max-width:782px){.ariel-content.ariel-bank-content-wide{padding-left:10px;padding-right:10px}.ariel-list-workspace{padding:10px}.ariel-list-toolbar{align-items:stretch}.ariel-list-toolbar>label{min-width:calc(50% - 5px);flex:1 1 160px}.ariel-list-toolbar>.ariel-filter-search{min-width:100%;flex-basis:100%}.ariel-compact-filter-popover{position:fixed;left:12px;right:12px;top:120px;width:auto;grid-template-columns:1fr;max-height:70vh;overflow:auto}.ariel-backlog-audit-table .ariel-table-wrap,.ariel-bank-statement .ariel-table-wrap,.ariel-rule-inline-list .ariel-table-wrap{max-height:none;min-height:0}.ariel-source-grid{grid-template-columns:1fr}.ariel-source-grid>div.is-wide{grid-column:auto}.ariel-rule-condition{grid-template-columns:1fr}.ariel-rule-condition .ariel-icon-action{justify-self:end}.ariel-rule-target-picker{grid-template-columns:1fr}.ariel-panel-wide{width:100vw}.ariel-record-section-head{align-items:flex-start;flex-direction:column}}
.ariel-one-line{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* RC33 Classification Review: one row, one line, desktop-first compact widths */
.ariel-backlog-audit-table .ariel-table{min-width:1240px}
.ariel-backlog-audit-table .ariel-table th:nth-child(1),.ariel-backlog-audit-table .ariel-table td:nth-child(1){width:32px}
.ariel-backlog-audit-table .ariel-table th:nth-child(2),.ariel-backlog-audit-table .ariel-table td:nth-child(2){width:82px}
.ariel-backlog-audit-table .ariel-table th:nth-child(3),.ariel-backlog-audit-table .ariel-table td:nth-child(3){width:120px;overflow:hidden;text-overflow:ellipsis}
.ariel-backlog-audit-table .ariel-table th:nth-child(4),.ariel-backlog-audit-table .ariel-table td:nth-child(4){width:260px}
.ariel-backlog-audit-table .ariel-table th:nth-child(5),.ariel-backlog-audit-table .ariel-table td:nth-child(5){width:130px;overflow:hidden;text-overflow:ellipsis}
.ariel-backlog-audit-table .ariel-table th:nth-child(6),.ariel-backlog-audit-table .ariel-table td:nth-child(6),.ariel-backlog-audit-table .ariel-table th:nth-child(7),.ariel-backlog-audit-table .ariel-table td:nth-child(7){width:88px;text-align:right}
.ariel-backlog-audit-table .ariel-table th:nth-child(8),.ariel-backlog-audit-table .ariel-table td:nth-child(8){width:190px}
.ariel-backlog-audit-table .ariel-table th:nth-child(9),.ariel-backlog-audit-table .ariel-table td:nth-child(9){width:115px}
.ariel-backlog-audit-table .ariel-table th:nth-child(10),.ariel-backlog-audit-table .ariel-table td:nth-child(10){width:155px;overflow:hidden;text-overflow:ellipsis}
.ariel-backlog-audit-table .ariel-table th:nth-child(11),.ariel-backlog-audit-table .ariel-table td:nth-child(11){width:125px}


/* RC34 — workspace account defaults and compact registers */
.ariel-account-defaults{margin:14px 0;padding:12px 14px;border:1px solid var(--ariel-line);border-radius:8px;background:#fbfcfd}.ariel-account-defaults legend{padding:0 5px;font-weight:800}.ariel-account-default-line{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.ariel-account-default-line>label{margin:0}.ariel-account-defaults small{display:block;margin-top:7px;color:var(--ariel-muted)}
.ariel-mini-tag{display:inline-flex;align-items:center;margin:0 5px 3px 0;padding:3px 7px;border:1px solid #bdcbd3;border-radius:999px;background:#f5f8fa;color:#36546a;font-size:10px;font-weight:800;white-space:nowrap}
@media(max-width:782px){.ariel-account-default-line{display:grid;grid-template-columns:1fr;gap:4px}}

/* RC35 — compact BANK / Transactions statement browsers */
.ariel-browser-main{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.ariel-browser-tag{display:inline-block;margin-left:4px;padding:1px 5px;border:1px solid #c7d1d8;border-radius:999px;background:#f5f8fa;color:#52636f;font-size:9px;font-style:normal;font-weight:800;line-height:1.2;vertical-align:1px}.ariel-browser-tag.is-hint{border-style:dashed}.ariel-browser-icon{display:inline-flex;width:14px;height:14px;margin-left:4px;align-items:center;justify-content:center;color:#6f7d86;vertical-align:-2px;opacity:.78}.ariel-browser-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.ariel-browser-icon-hint{opacity:.58}.ariel-browser-description{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-bank-statement .ariel-table,.ariel-transaction-register .ariel-table{width:100%;min-width:900px;table-layout:fixed}.ariel-bank-statement .ariel-table th,.ariel-bank-statement .ariel-table td,.ariel-transaction-register .ariel-table th,.ariel-transaction-register .ariel-table td{padding:7px 10px;vertical-align:middle}.ariel-bank-statement .ariel-table th:nth-child(1),.ariel-bank-statement .ariel-table td:nth-child(1),.ariel-transaction-register .ariel-table th:nth-child(2),.ariel-transaction-register .ariel-table td:nth-child(2){width:92px}.ariel-bank-statement .ariel-table th:nth-child(2),.ariel-bank-statement .ariel-table td:nth-child(2){width:29%}.ariel-bank-statement .ariel-table th:nth-child(3),.ariel-bank-statement .ariel-table td:nth-child(3){width:17%}.ariel-bank-statement .ariel-table th:nth-child(4),.ariel-bank-statement .ariel-table td:nth-child(4){width:17%}.ariel-bank-statement .ariel-table th:nth-child(5),.ariel-bank-statement .ariel-table td:nth-child(5),.ariel-bank-statement .ariel-table th:nth-child(6),.ariel-bank-statement .ariel-table td:nth-child(6),.ariel-bank-statement .ariel-table th:nth-child(7),.ariel-bank-statement .ariel-table td:nth-child(7){width:11%;text-align:right;white-space:nowrap}.ariel-transaction-register .ariel-table th:nth-child(1),.ariel-transaction-register .ariel-table td:nth-child(1){width:34px}.ariel-transaction-register .ariel-table th:nth-child(3),.ariel-transaction-register .ariel-table td:nth-child(3){width:30%}.ariel-transaction-register .ariel-table th:nth-child(4),.ariel-transaction-register .ariel-table td:nth-child(4){width:17%}.ariel-transaction-register .ariel-table th:nth-child(5),.ariel-transaction-register .ariel-table td:nth-child(5){width:17%}.ariel-transaction-register .ariel-table th:nth-child(6),.ariel-transaction-register .ariel-table td:nth-child(6),.ariel-transaction-register .ariel-table th:nth-child(7),.ariel-transaction-register .ariel-table td:nth-child(7){width:11%;text-align:right;white-space:nowrap}.ariel-transaction-register .ariel-table th:nth-child(8),.ariel-transaction-register .ariel-table td:nth-child(8){width:110px}

/* RC37 — focused Common Expense import */
.ariel-ce-import-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}.ariel-ce-import-toolbar label{display:grid;gap:4px;min-width:240px;margin:0}.ariel-ce-import-toolbar label span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--ariel-muted)}.ariel-ce-import-toolbar select{min-width:240px}.ariel-ce-issue-summary{display:grid;gap:6px;margin:8px 0 14px}.ariel-ce-issue-summary>div{display:grid;grid-template-columns:44px 1fr;gap:8px;align-items:start;padding:7px 9px;border:1px solid var(--ariel-line);border-radius:7px;background:#fff}.ariel-ce-issue-summary>div strong{font-size:16px}.ariel-ce-issue-summary>div.is-blocking{border-left:4px solid #b32d2e}.ariel-metrics-compact{margin:10px 0}.ariel-metrics-compact .ariel-metric{min-height:86px;padding:10px 12px}
.ariel-compact-assignment{margin:8px 0}.ariel-compact-assignment .ariel-rule-target-line{margin-bottom:6px}.ariel-compact-more{margin-top:8px}.ariel-compact-more>summary{cursor:pointer;font-weight:700}.ariel-ce-list-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 10px;margin:6px 0 8px;border:1px solid var(--ariel-line);border-radius:7px;background:#fff}.ariel-ce-list-total strong{font-size:15px}.ariel-ce-list-total span{font-size:12px;color:var(--ariel-muted)}

/* RC38 — ultra-compact Banking registers */
.ariel-topbar.ariel-bank-topbar-compact{padding:10px 18px;min-height:42px}
.ariel-topbar.ariel-bank-topbar-compact h1{font-size:19px}
.ariel-topbar.ariel-bank-topbar-compact .ariel-page-heading{align-items:center}
.ariel-topbar.ariel-bank-topbar-compact .ariel-page-heading p{display:none}
.ariel-topbar.ariel-bank-topbar-compact .ariel-info-btn{width:23px;height:23px;font-size:12px}
.ariel-topbar.ariel-bank-topbar-compact .ariel-user{padding:6px 10px;font-size:12px}
.ariel-content.ariel-bank-content-wide{padding-top:8px;padding-bottom:24px}
.ariel-bank-tabs.ariel-bank-tabs-compact{top:84px;margin:0 0 4px;padding:4px 5px;gap:3px;border-radius:7px}
.ariel-bank-tabs.ariel-bank-tabs-compact button{min-height:30px;padding:5px 9px;border-radius:6px;font-size:12px}
.ariel-bank-tabs.ariel-bank-tabs-compact em{padding:3px 5px;font-size:9px}
.ariel-bank-register-workspace{padding:0!important;background:transparent;border:0;box-shadow:none;min-height:0}
.ariel-bank-register-controls{display:flex;align-items:center;gap:6px;min-height:36px;margin:0 0 3px;padding:3px 5px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}
.ariel-bank-register-controls>strong{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-size:13px;padding:0 4px}
.ariel-bank-register-controls>select{width:auto;max-width:280px;min-width:190px}
.ariel-bank-register-controls>input[type=search]{flex:1 1 360px;min-width:180px}
.ariel-bank-register-controls>input,.ariel-bank-register-controls>select{height:29px;min-height:29px;margin:0;padding:3px 7px;font-size:12px}
.ariel-bank-register-controls .ariel-register-more{align-self:center}
.ariel-bank-register-controls .ariel-register-more>summary{min-height:29px;padding:3px 8px}
.ariel-bank-register-meta{min-height:27px;margin:0 0 3px;padding:0 4px;font-size:11px}
.ariel-bank-register-meta>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-bank-inline-stats{margin-left:auto;color:#68737c;white-space:nowrap}
.ariel-bank-inline-stats strong{color:#34434f;font-size:11px}
.ariel-bank-register-meta .ariel-inline-info{width:17px;height:17px;font-size:10px;margin-left:3px;vertical-align:0}
.ariel-bank-register-meta .ariel-pagination{margin-left:8px}
.ariel-bank-register-meta .ariel-pagination .button{min-height:25px;padding:1px 7px;font-size:11px}
.ariel-bank-statement .ariel-table-wrap{max-height:calc(100vh - 205px);min-height:440px}
.ariel-bank-statement .ariel-table{min-width:760px}
.ariel-bank-statement .ariel-table th:nth-child(1),.ariel-bank-statement .ariel-table td:nth-child(1){width:92px}
.ariel-bank-statement .ariel-table th:nth-child(2),.ariel-bank-statement .ariel-table td:nth-child(2){width:auto}
.ariel-bank-statement .ariel-table th:nth-child(3),.ariel-bank-statement .ariel-table td:nth-child(3){width:18%}
.ariel-bank-statement .ariel-table th:nth-child(4),.ariel-bank-statement .ariel-table td:nth-child(4){width:18%}
.ariel-bank-statement .ariel-table th:nth-child(5),.ariel-bank-statement .ariel-table td:nth-child(5),.ariel-bank-statement .ariel-table th:nth-child(6),.ariel-bank-statement .ariel-table td:nth-child(6){width:13%;text-align:right;white-space:nowrap}
.ariel-signed-amount{font-weight:700;font-variant-numeric:tabular-nums}
.ariel-money-debit{color:#6f3131}.ariel-money-credit{color:#285c43}

/* Transaction register follows the same signed-amount grammar. */
.ariel-transaction-register .ariel-table{min-width:820px}
.ariel-transaction-register .ariel-table th:nth-child(1),.ariel-transaction-register .ariel-table td:nth-child(1){width:34px}
.ariel-transaction-register .ariel-table th:nth-child(2),.ariel-transaction-register .ariel-table td:nth-child(2){width:92px}
.ariel-transaction-register .ariel-table th:nth-child(3),.ariel-transaction-register .ariel-table td:nth-child(3){width:auto}
.ariel-transaction-register .ariel-table th:nth-child(4),.ariel-transaction-register .ariel-table td:nth-child(4){width:18%}
.ariel-transaction-register .ariel-table th:nth-child(5),.ariel-transaction-register .ariel-table td:nth-child(5){width:18%}
.ariel-transaction-register .ariel-table th:nth-child(6),.ariel-transaction-register .ariel-table td:nth-child(6){width:13%;text-align:right;white-space:nowrap}
.ariel-transaction-register .ariel-table th:nth-child(7),.ariel-transaction-register .ariel-table td:nth-child(7){width:110px}

/* Soft professional zebra striping for record lists. */
.ariel-table tbody tr:nth-child(odd){background:#fff}
.ariel-table tbody tr:nth-child(even){background:#fafcfd}
.ariel-table tbody tr:hover{background:#f1f6f8}
.ariel-table tbody tr{transition:background-color .08s ease}
.ariel-table tbody tr.is-selected{background:#eef5f0}

@media(max-width:1000px){
  .ariel-bank-register-controls>select{min-width:150px;max-width:220px}
  .ariel-bank-inline-stats{display:none}
  .ariel-bank-statement .ariel-table-wrap{max-height:calc(100vh - 215px)}
}
@media(max-width:782px){
  .ariel-topbar.ariel-bank-topbar-compact{padding:9px 12px}
  .ariel-bank-tabs.ariel-bank-tabs-compact{top:0}
  .ariel-bank-register-controls{flex-wrap:wrap}
  .ariel-bank-register-controls>input[type=search]{order:5;flex-basis:100%}
  .ariel-bank-statement .ariel-table-wrap{max-height:none;min-height:0}
}

/* RC40 — module-level report access inside Banking and Common Expenses */
.ariel-module-reports-view{padding:18px}
.ariel-module-report-shell{display:grid;gap:12px}
.ariel-module-report-picker{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:2px}
.ariel-module-report-picker .button.is-active{background:var(--ariel-accent);border-color:var(--ariel-accent);color:#fff}
.ariel-module-report-description{font-size:12px;color:var(--ariel-muted);padding:7px 10px;background:#f8fafb;border:1px solid var(--ariel-line);border-radius:7px}
.ariel-module-report-filter{display:grid;grid-template-columns:minmax(180px,1fr) 110px 145px 145px auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--ariel-line);border-radius:9px;background:#fbfcfd}
.ariel-module-report-filter label{display:grid;gap:4px;font-size:11px;font-weight:700;color:#4c5965}
.ariel-module-report-filter select,.ariel-module-report-filter input{width:100%;max-width:none;min-height:32px}
.ariel-module-report-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.ariel-module-report-output{min-width:0}
.ariel-module-report-output .ariel-table-wrap{max-height:calc(100vh - 310px)}
.ariel-module-report-result-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:4px 0 10px}
.ariel-module-report-result-head h3{margin:0;font-size:17px}.ariel-module-report-result-head p{margin:3px 0 0;color:var(--ariel-muted);font-size:12px}
@media(max-width:1000px){.ariel-module-report-filter{grid-template-columns:1fr 110px 1fr 1fr}.ariel-module-report-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:700px){.ariel-module-report-filter{grid-template-columns:1fr 1fr}.ariel-module-report-actions{grid-column:1/-1}.ariel-module-report-picker{overflow:auto;flex-wrap:nowrap}.ariel-module-report-picker .button{flex:0 0 auto}}


/* RC41 — safe code normalization and relationship-first Expense Type editing */
.ariel-field-help{margin:-5px 0 12px;padding:6px 9px;border-left:2px solid #c8d4da;color:#596771;background:#fafcfd;font-size:11px;line-height:1.45}
.ariel-callout.ariel-callout-compact{padding:8px 10px;margin:9px 0;font-size:11px;line-height:1.45}

/* RC43 — fast Filter → Rule classification workflow */
.ariel-rule-work-filterbar{gap:6px;align-items:end}.ariel-rule-work-filterbar>label{min-width:110px}.ariel-rule-work-filterbar>.ariel-filter-search{flex:1 1 220px}.ariel-rule-work-filterbar>.ariel-rule-words-filter{flex:1.2 1 260px}.ariel-filter-rule-button{align-self:end;white-space:nowrap}.ariel-filter-context{min-height:25px;margin:3px 0 5px;padding:4px 7px;border-radius:6px;background:#f7f9fa;font-size:11px;line-height:1.35;color:#45525d}.ariel-filter-context strong{color:#26343e}.ariel-same-amount-list .ariel-table-wrap{max-height:62vh;overflow:auto}.ariel-same-amount-list .ariel-table{min-width:950px;table-layout:fixed}.ariel-same-amount-list .ariel-table th,.ariel-same-amount-list .ariel-table td{padding:6px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.ariel-same-amount-list .ariel-table th:nth-child(1),.ariel-same-amount-list .ariel-table td:nth-child(1){width:32px}.ariel-same-amount-list .ariel-table th:nth-child(2),.ariel-same-amount-list .ariel-table td:nth-child(2){width:88px}.ariel-same-amount-list .ariel-table th:nth-child(3),.ariel-same-amount-list .ariel-table td:nth-child(3){width:310px}.ariel-same-amount-list .ariel-table th:nth-child(4),.ariel-same-amount-list .ariel-table td:nth-child(4){width:170px}.ariel-same-amount-list .ariel-table th:nth-child(5),.ariel-same-amount-list .ariel-table td:nth-child(5){width:160px}.ariel-same-amount-list .ariel-table th:nth-child(6),.ariel-same-amount-list .ariel-table td:nth-child(6){width:105px;text-align:right}.ariel-same-amount-list .ariel-table th:nth-child(7),.ariel-same-amount-list .ariel-table td:nth-child(7){width:150px}.ariel-same-amount-list .ariel-table th:nth-child(8),.ariel-same-amount-list .ariel-table td:nth-child(8){width:75px}
.ariel-backlog-audit-table .ariel-table{min-width:1020px!important;table-layout:fixed}.ariel-backlog-audit-table .ariel-table th:nth-child(1),.ariel-backlog-audit-table .ariel-table td:nth-child(1){width:32px}.ariel-backlog-audit-table .ariel-table th:nth-child(2),.ariel-backlog-audit-table .ariel-table td:nth-child(2){width:86px}.ariel-backlog-audit-table .ariel-table th:nth-child(3),.ariel-backlog-audit-table .ariel-table td:nth-child(3){width:330px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ariel-backlog-audit-table .ariel-table th:nth-child(4),.ariel-backlog-audit-table .ariel-table td:nth-child(4){width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ariel-backlog-audit-table .ariel-table th:nth-child(5),.ariel-backlog-audit-table .ariel-table td:nth-child(5){width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ariel-backlog-audit-table .ariel-table th:nth-child(6),.ariel-backlog-audit-table .ariel-table td:nth-child(6){width:105px;text-align:right}.ariel-backlog-audit-table .ariel-table th:nth-child(7),.ariel-backlog-audit-table .ariel-table td:nth-child(7){width:125px}.ariel-backlog-audit-table .ariel-table th:nth-child(8),.ariel-backlog-audit-table .ariel-table td:nth-child(8){width:135px}
@media(max-width:1100px){.ariel-rule-work-filterbar>.ariel-rule-words-filter{flex-basis:220px}.ariel-filter-rule-button{padding-left:9px;padding-right:9px}}

/* RC45 classification completeness */
.ariel-review-gap{display:inline-block;margin-right:.35rem;padding:.08rem .38rem;border-radius:999px;background:#f3f0e8;color:#66562f;font-size:.72rem;font-weight:600;line-height:1.35;vertical-align:middle;white-space:nowrap}

/* RC51 — persistent Common Expense workspace period filter */
.ariel-ce-periodbar{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-top:10px;padding:9px 10px;border:1px solid var(--ariel-line);border-radius:9px;background:#fbfcfd}
.ariel-ce-period-title{display:grid;gap:2px;min-width:190px;margin-right:auto;align-self:center}
.ariel-ce-period-title strong{font-size:12px;color:#26343e}
.ariel-ce-period-title span{font-size:11px;color:var(--ariel-muted);font-variant-numeric:tabular-nums}
.ariel-ce-periodbar label{display:grid;gap:3px;font-size:10px;font-weight:700;color:#4c5965}
.ariel-ce-periodbar select,.ariel-ce-periodbar input{min-height:30px;height:30px;min-width:135px;margin:0;padding:2px 7px;font-size:12px}
.ariel-ce-periodbar select{min-width:155px}
@media(max-width:782px){.ariel-ce-period-title{flex-basis:100%;margin-right:0}.ariel-ce-periodbar label{flex:1 1 135px}.ariel-ce-periodbar select,.ariel-ce-periodbar input{width:100%;min-width:0}}

/* RC55 payment/register and Contracts & Leases workspace */
.ariel-payment-register-controls>select{min-width:150px;max-width:220px}.ariel-contract-view[hidden]{display:none!important}.ariel-contract-view>.ariel-metrics{margin-top:14px}.ariel-contract-view>.ariel-card{margin-top:14px}.ariel-module-report-filter{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.ariel-module-report-actions{align-self:end}

/* RC56 — per-Lease tabbed commercial schedule */
.ariel-lease-record-tabs{margin:16px 0 18px}
.ariel-withholding-period-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,.8fr) minmax(150px,.8fr);gap:12px;align-items:end;padding:10px 0;border-top:1px solid var(--ariel-border,#dcdcde)}
.ariel-withholding-period-row:first-of-type{border-top:0}
.ariel-withholding-period-row>label{margin:0}
.ariel-inline-filter{display:flex;align-items:center;gap:8px;font-weight:600}
.ariel-inline-filter select{min-width:110px}
@media (max-width:782px){.ariel-withholding-period-row{grid-template-columns:1fr}.ariel-inline-filter{align-items:flex-start;flex-direction:column}}

/* RC58 lease workspace/cache visibility marker */
.ariel-workspace-build{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;padding:0 2px;color:#5f6b75;font-size:12px}.ariel-workspace-build strong{color:#22313d;font-size:13px}.ariel-workspace-build span{font-variant-numeric:tabular-nums}

/* RC59 — Unified compact browser language ---------------------------------- */
.ariel-topbar.ariel-unified-topbar-compact{padding:9px 18px;min-height:42px}
.ariel-topbar.ariel-unified-topbar-compact h1{font-size:19px;line-height:1.2}
.ariel-topbar.ariel-unified-topbar-compact .ariel-page-heading{align-items:center}
.ariel-topbar.ariel-unified-topbar-compact .ariel-page-heading p{display:none}
.ariel-topbar.ariel-unified-topbar-compact .ariel-info-btn{width:23px;height:23px;font-size:12px}
.ariel-topbar.ariel-unified-topbar-compact .ariel-user{padding:6px 10px;font-size:12px}
.ariel-content.ariel-unified-content-wide{max-width:none;padding:8px 18px 24px}

.ariel-unified-browser{display:block}
.ariel-unified-browser>.ariel-card,
.ariel-unified-browser>.ariel-grid,
.ariel-unified-browser>.ariel-list-workspace,
.ariel-unified-browser>.ariel-contract-view,
.ariel-unified-browser>.ariel-ce-view{margin-bottom:5px}
.ariel-unified-browser .ariel-card{border-radius:7px;padding:9px 10px;box-shadow:none}
.ariel-unified-browser .ariel-card-head{align-items:center;gap:8px;margin-bottom:5px;min-height:31px}
.ariel-unified-browser .ariel-card-head>div:first-child{min-width:0}
.ariel-unified-browser .ariel-card-head h2{font-size:13px;line-height:1.2;margin:0;white-space:nowrap}
.ariel-unified-browser .ariel-card-head p{display:none!important}
.ariel-unified-browser .ariel-eyebrow{display:none}
.ariel-unified-browser .ariel-card-head>.button,
.ariel-unified-browser .ariel-card-head>div>.button{min-height:29px;padding:3px 9px}
.ariel-browser-inline-search{height:29px!important;min-height:29px!important;width:min(260px,28vw);margin:0 0 0 auto!important;padding:3px 8px!important;font-size:12px!important}

/* Large KPI cards become a slim information strip in browser screens. */
.ariel-unified-browser .ariel-metrics{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 5px}
.ariel-unified-browser .ariel-metric{flex:1 1 130px;min-width:115px;min-height:0;padding:5px 8px;border-radius:6px}
.ariel-unified-browser .ariel-metric span{font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-unified-browser .ariel-metric strong{font-size:17px;line-height:1.05;margin:2px 0}
.ariel-unified-browser .ariel-metric small{display:none}

/* One-line section language throughout the application. */
.ariel-unified-browser .ariel-section-toolbar{align-items:center;gap:8px;margin-bottom:4px;min-height:31px}
.ariel-unified-browser .ariel-section-toolbar>div:first-child{min-width:0}
.ariel-unified-browser .ariel-section-toolbar h2{font-size:13px;line-height:1.2;margin:0;white-space:nowrap}
.ariel-unified-browser .ariel-section-toolbar p{display:none!important}
.ariel-unified-browser .ariel-section-actions{gap:5px}
.ariel-unified-browser .ariel-section-actions .button{min-height:29px;padding:3px 9px}
.ariel-unified-browser .ariel-bank-tabs{top:64px;margin:0 0 4px;padding:4px 5px;gap:3px;border-radius:7px}
.ariel-unified-browser .ariel-bank-tabs button{min-height:30px;padding:5px 9px;border-radius:6px;font-size:12px}
.ariel-unified-browser .ariel-bank-tabs em{padding:3px 5px;font-size:9px}
.ariel-unified-browser .ariel-table-wrap{margin-top:0}
.ariel-unified-browser .ariel-table th{padding-top:6px;padding-bottom:6px}
.ariel-unified-browser .ariel-table td{padding-top:6px;padding-bottom:6px}
.ariel-unified-browser .ariel-empty{padding:14px 10px}
.ariel-unified-browser .ariel-empty p{margin:3px 0 0}

/* Common Expenses: BANK-style top line, tabs, register. No permanent workflow poster. */
.ariel-unified-browser .ariel-ce-workspace-nav{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;padding:4px 5px;margin:0 0 4px;border-radius:7px}
.ariel-unified-browser .ariel-ce-workspace-nav>.ariel-card-head{display:block;min-height:0;margin:0;padding:0}
.ariel-unified-browser .ariel-ce-workspace-nav>.ariel-card-head>div:first-child{display:none}
.ariel-unified-browser .ariel-ce-workspace-nav>.ariel-card-head .ariel-section-actions{justify-content:flex-start;flex-wrap:nowrap}
.ariel-unified-browser .ariel-ce-workspace-nav>.ariel-bank-steps,
.ariel-unified-browser .ariel-ce-workspace-nav>.ariel-workbench-safety{display:none!important}
.ariel-unified-browser .ariel-ce-periodbar{justify-content:flex-end;flex-wrap:nowrap;gap:5px;margin:0;padding:0;border:0;background:transparent}
.ariel-unified-browser .ariel-ce-period-title{display:none}
.ariel-unified-browser .ariel-ce-periodbar label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:9px;text-transform:uppercase;letter-spacing:.03em}
.ariel-unified-browser .ariel-ce-periodbar select,
.ariel-unified-browser .ariel-ce-periodbar input{height:29px;min-height:29px;min-width:120px;font-size:12px}
.ariel-unified-browser .ariel-ce-periodbar select{min-width:145px}
.ariel-unified-browser .ariel-ce-view .ariel-ce-filterbar{margin:0 0 4px;padding:4px 5px;border-radius:6px}
.ariel-unified-browser .ariel-ce-view .ariel-bank-list-meta{margin:0 0 3px;min-height:22px}
.ariel-unified-browser .ariel-ce-total-line span{display:none}

/* Contracts / payments already use the BANK components; remove duplicate intro rows. */
.ariel-unified-browser .ariel-contract-view>.ariel-card{margin-top:4px}
.ariel-unified-browser [data-tenant-payment-view="register"] .ariel-section-toolbar,
.ariel-unified-browser [data-vp-view="register"] .ariel-section-toolbar{margin-bottom:3px}
.ariel-unified-browser [data-tenant-payment-view="register"] .ariel-section-toolbar p,
.ariel-unified-browser [data-vp-view="register"] .ariel-section-toolbar p{display:none}

/* Permanent guide cards are consolidated into the real directory by JS. */
.ariel-unified-browser .ariel-guide-card{margin-bottom:4px;padding:5px 7px}
.ariel-unified-browser .ariel-guide-card>:not(.ariel-card-head){display:none!important}
.ariel-unified-browser .ariel-compact-note{display:none!important}

@media(max-width:782px){
  .ariel-topbar.ariel-unified-topbar-compact{padding:8px 12px}
  .ariel-content.ariel-unified-content-wide{padding:7px 10px 20px}
  .ariel-browser-inline-search{order:3;width:100%;margin-left:0!important}
  .ariel-unified-browser .ariel-card-head{flex-wrap:wrap}
  .ariel-unified-browser .ariel-bank-tabs{top:0}
  .ariel-unified-browser .ariel-ce-workspace-nav{grid-template-columns:1fr}
  .ariel-unified-browser .ariel-ce-periodbar{justify-content:flex-start;flex-wrap:wrap}
  .ariel-unified-browser .ariel-ce-periodbar label{flex:1 1 125px;display:grid;gap:2px}
  .ariel-unified-browser .ariel-ce-periodbar select,.ariel-unified-browser .ariel-ce-periodbar input{width:100%;min-width:0}
}
/* RC59 CE register: selected tab already names the workspace; do not repeat it. */
.ariel-unified-browser [data-ce-view="expenses"]>.ariel-section-toolbar,
.ariel-unified-browser [data-ce-view="collections"]>.ariel-section-toolbar,
.ariel-unified-browser [data-ce-view="summary"]>.ariel-section-toolbar{display:none!important}
.ariel-unified-browser [data-ce-view="invoices"]>.ariel-section-toolbar>div:first-child{display:none}
.ariel-unified-browser [data-ce-view="invoices"]>.ariel-section-toolbar{justify-content:flex-end;min-height:29px}
.ariel-unified-browser .ariel-ce-list-total{display:none!important}
.ariel-unified-browser .ariel-tab-row-actions{margin-left:auto;display:inline-flex;align-items:center;gap:5px;padding-left:8px}
.ariel-unified-browser .ariel-tab-row-actions .button{min-height:29px;padding:3px 9px}

/* RC60 — Common Expenses is now structurally BANK-style, not an old tall card hidden by CSS. */
.ariel-ce-tabs-compact{margin-bottom:3px!important}
.ariel-ce-global-controls{margin-bottom:3px}
.ariel-ce-global-controls>select{min-width:145px;max-width:175px}
.ariel-ce-period-inline{display:inline-block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ariel-muted);font-size:11px;font-variant-numeric:tabular-nums}
.ariel-register-flex-spacer{flex:1 1 auto;min-width:6px}
.ariel-ce-tab-controls{margin-bottom:3px}
.ariel-ce-tab-controls>select{min-width:135px;max-width:205px}
.ariel-ce-tab-controls>input[type=search]{flex:1 1 380px}
.ariel-ce-compact-register .ariel-table-wrap{max-height:calc(100vh - 225px);min-height:330px;overflow:auto;border-radius:5px}
.ariel-ce-compact-register .ariel-table{table-layout:fixed;min-width:820px;font-variant-numeric:tabular-nums}
.ariel-ce-compact-register .ariel-table th,.ariel-ce-compact-register .ariel-table td{padding:7px 8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-ce-compact-register .ariel-table th{font-size:10px;letter-spacing:.04em;background:#f4f6f7}
[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(1),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(1){width:95px}
[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(2),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(2){width:180px}
[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(3),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(3){width:180px}
[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(4),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(4){width:auto}
[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(5),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(5),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(6),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(6){width:112px;text-align:right}
[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(7),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(7){width:105px}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table{min-width:760px}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table th:nth-child(1),[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table td:nth-child(1){width:145px}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table th:nth-child(2),[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table td:nth-child(2){width:190px}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table th:nth-child(3),[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table td:nth-child(3){width:180px}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table th:nth-child(4),[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table td:nth-child(4){width:auto}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table th:nth-child(5),[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table td:nth-child(5){width:112px;text-align:right}
[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table th:nth-child(6),[data-ce-view="invoices"] .ariel-ce-compact-register .ariel-table td:nth-child(6){width:105px}
[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table{min-width:820px}
[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(1),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(1){width:95px}
[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(2),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(2){width:190px}
[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(3),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(3){width:auto}
[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(4),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(4),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(5),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(5),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(6),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(6){width:105px;text-align:right}
[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table th:nth-child(7),[data-ce-view="collections"] .ariel-ce-compact-register .ariel-table td:nth-child(7){width:110px}
.ariel-ce-summary-strip{display:flex;gap:16px;align-items:center;padding:5px 7px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}.ariel-ce-summary-strip span{white-space:nowrap;font-size:11px;color:var(--ariel-muted)}.ariel-ce-summary-strip strong{color:var(--ariel-text);font-size:13px}
.ariel-ce-summary-grids{gap:5px;margin-top:4px}.ariel-compact-summary-card{padding:7px 8px!important}.ariel-compact-summary-card h3{margin:0 0 4px!important;font-size:12px!important}
/* Embedded reports use the same compact control language across Banking, Tenant, Vendor and CE. */
.ariel-module-report-shell-compact .ariel-module-report-picker{flex-wrap:wrap;margin-bottom:3px}.ariel-module-report-shell-compact .ariel-module-report-picker .button{min-height:29px;padding:3px 8px}
.ariel-module-report-filter-compact{display:flex!important;align-items:end;gap:5px;flex-wrap:wrap;margin:0 0 4px;padding:4px 5px!important;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}
.ariel-module-report-filter-compact>label{display:grid;gap:2px;min-width:135px;max-width:205px;color:#5a6671;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.ariel-module-report-filter-compact select,.ariel-module-report-filter-compact input{width:100%;height:29px;min-height:29px;margin:0;padding:3px 7px;font-size:12px;text-transform:none;font-weight:400}
.ariel-module-report-filter-compact .ariel-module-report-actions{display:flex;align-items:center;gap:4px;margin-left:auto}.ariel-module-report-filter-compact .ariel-module-report-actions .button{min-height:29px;padding:3px 8px}
.ariel-module-report-shell-compact .ariel-module-report-output{margin-top:3px}
@media(max-width:782px){.ariel-ce-global-controls,.ariel-ce-tab-controls{flex-wrap:wrap}.ariel-ce-period-inline{order:8;max-width:none;width:100%}.ariel-register-flex-spacer{display:none}.ariel-ce-tab-controls>input[type=search]{order:5;flex-basis:100%}.ariel-ce-compact-register .ariel-table-wrap{max-height:none;min-height:0}.ariel-module-report-filter-compact{align-items:stretch}.ariel-module-report-filter-compact>label{flex:1 1 145px;max-width:none}.ariel-module-report-filter-compact .ariel-module-report-actions{width:100%;margin-left:0}}
/* RC61 — Common Expense invoice lifecycle */
.ariel-status-prepared{color:#385b78;background:#eaf1f6}.ariel-status-sent{color:var(--ariel-warning);background:#f8f0d9}

/* RC62 — Banking Transactions uses the same compact browser structure as BANK. */
.ariel-bank-transaction-controls .ariel-transaction-view-popover{width:min(520px,84vw);grid-template-columns:minmax(170px,1fr) minmax(220px,1.3fr)}
.ariel-transaction-column-options{display:grid;grid-template-columns:repeat(2,minmax(95px,1fr));gap:5px 10px;padding:1px 0}
.ariel-transaction-column-options>span{grid-column:1/-1;font-size:10px;font-weight:800;color:#5a6671;text-transform:uppercase}
.ariel-compact-filter-popover .ariel-transaction-column-options label.ariel-check{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;text-transform:none;color:#3f4a54}
.ariel-transaction-column-options .ariel-check input{width:auto;margin:0}
.ariel-transaction-view-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:6px;padding-top:4px;border-top:1px solid var(--ariel-line)}
.ariel-bank-register-bulk{min-height:29px;margin:0 0 3px;padding:2px 4px;border-radius:5px}
.ariel-bank-register-bulk small{font-size:11px}
@media(max-width:782px){.ariel-bank-transaction-controls .ariel-transaction-view-popover{grid-template-columns:1fr}.ariel-transaction-view-actions{grid-column:auto}.ariel-transaction-column-options{grid-template-columns:1fr 1fr}}

/* RC64 — Banking Reconciliation uses the same compact browser grammar as BANK. */
.ariel-reconciliation-workspace{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:0}
.ariel-reconciliation-controls{gap:5px}
.ariel-reconciliation-controls .ariel-register-segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;background:#f1f4f6;border:1px solid var(--ariel-line);border-radius:6px}
.ariel-reconciliation-controls .ariel-register-segmented .button{border-color:transparent;background:transparent;box-shadow:none;min-height:25px;padding:2px 7px;font-size:11px;font-weight:700;color:#46535e}
.ariel-reconciliation-controls .ariel-register-segmented .button:hover{background:#fff;color:var(--ariel-accent)}
.ariel-reconciliation-controls .ariel-register-segmented .button.is-active{background:var(--ariel-accent);color:#fff;border-color:var(--ariel-accent)}
.ariel-reconciliation-controls .ariel-register-segmented em{font-style:normal;margin-left:4px;padding:1px 5px;border-radius:999px;background:rgba(23,63,95,.10);font-size:9px;line-height:1.4}
.ariel-reconciliation-controls .ariel-register-segmented .is-active em{background:rgba(255,255,255,.20);color:#fff}
.ariel-register-spacer{flex:1 1 auto;min-width:4px}
.ariel-reconciliation-controls>.button,.ariel-reconciliation-controls>.ariel-action-menu>summary{min-height:29px;padding:3px 8px;font-size:12px}
.ariel-reconciliation-meta{margin-bottom:3px}
.ariel-reconciliation-meta strong{color:#34434f}
.ariel-reconciliation-subview{display:none}
.ariel-reconciliation-subview.is-active{display:block}
.ariel-reconciliation-subview>.ariel-table-wrap,.ariel-duplicate-register>.ariel-table-wrap{max-height:calc(100vh - 205px);min-height:360px}
.ariel-reconciliation-subview .ariel-table{min-width:880px}
.ariel-reconciliation-subview .ariel-table th,.ariel-reconciliation-subview .ariel-table td{padding-top:6px;padding-bottom:6px;vertical-align:middle}
.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(1),.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(1){width:20%}
.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(2),.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(2){width:180px}
.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(n+3):nth-child(-n+7),.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(n+3):nth-child(-n+7){text-align:right;white-space:nowrap}
.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(8),.ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(8){width:105px;white-space:nowrap}
.ariel-duplicate-browser-toolbar{display:flex;align-items:center;gap:6px;min-height:31px;margin:0 0 3px;padding:2px 4px;border:1px solid var(--ariel-line);border-radius:5px;background:#fff}
.ariel-duplicate-browser-toolbar>[data-dup-selected-toolbar]{display:flex;align-items:center;gap:5px}
.ariel-duplicate-browser-toolbar>[data-dup-selected-toolbar][hidden]{display:none!important}
.ariel-duplicate-browser-toolbar small{font-size:11px;color:var(--ariel-muted);white-space:nowrap}
.ariel-duplicate-register .ariel-table{min-width:980px}
.ariel-duplicate-register .ariel-table th:nth-child(1),.ariel-duplicate-register .ariel-table td:nth-child(1){width:34px;text-align:center}
.ariel-duplicate-register .ariel-table th:nth-child(2),.ariel-duplicate-register .ariel-table td:nth-child(2){width:86px}
.ariel-duplicate-register .ariel-table th:nth-child(3),.ariel-duplicate-register .ariel-table td:nth-child(3){width:18%}
.ariel-duplicate-register .ariel-table th:nth-child(4),.ariel-duplicate-register .ariel-table td:nth-child(4),.ariel-duplicate-register .ariel-table th:nth-child(5),.ariel-duplicate-register .ariel-table td:nth-child(5){width:auto;max-width:360px}
.ariel-duplicate-register .ariel-table th:nth-child(6),.ariel-duplicate-register .ariel-table td:nth-child(6){width:145px;white-space:nowrap}
.ariel-duplicate-summary{display:block!important;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.ariel-row-actions-compact{flex-wrap:nowrap;gap:4px}
.ariel-empty.ariel-empty-compact{padding:10px 12px;border-radius:6px;text-align:left;font-size:12px}
.ariel-empty.ariel-empty-compact strong{display:inline;font-size:12px;margin-right:3px}
.ariel-empty.ariel-empty-compact span{color:var(--ariel-muted)}
@media(max-width:900px){
  .ariel-reconciliation-controls{flex-wrap:wrap}
  .ariel-reconciliation-controls .ariel-register-spacer{display:none}
  .ariel-reconciliation-subview>.ariel-table-wrap,.ariel-duplicate-register>.ariel-table-wrap{max-height:none;min-height:0}
}

/* RC65 — compact Prepared-invoice bulk correction controls. */
.ariel-ce-tab-controls [data-ce-invoice-bulk]:not([hidden]){display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ariel-ce-compact-register [data-ce-invoice-select]{margin:0;vertical-align:middle}

/* RC66 — preserve the invoice selection column for protected records. */
[data-ce-invoice-list] input[type="checkbox"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}


/* RC67 — Reconciliation duplicate triage: BANK-density, no redundant Account column for a single-account system. */
.ariel-duplicate-register .ariel-table{min-width:720px;table-layout:fixed;font-size:12px}
.ariel-duplicate-register .ariel-table th,.ariel-duplicate-register .ariel-table td{width:auto!important;max-width:none!important;padding:5px 7px!important;font-size:12px!important;line-height:1.25;vertical-align:middle}
.ariel-duplicate-register .ariel-table th{font-size:10px!important;letter-spacing:.04em}
.ariel-duplicate-register .ariel-table th:first-child,.ariel-duplicate-register .ariel-table td:first-child{width:32px!important;text-align:center}
.ariel-duplicate-register .ariel-table th:last-child,.ariel-duplicate-register .ariel-table td:last-child{width:138px!important;white-space:nowrap}
.ariel-duplicate-register .ariel-record-link{font-size:12px!important;font-weight:700;line-height:1.25}
.ariel-duplicate-register .button.button-small{min-height:26px;padding:2px 7px;font-size:11px;line-height:1.25}
.ariel-duplicate-account{font-size:12px;overflow:hidden;text-overflow:ellipsis}
.ariel-reconciliation-workspace.single-account .ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(1),
.ariel-reconciliation-workspace.single-account .ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(1){width:180px;text-align:left}
.ariel-reconciliation-workspace.single-account .ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(n+2):nth-child(-n+6),
.ariel-reconciliation-workspace.single-account .ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(n+2):nth-child(-n+6){text-align:right;white-space:nowrap}
.ariel-reconciliation-workspace.single-account .ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table th:nth-child(7),
.ariel-reconciliation-workspace.single-account .ariel-reconciliation-subview[data-reconciliation-view="periods"] .ariel-table td:nth-child(7){width:105px;white-space:nowrap}


/* RC68 — Transactions browser uses the exact BANK data density. */
.ariel-transaction-register .ariel-table-wrap{
  max-height:calc(100vh - 205px);
  min-height:440px;
  border-radius:5px;
}
.ariel-transaction-register .ariel-table{
  min-width:760px;
  table-layout:fixed;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.ariel-transaction-register .ariel-table th,
.ariel-transaction-register .ariel-table td{
  padding:5px 7px!important;
  font-size:12px!important;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}
.ariel-transaction-register .ariel-table th{
  padding-top:5px!important;
  padding-bottom:5px!important;
  font-size:10px!important;
  letter-spacing:.045em;
  background:#f4f6f7;
}
.ariel-transaction-register .ariel-record-link{
  font-size:12px!important;
  line-height:1.25;
}
.ariel-transaction-register .ariel-browser-main,
.ariel-transaction-register .ariel-browser-description,
.ariel-transaction-register .ariel-money{
  font-size:12px!important;
  line-height:1.25;
}
.ariel-transaction-register .ariel-status{
  padding:2px 6px;
  font-size:10px;
  line-height:1.2;
}
.ariel-transaction-register .ariel-browser-icon{
  width:12px;
  height:12px;
  margin-left:3px;
  vertical-align:-2px;
}
.ariel-transaction-register .ariel-browser-icon svg{
  width:11px;
  height:11px;
}
/* Current default columns: selector, Date, Description, Entity, Category, Amount, Status. */
.ariel-transaction-register .ariel-table th:nth-child(1),
.ariel-transaction-register .ariel-table td:nth-child(1){width:28px;text-align:center}
.ariel-transaction-register .ariel-table th:nth-child(2),
.ariel-transaction-register .ariel-table td:nth-child(2){width:92px}
.ariel-transaction-register .ariel-table th:nth-child(3),
.ariel-transaction-register .ariel-table td:nth-child(3){width:auto}
.ariel-transaction-register .ariel-table th:nth-child(4),
.ariel-transaction-register .ariel-table td:nth-child(4){width:20%}
.ariel-transaction-register .ariel-table th:nth-child(5),
.ariel-transaction-register .ariel-table td:nth-child(5){width:20%}
.ariel-transaction-register .ariel-table th:nth-child(6),
.ariel-transaction-register .ariel-table td:nth-child(6){width:13%;text-align:right}
.ariel-transaction-register .ariel-table th:nth-child(7),
.ariel-transaction-register .ariel-table td:nth-child(7){width:92px;text-align:center}
@media(max-width:782px){
  .ariel-transaction-register .ariel-table-wrap{max-height:none;min-height:0}
}

/* RC74 — active Bank Import owns the Banking workspace until complete/cancelled. */
.ariel-bank-tabs.has-active-import [data-bank-tab]:disabled { opacity:.45; cursor:not-allowed; filter:grayscale(.25); }
.ariel-bank-tabs.has-active-import [data-bank-tab="import"] { opacity:1; }

/* RC74 — compact Bank Import browser; classification backlog never keeps an import open. */
.ariel-import-workspace{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.ariel-import-controls{margin-bottom:3px}
.ariel-import-controls .ariel-import-independent-note{font-size:11px;color:var(--ariel-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
.ariel-import-stage-chip{display:inline-flex;align-items:center;min-height:22px;padding:1px 6px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.ariel-import-stage-chip.is-ready{background:#e7f2ea;color:#24613b}
.ariel-import-stage-chip.is-active{background:#fff0c8;color:#765209}
.ariel-import-progress-compact{display:flex;align-items:center;gap:3px;margin:0 0 3px;padding:2px;border:1px solid var(--ariel-line);border-radius:5px;background:#fff}
.ariel-import-progress-compact span{flex:0 0 auto;padding:3px 8px;border-radius:4px;font-size:10px;font-weight:700;color:#66717c;background:#f4f6f7}
.ariel-import-progress-compact span.is-current{background:#eaf1f6;color:var(--ariel-accent)}
.ariel-import-progress-compact span.is-done{background:#edf6ef;color:#27613a}
.ariel-import-ready-strip,.ariel-import-latest-strip,.ariel-import-validated-line,.ariel-import-store-line,.ariel-import-warning-line{display:flex;align-items:center;gap:10px;min-height:31px;margin:0 0 3px;padding:4px 8px;border:1px solid var(--ariel-line);border-radius:5px;background:#fff;font-size:11px}
.ariel-import-ready-strip span,.ariel-import-latest-strip span,.ariel-import-validated-line span,.ariel-import-store-line span{color:var(--ariel-muted)}
.ariel-import-latest-strip{flex-wrap:wrap}
.ariel-import-latest-strip .button{margin-left:auto}
.ariel-import-validated-line{flex-wrap:wrap;font-variant-numeric:tabular-nums}
.ariel-import-validated-line>strong{font-size:12px}
.ariel-import-valid-count{color:#245d39!important}
.ariel-import-warning-line{background:#fff8e8;border-color:#ecdba8;color:#77530b}
.ariel-import-store-line .button{min-height:27px;padding:2px 8px;font-size:11px}
.ariel-import-form-compact{margin:0 0 3px;padding:4px 6px;border:1px solid var(--ariel-line);border-radius:5px;background:#fff}
.ariel-import-form-line{display:flex;align-items:end;gap:5px;min-width:0}
.ariel-import-form-line>.ariel-field,.ariel-import-form-line>label{margin:0;min-width:180px}
.ariel-import-form-line .ariel-field label,.ariel-import-file-field{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:#5a6671}
.ariel-import-form-line select,.ariel-import-form-line input[type=file]{height:29px;min-height:29px;font-size:12px;text-transform:none;font-weight:400}
.ariel-import-file-field{display:grid;gap:2px;flex:1 1 340px}
.ariel-import-log-meta{margin-top:3px}
.ariel-import-log-register .ariel-table-wrap{max-height:calc(100vh - 295px);min-height:260px;overflow:auto;border-radius:5px}
.ariel-import-log-register .ariel-table{font-size:11px}
.ariel-import-log-register .ariel-table th{font-size:9px;letter-spacing:.035em}
.ariel-import-log-register .ariel-table th,.ariel-import-log-register .ariel-table td{padding:5px 6px;white-space:nowrap}
.ariel-warning.ariel-warning-compact{margin:0 0 3px;padding:5px 8px;font-size:11px}
@media(max-width:900px){
 .ariel-import-controls{flex-wrap:wrap}.ariel-import-controls .ariel-import-independent-note{max-width:none;width:100%;order:9}
 .ariel-import-form-line,.ariel-import-store-line{flex-wrap:wrap}.ariel-import-form-line>.ariel-field,.ariel-import-form-line>label{flex:1 1 220px}
 .ariel-import-log-register .ariel-table-wrap{max-height:none;min-height:0}
}

/* RC77 — Tenant/Vendor Payments are standalone specialised Bank-payment browsers. */
.ariel-payment-register-controls{flex-wrap:nowrap}
.ariel-payment-register-controls>strong{font-size:12px;letter-spacing:.02em}
.ariel-payment-register-controls>select{min-width:128px;max-width:190px}
.ariel-payment-register-controls>select[data-tp-group],.ariel-payment-register-controls>select[data-vp-group]{min-width:145px}
.ariel-payment-register-table .ariel-table{min-width:780px;table-layout:fixed}
.ariel-payment-register-table .ariel-table th,.ariel-payment-register-table .ariel-table td{padding:5px 7px;font-size:12px;line-height:1.25;vertical-align:middle}
.ariel-payment-register-table .ariel-table th{font-size:10px;letter-spacing:.025em}
.ariel-payment-register-table .ariel-table td[data-col="date"],.ariel-payment-register-table .ariel-table th[data-col="date"]{width:90px;white-space:nowrap}
.ariel-payment-register-table .ariel-table td[data-col="type"],.ariel-payment-register-table .ariel-table th[data-col="type"]{width:105px;white-space:nowrap}
.ariel-payment-register-table .ariel-table td[data-col="lease"],.ariel-payment-register-table .ariel-table th[data-col="lease"]{width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-payment-register-table .ariel-table td[data-col="category"],.ariel-payment-register-table .ariel-table th[data-col="category"]{width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-payment-register-table .ariel-table td[data-col="tenant"],.ariel-payment-register-table .ariel-table th[data-col="tenant"],.ariel-payment-register-table .ariel-table td[data-col="vendor"],.ariel-payment-register-table .ariel-table th[data-col="vendor"]{width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-payment-register-table .ariel-table td[data-col="description"]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-payment-register-table .ariel-table td[data-col="amount"],.ariel-payment-register-table .ariel-table th[data-col="amount"]{width:105px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ariel-payment-register-table .ariel-record-link{font-size:12px;font-weight:700}
.ariel-payment-register-table td strong{font-weight:650}
.ariel-payment-group-row td{padding:5px 8px!important;background:#eef3f6!important;border-top:1px solid #cfd9df;border-bottom:1px solid #cfd9df;color:#263b4b}
.ariel-payment-group-row td strong{font-size:11px;text-transform:uppercase;letter-spacing:.035em}
.ariel-payment-group-row td span{float:right;color:#64727d;font-size:10px;font-weight:600;text-transform:none;letter-spacing:0}
.ariel-empty.ariel-empty-compact{padding:20px;border-radius:7px}
.ariel-empty.ariel-empty-compact strong{font-size:14px}
.ariel-empty.ariel-empty-compact p{margin:4px 0 0;font-size:11px}
@media(max-width:1100px){.ariel-payment-register-controls{flex-wrap:wrap}.ariel-payment-register-controls>input[type=search]{flex-basis:320px}.ariel-payment-register-controls>select{min-width:120px}}

/* RC78 — grouped entity payment browsers collapse every group by default. */
.ariel-payment-register-controls>select[data-op-group]{min-width:145px}
.ariel-payment-group-toolbar{display:flex;align-items:center;gap:4px;min-height:28px;margin:3px 0;padding:2px 4px;border:1px solid var(--ariel-line);border-radius:5px;background:#fff;font-size:10px;color:var(--ariel-muted)}
.ariel-payment-group-toolbar .button.button-small{min-height:23px;padding:1px 6px;font-size:10px}
.ariel-payment-group-list{display:grid;gap:3px}
.ariel-payment-group{margin:0;border:1px solid var(--ariel-line);border-radius:5px;background:#fff;overflow:hidden}
.ariel-payment-group>summary{display:flex;align-items:center;gap:8px;min-height:30px;padding:4px 8px;cursor:pointer;background:#eef3f6;color:#263b4b;list-style:none}
.ariel-payment-group>summary::-webkit-details-marker{display:none}
.ariel-payment-group>summary:before{content:'▸';flex:0 0 auto;font-size:11px;color:#65747f;transition:transform .12s ease}
.ariel-payment-group[open]>summary:before{transform:rotate(90deg)}
.ariel-payment-group-title{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-payment-group-summary{margin-left:auto;font-size:10px;font-weight:650;color:#64727d;white-space:nowrap;font-variant-numeric:tabular-nums}
.ariel-payment-group-table{border:0!important;border-top:1px solid var(--ariel-line)!important;border-radius:0!important;margin:0!important;max-height:420px;overflow:auto}
.ariel-payment-group-table .ariel-table{margin:0}
@media(max-width:900px){.ariel-payment-group>summary{align-items:flex-start;flex-wrap:wrap}.ariel-payment-group-summary{width:100%;margin-left:19px}.ariel-payment-group-toolbar{flex-wrap:wrap}}
.ariel-payment-register-table .ariel-table td[data-col="owner"],.ariel-payment-register-table .ariel-table th[data-col="owner"]{width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* RC79 — Tenant Payments is rental-only; Owner operational section is Owner Dividends. */

/* RC84 — shared reporting/date/filter system -------------------------------- */
/* Human-facing date entry must be dd/mm/yy everywhere. The hidden ISO value is
   what APIs and filters consume; visible controls never depend on browser locale. */
.ariel-date-entry{display:block;position:relative;width:100%}
.ariel-date-entry>[data-ariel-date-display]{width:100%!important;max-width:none!important;min-height:29px;box-sizing:border-box;font-variant-numeric:tabular-nums}
.ariel-date-entry>[data-ariel-date-iso]{display:none!important}
.ariel-date-entry>[data-ariel-date-display]::placeholder{color:#7a8792;opacity:1}

/* Period popovers are true dismissible overlays: compact, high enough to clear
   report content, and visually distinct from the page underneath. */
.ariel-compact-filters[open]>summary{background:#eef4f9;border-color:#9fb7cb;color:#173b56}
.ariel-compact-filter-popover{z-index:120;width:min(500px,86vw);padding:12px;box-shadow:0 16px 38px rgba(23,32,42,.18)}
.ariel-report-period-popover{grid-template-columns:105px minmax(145px,1fr) minmax(145px,1fr);width:min(690px,92vw)}
.ariel-report-comparison-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(145px,190px) minmax(260px,1fr);gap:8px 12px;align-items:end;padding:9px 10px;border:1px solid #d5e0e8;border-radius:6px;background:#f8fbfd}
.ariel-report-comparison-controls[hidden]{display:none!important}
.ariel-report-comparison-controls>label{margin:0}
.ariel-quarter-multiselect{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:6px 9px;border:1px solid var(--ariel-line);border-radius:5px;background:#fff}
.ariel-quarter-multiselect[hidden]{display:none!important}
.ariel-quarter-multiselect legend{float:left;width:auto;margin:0 5px 0 0;padding:0;border:0;font-size:9px;font-weight:850;letter-spacing:.04em;color:#65737f;text-transform:uppercase}
.ariel-quarter-multiselect label{display:inline-flex;align-items:center;gap:3px;margin:0;white-space:nowrap;font-size:11px;font-weight:650;text-transform:none;letter-spacing:0;color:#263744}
.ariel-quarter-multiselect input{margin:0!important;width:15px!important;height:15px!important;min-width:15px!important}
.ariel-report-comparison-controls>.ariel-period-help{grid-column:1/-1;margin:0;padding-top:7px}
.ariel-period-help{grid-column:1/-1;margin-top:1px;padding-top:7px;border-top:1px solid var(--ariel-line);font-size:10px;line-height:1.35;color:var(--ariel-muted)}

/* Make report hierarchy unambiguous and fix dark-on-dark active buttons from
   older WordPress button rules. */
.ariel-report-picker-label{display:inline-flex;align-items:center;padding:0 4px 0 1px;font-size:9px;font-weight:850;letter-spacing:.065em;color:#687682}
.ariel-module-report-picker .button.is-active,
.ariel-module-report-picker .button.is-active:hover,
.ariel-module-report-picker .button.is-active:focus,
.ariel-module-report-picker button[aria-selected="true"]{background:var(--ariel-accent)!important;border-color:var(--ariel-accent)!important;color:#fff!important;text-shadow:none!important;box-shadow:none!important}
.ariel-module-report-description{line-height:1.45}

/* Professional analytical report layer. */
.ariel-report-notes{margin:8px 0;padding:9px 11px;border:1px solid #cbd9e5;border-left:4px solid #52788d;border-radius:6px;background:#f7fafc;color:#42525f;font-size:11px;line-height:1.45}
.ariel-report-notes ul{margin:0;padding-left:17px}.ariel-report-notes li+li{margin-top:3px}
.ariel-report-visual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:12px;margin:12px 0 14px}
.ariel-report-chart{min-width:0;padding:12px;border:1px solid var(--ariel-line);border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(23,32,42,.035)}
.ariel-report-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 8px}
.ariel-report-chart-head h4{margin:0;color:#23313d;font-size:14px;line-height:1.25}
.ariel-report-chart-head p{margin:2px 0 0;color:var(--ariel-muted);font-size:10px}
.ariel-chart-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;font-size:10px;color:#56636e}
.ariel-chart-legend span{display:inline-flex;align-items:center;gap:4px}.ariel-chart-legend i{width:12px;height:3px;border-radius:3px;background:currentColor}
.ariel-chart-svg-wrap{width:100%;overflow:auto}.ariel-chart-svg{display:block;width:100%;min-width:460px;height:auto}
.ariel-chart-grid{stroke:#e3e8ec;stroke-width:1}.ariel-chart-axis-line{stroke:#7a8792;stroke-width:1}.ariel-chart-axis{fill:#66737e;font-size:10px}
.ariel-chart-series-0{stroke:#3d6fa6;fill:#3d6fa6;color:#3d6fa6}.ariel-chart-series-1{stroke:#7aaa52;fill:#7aaa52;color:#7aaa52}.ariel-chart-series-2{stroke:#c6873f;fill:#c6873f;color:#c6873f}.ariel-chart-series-3{stroke:#806aa5;fill:#806aa5;color:#806aa5}.ariel-chart-series-4{stroke:#4d8f91;fill:#4d8f91;color:#4d8f91}
.ariel-chart-svg path[class*="ariel-chart-series-"]{fill:none;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.ariel-hbar-chart{display:grid;gap:9px}.ariel-hbar-row{display:grid;grid-template-columns:minmax(105px,180px) 1fr;gap:9px;align-items:start}.ariel-hbar-label{padding-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700;color:#45535f}.ariel-hbar-series{display:grid;gap:4px}.ariel-hbar-line{display:grid;grid-template-columns:minmax(56px,82px) 1fr 88px;gap:6px;align-items:center;font-size:10px}.ariel-hbar-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#697681}.ariel-hbar-track{height:11px;border-radius:2px;background:#edf1f4;overflow:hidden}.ariel-hbar-track i{display:block;height:100%;min-width:1px;opacity:.88;background-color:currentColor;border-radius:inherit}.ariel-hbar-line strong{text-align:right;font-variant-numeric:tabular-nums;font-weight:650;color:#34424d}

/* Wider historical matrices should remain readable rather than squeezing 12
   months into unusable columns. */
.ariel-module-report-output .ariel-table-wrap{overflow:auto}
.ariel-module-report-output .ariel-table th,.ariel-module-report-output .ariel-table td{font-variant-numeric:tabular-nums}
.ariel-module-report-output .ariel-table th{white-space:nowrap}

@media(max-width:782px){
  .ariel-report-period-popover{grid-template-columns:1fr;left:12px;right:12px;width:auto}
  .ariel-report-comparison-controls{grid-template-columns:1fr}
  .ariel-quarter-multiselect{flex-wrap:wrap}
  .ariel-period-help{grid-column:auto}
  .ariel-report-visual-grid{grid-template-columns:1fr}
  .ariel-hbar-row{grid-template-columns:95px 1fr}.ariel-hbar-line{grid-template-columns:52px 1fr 78px}
}

@media print{
  .ariel-report-chart{break-inside:avoid;box-shadow:none}.ariel-report-visual-grid{grid-template-columns:1fr 1fr}.ariel-chart-svg{min-width:0}.ariel-report-notes{break-inside:avoid}
}
.ariel-module-report-output .ariel-table tfoot,.ariel-report-dashboard~#report-output .ariel-table tfoot,#report-output .ariel-table tfoot{position:sticky;bottom:0;z-index:2}
.ariel-report-total-row td{font-weight:800!important;background:#e8eef5!important;border-top:2px solid #7f95aa!important;color:#243442!important}

/* RC86 — professional management reporting suite -------------------------- */
.ariel-module-report-picker{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;padding-bottom:5px}
.ariel-module-report-picker .button{flex:0 0 auto;white-space:nowrap}
.ariel-module-report-picker .ariel-register-flex-spacer{min-width:8px;flex:1 0 8px}
.ariel-report-dashboard{position:relative;overflow:hidden;background:linear-gradient(135deg,#fbfdff 0%,#f2f7fb 100%);border:1px solid #ccd9e4;border-left:5px solid var(--ariel-accent);box-shadow:0 6px 18px rgba(24,55,78,.06)}
.ariel-report-dashboard:after{content:'';position:absolute;right:-65px;top:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(61,111,166,.10),rgba(61,111,166,0) 70%);pointer-events:none}
.ariel-report-dashboard .ariel-metric{background:rgba(255,255,255,.92);border-color:#d3dee7}
.ariel-report-dashboard .ariel-actions-row{position:relative;z-index:1;padding-top:10px;border-top:1px solid #d9e3ea}
.ariel-report-chart,.ariel-module-report-output .ariel-table-wrap,#report-output .ariel-table-wrap{box-shadow:0 2px 8px rgba(31,56,75,.045)}
.ariel-module-report-result-head{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--ariel-line)}
.ariel-module-report-result-head h3{font-size:18px;letter-spacing:-.01em}
.ariel-report-filter{background:linear-gradient(180deg,#fff,#fbfcfd);border:1px solid #dbe3e9;border-radius:8px;padding:12px}
.ariel-report-filter>.ariel-form-actions{padding-top:3px;border-top:1px solid #e6ebef}
@media(max-width:782px){.ariel-module-report-picker{flex-wrap:nowrap}.ariel-report-dashboard .ariel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* RC87 — Bank classification context integrity */
.ariel-classification-context .ariel-classification-context-line{
  margin-top:10px;
  padding:8px 10px;
  border:1px solid #cbd8e2;
  border-radius:6px;
  background:#f7fafc;
  color:#18364c;
  font-size:13px;
}
.ariel-classification-context-warning{margin-top:10px;}

/* RC95 — Tenant Rental Allocation Review */
.ariel-rental-allocation-review{padding:14px 16px 18px}
.ariel-rental-allocation-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:10px 0 12px}
.ariel-rental-allocation-controls label{display:grid;gap:4px;font-size:12px;font-weight:700;color:var(--ariel-muted);min-width:130px}
.ariel-rental-allocation-controls label select,.ariel-rental-allocation-controls label input{min-height:34px}
.ariel-rental-allocation-controls [data-ra-tenant]{min-width:260px}
.ariel-rental-allocation-table td{vertical-align:middle}
.ariel-rental-allocation-table tr.is-unallocated{background:#fffdf5}
.ariel-rental-allocation-table tr.is-partial{background:#fff8ee}
.ariel-rental-allocation-table tr.is-allocated{background:#fbfcfd}
.ariel-rental-allocation-table td small{display:block;margin-top:4px;color:var(--ariel-muted);line-height:1.25}
.ariel-allocation-confidence{display:inline-flex;align-items:center;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:800;letter-spacing:.04em;margin-right:5px;white-space:nowrap}
.ariel-allocation-confidence.is-high{background:#e8f2ed;color:var(--ariel-success)}
.ariel-allocation-confidence.is-medium{background:#f8f0d9;color:var(--ariel-warning)}
.ariel-allocation-confidence.is-low{background:#eef1f4;color:#59636d}
.ariel-allocation-confidence.is-confirmed{background:#eaf1f6;color:#385b78}
.ariel-allocation-quick-entry{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ariel-allocation-quick-entry select{min-width:108px;max-width:150px}
.ariel-allocation-editor-line{display:grid;grid-template-columns:minmax(260px,1fr) 140px minmax(190px,.8fr) auto;gap:10px;align-items:end;border-bottom:1px solid var(--ariel-line);padding:10px 0}
.ariel-allocation-editor-line label{display:grid;gap:4px}
.ariel-allocation-editor-line .ariel-check{display:flex;align-items:center;gap:7px;min-height:38px}
.ariel-allocation-editor-total{margin-top:12px}
.ariel-text-danger{color:var(--ariel-danger)}
.ariel-callout.is-warning{border-left-color:var(--ariel-warning);background:#fff8e8}
@media(max-width:900px){.ariel-rental-allocation-controls{align-items:stretch}.ariel-rental-allocation-controls>*{flex:1 1 160px}.ariel-rental-allocation-controls [data-ra-tenant]{min-width:0}.ariel-allocation-editor-line{grid-template-columns:1fr 130px}.ariel-allocation-editor-line .ariel-check{grid-column:1/-1}}
@media(max-width:600px){.ariel-allocation-editor-line{grid-template-columns:1fr}.ariel-allocation-editor-line .ariel-check{grid-column:auto}.ariel-rental-allocation-table{min-width:980px}}

/* RC106: CE report filters stay visible; no Period popover required. */
.ariel-module-report-filter-compact>[data-report-preset-field]{min-width:120px}.ariel-module-report-filter-compact>[data-report-from-field],.ariel-module-report-filter-compact>[data-report-to-field]{min-width:118px}.ariel-module-report-filter-compact>[data-ce-summary-filter]{min-width:145px}.ariel-module-report-filter-compact [hidden]{display:none!important}
\n\n/* RC107 — professional inline report filters. */\n.ariel-module-report-filter-compact{display:flex!important;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:8px 10px!important;background:#fff;border:1px solid var(--ariel-line);border-radius:7px}\n.ariel-module-report-filter-compact>label{display:grid;grid-template-rows:auto 32px;gap:3px;min-width:145px;max-width:220px;margin:0;color:#4f5e6a;font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}\n.ariel-module-report-filter-compact>label select,.ariel-module-report-filter-compact>label input{height:32px;min-height:32px;margin:0;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}\n.ariel-module-report-filter-compact>[data-report-year-field]{min-width:110px;max-width:125px}\n.ariel-module-report-filter-compact>[data-report-preset-field]{min-width:125px;max-width:145px}\n.ariel-module-report-filter-compact>[data-report-from-field],.ariel-module-report-filter-compact>[data-report-to-field]{min-width:125px;max-width:150px}\n.ariel-module-report-filter-compact>[data-ce-expense-filter]{min-width:165px;max-width:235px}\n.ariel-module-report-filter-compact>[data-ce-summary-group-filter]{min-width:130px;max-width:150px}\n.ariel-report-comparison-field{min-width:170px!important;max-width:190px!important;position:relative}\n.ariel-filter-help-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:4px;border:1px solid #9fb0bd;border-radius:50%;color:#536b7c;font-size:9px;font-weight:850;line-height:1;text-transform:none;cursor:help;vertical-align:middle}\n.ariel-quarter-multiselect-inline{align-self:flex-end;min-height:32px;margin:0;padding:5px 8px;border:1px solid var(--ariel-line);border-radius:4px;background:#fff}\n.ariel-quarter-multiselect-inline legend{display:none}\n.ariel-module-report-filter-compact .ariel-module-report-actions{align-self:flex-end;margin-left:auto;min-height:32px;display:flex;gap:5px}\n.ariel-module-report-filter-compact .ariel-module-report-actions .button{height:32px;min-height:32px;padding:4px 11px}\n.ariel-module-report-filter-compact [hidden]{display:none!important}\n@media(min-width:1200px){.ariel-module-report-filter-compact{flex-wrap:nowrap}.ariel-module-report-filter-compact>label{flex:0 1 auto}.ariel-module-report-filter-compact .ariel-module-report-actions{flex:0 0 auto}}\n@media(max-width:782px){.ariel-module-report-filter-compact{align-items:stretch}.ariel-module-report-filter-compact>label{flex:1 1 145px;max-width:none}.ariel-module-report-filter-compact .ariel-module-report-actions{width:100%;margin-left:0}.ariel-quarter-multiselect-inline{width:100%;flex-wrap:wrap}}\n
/* RC108 — compact one-line C.E. workspace controls. */
.ariel-ce-global-controls,
.ariel-ce-tab-controls,
.ariel-module-report-picker,
.ariel-module-report-filter-compact,
.ariel-report-dashboard .ariel-actions-row{
  flex-wrap:nowrap!important;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:thin;
}
.ariel-ce-global-controls>*:not(.ariel-register-flex-spacer),
.ariel-ce-tab-controls>*:not(.ariel-register-flex-spacer),
.ariel-module-report-picker>*:not(.ariel-register-flex-spacer),
.ariel-module-report-filter-compact>label,
.ariel-module-report-filter-compact .ariel-module-report-actions,
.ariel-report-dashboard .ariel-actions-row>*{
  flex:0 0 auto;
  white-space:nowrap;
}
.ariel-module-report-filter-compact{align-items:flex-end!important;}
.ariel-module-report-filter-compact .ariel-module-report-actions{margin-left:auto;}
.ariel-module-report-picker .button{white-space:nowrap!important;}
.ariel-ce-tabs-compact{overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:thin;}
.ariel-ce-tabs-compact>button{flex:0 0 auto;white-space:nowrap;}
@media(max-width:782px){
  .ariel-ce-global-controls,.ariel-ce-tab-controls,.ariel-module-report-filter-compact{flex-wrap:nowrap!important;align-items:flex-end!important;}
  .ariel-module-report-filter-compact>label{max-width:220px!important;flex:0 0 auto!important;}
  .ariel-module-report-filter-compact .ariel-module-report-actions{width:auto!important;margin-left:auto!important;}
}

/* RC109 — C.E. reporting hierarchy and single-line control polish. */
.ariel-module-report-picker{gap:5px!important;}
.ariel-module-report-picker .button{padding-left:9px!important;padding-right:9px!important;}
.ariel-module-report-filter-compact{gap:6px!important;padding:7px 8px!important;}
.ariel-module-report-filter-compact>label{min-width:118px!important;max-width:190px!important;}
.ariel-module-report-filter-compact>[data-ce-expense-filter]{min-width:150px!important;max-width:205px!important;}
.ariel-module-report-filter-compact>[data-ce-tenant-filter]{min-width:150px!important;max-width:215px!important;}
.ariel-module-report-filter-compact .ariel-report-comparison-field{min-width:145px!important;max-width:165px!important;}
.ariel-module-report-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* RC110 — C.E. operational workflows use the assigned C.E. account automatically; no account-picker styling required. */

/* RC111 — guided C.E. invoice preparation wizard */
.ariel-ce-invoice-wizard{width:min(1120px,96vw);max-width:1120px}
.ariel-ce-wizard-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 18px}
.ariel-ce-wizard-steps span{display:flex;align-items:center;gap:7px;min-width:0;padding:9px 10px;border:1px solid #d9e1e8;border-radius:8px;background:#f7f9fb;color:#5a6876;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-ce-wizard-steps span b{display:inline-grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:#e6edf3;color:#38536b;font-size:11px}
.ariel-ce-wizard-steps span.is-current{border-color:#1e557c;background:#edf5fb;color:#153f5d}
.ariel-ce-wizard-steps span.is-current b,.ariel-ce-wizard-steps span.is-done b{background:#1e557c;color:#fff}
.ariel-ce-wizard-steps span.is-done{color:#274d67;background:#f2f7fa}
.ariel-quiet-summary{padding:9px 12px;margin:8px 0;border:1px solid #dce4ea;border-radius:7px;background:#fafcfd;color:#334b5f}
.ariel-ce-validation-list{display:grid;gap:7px;margin:12px 0}
.ariel-ce-validation-list>div{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:9px 11px;border-radius:7px;border:1px solid #dce4ea}
.ariel-ce-validation-list .is-blocking{border-color:#d9a7a7;background:#fff5f5}.ariel-ce-validation-list .is-info{background:#f6f9fb}
.ariel-success{padding:11px 13px;border:1px solid #b8d5c0;background:#f2faf4;border-radius:7px;color:#264d31;margin:10px 0}
.ariel-ce-allocation-list{display:grid;gap:9px;margin:12px 0}
.ariel-ce-allocation-preview{border:1px solid #d8e0e6;border-radius:8px;background:#fff;overflow:hidden}
.ariel-ce-allocation-preview>summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:11px 13px;cursor:pointer;background:#f8fafb;list-style:none}
.ariel-ce-allocation-preview>summary::-webkit-details-marker{display:none}.ariel-ce-allocation-preview>summary span:first-child{display:grid;gap:2px}.ariel-ce-allocation-preview>summary small{font-weight:400;color:#667787}
.ariel-ce-allocation-preview .ariel-table-wrap{border:0;border-top:1px solid #e2e8ed;border-radius:0}
.ariel-ce-allocation-totals,.ariel-ce-reconcile{display:flex;gap:18px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding:10px 12px;background:#fafcfd;border-top:1px solid #e1e7eb;font-size:13px}
.ariel-ce-reconcile{margin:12px 0;border:1px solid #d9e2e8;border-radius:8px;justify-content:flex-start}
.ariel-confirm-choice{display:flex!important;align-items:flex-start;gap:9px;margin:13px 0;padding:12px;border:1px solid #d3dee6;border-radius:8px;background:#f8fbfd}
.ariel-confirm-choice input{margin-top:3px}.ariel-confirm-choice span{display:grid;gap:3px}.ariel-confirm-choice small{font-weight:400;color:#657584}
.ariel-final-confirm{padding:4px 0}.ariel-final-confirm h3{margin-bottom:3px}.ariel-ce-prepared-success{padding:20px}
.ariel-ce-wizard-actions{position:sticky;bottom:-1px;margin-top:18px;padding-top:12px;background:#fff;border-top:1px solid #dde4e9;z-index:2}
@media(max-width:760px){.ariel-ce-wizard-steps{grid-template-columns:1fr;gap:4px}.ariel-ce-wizard-steps span:not(.is-current){display:none}.ariel-ce-validation-list>div{grid-template-columns:1fr}.ariel-ce-reconcile{align-items:flex-start;flex-direction:column;gap:5px}}
.ariel-ce-template-selection-preview{margin:10px 0 14px}
.ariel-ce-template-selection-preview .ariel-table-wrap{max-height:320px;overflow:auto}


/* RC113 — polished C.E. invoice wizard date controls */
.ariel-ce-wizard-date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 4px}
.ariel-ce-date-field{display:grid;gap:6px;min-width:0}
.ariel-ce-date-label{font-size:12px;font-weight:700;color:#405466;text-transform:uppercase;letter-spacing:.035em}
.ariel-ce-date-shell{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:stretch;min-height:42px;border:1px solid #cbd6df;border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(20,44,61,.04);transition:border-color .15s ease,box-shadow .15s ease}
.ariel-ce-date-shell:focus-within{border-color:#1e557c;box-shadow:0 0 0 3px rgba(30,85,124,.10)}
.ariel-ce-date-display{width:100%!important;min-width:0!important;height:42px!important;margin:0!important;padding:9px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:600 14px/1.2 inherit!important;color:#223746!important}
.ariel-ce-date-display:focus{outline:none!important;box-shadow:none!important}
.ariel-ce-date-display.is-invalid{background:#fff5f5!important;color:#9b2c2c!important}
.ariel-ce-date-picker{position:relative;display:grid;place-items:center;border-left:1px solid #dce4ea;background:#f5f8fa;color:#2e5875;overflow:hidden}
.ariel-ce-date-picker:hover{background:#eaf2f7}
.ariel-ce-date-picker svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ariel-ce-date-native{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;padding:0!important;margin:0!important;border:0!important}
.ariel-ce-date-field small{font-size:11px;color:#748493;font-weight:400}
@media(max-width:760px){.ariel-ce-wizard-date-grid{grid-template-columns:1fr}.ariel-ce-date-field small{display:none}}

/* RC114 — reliable C.E. wizard calendar trigger */
.ariel-ce-date-shell{position:relative}
.ariel-ce-date-picker{appearance:none;-webkit-appearance:none;width:42px;height:42px;margin:0;padding:0;border:0;border-left:1px solid #dce4ea;border-radius:0;background:#f5f8fa;color:#2e5875;cursor:pointer;display:grid;place-items:center}
.ariel-ce-date-picker:hover,.ariel-ce-date-picker:focus-visible{background:#eaf2f7;color:#173f5b;outline:none}
.ariel-ce-date-picker:focus-visible{box-shadow:inset 0 0 0 2px #1e557c}
.ariel-ce-date-native{position:absolute!important;right:2px!important;bottom:2px!important;width:1px!important;height:1px!important;opacity:.001!important;pointer-events:none!important;padding:0!important;margin:0!important;border:0!important}
.ariel-ce-date-native{inset:auto 2px 2px auto!important}

/* RC115 — Expense Type directory: compact professional single-line filter toolbar. */
#expense-type-directory-card .ariel-card-head{
  align-items:center;
  margin-bottom:8px;
}
#expense-type-directory-card .ariel-card-head p{
  margin-top:3px;
  font-size:11px;
}
.ariel-expense-type-filters{
  display:flex!important;
  align-items:flex-end;
  flex-wrap:nowrap!important;
  gap:6px;
  margin:4px -20px 8px;
  padding:7px 20px 8px;
  overflow-x:auto;
  overflow-y:hidden;
  border:0!important;
  border-top:1px solid var(--ariel-line)!important;
  border-bottom:1px solid var(--ariel-line)!important;
  border-radius:0!important;
  background:#fbfcfd!important;
  scrollbar-width:thin;
}
.ariel-expense-type-filters .ariel-et-filter{
  display:grid!important;
  grid-template-rows:11px 31px;
  gap:3px!important;
  flex:0 0 auto;
  margin:0!important;
  min-width:0;
  color:#5d6973!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ariel-expense-type-filters .ariel-et-filter input,
.ariel-expense-type-filters .ariel-et-filter select{
  width:100%!important;
  height:31px!important;
  min-height:31px!important;
  max-width:none!important;
  margin:0!important;
  padding:3px 27px 3px 8px!important;
  border:1px solid #c9d2d9!important;
  border-radius:5px!important;
  background-color:#fff!important;
  box-shadow:none!important;
  color:#202a33!important;
  font-size:11px!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.ariel-expense-type-filters .ariel-et-filter input:focus,
.ariel-expense-type-filters .ariel-et-filter select:focus{
  border-color:#7f9bb0!important;
  box-shadow:0 0 0 1px #7f9bb0!important;
  outline:0!important;
}
.ariel-expense-type-filters .ariel-et-filter-search{width:245px}
.ariel-expense-type-filters .ariel-et-filter-search input{padding-right:8px!important}
.ariel-expense-type-filters .ariel-et-filter-category{width:170px}
.ariel-expense-type-filters .ariel-et-filter-routing{width:155px}
.ariel-expense-type-filters .ariel-et-filter-status{width:105px}
.ariel-expense-type-filters .ariel-et-filter-usage{width:120px}
.ariel-expense-type-filters .ariel-et-filter-duplicates{width:132px}
.ariel-expense-type-filters .ariel-et-filter-sort{width:132px}
.ariel-expense-type-filters .ariel-et-filter-display{width:145px}
#expense-type-directory-card .ariel-directory-toolbar{
  min-height:30px;
  margin:0 0 7px;
  padding:0 1px;
}
#expense-type-directory-card .ariel-directory-toolbar .ariel-muted{
  font-size:11px;
}
#expense-type-directory-card .ariel-directory-toolbar .button.button-small{
  min-height:27px;
  padding:2px 8px;
  font-size:10px;
}
@media(max-width:782px){
  .ariel-expense-type-filters{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
}

/* RC117 — module-report Period controls use an inline native select instead of a clipped popover. */
.ariel-module-report-filter-compact>[data-report-preset-field] select{cursor:pointer;}


/* RC118 — compact filter/date popovers are portalled to the viewport so one-line
   horizontally scrollable toolbars cannot clip or misplace them. */
.ariel-compact-filter-popover.ariel-floating-filter-popover{
  position:fixed!important;
  right:auto!important;
  z-index:100000!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  background:#fff;
}

/* RC124: keep Manual Assignment save controls visible in long classification panels. */
.ariel-panel-form > .ariel-form-actions:last-of-type{position:sticky;bottom:0;z-index:8;background:var(--ariel-surface,#fff);padding:12px 0 10px;border-top:1px solid var(--ariel-border,#d9e0e6);}
.ariel-panel-form > .ariel-form-message:last-child{position:sticky;bottom:58px;z-index:9;background:var(--ariel-surface,#fff);}

/* RC132 — C.E. repair simplification and supplier-invoice attachment links. */
.ariel-ce-document-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:600;white-space:nowrap}
.ariel-ce-document-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ariel-ce-compact-register .ariel-ce-document-link span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ariel-ce-compact-register .ariel-ce-document-link{justify-content:center;min-width:30px}
.ariel-ce-invoice-wizard .ariel-quiet-summary small{display:block;margin-top:4px;font-weight:400;opacity:.75}
.ariel-ce-validation-list [data-wiz-finalize-expense]{margin-left:auto;white-space:nowrap}

/* RC133 — BANK search is database-backed across complete stored history; no visual grammar change. */

/* RC134 — compact C.E. invoice / entry workspace and always-visible panel actions. */
.ariel-panel-head{
  padding:12px 16px!important;
  align-items:center!important;
  min-height:54px;
}
.ariel-panel-head h2{font-size:18px!important;line-height:1.2!important}
.ariel-panel-head p{display:none!important}
.ariel-panel-form{padding:12px 16px 70px!important;gap:9px!important}
.ariel-panel-body{padding:12px 16px 50px!important;overflow-x:hidden}
.ariel-panel .ariel-form-row{gap:9px!important}
.ariel-panel .ariel-form label{gap:4px!important;font-size:12px}
.ariel-panel .ariel-form input[type=text],
.ariel-panel .ariel-form input[type=search],
.ariel-panel .ariel-form input[type=email],
.ariel-panel .ariel-form input[type=number],
.ariel-panel .ariel-form input[type=date],
.ariel-panel .ariel-form input[type=datetime-local],
.ariel-panel .ariel-form select{
  min-height:34px!important;
  height:34px!important;
  padding:4px 8px!important;
  border-radius:5px!important;
  font-size:12px!important;
}
.ariel-panel .button{
  min-height:31px!important;
  height:auto!important;
  padding:4px 10px!important;
  border:1px solid #aebbc5!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#243746!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
.ariel-panel .button:hover,.ariel-panel .button:focus{background:#f3f7fa!important;border-color:#7f95a5!important;color:#173f5b!important}
.ariel-panel .button.button-primary{
  background:#1e557c!important;
  border-color:#1e557c!important;
  color:#fff!important;
}
.ariel-panel .button.button-primary:hover,.ariel-panel .button.button-primary:focus{background:#174766!important;border-color:#174766!important;color:#fff!important}
.ariel-panel .ariel-button-danger{border-color:#c89494!important;color:#8c2828!important;background:#fffafa!important}
.ariel-panel .ariel-button-danger:hover,.ariel-panel .ariel-button-danger:focus{border-color:#a94444!important;background:#fff1f1!important;color:#761d1d!important}
.ariel-panel .ariel-actions-row{justify-content:flex-start!important;gap:6px!important;max-width:100%;flex-wrap:wrap!important}
.ariel-panel-save-actions{
  position:sticky!important;
  left:0!important;
  right:0!important;
  bottom:-1px!important;
  z-index:12!important;
  justify-content:flex-start!important;
  gap:6px!important;
  margin:3px -2px 0!important;
  padding:9px 2px 8px!important;
  background:#fff!important;
  border-top:1px solid #d9e0e6!important;
  box-shadow:0 -6px 12px rgba(23,48,65,.05);
}
.ariel-panel-save-actions .button-primary{order:-1}
.ariel-panel-form>.ariel-form-message{min-height:0!important;margin:0!important;padding:0!important;position:static!important}
.ariel-panel-form>.ariel-form-message:not(:empty){padding:6px 8px!important;border-radius:5px;background:#f5f8fa}
.ariel-ce-record-actions{
  position:sticky;
  top:54px;
  z-index:7;
  margin:0 -16px 10px!important;
  padding:8px 16px!important;
  border-bottom:1px solid #e1e6ea;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(4px);
}

/* C.E. invoice: one compact overview; detail/history stay collapsed until requested. */
.ariel-ce-invoice-overview{border:1px solid #d8e0e6;border-radius:8px;background:#fff;overflow:hidden;margin:0 0 8px}
.ariel-ce-invoice-context{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e5eaee;background:#fafcfd}
.ariel-ce-invoice-context>div{display:grid;gap:2px;min-width:0}
.ariel-ce-invoice-context>div>strong{font-size:16px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-ce-invoice-context>div>span{font-size:11px;color:#687987}
.ariel-ce-invoice-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #e5eaee}
.ariel-ce-invoice-metrics>div{padding:9px 12px;border-right:1px solid #e5eaee}
.ariel-ce-invoice-metrics>div:last-child{border-right:0}
.ariel-ce-invoice-metrics span{display:block;color:#687987;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.ariel-ce-invoice-metrics strong{display:block;margin-top:2px;font-size:15px;color:#223746}
.ariel-ce-invoice-meta{display:flex;flex-wrap:wrap;gap:0;padding:0 6px}
.ariel-ce-invoice-meta>span{display:flex;gap:5px;align-items:baseline;padding:7px 6px;min-width:160px;font-size:11px;color:#455866}
.ariel-ce-invoice-meta>span b{color:#6a7883;font-size:9px;letter-spacing:.035em;text-transform:uppercase}
.ariel-ce-invoice-meta>span.is-wide{flex:1 1 300px;overflow-wrap:anywhere}
.ariel-inline-notice{margin:7px 0;padding:7px 9px;border-left:3px solid #1e557c;background:#f1f6fa;color:#334b5f;font-size:11px;line-height:1.35}
.ariel-inline-notice.is-warning{border-left-color:#b9831f;background:#fff8e9;color:#5b4618}
.ariel-record-collapse{margin:8px 0;border:1px solid #d8e0e6;border-radius:7px;background:#fff;overflow:hidden}
.ariel-record-collapse>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;cursor:pointer;list-style:none;background:#f8fafb;font-weight:800;color:#2b3f4d}
.ariel-record-collapse>summary::-webkit-details-marker{display:none}
.ariel-record-collapse>summary:after{content:'▾';font-size:11px;color:#627684;transition:transform .15s ease}
.ariel-record-collapse[open]>summary:after{transform:rotate(180deg)}
.ariel-record-collapse>summary span{font-size:13px}
.ariel-record-collapse>summary em{margin-left:auto;color:#687987;font-size:10px;font-style:normal;font-weight:600;white-space:nowrap}
.ariel-record-collapse-body{padding:8px 10px 10px}
.ariel-record-collapse-body .ariel-table-wrap{margin:0}
.ariel-record-subsection+.ariel-record-subsection{margin-top:12px;padding-top:10px;border-top:1px solid #e5eaee}
.ariel-record-subsection .ariel-record-section-head{margin-bottom:6px}
.ariel-empty-compact{padding:8px!important;margin:0!important}

/* New/Edit C.E.: compact two-column form, optional notes collapsed, allocation preview collapsed. */
.ariel-form-hint{margin:0 0 2px;padding:7px 9px;border-radius:5px;background:#f4f7f9;color:#526574;font-size:11px;line-height:1.35}
.ariel-form-hint.is-inline{margin:0;padding:6px 8px}
.ariel-ce-expense-editor{display:grid;gap:8px}
.ariel-ce-expense-editor .ariel-form-row{gap:8px!important}
.ariel-ce-static-field{display:grid;grid-template-rows:auto 34px;gap:4px;min-width:0}
.ariel-ce-static-field>span,.ariel-ce-file-field>span{font-size:12px;font-weight:600;color:#3b4650}
.ariel-ce-static-field>strong{display:flex;align-items:center;min-height:34px;padding:4px 8px;border:1px solid #dbe2e7;border-radius:5px;background:#f8fafb;color:#344957;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-ce-file-field{display:grid;grid-template-rows:auto 34px;gap:4px;min-width:0}
.ariel-ce-file-field input[type=file]{width:100%;height:34px;padding:0;border:1px solid #cbd2d8;border-radius:5px;background:#fff;color:#657583;font-size:11px;overflow:hidden}
.ariel-ce-file-field input[type=file]::file-selector-button{height:32px;margin:0 8px 0 0;padding:0 10px;border:0;border-right:1px solid #cbd2d8;background:#f3f6f8;color:#304756;font-weight:700;cursor:pointer}
.ariel-optional-field{border:1px solid #dce3e8;border-radius:6px;background:#fbfcfd;overflow:hidden}
.ariel-optional-field>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;cursor:pointer;list-style:none;color:#3f5260;font-size:11px;font-weight:700}
.ariel-optional-field>summary::-webkit-details-marker{display:none}
.ariel-optional-field>summary:after{content:'+';font-size:14px;color:#6c7c88}
.ariel-optional-field[open]>summary:after{content:'−'}
.ariel-optional-field>summary em{margin-left:auto;color:#7a8893;font-size:9px;font-style:normal;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.ariel-optional-field>div{padding:0 9px 8px}
.ariel-ce-expense-editor .ariel-optional-field textarea{min-height:54px!important;height:54px;padding:6px 8px!important;font-size:12px!important;resize:vertical}
.ariel-ce-template-field{display:grid;gap:3px}
.ariel-ce-template-field>small{font-size:10px!important;color:#71808c!important}
.ariel-ce-template-selection-preview{margin:0!important}
.ariel-ce-inline-preview{border:1px solid #d9e1e7;border-radius:6px;background:#fff;overflow:hidden}
.ariel-ce-inline-preview>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;cursor:pointer;list-style:none;background:#f8fafb;font-size:11px;color:#405563}
.ariel-ce-inline-preview>summary::-webkit-details-marker{display:none}
.ariel-ce-inline-preview>summary span{font-weight:700}
.ariel-ce-inline-preview>summary strong{font-size:10px;font-weight:700;text-align:right;color:#5c6f7d}
.ariel-ce-inline-preview-body{padding:7px 8px 8px}
.ariel-ce-inline-preview-body .ariel-table-wrap{max-height:220px!important;overflow:auto}
.ariel-warning-compact{margin:0!important;padding:7px 9px!important;font-size:11px}
.ariel-ce-expense-editor [hidden]{display:none!important}

/* Important C.E. actions appear before horizontally-scrollable filters. */
.ariel-ce-primary-action{flex:0 0 auto!important;white-space:nowrap!important}
.ariel-ce-global-controls,.ariel-ce-tab-controls{align-items:center!important}

@media(max-width:760px){
  .ariel-panel{width:100vw!important;max-width:100vw!important}
  .ariel-panel-head{padding:10px 12px!important;min-height:50px}
  .ariel-panel-form,.ariel-panel-body{padding-left:12px!important;padding-right:12px!important}
  .ariel-ce-record-actions{top:50px;margin-left:-12px!important;margin-right:-12px!important;padding-left:12px!important;padding-right:12px!important}
  .ariel-ce-invoice-metrics{grid-template-columns:1fr 1fr 1fr}
  .ariel-ce-invoice-meta>span{flex:1 1 145px;min-width:0}
  .ariel-ce-expense-editor .ariel-form-row{grid-template-columns:1fr!important}
  .ariel-ce-static-field,.ariel-ce-file-field{grid-template-rows:auto 34px}
  .ariel-record-collapse>summary em{max-width:46%;overflow:hidden;text-overflow:ellipsis}
}

/* RC136 — BANK correction workspace: one compact working line, hidden single-account identity, separate classification columns. */
#bank-raw-register .ariel-bank-correction-controls{
  display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;
  overflow:visible!important;padding:6px 0!important;min-width:0
}
#bank-raw-register .ariel-bank-correction-controls>strong{flex:0 0 auto;white-space:nowrap;margin-right:0}
#bank-raw-register .ariel-bank-correction-controls>input[data-raw-search]{
  flex:0 1 280px!important;width:clamp(190px,22vw,300px)!important;min-width:170px!important;max-width:300px!important
}
#bank-raw-register .ariel-bank-correction-controls>select[data-raw-purpose]{
  flex:0 1 235px!important;width:clamp(180px,19vw,245px)!important;min-width:165px!important;max-width:245px!important
}
#bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type]{
  flex:0 1 225px!important;width:clamp(175px,18vw,235px)!important;min-width:160px!important;max-width:235px!important
}
#bank-raw-register .ariel-bank-correction-controls>select[data-raw-year]{
  flex:0 0 116px!important;width:116px!important;min-width:116px!important;max-width:116px!important
}
#bank-raw-register .ariel-bank-correction-controls>.ariel-register-more{flex:0 0 auto!important;margin-left:0!important}
.ariel-bank-account-info{position:relative;flex:0 0 auto;margin:0}
.ariel-bank-account-info>summary{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;box-sizing:border-box;border:1px solid #aebbc5;border-radius:50%;background:#fff;color:#405b6c;font-size:12px;font-weight:800;cursor:pointer;list-style:none;user-select:none}
.ariel-bank-account-info>summary::-webkit-details-marker{display:none}
.ariel-bank-account-info[open]>summary{background:#edf4f8;border-color:#7693a6;color:#183e58}
.ariel-bank-account-popover{position:absolute;z-index:80;left:0;top:calc(100% + 6px);display:grid;gap:6px;width:300px;max-width:min(300px,calc(100vw - 30px));padding:10px 11px;border:1px solid #cbd6dd;border-radius:7px;background:#fff;box-shadow:0 10px 26px rgba(32,54,69,.18);font-size:11px;color:#506372}
.ariel-bank-account-popover>strong{font-size:12px;color:#253e4e}
.ariel-bank-account-popover>span{font-weight:700;color:#324d5e}
.ariel-bank-account-popover>small{display:block;line-height:1.3;color:#6e7e89}
.ariel-bank-account-popover select{width:100%;min-width:0!important;max-width:none!important}
#bank-raw-register .ariel-raw-correction-bulk{display:flex;align-items:center;gap:6px;min-height:30px;margin:0 0 5px;padding:4px 6px;border:1px solid #d9e2e8;border-radius:5px;background:#f8fafb}
#bank-raw-register .ariel-raw-correction-bulk:not(.has-selection){background:#fbfcfd;color:#72808a}
#bank-raw-register .ariel-raw-correction-bulk small{margin-left:2px;white-space:nowrap}
#bank-raw-register .ariel-raw-correction-bulk .button{min-height:26px!important;height:26px!important;padding:0 9px!important;line-height:24px!important}
#bank-raw-register .ariel-bank-statement .ariel-table-wrap{overflow-x:auto}
#bank-raw-register .ariel-bank-statement .ariel-table{min-width:1180px;table-layout:fixed}
#bank-raw-register .ariel-bank-statement .ariel-table th,
#bank-raw-register .ariel-bank-statement .ariel-table td{padding-left:7px!important;padding-right:7px!important}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(1),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(1){width:32px!important;min-width:32px!important;max-width:32px!important;text-align:center}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(2),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(2){width:88px!important;min-width:88px!important;max-width:88px!important}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(3),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(3){width:25%!important;max-width:none!important}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(4),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(4){width:15%!important;max-width:none!important}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(5),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(5){width:18%!important;max-width:none!important}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(6),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(6){width:18%!important;max-width:none!important}
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(7),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(7),
#bank-raw-register .ariel-bank-statement .ariel-table th:nth-child(8),
#bank-raw-register .ariel-bank-statement .ariel-table td:nth-child(8){width:104px!important;min-width:104px!important;max-width:104px!important;text-align:right!important;white-space:nowrap}
#bank-raw-register .ariel-bank-statement [data-bank-raw-select]{margin:0;vertical-align:middle}

@media(max-width:1180px){
  #bank-raw-register .ariel-bank-correction-controls{flex-wrap:wrap!important}
  #bank-raw-register .ariel-bank-correction-controls>input[data-raw-search]{flex:1 1 230px!important;width:auto!important;max-width:none!important}
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-purpose],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type]{flex:1 1 190px!important;width:auto!important;max-width:none!important}
}
@media(max-width:720px){
  #bank-raw-register .ariel-bank-correction-controls{align-items:stretch!important}
  #bank-raw-register .ariel-bank-correction-controls>strong{align-self:center}
  #bank-raw-register .ariel-bank-correction-controls>input[data-raw-search],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-purpose],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type]{flex:1 1 100%!important;min-width:0!important}
  #bank-raw-register .ariel-raw-correction-bulk{flex-wrap:wrap}
}
/* Read-only BANK viewers do not receive the selection column; keep the seven-column layout aligned. */
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(1),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(1){width:88px!important;min-width:88px!important;max-width:88px!important;text-align:left!important}
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(2),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(2){width:25%!important;min-width:0!important;max-width:none!important}
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(3),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(3){width:15%!important;min-width:0!important;max-width:none!important}
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(4),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(4){width:18%!important;min-width:0!important;max-width:none!important;text-align:left!important}
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(5),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(5){width:18%!important;min-width:0!important;max-width:none!important}
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(6),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(6),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table th:nth-child(7),
#bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement .ariel-table td:nth-child(7){width:104px!important;min-width:104px!important;max-width:104px!important;text-align:right!important;white-space:nowrap}

/* RC139 — New/Edit C.E. is a compact data-entry sheet, not a long admin form. */
.ariel-ce-expense-panel{width:min(560px,94vw)!important}
.ariel-ce-expense-panel .ariel-panel-form{padding-top:10px!important;gap:7px!important}
.ariel-ce-expense-editor{gap:7px!important}
.ariel-ce-entry-context{
  display:flex;align-items:center;gap:8px;min-height:28px;padding:4px 8px;
  border:1px solid #e0e6ea;border-radius:6px;background:#f8fafb;color:#405563
}
.ariel-ce-entry-context>span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#74838e}
.ariel-ce-entry-context>strong{font-size:12px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-ce-expense-panel .ariel-ce-entry-row{gap:8px!important}
.ariel-ce-expense-panel .ariel-ce-entry-row>label,
.ariel-ce-expense-panel .ariel-ce-entry-row>.ariel-ce-file-field,
.ariel-ce-expense-panel .ariel-ce-entry-row>.ariel-ce-static-field{min-width:0}
.ariel-ce-expense-panel .ariel-ce-core-row{grid-template-columns:minmax(0,1.45fr) minmax(145px,.75fr)!important}

/* Compact file picker: keep the browser file input accessible but make the visible control consistent. */
.ariel-ce-file-field{grid-template-rows:auto 34px!important}
.ariel-ce-file-control{
  position:relative;display:flex;align-items:center;min-width:0;height:34px;
  border:1px solid #cbd2d8;border-radius:5px;background:#fff;overflow:hidden
}
.ariel-ce-file-control>input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;z-index:2}
.ariel-ce-file-action{flex:0 0 auto;display:flex;align-items:center;height:100%;padding:0 10px;border-right:1px solid #d7dee3;background:#f4f7f9;color:#2e4657;font-size:11px;font-weight:700}
.ariel-ce-file-name{display:block;min-width:0;padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71808b;font-size:10px;font-weight:500}
.ariel-ce-file-control:focus-within{border-color:#6c8da4;box-shadow:0 0 0 1px #6c8da4}

/* Rare fields stay out of the main entry path. */
.ariel-ce-optional-details>summary{padding:6px 9px!important}
.ariel-ce-optional-body{display:grid;grid-template-columns:135px minmax(0,1fr);gap:8px;align-items:start}
.ariel-ce-optional-body>label{min-width:0}
.ariel-ce-optional-body textarea{min-height:46px!important;height:46px!important}

/* Allocation is automatic in normal use; details/override are deliberately collapsed. */
.ariel-ce-allocation-panel{border:1px solid #dce3e8;border-radius:6px;background:#fbfcfd;overflow:hidden}
.ariel-ce-allocation-panel>summary{display:flex;align-items:center;gap:10px;padding:7px 9px;cursor:pointer;list-style:none;color:#405563;font-size:11px}
.ariel-ce-allocation-panel>summary::-webkit-details-marker{display:none}
.ariel-ce-allocation-panel>summary:after{content:'▾';margin-left:2px;color:#6e7f8b;font-size:10px;transition:transform .15s ease}
.ariel-ce-allocation-panel[open]>summary:after{transform:rotate(180deg)}
.ariel-ce-allocation-panel>summary>span{font-weight:700}
.ariel-ce-allocation-panel>summary>strong{margin-left:auto;max-width:72%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667986;font-size:10px;font-weight:700}
.ariel-ce-allocation-body{display:grid;gap:7px;padding:0 9px 9px;border-top:1px solid #e6ebee;background:#fff}
.ariel-ce-allocation-body>.ariel-ce-template-field{padding-top:8px}
.ariel-ce-allocation-body .ariel-form-hint{background:#f7f9fa!important;border:0!important}
.ariel-ce-allocation-body .ariel-optional-field textarea{min-height:46px!important;height:46px!important}

/* No permanent guidance box at the top of New C.E.; labels and the collapsed Allocation section carry the workflow. */
.ariel-ce-expense-panel .ariel-panel-save-actions{margin-top:2px!important}

@media(max-width:760px){
  .ariel-ce-expense-panel{width:100vw!important;max-width:100vw!important}
  .ariel-ce-expense-panel .ariel-ce-entry-row,
  .ariel-ce-expense-panel .ariel-ce-core-row{grid-template-columns:1fr!important}
  .ariel-ce-optional-body{grid-template-columns:1fr!important}
  .ariel-ce-allocation-panel>summary>strong{max-width:60%}
}


/* RC140 — BANK active-filter clarity */
.ariel-bank-correction-controls .ariel-bank-clear-filters{white-space:nowrap;}
.ariel-bank-active-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;}
.ariel-bank-active-filters[hidden]{display:none!important;}
.ariel-bank-active-filters>strong{font-size:11px;color:#334155;}
.ariel-bank-active-filters>span{display:inline-flex;align-items:center;max-width:260px;padding:2px 7px;border:1px solid #f0cf86;border-radius:999px;background:#fff7df;color:#6b4a00;font-size:11px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ariel-bank-filter-empty p{max-width:780px;margin-left:auto;margin-right:auto;}
.ariel-bank-filter-empty .button{margin-top:4px;}

/* RC141 — BANK Entity multi-select filter */
#bank-raw-register .ariel-bank-entity-filter{position:relative;flex:0 1 190px;min-width:150px;max-width:210px;margin:0;z-index:20}
#bank-raw-register .ariel-bank-entity-filter>summary{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;height:29px;min-height:29px;box-sizing:border-box;padding:3px 8px;list-style:none;white-space:nowrap;overflow:hidden}
#bank-raw-register .ariel-bank-entity-filter>summary::-webkit-details-marker{display:none}
#bank-raw-register .ariel-bank-entity-filter>summary [data-raw-entity-summary]{min-width:0;overflow:hidden;text-overflow:ellipsis}
#bank-raw-register .ariel-bank-entity-filter[open]>summary{border-color:#6b879a;background:#edf4f8;color:#173f59}
#bank-raw-register .ariel-bank-entity-popover{position:absolute;z-index:120;left:0;top:calc(100% + 5px);width:330px;max-width:min(330px,calc(100vw - 28px));padding:9px;border:1px solid #c8d4dc;border-radius:7px;background:#fff;box-shadow:0 12px 30px rgba(29,49,62,.2)}
#bank-raw-register .ariel-bank-entity-filter-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
#bank-raw-register .ariel-bank-entity-filter-head>strong{font-size:12px;color:#263f50}
#bank-raw-register .ariel-bank-entity-filter-head .button-link{border:0;background:transparent;padding:0;color:#1b5c85;cursor:pointer;font:inherit;font-size:11px;text-decoration:underline}
#bank-raw-register .ariel-bank-entity-popover>input[type=search]{width:100%!important;max-width:none!important;min-width:0!important;height:30px;margin:0 0 7px;padding:3px 7px;font-size:12px}
#bank-raw-register .ariel-bank-entity-options{max-height:330px;overflow:auto;padding-right:2px}
#bank-raw-register .ariel-bank-entity-options section{margin:0 0 7px}
#bank-raw-register .ariel-bank-entity-options h4{position:sticky;top:0;z-index:1;margin:0;padding:4px 3px 3px;background:#fff;color:#647682;font-size:10px;line-height:1.2;text-transform:uppercase;letter-spacing:.035em}
#bank-raw-register .ariel-bank-entity-options label{display:flex;align-items:flex-start;gap:7px;padding:4px 3px;border-radius:4px;font-size:11px;line-height:1.25;cursor:pointer}
#bank-raw-register .ariel-bank-entity-options label:hover{background:#f2f7fa}
#bank-raw-register .ariel-bank-entity-options label[hidden],#bank-raw-register .ariel-bank-entity-options section[hidden]{display:none!important}
#bank-raw-register .ariel-bank-entity-options input[type=checkbox]{margin:1px 0 0;flex:0 0 auto}
#bank-raw-register .ariel-bank-entity-popover>small{display:block;margin-top:5px;color:#70808a;font-size:10px;line-height:1.3}
#bank-raw-register .ariel-bank-correction-controls>input[data-raw-search]{flex-basis:235px!important;width:clamp(175px,18vw,250px)!important;max-width:250px!important}
@media(max-width:1180px){#bank-raw-register .ariel-bank-entity-filter{flex:1 1 180px;max-width:none}}
@media(max-width:720px){#bank-raw-register .ariel-bank-entity-filter{flex:1 1 100%;max-width:none;width:100%}}


/* RC143 — tri-state Amount sorting lives directly in the BANK column heading. */
#bank-raw-register .ariel-bank-heading-sort{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:inherit;padding:0;margin:0;font:inherit;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}
#bank-raw-register .ariel-bank-amount-sort{justify-content:flex-end}
#bank-raw-register .ariel-bank-date-sort{justify-content:flex-start}
#bank-raw-register .ariel-bank-heading-sort:hover,#bank-raw-register .ariel-bank-heading-sort:focus-visible{color:#174f73;text-decoration:underline;text-underline-offset:2px;outline:none}
#bank-raw-register .ariel-bank-heading-sort .ariel-sort-arrow{display:inline-block;min-width:12px;text-align:center;font-size:12px;line-height:1;opacity:.48}
#bank-raw-register .ariel-bank-heading-sort.is-active .ariel-sort-arrow{opacity:1;color:#174f73}

/* RC144 — responsive presentation pass only.
   No workflow, data, endpoint or permission behavior is changed here. */

/* Tablet: preserve the desktop information density, but reclaim horizontal space
   and make every scrollable data surface touch-friendly. */
@media (max-width:1024px){
  .ariel-content,.ariel-content.ariel-unified-content-wide{max-width:none;padding-left:16px;padding-right:16px}
  .ariel-topbar,.ariel-topbar.ariel-unified-topbar-compact{padding-left:16px;padding-right:16px}
  .ariel-card{padding:15px}
  .ariel-panel-wide{width:min(900px,96vw)}
  .ariel-table-wrap,.ariel-chart-svg-wrap,.ariel-module-report-picker,.ariel-bank-tabs,.ariel-ce-tabs,.ariel-ce-tabs-compact{
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin
  }
  .ariel-table-wrap{max-width:100%}
  .ariel-section-actions,.ariel-actions-row,.ariel-row-actions,.ariel-panel-actions{max-width:100%;flex-wrap:wrap}
}

/* Phone / small tablet shell. Keep navigation available rather than squeezing
   the application into a narrow desktop column. */
@media (max-width:782px){
  body.toplevel_page_arielcorner #wpcontent,
  body.arielcorner_page_arielcorner-roles #wpcontent,
  body.arielcorner_page_arielcorner-access #wpcontent,
  body.arielcorner_page_arielcorner-system #wpcontent{padding-left:0!important}
  .ariel-app{display:block!important;min-height:100vh!important}
  .ariel-sidebar{min-height:auto!important;padding:7px 8px!important;position:relative!important}
  .ariel-brand,.ariel-sidebar-foot{display:none!important}
  .ariel-sidebar nav{display:flex!important;align-items:flex-start;gap:3px;max-width:100%;overflow-x:auto;overflow-y:auto;padding:0 0 2px;scrollbar-width:thin}
  .ariel-nav-item{flex:0 0 auto!important;min-width:max-content!important;justify-content:flex-start!important;gap:5px!important;margin:0!important;padding:8px 9px!important;border-radius:6px!important;font-size:11px!important;line-height:1.15!important}
  .ariel-nav-item .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
  .ariel-nav-item span:last-child{display:inline!important;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ariel-nav-group{flex:0 0 auto;margin:0!important;padding:0!important;border-top:0!important;min-width:max-content}
  .ariel-nav-group>summary{gap:5px!important;padding:8px 9px!important;font-size:11px!important;line-height:1.15!important}
  .ariel-nav-group>summary .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
  .ariel-nav-group>summary span:last-child{display:inline!important;white-space:nowrap}
  .ariel-nav-group[open]{min-width:min(260px,calc(100vw - 24px))}
  .ariel-nav-subitems{display:grid!important;gap:2px;max-height:176px;overflow:auto;padding:4px!important;border-radius:7px;background:rgba(0,0,0,.12)}
  .ariel-nav-subitem{width:100%;box-sizing:border-box}

  .ariel-topbar,.ariel-topbar.ariel-unified-topbar-compact,.ariel-topbar.ariel-bank-topbar-compact{padding:8px 10px!important;min-height:44px!important;gap:8px!important}
  .ariel-topbar h1,.ariel-topbar.ariel-unified-topbar-compact h1,.ariel-topbar.ariel-bank-topbar-compact h1{font-size:18px!important;line-height:1.15!important}
  .ariel-page-heading{gap:7px!important;min-width:0}
  .ariel-page-heading>div{min-width:0}
  .ariel-page-heading h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ariel-info-btn{flex:0 0 auto;width:24px!important;height:24px!important;font-size:13px!important}
  .ariel-user{flex:0 1 auto;max-width:42vw;padding:5px 8px!important;font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ariel-user .ariel-logout{margin-left:5px}
  .ariel-content,.ariel-content.ariel-unified-content-wide,.ariel-content.ariel-bank-content-wide{padding:8px 8px 24px!important}
  .ariel-shortcode-host .notice{margin:8px 8px 0!important}

  .ariel-card{padding:10px!important;border-radius:8px!important}
  .ariel-card-head{gap:8px!important;margin-bottom:10px!important}
  .ariel-card-head h2{font-size:16px}
  .ariel-grid,.ariel-grid-2,.ariel-grid-3{grid-template-columns:1fr!important;gap:10px!important}
  .ariel-metrics,.ariel-unified-browser .ariel-metrics,.ariel-report-dashboard .ariel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .ariel-unified-browser .ariel-metrics{display:grid!important}
  .ariel-metric,.ariel-unified-browser .ariel-metric{min-width:0!important;padding:8px!important}
  .ariel-metric strong,.ariel-unified-browser .ariel-metric strong{font-size:18px!important;overflow-wrap:anywhere}
  .ariel-kpi-row,.ariel-kpi-row-5{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .ariel-kpi-row>div{padding:8px!important;min-width:0}
  .ariel-record-hero,.ariel-detail-hero,.ariel-record-section-head,.ariel-subcard-head{align-items:flex-start!important;flex-direction:column!important;gap:7px!important}
  .ariel-record-hero h3{font-size:20px!important}
  .ariel-record-section{padding:9px 10px!important;margin:9px 0!important}
  .ariel-source-grid{grid-template-columns:1fr!important}
  .ariel-kv>div{grid-template-columns:1fr!important;gap:3px;padding:8px 0!important}
  .ariel-kv dd{overflow-wrap:anywhere}
  .ariel-setup-grid{grid-template-columns:1fr!important;gap:8px!important}
  .ariel-setup-tile{padding:11px!important}
  .ariel-step-list li{padding:10px!important}

  /* Touch targets and form sizing. 16px form text prevents iOS from zooming the
     whole application when a user taps a field. */
  .ariel-shortcode-host .button,.ariel-content .button,.ariel-panel .button,
  .ariel-bank-tabs button,.ariel-ce-tabs button,.ariel-ce-tabs-compact button{
    min-height:38px!important;height:auto!important;padding:6px 10px!important;line-height:1.2!important
  }
  .ariel-form input[type=text],.ariel-form input[type=search],.ariel-form input[type=email],
  .ariel-form input[type=number],.ariel-form input[type=date],.ariel-form input[type=datetime-local],
  .ariel-form select,.ariel-form textarea,
  .ariel-list-toolbar input,.ariel-list-toolbar select,
  .ariel-bank-register-controls input,.ariel-bank-register-controls select,
  .ariel-payment-register-controls input,.ariel-payment-register-controls select,
  .ariel-module-report-filter-compact input,.ariel-module-report-filter-compact select,
  #bank-raw-register .ariel-bank-correction-controls input,
  #bank-raw-register .ariel-bank-correction-controls select{
    min-height:40px!important;height:auto!important;font-size:16px!important;line-height:1.25!important;padding:7px 9px!important;box-sizing:border-box
  }
  input[type=checkbox],input[type=radio]{min-width:18px;min-height:18px}
  details>summary{touch-action:manipulation}
  .ariel-form-row,.ariel-cap-grid,.ariel-choice-grid{grid-template-columns:1fr!important}
  .ariel-form-actions,.ariel-panel-save-actions{justify-content:flex-start!important;flex-wrap:wrap!important;gap:6px!important}
  .ariel-form-actions>.button,.ariel-panel-save-actions>.button{flex:0 1 auto}
  .ariel-form textarea{min-height:72px}

  /* Tabs remain one row and scroll horizontally. They never force the page wider. */
  .ariel-bank-tabs,.ariel-bank-tabs.ariel-bank-tabs-compact,.ariel-unified-browser .ariel-bank-tabs,
  .ariel-ce-tabs,.ariel-ce-tabs-compact{
    position:relative!important;top:0!important;display:flex!important;flex-wrap:nowrap!important;gap:3px!important;
    max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:4px!important;margin-bottom:5px!important
  }
  .ariel-bank-tabs button,.ariel-bank-tabs.ariel-bank-tabs-compact button,.ariel-unified-browser .ariel-bank-tabs button,
  .ariel-ce-tabs button,.ariel-ce-tabs-compact button{flex:0 0 auto!important;white-space:nowrap!important;font-size:11px!important}

  /* Generic compact toolbars: controls wrap instead of extending off-screen. */
  .ariel-section-toolbar,.ariel-list-toolbar,.ariel-bank-register-controls,.ariel-payment-register-controls,
  .ariel-ce-global-controls,.ariel-ce-tab-controls,.ariel-module-report-filter-compact,
  .ariel-report-dashboard .ariel-actions-row{
    display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;gap:5px!important;max-width:100%;overflow:visible!important
  }
  .ariel-section-toolbar{flex-direction:column!important}
  .ariel-section-actions,.ariel-actions-row,.ariel-row-actions,.ariel-panel-actions{justify-content:flex-start!important;flex-wrap:wrap!important;gap:5px!important;width:100%;margin-left:0!important}
  .ariel-list-toolbar>label,.ariel-payment-register-controls>label,.ariel-ce-global-controls>label,.ariel-ce-tab-controls>label,
  .ariel-module-report-filter-compact>label{flex:1 1 calc(50% - 5px)!important;min-width:145px!important;max-width:none!important;width:auto!important}
  .ariel-list-toolbar>.ariel-filter-search,.ariel-payment-register-controls>input[type=search],.ariel-ce-tab-controls>input[type=search]{flex:1 1 100%!important;min-width:0!important;max-width:none!important;width:100%!important}
  .ariel-module-report-filter-compact .ariel-module-report-actions{width:100%!important;margin-left:0!important;justify-content:flex-start!important;display:flex!important;flex-wrap:wrap!important}
  .ariel-module-report-filter-compact .ariel-module-report-actions .button{height:auto!important;min-height:38px!important}
  .ariel-module-report-picker{display:flex!important;flex-wrap:nowrap!important;max-width:100%;overflow-x:auto!important;padding-bottom:3px}
  .ariel-module-report-picker .button{flex:0 0 auto!important;white-space:nowrap!important}

  /* BANK correction workspace: all filters remain present, but no control can
     push another control or an action off the right edge. */
  #bank-raw-register .ariel-bank-correction-controls{display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;gap:5px!important;padding:5px!important}
  #bank-raw-register .ariel-bank-correction-controls>strong{align-self:center!important;padding-right:2px}
  #bank-raw-register .ariel-bank-account-info{align-self:center}
  #bank-raw-register .ariel-bank-correction-controls>input[data-raw-search]{order:3;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:none!important}
  #bank-raw-register .ariel-bank-entity-filter{order:4;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:none!important}
  #bank-raw-register .ariel-bank-entity-filter>summary{height:40px!important;min-height:40px!important;padding:7px 9px!important;font-size:14px!important}
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-purpose],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type]{order:5;flex:1 1 calc(50% - 3px)!important;width:auto!important;min-width:145px!important;max-width:none!important}
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type]{order:6}
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-year]{order:7;flex:1 1 125px!important;width:auto!important;min-width:125px!important;max-width:none!important}
  #bank-raw-register .ariel-bank-correction-controls>.ariel-bank-clear-filters{order:8}
  #bank-raw-register .ariel-bank-correction-controls>.ariel-register-more{order:9;margin-left:0!important}
  #bank-raw-register .ariel-bank-account-popover{position:fixed!important;left:10px!important;right:10px!important;top:92px!important;width:auto!important;max-width:none!important;max-height:70vh;overflow:auto}
  #bank-raw-register .ariel-bank-entity-popover{position:fixed!important;left:10px!important;right:10px!important;top:92px!important;width:auto!important;max-width:none!important;max-height:72vh;overflow:auto}
  #bank-raw-register .ariel-bank-entity-options{max-height:50vh}
  #bank-raw-register .ariel-raw-correction-bulk{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important;padding:5px!important}
  #bank-raw-register .ariel-raw-correction-bulk .button{min-height:36px!important;height:auto!important;padding:5px 8px!important;line-height:1.2!important}
  #bank-raw-register .ariel-raw-correction-bulk small{flex:1 1 100%;margin:0!important}
  .ariel-bank-active-filters{align-items:flex-start!important}
  .ariel-bank-active-filters>span{max-width:100%!important;white-space:normal!important}

  /* Financial/register tables keep every column. Horizontal scrolling is
     deliberate; key BANK identity columns remain visible while swiping. */
  .ariel-table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch}
  .ariel-table{font-size:11px}
  .ariel-table th,.ariel-table td{padding:7px 8px!important}
  #bank-raw-register .ariel-bank-statement .ariel-table{min-width:980px!important}
  #bank-raw-register.ariel-bank-can-bulk .ariel-bank-statement th:nth-child(1),
  #bank-raw-register.ariel-bank-can-bulk .ariel-bank-statement td:nth-child(1){position:sticky;left:0;z-index:4;background:#fff;box-shadow:1px 0 0 #e2e7eb}
  #bank-raw-register.ariel-bank-can-bulk .ariel-bank-statement th:nth-child(2),
  #bank-raw-register.ariel-bank-can-bulk .ariel-bank-statement td:nth-child(2){position:sticky;left:32px;z-index:3;background:#fff;box-shadow:1px 0 0 #e2e7eb}
  #bank-raw-register.ariel-bank-can-bulk .ariel-bank-statement thead th:nth-child(1),
  #bank-raw-register.ariel-bank-can-bulk .ariel-bank-statement thead th:nth-child(2){background:#f7f8fa;z-index:6}
  #bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement th:nth-child(1),
  #bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement td:nth-child(1){position:sticky;left:0;z-index:3;background:#fff;box-shadow:1px 0 0 #e2e7eb}
  #bank-raw-register:not(.ariel-bank-can-bulk) .ariel-bank-statement thead th:nth-child(1){background:#f7f8fa;z-index:6}
  .ariel-backlog-audit-table .ariel-table,.ariel-rental-allocation-table{min-width:920px!important}
  .ariel-ce-compact-register .ariel-table,.ariel-transaction-register .ariel-table{min-width:760px!important}

  /* Side panels become real mobile sheets. Actions stay reachable without a
     horizontal hunt. */
  .ariel-panel-backdrop,.ariel-help-backdrop{align-items:stretch!important;justify-content:stretch!important}
  .ariel-panel,.ariel-panel-wide,.ariel-ce-expense-panel,.ariel-ce-invoice-wizard,.ariel-help-panel{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  .ariel-panel-head{padding:9px 10px!important;min-height:48px!important}
  .ariel-panel-head h2{font-size:17px!important}
  .ariel-icon-btn{width:38px!important;height:38px!important;flex:0 0 38px}
  .ariel-panel-form,.ariel-panel-body,.ariel-help-body{padding-left:10px!important;padding-right:10px!important}
  .ariel-panel-form{padding-bottom:76px!important}
  .ariel-panel-save-actions{margin-left:-2px!important;margin-right:-2px!important;padding:8px 2px!important;bottom:0!important}
  .ariel-ce-record-actions{top:48px!important;margin-left:-10px!important;margin-right:-10px!important;padding-left:10px!important;padding-right:10px!important;overflow-x:auto;flex-wrap:nowrap!important}
  .ariel-ce-record-actions .button{flex:0 0 auto!important}
  .ariel-record-collapse>summary,.ariel-role>summary,.ariel-ce-allocation-panel>summary{min-height:38px;box-sizing:border-box}

  /* Reports: filter controls wrap, charts keep a readable plotting width and
     can be swiped horizontally instead of shrinking labels to illegibility. */
  .ariel-report-chart{padding:8px!important}
  .ariel-report-chart-head{flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
  .ariel-chart-legend{justify-content:flex-start!important;gap:7px!important}
  .ariel-chart-svg-wrap{max-width:100%;overflow-x:auto!important}
  .ariel-chart-svg{width:620px!important;min-width:620px!important;max-width:none!important}
  .ariel-module-report-output .ariel-table-wrap,#report-output .ariel-table-wrap{overflow-x:auto!important}
  .ariel-module-report-description{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

  /* C.E. invoice/expense compactness survives on phones. */
  .ariel-ce-invoice-context{align-items:flex-start!important;flex-direction:column!important;gap:5px!important;padding:8px!important}
  .ariel-ce-invoice-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .ariel-ce-invoice-metrics>div{padding:7px!important;min-width:0}
  .ariel-ce-invoice-metrics strong{font-size:14px;overflow-wrap:anywhere}
  .ariel-ce-invoice-meta{gap:4px!important;padding:7px!important}
  .ariel-ce-invoice-meta>span{flex:1 1 100%!important;min-width:0!important}
  .ariel-ce-expense-panel .ariel-ce-entry-row,.ariel-ce-expense-panel .ariel-ce-core-row,.ariel-ce-optional-body{grid-template-columns:1fr!important}
  .ariel-ce-allocation-panel>summary>strong{max-width:52%!important}
}

/* Very narrow phones: one control per row and no cramped two-column summaries. */
@media (max-width:430px){
  .ariel-topbar{align-items:center!important}
  .ariel-user{max-width:38vw}
  .ariel-metrics,.ariel-unified-browser .ariel-metrics,.ariel-report-dashboard .ariel-metrics,
  .ariel-kpi-row,.ariel-kpi-row-5{grid-template-columns:1fr!important}
  .ariel-list-toolbar>label,.ariel-payment-register-controls>label,.ariel-ce-global-controls>label,.ariel-ce-tab-controls>label,
  .ariel-module-report-filter-compact>label,
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-purpose],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-year]{flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:none!important}
  .ariel-section-actions .button,.ariel-actions-row .button,.ariel-panel-actions .button{flex:1 1 auto}
  .ariel-ce-invoice-metrics{grid-template-columns:1fr 1fr 1fr!important}
  .ariel-ce-invoice-metrics span{font-size:8px!important}
  .ariel-ce-invoice-metrics strong{font-size:13px!important}
  .ariel-chart-svg{width:560px!important;min-width:560px!important}
}

/* RC145 — shared Ariel Corner identity mark.
   Uses the exact bundled PNG already embedded in C.E. invoices. */
.ariel-brand-mark{overflow:hidden;padding:0}
.ariel-brand-mark img{display:block;width:100%;height:100%;object-fit:contain;box-sizing:border-box;padding:2px}

/* RC146 — filter-control alignment and C.E. invoice bulk workspace. */
.ariel-bank-register-controls select,
.ariel-bank-register-controls input[type="search"],
.ariel-bank-register-controls input[type="text"],
.ariel-module-report-filter-compact select,
.ariel-module-report-filter-compact input,
.ariel-payment-register-controls select,
.ariel-payment-register-controls input,
.ariel-ce-global-controls select,
.ariel-ce-global-controls input,
.ariel-compact-filter-popover select,
.ariel-compact-filter-popover input{
  box-sizing:border-box;
  height:32px;
  min-height:32px;
  margin:0;
  line-height:20px;
  font-size:12px;
  vertical-align:middle;
}
.ariel-bank-register-controls select,
.ariel-module-report-filter-compact select,
.ariel-payment-register-controls select,
.ariel-ce-global-controls select,
.ariel-compact-filter-popover select{padding:4px 28px 4px 8px;}
.ariel-bank-register-controls input,
.ariel-module-report-filter-compact input,
.ariel-payment-register-controls input,
.ariel-ce-global-controls input,
.ariel-compact-filter-popover input{padding:4px 8px;}
.ariel-module-report-filter-compact>label{line-height:1.15;}
.ariel-module-report-filter-compact .ariel-filter-label{display:flex;align-items:center;gap:4px;min-height:14px;white-space:nowrap;overflow:visible;}
.ariel-module-report-filter-compact .ariel-report-comparison-field{min-width:170px!important;max-width:200px!important;}
.ariel-module-report-filter-compact .ariel-filter-help-icon{margin-left:0;flex:0 0 14px;}
.ariel-ce-invoice-bulk-actions{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;min-height:32px;}
.ariel-ce-invoice-bulk-actions[hidden]{display:none!important;}
.ariel-ce-invoice-bulk-actions>strong{white-space:nowrap;color:#44525d;}
.ariel-ce-compact-register th:first-child,.ariel-ce-compact-register td:first-child{width:34px;text-align:center;}
.ariel-ce-compact-register th:first-child input[type="checkbox"],.ariel-ce-compact-register td:first-child input[type="checkbox"]{margin:0;vertical-align:middle;}
@media(max-width:782px){
  .ariel-ce-invoice-bulk-actions{width:100%;justify-content:flex-start;}
  .ariel-ce-invoice-bulk-actions .button{flex:0 0 auto;}
  .ariel-module-report-filter-compact .ariel-report-comparison-field{max-width:none!important;}
}

/* RC147 — unresolved BANK entries must be visibly actionable. */
.ariel-inline-stat-link{appearance:none;border:0;background:transparent;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px}
.ariel-inline-stat-link:hover,.ariel-inline-stat-link:focus{color:#0b4f75;text-decoration-style:solid;outline:none}
.ariel-inline-warning-actions{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}

/* RC151: compact source supplier-invoice access from Tenant invoice detail lines. */
.ariel-ce-invoice-line-label{display:inline-flex;align-items:center;gap:7px;min-width:0}
.ariel-ce-invoice-line-label>span{min-width:0}
.ariel-ce-document-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:26px;height:26px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff;text-decoration:none}
.ariel-ce-document-icon:hover,.ariel-ce-document-icon:focus{background:var(--ariel-accent-soft);border-color:#b8c9d6}
.ariel-ce-document-icon svg{width:16px;height:16px}

/* RC154 — simple read-only Owner Financial Activity workspace. */
.ariel-owner-financial-workspace{display:flex;flex-direction:column;gap:10px}
.ariel-owner-financial-head{margin:0}
.ariel-owner-financial-head h2{margin-bottom:3px}
.ariel-owner-financial-head p{margin:0;color:var(--ariel-muted)}
.ariel-owner-financial-controls{justify-content:flex-start!important;gap:7px!important}
.ariel-owner-financial-controls input[type="search"]{flex:0 1 340px;min-width:220px;max-width:420px}
.ariel-owner-financial-controls select{flex:0 0 120px;min-width:110px}
.ariel-column-sort{appearance:none;border:0;background:transparent;padding:0;margin:0;color:inherit;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.ariel-column-sort:hover,.ariel-column-sort:focus{color:#0b4f75;outline:none;text-decoration:underline;text-underline-offset:2px}
.ariel-column-sort span{display:inline-block;min-width:12px;text-align:center}
.ariel-owner-financial-pager{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:2px}
.ariel-owner-financial-pager:empty{display:none}
@media(max-width:782px){
  .ariel-owner-financial-controls input[type="search"]{flex:1 1 100%;min-width:0;max-width:none}
  .ariel-owner-financial-controls select{flex:1 1 130px}
  .ariel-owner-financial-pager{justify-content:flex-start}
}

/* RC155/RC156 — Smart Budget line history */
.ariel-budget-history{margin:4px 0 8px;border:1px solid var(--ariel-border,#d7dce2);border-radius:8px;background:#fbfcfd;padding:12px}
.ariel-budget-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.ariel-budget-history-head strong{display:block;font-size:13px}.ariel-budget-history-head small{display:block;color:#667085;margin-top:2px}
.ariel-budget-history-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:8px}.ariel-budget-history-title span{font-size:12px;color:#667085}
.ariel-budget-history-years{display:grid;grid-template-columns:repeat(5,minmax(72px,1fr));gap:8px;align-items:end;min-height:122px;padding:4px 0 8px}
.ariel-budget-year{display:grid;grid-template-rows:70px auto auto auto;gap:3px;text-align:center;min-width:0}.ariel-budget-year strong{font-size:12px;white-space:nowrap}.ariel-budget-year span,.ariel-budget-year small{font-size:11px;color:#667085}.ariel-budget-year small{font-size:10px}
.ariel-budget-mini-bar{height:70px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #d0d5dd}.ariel-budget-mini-bar i{display:block;width:min(32px,55%);min-height:2px;background:#667085;border-radius:3px 3px 0 0}
.ariel-budget-history-summary{display:flex;flex-wrap:wrap;align-items:end;gap:14px;border-top:1px solid #e4e7ec;padding-top:9px}.ariel-budget-history-summary>span{display:grid;gap:1px}.ariel-budget-history-summary small{font-size:11px;color:#667085}.ariel-budget-history-summary strong{font-size:14px}.ariel-budget-history-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.ariel-budget-optional{margin-top:2px}.ariel-budget-optional>summary{cursor:pointer;font-weight:600;color:#475467;margin-bottom:8px}
@media(max-width:700px){.ariel-budget-history-years{grid-template-columns:repeat(5,minmax(60px,1fr));overflow-x:auto}.ariel-budget-history-summary{align-items:stretch}.ariel-budget-history-actions{width:100%;margin-left:0}.ariel-budget-history-actions .button{flex:1}.ariel-budget-history-title{display:block}.ariel-budget-history-title span{display:block;margin-top:2px}}

/* RC166 Budget governance */
.ariel-bva-total{display:grid;grid-template-columns:minmax(240px,1fr) repeat(3,minmax(110px,.35fr));gap:12px;padding:12px 14px;border:1px solid var(--ariel-border,#d7dce2);border-top:2px solid #344054;font-weight:700;background:#f8fafc}.ariel-bva-total strong:not(:first-child){text-align:right}@media(max-width:700px){.ariel-bva-total{grid-template-columns:1fr repeat(3,90px);overflow-x:auto}}

/* RC169 returned-cheque existing BANK match chooser */
.ariel-returned-cheque-candidates{display:grid;gap:8px;margin-top:8px}
.ariel-returned-cheque-candidate{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #d8e0e7;border-radius:6px;background:#fff;cursor:pointer}
.ariel-returned-cheque-candidate:has(input:checked){border-color:#2271b1;box-shadow:0 0 0 1px #2271b1 inset;background:#f6fbff}
.ariel-returned-cheque-candidate input{margin-top:3px}
.ariel-returned-cheque-candidate span{min-width:0}
.ariel-panel-secondary-action{margin-top:12px;padding-top:12px;border-top:1px solid #dcdcde}

/* RC170 — Classification Review right-edge visibility repair.
   This is intentionally layout-only: no buttons, actions, workflows, endpoints,
   permissions, statuses or review functionality are removed or replaced. */
.ariel-backlog-audit-table .ariel-table-wrap{
  overflow-x:auto!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
.ariel-backlog-audit-table .ariel-table{
  min-width:1265px!important;
  table-layout:fixed;
}
/* Give Review enough room to wrap its existing status/help controls instead of
   allowing them to run underneath the action buttons. */
.ariel-backlog-audit-table .ariel-table th:nth-child(7),
.ariel-backlog-audit-table .ariel-table td:nth-child(7){
  width:235px!important;
}
.ariel-backlog-audit-table .ariel-table td:nth-child(7){
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.35;
}
.ariel-backlog-audit-table .ariel-table td:nth-child(7) .ariel-review-gap,
.ariel-backlog-audit-table .ariel-table td:nth-child(7) .ariel-rule-check,
.ariel-backlog-audit-table .ariel-table td:nth-child(7) .ariel-inline-info{
  margin-top:2px;
  margin-bottom:2px;
}
/* The eighth column is the existing icon-action group. Earlier compact-table
   CSS applied overflow:hidden to this cell, which could physically crop the
   right-most controls. Reserve their real width and never clip them. */
.ariel-backlog-audit-table .ariel-table th:nth-child(8),
.ariel-backlog-audit-table .ariel-table td:nth-child(8){
  width:155px!important;
  min-width:155px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  padding-left:8px!important;
  padding-right:10px!important;
}
.ariel-backlog-audit-table .ariel-icon-actions{
  display:inline-flex!important;
  align-items:center;
  flex-wrap:nowrap!important;
  width:max-content;
  min-width:max-content;
  gap:4px;
  white-space:nowrap;
}
.ariel-backlog-audit-table .ariel-icon-action{
  flex:0 0 29px;
}
/* On narrower windows retain every existing action and allow horizontal
   scrolling rather than compressing the final columns until controls overlap. */
@media(max-width:1265px){
  .ariel-backlog-audit-table .ariel-table{min-width:1265px!important}
}

/* RC171 — Budget governance completion.  These rules add structure and
   legibility only; existing Budget actions and table behavior remain intact. */
.ariel-owner-voter-map{margin-top:14px}
.ariel-owner-voter-map .ariel-card-head{margin-bottom:8px}
.ariel-inline-voter-form{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0}
.ariel-inline-voter-form select{min-width:220px;max-width:360px}
.ariel-budget-governance-setup,
.ariel-budget-current-approval,
.ariel-budget-current-changes,
.ariel-budget-approval-history{margin:14px 0;padding:12px;border:1px solid var(--ariel-border,#d7dce2);border-radius:8px;background:#fbfcfd}
.ariel-budget-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.ariel-budget-section-title h3,
.ariel-budget-current-approval h3,
.ariel-budget-current-changes h3,
.ariel-budget-approval-history>h3{margin:0 0 8px}
.ariel-budget-section-title h3{margin:0}
.ariel-budget-approval-history{display:grid;gap:8px}
.ariel-budget-history-round,
.ariel-budget-history-events{border:1px solid #e1e6eb;border-radius:6px;background:#fff}
.ariel-budget-history-round>summary,
.ariel-budget-history-events>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer}
.ariel-budget-history-round>summary span,
.ariel-budget-history-events>summary span{font-size:12px;color:var(--ariel-muted,#667085);text-align:right}
.ariel-budget-history-round>.ariel-table-wrap,
.ariel-budget-history-events>.ariel-table-wrap{margin:0 10px 10px}
.ariel-budget-history-round h4{margin:10px 12px 6px}
.ariel-owner-budget-portal .ariel-form-actions{margin:0;gap:6px}
.ariel-owner-budget-portal .ariel-table td{vertical-align:middle}
@media(max-width:782px){
  .ariel-inline-voter-form{align-items:stretch}
  .ariel-inline-voter-form select{min-width:180px;max-width:none;flex:1 1 220px}
  .ariel-budget-history-round>summary,.ariel-budget-history-events>summary{align-items:flex-start;flex-direction:column;gap:3px}
  .ariel-budget-history-round>summary span,.ariel-budget-history-events>summary span{text-align:left}
}

/* RC179 — compact BANK supporting-document indicator. */
.ariel-bank-doc-indicator{display:inline-flex;align-items:center;gap:1px;margin-left:5px;vertical-align:middle;opacity:.78;white-space:nowrap}
.ariel-bank-doc-indicator .dashicons{font-size:14px;width:14px;height:14px;line-height:14px}
.ariel-bank-doc-indicator small{font-size:10px;line-height:1}

/* RC183 — destructive document lifecycle action */
.ariel-danger-button{color:#b32d2e!important;border-color:#d63638!important;background:#fff!important}
.ariel-danger-button:hover,.ariel-danger-button:focus{color:#8a2424!important;border-color:#8a2424!important;background:#fff5f5!important}
.ariel-action-menu-item.is-danger{color:#b32d2e!important}

/* RC187 — role-aware Access Assignments and calmer Roles screen */
.ariel-owner-voter-map{margin-top:18px}.ariel-owner-voter-map .ariel-table{min-width:820px}.ariel-inline-voter-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ariel-inline-voter-form select{min-width:240px;max-width:360px}
.ariel-access-users{margin-top:22px}.ariel-access-users-head{margin-bottom:10px}.ariel-access-user{border:1px solid var(--ariel-line);border-radius:9px;background:#fff;margin:8px 0;overflow:hidden}.ariel-access-user>summary{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr) auto;gap:18px;align-items:center;padding:13px 15px;cursor:pointer;list-style:none}.ariel-access-user>summary::-webkit-details-marker{display:none}.ariel-access-user>summary:after{content:'▾';justify-self:end;grid-column:3;color:var(--ariel-muted)}.ariel-access-user[open]>summary:after{content:'▴'}.ariel-access-user[open]>summary{background:#f8fafb;border-bottom:1px solid var(--ariel-line)}.ariel-access-user-main{display:grid;gap:2px}.ariel-access-user-main small,.ariel-access-user-scope{color:var(--ariel-muted);font-size:12px}.ariel-access-user-scope{font-weight:600}.ariel-access-role-form{padding:16px 18px 18px;margin:0}.ariel-access-identity-card{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,.85fr);gap:18px;align-items:end;padding:16px;border:1px solid var(--ariel-line);border-radius:9px;background:#fbfcfd}.ariel-access-identity-card>div p{margin:4px 0 0;color:var(--ariel-muted)}.ariel-access-identity-card label{display:grid;gap:6px;font-weight:700}.ariel-access-identity-card select{width:100%;max-width:none}.ariel-access-identity-card-compact{grid-template-columns:1fr;align-items:start}.ariel-voter-toggle{grid-column:1/-1!important;display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px!important;padding:12px 14px;border:1px solid #c9d8e3;border-radius:8px;background:var(--ariel-accent-soft);font-weight:400!important}.ariel-voter-toggle input{margin-top:3px}.ariel-voter-toggle span{display:grid;gap:2px}.ariel-voter-toggle small{color:var(--ariel-muted);font-weight:400}.ariel-advanced-scope{margin-top:14px;border:1px dashed var(--ariel-line);border-radius:8px;padding:10px 12px}.ariel-advanced-scope>summary{cursor:pointer;font-weight:700}.ariel-access-save-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}.ariel-access-save-row .description{color:var(--ariel-muted)}
.ariel-advanced-role-editor{margin-top:18px}.ariel-advanced-role-editor>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none}.ariel-advanced-role-editor>summary::-webkit-details-marker{display:none}.ariel-advanced-role-editor>summary span:first-child{display:grid;gap:3px}.ariel-advanced-role-editor>summary small{color:var(--ariel-muted);font-weight:400}.ariel-advanced-role-grid{margin-top:18px}.ariel-advanced-role-grid .ariel-subcard{margin:0}
@media(max-width:900px){.ariel-access-user>summary{grid-template-columns:1fr}.ariel-access-user>summary:after{grid-column:2;grid-row:1}.ariel-access-user-scope{grid-column:1}.ariel-access-identity-card{grid-template-columns:1fr}.ariel-inline-voter-form select{min-width:180px}.ariel-advanced-role-grid{grid-template-columns:1fr}}

/* RC188 — simple Owner oversight, notifications and voting */
.ariel-owner-home .ariel-card-head{margin-bottom:10px}
.ariel-owner-home+.ariel-card .ariel-table td{vertical-align:middle}
.ariel-owner-decision{border-left:4px solid var(--ariel-accent,#2271b1)}
.ariel-owner-decision .ariel-metrics{margin-top:10px}
.ariel-owner-visible-check{margin:10px 0;padding:11px 12px;border:1px solid var(--ariel-line);border-radius:8px;background:#f8fbfd;align-items:flex-start!important}
.ariel-owner-visible-check span{display:grid;gap:2px}
.ariel-owner-visible-check small{font-weight:400;color:var(--ariel-muted,#667085)}
.ariel-owner-budget-portal .ariel-row-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:782px){.ariel-owner-decision .ariel-card-head{align-items:flex-start;flex-direction:column}.ariel-owner-budget-portal .ariel-row-actions .button{width:100%;text-align:center}}

/* RC189 — Communications correspondence model */
.ariel-communication-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.ariel-communication-party{margin:0}
.ariel-communication-party legend,.ariel-communication-followup legend{font-weight:700;padding:0 6px}
.ariel-communication-party [data-party-other-wrap][hidden],.ariel-communication-party [data-party-select-wrap][hidden],.ariel-communication-followup [data-follow-up-fields][hidden]{display:none!important}
.ariel-communication-audit{opacity:.92}
@media (max-width:900px){.ariel-communication-parties{grid-template-columns:1fr}.ariel-communication-party .ariel-form-row{grid-template-columns:1fr}}

/* RC191 — recipient checklist / ALL recipient group */
.ariel-recipient-checklist{display:grid;gap:10px;margin-top:8px}
.ariel-recipient-all{padding:10px 12px;border:1px solid #c3c4c7;border-radius:6px;background:#fff}
.ariel-recipient-choice-grid{max-height:240px;overflow:auto;padding:8px;border:1px solid #dcdcde;border-radius:6px;background:#fff}
.ariel-recipient-choice-grid .ariel-check{padding:5px 4px}
.ariel-recipient-choice-grid input:disabled+span{opacity:.55}
.ariel-recipient-snapshot-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.ariel-recipient-snapshot-list span{display:inline-flex;padding:5px 8px;border:1px solid #dcdcde;border-radius:999px;background:#fff}
.ariel-communication-recipient-audit details{margin-top:8px}

/* RC193 — notification maintenance controls */
.ariel-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
@media(max-width:782px){.ariel-card-actions{justify-content:flex-start;width:100%}}

/* RC202: Owner notification/budget views are read-only except explicit voting. */
.ariel-owner-budget-preview .ariel-owner-budget-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0 18px}
.ariel-owner-budget-preview .ariel-owner-vote-primary{font-weight:700}
.ariel-owner-budget-metrics{margin:12px 0 6px}
.ariel-owner-vote-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--ariel-border,#dbe3ea);border-radius:8px;margin-bottom:12px}
.ariel-owner-vote-summary span{font-size:12px;color:var(--ariel-muted,#64748b)}
.ariel-owner-vote-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.ariel-owner-vote-choice{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--ariel-border,#dbe3ea);border-radius:8px;padding:12px;cursor:pointer}
.ariel-owner-vote-choice input{margin-top:3px}
.ariel-owner-vote-choice span{display:flex;flex-direction:column;gap:3px}
.ariel-owner-vote-choice small{color:var(--ariel-muted,#64748b)}
.ariel-owner-budget-details{margin-top:14px}
@media(max-width:782px){.ariel-owner-vote-choices{grid-template-columns:1fr}.ariel-owner-vote-summary{align-items:flex-start;flex-direction:column}.ariel-owner-budget-preview .ariel-owner-budget-actions .button{width:100%;text-align:center}}

/* RC213 — stationary desktop navigation + sticky browser headings.
   Keep the application navigation visible while long registers scroll on the right.
   Browser/list tables receive their own vertical scrollport so THEAD sticky positioning
   remains reliable without affecting detail panels, print layouts or mobile navigation. */
@media (min-width:783px){
  body.toplevel_page_arielcorner .ariel-sidebar{
    position:sticky;
    top:32px;
    align-self:start;
    height:calc(100vh - 32px);
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .ariel-shortcode-host .ariel-sidebar,
  body.arielcorner-frontend-page .ariel-sidebar{
    top:0;
    height:100vh;
  }

  /* Long operational browsers scroll inside the register, not the whole shell. */
  .ariel-unified-browser .ariel-list-workspace .ariel-table-wrap,
  .ariel-unified-browser .ariel-bank-view .ariel-table-wrap,
  .ariel-unified-browser .ariel-ce-view .ariel-table-wrap,
  .ariel-unified-browser .ariel-card > .ariel-table-wrap{
    max-height:calc(100vh - 235px);
    overflow:auto;
    overscroll-behavior:contain;
  }

  /* The browser's column headings stay visible while its rows move. */
  .ariel-unified-browser .ariel-list-workspace .ariel-table thead th,
  .ariel-unified-browser .ariel-bank-view .ariel-table thead th,
  .ariel-unified-browser .ariel-ce-view .ariel-table thead th,
  .ariel-unified-browser .ariel-card > .ariel-table-wrap > .ariel-table thead th{
    position:sticky;
    top:0;
    z-index:8;
    background:#f7f8fa;
    box-shadow:0 1px 0 var(--ariel-line);
  }

  /* Compact BANK / C.E. registers have more controls above them. */
  .ariel-unified-browser .ariel-bank-statement .ariel-table-wrap,
  .ariel-unified-browser .ariel-ce-compact-register .ariel-table-wrap,
  .ariel-unified-browser .ariel-backlog-audit-table .ariel-table-wrap,
  .ariel-unified-browser .ariel-rule-inline-list .ariel-table-wrap{
    max-height:calc(100vh - 250px);
  }
}

/* WordPress uses a taller admin bar at tablet width. */
@media (min-width:561px) and (max-width:782px){
  body.toplevel_page_arielcorner .ariel-sidebar{
    position:sticky;
    top:46px;
    align-self:start;
    height:calc(100vh - 46px);
    min-height:0;
    overflow-y:auto;
  }
  .ariel-shortcode-host .ariel-sidebar,
  body.arielcorner-frontend-page .ariel-sidebar{
    top:0;
    height:100vh;
  }
}

/* Do not force fixed navigation or internal table heights on phones. */
@media (max-width:560px){
  .ariel-sidebar{height:auto!important;overflow:visible!important;position:relative!important;top:auto!important}
  .ariel-table-wrap{max-height:none}
}

@media print{
  .ariel-sidebar{position:static!important;height:auto!important;overflow:visible!important}
  .ariel-table-wrap{max-height:none!important;overflow:visible!important}
  .ariel-table thead th{position:static!important}
}

/* RC214 — direct Communication attachment inspection */
.ariel-attachment-count-button{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:34px;
  padding:2px 4px;
  border:0;
  background:transparent;
  color:var(--ariel-accent,#2271b1);
  font:inherit;
  line-height:1.2;
  cursor:pointer;
  border-radius:5px;
}
.ariel-attachment-count-button:hover,
.ariel-attachment-count-button:focus-visible{
  background:var(--ariel-accent-soft,#eef5fb);
  outline:2px solid transparent;
}
.ariel-communication-attachments-loading{padding:8px 0;color:var(--ariel-muted)}
.ariel-communication-attachment-list{display:grid;gap:10px}
.ariel-communication-attachment-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--ariel-line);
  border-radius:9px;
  background:#fff;
}
.ariel-communication-attachment-file{display:flex;gap:10px;min-width:0;align-items:flex-start}
.ariel-communication-attachment-icon{font-size:18px;line-height:1.25;flex:0 0 auto}
.ariel-communication-attachment-file>div{min-width:0}
.ariel-communication-attachment-file strong{
  display:block;
  overflow-wrap:anywhere;
  color:var(--ariel-text);
}
.ariel-communication-attachment-file small,
.ariel-communication-attachment-file span:not(.ariel-communication-attachment-icon){
  display:block;
  margin-top:3px;
  color:var(--ariel-muted);
  font-size:12px;
  line-height:1.4;
}
.ariel-communication-attachment-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.ariel-attachment-preview-overlay{
  position:fixed;
  inset:0;
  z-index:100020;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,28,39,.58);
}
.ariel-attachment-preview-dialog{
  width:min(1180px,96vw);
  height:min(880px,94vh);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border-radius:10px;
  background:#fff;
  box-shadow:0 18px 60px rgba(0,0,0,.28);
}
.ariel-attachment-preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border-bottom:1px solid var(--ariel-line);
  background:#fff;
}
.ariel-attachment-preview-head h2{margin:0;font-size:18px;overflow-wrap:anywhere}
.ariel-attachment-preview-head p{margin:4px 0 0;color:var(--ariel-muted);font-size:12px}
.ariel-attachment-preview-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.ariel-attachment-preview-body{min-height:0;overflow:auto;background:#f3f5f7}
.ariel-attachment-preview-pdf iframe{display:block;width:100%;height:100%;min-height:520px;border:0;background:#fff}
.ariel-attachment-preview-image{display:flex;align-items:center;justify-content:center;padding:18px}
.ariel-attachment-preview-image img{display:block;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 2px 12px rgba(0,0,0,.12)}
@media(max-width:782px){
  .ariel-communication-attachment-item{grid-template-columns:1fr}
  .ariel-communication-attachment-actions{justify-content:flex-start}
  .ariel-attachment-preview-overlay{padding:8px}
  .ariel-attachment-preview-dialog{width:100%;height:96vh}
  .ariel-attachment-preview-head{flex-direction:column}
  .ariel-attachment-preview-actions{justify-content:flex-start}
  .ariel-attachment-preview-pdf iframe{min-height:70vh}
}
@media print{
  .ariel-attachment-preview-overlay{display:none!important}
}

/* RC217 — Owner vote attention state + stacked detail workbench. */
@keyframes arielVoteAttention{0%,100%{opacity:1}50%{opacity:.28}}
.ariel-nav-item.ariel-pending-votes,
.ariel-nav-item.ariel-pending-votes:hover,
.ariel-nav-item.ariel-pending-votes.is-active{color:#ffe45c!important}
.ariel-nav-item.ariel-pending-votes .ariel-vote-nav-label{font-weight:800;animation:arielVoteAttention 1.1s step-end infinite}
.ariel-pending-vote-reference{color:#b42318!important;font-weight:800;animation:arielVoteAttention 1.1s step-end infinite}
.ariel-panel-backdrop[data-stack-depth]:not([data-stack-depth="0"]){background:rgba(15,28,39,.32)}
@media(prefers-reduced-motion:reduce){
  .ariel-nav-item.ariel-pending-votes .ariel-vote-nav-label,
  .ariel-pending-vote-reference{animation:none!important;text-decoration:underline;text-decoration-thickness:2px}
}

/* RC218 — keep the stationary sidebar while making Setup & Configuration reliably expandable.
   The navigation itself, rather than the entire sidebar, is the desktop scrollport. This
   prevents a long Setup submenu from expanding below the visible sidebar with no obvious
   way to reach it, while the brand and build footer remain stationary. */
@media (min-width:783px){
  .ariel-sidebar{
    overflow:hidden!important;
  }
  .ariel-sidebar nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding-right:3px;
  }
  .ariel-sidebar-foot{
    flex:0 0 auto;
    margin-top:12px;
  }
  .ariel-nav-group{
    display:block;
  }
  .ariel-nav-group[open] > .ariel-nav-subitems{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .ariel-nav-group > summary::after{
    content:'▾';
    margin-left:auto;
    font-size:11px;
    opacity:.72;
    transition:transform .15s ease;
  }
  .ariel-nav-group[open] > summary::after{
    transform:rotate(180deg);
  }
}

/* RC222 — tenant lifecycle-aware Budget rent estimate */
.ariel-owner-budget-clean .ariel-card-head p{margin-bottom:0}
.ariel-owner-budget-clean .ariel-table{margin-top:8px}
.ariel-budget-rent-breakdown{margin-top:22px}
.ariel-budget-rent-breakdown h3{margin:0 0 8px}
.ariel-budget-rent-note{margin:0 0 10px}
.ariel-budget-rent-breakdown .ariel-table td:first-child{min-width:180px}
@media(max-width:782px){.ariel-budget-rent-breakdown{overflow-x:auto}.ariel-budget-rent-breakdown .ariel-table{min-width:820px}}

/* RC223 — Court-aware Tenant Payment allocation flow */
.ariel-rental-allocation-table tr.is-court-rent{background:#fff9f3}
.ariel-court-rent-allocation-label{color:#8a3d14}
.ariel-allocation-confidence.is-court{background:#f6e6dc;color:#8a3d14}
.ariel-allocation-destination{margin-bottom:14px}
.ariel-allocation-destination label{max-width:420px}
.ariel-court-allocation-summary{margin-top:12px}
.ariel-court-allocation-summary .ariel-source-grid{margin-bottom:10px}

/* RC226 — Lease Obligations review filters. */
.ariel-obligation-filterbar{margin:0 0 6px;padding:8px 10px;align-items:end}
.ariel-obligation-filterbar>label{min-width:135px}
.ariel-obligation-filterbar>.ariel-filter-search{flex:1.4 1 250px}
.ariel-obligation-filterbar [data-obligation-tenant]{min-width:190px}
.ariel-obligation-filterbar [data-obligation-mode]{min-width:165px}
.ariel-obligation-filterbar>button{align-self:end;white-space:nowrap}
.ariel-obligation-filter-meta{padding:4px 2px 8px;font-size:12px;color:#53616d}
.ariel-obligation-filter-meta strong{color:#172d3e}
@media(max-width:782px){.ariel-obligation-filterbar>label{min-width:calc(50% - 5px)}.ariel-obligation-filterbar>.ariel-filter-search{min-width:100%;flex-basis:100%}.ariel-obligation-filterbar>button{width:100%}}

/* RC227 — targeted BANK Rent reconciliation; visual styling unchanged from RC226. */

/* RC228 — unpaid Pre-Banking Invoice Register attention state. */
.ariel-nav-item.ariel-pending-invoices,
.ariel-nav-item.ariel-pending-invoices:hover,
.ariel-nav-item.ariel-pending-invoices.is-active{color:#ffe45c!important}
.ariel-nav-item.ariel-pending-invoices .ariel-attention-nav-label{font-weight:800;animation:arielVoteAttention 1.1s step-end infinite}
@media(prefers-reduced-motion:reduce){
  .ariel-nav-item.ariel-pending-invoices .ariel-attention-nav-label{animation:none!important;text-decoration:underline;text-decoration-thickness:2px}
}

/* RC229 — sender identity is intentionally a standard Communication subcard; no layout fork required. */

/* RC232 — Invoice Register Net + VAT + estimated percentage + total payable. */
.ariel-invoice-amount-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px;border:1px solid var(--ariel-line);border-radius:8px;background:#fafbfc}
.ariel-invoice-amount-grid label{min-width:0}
.ariel-invoice-amount-grid input[readonly]{background:#eef1f3;color:#34414b;font-weight:700;cursor:default}
.ariel-invoice-amount-grid small{font-weight:400;color:var(--ariel-muted)}
@media(min-width:1100px){.ariel-panel{width:min(760px,94vw)}.ariel-invoice-amount-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.ariel-invoice-amount-grid{grid-template-columns:1fr}}

/* RC234 — Invoice paid-before-BANK reconciliation lifecycle. */
.ariel-status-paid_awaiting_reconciliation{color:var(--ariel-warning);background:#f8f0d9}

/* RC236 — compact, actionable Dashboard financial reporting. */
.ariel-dashboard-report-head{align-items:flex-end}
.ariel-dashboard-date-filter{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ariel-dashboard-date-filter label{display:grid;gap:3px;font-size:11px;font-weight:700;color:var(--ariel-muted)}
.ariel-dashboard-date-filter input{min-height:34px;padding:4px 8px}
.ariel-dashboard-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.ariel-dashboard-report-card{min-width:0;border:1px solid var(--ariel-line);border-radius:9px;background:#fff;padding:10px}
.ariel-dashboard-report-wide{grid-column:1/-1}
.ariel-dashboard-report-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:5px}
.ariel-dashboard-report-title h3{margin:0;font-size:14px;line-height:1.25;color:#23313d}
.ariel-dashboard-report-title p{margin:2px 0 0;font-size:10px;color:var(--ariel-muted)}
.ariel-dashboard-report-title>strong{font-size:17px;white-space:nowrap;color:#23313d}
.ariel-dashboard-report-card .ariel-report-visual-grid{display:block;margin:4px 0 2px}
.ariel-dashboard-report-card .ariel-report-chart{padding:5px;border:0;border-radius:0;box-shadow:none}
.ariel-dashboard-report-card .ariel-report-chart-head{margin-bottom:3px}
.ariel-dashboard-report-card .ariel-report-chart-head h4{font-size:12px}
.ariel-dashboard-report-card .ariel-chart-legend{font-size:9px;gap:5px}
.ariel-dashboard-report-card .ariel-chart-svg-wrap{overflow:hidden}
.ariel-dashboard-report-card .ariel-chart-svg{width:100%;min-width:0;height:210px;max-height:210px}
.ariel-dashboard-report-footer{display:flex;justify-content:flex-end;margin-top:4px;font-size:11px}
.ariel-dashboard-income-strip{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 8px;font-size:11px;color:var(--ariel-muted)}
.ariel-dashboard-income-strip span{padding:4px 7px;border:1px solid var(--ariel-line);border-radius:6px;background:var(--ariel-bg)}
.ariel-dashboard-income-strip strong{color:#23313d}
.ariel-expense-ratio-chart{display:grid;gap:4px}
.ariel-expense-ratio-row{display:grid;grid-template-columns:minmax(145px,1.1fr) minmax(180px,3fr) 105px 68px;gap:8px;align-items:center;font-size:11px;min-width:0}
.ariel-expense-ratio-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#34495a}
.ariel-expense-ratio-track{height:8px;border-radius:999px;background:#edf1f4;overflow:hidden}
.ariel-expense-ratio-track i{display:block;height:100%;border-radius:999px;background:#4b78a8}
.ariel-expense-ratio-row>strong,.ariel-expense-ratio-row>span{text-align:right;white-space:nowrap}
.ariel-expense-ratio-row>span{font-weight:700;color:#536779}
@media (max-width:980px){
  .ariel-dashboard-report-grid{grid-template-columns:1fr}
  .ariel-dashboard-report-wide{grid-column:auto}
  .ariel-dashboard-report-head{align-items:flex-start;flex-direction:column}
  .ariel-dashboard-date-filter{justify-content:flex-start}
}
@media (max-width:640px){
  .ariel-expense-ratio-row{grid-template-columns:minmax(110px,1fr) minmax(120px,2fr) 82px}
  .ariel-expense-ratio-row>span{grid-column:3;grid-row:2;font-size:10px}
  .ariel-dashboard-report-card .ariel-chart-svg{height:190px;max-height:190px}
}

/* RC237 — compact Vendor & Expense Analysis for Dashboard. */
.ariel-dashboard-expense-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:4px 0 9px}
.ariel-dashboard-expense-kpis>span{display:grid;gap:1px;min-width:0;padding:6px 8px;border:1px solid var(--ariel-line);border-radius:7px;background:var(--ariel-bg)}
.ariel-dashboard-expense-kpis small{font-size:9px;line-height:1.25;color:var(--ariel-muted);text-transform:uppercase;letter-spacing:.02em}
.ariel-dashboard-expense-kpis strong{font-size:13px;line-height:1.3;color:#23313d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ariel-dashboard-expense-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:10px;align-items:stretch}
.ariel-dashboard-expense-pane{min-width:0;border:1px solid var(--ariel-line);border-radius:8px;padding:7px;background:#fff}
.ariel-dashboard-expense-pane .ariel-report-visual-grid{margin:0}
.ariel-dashboard-expense-pane .ariel-report-chart{padding:0!important}
.ariel-dashboard-expense-pane .ariel-chart-svg{height:180px!important;max-height:180px!important}
.ariel-dashboard-minihead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 7px}
.ariel-dashboard-minihead h4{margin:0;font-size:12px;line-height:1.25;color:#23313d}
.ariel-dashboard-minihead p{margin:2px 0 0;font-size:9px;line-height:1.25;color:var(--ariel-muted)}
.ariel-vendor-spend-chart{display:grid;gap:5px}
.ariel-vendor-spend-row{display:grid;grid-template-columns:minmax(110px,1.1fr) minmax(100px,1.5fr) 88px 48px;gap:7px;align-items:center;min-width:0;font-size:10px}
.ariel-vendor-spend-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#34495a}
.ariel-vendor-spend-track{height:8px;border-radius:999px;background:#edf1f4;overflow:hidden}
.ariel-vendor-spend-track i{display:block;height:100%;border-radius:999px;background:#4b78a8}
.ariel-vendor-spend-row>strong,.ariel-vendor-spend-row>span{text-align:right;white-space:nowrap}
.ariel-vendor-spend-row>span{font-weight:700;color:#536779}
.ariel-dashboard-expense-types{margin-top:8px;padding-top:7px;border-top:1px solid var(--ariel-line)}
.ariel-expense-type-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 7px}
.ariel-expense-type-chip{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;min-width:0;padding:5px 7px;border:1px solid var(--ariel-line);border-radius:6px;background:var(--ariel-bg);font-size:10px}
.ariel-expense-type-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#34495a}
.ariel-expense-type-chip>strong{white-space:nowrap;color:#23313d}
.ariel-expense-type-chip>em{font-style:normal;font-weight:700;white-space:nowrap;color:var(--ariel-muted)}
@media(max-width:1080px){.ariel-dashboard-expense-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-dashboard-expense-grid{grid-template-columns:1fr}.ariel-expense-type-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ariel-dashboard-expense-kpis{grid-template-columns:1fr 1fr}.ariel-vendor-spend-row{grid-template-columns:minmax(100px,1fr) minmax(90px,1.3fr) 78px}.ariel-vendor-spend-row>span{grid-column:3;grid-row:2;font-size:9px}.ariel-expense-type-strip{grid-template-columns:1fr}.ariel-dashboard-expense-pane .ariel-chart-svg{height:170px!important;max-height:170px!important}}


/* RC238 — dense Dashboard financial layout; preserve data, remove wasted space. */
@media (min-width:981px){
  .ariel-dashboard-financial-reports{padding:10px 12px}
  .ariel-dashboard-report-grid{gap:7px;margin-top:5px}
  .ariel-dashboard-report-card{padding:7px 8px;border-radius:7px}
  .ariel-dashboard-report-title{margin-bottom:2px;gap:8px}
  .ariel-dashboard-report-title h3{font-size:13px}
  .ariel-dashboard-report-title p{font-size:9px;margin-top:1px}
  .ariel-dashboard-report-title>strong{font-size:15px}
  .ariel-dashboard-report-card .ariel-report-chart-head{display:none}
  .ariel-dashboard-report-card .ariel-report-visual-grid{margin:0}
  .ariel-dashboard-report-card .ariel-report-chart{padding:0}
  .ariel-dashboard-report-card .ariel-chart-svg{height:145px;max-height:145px}
  .ariel-dashboard-report-footer{margin-top:1px;font-size:10px;line-height:1.15}
  .ariel-dashboard-expense-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:2px 0 5px}
  .ariel-dashboard-expense-kpis>span{display:flex;align-items:baseline;justify-content:space-between;gap:5px;padding:3px 6px;border-radius:5px}
  .ariel-dashboard-expense-kpis small{font-size:8px;white-space:nowrap}
  .ariel-dashboard-expense-kpis strong{font-size:11px}
  .ariel-dashboard-expense-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:8px;align-items:start}
  .ariel-dashboard-expense-pane{border:0;border-radius:0;padding:0;background:transparent}
  .ariel-dashboard-expense-pane .ariel-chart-svg{height:132px!important;max-height:132px!important}
  .ariel-dashboard-minihead{margin:0 0 3px}
  .ariel-dashboard-minihead h4{font-size:11px}
  .ariel-dashboard-minihead p{display:none}
  .ariel-vendor-spend-chart{gap:3px}
  .ariel-vendor-spend-row{grid-template-columns:minmax(90px,1fr) minmax(75px,1.2fr) 74px 38px;gap:5px;font-size:9px}
  .ariel-vendor-spend-track{height:6px}
  .ariel-dashboard-expense-types{margin-top:5px;padding-top:4px}
  .ariel-expense-type-strip{display:grid;grid-template-columns:1fr;gap:0}
  .ariel-expense-type-chip{grid-template-columns:minmax(0,1fr) auto auto;gap:5px;padding:2px 0;border:0;border-radius:0;background:transparent;font-size:9px}
}

/* RC239 — compact Dashboard summaries + enlarged in-place report workbench. */
.ariel-dashboard-attention-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px;padding:7px 10px;border:1px solid var(--ariel-line);border-radius:8px;background:#fff}
.ariel-dashboard-attention-strip>strong{font-size:12px;color:#23313d;white-space:nowrap}
.ariel-dashboard-attention-strip>div{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.ariel-dashboard-attention-item{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 8px;border:1px solid #d8e0e6;border-radius:999px;background:#f8fafb;text-decoration:none;color:#294559;font-size:11px;font-weight:700}
.ariel-dashboard-attention-item:hover,.ariel-dashboard-attention-item:focus{border-color:#8ea8ba;background:#eef5f9;color:#173f5b}
.ariel-dashboard-attention-item b{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#f8f0d9;color:#795d13;font-size:10px}

.ariel-dashboard-financial-reports{padding:8px 10px!important}
.ariel-dashboard-report-head{margin-bottom:0!important;min-height:36px;align-items:center!important}
.ariel-dashboard-finance-title{display:flex;align-items:baseline;gap:7px;min-width:0}
.ariel-dashboard-finance-title h2{margin:0!important;font-size:14px!important}
.ariel-dashboard-finance-title span{font-size:9px;color:var(--ariel-muted);white-space:nowrap}
.ariel-dashboard-date-filter{gap:5px!important;align-items:center!important}
.ariel-dashboard-date-filter label{display:flex!important;align-items:center;gap:4px!important;font-size:9px!important}
.ariel-dashboard-date-filter input{min-height:29px!important;height:29px;padding:2px 6px!important;font-size:11px!important}
.ariel-dashboard-date-filter .button{min-height:29px!important;height:29px!important;padding:2px 8px!important}
.ariel-dashboard-report-message{min-height:0!important;margin:0!important;font-size:10px}
.ariel-dashboard-report-message:empty{display:none}
.ariel-dashboard-report-grid{gap:6px!important;margin-top:4px!important}
.ariel-dashboard-report-card{padding:6px 7px!important;border-radius:7px!important}
.ariel-dashboard-report-title{align-items:center!important;margin:0 0 3px!important}
.ariel-dashboard-report-title h3{font-size:12px!important;line-height:1.1!important}
.ariel-dashboard-report-title p{font-size:8.5px!important;line-height:1.2!important;margin:1px 0 0!important}
.ariel-dashboard-report-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.ariel-dashboard-report-title-actions>strong{font-size:14px;color:#23313d;white-space:nowrap}
.ariel-dashboard-open-report{min-height:25px!important;height:25px!important;padding:1px 7px!important;font-size:9px!important;line-height:1!important}
.ariel-dashboard-mini-chart{min-width:0}
.ariel-dashboard-mini-chart svg{display:block;width:100%;height:102px;max-height:102px}
.ariel-dashboard-mini-legend{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap;margin:-1px 0 1px;font-size:7.5px!important;line-height:1.1}
.ariel-dashboard-mini-legend span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-dashboard-mini-legend .ariel-chart-legend-swatch{width:9px;height:3px}
.ariel-dashboard-mini-chart .ariel-chart-axis{font-size:8px}

.ariel-dashboard-expense-kpis-inline{display:flex!important;gap:5px!important;margin:0 0 4px!important;flex-wrap:wrap}
.ariel-dashboard-expense-kpis-inline>span{display:inline-flex!important;align-items:baseline;gap:5px;flex:0 0 auto;padding:2px 6px!important;border-radius:5px!important}
.ariel-dashboard-expense-kpis-inline small{font-size:7.5px!important}
.ariel-dashboard-expense-kpis-inline strong{font-size:10px!important}
.ariel-dashboard-expense-compact-grid{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(260px,1fr) minmax(260px,1fr);gap:8px;align-items:start}
.ariel-dashboard-expense-block{min-width:0;padding:5px 6px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}
.ariel-dashboard-expense-block h4{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin:0 0 4px;font-size:10px;line-height:1.15;color:#23313d}
.ariel-dashboard-expense-block h4 small{font-size:7.5px;font-weight:500;color:var(--ariel-muted)}
.ariel-expense-spark{display:flex;align-items:flex-end;gap:2px;height:86px;min-width:0;padding:0 1px}
.ariel-expense-spark-month{display:grid;grid-template-rows:16px 58px 10px;align-items:end;justify-items:center;min-width:0;flex:1 1 0}
.ariel-expense-spark-month span{align-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:6.5px;color:#6c7b87}
.ariel-expense-spark-month i{display:block;width:min(72%,18px);min-width:3px;border-radius:2px 2px 0 0;background:#4b78a8}
.ariel-expense-spark-month small{font-size:6.5px;line-height:1;color:#6c7b87;white-space:nowrap}
.ariel-dashboard-rank-list{display:grid;gap:3px}
.ariel-dashboard-rank-row{display:grid;grid-template-columns:17px minmax(0,1fr) 68px 37px;gap:4px;align-items:center;min-width:0;font-size:8.5px;line-height:1.15}
.ariel-dashboard-rank-no{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#f0f3f5;color:#65737e;font-size:7.5px;font-weight:800}
.ariel-dashboard-rank-main{display:grid;gap:2px;min-width:0}
.ariel-dashboard-rank-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34495a;font-size:8.5px}
.ariel-dashboard-rank-main i{display:block;height:4px;border-radius:999px;background:#edf1f4;overflow:hidden}
.ariel-dashboard-rank-main i b{display:block;height:100%;border-radius:999px;background:#4b78a8}
.ariel-dashboard-rank-amount{text-align:right;white-space:nowrap;font-weight:700;color:#23313d}
.ariel-dashboard-rank-row em{font-style:normal;text-align:right;white-space:nowrap;color:#5f6f7d;font-weight:700}

.ariel-panel-report-modal{width:min(1540px,96vw)!important;max-width:1540px!important}
.ariel-panel-report-modal .ariel-panel-body{padding:10px 14px 28px!important}
.ariel-dashboard-report-modal-toolbar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:-2px 0 8px;padding:6px 0 8px;border-bottom:1px solid var(--ariel-line);background:#fff}
.ariel-dashboard-report-modal-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ariel-dashboard-report-modal-toolbar strong{font-size:11px;color:#34495a}
.ariel-dashboard-report-modal-toolbar span{font-size:9px;color:var(--ariel-muted)}
.ariel-dashboard-report-modal-toolbar .button{min-height:29px!important;height:29px!important;padding:2px 8px!important}
.ariel-dashboard-full-report-output .ariel-report-visual-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:8px;margin:8px 0 10px}
.ariel-dashboard-full-report-output .ariel-report-chart{padding:8px}
.ariel-dashboard-full-report-output .ariel-chart-svg{height:245px;max-height:245px}
.ariel-dashboard-full-report-output .ariel-table th,.ariel-dashboard-full-report-output .ariel-table td{padding:7px 8px;font-size:11px}

@media(min-width:1280px){
  .ariel-dashboard-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ariel-dashboard-mini-chart svg{height:96px;max-height:96px}
  .ariel-dashboard-expense-compact-grid{grid-template-columns:minmax(250px,.82fr) minmax(280px,1.09fr) minmax(280px,1.09fr)}
}
@media(max-width:1100px){
  .ariel-dashboard-expense-compact-grid{grid-template-columns:1fr 1fr}
  .ariel-dashboard-expense-block:first-child{grid-column:1/-1}
}
@media(max-width:782px){
  .ariel-dashboard-attention-strip{align-items:flex-start}
  .ariel-dashboard-report-head{align-items:flex-start!important}
  .ariel-dashboard-finance-title{width:100%}
  .ariel-dashboard-date-filter{width:100%;justify-content:flex-start!important}
  .ariel-dashboard-expense-compact-grid{grid-template-columns:1fr}
  .ariel-dashboard-expense-block:first-child{grid-column:auto}
  .ariel-dashboard-mini-chart svg{height:118px;max-height:118px}
  .ariel-panel-report-modal{width:100vw!important;max-width:100vw!important}
  .ariel-dashboard-full-report-output .ariel-chart-svg{height:210px;max-height:210px}
}

/* RC240 — Communications correspondence workbench + rich pasted email capture */
.ariel-communications-workbench{min-width:0}
.ariel-communication-tabs{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin:10px 0 8px;border-bottom:1px solid var(--ariel-border,#dfe4e8)}
.ariel-communication-tabs button{appearance:none;border:0;border-bottom:3px solid transparent;background:transparent;padding:8px 12px;min-height:38px;font-weight:700;cursor:pointer;color:var(--ariel-muted)}
.ariel-communication-tabs button.is-active{color:var(--ariel-text);border-bottom-color:var(--ariel-accent)}
.ariel-communication-tabs button span{display:inline-flex;min-width:20px;justify-content:center;padding:1px 6px;margin-left:4px;border:1px solid var(--ariel-border,#dfe4e8);border-radius:999px;font-size:11px;line-height:18px}
.ariel-communication-toolbar{display:grid;grid-template-columns:minmax(210px,1.6fr) repeat(4,minmax(120px,.8fr)) repeat(2,minmax(130px,.7fr)) minmax(130px,.8fr) minmax(140px,.9fr) auto;gap:7px;align-items:end;padding:8px 0}
.ariel-communication-toolbar input,.ariel-communication-toolbar select{width:100%;min-width:0;min-height:36px}
.ariel-communication-toolbar label{display:grid;gap:2px;font-size:11px;font-weight:700;color:var(--ariel-muted);margin:0}
.ariel-communication-results-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:4px 0 7px;color:var(--ariel-muted);font-size:12px}
.ariel-communication-results-head strong{color:var(--ariel-text)}
.ariel-communication-groups{display:grid;gap:7px}
.ariel-communication-group{border:1px solid var(--ariel-border,#dfe4e8);border-radius:8px;background:var(--ariel-card)}
.ariel-communication-group>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:8px 10px;list-style-position:inside;background:var(--ariel-bg,#f3f5f7)}
.ariel-communication-group>summary span{font-size:12px;color:var(--ariel-muted);font-weight:600}
.ariel-communication-group .ariel-table-wrap{border:0;border-top:1px solid var(--ariel-border,#dfe4e8);border-radius:0}
.ariel-communication-group-actions{display:flex;justify-content:flex-end;gap:6px;margin-bottom:6px}
.ariel-communication-editor-wrap{padding:0;border:1px solid var(--ariel-border,#dfe4e8);border-radius:8px;overflow:hidden;background:var(--ariel-card)}
.ariel-communication-editor-wrap legend{margin-left:10px;padding:0 5px;font-weight:700}
.ariel-communication-editor-toolbar{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:6px 8px;border-bottom:1px solid var(--ariel-border,#dfe4e8);background:var(--ariel-bg,#f3f5f7)}
.ariel-communication-rich-editor{min-height:220px;max-height:520px;overflow:auto;padding:12px 14px;background:#fff;color:#1d2327;line-height:1.45;outline:none}
.ariel-communication-rich-editor:focus{box-shadow:inset 0 0 0 2px var(--ariel-accent)}
.ariel-communication-rich-editor img,.ariel-communication-rich-body img{max-width:100%;height:auto;display:block;margin:8px 0}
.ariel-communication-rich-editor table,.ariel-communication-rich-body table{max-width:100%;border-collapse:collapse}
.ariel-communication-rich-editor td,.ariel-communication-rich-editor th,.ariel-communication-rich-body td,.ariel-communication-rich-body th{border:1px solid var(--ariel-border,#dfe4e8);padding:4px 6px}
.ariel-communication-editor-wrap>.ariel-form-hint,.ariel-communication-editor-status{padding:5px 10px 8px;margin:0}
.ariel-communication-editor-status.is-error{color:#b32d2e}
.ariel-communication-rich-body{overflow-wrap:anywhere}
.ariel-communication-quick-actions{justify-content:flex-start}
@media(max-width:1500px){.ariel-communication-toolbar{grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(120px,1fr));}.ariel-communication-toolbar label,.ariel-communication-toolbar [data-comm-sort],.ariel-communication-toolbar [data-comm-group],.ariel-communication-toolbar [data-comm-clear]{grid-column:auto}}
@media(max-width:900px){.ariel-communication-toolbar{grid-template-columns:1fr 1fr}.ariel-communication-toolbar [data-comm-search]{grid-column:1/-1}.ariel-communication-rich-editor{min-height:180px;max-height:none}.ariel-communication-results-head{align-items:flex-start}}
@media(max-width:560px){.ariel-communication-toolbar{grid-template-columns:1fr}.ariel-communication-tabs{display:grid;grid-template-columns:1fr 1fr}.ariel-communication-tabs button{text-align:center}.ariel-communication-group>summary{align-items:flex-start}.ariel-communication-results-head span{display:none}}

/* RC242 — native Communications Email Outbox */
.ariel-email-recipient-builder .ariel-email-add-row{align-items:end;grid-template-columns:minmax(110px,.35fr) minmax(260px,1.4fr) auto}
.ariel-email-recipient-groups{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.ariel-email-recipient-groups>div{display:grid;grid-template-columns:46px minmax(0,1fr);gap:8px;align-items:start}
.ariel-email-chip-list{display:flex;flex-wrap:wrap;gap:6px;min-height:34px;align-items:center}
.ariel-email-recipient-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfd8e3;border-radius:999px;background:#f7f9fb;padding:4px 6px 4px 10px;max-width:100%}
.ariel-email-recipient-chip>span{display:flex;gap:5px;align-items:baseline;min-width:0}
.ariel-email-recipient-chip strong,.ariel-email-recipient-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-email-recipient-chip small{color:#5f6f7e}
.ariel-email-recipient-chip button{border:0;background:transparent;font-size:18px;line-height:1;cursor:pointer;padding:0 3px;color:#5f6f7e}
.ariel-email-recipient-chip button:hover{color:#9d2020}
.ariel-email-address-line{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.ariel-email-workflow .ariel-card-head{margin-bottom:0}
.ariel-status-ready_to_send{background:#fff5c2;color:#6e5600;border-color:#e7cf68}
@media (min-width:900px){.ariel-email-recipient-groups{grid-template-columns:repeat(3,minmax(0,1fr))}.ariel-email-recipient-groups>div{display:block}.ariel-email-recipient-groups>div>strong{display:block;margin-bottom:5px}}
@media (max-width:720px){.ariel-email-recipient-builder .ariel-email-add-row{grid-template-columns:1fr}.ariel-email-recipient-chip>span{display:block}}

/* RC243 — Dashboard Budget vs Actual, donut breakdowns, and per-user unread Communications. */
.ariel-dashboard-owner-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:10px;align-items:center;min-width:0}
.ariel-dashboard-owner-trend,.ariel-dashboard-owner-donut{min-width:0}
.ariel-dashboard-owner-donut h4,.ariel-dashboard-expense-block h4{margin:0 0 5px;font-size:10.5px;line-height:1.2;color:#34495a}
.ariel-dashboard-owner-donut h4 small,.ariel-dashboard-expense-block h4 small{font-size:8px;color:var(--ariel-muted);font-weight:600}
.ariel-dashboard-donut-wrap{display:grid;grid-template-columns:104px minmax(0,1fr);gap:9px;align-items:center;min-width:0}
.ariel-dashboard-donut{position:relative;width:104px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}
.ariel-dashboard-donut>div{position:absolute;inset:23%;display:grid;place-items:center;align-content:center;border-radius:50%;background:#fff;border:1px solid #edf1f4;text-align:center;padding:2px}
.ariel-dashboard-donut>div strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.1;color:#23313d}
.ariel-dashboard-donut>div span{font-size:7px;line-height:1.1;color:var(--ariel-muted);text-transform:uppercase;letter-spacing:.03em}
.ariel-dashboard-donut-legend{display:grid;gap:3px;min-width:0}
.ariel-dashboard-donut-row{display:grid;grid-template-columns:8px minmax(0,1fr) 68px 35px;gap:4px;align-items:center;min-width:0;font-size:8px;line-height:1.15}
.ariel-dashboard-donut-row>i{display:block;width:7px;height:7px;border-radius:50%}
.ariel-dashboard-donut-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34495a;font-weight:600}
.ariel-dashboard-donut-row>strong,.ariel-dashboard-donut-row>em{white-space:nowrap;text-align:right}
.ariel-dashboard-donut-row>strong{font-size:8px;color:#23313d}
.ariel-dashboard-donut-row>em{font-style:normal;font-weight:700;color:#60717e}

.ariel-dashboard-expense-donut-grid{display:grid;grid-template-columns:minmax(310px,1.05fr) minmax(280px,.95fr);gap:9px;align-items:start;min-width:0}
.ariel-dashboard-expense-block{min-width:0;padding:6px 7px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}
.ariel-dashboard-expense-kpis-inline{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:2px 0 6px!important}

.ariel-dashboard-budget-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.ariel-dashboard-budget-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;min-width:0;padding:5px 7px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}
.ariel-dashboard-budget-row>strong{font-size:10px;color:#34495a;white-space:nowrap}
.ariel-dashboard-budget-bars{display:grid;gap:3px;min-width:0}
.ariel-dashboard-budget-bars>div{display:grid;grid-template-columns:48px minmax(0,1fr) 72px;gap:5px;align-items:center;min-width:0}
.ariel-dashboard-budget-bars span{font-size:7.5px;color:var(--ariel-muted);font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.ariel-dashboard-budget-bars i{display:block;height:6px;border-radius:999px;background:#edf1f4;overflow:hidden}
.ariel-dashboard-budget-bars i b{display:block;height:100%;border-radius:999px;background:#7b8fa5}
.ariel-dashboard-budget-bars i b.is-actual{background:#3d6fa6}
.ariel-dashboard-budget-bars em{font-style:normal;text-align:right;white-space:nowrap;font-size:8px;font-weight:700;color:#23313d}
.ariel-dashboard-budget-row>small{font-size:8px;font-weight:800;text-align:right;white-space:nowrap}
.ariel-dashboard-budget-row>small.is-good{color:#2f7d45}.ariel-dashboard-budget-row>small.is-bad{color:#a33b32}

.ariel-communication-tabs button em{display:inline-block;margin-left:4px;font-size:9px;font-style:normal;font-weight:800;color:#9a5b15}
.ariel-communication-subject{display:flex;align-items:center;gap:5px;min-width:0}
.ariel-communication-subject>span:not(.ariel-unread-dot){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-communication-subject.is-unread>span:not(.ariel-unread-dot){font-weight:800;color:#1d3d55}
.ariel-communication-subject small{font-size:8px;font-weight:800;color:#9a5b15;text-transform:uppercase}
.ariel-unread-dot{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#2f6fa3}
.ariel-communication-toolbar{grid-template-columns:minmax(210px,1.6fr) repeat(5,minmax(116px,.8fr)) repeat(2,minmax(126px,.7fr)) minmax(126px,.8fr) minmax(136px,.9fr) auto}

@media(max-width:1180px){
  .ariel-dashboard-owner-split{grid-template-columns:1fr}
  .ariel-dashboard-owner-donut{max-width:520px}
  .ariel-dashboard-expense-donut-grid{grid-template-columns:1fr}
  .ariel-dashboard-budget-compact{grid-template-columns:1fr}
}
@media(max-width:700px){
  .ariel-dashboard-donut-wrap{grid-template-columns:88px minmax(0,1fr)}
  .ariel-dashboard-donut{width:88px}
  .ariel-dashboard-donut-row{grid-template-columns:8px minmax(0,1fr) 62px 32px}
  .ariel-dashboard-budget-row{grid-template-columns:1fr}
  .ariel-dashboard-budget-row>small{text-align:left}
}

/* RC245 — unified compact presentation standard ---------------------------------
   Dashboard, analytical reports, report modals and record previews share the
   same dense management-screen language. Long content stays inside the current
   viewport/workbench instead of stretching the whole page unnecessarily. */

/* Dashboard: keep the landing page information-dense and remove poster-like space. */
.ariel-dashboard-attention-strip{margin-bottom:5px;padding:5px 8px;gap:7px;border-radius:6px}
.ariel-dashboard-attention-item{min-height:27px;padding:3px 7px;font-size:10px}
.ariel-dashboard-attention-item b{min-width:17px;height:17px;font-size:9px}
.ariel-dashboard-financial-reports{padding:6px 8px!important;margin-bottom:5px!important;border-radius:7px!important;box-shadow:none!important}
.ariel-dashboard-report-head{min-height:30px!important;margin-bottom:2px!important}
.ariel-dashboard-finance-title h2{font-size:13px!important}
.ariel-dashboard-finance-title span{font-size:8px}
.ariel-dashboard-date-filter{gap:4px!important}
.ariel-dashboard-date-filter label{gap:3px!important;font-size:8px!important}
.ariel-dashboard-date-filter input,.ariel-dashboard-date-filter .button{height:27px!important;min-height:27px!important;font-size:10px!important}
.ariel-dashboard-report-grid{gap:5px!important;margin-top:2px!important}
.ariel-dashboard-report-card{padding:5px 6px!important;border-radius:6px!important;box-shadow:none!important;min-height:0!important}
.ariel-dashboard-report-title{margin:0 0 2px!important;min-height:25px}
.ariel-dashboard-report-title h3{font-size:11px!important;line-height:1.1!important}
.ariel-dashboard-report-title p{font-size:7.5px!important;line-height:1.15!important;margin:1px 0 0!important}
.ariel-dashboard-report-title-actions{gap:5px}
.ariel-dashboard-report-title-actions>strong{font-size:13px}
.ariel-dashboard-open-report{height:23px!important;min-height:23px!important;padding:1px 6px!important;font-size:8.5px!important}
.ariel-dashboard-mini-chart svg{height:82px!important;max-height:82px!important}
.ariel-dashboard-mini-legend{font-size:7px!important;gap:4px;margin:0 0 1px}
.ariel-dashboard-owner-split{grid-template-columns:minmax(0,1.28fr) minmax(235px,.72fr);gap:6px}
.ariel-dashboard-owner-donut h4,.ariel-dashboard-expense-block h4{font-size:9.5px;margin-bottom:3px}
.ariel-dashboard-donut-wrap{grid-template-columns:88px minmax(0,1fr);gap:6px}
.ariel-dashboard-donut{width:88px}
.ariel-dashboard-donut-row{grid-template-columns:7px minmax(0,1fr) 62px 32px;gap:3px;font-size:7.5px}
.ariel-dashboard-donut-row>strong{font-size:7.5px}
.ariel-dashboard-expense-donut-grid{grid-template-columns:minmax(275px,.9fr) minmax(300px,1.1fr);gap:6px}
.ariel-dashboard-expense-block{padding:4px 5px;border-radius:5px}
.ariel-dashboard-expense-kpis-inline{margin:1px 0 3px!important;gap:4px!important}
.ariel-dashboard-expense-kpis-inline>span{padding:1px 5px!important}
.ariel-dashboard-budget-compact{gap:5px}
.ariel-dashboard-budget-row{padding:4px 6px;gap:5px;border-radius:5px}
.ariel-dashboard-budget-row>strong{font-size:9px}
.ariel-dashboard-budget-bars{gap:2px}
.ariel-dashboard-budget-bars>div{grid-template-columns:43px minmax(0,1fr) 66px;gap:4px}
.ariel-dashboard-budget-bars span{font-size:7px}.ariel-dashboard-budget-bars em{font-size:7.5px}.ariel-dashboard-budget-row>small{font-size:7.5px}
.ariel-dashboard-inline-note{display:flex;align-items:center;gap:7px;min-height:30px;padding:5px 7px;border:1px solid #dce3e8;border-radius:5px;background:#fafbfc;color:#5b6873;font-size:9px;line-height:1.2}
.ariel-dashboard-inline-note strong{color:#2f3d48;white-space:nowrap}.ariel-dashboard-inline-note span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Dashboard KPI strip replaces oversized metric cards. Help remains available as tooltip text. */
.ariel-dashboard-kpi-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:5px 0}
.ariel-dashboard-kpi{min-width:0;padding:5px 7px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff}
.ariel-dashboard-kpi span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#61707c;font-size:8px;font-weight:750;letter-spacing:.01em}
.ariel-dashboard-kpi strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;color:#1e2d38;font-size:13px;line-height:1.05;font-variant-numeric:tabular-nums}
.ariel-dashboard-build-footer{display:flex;justify-content:flex-end;gap:7px;align-items:center;margin:3px 1px 0;color:#7a8791;font-size:8px}
.ariel-dashboard-build-footer strong{color:#5c6974;font-weight:700}.ariel-dashboard-build-footer span{padding-left:7px;border-left:1px solid #d9dfe4}

/* Full report workbench: one viewport, compact summary, shorter visuals and an
   internally scrolling result table when a report contains many rows. */
.ariel-panel-report-modal{width:min(1500px,97vw)!important;max-width:1500px!important;height:100%!important;overflow:hidden!important}
.ariel-panel-report-modal>.ariel-panel-head{padding:9px 13px!important;min-height:45px;align-items:center}
.ariel-panel-report-modal>.ariel-panel-head h2{font-size:16px!important;line-height:1.15!important}
.ariel-panel-report-modal>.ariel-panel-body{height:calc(100vh - 45px);box-sizing:border-box;overflow:auto;padding:7px 10px 12px!important}
.ariel-dashboard-report-modal-toolbar{margin:0 0 5px;padding:3px 0 5px;gap:6px}
.ariel-dashboard-report-modal-toolbar strong{font-size:9.5px}.ariel-dashboard-report-modal-toolbar span{font-size:8px}
.ariel-dashboard-report-modal-toolbar .button{height:27px!important;min-height:27px!important;font-size:10px!important}
.ariel-panel-report-modal .ariel-metrics,.ariel-panel-report-modal .ariel-metrics-compact,
.ariel-dashboard-full-report-output .ariel-metrics,.ariel-dashboard-full-report-output .ariel-metrics-compact{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;gap:4px!important;margin:4px 0!important}
.ariel-panel-report-modal .ariel-metric,.ariel-dashboard-full-report-output .ariel-metric{min-height:0!important;padding:5px 7px!important;border-radius:5px!important}
.ariel-panel-report-modal .ariel-metric span,.ariel-dashboard-full-report-output .ariel-metric span{font-size:8px!important;line-height:1.1!important}
.ariel-panel-report-modal .ariel-metric strong,.ariel-dashboard-full-report-output .ariel-metric strong{font-size:14px!important;line-height:1.05!important;margin:2px 0 0!important}
.ariel-panel-report-modal .ariel-metric small,.ariel-dashboard-full-report-output .ariel-metric small{display:none!important}
.ariel-dashboard-full-report-output .ariel-report-notes{margin:4px 0;padding:5px 7px;border-left-width:3px;font-size:9px;line-height:1.25}
.ariel-dashboard-full-report-output .ariel-report-visual-grid{grid-template-columns:repeat(auto-fit,minmax(330px,1fr))!important;gap:5px!important;margin:5px 0!important}
.ariel-dashboard-full-report-output .ariel-report-chart{padding:5px!important;border-radius:6px!important;box-shadow:none!important}
.ariel-dashboard-full-report-output .ariel-report-chart-head{margin-bottom:3px!important;gap:5px!important}
.ariel-dashboard-full-report-output .ariel-report-chart-head h4{font-size:10px!important;line-height:1.15!important}
.ariel-dashboard-full-report-output .ariel-report-chart-head p{font-size:8px!important;line-height:1.15!important}
.ariel-dashboard-full-report-output .ariel-chart-legend{font-size:8px!important;gap:5px!important}
.ariel-dashboard-full-report-output .ariel-chart-svg{height:165px!important;max-height:165px!important;min-width:360px!important}
.ariel-dashboard-full-report-output .ariel-hbar-chart{gap:4px!important}
.ariel-dashboard-full-report-output .ariel-hbar-row{gap:5px!important}
.ariel-dashboard-full-report-output .ariel-hbar-line{font-size:8.5px!important;gap:4px!important}
.ariel-dashboard-full-report-output .ariel-hbar-track{height:7px!important}
.ariel-dashboard-full-report-output>.ariel-table-wrap{max-height:calc(100vh - 390px);overflow:auto;border-radius:5px;box-shadow:none!important}
.ariel-dashboard-full-report-output .ariel-table{font-size:10px!important}
.ariel-dashboard-full-report-output .ariel-table th,.ariel-dashboard-full-report-output .ariel-table td{padding:4px 6px!important;font-size:10px!important;line-height:1.2!important}

/* General report screens and embedded module reports use the same visual density. */
.ariel-report-dashboard{padding:7px 9px!important;margin-bottom:5px!important;border-left-width:3px!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important}
.ariel-report-dashboard:after{display:none!important}
.ariel-report-dashboard .ariel-card-head{margin-bottom:4px!important;min-height:25px!important}
.ariel-report-dashboard .ariel-card-head h2{font-size:13px!important;margin:0!important}
.ariel-report-dashboard .ariel-card-head p,.ariel-report-dashboard .ariel-eyebrow{display:none!important}
.ariel-report-dashboard .ariel-metrics{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;gap:4px!important;margin:3px 0!important}
.ariel-report-dashboard .ariel-metric{min-height:0!important;padding:5px 7px!important;border-radius:5px!important}
.ariel-report-dashboard .ariel-metric span{font-size:8px!important}.ariel-report-dashboard .ariel-metric strong{font-size:14px!important;line-height:1!important;margin:2px 0!important}.ariel-report-dashboard .ariel-metric small{display:none!important}
.ariel-report-dashboard .ariel-actions-row{margin:4px 0 0!important;padding-top:4px!important;gap:4px!important;font-size:9px!important}
.ariel-report-dashboard .ariel-actions-row .button{height:25px!important;min-height:25px!important;padding:1px 6px!important;font-size:9px!important}
.ariel-module-report-result-head{align-items:center;margin:2px 0 5px!important;padding-bottom:4px!important}
.ariel-module-report-result-head h3{font-size:13px!important;line-height:1.15!important}
.ariel-module-report-result-head p{font-size:9px!important;line-height:1.2!important;margin-top:1px!important}
.ariel-module-report-output .ariel-metrics-compact,#report-output .ariel-metrics-compact{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;gap:4px!important;margin:4px 0!important}
.ariel-module-report-output .ariel-metrics-compact .ariel-metric,#report-output .ariel-metrics-compact .ariel-metric{min-height:0!important;padding:5px 7px!important;border-radius:5px!important}
.ariel-module-report-output .ariel-metrics-compact .ariel-metric span,#report-output .ariel-metrics-compact .ariel-metric span{font-size:8px!important}
.ariel-module-report-output .ariel-metrics-compact .ariel-metric strong,#report-output .ariel-metrics-compact .ariel-metric strong{font-size:14px!important;line-height:1.05!important;margin:2px 0 0!important}
.ariel-module-report-output .ariel-report-notes,#report-output .ariel-report-notes{margin:4px 0;padding:5px 7px;font-size:9px;line-height:1.25}
.ariel-module-report-output .ariel-report-visual-grid,#report-output .ariel-report-visual-grid{grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:5px;margin:5px 0}
.ariel-module-report-output .ariel-report-chart,#report-output .ariel-report-chart{padding:6px;border-radius:6px;box-shadow:none}
.ariel-module-report-output .ariel-report-chart-head,#report-output .ariel-report-chart-head{margin-bottom:3px}
.ariel-module-report-output .ariel-report-chart-head h4,#report-output .ariel-report-chart-head h4{font-size:10.5px}
.ariel-module-report-output .ariel-report-chart-head p,#report-output .ariel-report-chart-head p{font-size:8px}
.ariel-module-report-output .ariel-chart-legend,#report-output .ariel-chart-legend{font-size:8px;gap:5px}
.ariel-module-report-output .ariel-chart-svg,#report-output .ariel-chart-svg{max-height:190px}
.ariel-module-report-output>.ariel-table-wrap,#report-output>.ariel-table-wrap{max-height:calc(100vh - 330px);overflow:auto;box-shadow:none}
.ariel-module-report-output .ariel-table th,.ariel-module-report-output .ariel-table td,#report-output .ariel-table th,#report-output .ariel-table td{padding:5px 6px;font-size:10.5px;line-height:1.2}

/* Record previews/detail panels: remove oversized headings and decorative gaps. */
.ariel-panel-wide{width:min(980px,96vw)!important}
.ariel-panel>.ariel-panel-head{padding:11px 14px;min-height:46px;box-sizing:border-box;align-items:center}
.ariel-panel>.ariel-panel-head h2{font-size:17px;line-height:1.15}
.ariel-panel>.ariel-panel-head p{margin:2px 0 0;font-size:10px;line-height:1.2}
.ariel-panel .ariel-panel-body{padding:10px 14px 18px}
.ariel-panel .ariel-panel-form{padding:11px 14px 18px}
.ariel-panel .ariel-panel-body h3{margin:12px 0 6px;font-size:13px;line-height:1.2}
.ariel-record-hero{gap:10px;padding-bottom:8px}.ariel-record-hero h3{font-size:18px;margin:2px 0}.ariel-record-hero p{font-size:10px}
.ariel-kpi-row{gap:5px;margin:7px 0}.ariel-kpi-row>div{padding:6px 7px;border-radius:6px}.ariel-kpi-row span{font-size:8px}.ariel-kpi-row strong{margin-top:2px;font-size:13px}
.ariel-subcard{padding:8px;margin:5px 0;border-radius:6px}.ariel-subcard .ariel-card-head{margin-bottom:5px}.ariel-subcard .ariel-card-head h3{margin:0;font-size:12px}.ariel-subcard .ariel-card-head p{font-size:9px;line-height:1.2;margin:1px 0 0}
.ariel-kv>div{grid-template-columns:180px 1fr;padding:6px 0}.ariel-kv dt,.ariel-kv dd{font-size:11px;line-height:1.25}
.ariel-panel-actions{gap:5px;margin:7px 0 9px}.ariel-panel-actions .button{min-height:27px;padding:2px 7px;font-size:10px}
.ariel-form{gap:9px}.ariel-form label{gap:3px;font-size:11px}.ariel-form input[type=text],.ariel-form input[type=search],.ariel-form input[type=email],.ariel-form input[type=number],.ariel-form input[type=date],.ariel-form input[type=datetime-local],.ariel-form select,.ariel-form textarea{padding:6px 8px;font-size:12px}.ariel-form textarea{min-height:76px}
.ariel-form-actions{padding-top:8px;margin-top:1px}.ariel-form-actions .button{min-height:29px;padding:3px 8px}

/* Printing should inherit the compact report hierarchy instead of the old oversized screen cards. */
@media print{
  body.ariel-print-report .ariel-print-target .ariel-metrics-compact{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:3mm!important;margin:2mm 0!important}
  body.ariel-print-report .ariel-print-target .ariel-metric{min-height:0!important;padding:2mm!important}
  body.ariel-print-report .ariel-print-target .ariel-metric strong{font-size:11pt!important;margin:1mm 0 0!important}
  body.ariel-print-report .ariel-print-target .ariel-report-visual-grid{gap:3mm!important;margin:2mm 0!important}
  body.ariel-print-report .ariel-print-target .ariel-report-chart{padding:2mm!important}
  body.ariel-print-report .ariel-print-target .ariel-chart-svg{height:48mm!important;max-height:48mm!important}
  body.ariel-print-report .ariel-print-target .ariel-table th,body.ariel-print-report .ariel-print-target .ariel-table td{padding:1.3mm 1.5mm!important;font-size:8pt!important;line-height:1.15!important}
}

@media(max-width:1250px){
  .ariel-dashboard-kpi-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ariel-dashboard-owner-split{grid-template-columns:1fr}
  .ariel-dashboard-owner-donut{max-width:480px}
}
@media(max-width:782px){
  .ariel-dashboard-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ariel-dashboard-report-head{align-items:flex-start!important}
  .ariel-dashboard-date-filter{width:100%;flex-wrap:wrap}
  .ariel-dashboard-expense-donut-grid,.ariel-dashboard-budget-compact{grid-template-columns:1fr}
  .ariel-dashboard-inline-note{align-items:flex-start;flex-direction:column}.ariel-dashboard-inline-note span{white-space:normal}
  .ariel-panel-report-modal>.ariel-panel-body{height:calc(100vh - 46px)}
  .ariel-dashboard-full-report-output>.ariel-table-wrap,.ariel-module-report-output>.ariel-table-wrap,#report-output>.ariel-table-wrap{max-height:none}
}

/* RC246 — Executive Dashboard redesign
   A deliberate visual reset for Owner/Admin dashboards. The dashboard is no longer
   a compressed report catalogue: it uses executive hierarchy, balanced chart
   proportions, restrained density and secondary operational information. */
.ariel-exec-attention{display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:9px 12px;border:1px solid #d8e0e7;border-radius:10px;background:#fff}
.ariel-exec-attention>span{flex:0 0 auto;color:#526474;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.ariel-exec-attention>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.ariel-exec-attention a{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:3px 10px 3px 5px;border:1px solid #dce3e9;border-radius:999px;background:#f8fafb;color:#314b60;text-decoration:none;font-size:11px;font-weight:700;transition:.15s ease}
.ariel-exec-attention a:hover{border-color:#aebfcd;background:#f1f6f9;color:#173e5b}
.ariel-exec-attention a strong{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#e8eef3;color:#234b6a;font-size:10px}

.ariel-exec-dashboard{margin:0;padding:0;background:transparent}
.ariel-exec-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:0 0 12px;padding:2px 2px 0}
.ariel-exec-heading{min-width:0}
.ariel-exec-eyebrow,.ariel-exec-kicker{display:block;margin:0 0 3px;color:#6b7f8f;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.065em}
.ariel-exec-heading h2{margin:0;color:#1d3445;font-size:20px;line-height:1.1;letter-spacing:-.01em}
.ariel-exec-heading p{margin:4px 0 0;color:#6a7985;font-size:11px;line-height:1.35}
.ariel-exec-date-filter{display:flex;align-items:flex-end;gap:7px;flex:0 0 auto}
.ariel-exec-date-filter label{display:grid;gap:3px;color:#647583;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.ariel-exec-date-filter input{width:136px;height:32px!important;min-height:32px!important;padding:3px 8px!important;border-color:#cfd9e1!important;border-radius:7px!important;background:#fff!important;color:#253846!important;font-size:11px!important}
.ariel-exec-date-filter .button{height:32px!important;min-height:32px!important;padding:2px 11px!important;border-radius:7px!important;font-size:10.5px!important}
.ariel-exec-message{min-height:0!important;margin:0!important;padding:0!important;font-size:10px!important}
.ariel-exec-message:not(:empty){margin:-5px 0 9px!important;padding:5px 8px!important}

.ariel-exec-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 12px}
.ariel-exec-kpis article{position:relative;min-width:0;padding:11px 12px 10px;border:1px solid #dce3e9;border-radius:10px;background:#fff;overflow:hidden}
.ariel-exec-kpis article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#dbe5ec}
.ariel-exec-kpis span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#687987;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.ariel-exec-kpis strong{display:block;margin:5px 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1c3446;font-size:19px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.ariel-exec-kpis strong.is-negative{color:#9a423d}
.ariel-exec-kpis small{display:block;color:#8996a0;font-size:8.5px;line-height:1.2}

.ariel-exec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.ariel-exec-panel{min-width:0;min-height:345px;padding:15px 16px 13px;border:1px solid #d9e1e7;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(28,52,70,.025)}
.ariel-exec-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 10px;min-height:54px}
.ariel-exec-panel-head>div:first-child{min-width:0}
.ariel-exec-panel-head h3{margin:0;color:#19364c;font-size:16px;line-height:1.15;letter-spacing:-.01em}
.ariel-exec-panel-head p{margin:4px 0 0;max-width:460px;color:#73818c;font-size:10px;line-height:1.35}
.ariel-exec-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto}
.ariel-exec-panel-actions>div{display:grid;text-align:right;margin-right:3px}
.ariel-exec-panel-actions small{color:#7a8994;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.ariel-exec-panel-actions strong{margin-top:1px;color:#1d3445;font-size:15px;line-height:1.05;font-variant-numeric:tabular-nums}
.ariel-exec-panel-actions strong.is-negative{color:#9a423d}
.ariel-exec-open-report{height:28px!important;min-height:28px!important;padding:1px 8px!important;border-radius:6px!important;font-size:9px!important;white-space:nowrap}

.ariel-exec-performance-totals{display:flex;align-items:center;gap:18px;margin:1px 0 2px;color:#5f707d;font-size:9px}
.ariel-exec-performance-totals span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.ariel-exec-performance-totals i{width:8px;height:8px;border-radius:2px}
.ariel-exec-performance-totals strong{color:#253b4b;font-size:10px;font-variant-numeric:tabular-nums}
.ariel-exec-chart{min-width:0;width:100%}
.ariel-exec-chart-legend{display:flex;justify-content:flex-end;gap:12px;min-height:15px;color:#657783;font-size:8.5px;font-weight:650}
.ariel-exec-chart-legend span{display:inline-flex;align-items:center;gap:4px}
.ariel-exec-legend-dot{display:inline-block;width:8px;height:8px;border-radius:2px}
.ariel-exec-chart svg{display:block;width:100%;height:auto;max-height:238px;overflow:visible}
.ariel-exec-gridline{stroke:#e6ebef;stroke-width:1}
.ariel-exec-axisline{stroke:#bfcbd4;stroke-width:1}
.ariel-exec-axis{fill:#7e8d98;font-size:9px;font-family:inherit}
.ariel-exec-xaxis{font-size:8.5px}
.ariel-exec-bar{opacity:.94}
.ariel-exec-series-0{fill:#356c9e}.ariel-exec-series-1{fill:#c78b42}.ariel-exec-series-2{fill:#71a45a}.ariel-exec-series-3{fill:#7d69a6}
.ariel-exec-series-bg-0{background:#356c9e}.ariel-exec-series-bg-1{background:#c78b42}.ariel-exec-series-bg-2{background:#71a45a}.ariel-exec-series-bg-3{background:#7d69a6}
.ariel-exec-empty{display:grid;place-items:center;min-height:205px;border:1px dashed #d8e0e6;border-radius:9px;background:#fafbfc;color:#7a8893;font-size:11px;text-align:center}

.ariel-exec-budget-layout{display:grid;grid-template-columns:1fr;gap:9px}
.ariel-exec-budget-card{padding:12px 13px;border:1px solid #e1e6ea;border-radius:9px;background:#fbfcfd}
.ariel-exec-budget-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:9px}
.ariel-exec-budget-card-head>div{display:grid;grid-template-columns:auto auto;column-gap:7px;align-items:baseline}
.ariel-exec-budget-card-head span{grid-column:1/-1;color:#516777;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ariel-exec-budget-card-head strong{margin-top:3px;color:#1d3445;font-size:20px;line-height:1;font-variant-numeric:tabular-nums}
.ariel-exec-budget-card-head small{color:#80909b;font-size:8px;font-weight:700}
.ariel-exec-budget-card-head em{font-style:normal;font-size:9px;font-weight:800;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#edf3ef;color:#37724a}
.ariel-exec-budget-card-head em.is-bad{background:#f7eeee;color:#9a423d}
.ariel-exec-budget-measure{display:grid;grid-template-columns:54px minmax(0,1fr) 82px;gap:7px;align-items:center;margin-top:5px}
.ariel-exec-budget-measure span{color:#697b88;font-size:8.5px;font-weight:750}
.ariel-exec-budget-measure i{display:block;height:8px;border-radius:999px;background:#e9eef2;overflow:hidden}
.ariel-exec-budget-measure i b{display:block;height:100%;border-radius:999px;background:#9aaaba}
.ariel-exec-budget-measure i b.is-actual{background:#356c9e}
.ariel-exec-budget-measure strong{text-align:right;color:#334957;font-size:9px;font-variant-numeric:tabular-nums}
.ariel-exec-budget-empty{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;min-height:118px;padding:15px;border:1px dashed #d5dee5;border-radius:9px;background:#fafbfc;color:#71818d;font-size:10px}
.ariel-exec-budget-empty strong{color:#344b5b}.ariel-exec-budget-empty a{white-space:nowrap;font-weight:700}

.ariel-exec-owner-layout{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(0,1.05fr);gap:16px;align-items:center;min-height:246px}
.ariel-exec-owner-donut,.ariel-exec-owner-trend{min-width:0}
.ariel-exec-owner-trend h4,.ariel-exec-expense-layout h4{margin:0 0 7px;color:#526878;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.ariel-exec-owner-trend .ariel-exec-chart-legend{display:none}
.ariel-exec-owner-trend .ariel-exec-chart svg{max-height:175px}
.ariel-exec-donut-wrap{display:grid;grid-template-columns:156px minmax(0,1fr);gap:13px;align-items:center;min-width:0}
.ariel-exec-donut{position:relative;width:156px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025)}
.ariel-exec-donut>div{position:absolute;inset:27%;display:grid;place-items:center;align-content:center;border-radius:50%;background:#fff;border:1px solid #edf1f4;text-align:center;padding:3px}
.ariel-exec-donut>div strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1c3446;font-size:12px;line-height:1.1;font-variant-numeric:tabular-nums}
.ariel-exec-donut>div span{margin-top:2px;color:#7c8b96;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ariel-exec-donut-legend{display:grid;gap:6px;min-width:0}
.ariel-exec-donut-row{display:grid;grid-template-columns:8px minmax(0,1fr) 72px 36px;gap:5px;align-items:center;min-width:0;font-size:8.5px;line-height:1.15}
.ariel-exec-donut-row>i{width:8px;height:8px;border-radius:50%}
.ariel-exec-donut-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3a5060;font-weight:700}
.ariel-exec-donut-row>strong,.ariel-exec-donut-row>em{text-align:right;white-space:nowrap;font-size:8.5px;font-variant-numeric:tabular-nums}
.ariel-exec-donut-row>em{font-style:normal;color:#71818d;font-weight:750}

.ariel-exec-expense-layout{display:grid;grid-template-columns:minmax(315px,.9fr) minmax(0,1.1fr);gap:16px;align-items:center;min-height:245px}
.ariel-exec-expense-layout>section{min-width:0}
.ariel-exec-subhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px}
.ariel-exec-subhead h4{margin:0}
.ariel-exec-subhead span{color:#7d8b96;font-size:8px;font-weight:700}
.ariel-exec-vendor-list{display:grid;gap:8px}
.ariel-exec-vendor-row{display:grid;grid-template-columns:20px minmax(0,1fr) 78px 38px;gap:6px;align-items:center;min-width:0}
.ariel-exec-rank{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eef3f6;color:#526878;font-size:8px;font-weight:800}
.ariel-exec-vendor-row>div{display:grid;gap:4px;min-width:0}
.ariel-exec-vendor-row>div strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334b5b;font-size:9px}
.ariel-exec-vendor-row>div i{display:block;height:6px;border-radius:999px;background:#edf1f4;overflow:hidden}
.ariel-exec-vendor-row>div i b{display:block;height:100%;border-radius:999px;background:#557fa5}
.ariel-exec-vendor-row>span,.ariel-exec-vendor-row>em{text-align:right;white-space:nowrap;font-size:8.5px;font-variant-numeric:tabular-nums}
.ariel-exec-vendor-row>span{color:#314a5a;font-weight:800}.ariel-exec-vendor-row>em{color:#74838e;font-style:normal;font-weight:700}

.ariel-exec-operations{margin:12px 0 0;padding:11px 12px;border-top:1px solid #dfe6eb;border-bottom:1px solid #dfe6eb;background:#fbfcfd}
.ariel-exec-operations>header{display:flex;align-items:baseline;gap:9px;margin:0 0 8px}
.ariel-exec-operations>header h3{margin:0;color:#3b5364;font-size:11px}.ariel-exec-operations>header span{color:#87949e;font-size:8.5px}
.ariel-exec-operations>div{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0}
.ariel-exec-operations article{min-width:0;padding:2px 9px;border-left:1px solid #dfe5ea}
.ariel-exec-operations article:first-child{border-left:0;padding-left:0}
.ariel-exec-operations article span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a8994;font-size:8px;font-weight:750}
.ariel-exec-operations article strong{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#32495a;font-size:13px;line-height:1;font-variant-numeric:tabular-nums}

.ariel-owner-exec-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}
.ariel-owner-exec-summary article{padding:10px 12px;border:1px solid #dbe3e9;border-radius:9px;background:#fff}
.ariel-owner-exec-summary span{display:block;color:#70818d;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.ariel-owner-exec-summary strong{display:block;margin-top:4px;color:#1f3a4d;font-size:18px;line-height:1}
.ariel-owner-exec-secondary{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:12px;margin-top:12px}
.ariel-owner-exec-actions,.ariel-owner-exec-links{min-width:0;padding:12px;border:1px solid #dce3e9;border-radius:10px;background:#fff}
.ariel-owner-exec-actions>header,.ariel-owner-exec-links>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.ariel-owner-exec-actions h3,.ariel-owner-exec-links h3{margin:0;color:#3a5263;font-size:11px}.ariel-owner-exec-actions>header a{font-size:9px;font-weight:700}
.ariel-owner-exec-links>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.ariel-owner-exec-links a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 8px;border:1px solid #e1e7ec;border-radius:6px;background:#fafbfc;color:#38566c;text-decoration:none;font-size:9px;font-weight:700}.ariel-owner-exec-links a:hover{background:#f2f6f8}

/* Let executive panels breathe. RC245's compact dashboard overrides intentionally
   do not apply to the new executive composition. */
.ariel-exec-dashboard .ariel-loading{min-height:260px;display:grid;place-items:center;color:#7d8c97;font-size:11px}
.ariel-dashboard-build-footer{margin-top:6px!important}

@media(max-width:1450px){
  .ariel-exec-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ariel-exec-operations>div{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:8px}
  .ariel-exec-operations article:nth-child(5){border-left:0;padding-left:0}
  .ariel-exec-owner-layout,.ariel-exec-expense-layout{grid-template-columns:1fr}
  .ariel-exec-panel{min-height:390px}
  .ariel-exec-owner-trend .ariel-exec-chart svg{max-height:145px}
}
@media(max-width:1080px){
  .ariel-exec-header{align-items:flex-start;flex-direction:column;gap:10px}
  .ariel-exec-date-filter{width:100%;flex-wrap:wrap}
  .ariel-exec-grid{grid-template-columns:1fr}
  .ariel-exec-panel{min-height:0}
  .ariel-exec-owner-layout,.ariel-exec-expense-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ariel-owner-exec-secondary{grid-template-columns:1fr}
}
@media(max-width:760px){
  .ariel-exec-attention{align-items:flex-start;flex-direction:column;gap:7px}
  .ariel-exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ariel-exec-kpis strong{font-size:16px}
  .ariel-exec-date-filter label{flex:1 1 130px}.ariel-exec-date-filter input{width:100%}
  .ariel-exec-panel{padding:12px}
  .ariel-exec-panel-head{flex-direction:column;min-height:0}.ariel-exec-panel-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.ariel-exec-panel-actions>div{text-align:left;margin-right:auto}
  .ariel-exec-owner-layout,.ariel-exec-expense-layout{grid-template-columns:1fr}
  .ariel-exec-donut-wrap{grid-template-columns:124px minmax(0,1fr)}.ariel-exec-donut{width:124px}
  .ariel-exec-operations>div{grid-template-columns:repeat(2,minmax(0,1fr))}.ariel-exec-operations article:nth-child(odd){border-left:0;padding-left:0}
  .ariel-owner-exec-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ariel-owner-exec-links>div{grid-template-columns:1fr}
}
@media(max-width:480px){
  .ariel-exec-kpis{grid-template-columns:1fr 1fr}.ariel-exec-kpis article{padding:9px}
  .ariel-exec-donut-wrap{grid-template-columns:1fr}.ariel-exec-donut{width:145px;margin:auto}
  .ariel-exec-donut-row{grid-template-columns:8px minmax(0,1fr) 68px 34px}
  .ariel-exec-budget-empty{grid-template-columns:1fr}
}

/* RC252 — rolling 12-month Dashboard matrices */
.ariel-roll12{margin:14px 0 0;padding:14px 15px 15px;border:1px solid #d9e1e7;border-radius:12px;background:#f8fafb}
.ariel-roll12-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 10px}
.ariel-roll12-head h2{margin:0;color:#1d3445;font-size:17px;line-height:1.15;letter-spacing:-.01em}
.ariel-roll12-head p{margin:4px 0 0;color:#6f7f8b;font-size:10px;line-height:1.35}
.ariel-roll12-controls{display:flex;align-items:flex-end;gap:7px;flex:0 0 auto}
.ariel-roll12-controls label{display:grid;gap:3px;color:#657784;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.ariel-roll12-controls select,.ariel-roll12-controls input{height:31px!important;min-height:31px!important;padding:2px 7px!important;border-color:#cfd9e1!important;border-radius:7px!important;background:#fff!important;font-size:10px!important}
.ariel-roll12-controls select{width:86px}.ariel-roll12-controls input{width:84px}
.ariel-roll12-controls .button{height:31px!important;min-height:31px!important;padding:1px 11px!important;font-size:10px!important;border-radius:7px!important}
.ariel-roll12-message{min-height:0!important;margin:0 0 8px!important;padding:0!important;font-size:9px!important;color:#75858f}
.ariel-roll12-message.is-success{color:#58705e}.ariel-roll12-message.is-error{color:#9a423d}
.ariel-roll12-stack{display:grid;gap:10px}
.ariel-roll12-card{min-width:0;padding:11px 12px 10px;border:1px solid #dbe3e9;border-radius:10px;background:#fff}
.ariel-roll12-card>.ariel-loading{min-height:130px!important}
.ariel-roll12-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin:0 0 8px}
.ariel-roll12-card-head h3{margin:0;color:#203b4f;font-size:13px;line-height:1.15}
.ariel-roll12-card-head p{margin:3px 0 0;color:#72818d;font-size:9px;line-height:1.3}
.ariel-roll12-card-head>div:last-child{display:grid;grid-template-columns:auto auto;column-gap:8px;row-gap:1px;align-items:center;text-align:right;flex:0 0 auto}
.ariel-roll12-card-head>div:last-child>strong{grid-column:1;color:#1f3a4c;font-size:15px;line-height:1;font-variant-numeric:tabular-nums}
.ariel-roll12-card-head>div:last-child>span{grid-column:1;color:#7e8d98;font-size:7.5px;font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.ariel-roll12-card-head>div:last-child>.button{grid-column:2;grid-row:1/3;height:27px!important;min-height:27px!important;padding:1px 8px!important;font-size:8.5px!important;border-radius:6px!important}
.ariel-roll-matrix-wrap{min-width:0;overflow-x:auto;border:1px solid #e1e7eb;border-radius:8px;background:#fff}
.ariel-roll-matrix{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#344b5b;font-size:8.5px}
.ariel-roll-matrix th,.ariel-roll-matrix td{height:31px;padding:3px 4px;border-right:1px solid #e5eaee;border-bottom:1px solid #e5eaee;text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}
.ariel-roll-matrix thead th{position:sticky;top:0;z-index:2;height:29px;background:#f4f7f9;color:#667986;font-size:7.5px;font-weight:800;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}
.ariel-roll-matrix tbody tr:last-child th,.ariel-roll-matrix tbody tr:last-child td{border-bottom:0}.ariel-roll-matrix th:last-child,.ariel-roll-matrix td:last-child{border-right:0}
.ariel-roll-matrix .ariel-roll-entity{width:168px;text-align:left;padding-left:8px;background:#fbfcfd}
.ariel-roll-matrix thead .ariel-roll-entity{background:#eef3f6}
.ariel-roll-matrix tbody .ariel-roll-entity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273f50;font-size:9px}
.ariel-roll-matrix tbody .ariel-roll-entity span{display:block;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d8b96;font-size:7.5px;font-weight:500}
.ariel-roll-matrix .ariel-roll-total{width:84px;background:#fbfcfd}.ariel-roll-matrix .ariel-roll-share{width:56px;background:#fbfcfd}
.ariel-roll-rent-matrix tbody tr.has-outstanding .ariel-roll-entity{box-shadow:inset 3px 0 #c97970}
.ariel-roll-status{display:inline-grid;place-items:center;width:26px;height:22px;margin:auto;border:0;border-radius:5px;font-size:12px;font-weight:900;line-height:1;cursor:pointer}
button.ariel-roll-status:hover{outline:2px solid rgba(52,93,123,.16);outline-offset:1px}
.ariel-roll-status.is-paid,.ariel-roll-legend i.is-paid{background:#dcefe2;color:#34704a}
.ariel-roll-status.is-partial,.ariel-roll-legend i.is-partial{background:#f7e8c7;color:#8a641d}
.ariel-roll-status.is-unpaid,.ariel-roll-legend i.is-unpaid{background:#f5d9d6;color:#9a443d}
.ariel-roll-status.is-not_due,.ariel-roll-legend i.is-not_due{background:#e8eef5;color:#58728a}
.ariel-roll-status.is-none,.ariel-roll-legend i.is-none{background:transparent;color:#a8b2ba;cursor:default}
.ariel-roll-legend{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:6px;color:#72818d;font-size:7.5px}
.ariel-roll-legend span{display:inline-flex;align-items:center;gap:4px}.ariel-roll-legend i{display:grid;place-items:center;width:16px;height:16px;border-radius:4px;font-style:normal;font-weight:900}
.ariel-roll-owner-amount{appearance:none;border:0;background:transparent;padding:2px 1px;color:#2e5879;font:inherit;font-weight:750;white-space:nowrap;cursor:pointer}
.ariel-roll-owner-amount:hover{text-decoration:underline}.ariel-roll-zero{color:#a7b0b7}
.ariel-inline-chip{display:inline-block;margin:2px 3px 2px 0;padding:3px 6px;border-radius:999px;background:#edf2f5;color:#4d6373;font-size:9px;font-weight:700}

@media (max-width:1100px){
  .ariel-roll12-head{align-items:flex-start;flex-direction:column;gap:8px}
  .ariel-roll12-controls{width:100%;flex-wrap:wrap}
}
@media (max-width:700px){
  .ariel-roll12{padding:10px}.ariel-roll12-card{padding:9px}
  .ariel-roll12-card-head{flex-direction:column;gap:7px}.ariel-roll12-card-head>div:last-child{text-align:left}
  .ariel-roll12-card-head>div:last-child>strong,.ariel-roll12-card-head>div:last-child>span{grid-column:1}.ariel-roll12-card-head>div:last-child>.button{grid-column:2}
}

/* RC254 — Rent payment variance intelligence in Tenant Payments and BANK browsers */
.ariel-rent-compare-over{color:var(--ariel-success)!important;font-weight:700}
.ariel-rent-compare-under{color:var(--ariel-danger)!important;font-weight:700}
.ariel-rent-compare-exact{color:var(--ariel-text)!important;font-weight:700}

/* RC256 — readable executive names + explicit WP-Admin shortcuts. */
.ariel-exec-owner-layout{grid-template-columns:minmax(390px,1.12fr) minmax(260px,.88fr);gap:18px}
.ariel-exec-expense-layout{grid-template-columns:minmax(390px,1.08fr) minmax(300px,.92fr);gap:18px}
.ariel-exec-donut-wrap{grid-template-columns:128px minmax(0,1fr);gap:12px}
.ariel-exec-donut{width:128px}
.ariel-exec-donut-row{grid-template-columns:8px minmax(0,1fr) 76px 38px;gap:5px;align-items:center}
.ariel-exec-donut-row>span{
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.18;
}
.ariel-exec-vendor-row{grid-template-columns:20px minmax(0,1fr) 78px 38px;align-items:center}
.ariel-exec-vendor-row>div strong{
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.2;
}
.ariel-nav-external{position:relative}
.ariel-nav-external .dashicons-external{margin-left:auto!important;width:13px!important;height:13px!important;font-size:13px!important;opacity:.65}
@media(max-width:1180px){
  .ariel-exec-owner-layout,.ariel-exec-expense-layout{grid-template-columns:1fr 1fr}
  .ariel-exec-donut-wrap{grid-template-columns:118px minmax(0,1fr)}
  .ariel-exec-donut{width:118px}
}
@media(max-width:760px){
  .ariel-exec-owner-layout,.ariel-exec-expense-layout{grid-template-columns:1fr}
  .ariel-exec-donut-wrap{grid-template-columns:112px minmax(0,1fr)}
  .ariel-exec-donut{width:112px}
}
@media(max-width:480px){
  .ariel-exec-donut-wrap{grid-template-columns:1fr}
  .ariel-exec-donut{width:140px;margin:auto}
}

/* RC257 — email transport evidence and resend controls. */
.ariel-email-delivery-evidence{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;padding:8px 10px;border:1px solid var(--ariel-line);border-radius:7px;background:#f8fafb;font-size:11px;color:var(--ariel-muted)}
.ariel-email-delivery-evidence span{display:inline-flex;gap:4px;align-items:center;min-width:0;overflow-wrap:anywhere}.ariel-email-delivery-evidence strong{color:var(--ariel-text)}


/* RC260 — integrated invoice pin in BANK register. */
.ariel-bank-invoice-pin-head{display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;opacity:.72}
.ariel-bank-invoice-pin{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:inherit;font-size:16px;line-height:1;cursor:pointer}
.ariel-bank-invoice-pin:hover,.ariel-bank-invoice-pin:focus-visible{background:#f3f6f9;border-color:#cbd5e1;outline:none}
.ariel-bank-invoice-pin sup{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;min-width:14px;height:14px;padding:0 3px;border-radius:999px;background:#1f2937;color:#fff;font-size:9px;font-weight:700;line-height:1}
@media (max-width:782px){.ariel-bank-invoice-pin{width:28px;height:28px;min-width:28px;font-size:15px}.ariel-bank-invoice-pin-head{font-size:13px}}

/* RC259 — mobile application UX redesign.
   Phone-only presentation reset. Desktop/tablet >= 783px is intentionally unchanged. */
@media (max-width:782px){
  /* Shell: one compact navigation rail, then a deliberately small page title. */
  .ariel-sidebar{
    position:sticky!important;top:0!important;z-index:80!important;
    min-height:0!important;padding:4px 5px!important;
    box-shadow:0 2px 8px rgba(12,35,52,.14)
  }
  body.admin-bar .ariel-sidebar{top:46px!important}
  .ariel-shortcode-host .ariel-sidebar{top:0!important}
  .ariel-sidebar nav{gap:2px!important;padding:0!important;scrollbar-width:none!important;overscroll-behavior-x:contain}
  .ariel-sidebar nav::-webkit-scrollbar{display:none}
  .ariel-nav-item,.ariel-nav-group>summary{
    min-height:34px!important;box-sizing:border-box!important;
    padding:5px 7px!important;border-radius:6px!important;
    gap:4px!important;font-size:10px!important;line-height:1!important
  }
  .ariel-nav-item .dashicons,.ariel-nav-group>summary .dashicons{font-size:15px!important;width:15px!important;height:15px!important}
  .ariel-nav-item span:last-child{max-width:112px!important}
  .ariel-nav-group[open]{min-width:min(236px,calc(100vw - 18px))!important}
  .ariel-nav-subitems{max-height:150px!important;padding:3px!important}

  .ariel-topbar,.ariel-topbar.ariel-unified-topbar-compact,.ariel-topbar.ariel-bank-topbar-compact{
    position:relative!important;top:auto!important;
    min-height:38px!important;padding:5px 8px!important;gap:5px!important
  }
  .ariel-topbar h1,.ariel-topbar.ariel-unified-topbar-compact h1,.ariel-topbar.ariel-bank-topbar-compact h1{
    font-size:15px!important;line-height:1.05!important
  }
  .ariel-page-heading{gap:5px!important}
  .ariel-page-heading h1{white-space:nowrap!important}
  .ariel-info-btn{width:22px!important;height:22px!important;font-size:11px!important}
  .ariel-user{padding:0!important;background:transparent!important;font-size:0!important;max-width:none!important}
  .ariel-user .ariel-logout{display:inline-flex!important;align-items:center;min-height:28px;margin:0!important;padding:3px 6px;border:1px solid var(--ariel-line);border-radius:6px;background:#fff;font-size:9px!important;line-height:1!important;text-decoration:none}
  .ariel-content,.ariel-content.ariel-unified-content-wide,.ariel-content.ariel-bank-content-wide{padding:6px 6px 18px!important}
  .ariel-shortcode-host .notice{margin:5px 6px 0!important;padding:4px 8px!important}
  .ariel-shortcode-host .notice p{margin:3px 0!important;font-size:10px!important}

  /* Cards and section headers: information first, explanatory prose on demand/help. */
  .ariel-card{padding:8px!important;border-radius:7px!important}
  .ariel-card-head{flex-direction:row!important;align-items:center!important;gap:6px!important;margin-bottom:7px!important;min-width:0}
  .ariel-card-head>div:first-child{min-width:0;flex:1 1 auto}
  .ariel-card-head h2{font-size:14px!important;line-height:1.12!important}
  .ariel-card-head h3{font-size:12px!important;line-height:1.12!important}
  .ariel-card-head p{display:none!important}
  .ariel-card-head>.button,.ariel-card-head>.ariel-inline-actions{flex:0 0 auto}
  .ariel-card-head>.ariel-inline-actions,.ariel-card-actions,.ariel-inline-actions{
    max-width:56vw;display:flex!important;flex-wrap:nowrap!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important
  }
  .ariel-card-head>.ariel-inline-actions::-webkit-scrollbar,.ariel-card-actions::-webkit-scrollbar,.ariel-inline-actions::-webkit-scrollbar{display:none}
  .ariel-card-head>.ariel-inline-actions .button,.ariel-card-actions .button,.ariel-inline-actions .button{flex:0 0 auto!important;white-space:nowrap!important}
  .ariel-grid,.ariel-grid-2,.ariel-grid-3{gap:7px!important}
  .ariel-subcard{padding:7px!important;margin:5px 0!important}
  .ariel-loading,.ariel-empty,.ariel-error{padding:16px 10px!important;border-radius:7px!important}
  .ariel-empty strong,.ariel-error strong{font-size:14px!important}
  .ariel-empty p,.ariel-error p{margin:4px 0 8px!important;font-size:10px!important;line-height:1.3!important}

  /* Compact touch controls. The control itself is smaller, while surrounding rail spacing
     preserves reliable touch separation. This avoids the previous 40px x multiple-row filter wall. */
  .ariel-shortcode-host .button,.ariel-content .button,.ariel-panel .button,
  .ariel-bank-tabs button,.ariel-ce-tabs button,.ariel-ce-tabs-compact button{
    min-height:34px!important;height:34px!important;padding:4px 8px!important;font-size:11px!important;line-height:1.1!important
  }
  .ariel-form input[type=text],.ariel-form input[type=search],.ariel-form input[type=email],
  .ariel-form input[type=number],.ariel-form input[type=date],.ariel-form input[type=datetime-local],
  .ariel-form select,.ariel-form textarea,
  .ariel-list-toolbar input,.ariel-list-toolbar select,
  .ariel-bank-register-controls input,.ariel-bank-register-controls select,
  .ariel-payment-register-controls input,.ariel-payment-register-controls select,
  .ariel-module-report-filter-compact input,.ariel-module-report-filter-compact select,
  .ariel-communication-toolbar input,.ariel-communication-toolbar select,
  .ariel-obligation-filterbar input,.ariel-obligation-filterbar select,
  #bank-raw-register .ariel-bank-correction-controls input,
  #bank-raw-register .ariel-bank-correction-controls select{
    min-height:34px!important;height:34px!important;padding:4px 7px!important;font-size:13px!important;line-height:1.15!important;border-radius:6px!important
  }
  .ariel-form{gap:7px!important}.ariel-form label{gap:3px!important;font-size:10px!important}.ariel-form textarea{min-height:68px!important}
  .ariel-form-row{gap:7px!important}.ariel-form-actions,.ariel-panel-save-actions{gap:4px!important;padding-top:7px!important}

  /* The core mobile interaction: filter controls are one swipeable rail, never a vertical wall. */
  .ariel-list-toolbar,.ariel-bank-register-controls,.ariel-payment-register-controls,
  .ariel-ce-global-controls,.ariel-ce-tab-controls,.ariel-module-report-filter-compact,
  .ariel-communication-toolbar,.ariel-obligation-filterbar,
  #bank-raw-register .ariel-bank-correction-controls,
  .ariel-exec-date-filter,.ariel-roll12-controls{
    display:flex!important;grid-template-columns:none!important;
    flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-end!important;
    gap:5px!important;width:100%!important;max-width:100%!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    padding:2px 0 5px!important;margin:0!important;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none!important
  }
  .ariel-list-toolbar::-webkit-scrollbar,.ariel-bank-register-controls::-webkit-scrollbar,.ariel-payment-register-controls::-webkit-scrollbar,
  .ariel-ce-global-controls::-webkit-scrollbar,.ariel-ce-tab-controls::-webkit-scrollbar,.ariel-module-report-filter-compact::-webkit-scrollbar,
  .ariel-communication-toolbar::-webkit-scrollbar,.ariel-obligation-filterbar::-webkit-scrollbar,
  #bank-raw-register .ariel-bank-correction-controls::-webkit-scrollbar,.ariel-exec-date-filter::-webkit-scrollbar,.ariel-roll12-controls::-webkit-scrollbar{display:none}

  .ariel-list-toolbar>*,.ariel-bank-register-controls>*,.ariel-payment-register-controls>*,
  .ariel-ce-global-controls>*,.ariel-ce-tab-controls>*,.ariel-module-report-filter-compact>*,
  .ariel-communication-toolbar>*,.ariel-obligation-filterbar>*,
  #bank-raw-register .ariel-bank-correction-controls>*,.ariel-exec-date-filter>*,.ariel-roll12-controls>*{
    flex:0 0 auto!important;min-width:0!important;max-width:none!important;width:auto!important
  }
  .ariel-list-toolbar>label,.ariel-payment-register-controls>label,.ariel-ce-global-controls>label,.ariel-ce-tab-controls>label,
  .ariel-module-report-filter-compact>label,.ariel-communication-toolbar>label,.ariel-obligation-filterbar>label,
  .ariel-exec-date-filter>label,.ariel-roll12-controls>label{
    display:grid!important;grid-template-rows:9px 34px!important;gap:2px!important;
    flex:0 0 124px!important;width:124px!important;min-width:124px!important;
    color:#647583!important;font-size:8px!important;font-weight:800!important;line-height:1!important;text-transform:uppercase!important;letter-spacing:.025em!important
  }
  .ariel-list-toolbar>label input,.ariel-list-toolbar>label select,
  .ariel-payment-register-controls>label input,.ariel-payment-register-controls>label select,
  .ariel-ce-global-controls>label input,.ariel-ce-global-controls>label select,
  .ariel-ce-tab-controls>label input,.ariel-ce-tab-controls>label select,
  .ariel-module-report-filter-compact>label input,.ariel-module-report-filter-compact>label select,
  .ariel-communication-toolbar>label input,.ariel-obligation-filterbar>label input,.ariel-obligation-filterbar>label select,
  .ariel-exec-date-filter>label input,.ariel-roll12-controls>label input,.ariel-roll12-controls>label select{width:100%!important;min-width:0!important;max-width:none!important}

  .ariel-list-toolbar>input[type=search],.ariel-bank-register-controls>input[type=search],.ariel-payment-register-controls>input[type=search],
  .ariel-ce-tab-controls>input[type=search],.ariel-communication-toolbar>[data-comm-search],.ariel-obligation-filterbar>.ariel-filter-search{
    flex:0 0 205px!important;width:205px!important;min-width:205px!important;max-width:205px!important
  }
  .ariel-bank-register-controls>select,.ariel-payment-register-controls>select,.ariel-ce-global-controls>select,.ariel-ce-tab-controls>select,
  .ariel-communication-toolbar>select,#bank-raw-register .ariel-bank-correction-controls>select{
    flex:0 0 132px!important;width:132px!important;min-width:132px!important;max-width:132px!important
  }
  .ariel-payment-register-controls>strong,.ariel-bank-transaction-controls>strong,.ariel-ce-global-controls>strong{display:none!important}
  .ariel-module-report-filter-compact .ariel-module-report-actions{display:flex!important;flex-wrap:nowrap!important;width:auto!important;margin:0!important;gap:4px!important;align-self:flex-end!important}
  .ariel-module-report-filter-compact .ariel-module-report-actions .button{flex:0 0 auto!important;min-height:34px!important;height:34px!important}
  .ariel-quarter-multiselect-inline{flex:0 0 auto!important;width:auto!important;min-height:34px!important;white-space:nowrap!important}

  /* BANK raw controls obey the same rail. Popovers remain full-screen overlays. */
  #bank-raw-register .ariel-bank-correction-controls{padding:2px 0 5px!important}
  #bank-raw-register .ariel-bank-correction-controls>strong{display:none!important}
  #bank-raw-register .ariel-bank-correction-controls>input[data-raw-search]{order:initial!important;flex:0 0 205px!important;width:205px!important;min-width:205px!important}
  #bank-raw-register .ariel-bank-entity-filter{order:initial!important;flex:0 0 150px!important;width:150px!important;min-width:150px!important}
  #bank-raw-register .ariel-bank-entity-filter>summary{height:34px!important;min-height:34px!important;padding:4px 7px!important;font-size:11px!important}
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-purpose],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-expense-type],
  #bank-raw-register .ariel-bank-correction-controls>select[data-raw-year]{order:initial!important;flex:0 0 132px!important;width:132px!important;min-width:132px!important}
  #bank-raw-register .ariel-bank-correction-controls>.ariel-bank-clear-filters,
  #bank-raw-register .ariel-bank-correction-controls>.ariel-register-more{order:initial!important;flex:0 0 auto!important}

  /* Tabs: one thin swipeable navigation row. */
  .ariel-bank-tabs,.ariel-bank-tabs.ariel-bank-tabs-compact,.ariel-unified-browser .ariel-bank-tabs,
  .ariel-ce-tabs,.ariel-ce-tabs-compact,.ariel-communication-tabs{
    display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;
    gap:2px!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
    padding:2px!important;margin:0 0 4px!important;scrollbar-width:none!important
  }
  .ariel-bank-tabs::-webkit-scrollbar,.ariel-ce-tabs::-webkit-scrollbar,.ariel-ce-tabs-compact::-webkit-scrollbar,.ariel-communication-tabs::-webkit-scrollbar{display:none}
  .ariel-bank-tabs button,.ariel-ce-tabs button,.ariel-ce-tabs-compact button,.ariel-communication-tabs button{
    flex:0 0 auto!important;min-height:32px!important;height:32px!important;padding:4px 8px!important;font-size:10px!important;white-space:nowrap!important
  }

  /* Active filters become a horizontal chip rail instead of another wrapped block. */
  .ariel-bank-active-filters,.ariel-active-filters,.ariel-filter-chips{
    display:flex!important;flex-wrap:nowrap!important;gap:4px!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important
  }
  .ariel-bank-active-filters>*,.ariel-active-filters>*,.ariel-filter-chips>*{flex:0 0 auto!important;white-space:nowrap!important}

  /* Register/result density. Keep full data, but stop using desktop row heights. */
  .ariel-list-workspace,.ariel-bank-register-workspace{padding:7px!important;border-radius:7px!important}
  .ariel-bank-list-meta,.ariel-bank-register-meta{min-height:24px!important;padding:3px 1px!important;font-size:9px!important;gap:7px!important}
  .ariel-table{font-size:10px!important}
  .ariel-table th,.ariel-table td{padding:5px 6px!important;line-height:1.15!important}
  .ariel-table th{font-size:9px!important}
  .ariel-status{padding:3px 6px!important;font-size:9px!important}
  .ariel-payment-group>summary{padding:7px!important;gap:5px!important}
  .ariel-payment-group-summary{margin-left:0!important;font-size:9px!important}

  /* Detail workbenches feel like native sheets, with a tiny fixed header and compact body. */
  .ariel-panel,.ariel-panel-wide,.ariel-ce-expense-panel,.ariel-ce-invoice-wizard,.ariel-help-panel{width:100vw!important;max-width:100vw!important}
  .ariel-panel-head{padding:6px 8px!important;min-height:42px!important}
  .ariel-panel-head h2{font-size:15px!important}.ariel-panel-head p{display:none!important}
  .ariel-icon-btn{width:34px!important;height:34px!important;flex:0 0 34px!important;font-size:20px!important}
  .ariel-panel-form,.ariel-panel-body,.ariel-help-body{padding:7px 8px 58px!important}
  .ariel-panel-body h3{margin:9px 0 4px!important;font-size:12px!important}
  .ariel-panel-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;max-width:100%;overflow-x:auto!important;margin:5px 0 7px!important;scrollbar-width:none!important}
  .ariel-panel-actions .button{flex:0 0 auto!important;white-space:nowrap!important}
  .ariel-record-hero{padding-bottom:6px!important}.ariel-record-hero h3{font-size:16px!important}
  .ariel-record-hero p{display:none!important}
  .ariel-kv>div{padding:5px 0!important;gap:2px!important}.ariel-kv dt,.ariel-kv dd{font-size:10px!important}
  .ariel-record-section{padding:7px!important;margin:6px 0!important}

  /* Reports: compact filter rail, readable charts, contained tables. */
  .ariel-module-report-picker{margin:0 0 4px!important;padding:1px 0 3px!important}
  .ariel-module-report-picker .button{height:32px!important;min-height:32px!important;font-size:10px!important}
  .ariel-report-dashboard .ariel-metrics,.ariel-module-report-output .ariel-metrics-compact,#report-output .ariel-metrics-compact{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important
  }
  .ariel-report-dashboard .ariel-metric,.ariel-module-report-output .ariel-metrics-compact .ariel-metric,#report-output .ariel-metrics-compact .ariel-metric{padding:5px 6px!important}
  .ariel-report-chart{padding:6px!important}.ariel-report-chart-head{gap:3px!important;margin-bottom:3px!important}
  .ariel-report-chart-head p{display:none!important}.ariel-chart-legend{font-size:8px!important;gap:5px!important}
  .ariel-chart-svg-wrap{overflow-x:auto!important;max-width:100%!important}
  .ariel-chart-svg{width:480px!important;min-width:480px!important;max-width:none!important;max-height:220px!important}
  .ariel-module-report-output>.ariel-table-wrap,#report-output>.ariel-table-wrap{max-height:54vh!important;overflow:auto!important}

  /* Executive Dashboard: preserve hierarchy without stacking controls into large blocks. */
  .ariel-exec-header{gap:5px!important;margin-bottom:6px!important;padding:0!important}
  .ariel-exec-heading h2{font-size:16px!important}.ariel-exec-heading p{display:none!important}.ariel-exec-eyebrow{font-size:8px!important}
  .ariel-exec-date-filter{flex-wrap:nowrap!important;padding-bottom:3px!important}
  .ariel-exec-date-filter label{flex:0 0 120px!important;width:120px!important}.ariel-exec-date-filter input{height:34px!important;min-height:34px!important;font-size:12px!important}
  .ariel-exec-attention{flex-direction:row!important;align-items:center!important;gap:6px!important;margin-bottom:6px!important;padding:5px 7px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
  .ariel-exec-attention>span{font-size:8px!important;white-space:nowrap!important}.ariel-exec-attention>div{flex-wrap:nowrap!important;gap:4px!important}
  .ariel-exec-attention a{flex:0 0 auto!important;min-height:27px!important;padding:2px 7px 2px 4px!important;font-size:9px!important;white-space:nowrap!important}
  .ariel-exec-attention a strong{min-width:19px;height:19px;font-size:8px!important}
  .ariel-exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;margin-bottom:6px!important}
  .ariel-exec-kpis article{padding:7px!important;border-radius:7px!important}.ariel-exec-kpis span{font-size:7.5px!important}.ariel-exec-kpis strong{font-size:15px!important;margin-top:2px!important}
  .ariel-exec-grid{gap:7px!important}.ariel-exec-panel{padding:8px!important;border-radius:8px!important;min-height:0!important}
  .ariel-exec-panel-head{flex-direction:row!important;align-items:center!important;gap:5px!important;margin-bottom:6px!important;min-height:0!important}
  .ariel-exec-panel-head>div:first-child{min-width:0;flex:1 1 auto}.ariel-exec-panel-head h3{font-size:12px!important}.ariel-exec-panel-head p{display:none!important}
  .ariel-exec-panel-actions{width:auto!important;max-width:48vw;flex-wrap:nowrap!important;overflow-x:auto!important;gap:3px!important}.ariel-exec-panel-actions .button{flex:0 0 auto!important}
  .ariel-exec-chart{min-height:190px!important}.ariel-exec-chart svg{min-height:190px!important;max-height:230px!important}
  .ariel-exec-owner-layout,.ariel-exec-expense-layout{grid-template-columns:1fr!important;gap:8px!important;min-height:0!important}
  .ariel-exec-donut-wrap{grid-template-columns:108px minmax(0,1fr)!important;gap:7px!important}.ariel-exec-donut{width:108px!important;margin:0!important}
  .ariel-exec-donut-list{gap:4px!important}.ariel-exec-donut-row{grid-template-columns:7px minmax(0,1fr) 66px 32px!important;gap:4px!important}
  .ariel-exec-vendor-list{gap:5px!important}.ariel-exec-vendor-row{grid-template-columns:18px minmax(0,1fr) 66px 32px!important;gap:4px!important}
  .ariel-exec-operations{margin-top:6px!important;padding:6px 0!important;overflow:hidden}
  .ariel-exec-operations>header{margin:0 0 4px!important;padding:0 2px}.ariel-exec-operations>header span{display:none!important}
  .ariel-exec-operations>div{display:flex!important;grid-template-columns:none!important;gap:0!important;overflow-x:auto!important;scrollbar-width:none!important}
  .ariel-exec-operations article{flex:0 0 102px!important;padding:2px 8px!important;border-left:1px solid #dfe5ea!important}.ariel-exec-operations article:first-child{border-left:0!important}
  .ariel-owner-exec-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;margin-bottom:6px!important}.ariel-owner-exec-summary article{padding:7px!important}

  /* Rolling 12-month section: controls stay one line, matrices remain swipeable. */
  .ariel-roll12{margin-top:7px!important;padding:8px!important;border-radius:8px!important}
  .ariel-roll12-head{display:block!important;margin-bottom:5px!important}.ariel-roll12-head h2{font-size:14px!important}.ariel-roll12-head p{display:none!important}
  .ariel-roll12-controls{margin-top:5px!important}.ariel-roll12-controls label{flex:0 0 104px!important;width:104px!important;min-width:104px!important}.ariel-roll12-controls .button{height:34px!important;min-height:34px!important}
  .ariel-roll12-stack{gap:6px!important}.ariel-roll12-card{padding:7px!important;border-radius:7px!important}
  .ariel-roll12-card-head{flex-direction:row!important;align-items:center!important;gap:5px!important;margin-bottom:5px!important}.ariel-roll12-card-head h3{font-size:11px!important}.ariel-roll12-card-head p{display:none!important}
  .ariel-roll12-card-head>div:last-child{grid-template-columns:auto auto!important;text-align:right!important}.ariel-roll12-card-head>div:last-child>strong{font-size:13px!important}
  .ariel-roll-legend{justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:7px!important;scrollbar-width:none!important}

  /* Communications: mailbox tabs + all filters consume one rail, not half a screen. */
  .ariel-communications-workbench>.ariel-card-head{margin-bottom:4px!important}
  .ariel-communication-toolbar{padding:2px 0 5px!important}
  .ariel-communication-toolbar>[data-comm-search]{flex:0 0 210px!important;width:210px!important}
  .ariel-communication-toolbar>select{flex:0 0 130px!important;width:130px!important}
  .ariel-communication-results-head{min-height:26px!important;margin:0!important;padding:3px 0!important;font-size:9px!important}
  .ariel-communication-group>summary{padding:7px!important;min-height:36px!important}
  .ariel-communication-rich-editor{min-height:150px!important}

  /* C.E. and invoice/payment cards retain compact data hierarchy. */
  .ariel-ce-invoice-context{padding:6px!important}.ariel-ce-invoice-metrics>div{padding:5px!important}.ariel-ce-invoice-metrics strong{font-size:12px!important}
  .ariel-ce-invoice-meta{padding:5px!important}.ariel-ce-record-actions{top:42px!important;padding-top:4px!important;padding-bottom:4px!important}
}

@media (max-width:430px){
  /* Do not fall back to single-column KPI walls on narrow phones. */
  .ariel-metrics,.ariel-unified-browser .ariel-metrics,.ariel-report-dashboard .ariel-metrics,
  .ariel-kpi-row,.ariel-kpi-row-5{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ariel-metric strong,.ariel-unified-browser .ariel-metric strong{font-size:15px!important}
  .ariel-exec-donut-wrap{grid-template-columns:102px minmax(0,1fr)!important}.ariel-exec-donut{width:102px!important}
  .ariel-chart-svg{width:440px!important;min-width:440px!important}
}

/* RC263 — desktop-only application-density and data-entry refinement.
   IMPORTANT: all rules are scoped to >=783px so the RC259+ mobile experience is untouched. */
@media (min-width:783px){
  .ariel-content{padding:12px 14px!important}
  .ariel-topbar{min-height:44px!important;padding:8px 14px!important}
  .ariel-topbar h1,.ariel-topbar h2{font-size:18px!important;line-height:1.15!important}
  .ariel-topbar p{margin:2px 0 0!important;font-size:10px!important;line-height:1.2!important}

  .ariel-card{padding:12px 14px!important;border-radius:8px!important}
  .ariel-card-head{align-items:center!important;gap:10px!important;margin-bottom:8px!important;min-height:0!important}
  .ariel-card-head h2{font-size:15px!important;line-height:1.15!important}
  .ariel-card-head h3{font-size:13px!important;line-height:1.15!important}
  .ariel-card-head p{margin:2px 0 0!important;font-size:10px!important;line-height:1.25!important}
  .ariel-subcard{padding:8px 10px!important;margin:5px 0!important;border-radius:6px!important}

  .ariel-bank-tabs,.ariel-bank-tabs.ariel-bank-tabs-compact,.ariel-ce-tabs,.ariel-ce-tabs-compact,.ariel-communication-tabs{
    min-height:32px!important;margin-bottom:5px!important;padding:2px!important;gap:2px!important
  }
  .ariel-bank-tabs button,.ariel-ce-tabs button,.ariel-ce-tabs-compact button,.ariel-communication-tabs button{
    min-height:29px!important;height:29px!important;padding:3px 9px!important;font-size:11px!important;line-height:1!important
  }

  .ariel-list-toolbar,.ariel-bank-register-controls,.ariel-payment-register-controls,.ariel-ce-global-controls,
  .ariel-ce-tab-controls,.ariel-module-report-filter-compact,.ariel-communication-toolbar,.ariel-obligation-filterbar,
  #bank-raw-register .ariel-bank-correction-controls{
    min-height:34px!important;margin:0 0 5px!important;padding:3px 5px!important;gap:5px!important;border-radius:6px!important;align-items:center!important
  }
  .ariel-list-toolbar>label,.ariel-payment-register-controls>label,.ariel-ce-global-controls>label,.ariel-ce-tab-controls>label,
  .ariel-module-report-filter-compact>label,.ariel-communication-toolbar>label,.ariel-obligation-filterbar>label{
    gap:1px!important;font-size:8px!important;line-height:1!important;letter-spacing:.025em!important
  }
  .ariel-list-toolbar input,.ariel-list-toolbar select,.ariel-bank-register-controls input,.ariel-bank-register-controls select,
  .ariel-payment-register-controls input,.ariel-payment-register-controls select,.ariel-ce-global-controls input,.ariel-ce-global-controls select,
  .ariel-ce-tab-controls input,.ariel-ce-tab-controls select,.ariel-module-report-filter-compact input,.ariel-module-report-filter-compact select,
  .ariel-communication-toolbar input,.ariel-communication-toolbar select,.ariel-obligation-filterbar input,.ariel-obligation-filterbar select{
    height:30px!important;min-height:30px!important;padding:3px 7px!important;font-size:11px!important;border-radius:5px!important
  }
  .ariel-bank-register-controls>select,.ariel-payment-register-controls>select,.ariel-ce-global-controls>select,.ariel-ce-tab-controls>select,
  .ariel-communication-toolbar>select{min-width:128px!important;max-width:175px!important;width:auto!important}
  .ariel-bank-register-controls>input[type=search],.ariel-payment-register-controls>input[type=search],.ariel-ce-tab-controls>input[type=search],
  .ariel-list-toolbar>.ariel-filter-search,.ariel-communication-toolbar>[data-comm-search]{min-width:210px!important;max-width:360px!important}
  .ariel-bank-register-controls>strong,.ariel-payment-register-controls>strong,.ariel-ce-global-controls>strong{font-size:11px!important;padding:0 3px!important}
  .ariel-register-more>summary,.ariel-compact-filters>summary,.ariel-module-report-filter-compact .button{
    min-height:30px!important;height:30px!important;padding:3px 8px!important;font-size:11px!important
  }

  .ariel-list-workspace,.ariel-bank-register-workspace{padding:8px!important;border-radius:7px!important}
  .ariel-bank-list-meta,.ariel-bank-register-meta,.ariel-communication-results-head{min-height:24px!important;padding:2px 1px!important;font-size:10px!important}
  .ariel-table{font-size:11px!important}
  .ariel-table th{font-size:9px!important;padding:5px 7px!important;line-height:1.1!important}
  .ariel-table td{padding:5px 7px!important;line-height:1.2!important}
  .ariel-status{padding:2px 6px!important;font-size:9px!important}

  .ariel-panel{width:min(760px,88vw)!important}
  .ariel-panel-wide{width:min(1020px,92vw)!important}
  .ariel-ce-expense-panel{width:min(900px,90vw)!important}
  .ariel-panel-head{padding:9px 13px!important;min-height:44px!important;align-items:center!important}
  .ariel-panel-head h2{font-size:16px!important;line-height:1.12!important}
  .ariel-panel-head p{margin:1px 0 0!important;font-size:9px!important;line-height:1.15!important}
  .ariel-icon-btn{width:31px!important;height:31px!important;min-width:31px!important;font-size:20px!important;border-radius:7px!important}
  .ariel-panel-form,.ariel-panel-body,.ariel-help-body{padding:12px 14px 22px!important}
  .ariel-form{gap:9px!important}
  .ariel-form-row{gap:9px!important}
  .ariel-form label{gap:3px!important;font-size:11px!important;line-height:1.15!important}
  .ariel-form input[type=text],.ariel-form input[type=search],.ariel-form input[type=email],.ariel-form input[type=number],
  .ariel-form input[type=date],.ariel-form input[type=datetime-local],.ariel-form input[type=month],.ariel-form select,.ariel-form textarea{
    min-height:34px!important;padding:5px 8px!important;font-size:12px!important;border-radius:6px!important
  }
  .ariel-form textarea{min-height:76px!important}
  .ariel-form small,.ariel-form-hint{font-size:9px!important;line-height:1.25!important}
  .ariel-form-actions{position:sticky!important;bottom:0!important;z-index:3!important;background:#fff!important;margin:8px -14px -22px!important;padding:9px 14px!important;border-top:1px solid var(--ariel-line)!important;box-shadow:0 -4px 10px rgba(15,28,39,.04)!important}
  .ariel-form-actions .button{min-height:32px!important;height:32px!important;padding:4px 11px!important}
  .ariel-record-section{padding:8px 10px!important;margin:6px 0!important}
  .ariel-kv>div{grid-template-columns:180px minmax(0,1fr)!important;padding:6px 0!important}
  .ariel-kv dt,.ariel-kv dd{font-size:11px!important;line-height:1.2!important}

  .ariel-ce-expense-editor{gap:7px!important}
  .ariel-ce-expense-editor .ariel-form-row{gap:8px!important}
  .ariel-ce-entry-context{min-height:34px!important;padding:5px 8px!important}
  .ariel-ce-optional-details,.ariel-ce-allocation-panel{margin-top:6px!important}
  .ariel-ce-optional-details>summary,.ariel-ce-allocation-panel>summary{min-height:34px!important;padding:6px 9px!important;font-size:11px!important}
  .ariel-ce-optional-body,.ariel-ce-allocation-body{padding:8px!important}
  .ariel-ce-allocation-month-hint{align-self:center!important;padding:5px 7px!important;border-left:3px solid #b8c9d6!important;background:#f7f9fb!important;border-radius:4px!important}

  .ariel-module-report-filter-compact{padding:4px 5px!important;gap:5px!important}
  .ariel-module-report-filter-compact>label{min-width:110px!important;max-width:175px!important}
  .ariel-module-report-filter-compact .ariel-module-report-actions{gap:4px!important}
  .ariel-module-report-output>.ariel-table-wrap,#report-output>.ariel-table-wrap{max-height:58vh!important;overflow:auto!important}
  .ariel-report-chart{padding:8px!important}
  .ariel-report-chart-head{margin-bottom:5px!important}

  .ariel-workbench-next{padding:9px 11px!important;margin:0 0 9px!important;border-radius:8px!important;gap:10px!important}
  .ariel-workbench-next strong{font-size:14px!important}
  .ariel-workbench-next p{margin:3px 0 0!important;font-size:10px!important;line-height:1.25!important}
  .ariel-workbench-context,.ariel-workbench-safety{padding:8px 10px!important;margin-bottom:8px!important;border-radius:7px!important}

  .ariel-metrics{gap:8px!important;margin-bottom:9px!important}
  .ariel-metric{padding:9px 11px!important;border-radius:7px!important}
  .ariel-metric strong{font-size:20px!important;margin:4px 0!important}
  .ariel-metric span,.ariel-metric small{font-size:9px!important}
}

/* RC264 — desktop application ergonomics pass.
   This release deliberately changes screen presentation only on desktop-sized
   viewports. RC259+ mobile/tablet-phone rules remain authoritative below 783px. */
@media screen and (min-width:783px){
  :root{
    --ariel-desktop-control-h:30px;
    --ariel-desktop-compact-h:27px;
    --ariel-desktop-gap:6px;
    --ariel-desktop-pad-x:10px;
  }

  /* Application chrome: preserve hierarchy while giving the work surface back
     to the records. The global page header is intentionally a slim application
     bar rather than a second content card. */
  .ariel-topbar,.ariel-topbar.ariel-unified-topbar-compact,.ariel-topbar.ariel-bank-topbar-compact{
    min-height:40px!important;height:40px!important;padding:5px 12px!important;gap:10px!important
  }
  .ariel-topbar h1,.ariel-topbar.ariel-unified-topbar-compact h1,.ariel-topbar.ariel-bank-topbar-compact h1{
    font-size:16px!important;line-height:1.1!important;letter-spacing:-.005em!important
  }
  .ariel-topbar .ariel-page-heading{gap:7px!important;min-width:0!important}
  .ariel-topbar .ariel-info-btn{width:22px!important;height:22px!important;min-width:22px!important;font-size:11px!important}
  .ariel-topbar .ariel-user{min-height:27px!important;padding:4px 9px!important;font-size:10.5px!important;display:flex!important;align-items:center!important;gap:8px!important}
  .ariel-content,.ariel-content.ariel-unified-content-wide,.ariel-content.ariel-bank-content-wide{
    max-width:none!important;padding:7px 11px 20px!important
  }
  #ariel-app-root{min-width:0}

  /* Generic card hierarchy. Context text remains available, but it no longer
     creates a large explanatory banner above the actual work. */
  .ariel-grid{gap:8px!important}
  .ariel-card{padding:9px 11px!important;border-radius:7px!important;box-shadow:0 1px 1px rgba(15,28,39,.025)!important}
  .ariel-card-head{gap:8px!important;margin-bottom:6px!important;min-height:26px!important;align-items:center!important}
  .ariel-card-head h2{font-size:14px!important;line-height:1.1!important}
  .ariel-card-head h3{font-size:12px!important;line-height:1.1!important}
  .ariel-card-head p{margin:1px 0 0!important;max-width:920px!important;font-size:9.5px!important;line-height:1.2!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
  .ariel-card-head.ariel-desktop-page-duplicate>div:first-child{display:none!important}
  .ariel-card-head.ariel-desktop-page-duplicate{justify-content:flex-end!important;min-height:0!important;margin-bottom:4px!important}
  .ariel-card-head.ariel-desktop-page-duplicate-empty{display:none!important}
  .ariel-subcard{padding:7px 9px!important;margin:4px 0!important;border-radius:6px!important}
  .ariel-callout,.ariel-warning{padding:7px 9px!important;font-size:10.5px!important;line-height:1.3!important;border-radius:5px!important}

  /* Buttons and action rows use desktop-toolbar dimensions instead of form-field
     dimensions. Primary actions remain visually distinct. */
  .ariel-app .button,.ariel-panel-backdrop .button{
    min-height:var(--ariel-desktop-control-h)!important;height:var(--ariel-desktop-control-h)!important;padding:2px 9px!important;font-size:10.5px!important;line-height:24px!important;white-space:nowrap
  }
  .ariel-app .button.button-small,.ariel-panel-backdrop .button.button-small{
    min-height:var(--ariel-desktop-compact-h)!important;height:var(--ariel-desktop-compact-h)!important;padding:1px 7px!important;font-size:10px!important;line-height:23px!important
  }
  .ariel-actions-row,.ariel-card-actions,.ariel-row-actions,.ariel-panel-actions{gap:4px!important}
  .ariel-row-actions{white-space:nowrap!important}
  .ariel-row-actions .button{min-height:25px!important;height:25px!important;padding:1px 6px!important;font-size:9.5px!important;line-height:21px!important}

  /* Tabs should behave like an application switcher, not a second navigation
     banner. */
  .ariel-bank-tabs,.ariel-bank-tabs.ariel-bank-tabs-compact,.ariel-ce-tabs,.ariel-ce-tabs-compact,.ariel-communication-tabs{
    min-height:30px!important;margin:0 0 4px!important;padding:1px!important;gap:1px!important;border-radius:6px!important
  }
  .ariel-bank-tabs button,.ariel-ce-tabs button,.ariel-ce-tabs-compact button,.ariel-communication-tabs button{
    min-height:27px!important;height:27px!important;padding:2px 8px!important;font-size:10.5px!important;line-height:1!important;border-radius:5px!important
  }

  /* High-frequency filter/tool rails. Controls are deliberately shorter and
     narrower, so a normal desktop can retain them on one line much more often. */
  .ariel-section-toolbar,.ariel-directory-toolbar,.ariel-list-toolbar,.ariel-bank-register-controls,
  .ariel-payment-register-controls,.ariel-ce-global-controls,.ariel-ce-tab-controls,
  .ariel-module-report-filter-compact,.ariel-communication-toolbar,.ariel-obligation-filterbar,
  .ariel-rental-allocation-controls,.ariel-inline-filter,#bank-raw-register .ariel-bank-correction-controls{
    min-height:32px!important;margin:0 0 4px!important;padding:2px 4px!important;gap:4px!important;border-radius:5px!important;align-items:center!important
  }
  .ariel-list-toolbar>label,.ariel-payment-register-controls>label,.ariel-ce-global-controls>label,.ariel-ce-tab-controls>label,
  .ariel-module-report-filter-compact>label,.ariel-communication-toolbar>label,.ariel-obligation-filterbar>label,
  .ariel-inline-filter>label{
    gap:1px!important;margin:0!important;font-size:8px!important;line-height:1!important;letter-spacing:.025em!important
  }
  .ariel-list-toolbar input,.ariel-list-toolbar select,.ariel-bank-register-controls input,.ariel-bank-register-controls select,
  .ariel-payment-register-controls input,.ariel-payment-register-controls select,.ariel-ce-global-controls input,.ariel-ce-global-controls select,
  .ariel-ce-tab-controls input,.ariel-ce-tab-controls select,.ariel-module-report-filter-compact input,.ariel-module-report-filter-compact select,
  .ariel-communication-toolbar input,.ariel-communication-toolbar select,.ariel-obligation-filterbar input,.ariel-obligation-filterbar select,
  .ariel-rental-allocation-controls input,.ariel-rental-allocation-controls select,.ariel-inline-filter input,.ariel-inline-filter select{
    height:28px!important;min-height:28px!important;padding:2px 6px!important;font-size:10.5px!important;line-height:22px!important;border-radius:4px!important
  }
  .ariel-bank-register-controls>select,.ariel-payment-register-controls>select,.ariel-ce-global-controls>select,.ariel-ce-tab-controls>select,
  .ariel-communication-toolbar>select{min-width:112px!important;max-width:155px!important;width:auto!important}
  .ariel-list-toolbar>.ariel-filter-search,.ariel-bank-register-controls>input[type=search],.ariel-payment-register-controls>input[type=search],
  .ariel-ce-tab-controls>input[type=search],.ariel-communication-toolbar>[data-comm-search]{min-width:185px!important;max-width:300px!important}
  .ariel-bank-register-controls>strong,.ariel-payment-register-controls>strong,.ariel-ce-global-controls>strong{
    font-size:10px!important;line-height:1!important;padding:0 2px!important
  }
  .ariel-register-more>summary,.ariel-compact-filters>summary{
    min-height:28px!important;height:28px!important;padding:2px 7px!important;font-size:10.5px!important;line-height:22px!important
  }
  .ariel-compact-filter-popover{gap:6px!important;padding:8px!important;border-radius:6px!important;box-shadow:0 10px 30px rgba(15,28,39,.15)!important}
  .ariel-compact-filter-popover label{gap:2px!important;font-size:8.5px!important}
  .ariel-compact-filter-popover input,.ariel-compact-filter-popover select{min-height:29px!important;height:29px!important;font-size:10.5px!important}

  /* Grid-based legacy filter blocks receive the same compact desktop language. */
  .ariel-bank-filterbar,.ariel-ce-filterbar,.ariel-rule-filters,.ariel-rule-picker-filters{
    gap:4px!important;padding:4px!important;margin-bottom:4px!important;border-radius:6px!important
  }
  .ariel-bank-filterbar label,.ariel-ce-filterbar label,.ariel-rule-filters label,.ariel-rule-picker-filters label{
    gap:1px!important;font-size:8px!important;line-height:1!important
  }
  .ariel-bank-filterbar input,.ariel-bank-filterbar select,.ariel-ce-filterbar input,.ariel-ce-filterbar select,
  .ariel-rule-filters input,.ariel-rule-filters select,.ariel-rule-picker-filters input,.ariel-rule-picker-filters select{
    min-height:28px!important;height:28px!important;padding:2px 6px!important;font-size:10.5px!important;border-radius:4px!important
  }

  /* The register is the main work surface. Meta rows and table rows are compact
     enough for scanning while preserving click targets and readable type. */
  .ariel-list-workspace,.ariel-bank-register-workspace{padding:6px!important;border-radius:6px!important}
  .ariel-bank-list-meta,.ariel-bank-register-meta,.ariel-communication-results-head{
    min-height:21px!important;padding:1px 1px!important;margin:0!important;font-size:9.5px!important;line-height:1.2!important
  }
  .ariel-table{font-size:10.75px!important}
  .ariel-table th{padding:4px 6px!important;font-size:8.75px!important;line-height:1.1!important;letter-spacing:.025em!important}
  .ariel-table td{padding:4px 6px!important;line-height:1.18!important}
  .ariel-table tbody tr{height:29px}
  .ariel-status{padding:2px 5px!important;font-size:8.75px!important;line-height:1.2!important}
  .ariel-actions-col{width:72px!important}
  .ariel-table-wrap{border-radius:5px!important}

  /* Side workbenches become proper desktop editing surfaces: fixed chrome,
     independently scrolling body, wider data-entry canvas and stable actions. */
  .ariel-panel{
    width:min(820px,84vw)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important
  }
  .ariel-panel-wide{width:min(1120px,91vw)!important}
  .ariel-ce-expense-panel{width:min(980px,90vw)!important}
  .ariel-panel>.ariel-panel-head{
    flex:0 0 auto!important;min-height:41px!important;padding:6px 10px!important;gap:8px!important;align-items:center!important
  }
  .ariel-panel>.ariel-panel-head h2{font-size:15px!important;line-height:1.1!important}
  .ariel-panel>.ariel-panel-head p{margin:1px 0 0!important;font-size:9px!important;line-height:1.15!important}
  .ariel-panel-head-actions{gap:4px!important;align-items:center!important}
  .ariel-icon-btn{width:29px!important;height:29px!important;min-width:29px!important;font-size:19px!important;border-radius:6px!important}
  .ariel-panel .ariel-panel-form,.ariel-panel .ariel-panel-body,.ariel-panel .ariel-help-body{
    flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:9px 11px 16px!important
  }

  /* Generic panel forms use two useful desktop columns. Existing explicit
     .ariel-form-row groups remain full-width and retain their own field pairing. */
  .ariel-panel-form.ariel-desktop-entry-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:10px!important;row-gap:7px!important;align-content:start!important
  }
  .ariel-panel-form.ariel-desktop-entry-grid > :not(label):not(.ariel-searchable-field){grid-column:1/-1!important}
  .ariel-panel-form.ariel-desktop-entry-grid > .ariel-form-row,
  .ariel-panel-form.ariel-desktop-entry-grid > fieldset,
  .ariel-panel-form.ariel-desktop-entry-grid > details,
  .ariel-panel-form.ariel-desktop-entry-grid > .ariel-callout,
  .ariel-panel-form.ariel-desktop-entry-grid > .ariel-warning,
  .ariel-panel-form.ariel-desktop-entry-grid > .ariel-subcard,
  .ariel-panel-form.ariel-desktop-entry-grid > .ariel-form-message,
  .ariel-panel-form.ariel-desktop-entry-grid > .ariel-form-actions,
  .ariel-panel-form.ariel-desktop-entry-grid > h3,
  .ariel-panel-form.ariel-desktop-entry-grid > h4,
  .ariel-panel-form.ariel-desktop-entry-grid > p{grid-column:1/-1!important}
  .ariel-panel-form.ariel-desktop-entry-grid > label.ariel-desktop-full-field{grid-column:1/-1!important}
  .ariel-form{gap:7px!important}
  .ariel-form-row{gap:8px!important}
  .ariel-form label{gap:2px!important;font-size:10.5px!important;line-height:1.1!important}
  .ariel-form input[type=text],.ariel-form input[type=search],.ariel-form input[type=email],.ariel-form input[type=number],
  .ariel-form input[type=date],.ariel-form input[type=datetime-local],.ariel-form input[type=month],.ariel-form select,.ariel-form textarea{
    min-height:32px!important;height:auto;padding:4px 7px!important;font-size:11.5px!important;line-height:22px!important;border-radius:5px!important
  }
  .ariel-form textarea{min-height:68px!important;line-height:1.35!important}
  .ariel-form small,.ariel-form-hint{font-size:8.75px!important;line-height:1.2!important}
  .ariel-form legend{margin-bottom:5px!important;font-size:10.5px!important}
  .ariel-choice-grid,.ariel-cap-grid{gap:5px 8px!important;padding:7px!important;max-height:200px!important;border-radius:6px!important}
  .ariel-searchable-field{gap:3px!important}
  .ariel-form-actions{
    min-height:42px!important;margin:7px -11px -16px!important;padding:6px 11px!important;gap:5px!important;align-items:center!important
  }
  .ariel-form-actions .button{min-height:30px!important;height:30px!important}
  .ariel-form-message{min-height:15px!important;font-size:9.5px!important;line-height:1.2!important}
  .ariel-form input:focus,.ariel-form select:focus,.ariel-form textarea:focus,
  .ariel-list-toolbar input:focus,.ariel-list-toolbar select:focus,.ariel-bank-register-controls input:focus,.ariel-bank-register-controls select:focus{
    outline:0!important;box-shadow:0 0 0 2px rgba(23,63,95,.14)!important;border-color:#7f9bb0!important
  }

  /* Inline editing should read as one compact editor, rather than expanding a
     table row into a second full page. */
  .ariel-inline-edit,.ariel-inline-edit-form{padding:7px!important;gap:6px!important;border-radius:6px!important}
  .ariel-inline-edit-head{margin-bottom:5px!important;gap:6px!important}
  .ariel-inline-edit-head strong{font-size:11px!important}
  .ariel-inline-edit-head span{font-size:9px!important}

  /* Record/detail workbenches. */
  .ariel-panel .ariel-panel-body h3{margin:9px 0 4px!important;font-size:12px!important}
  .ariel-record-hero{gap:8px!important;padding-bottom:6px!important}
  .ariel-record-hero h3{font-size:16px!important;margin:1px 0!important}
  .ariel-record-hero p{font-size:9.5px!important}
  .ariel-record-section{padding:7px 9px!important;margin:4px 0!important;border-radius:6px!important}
  .ariel-record-section-head{margin-bottom:4px!important;gap:6px!important}
  .ariel-kv>div{grid-template-columns:165px minmax(0,1fr)!important;padding:5px 0!important}
  .ariel-kv dt,.ariel-kv dd{font-size:10.5px!important;line-height:1.2!important}
  .ariel-kpi-row{gap:4px!important;margin:5px 0!important}
  .ariel-kpi-row>div{padding:5px 6px!important;border-radius:5px!important}
  .ariel-kpi-row span{font-size:7.75px!important}.ariel-kpi-row strong{margin-top:1px!important;font-size:12.5px!important}

  /* Common Expenses: preserve the clearer Allocation Month semantics from RC263
     while making the entry workbench feel like a desktop invoice form. */
  .ariel-ce-expense-editor{gap:6px!important}
  .ariel-ce-entry-context{min-height:30px!important;padding:4px 7px!important;font-size:9.5px!important}
  .ariel-ce-optional-details,.ariel-ce-allocation-panel{margin-top:4px!important}
  .ariel-ce-optional-details>summary,.ariel-ce-allocation-panel>summary{min-height:30px!important;padding:4px 7px!important;font-size:10.5px!important}
  .ariel-ce-optional-body,.ariel-ce-allocation-body{padding:7px!important}
  .ariel-ce-allocation-month-hint{padding:4px 6px!important;font-size:8.75px!important}
  .ariel-ce-period-inline{font-size:9px!important}

  /* Communications mailbox: keep mailbox navigation, filters and result state in
     the header rail rather than stacking several tall rows. */
  .ariel-communications-workbench>.ariel-card-head{margin-bottom:3px!important}
  .ariel-communication-toolbar{padding:2px 3px!important}
  .ariel-communication-results-head{min-height:21px!important;padding:1px 0!important}
  .ariel-communication-group>summary{min-height:31px!important;padding:5px 7px!important}
  .ariel-communication-rich-editor{min-height:132px!important}
  .ariel-recipient-choice-grid{gap:4px!important}

  /* Dashboard: compact the setup/header layer without undoing RC246's executive
     information hierarchy. */
  .ariel-exec-attention{gap:9px!important;margin-bottom:7px!important;padding:6px 8px!important;border-radius:7px!important}
  .ariel-exec-attention>span{font-size:9.5px!important}
  .ariel-exec-attention a{min-height:26px!important;padding:2px 8px 2px 4px!important;font-size:10px!important}
  .ariel-exec-attention a strong{min-width:19px!important;height:19px!important;font-size:9px!important}
  .ariel-exec-header{gap:16px!important;margin-bottom:7px!important;padding-top:0!important}
  .ariel-exec-heading h2{font-size:17px!important}.ariel-exec-heading p{margin-top:2px!important;font-size:9.5px!important}
  .ariel-exec-date-filter{gap:4px!important}.ariel-exec-date-filter label{gap:1px!important;font-size:8px!important}
  .ariel-exec-date-filter input,.ariel-exec-date-filter select{min-height:28px!important;height:28px!important;font-size:10.5px!important}
  .ariel-exec-kpis{gap:5px!important;margin-bottom:7px!important}

  /* Reports retain analytical readability while shrinking their filter chrome. */
  .ariel-module-report-filter-compact{padding:3px 4px!important}
  .ariel-module-report-filter-compact>label{min-width:98px!important;max-width:155px!important}
  .ariel-module-report-filter-compact>[data-report-year-field]{min-width:88px!important;max-width:105px!important}
  .ariel-module-report-filter-compact>[data-report-from-field],.ariel-module-report-filter-compact>[data-report-to-field]{min-width:112px!important;max-width:130px!important}
  .ariel-module-report-output>.ariel-table-wrap,#report-output>.ariel-table-wrap{max-height:62vh!important}
  .ariel-report-chart{padding:6px!important}
  .ariel-report-chart-head{margin-bottom:3px!important}

  /* Access/setup and budget workbenches are typically desktop administration
     tasks; keep summaries and editor rows compact. */
  .ariel-access-user>summary,.ariel-role summary{padding:7px 9px!important;min-height:32px!important}
  .ariel-access-user-scope,.ariel-access-identity-card{gap:6px!important}
  .ariel-budget-history-summary,.ariel-budget-history-actions{gap:5px!important}
  .ariel-bva-total{padding:7px 9px!important;gap:8px!important}

  /* Table scrollports can use more of the viewport now that the chrome above
     them is shorter. */
  .ariel-unified-browser .ariel-list-workspace .ariel-table-wrap,
  .ariel-unified-browser .ariel-bank-view .ariel-table-wrap,
  .ariel-unified-browser .ariel-ce-view .ariel-table-wrap,
  .ariel-unified-browser .ariel-card > .ariel-table-wrap{max-height:calc(100vh - 185px)!important}
  .ariel-unified-browser .ariel-bank-statement .ariel-table-wrap,
  .ariel-unified-browser .ariel-ce-compact-register .ariel-table-wrap,
  .ariel-unified-browser .ariel-backlog-audit-table .ariel-table-wrap,
  .ariel-unified-browser .ariel-rule-inline-list .ariel-table-wrap{max-height:calc(100vh - 205px)!important}
}

/* A normal/wide desktop should keep the principal filter rail on one line. At
   smaller desktop widths the existing responsive rules may still wrap safely. */
@media screen and (min-width:1180px){
  .ariel-list-toolbar,.ariel-bank-register-controls,.ariel-payment-register-controls,.ariel-ce-global-controls,
  .ariel-ce-tab-controls,.ariel-communication-toolbar,.ariel-obligation-filterbar{flex-wrap:nowrap!important}
  .ariel-bank-filterbar,.ariel-ce-filterbar{
    grid-template-columns:minmax(190px,1.45fr) repeat(5,minmax(105px,.8fr))!important
  }
  .ariel-bank-filterbar .ariel-filter-search,.ariel-ce-filterbar .ariel-filter-search{grid-column:auto!important}
  .ariel-panel-form.ariel-desktop-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Full desktop navigation can be slightly narrower without sacrificing labels.
   Keep the pre-existing collapsed 76px navigation untouched between 783–1000px. */
@media screen and (min-width:1001px){
  .ariel-app{grid-template-columns:228px minmax(0,1fr)!important}
  .ariel-sidebar{padding:14px 10px!important}
  .ariel-brand{gap:9px!important;padding:0 7px 12px!important;margin-bottom:8px!important}
  .ariel-brand-mark{width:32px!important;height:32px!important;border-radius:8px!important;font-size:17px!important}
  .ariel-brand strong{font-size:14px!important}.ariel-brand small{font-size:9px!important}
  .ariel-nav-item{min-height:31px!important;padding:5px 8px!important;margin:1px 0!important;gap:8px!important;border-radius:6px!important;font-size:11.5px!important}
  .ariel-nav-item .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
  .ariel-nav-group>summary{min-height:31px!important;padding:5px 8px!important;font-size:11.5px!important}
  .ariel-sidebar-foot{padding:10px 7px 0!important;font-size:9px!important}
}


/* RC268: operational records keep editing and document handling in one panel. */
[data-ce-edit-form][hidden], [data-ce-document-form][hidden], [data-ce-record-main][hidden]{display:none!important}
.ariel-operational-documents{margin:8px 0!important;padding:10px 12px!important}
.ariel-operational-documents>.ariel-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px;padding:0!important}
.ariel-operational-documents>.ariel-card-head h3{margin:0!important}
.ariel-ce-document-list{display:grid;gap:4px;margin:5px 0}
.ariel-ce-document-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--ariel-line,#d7e0e7);padding:6px 0}
.ariel-ce-document-row:last-child{border-bottom:0}
.ariel-ce-document-row a{min-width:0;overflow-wrap:anywhere}
.ariel-ce-document-inline-form{padding:10px 0 0;border-top:1px solid var(--ariel-line,#d7e0e7)}
.ariel-ce-document-inline-form .ariel-form-actions{margin:5px 0}
.ariel-operational-edit{margin:0 0 12px;padding:10px 12px}
.ariel-operational-edit .ariel-panel-form{padding:8px 0 0!important}
@media screen and (min-width:1100px){
  .ariel-operational-edit .ariel-ce-expense-editor{max-width:900px}
  .ariel-ce-expense-panel .ariel-panel-body{padding:10px 14px 18px!important}
  .ariel-ce-document-inline-form .ariel-form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* RC270 desktop-only: a readable single expense editor without nested
   scrolling, horizontal overflow, or a serif fall-through from host themes. */
@media screen and (min-width:783px){
  .ariel-panel-backdrop .ariel-panel{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:13px}
  .ariel-ce-expense-panel [data-ce-edit-form]{box-sizing:border-box;min-width:0;max-width:100%;overflow:visible;padding:12px 14px}
  .ariel-ce-expense-panel [data-ce-edit-form-element],
  .ariel-ce-expense-panel [data-ce-edit-form-element] .ariel-ce-expense-editor,
  .ariel-ce-expense-panel [data-ce-edit-form-element] .ariel-form-row,
  .ariel-ce-expense-panel [data-ce-edit-form-element] label{box-sizing:border-box;min-width:0;max-width:100%}
  .ariel-ce-expense-panel [data-ce-edit-form-element] textarea{min-height:65px;max-width:100%}
  .ariel-ce-expense-panel [data-ce-edit-form-element] [name=reason]{min-height:60px}
  .ariel-ce-expense-panel [data-ce-edit-form-element] input:disabled,
  .ariel-ce-expense-panel [data-ce-edit-form-element] select:disabled,
  .ariel-ce-expense-panel [data-ce-edit-form-element] textarea:disabled{background:#f3f5f7!important;color:#55616c!important;opacity:1!important}
  .ariel-ce-expense-panel [data-ce-edit-form-element] .ariel-form-actions{position:sticky;bottom:0;z-index:3;background:#fbfcfd;padding:10px 0!important}
}

/* RC273 — Common Expenses operational browser: explicit workflow status + fast allocation review/change. */
.ariel-ce-allocation-method-cell{display:flex;align-items:center;gap:6px;min-width:0}
.ariel-ce-allocation-method-cell>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ariel-ce-allocation-method-cell .ariel-link-button{flex:0 0 auto;border:0;background:transparent;padding:0;color:var(--ariel-accent);font-size:10px;font-weight:800;text-decoration:underline;cursor:pointer}
.ariel-ce-allocation-preview-char{display:inline-grid;place-items:center;width:24px;height:24px;min-width:24px;padding:0;border:1px solid #aebdca;border-radius:4px;background:#fff;color:var(--ariel-accent);font-weight:900;font-size:11px;line-height:1;cursor:pointer}
.ariel-ce-allocation-preview-char:hover,.ariel-ce-allocation-preview-char:focus{background:var(--ariel-accent-soft);border-color:var(--ariel-accent)}
.ariel-ce-allocation-preview-char:disabled{opacity:.55;cursor:wait}
.ariel-ce-allocation-preview-summary{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.ariel-ce-allocation-preview-summary>span{display:flex;gap:6px;align-items:center;padding:5px 8px;border:1px solid var(--ariel-line);border-radius:5px;background:#f8fafb;font-size:11px;color:var(--ariel-muted)}
.ariel-ce-allocation-preview-summary strong{color:var(--ariel-text)}
.ariel-ce-operational-status{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:783px){
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table{min-width:1420px}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(1),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(1){width:88px;text-align:left}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(2),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(2){width:92px}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(3),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(3){width:190px}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(4),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(4){width:205px}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(5),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(5){width:auto;text-align:left}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(6),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(6){width:62px;text-align:center}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(7),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(7){width:185px;text-align:left}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(8),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(8){width:38px;text-align:center}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(9),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(9){width:92px;text-align:right}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(10),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(10){width:100px;text-align:right}
  [data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table th:nth-child(11),[data-ce-view="expenses"] .ariel-ce-compact-register .ariel-table td:nth-child(11){width:205px;text-align:left}
}

/* RC277 — tenant-facing rental payment statement */
.ariel-report-tenant-options{margin:10px 0;padding:12px 14px;border:1px solid var(--ariel-line,#d7e0e7);background:#f8fafb;border-radius:8px}
.ariel-report-tenant-options .ariel-card-head{margin:0 0 8px;padding:0;border:0}
.ariel-report-tenant-options .ariel-card-head h3{margin:0 0 2px;font-size:15px}
.ariel-report-tenant-options .ariel-card-head p{margin:0;color:var(--ariel-muted,#667785);font-size:12px}
.ariel-report-tenant-options .ariel-checkline{display:flex;align-items:center;gap:7px;min-height:34px;font-weight:600}
.ariel-tenant-rent-statement{background:#fff;color:#142633;max-width:1120px;margin:0 auto;padding:24px;border:1px solid #d7e0e7;border-radius:10px}
.ariel-tenant-statement-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;padding-bottom:18px;border-bottom:2px solid #173f5f}
.ariel-tenant-statement-head h2{font-size:28px;margin:3px 0 6px}.ariel-tenant-statement-head p{font-size:17px;font-weight:700;margin:0}
.ariel-tenant-statement-period{text-align:right;display:grid;gap:3px}.ariel-tenant-statement-period span,.ariel-tenant-statement-period small{color:#667785}.ariel-tenant-statement-period strong{font-size:16px}
.ariel-tenant-statement-meta{margin:12px 0;color:#526775;font-size:13px}
.ariel-tenant-statement-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:16px 0}
.ariel-tenant-statement-summary>div{padding:12px 14px;border:1px solid #d7e0e7;border-radius:8px;background:#f6f9fb}.ariel-tenant-statement-summary span{display:block;color:#667785;font-size:12px}.ariel-tenant-statement-summary strong{display:block;margin-top:3px;font-size:18px}
.ariel-tenant-statement-foot{margin-top:16px;padding-top:12px;border-top:1px solid #d7e0e7;color:#667785;font-size:12px}.ariel-tenant-statement-note{margin-top:10px;padding:10px 12px;background:#f8fafb;border-left:3px solid #173f5f;color:#243746}.ariel-tenant-statement-note p{margin:3px 0 0;white-space:pre-wrap}
@media(max-width:900px){.ariel-tenant-statement-head{display:block}.ariel-tenant-statement-period{text-align:left;margin-top:12px}.ariel-tenant-statement-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body.ariel-print-report .ariel-tenant-rent-statement{border:0!important;border-radius:0!important;max-width:none!important;padding:0!important}.ariel-tenant-rent-statement .ariel-table{font-size:9pt!important}.ariel-tenant-statement-summary{grid-template-columns:repeat(4,1fr)!important}.ariel-tenant-statement-head{break-inside:avoid}.ariel-tenant-statement-summary{break-inside:avoid}}

/* RC279 — native SMTP configuration and visible mail-test diagnostics. */
.ariel-email-smtp-box{border:1px solid var(--ariel-line);border-radius:8px;padding:12px;background:#f8fafb;display:grid;gap:10px}
.ariel-email-smtp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.ariel-email-smtp-head>div{display:grid;gap:3px}.ariel-email-smtp-head>div>span{font-size:11px;color:var(--ariel-muted)}
.ariel-email-smtp-box [data-smtp-fields]{display:grid;gap:10px}.ariel-email-smtp-box [data-smtp-fields].is-disabled{opacity:.55}.ariel-email-smtp-clear{display:flex;justify-content:flex-start}
.ariel-email-test-result{display:grid!important;gap:7px!important;min-height:58px!important;margin-top:12px!important;padding:12px 14px!important;border:1px solid var(--ariel-line)!important;border-radius:8px!important;background:#f8fafb!important;color:var(--ariel-text)!important;font-size:12px!important;line-height:1.35!important;overflow:visible!important;white-space:normal!important}
.ariel-email-test-result strong{font-size:13px}.ariel-email-test-result>span,.ariel-email-test-result p{margin:0;color:var(--ariel-muted);font-size:11px!important;line-height:1.35!important}.ariel-email-test-result.is-working{border-color:#9fb5c6!important;background:#f4f8fb!important}.ariel-email-test-result.is-success{border-color:#83b58b!important;background:#f3faf4!important}.ariel-email-test-result.is-error{border-color:#d6a3a3!important;background:#fff6f6!important}
.ariel-email-test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 12px}.ariel-email-test-grid span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.ariel-email-test-grid b{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:var(--ariel-muted)}.ariel-email-test-grid .is-wide{grid-column:1/-1}
@media(max-width:782px){.ariel-email-smtp-head{display:grid}.ariel-email-test-grid{grid-template-columns:1fr}.ariel-email-test-grid .is-wide{grid-column:auto}}
