/* Scoped styling: no changes to legacy inputs, other dialogs or ERP pages. */
#financeReviewCenter{margin-top:24px;background:#fff;padding:24px;border:1px solid #dce6ee;border-radius:16px}
#financeReviewCenter .fr-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}
.fr-heading h2{font-size:20px;margin:5px 0 10px}.fr-heading p,.fr-note{color:#667d90;font-size:13px;line-height:1.8}.fr-eyebrow{color:#126293;font-size:12px;font-weight:700}
#financeReviewCenter .fr-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#f0f5f8;padding:6px;border-radius:10px;margin:20px 0 16px}
#financeReviewCenter .fr-tabs button{background:transparent;border:0;border-radius:7px;color:#516a80;padding:10px 16px;font-size:14px}
#financeReviewCenter .fr-tabs .active{background:#fff;color:#0b5483;box-shadow:0 2px 5px #1233440d;font-weight:700}
#financeReviewCenter .fr-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
#financeReviewCenter .fr-filters input,#financeReviewCenter .fr-filters select{width:auto;max-width:100%;padding:9px 12px;border:1px solid #d6e2eb;background:#fff;border-radius:8px;font-size:13px;color:#26465e}
#financeReviewCenter .fr-row{display:grid;grid-template-columns:minmax(180px,1fr) 210px 155px auto;gap:14px;align-items:center;padding:18px 4px;border-bottom:1px solid #e8eef3;font-size:13px}
.fr-row strong{display:block;font-size:14px;color:#16374e}.fr-row small{display:block;color:#74889a;font-size:12px;margin-top:6px}
.fr-status{display:inline-block;color:#8c661b;background:#fff7e6;border-radius:7px;padding:7px 10px;font-size:12px}
.fr-status[data-state=completed]{color:#0a7460;background:#eaf8f2}.fr-status[data-state=supplier],.fr-status[data-state=changed]{color:#ad483b;background:#fff0ed}
#financeReviewCenter button.fr-quiet,.fr-dialog button.fr-quiet{background:#fff;color:#285979;border:1px solid #d1dfe9;border-radius:8px;padding:9px 14px;font-size:13px;width:auto}
.fr-dialog button.fr-primary{background:#105b8c;color:#fff;border:1px solid #105b8c;padding:11px 17px;border-radius:8px;font-size:14px;width:auto}
#financeReviewCenter button:hover:not(:disabled),.fr-dialog button:hover:not(:disabled){filter:brightness(.97)}
#financeReviewCenter button:disabled,.fr-dialog button:disabled{opacity:.45;cursor:not-allowed}
.fr-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:16px;font-size:12px;color:#728599}.fr-pagination>div{display:flex;gap:8px}
.fr-error{color:#b34438;font-size:13px;white-space:pre-wrap}.fr-empty{padding:25px;text-align:center;color:#718599}
dialog.fr-dialog{padding:0;border:1px solid #d3e1eb;border-radius:16px;width:min(940px,94vw);max-width:94vw;max-height:90vh;overflow:auto;color:#18384f;box-shadow:0 25px 90px #071b3540}
.fr-dialog::backdrop{background:#071d3566;backdrop-filter:blur(3px)}
.fr-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:19px 24px;border-bottom:1px solid #e3ebf1;position:sticky;top:0;background:#fff;z-index:1}
.fr-dialog-head h2{font-size:19px;margin:0}.fr-dialog .fr-close{border:0;background:#edf3f7;color:#4e6576;width:34px;height:34px;padding:0;border-radius:8px;font-size:24px}
.fr-dialog-body{padding:24px}.fr-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:14px}
.fr-complete{background:#edf9f2;color:#10724f;padding:18px;border:1px solid #c2e7d4;border-radius:10px;font-weight:700;line-height:1.8;margin:16px 0}.fr-complete small{display:block;font-size:12px;font-weight:400}
.fr-warning{background:#fff6e5;padding:16px;border-radius:8px;color:#936123;font-size:13px;line-height:1.8;margin:15px 0}
.fr-table-wrap{overflow:auto;border:1px solid #deE7ef;border-radius:10px}.fr-dialog table{width:100%;min-width:500px;border-collapse:collapse;table-layout:auto}.fr-dialog th,.fr-dialog td{padding:12px 14px;font-size:13px;border-bottom:1px solid #e8eef3;text-align:right}.fr-dialog th{background:#f3f7fa;color:#597085}.fr-dialog th:first-child,.fr-dialog td:first-child{text-align:left}
.fr-deposit-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.fr-deposit-grid>div{padding:18px;background:#f1f6fa;border-radius:10px}.fr-deposit-grid small{display:block;color:#687f90;font-size:12px}.fr-deposit-grid strong{display:block;font-size:22px;margin-top:8px}
.fr-files{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0;font-size:13px;color:#7b8b99}.fr-files a{border:1px solid #d9e5ed;padding:8px 12px;border-radius:7px;color:#1a6898;overflow-wrap:anywhere}
.fr-dialog .fr-action{border:1px solid #dfe9f0;border-radius:12px;background:#f7fafc;padding:20px;margin:24px 0}
.fr-dialog .fr-action label{display:grid;gap:8px;font-size:13px;font-weight:600;color:#36566f;margin:0 0 15px}
.fr-dialog .fr-action input,.fr-dialog .fr-action textarea{box-sizing:border-box;width:100%;padding:11px;border:1px solid #cddde8;border-radius:8px;background:white;font:inherit;color:#17364e}
.fr-dialog .fr-action small{font-size:12px;color:#718899;font-weight:400}.fr-actions{display:flex;gap:10px;flex-wrap:wrap}
.fr-history h3{font-size:16px}.fr-history article{padding:16px 0;border-top:1px solid #e2ebf1;font-size:13px;line-height:1.8}.fr-history article>div{display:flex;justify-content:space-between;gap:12px}.fr-history small{font-size:12px;color:#7a8c9a}
.fr-dialog summary{cursor:pointer;color:#456a84;font-size:13px;padding:8px 0}.fr-original p{font-size:13px;color:#62798d}
.fr-dialog [hidden],#financeReviewCenter [hidden]{display:none!important}
@media(max-width:820px){#financeReviewCenter{padding:16px}#financeReviewCenter .fr-row{grid-template-columns:1fr auto}.fr-row>small{grid-column:1}.fr-heading{align-items:flex-start}.fr-heading h2{font-size:18px}.fr-dialog-body{padding:16px}.fr-meta,.fr-history article>div{align-items:flex-start;flex-direction:column}.fr-deposit-grid{gap:8px}.fr-deposit-grid>div{padding:12px}.fr-deposit-grid strong{font-size:18px}}
.fr-dialog .fr-action input:focus,.fr-dialog .fr-action textarea:focus{outline:0;border-color:#4797c5;box-shadow:0 0 0 3px #1678ac16}
.fr-dialog input::file-selector-button{background:#eff6fa;color:#1c5e83;border:1px solid #d3e4ef;border-radius:6px;padding:6px 10px;margin-right:10px;cursor:pointer}
#financeForm.finance-already-submitted .balance-confirmation{display:none}
#financeForm.finance-already-submitted .balance-card{display:block}
