.sf-final-heading{align-items:center}.sf-settings-link{border:1px solid var(--sf-line);background:#fff;color:#59657c;border-radius:12px;padding:9px 12px;display:flex;align-items:center;gap:7px;font:inherit;font-weight:800;cursor:pointer}.sf-settings-link svg{width:17px}.sf-settings-link.is-active{color:var(--sf-purple);background:#f7f3ff}.sf-primary-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;margin-bottom:18px}.sf-primary-tabs button{justify-content:center}.sf-inner-tabs{display:flex;gap:5px;padding:5px;margin:0 0 13px;background:#edf1f7;border-radius:13px;width:max-content;max-width:100%;overflow:auto}.sf-inner-tabs button{border:0;background:transparent;color:#69758b;border-radius:9px;padding:8px 14px;font:inherit;font-weight:800;white-space:nowrap}.sf-inner-tabs button.is-active{background:#fff;color:#54269a;box-shadow:0 2px 9px #1e2b481a}
.sf-home{display:grid;gap:16px}.sf-home-head,.sf-reports>header,.sf-settings>header{display:flex;justify-content:space-between;gap:18px;align-items:center}.sf-home-head h2,.sf-reports>header h2,.sf-settings>header h2{font-size:23px;margin:4px 0}.sf-home-head p,.sf-reports>header p,.sf-settings>header p{margin:0;color:var(--sf-muted)}.sf-home-head>div>span,.sf-settings>header>div>span{font-size:11px;color:var(--sf-purple);font-weight:850}.sf-home-head label,.sf-reports>header label{display:grid;gap:5px;color:var(--sf-muted);font-size:11px}.sf-home-head select,.sf-reports>header select{min-width:190px;border:1px solid var(--sf-line);border-radius:10px;padding:9px;background:#fff}
.sf-home-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sf-home-metric{border:1px solid var(--sf-line);border-radius:17px;background:#fff;padding:16px;text-align:right;display:grid;grid-template-columns:auto 1fr;gap:7px 10px;color:var(--sf-ink)}.sf-home-metric i{grid-row:1/3;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#f1edff;color:var(--sf-purple)}.sf-home-metric i svg{width:19px}.sf-home-metric span{font-size:11px;color:var(--sf-muted)}.sf-home-metric strong{font-size:19px;direction:ltr}.sf-home-metric.is-primary{border-top:3px solid var(--sf-purple);background:linear-gradient(145deg,#fff,#faf7ff)}
.sf-home-position,.sf-home-lower{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.sf-home-position>section,.sf-home-lower>section,.sf-report-preview{border:1px solid var(--sf-line);border-radius:17px;background:#fff;overflow:hidden}.sf-home-position header,.sf-home-lower header,.sf-report-preview>header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--sf-line)}.sf-home-position h3,.sf-home-lower h3,.sf-report-preview h3{margin:0;font-size:16px}.sf-home-position header span,.sf-home-lower header span,.sf-report-preview header span{font-size:10px;color:var(--sf-muted)}.sf-progress{height:6px;margin:14px 16px;background:#edf0f5;border-radius:999px;overflow:hidden}.sf-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--sf-purple),var(--sf-cyan))}.sf-home-position dl{display:grid;grid-template-columns:repeat(2,1fr);margin:0;padding:0 16px 15px}.sf-home-position dl div{padding:10px;border-bottom:1px solid #edf0f5}.sf-home-position dt{font-size:10px;color:var(--sf-muted)}.sf-home-position dd{margin:4px 0 0;font-weight:850}.sf-home-position .is-strong{background:#f5f2ff;border-radius:10px}.sf-attention>button{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:0;border-bottom:1px solid #edf0f5;background:#fff;padding:15px;text-align:right}.sf-attention>button i{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#fff5df;color:#9b6200}.sf-attention>button svg{width:16px}.sf-attention>button span{color:#58657b}.sf-category-summary>div{display:grid;grid-template-columns:1fr auto;gap:6px 12px}.sf-category-summary>div i{grid-column:1/-1;height:5px;background:#edf0f5}.sf-category-summary>div em{display:block;height:100%;background:linear-gradient(90deg,var(--sf-purple),var(--sf-blue))}
.sf-reports{display:grid;gap:15px}.sf-report-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.sf-report-cards button{display:flex;align-items:center;gap:11px;border:1px solid var(--sf-line);border-radius:14px;background:#fff;padding:13px;text-align:right;color:var(--sf-ink)}.sf-report-cards button.is-active{border-color:#cfc0f3;background:#faf7ff}.sf-report-cards i{width:34px;height:34px;border-radius:10px;background:#f1edff;color:var(--sf-purple);display:grid;place-items:center}.sf-report-cards svg{width:17px}.sf-report-cards strong,.sf-report-cards small{display:block}.sf-report-cards small{color:var(--sf-muted);margin-top:3px}.sf-accountant-package{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px;border-radius:18px;background:linear-gradient(120deg,#30175d,#5137a3 55%,#1d7faf);color:#fff}.sf-accountant-package h3{margin:4px 0}.sf-accountant-package p{margin:0;color:#e9e7f7}.sf-accountant-package small{display:block;margin-top:8px;color:#cfd9ef}.sf-accountant-package>div:last-child{display:flex;gap:8px}.sf-accountant-package .sf-secondary{background:#fff}.sf-report-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:15px}.sf-report-summary>div{border:1px solid var(--sf-line);border-radius:11px;padding:10px}.sf-report-summary span,.sf-report-summary strong{display:block}.sf-report-summary span{font-size:10px;color:var(--sf-muted)}.sf-report-summary strong{margin-top:4px;font-size:14px}.sf-report-note{margin:0;padding:13px 16px;background:#fafbfe;color:var(--sf-muted);font-size:11px}
.sf-settings{display:grid;gap:14px}.sf-settings>.sf-section{box-shadow:none}.sf-compact-document{margin-top:14px;border:1px solid var(--sf-line);border-radius:14px;overflow:hidden}.sf-compact-document header,.sf-compact-document article{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px}.sf-compact-document header{background:#fafbfe}.sf-compact-document h3{margin:0}.sf-compact-document p{margin:3px 0 0;color:var(--sf-muted);font-size:11px}.sf-compact-document article{border-top:1px solid var(--sf-line)}.sf-file-button input{display:none}.sf-file-actions{display:flex!important;gap:2px}.sf-proof-state{color:#6941c6!important;font-weight:750}.sf-collection-actions{display:flex;gap:5px}
.sf-friendly-empty{max-width:680px;margin:50px auto;padding:36px;text-align:center;border:1px solid var(--sf-line);border-radius:20px;background:#fff}.sf-friendly-empty>i{width:52px;height:52px;margin:auto;display:grid;place-items:center;border-radius:15px;background:#f1edff;color:var(--sf-purple)}.sf-friendly-empty>i svg{width:25px}.sf-friendly-empty h2{margin:16px 0 7px}.sf-friendly-empty p{max-width:540px;margin:0 auto 18px;color:var(--sf-muted);line-height:1.8}
.sf-expense-filters label:has(select[name="document_status"]),.sf-expense-form label:has(select[name="document_status"]),.sf-expense-form .sf-upload-zone,.sf-expense-detail>.sf-documents{display:none!important}.sf-expenses .sf-table-wrap th:nth-child(10),.sf-expenses .sf-table-wrap td:nth-child(10){display:none}
#saudiFinance label:has(select[name="period_id"]),#saudiFinance label:has(select[name="finance_period_id"]){display:none!important}
@media(max-width:900px){.sf-primary-tabs{grid-template-columns:repeat(3,1fr)}.sf-home-primary{grid-template-columns:repeat(2,1fr)}.sf-home-position,.sf-home-lower{grid-template-columns:1fr}.sf-report-cards{grid-template-columns:repeat(2,1fr)}.sf-report-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){#saudiFinance{overflow-x:hidden}.sf-final-heading,.sf-home-head,.sf-reports>header,.sf-settings>header,.sf-accountant-package{align-items:flex-start;flex-direction:column}.sf-settings-link{align-self:flex-end}.sf-primary-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sf-primary-tabs button{padding:9px 5px;justify-content:flex-start}.sf-primary-tabs button span{font-size:11px}.sf-home-head label,.sf-home-head select,.sf-reports>header label,.sf-reports>header select{width:100%;min-width:0}.sf-home-primary{grid-template-columns:1fr 1fr}.sf-home-metric{padding:12px;grid-template-columns:1fr}.sf-home-metric i{grid-row:auto}.sf-home-metric strong{font-size:15px}.sf-home-position dl{grid-template-columns:1fr}.sf-report-cards{display:flex;overflow:auto}.sf-report-cards button{min-width:210px}.sf-accountant-package>div:last-child{width:100%}.sf-accountant-package button{flex:1}.sf-report-summary{grid-template-columns:repeat(2,1fr)}.sf-compact-document header,.sf-compact-document article{align-items:flex-start;flex-direction:column}.sf-collection-actions{grid-column:1/-1;flex-wrap:wrap}.sf-inner-tabs{width:100%;box-sizing:border-box}.sf-inner-tabs button{flex:1}}

/* Finance Home — Visual Polish 01. Presentation-only overrides. */
.sf-home{gap:14px}.sf-home button{font-family:inherit}.sf-home-head{padding:4px 2px 2px}.sf-home-head h2{font-size:25px;letter-spacing:-.35px;color:#111c3c}.sf-home-head p{font-size:12px}.sf-home-head label{padding:9px 11px;border:1px solid #e3e8f2;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(24,38,76,.04)}.sf-home-head select{border:0;padding:2px 0 0;min-width:205px;font-weight:800;outline:0}
.sf-home-primary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.sf-home-metric{position:relative;min-height:118px;padding:16px 15px 14px;border-radius:18px;border-color:#e4e9f3;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start;box-shadow:0 8px 26px rgba(24,38,76,.055);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.sf-home-metric:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(34,45,84,.09)}.sf-home-metric i{width:40px;height:40px;grid-row:auto;border-radius:12px}.sf-home-metric span{align-self:center;font-size:12px;font-weight:800;color:#59657c;line-height:1.35}.sf-home-metric strong{grid-column:1/-1;align-self:end;margin-top:12px;font-size:20px;font-weight:900;white-space:nowrap;direction:ltr;text-align:right;color:#111a3a;font-variant-numeric:tabular-nums}.sf-home-metric.is-sales{border-top:3px solid #7650df}.sf-home-metric.is-sales i{background:#f2ecff;color:#7041dc}.sf-home-metric.is-collected{border-top:3px solid #1aaed7}.sf-home-metric.is-collected i{background:#eafaff;color:#0797c4}.sf-home-metric.is-outstanding{border-color:#f2d58f;border-top:3px solid #e4a72f;background:linear-gradient(145deg,#fff,#fffaf0)}.sf-home-metric.is-outstanding i{background:#fff3d6;color:#b87700}.sf-home-metric.is-expenses{border-top:3px solid #5cb6e8}.sf-home-metric.is-expenses i{background:#eaf7fd;color:#258fc9}.sf-home-metric.is-result{border-top:3px solid #4e6fe8}.sf-home-metric.is-result i{background:#eef1ff;color:#4e62d9}
.sf-home-focus{display:grid;grid-template-columns:1.05fr 1.08fr .87fr;gap:12px;align-items:stretch}.sf-home-focus>section,.sf-home-lower>section{border:1px solid #e3e8f2;border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(24,38,76,.045);overflow:hidden}.sf-home-focus>section>header,.sf-home-lower>section>header{min-height:62px;padding:13px 15px;border-bottom:1px solid #e8edf5;display:flex;align-items:center;justify-content:space-between;gap:12px}.sf-home-focus header>div,.sf-home-lower header>div{display:flex;align-items:center;gap:10px}.sf-home-focus header>div>i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f2edff;color:#6941c6}.sf-home-focus header svg{width:17px}.sf-home-focus h3,.sf-home-lower h3{margin:0;font-size:15px;color:#15203f}.sf-home-focus header small,.sf-home-lower header span{display:block;margin-top:3px;color:#7a869a;font-size:10px}.sf-home-focus header>strong{font-size:16px;font-weight:900;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}
.sf-home-account{width:100%;min-height:70px;padding:10px 13px;border:0;border-bottom:1px solid #edf0f5;background:#fff;color:#17223f;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:right}.sf-home-account:last-child{border-bottom:0}.sf-home-account:hover{background:#fafbff}.sf-home-account>i{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#eff5ff;color:#315fc4}.sf-home-account>i svg{width:18px}.sf-home-account-copy,.sf-home-account-value{display:block;min-width:0}.sf-home-account-copy small,.sf-home-account-copy strong,.sf-home-account-copy em,.sf-home-account-value b,.sf-home-account-value small,.sf-home-account-value em{display:block}.sf-home-account-copy small{font-size:10px;color:#6f7c92}.sf-home-account-copy strong{margin-top:2px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sf-home-account-copy em{margin-top:2px;font-style:normal;font-size:9px;color:#8d97a9}.sf-home-account-copy>b{display:inline-block;margin-top:4px;padding:2px 6px;border-radius:999px;background:#eef1ff;color:#5240a5;font-size:8px}.sf-home-account-value{text-align:left}.sf-home-account-value>b{font-size:13px;font-weight:900;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}.sf-home-account-value small{font-size:9px;color:#7b879b}.sf-home-account-value em{width:max-content;margin:4px 0 0 auto;padding:2px 6px;border-radius:999px;font-style:normal;font-size:8px;font-weight:800}.sf-home-account-value .is-needs-update{background:#fff4dc;color:#986300}.sf-home-account-value .is-has-difference{background:#fff0f0;color:#a43b3b}.sf-home-account-value .is-matched{background:#eaf9f1;color:#167b50}.sf-home-accounts-empty{min-height:84px;padding:18px;display:flex;align-items:center;justify-content:center;gap:9px;color:#7b8799}.sf-home-accounts-empty i{width:32px;color:#65738d}
.sf-home-assets-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:11px 12px;border-bottom:1px solid #edf0f5;background:#fbfcff}.sf-home-asset-metric{min-width:0;padding:10px 9px;border:1px solid #e7ebf3;border-radius:12px;background:#fff;color:#17213f;text-align:right}.sf-home-asset-metric span,.sf-home-asset-metric strong{display:block}.sf-home-asset-metric span{font-size:10px;font-weight:800;color:#657188;line-height:1.45}.sf-home-asset-metric strong{margin-top:5px;font-size:13px;font-weight:900;direction:ltr;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.sf-home-asset-metric.is-total{border-color:#d8cdfc;background:#f7f4ff;box-shadow:inset 3px 0 0 #7351d6}.sf-home-asset-metric.is-total span{color:#5b42a5}.sf-home-asset-metric.is-total strong{font-size:14px;color:#332076}
.sf-home-collection>header b{padding:6px 9px;border-radius:10px;background:#eef5ff;color:#335ed0;font-size:13px;direction:ltr}.sf-home-progress{height:7px;margin:17px 16px 5px;border-radius:999px;background:#edf0f6;overflow:hidden}.sf-home-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7549df,#2a7be7 58%,#18bbd5)}.sf-home-collection-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px 12px 10px}.sf-home-collection-values button,.sf-home-secondary button{min-width:0;border:1px solid #e7ebf3;border-radius:13px;background:#fafbfe;padding:10px 8px;color:#17213f;text-align:center}.sf-home-collection-values i,.sf-home-secondary i{width:30px;height:30px;margin:0 auto 7px;border-radius:9px;background:#f1edff;color:#6840c3;display:grid;place-items:center}.sf-home-collection-values svg,.sf-home-secondary svg{width:15px}.sf-home-collection-values span,.sf-home-collection-values strong,.sf-home-secondary span,.sf-home-secondary strong{display:block}.sf-home-collection-values span,.sf-home-secondary span{font-size:9px;color:#748096}.sf-home-collection-values strong,.sf-home-secondary strong{margin-top:4px;font-size:11px;font-weight:900;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}.sf-home-cash-row{display:flex;align-items:center;justify-content:space-between;margin:0 14px 13px;padding:9px 11px;border-radius:11px;background:#f4f2ff;color:#4e3b91}.sf-home-cash-row span{font-size:10px;font-weight:800}.sf-home-cash-row strong{font-size:12px;direction:ltr;font-variant-numeric:tabular-nums}
.sf-attention>header>div>i{background:#fff3de;color:#a76d00}.sf-attention>button{min-height:59px;padding:11px 13px;grid-template-columns:32px minmax(0,1fr) auto}.sf-attention>button span{font-size:11px;font-weight:750;line-height:1.5;color:#3c4962}.sf-attention>button strong{font-size:11px;direction:ltr;font-variant-numeric:tabular-nums}.sf-attention-clear{min-height:100px;padding:20px;display:flex;align-items:center;justify-content:center;gap:9px;color:#57756a;font-size:11px}.sf-attention-clear i{width:34px;height:34px;border-radius:10px;background:#eaf9f1;color:#16805b;display:grid;place-items:center}.sf-attention-clear svg{width:17px}
.sf-home-secondary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sf-home-secondary button{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;text-align:right;padding:9px 12px;background:#fff;box-shadow:0 5px 17px rgba(24,38,76,.035)}.sf-home-secondary i{margin:0;width:32px;height:32px}.sf-home-secondary span{font-size:10px}.sf-home-secondary strong{margin:0;font-size:12px;text-align:left}
.sf-home-lower{grid-template-columns:1.25fr .75fr;gap:12px}.sf-company-summary>header,.sf-category-summary>header{margin:0}.sf-home-company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px}.sf-home-company{min-width:0;padding:10px 12px;border-left:1px solid #edf0f5;text-align:center}.sf-home-company:last-child{border-left:0}.sf-company-logo{height:48px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.sf-company-logo img{display:block;max-width:105px;width:auto;height:auto;max-height:42px;object-fit:contain}.sf-company-name{min-height:48px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;font-size:11px;line-height:1.5}.sf-home-company dl{margin:0}.sf-home-company dl div{padding:7px 2px;border-top:1px solid #edf0f5}.sf-home-company dt{font-size:9px;color:#7a869a}.sf-home-company dd{margin:3px 0 0;font-size:12px;font-weight:900;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}.sf-home-company .is-outstanding dd{color:#9b6500}.sf-category-summary{margin:0;padding:0}.sf-category-summary>header>b{font-size:14px;direction:ltr;font-variant-numeric:tabular-nums}.sf-category-summary>div:not(.sf-home-expense-empty){padding:9px 14px}.sf-category-summary>div i{border-radius:999px;overflow:hidden}.sf-category-summary>div em{border-radius:inherit}.sf-home-expense-empty{min-height:122px!important;padding:20px!important;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:0!important;text-align:center;color:#69758a}.sf-home-expense-empty i{width:38px;height:38px!important;background:#f0f3fa!important;color:#5f6d89;display:grid;place-items:center;border-radius:11px}.sf-home-expense-empty svg{width:19px}.sf-home-expense-empty strong{font-size:11px}
@media(max-width:1180px){.sf-home-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-home-metric.is-result{grid-column:span 2}.sf-home-focus{grid-template-columns:1fr 1fr}.sf-attention{grid-column:1/-1}.sf-home-lower{grid-template-columns:1fr}}
@media(max-width:780px){.sf-home-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-home-metric.is-result{grid-column:span 2}.sf-home-focus{grid-template-columns:1fr}.sf-attention{grid-column:auto}.sf-home-company-grid{grid-template-columns:1fr}.sf-home-company{display:grid;grid-template-columns:94px 1fr;align-items:center;border-left:0;border-bottom:1px solid #edf0f5;text-align:right}.sf-home-company:last-child{border-bottom:0}.sf-company-logo,.sf-company-name{margin:0}.sf-home-company dl{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}.sf-home-company dl div{border-top:0;border-right:1px solid #edf0f5}.sf-home-company dl div:first-child{border-right:0}}
@media(max-width:600px){.sf-home{gap:11px}.sf-home-head{gap:11px}.sf-home-head h2{font-size:21px}.sf-home-head p{font-size:11px}.sf-home-primary{gap:8px}.sf-home-metric{min-height:107px;padding:12px 11px;grid-template-columns:35px minmax(0,1fr);border-radius:15px}.sf-home-metric i{width:34px;height:34px}.sf-home-metric i svg{width:17px}.sf-home-metric span{font-size:10px}.sf-home-metric strong{margin-top:9px;font-size:15px}.sf-home-focus>section,.sf-home-lower>section{border-radius:15px}.sf-home-focus>section>header,.sf-home-lower>section>header{min-height:56px;padding:11px 12px}.sf-home-assets-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:7px}.sf-home-asset-metric{padding:9px 8px}.sf-home-asset-metric.is-total{grid-column:1/-1}.sf-home-secondary{grid-template-columns:1fr}.sf-home-account{grid-template-columns:34px minmax(0,1fr) auto;padding:9px 10px}.sf-home-account>i{width:32px;height:32px}.sf-home-account-value>b{font-size:11px}.sf-home-company{grid-template-columns:78px 1fr;padding:9px}.sf-company-logo img{max-width:72px;max-height:34px}.sf-home-company dl div{padding:5px 1px}.sf-home-company dd{font-size:10px}.sf-home-company dt{font-size:8px}}
@media(max-width:380px){.sf-home-metric strong{font-size:13px}.sf-home-collection-values{gap:4px;padding-inline:8px}.sf-home-collection-values button{padding-inline:4px}.sf-home-collection-values strong{font-size:9px}.sf-home-account{grid-template-columns:30px minmax(0,1fr) auto}.sf-home-account>i{width:29px;height:29px}.sf-home-account-copy strong{font-size:10px}.sf-home-account-value em{display:none}.sf-home-company{grid-template-columns:65px 1fr}.sf-company-logo img{max-width:60px}.sf-home-company dd{font-size:9px}}

/* Keep all five KPIs readable at wide desktop; fold them earlier on constrained layouts. */
.sf-home-metric strong{font-size:clamp(16px,1.28vw,20px)}
@media (min-width:1181px) and (max-width:1320px){.sf-home-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-home-metric.is-result{grid-column:span 2}.sf-home-focus{grid-template-columns:1fr 1fr}.sf-attention{grid-column:1/-1}.sf-home-lower{grid-template-columns:1fr}}

/* Home polish follow-up: optically balanced official company marks. */
.sf-company-logo{width:112px;height:48px;margin:0 auto 8px;overflow:hidden}
.sf-company-logo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center}
.sf-company-logo.is-norsen img{transform:scale(.72)}
.sf-company-logo.is-rowaj img{transform:scale(3.2)}
.sf-company-logo.is-ejjadh img{transform:scale(1.15)}
.sf-home-secondary button:nth-child(1) i{background:#eaf7ff;color:#187fc1}
.sf-home-secondary button:nth-child(2) i{background:#eef0ff;color:#5a4bd3}
.sf-home-secondary button:nth-child(3) i{background:#edf9f5;color:#128262}
@media(max-width:780px){.sf-company-logo{width:84px;height:42px;margin:0}.sf-company-logo.is-norsen img{transform:scale(.7)}.sf-company-logo.is-rowaj img{transform:scale(3.15)}.sf-company-logo.is-ejjadh img{transform:scale(1.12)}}
@media(max-width:600px){.sf-company-logo{width:70px;height:36px}}

/* Home polish follow-up: readable management labels and clearer financial glyphs. */
.sf-home-metric span{font-size:13px;font-weight:900;color:#35415a}
.sf-home-metric i svg{width:21px;height:21px;stroke-width:1.9}
.sf-home-secondary button{min-height:62px;padding:10px 13px;grid-template-columns:40px minmax(0,1fr) auto;gap:10px}
.sf-home-secondary i{width:38px;height:38px;border-radius:11px}
.sf-home-secondary svg{width:19px;height:19px;stroke-width:1.9}
.sf-home-secondary span{font-size:12px;font-weight:900;line-height:1.45;color:#35415a}
.sf-home-secondary strong{font-size:13px;color:#111a3a}
.sf-home-company dl div{padding:9px 4px}
.sf-home-company dt{font-size:11px;font-weight:900;line-height:1.35;color:#45516a}
.sf-home-company dd{margin-top:5px;font-size:13px;color:#111a3a}
@media(max-width:600px){.sf-home-metric span{font-size:11px}.sf-home-secondary span{font-size:11px}.sf-home-company dt{font-size:10px}.sf-home-company dd{font-size:11px}}

/* Finance Home bank marks: exact supplied artwork inside the existing account icon slot. */
.sf-bank-logo{width:40px;height:38px;border:1px solid #ccd8e8;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box;box-shadow:0 0 0 2px #f3f6fb,0 4px 10px rgba(24,49,88,.11)}
.sf-bank-logo img{display:block;width:auto;height:auto;object-fit:contain}
.sf-bank-logo.is-alrajhi img{max-width:39px;max-height:26px}
.sf-bank-logo.is-snb img{max-width:31px;max-height:29px}
@media(max-width:600px){.sf-bank-logo{width:32px;height:32px}.sf-bank-logo.is-alrajhi img{max-width:30px}.sf-bank-logo.is-snb img{max-width:27px;max-height:25px}}

/* Keep the account-status chip legible without increasing the account row height. */
.sf-home-account-value .is-needs-update{padding:3px 8px;border:1px solid #efcf87;background:#fff0c7;color:#744900;font-size:9.5px;font-weight:900;line-height:1.35;box-shadow:0 1px 2px rgba(116,73,0,.08)}
@media(max-width:600px){.sf-home-account-value .is-needs-update{padding:3px 6px;font-size:9px}}

/* Saudi Finance Patch 4 — expense, settings and reconciliation presentation */
.sf-expense-table table{min-width:1040px;table-layout:fixed}.sf-expense-table th,.sf-expense-table td{vertical-align:middle}.sf-expense-table th:nth-child(1){width:105px}.sf-expense-table th:nth-child(2){width:130px}.sf-expense-table th:nth-child(3){width:210px}.sf-expense-table th:nth-child(4){width:190px}.sf-expense-table th:nth-child(5){width:145px}.sf-expense-table th:nth-child(6){width:180px}.sf-expense-table th:nth-child(7){width:100px}.sf-expense-description{border:0;background:transparent;color:#17213f;font:inherit;font-weight:850;text-align:inherit;cursor:pointer}.sf-expense-description:hover{text-decoration:underline;color:var(--sf-purple)}.sf-expense-source{display:grid;gap:3px}.sf-expense-source small{color:var(--sf-muted);font-size:10px}.sf-expense-amount strong{font-size:14px;color:#17213f;white-space:nowrap}.sf-expense-note{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#637089}.sf-compact-actions{justify-content:flex-start}.sf-actions-menu{position:relative}.sf-actions-menu summary{display:grid;place-items:center;width:34px;height:34px;border:1px solid #e2e7f0;border-radius:10px;background:#fff;color:#5e3e9d;cursor:pointer;font-size:20px;line-height:1;list-style:none}.sf-actions-menu summary::-webkit-details-marker{display:none}.sf-actions-menu[open] summary{border-color:#8b68d2;background:#f7f2ff}.sf-actions-menu>div{position:absolute;z-index:15;inset-inline-end:0;top:40px;min-width:165px;padding:6px;border:1px solid #dfe4ed;border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(23,33,63,.16)}.sf-actions-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#27344c;font:inherit;text-align:inherit;cursor:pointer}.sf-actions-menu button:hover,.sf-actions-menu button:focus-visible{background:#f4f1fb;outline:2px solid transparent}.sf-actions-menu button.is-danger,.sf-actions-menu [data-master-delete]{color:#a73e3e}.sf-actions-menu svg{width:16px}.sf-context-badge{display:inline-flex;align-items:center;gap:7px;width:max-content;padding:6px 10px;border-radius:999px;background:#f1ecff;color:#5f36a7;font-size:11px;font-weight:850}.sf-context-badge svg{width:16px}.sf-form-section{display:grid;gap:12px;padding:15px;border:1px solid #e3e8f1;border-radius:15px;background:#fbfcff}.sf-form-section h3{margin:0;padding-bottom:9px;border-bottom:1px solid #e8edf4;font-size:14px;color:#17213f}.sf-input-with-suffix{display:flex!important;align-items:stretch}.sf-input-with-suffix input{min-width:0;border-start-end-radius:0;border-end-end-radius:0}.sf-input-with-suffix b{display:grid;place-items:center;padding:0 13px;border:1px solid #d9e0eb;border-inline-start:0;border-start-end-radius:10px;border-end-end-radius:10px;background:#f0f3f8;color:#53617a;font-size:11px}.sf-action-context{display:grid;gap:5px;padding:12px 14px;border:1px solid #e3e7ef;border-radius:12px;background:#f9fafc}.sf-action-context span{color:#6c788c;font-size:11px;line-height:1.7}.sf-settings{gap:16px}.sf-settings-header{padding:18px 20px!important;border:1px solid #e2e7f0;border-radius:17px;background:linear-gradient(120deg,#fbf9ff,#f5fbff)}.sf-settings-header>div>span{color:#7043bd;font-size:11px;font-weight:850}.sf-settings-header h2{margin:5px 0 3px}.sf-settings>.sf-inner-tabs{padding:6px;border:1px solid #e1e6ef;border-radius:14px;background:#fff;overflow-x:auto;flex-wrap:nowrap}.sf-settings>.sf-inner-tabs button{flex:0 0 auto;white-space:nowrap}.sf-settings-section{margin:0}.sf-settings-section .sf-table-wrap table{min-width:820px}.sf-identifier{display:inline-flex;padding:4px 8px;border-radius:8px;background:#f2f4f8;color:#46546c;font-weight:800;direction:ltr}.sf-main-account{display:inline-flex;align-items:center;gap:7px}.sf-main-account svg{width:16px;color:#526fc5}.sf-account-balances>header p{max-width:740px;line-height:1.7}.sf-balance-table table{min-width:1260px}.sf-balance-table th,.sf-balance-table td{white-space:nowrap}
@media(max-width:768px){.sf-settings-header{align-items:flex-start!important;flex-direction:column}.sf-settings-header .sf-secondary{align-self:stretch;justify-content:center}.sf-expense-form .sf-form-section .sf-form-grid{grid-template-columns:1fr}.sf-expense-form .sf-wide{grid-column:1}.sf-settings>.sf-inner-tabs{scrollbar-width:thin}}
@media(max-width:430px){.sf-expense-table table,.sf-settings-section .sf-table-wrap table{min-width:0}.sf-expense-table .sf-expense-note{max-width:100%}.sf-expense-table td[data-label="الإجراءات"]{overflow:visible}.sf-actions-menu>div{inset-inline-end:auto;inset-inline-start:0}.sf-form-section{padding:12px}.sf-context-badge{margin-inline:0}.sf-settings-header{padding:14px!important}.sf-settings>.sf-inner-tabs{margin-inline:0}.sf-settings-section>header{align-items:flex-start;flex-direction:column}.sf-settings-section>header .sf-actions{width:100%;flex-wrap:wrap}.sf-settings-section>header .sf-primary{flex:1;justify-content:center}}
.sf-settings{min-width:0;grid-template-columns:minmax(0,1fr)}.sf-settings>*{min-width:0;max-width:100%;box-sizing:border-box}
#saudiFinance .sf-expense-table th:nth-child(5),#saudiFinance .sf-expense-table td.sf-expense-amount{text-align:center!important}
#saudiFinance .sf-expense-table td.sf-expense-amount strong{display:inline-block;min-width:96px;text-align:center!important}
.sf-settings-primary-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sf-settings-primary-groups button{display:grid;gap:3px;padding:13px 16px;border:1px solid #dfe5ef;border-radius:14px;background:#fff;color:#26334d;font:inherit;text-align:start;cursor:pointer}.sf-settings-primary-groups button span{font-weight:900}.sf-settings-primary-groups button small{color:#778398;font-size:10px}.sf-settings-primary-groups button.is-active{border-color:#7145c4;background:linear-gradient(120deg,#f5efff,#f2f9ff);box-shadow:inset 3px 0 #7145c4}.sf-settings-primary-groups button.is-active span{color:#5d2ca8}.sf-settings-primary-groups button:focus-visible,.sf-settings-secondary button:focus-visible{outline:3px solid #b9a2ec;outline-offset:2px}.sf-settings-secondary{display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:4px;border:1px solid #e4e8f0;border-radius:12px;background:#f7f8fb;overflow-x:auto}.sf-settings-secondary button{flex:0 0 auto;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#667288;font:inherit;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}.sf-settings-secondary button.is-active{background:#fff;color:#5f36a7;box-shadow:0 2px 8px #25304b17}.sf-form-helper{display:block;color:#6f7c91;font-size:11px;line-height:1.7}.sf-settings-section .sf-table-wrap table{min-width:980px}
.sf-dependency-list{display:grid;gap:7px;margin:8px 0 0;padding:0;list-style:none}.sf-dependency-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 9px;border-radius:8px;background:#fff;color:#6f3340;font-size:12px}.sf-dependency-list li strong{font-variant-numeric:tabular-nums}.sf-dependency-list.is-safe li{display:list-item;padding-inline-start:22px;color:#3c6654;list-style:disc inside}
@media(max-width:600px){.sf-settings-primary-groups{grid-template-columns:1fr}.sf-settings-primary-groups button{padding:11px 13px}.sf-settings-secondary{width:100%;box-sizing:border-box;scrollbar-width:thin}.sf-settings-secondary button{padding:8px 11px}}
