#financialPanelDesk,#financialPanelSuppliers,#financialPanelChart,#financialPanelStatement,#financialPanelBook{padding:18px 0 0}
#controle-financeiro .financial-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:4px;background:transparent;padding:0}
#controle-financeiro .financial-tabs button{padding:9px 11px;border-radius:6px;font-size:12px}
#controle-financeiro .financial-tabs button.active{box-shadow:none;background:#eeebff;color:#4735ce}
#controle-financeiro>.card>.card-head{align-items:flex-start}
.fd-fieldset{border:0;border-top:1px solid #e1e6ef;padding:18px 0 0;margin:22px 0 0;min-width:0}
#financeDeskExpenseModal>.modal{overflow:hidden}
.fd-inline-create{margin-top:6px;align-self:flex-start}
.fd-fieldset legend,.fd-editor-heading{font-size:14px;font-weight:700;color:#142f3f;margin:0 0 14px}
#financeDeskExpenseModal .field label{display:block;margin-bottom:6px}
#financeDeskExpenseModal [hidden]{display:none!important}
#financeDeskExpenseModal input:not([type=checkbox]),#financeDeskExpenseModal select,#financeDeskExpenseModal textarea{width:100%;min-width:0}
#financeDeskExpenseModal .fd-check{display:flex;align-items:center;gap:8px;margin:8px 0}
.fd-schedule{padding:12px 0;border-top:1px solid #e1e6ef;margin-top:16px;font-size:12px;color:#526580}
.fd-schedule>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.fd-file-list label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;overflow-wrap:anywhere}
.fd-file-list select{max-width:180px}
.fd-payment-summary{display:grid;grid-template-columns:150px 1fr;gap:9px;font-size:13px}
.fd-payment-summary dt{color:#61718b}.fd-payment-summary dd{margin:0}
.fd-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.fd-batch-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 18px 14px;font-size:12px;color:#526580}.fd-batch-toolbar label{display:flex;align-items:center;gap:6px}.fd-approval-check{margin-right:9px}
#fdExpenseSaveMessage:not(:empty){padding:12px;background:#fff7e7;color:#805100;border-radius:6px}
@media(max-width:760px){.fd-schedule>div{grid-template-columns:1fr 1fr}.finance-desk-toolbar{grid-template-columns:1fr 1fr}.finance-desk-search{grid-column:1/-1}}
.finance-desk-toolbar{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) minmax(200px,1.7fr);gap:10px;align-items:end;padding:0 18px 18px}
.finance-desk-toolbar .field{min-width:0}
.finance-desk-toolbar .field label{display:block;margin-bottom:5px}
.finance-desk-toolbar input,.finance-desk-toolbar select{width:100%;min-width:0}
.finance-desk-extra-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 18px 14px}
.finance-desk-extra-filters .field{min-width:180px}
.finance-desk-extra-filters .field label{display:block;margin-bottom:5px}
.finance-desk-extra-filters input,.finance-desk-extra-filters select{min-width:180px;width:100%}
.finance-desk-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 18px 14px;padding:11px 14px;border:1px solid #dbe7e5;border-radius:8px;background:#f5faf9;color:#30505a;font-size:13px}
.finance-desk-summary b{color:#142f3f}
.finance-desk-summary span:last-child{margin-left:auto;color:#60727d}
.financial-section-head{margin:0 18px 12px;padding:0;border:0}
.financial-section-head h3{margin:0 0 3px}
.financial-section-head p{margin:0;color:#657786;font-size:12px}
.finance-desk-catalog{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px;padding:0 18px 18px}
.finance-desk-catalog>div{min-width:0;border:1px solid #e3e9ee;border-radius:9px;overflow:hidden}
.finance-desk-catalog h4{margin:0;padding:12px 14px;border-bottom:1px solid #e3e9ee}
.finance-desk-modal{width:min(760px,calc(100vw - 28px))}
.finance-desk-modal .modal-body{max-height:min(70vh,680px);overflow:auto}
#fdAnticipationSettlementModal table{min-width:0;width:100%;table-layout:fixed;font-size:11px}
#fdAnticipationSettlementModal th,#fdAnticipationSettlementModal td{padding:8px 6px;overflow-wrap:anywhere;vertical-align:top}
#fdAnticipationSettlementModal th:nth-child(1){width:17%}
#fdAnticipationSettlementModal th:nth-child(2){width:15%}
#fdAnticipationSettlementModal th:nth-child(3){width:24%}
#fdAnticipationSettlementModal th:nth-child(4){width:28%}
#fdAnticipationSettlementModal th:nth-child(5){width:16%}
#fdAnticipationSettlementModal td .btn{margin-top:4px;white-space:normal;text-align:left}
@media(max-width:650px){#fdAnticipationSettlementModal table{min-width:650px}}
.finance-desk-allocation-toggle{margin:16px 0 10px;padding:10px 12px;background:#f6f8fb;border:1px solid #e3e9ee;border-radius:7px}
.finance-desk-allocation-toggle label{display:flex;align-items:center;gap:8px;font-size:13px}
.finance-desk-allocation-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 110px auto;gap:8px;margin-bottom:8px}
.finance-desk-allocation-row select,.finance-desk-allocation-row input{min-width:0;width:100%}
#financeDeskAllocationTotal{margin-left:12px}
.finance-desk-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.finance-desk-detail-summary>div{display:grid;gap:5px;padding:12px;border:1px solid #e3e9ee;border-radius:8px}
.finance-desk-detail-summary small{color:#657786}
.finance-desk-history{display:grid;gap:6px}
.finance-desk-history>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e3e9ee;font-size:12px}
.finance-desk-history span{color:#657786}
.finance-desk-documents{margin-top:22px;padding-top:12px;border-top:1px solid #e3e9ee}
.finance-desk-documents h4{margin:0 0 8px}
#financeDeskDocumentUpload{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
#financeDeskDocumentUpload input{max-width:290px}
#financeDeskDocumentUpload small{color:#657786}
@media(max-width:1020px){.finance-desk-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-desk-search{grid-column:span 2}.finance-desk-catalog{grid-template-columns:1fr}}
@media(max-width:600px){.finance-desk-toolbar{grid-template-columns:1fr}.finance-desk-search{grid-column:auto}.finance-desk-summary span:last-child{margin-left:0}.finance-desk-allocation-row{grid-template-columns:1fr 1fr}.finance-desk-allocation-row input{grid-column:1}}
#controle-financeiro>.financial-policy-hero,#controle-financeiro>.financial-kpis{display:none}
/* FinancialUI components use only host-neutral classes; the adapter sets layout. */
.fd-workspace-modal [hidden]{display:none!important}
.fd-workspace-modal .modal{width:min(920px,96vw)}.fd-workspace-modal .modal-body{max-height:min(74vh,820px);padding:24px;overflow:auto}.fd-workspace-modal .modal-foot{flex-wrap:wrap;gap:8px}
.fd-editor-intro{border-bottom:1px solid #e2e6ef;padding-bottom:16px;margin-bottom:20px}.fd-editor-intro p{margin:6px 0 0;color:#62708a}.fd-eyebrow{font-size:10px;font-weight:700;letter-spacing:.08em;color:#766898}.fd-expense-section-title{margin:0 0 16px}.fd-workspace-modal .fd-fieldset{margin-top:24px}.fd-workspace-modal .finance-desk-detail-summary{margin-bottom:20px}
.fd-trace-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e5e8ef;padding:12px 0}.fd-trace-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 8px}.fd-workspace-modal .finance-desk-history>div{overflow-wrap:anywhere}
.fd-workspace-modal #financeDeskDocumentList>div{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.fd-workspace-modal #financeDeskDocumentList a{font-weight:600}.fd-workspace-modal #financeDeskDocumentList span{line-height:1.6}
@media(max-width:620px){.fd-workspace-modal .modal{width:100%;max-height:94dvh}.fd-workspace-modal .modal-body{padding:16px;max-height:72dvh}.fd-workspace-modal .finance-desk-detail-summary{grid-template-columns:1fr 1fr}.fd-workspace-modal .form-grid.two,.fd-workspace-modal .grid.equal{grid-template-columns:minmax(0,1fr)}.fd-workspace-modal .span-2{grid-column:auto}.fd-workspace-modal .modal-foot .btn{flex:1 1 auto}}

.fd-paid-period{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.fd-paid-period>.btn{width:auto;min-width:40px}.fd-paid-period>.field{flex:0 1 200px}
