/* Finance presentation only; existing controls, permissions and data are retained. */
body.finance-hub-view .main-content{width:100%;min-width:0;max-width:100%;overflow:hidden}
body.finance-hub-view .top-bar{box-sizing:border-box;flex:0 0 auto;min-height:68px;height:auto;padding:16px 24px;gap:12px;flex-wrap:wrap}
body.finance-hub-view .page-title{flex:1 1 160px;min-width:0}
body.finance-hub-view #topbar-title{font-size:23px;line-height:1.25;white-space:normal;word-break:normal;overflow-wrap:normal;margin:0}
.fh-global-tools{position:relative;flex:0 0 auto}
.fh-global-tools>summary{cursor:pointer;padding:10px 14px;list-style:none;border:1px solid #596079;border-radius:10px;font-size:14px}
.fh-tools-content{position:absolute;right:0;top:100%;z-index:110;background:#26283c;border:1px solid #565e78;border-radius:12px;padding:12px;min-width:220px;box-shadow:0 12px 32px #0005;display:flex;flex-direction:column;gap:10px}
.fh-tools-content>*{position:static!important;inset:auto!important;max-width:100%;white-space:normal}
#automation-finance-screen.fh-ready{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:24px;overflow-x:hidden}
.fh-ready .finance-main-content{display:flex!important;gap:18px!important;min-width:0;max-width:1040px;margin:0 auto;padding-bottom:70px!important}
.fh-ready .fh-heading{padding:0!important;margin:0!important;border:0!important}
.fh-ready .fh-heading h2{font-size:22px!important;line-height:1.35!important;margin:0 0 8px!important}
.fh-ready .fh-heading p{margin:0!important;font-size:14px!important;line-height:1.65!important;max-width:100%!important;color:#bdc4d7!important}
.fh-ready .hub-grid-2{display:none}
.fh-ready .fh-section{border:1px solid #45495f;border-radius:14px;background:#26283c;min-width:0;overflow:hidden}
.fh-section>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;padding:18px;cursor:pointer;min-height:52px;box-sizing:border-box}
.fh-section>summary::-webkit-details-marker{display:none}
.fh-section>summary::after{content:'＋';font-size:20px;color:#73d3dd;flex-shrink:0}
.fh-section[open]>summary::after{content:'−'}
.fh-section>summary span{display:block;font-weight:650;font-size:17px;line-height:1.4}
.fh-section>summary small{display:block;font-size:13px;font-weight:400;color:#bbc4d5;margin-top:4px;line-height:1.5}
.fh-section-body{padding:0 18px 18px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.fh-ready .glass-panel{box-sizing:border-box;min-width:0;max-width:100%;padding:16px;backdrop-filter:none;overflow:visible;margin:0!important;border:1px solid #44495e!important;background:#202235}
.fh-ready .glass-panel h3{font-size:16px!important;line-height:1.5;margin:0 0 14px!important;overflow-wrap:anywhere}
.fh-ready .glass-panel>div,.fh-ready .glass-panel section{min-width:0;max-width:100%;box-sizing:border-box}
.fh-ready p,.fh-ready label,.fh-ready small{white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.fh-ready input,.fh-ready select,.fh-ready button,.fh-ready a.btn{box-sizing:border-box;min-width:0;max-width:100%;font-size:14px!important}
.fh-ready input[type=file]{display:block;width:100%;padding:10px!important;min-height:46px}
.fh-ready input[type=file]::file-selector-button{border:0;border-radius:7px;padding:9px 10px;margin-right:8px;background:#475274;color:white;max-width:55%;font:inherit}
.fh-ready select{height:auto;min-height:46px;padding:10px!important}
.fh-ready .btn{min-height:46px;padding:11px 14px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.45!important;text-align:center;justify-content:center}
.fh-ready .btn:disabled,.fh-ready [aria-disabled=true]{opacity:.65;color:#ecf0ff!important;cursor:not-allowed}
.fh-ready .app-icon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fh-ready .app-icon-btn{min-width:0;min-height:84px;padding:12px;box-sizing:border-box}
.fh-ready .fh-cloud-note{padding:10px 12px;border-radius:8px;background:#303045;color:#d2d7e7;font-size:13px;margin:0 0 14px}
.fh-ready .fh-history{border-top:1px solid #48506a;padding-top:12px;margin-top:12px}
.fh-history>summary{cursor:pointer;font-weight:600;line-height:1.6;padding:8px 0;color:#97dfed}
.fh-ready .fh-table-scroll{overflow:auto!important;max-height:320px;min-width:0;width:100%;border:1px solid #48506a;border-radius:8px;-webkit-overflow-scrolling:touch}
.fh-table-scroll table{min-width:650px;width:100%;font-size:13px}
.fh-table-scroll th{position:sticky;top:0;background:#252b43;z-index:1}
.fh-table-scroll td,.fh-table-scroll th{padding:10px!important;max-width:240px;overflow-wrap:anywhere}
.fh-ready #payee-upload-status{margin:12px 0!important;padding:12px!important;min-width:0;max-width:100%}
.fh-ready #payee-upload-result>p{font-size:13px!important;line-height:1.65}
.fh-ready #payee-upload-status a{color:#91e4f0;display:inline-block;min-height:40px;padding:8px 0;line-height:1.6}
.fh-ready #ap-paid-daily-status{font-size:14px;padding:12px!important;border-color:#4c7379!important;background:#193039}
.fh-ready #ap-paid-daily-status p{margin:8px 0 0}
.fh-ready .fh-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.fh-numbers div{padding:10px 6px;text-align:center;background:#30364a;border-radius:8px;font-size:12px}
.fh-numbers strong{display:block;font-size:21px;color:#f2f7ff;line-height:1.3}
@media(min-width:1000px){.fh-ready .fh-section-body.fh-imports{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){body.finance-hub-view .top-bar{padding:14px 14px 14px 62px;min-height:66px;flex-wrap:nowrap}body.finance-hub-view .page-title{flex:1 1 auto}body.finance-hub-view #topbar-title{font-size:21px}#automation-finance-screen.fh-ready{padding:16px 12px}.fh-ready .finance-main-content{gap:14px!important}.fh-ready .fh-heading h2{display:none!important}.fh-section>summary{padding:15px}.fh-section-body{padding:0 12px 12px}.fh-ready .glass-panel{padding:14px}.fh-global-tools>summary{padding:9px 11px}.fh-ready .mb-3{flex-wrap:wrap;justify-content:flex-start!important;gap:12px!important}}
@media(prefers-reduced-motion:reduce){.fh-ready *{transition:none!important}}
