.finance-votes{margin-top:24px;color:#17324b}
.finance-toolbar,.fv-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}
.finance-toolbar label,.fv-form label{display:grid;gap:6px;font-weight:700;font-size:13px}
.finance-toolbar input,.finance-toolbar select,.fv-form input,.fv-form select{border:1px solid #cbd5e1;border-radius:9px;padding:11px 12px;min-width:150px;background:#fff;color:#17324b}
.fv-search{flex:1;min-width:220px}
.fv-refresh,.fv-actions>button,.fv-form button,.fv-edit{border:0;border-radius:9px;padding:11px 15px;background:#173f63;color:#fff;font-weight:700;cursor:pointer}
.fv-actions{align-items:center}
.fv-upload-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid #d7e1ec;border-radius:12px;background:#f8fafc}
.fv-upload-group>strong{font-size:12px;color:#475569;width:100%}
.fv-import{display:none}
.fv-upload-label{display:inline-flex;cursor:pointer}
.fv-upload-label span{background:#176b58;color:#fff;border-radius:9px;padding:10px 13px;font-weight:700;font-size:12px}
.fv-template{color:#176b58;font-weight:700}
.fv-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.fv-summary div{background:#f1f5f9;border:1px solid #dbe4ee;border-radius:12px;padding:15px;display:grid;gap:6px}
.fv-summary span{font-size:12px;color:#60758a}
.fv-summary strong{font-size:18px;overflow-wrap:anywhere}
.fv-message{min-height:24px;margin:10px 0;color:#176b58}
.fv-message.error{color:#b42318}
.fv-editor{padding:18px;border:1px solid #d8e1eb;border-radius:14px;background:#f8fafc;margin:18px 0}
.fv-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.fv-form-actions{grid-column:1/-1;display:flex;gap:10px}
.fv-table-wrap{overflow:auto;border:1px solid #dce4ed;border-radius:12px}
.fv-table{width:100%;border-collapse:collapse;min-width:820px;background:white}
.fv-table th,.fv-table td{padding:11px 12px;border-bottom:1px solid #e5ebf1;text-align:left;font-size:12px;vertical-align:top}
.fv-table th{background:#edf2f7;color:#29445d;white-space:nowrap;position:sticky;top:0}
.fv-table td:nth-child(1){min-width:220px}
.fv-table td:nth-child(2){white-space:nowrap;font-weight:700}
.fv-table td:nth-child(3){min-width:280px}
.fv-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.fv-table .negative{color:#b42318;font-weight:700}
.fv-category{display:block;color:#176b58;font-size:10px;font-weight:800;margin-bottom:4px}
.fv-progress{display:inline-block;background:#e6f4ee;color:#176b58;border-radius:20px;padding:4px 8px;font-weight:800}
.fv-empty{text-align:center!important;color:#718096;padding:28px!important}
.fv-edit{padding:7px 11px}
.fv-form-actions button:last-child{background:#64748b}
.finance-votes .hidden{display:none!important}
@media(max-width:900px){.fv-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.fv-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-form{grid-template-columns:1fr}.fv-form-actions{grid-column:auto}.finance-toolbar>*{width:100%}.fv-upload-group{width:100%}}

.fv-vote-row.is-clickable{cursor:pointer}
.fv-vote-row.is-clickable:hover,.fv-vote-row.is-clickable:focus{background:#eff6ff;outline:2px solid #9bb8d2;outline-offset:-2px}
.fv-vote-row td:nth-child(1){min-width:100px}
.fv-vote-row td:nth-child(2){min-width:280px;white-space:normal;font-weight:700}
.fv-vote-row td:nth-child(3){min-width:260px;white-space:normal}
.fv-detail{margin:18px 0;padding:18px;border:1px solid #cbd9e6;border-radius:14px;background:#f8fafc;color:#17324b}
.fv-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.fv-detail-head h3{margin:4px 0;font-size:18px}
.fv-detail-head p{margin:4px 0;color:#64748b;font-size:13px}
.fv-detail-actions{display:flex;gap:8px}
.fv-detail-actions button{border:0;border-radius:8px;padding:9px 12px;background:#173f63;color:white;font-weight:700;cursor:pointer}
.fv-detail-actions .fv-delete{background:#a33a36}
.fv-detail-actions .fv-detail-close{background:#64748b;margin-left:4px}
.fv-detail-actions .fv-detail-close:hover{background:#475569}
.fv-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.fv-detail-item{display:grid;gap:6px;padding:12px;border:1px solid #e0e8ef;border-radius:10px;background:white;min-width:0}
.fv-detail-item span{font-size:12px;color:#64748b}
.fv-detail-item strong{font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:900px){.fv-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.fv-detail-grid{grid-template-columns:1fr}.fv-detail{padding:12px}}

.fv-assign{background:#176b58!important}
.fv-assignment{margin:18px 0;padding:18px;border:1px solid #cbd9e6;border-radius:14px;background:#f8fafc;color:#17324b}
.fva-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.fva-head h3{margin:0 0 5px;font-size:18px}
.fva-head p{margin:0;color:#64748b;font-size:13px}
.fva-head button,.fva-save{border:0;border-radius:9px;padding:10px 14px;background:#173f63;color:#fff;font-weight:700;cursor:pointer}
.fva-officer-label{display:grid;gap:6px;max-width:520px;font-size:13px;font-weight:700}
.fva-officer-label select{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:11px 12px;background:#fff;color:#17324b}
.fva-assignment-status{min-height:24px;margin:12px 0;color:#176b58;font-size:13px}
.fva-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fva-group{border:1px solid #dbe4ee;border-radius:11px;background:#fff;overflow:hidden;min-width:0}
.fva-group-title{display:flex;align-items:center;gap:10px;padding:12px;background:#edf3f8;border-bottom:1px solid #dbe4ee;cursor:pointer}
.fva-group-title input,.fva-program-option input{width:17px;height:17px;flex:0 0 auto;accent-color:#176b58}
.fva-group-title span{display:grid;gap:3px;min-width:0}
.fva-group-title strong{font-size:13px}
.fva-group-title small{font-size:11px;color:#64748b}
.fva-program-list{max-height:260px;overflow:auto;padding:7px 12px}
.fva-program-option{display:flex;align-items:flex-start;gap:9px;padding:8px 2px;border-bottom:1px solid #edf1f5;font-size:12px;cursor:pointer}
.fva-program-option:last-child{border-bottom:0}
.fva-program-option span{overflow-wrap:anywhere}
.fva-empty{padding:14px;color:#64748b;font-size:13px}
.fva-save-row{display:flex;justify-content:flex-end;margin-top:14px}
.fva-save:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.fva-groups{grid-template-columns:1fr}.fv-assignment{padding:12px}.fva-head{align-items:center}}


/* Finance Vote Ledger: expandable registry > ministry > Vote hierarchy */
.fv-accordion{display:grid;gap:12px;margin:16px 0}
.fv-registry-group,.fv-ministry-group,.fv-vote-group{border:1px solid #d9e3ed;border-radius:12px;background:#fff;overflow:hidden}
.fv-registry-group>summary,.fv-ministry-group>summary,.fv-vote-group>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer}
.fv-registry-group>summary::-webkit-details-marker,.fv-ministry-group>summary::-webkit-details-marker,.fv-vote-group>summary::-webkit-details-marker{display:none}
.fv-registry-group>summary:before,.fv-ministry-group>summary:before,.fv-vote-group>summary:before{content:"›";display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:7px;background:#eaf1f8;color:#17456b;font-size:22px;line-height:1;transition:transform .15s}
.fv-registry-group[open]>summary:before,.fv-ministry-group[open]>summary:before,.fv-vote-group[open]>summary:before{transform:rotate(90deg)}
.fv-registry-group>summary{padding:16px;background:#edf3f8}
.fv-registry-name{font-weight:850;font-size:15px;color:#173f63}
.fv-registry-meta,.fv-ministry-meta,.fv-vote-meta{margin-left:auto;color:#64748b;font-size:11px;white-space:nowrap}
.fv-ministry-list{display:grid;gap:9px;padding:12px}
.fv-ministry-group>summary{padding:13px;background:#f8fafc}
.fv-ministry-name{font-size:13px;font-weight:800;color:#29445d}
.fv-vote-list{display:grid;gap:8px;padding:10px 12px 12px 26px}
.fv-vote-group>summary{padding:11px;background:#fff}
.fv-vote-number{font-weight:850;font-size:13px;color:#153e62;font-variant-numeric:tabular-nums}
.fv-vote-total{margin-left:auto;color:#176b58;font-size:11px;font-weight:800;white-space:nowrap}
.fv-description-list{display:grid;gap:7px;padding:8px 10px 10px 22px;background:#f8fafc}
.fv-description-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:12px;border:1px solid #e1e8ef;border-radius:9px;background:#fff;text-align:left;color:#17324b;cursor:pointer}
.fv-description-row:hover,.fv-description-row:focus-visible{border-color:#8eabc6;background:#f4f8fc}
.fv-description-copy{display:grid;gap:5px;min-width:180px}
.fv-description-copy strong{font-size:12px;line-height:1.7}
.fv-description-copy small,.fv-description-amounts small{font-size:10px;color:#718096}
.fv-description-amounts{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.fv-description-amounts>span{display:grid;gap:4px;text-align:right}
.fv-description-amounts strong{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:760px){
 .fv-registry-group>summary,.fv-ministry-group>summary{flex-wrap:wrap}
 .fv-description-row{align-items:flex-start;flex-direction:column}
 .fv-description-amounts{justify-content:flex-start;width:100%;gap:10px}
 .fv-description-amounts>span{text-align:left;min-width:105px}
 .fv-vote-total{white-space:normal;text-align:right}
 .fv-vote-list{padding-left:12px}
 .fv-description-list{padding-left:10px}
}

/* Inline expandable finance vote details */
.fv-inline-detail{border:0;border-radius:9px;background:#fff;overflow:hidden}
.fv-inline-detail>summary{list-style:none;cursor:pointer}
.fv-inline-detail>summary::-webkit-details-marker{display:none}
.fv-inline-detail>summary:after{content:"＋";flex:0 0 auto;display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#eaf1f8;color:#17456b;font-size:17px;font-weight:800}
.fv-inline-detail[open]>summary:after{content:"−"}
.fv-inline-detail-body{padding:12px;background:#f8fafc;border:1px solid #e1e8ef;border-top:0;border-radius:0 0 9px 9px}
.fv-inline-detail-body .fv-detail-actions{justify-content:flex-end;margin-top:12px}


/* Progress percentage calculated from cumulative net expenditure / net allocation */
.fv-progress-item{grid-column:span 2}
.fv-progress-line{display:flex;align-items:center;gap:12px}
.fv-progress-track{height:12px;flex:1;min-width:80px;overflow:hidden;border-radius:999px;background:#e5edf4}
.fv-progress-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1b7890,#21966d);transition:width .2s ease}
.fv-progress-line strong{min-width:66px;text-align:right;color:#176b58;font-size:14px;font-variant-numeric:tabular-nums}
.fv-description-amounts>span:last-child strong{color:#176b58}
@media(max-width:520px){.fv-progress-item{grid-column:span 1}}
