/* Approved Accounts/payment layouts; financial actions keep their existing handlers. */
#adminAccountsView.pam-accounts{background:#f5f8f6}#adminAccountsView .accounts-invoice-heading{margin-bottom:14px}#adminAccountsView.pam-accounts #receivableTotals{display:flex;gap:15px;align-items:center;padding:20px;border:1px solid #d2e4d9;border-radius:15px;background:#edf7f1;margin:0 0 13px}.pam-summary-icon{width:48px;height:48px;border-radius:50%;background:#dcefe4;display:grid;place-items:center;flex:none}.pam-summary-icon svg{width:27px;height:27px;color:#165c42}#adminAccountsView.pam-accounts #receivableTotals small{display:block;color:#6b7d74;font-size:12px}#adminAccountsView.pam-accounts #receivableTotals strong{display:block;font-size:26px;line-height:1.4;color:#104d38}#adminAccountsView.pam-accounts .admin-account-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#adminAccountsView.pam-accounts .admin-account-cards>button{min-height:76px!important;padding:12px 8px!important;border-radius:11px!important;box-shadow:none!important;background:#fff!important;color:#215340!important;border:1px solid #dbe7df!important;text-align:left!important}#adminAccountsView.pam-accounts .admin-account-cards>button strong{font-size:16px!important}#adminAccountsView.pam-accounts .admin-account-cards>button span:first-child{font-size:12px!important}#adminAccountsView.pam-accounts .admin-account-cards>button span:last-child{display:none}#adminAccountsView.pam-accounts .receivable-tools{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:9px;margin:14px 0}#adminAccountsView.pam-accounts .receivable-tools input,#adminAccountsView.pam-accounts .receivable-tools select{height:43px;margin:0!important;border-radius:10px}#adminAccountsView.pam-accounts .receivable-card{padding:16px;margin:12px 0;background:#fff;border:1px solid #dbe6df;border-radius:14px;box-shadow:0 2px 7px #153c2a05}#adminAccountsView.pam-accounts .receivable-card h3{display:flex;align-items:center;gap:10px;font-size:17px;margin:0 0 15px}#adminAccountsView.pam-accounts .receivable-card h3 svg{width:22px;height:22px;padding:8px;border-radius:9px;background:#e9f4ed;color:#175a40;box-sizing:content-box}#adminAccountsView.pam-accounts .receivable-amounts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#adminAccountsView.pam-accounts .receivable-amounts span{font-size:11px;color:#6c7c73}#adminAccountsView.pam-accounts .receivable-amounts b{display:block;font-size:15px;margin-top:6px;color:#233e31;overflow-wrap:anywhere}#adminAccountsView.pam-accounts .receivable-amounts .pam-outstanding b{color:#146244}#adminAccountsView.pam-accounts .receivable-card>.actions{display:flex!important;justify-content:flex-end;gap:7px;border-top:1px solid #e5ece7;padding-top:12px;margin-top:13px}#adminAccountsView.pam-accounts .receivable-card>.actions button{width:auto!important;flex:0 0 auto!important;min-width:0!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px!important;min-height:36px!important;font-size:12px!important;border-radius:9px!important}#adminAccountsView.pam-accounts .receivable-card>.actions svg{width:16px;height:16px}#adminAccountsView.pam-accounts #pricingAccountsButton{min-height:34px;padding:7px 11px;font-size:12px;margin:10px 0}
#accountView.pam-requests{background:#f5f8f6}#requestForm.pam-request-form:not(.hidden){display:grid!important;grid-template-columns:1fr 1fr;gap:12px;padding:15px;border:1px solid #dbe6df;border-radius:13px;background:white;margin:16px 0}#requestForm.pam-request-form>div:first-child{grid-column:1/-1}#requestForm label{font-size:12px;color:#61766a;margin-bottom:5px}#requestForm input,#requestForm select{width:100%;min-width:0;margin:0!important;height:42px;border-radius:9px;box-sizing:border-box}#requestForm>button{width:auto!important;min-width:0;min-height:36px;padding:8px 12px;font-size:12px;margin:0;justify-self:start}#requestForm #createRequest{justify-self:end;display:inline-flex;gap:7px;align-items:center}#createRequest svg{height:16px;width:16px}.pam-requests #historyField{font-size:12px;color:#687b70}.pam-pending-total{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px;background:#e9f5ed;border:1px solid #d1e5d8;border-radius:13px;margin:15px 0}.pam-pending-total>div{display:flex;align-items:center;gap:12px;min-width:0}.pam-pending-total svg{width:28px;height:28px;color:#165a40;flex:none}.pam-pending-total small{display:block;font-size:11px;color:#62776a}.pam-pending-total strong{display:block;font-size:23px;color:#134f39;overflow-wrap:anywhere}.pam-pending-total>b{font-size:11px;border-radius:15px;background:#d3eade;padding:6px 9px;white-space:nowrap}.pam-list-title{font-size:17px}.pam-request-card{background:#fff;border:1px solid #dbe6df;border-radius:13px;margin:13px 0;padding:15px}.pam-request-heading{display:flex;justify-content:space-between;gap:10px}.pam-party{display:flex;align-items:flex-start;gap:9px;min-width:0}.pam-party>svg{width:20px;height:20px;padding:8px;background:#e8f4ed;border-radius:50%;flex:none;box-sizing:content-box}.pam-party h3{font-size:16px;margin:0 0 5px;overflow-wrap:anywhere}.pam-party small{display:block;font-size:10px;color:#728077}.pam-request-value{text-align:right;flex:0 0 auto;max-width:47%}.pam-request-value>small{display:block;font-size:10px;color:#718176}.pam-request-value>strong{display:block;font-size:21px;color:#143d2b;margin:4px 0;overflow-wrap:anywhere}.pam-status{display:inline-block;font-size:10px;font-weight:600;padding:5px 8px;border-radius:13px;background:#fff0cf;color:#8a581b}.pam-paid{background:#e1f3e7;color:#246b40}.pam-void{background:#f1f1f1;color:#758078}.pam-period{font-size:12px;color:#697b70;margin:15px 0}.pam-request-actions{display:flex;justify-content:flex-end;gap:7px;border-top:1px solid #e5ece7;padding-top:11px}.pam-request-actions button,.pam-document>button{width:auto!important;display:inline-flex;gap:6px;align-items:center;padding:8px 10px!important;min-height:35px!important;border-radius:8px!important;font-size:12px!important}.pam-request-actions svg,.pam-document>button svg{height:16px;width:16px}
.pam-dialog{width:min(780px,96vw);max-height:94dvh;padding:0;border:1px solid #d8e5dc;border-radius:15px;color:#214534}.pam-dialog::backdrop{background:#153c2b70}.pam-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #dce7df}.pam-dialog>header h2{font-size:20px;margin:0}.pam-dialog>header button{width:36px;height:36px;min-height:0;padding:0;font-size:25px}.pam-dialog-body{padding:16px;overflow:auto;max-height:77dvh;background:#f5f8f6}#pamContext{background:#fff;padding:15px;border-radius:11px;border:1px solid #dce7df}#pamContext>small{font-size:11px;color:#718176}.pam-context-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.pam-context-row h3{font-size:17px}.pam-context-row strong{font-size:20px;color:#145b40}.pam-tabs{display:grid;grid-template-columns:1fr 1fr;background:white;border-radius:10px;margin:14px 0}.pam-tabs button{width:auto;border:0;background:transparent;font-size:14px;min-height:45px;border-radius:0}.pam-tabs button[aria-selected=true]{background:#e5f4ec;border-bottom:3px solid #14774c;color:#12543a}.pam-document{padding:17px;background:white;border:1px solid #dce6df;border-radius:8px}.pam-document h3{color:#16583e;font-size:18px}.pam-document p{font-size:12px}.pam-table-wrap{overflow:auto}.pam-table-wrap table{border-collapse:collapse;width:100%;font-size:11px;min-width:390px}.pam-table-wrap td,.pam-table-wrap th{padding:10px 7px;border-bottom:1px solid #e1e9e3;text-align:left}.pam-table-wrap th{background:#edf6f0}.pam-document-total{text-align:right;padding:18px 0}.pam-document-total>*{display:block;margin:5px 0}.pam-document-total small{font-size:11px;color:#708177}.pam-document-total strong{font-size:23px;color:#15583e}.pam-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.pam-admin-actions button{width:auto;font-size:12px;padding:9px 11px}.pam-empty-invoice{padding:20px;background:white;border:1px solid #dce6df;border-radius:10px}.pam-empty-invoice h3{font-size:17px}.pam-empty-invoice p{font-size:13px}#pamMessage{font-size:12px;color:#456a53}@media(max-width:500px){.pam-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.pam-dialog-body{max-height:calc(100dvh - 66px);box-sizing:border-box}.pam-context-row{align-items:flex-start}.pam-context-row h3{max-width:58%}.pam-context-row strong{font-size:18px}.pam-party{gap:6px}.pam-party>svg{display:none}.pam-request-value>strong{font-size:18px}#adminAccountsView.pam-accounts .receivable-card>.actions button{font-size:11px!important;padding:8px!important}}


#panelDrawer.pam-finance-drawer{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0;border:0;border-radius:0!important;box-sizing:border-box;overflow:hidden}#panelDrawer.pam-finance-drawer .drawer-head{background:#095c46!important;color:#fff!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;gap:12px!important;align-items:center!important;position:sticky;top:0;padding:12px 16px!important;min-height:62px;box-sizing:border-box}#panelDrawer.pam-finance-drawer .drawer-head>h2,#panelDrawer.pam-finance-drawer .drawer-head>.directory-drawer-title,#panelDrawer.pam-finance-drawer .drawer-head>strong:not(.pam-drawer-title){display:none!important}#panelDrawer.pam-finance-drawer .drawer-head>.pam-drawer-title{display:block!important;grid-column:2;grid-row:1;text-align:center;color:white;font-size:19px;font-weight:700;line-height:1.3}#panelDrawer.pam-finance-drawer #panelBack,#panelDrawer.pam-finance-drawer #panelClose{background:transparent!important;border:0!important;color:#fff!important;font-size:28px!important;line-height:1!important;width:38px!important;min-height:38px!important;padding:0!important;border-radius:7px!important}#panelDrawer.pam-finance-drawer #panelBack{grid-column:1;grid-row:1}#panelDrawer.pam-finance-drawer #panelClose{grid-column:3;grid-row:1}#panelDrawer.pam-finance-drawer #panelBack::before,#panelDrawer.pam-finance-drawer #panelClose::before{display:none!important}#panelDrawer.pam-finance-drawer #drawerBody{height:calc(100dvh - 72px);max-height:calc(100dvh - 62px);overflow-y:auto;padding:15px 12px!important;box-sizing:border-box;background:#f5f8f6}#panelDrawer.pam-finance-drawer #drawerBody>.view{max-width:1120px;margin:0 auto!important;padding:0!important;border:0!important;box-shadow:none!important}#adminAccountsView.pam-accounts .accounts-invoice-heading{display:flex!important;align-items:center;justify-content:space-between;gap:10px}#adminAccountsView.pam-accounts .accounts-invoice-heading h2{font-size:12px;color:#718178;font-weight:600}#adminAccountsView.pam-accounts #accountsInvoiceLaunch{width:auto!important;min-height:34px!important;background:#fff!important;color:#164d38!important;border:1px solid #1c6348!important;font-size:11px!important;padding:8px 10px!important;border-radius:8px!important}#adminAccountsView.pam-accounts #adminAccountsScope{display:none}#adminAccountsView.pam-accounts .admin-account-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important}#adminAccountsView.pam-accounts .admin-account-cards>button{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;min-width:0!important;min-height:88px!important;padding:10px!important}#adminAccountsView.pam-accounts .admin-account-cards>button>small{display:none!important}#adminAccountsView.pam-accounts .admin-account-cards>button:nth-child(-n+2)>b{display:none!important}#adminAccountsView.pam-accounts .admin-account-cards>button>span:not(.pam-tile-icon){display:block!important;font-size:11px!important;line-height:1.3!important;font-weight:650}#adminAccountsView.pam-accounts .admin-account-cards .pam-tile-icon{display:block!important;color:#1a654a!important}#adminAccountsView.pam-accounts .pam-tile-icon svg{height:21px;width:21px}#adminAccountsView.pam-accounts #adminRequestTotal{font-size:15px!important}#adminAccountsView.pam-accounts #pricingAccountsButton{background:none;border:0;color:#557465;padding:3px 0;margin:8px 0 0;min-height:24px;font-size:11px}#pamDirectoryHeading{font-size:17px;color:#233e31;display:flex;gap:12px;align-items:center;margin:15px 0 10px}#pamDirectoryHeading small{font-size:11px;color:#738178;font-weight:400}#adminAccountsView.pam-accounts #receivableRows{display:grid;grid-template-columns:1fr;gap:12px}#adminAccountsView.pam-accounts .receivable-card{margin:0!important}#accountView.pam-requests>.page-head{display:none}.pam-dialog>header{background:#095c46;color:white}.pam-dialog>header h2,.pam-dialog>header button{color:white}.pam-dialog>header button{border:0;background:transparent}@media(min-width:900px){#adminAccountsView.pam-accounts #receivableRows{grid-template-columns:repeat(2,minmax(0,1fr))}#adminAccountsView.pam-accounts .admin-account-cards>button{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;min-height:65px!important;padding:15px!important;gap:12px!important}#adminAccountsView.pam-accounts .admin-account-cards>button>span:not(.pam-tile-icon){font-size:14px!important}#panelDrawer.pam-finance-drawer #drawerBody{padding:25px 30px!important}}@media(max-width:370px){#adminAccountsView.pam-accounts .admin-account-cards>button{padding:8px!important}.pam-request-value>strong{font-size:17px}.pam-party h3{font-size:14px}#panelDrawer.pam-finance-drawer .drawer-head>.pam-drawer-title{font-size:17px}}
#adminAccountsView.pam-accounts .receivable-tools input,#adminAccountsView.pam-accounts .receivable-tools select{min-width:0!important;width:100%!important;box-sizing:border-box!important}@media(max-width:500px){.pam-party>svg{display:block;width:16px;height:16px;padding:6px}}
#adminAccountsView.pam-accounts .admin-account-cards>button{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-height:62px!important;padding:8px!important;position:relative}#adminAccountsView.pam-accounts .admin-account-cards .pam-tile-icon{border-radius:50%;background:#e9f4ee;padding:7px;flex:none}#adminAccountsView.pam-accounts .pam-tile-icon svg{width:17px;height:17px}#adminAccountsView.pam-accounts #adminRequestTotal{position:absolute;left:50px;bottom:7px;font-size:11px!important}#adminAccountsView.pam-accounts .admin-account-cards>button:nth-child(3){padding-bottom:20px!important}#adminAccountsView.pam-accounts .receivable-amounts>span+span{border-left:1px solid #e1e9e4;padding-left:8px}
#adminAccountsView.pam-accounts .receivable-card>.actions{align-items:center!important}#adminAccountsView.pam-accounts .receivable-card>.actions button{height:36px!important;margin:0!important;line-height:1.2!important}#adminAccountsView.pam-accounts .receivable-card>.actions button.ghost{background:#fff!important;border:1px solid #1b644b!important;color:#165740!important}#adminAccountsView.pam-accounts #receivableCurrency{padding:6px 9px!important;font-size:14px!important}#adminAccountsView.pam-accounts #pricingAccountsButton{display:none!important}
/* Mobile proportions follow the approved portrait reference. */
@media(max-width:600px){
#panelDrawer.pam-finance-drawer .drawer-head{min-height:44px;padding:5px 10px!important;grid-template-columns:32px minmax(0,1fr) 32px!important}
#panelDrawer.pam-finance-drawer .drawer-head>.pam-drawer-title{font-size:17px}
#panelDrawer.pam-finance-drawer #drawerBody{height:calc(100dvh - 44px);max-height:calc(100dvh - 44px);padding:10px!important}
#adminAccountsView.pam-accounts .accounts-invoice-heading{margin:0 0 8px!important;min-height:28px}
#adminAccountsView.pam-accounts #accountsInvoiceLaunch{min-height:28px!important;padding:5px 8px!important}
#adminAccountsView.pam-accounts #receivableTotals{padding:10px!important;gap:10px!important;margin:0 0 7px!important;min-height:70px;box-sizing:border-box;border-radius:10px}
#adminAccountsView.pam-accounts #receivableTotals strong{font-size:23px;line-height:1.2;margin:3px 0}
#adminAccountsView.pam-accounts #receivableTotals small{font-size:11px}
.pam-summary-icon{width:38px;height:38px}.pam-summary-icon svg{width:25px;height:25px}
#adminAccountsView.pam-accounts .admin-account-cards{gap:5px!important}
#adminAccountsView.pam-accounts .admin-account-cards>button{min-height:48px!important;padding:6px!important;gap:5px!important;border-radius:8px!important}
#adminAccountsView.pam-accounts .admin-account-cards>button>span:not(.pam-tile-icon){font-size:9px!important;white-space:nowrap}
#adminAccountsView.pam-accounts .admin-account-cards .pam-tile-icon{padding:5px}
#adminAccountsView.pam-accounts .pam-tile-icon svg{width:15px;height:15px}
#adminAccountsView.pam-accounts #adminRequestTotal{left:36px;bottom:4px;font-size:10px!important}
#adminAccountsView.pam-accounts .admin-account-cards>button:nth-child(3){padding-bottom:16px!important}
#adminAccountsView.pam-accounts .receivable-tools{grid-template-columns:minmax(0,1fr) 66px 30px;gap:5px;margin:8px 0!important}
#adminAccountsView.pam-accounts .receivable-tools input,#adminAccountsView.pam-accounts .receivable-tools select{height:32px;font-size:12px!important;padding:5px 7px!important;border-radius:7px}
#adminAccountsView.pam-accounts .receivable-tools input{padding-left:28px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223c30' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") no-repeat 8px center/14px}
#pamCurrencyFilter{display:grid;place-items:center;width:30px;height:32px;min-height:0;margin:0!important;padding:5px;background:white;border:1px solid #dbe6df;border-radius:7px;color:#244d3a}#pamCurrencyFilter svg{width:17px;height:17px}
#pamDirectoryHeading{font-size:15px;margin:10px 0 7px}#pamDirectoryHeading small{font-size:10px}
#adminAccountsView.pam-accounts #receivableRows{gap:8px}
#adminAccountsView.pam-accounts .receivable-card{padding:10px;border-radius:10px}
#adminAccountsView.pam-accounts .receivable-card h3{font-size:15px;gap:8px;margin:0 0 10px}
#adminAccountsView.pam-accounts .receivable-card h3 svg{width:18px;height:18px;padding:5px;border-radius:7px}
#adminAccountsView.pam-accounts .receivable-amounts{gap:5px}
#adminAccountsView.pam-accounts .receivable-amounts span{font-size:10px}
#adminAccountsView.pam-accounts .receivable-amounts b{font-size:13px;margin-top:3px}
#adminAccountsView.pam-accounts .receivable-card>.actions{padding-top:7px;margin-top:8px;gap:6px}
#adminAccountsView.pam-accounts .receivable-card>.actions button{height:30px!important;min-height:30px!important;padding:5px 8px!important;font-size:11px!important}
#adminAccountsView.pam-accounts .receivable-card>.actions svg{width:14px;height:14px}
}
@media(min-width:601px){#pamCurrencyFilter{display:none}}
@media(max-width:600px){#adminAccountsView.pam-accounts .receivable-tools{grid-template-columns:minmax(0,1fr) 76px 30px}#adminAccountsView.pam-accounts #receivableCurrency{padding:4px 5px!important}}
