/* Layout only: shared registration and Opportunities styles provide the identity. */
#commission-panel,#repasse-panel{width:100%}.ct-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.ct-head h1{margin:4px 0 6px}.ct-head p{color:var(--cad-muted);margin:0}
.ct-list-card{border:1px solid var(--cad-card-border);border-radius:14px;background:white;overflow:hidden}
.ct-dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--cad-card-border);border-radius:14px}.ct-dialog::backdrop{background:#0f172a66}.ct-body{padding:20px 22px;overflow:auto;max-height:calc(100dvh - 210px)}.ct-dialog .dialog-heading,.ct-dialog .dialog-actions{padding:18px 22px}.ct-main-grid{display:grid;grid-template-columns:1.5fr .8fr 1.4fr 1.2fr;gap:12px}.ct-main-grid label,.ct-parcels label,.ct-agency-row label{display:flex;flex-direction:column;gap:6px;color:var(--cad-text);font-size:13px}.ct-body input:not([type=checkbox]),.ct-body select{width:100%;box-sizing:border-box;min-height:40px;padding:9px 10px;border:1px solid var(--cad-field-border);border-radius:8px;background:white;color:var(--cad-text);font-size:14px;font-weight:400}.ct-section-title{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--cad-divider);padding-top:18px;margin:20px 0 12px}.ct-section-title small{display:block;color:var(--cad-muted);margin-top:4px}.ct-pickers{display:grid;grid-template-columns:1fr 1fr .75fr;gap:12px;align-items:start}.ct-picker,.ct-parcels{border:1px solid var(--cad-card-border);border-radius:10px;padding:12px;min-width:0}.ct-picker-list{max-height:210px;overflow:auto}.ct-picker-list label{display:flex;gap:8px;align-items:center;padding:7px;font-size:13px}.ct-picker-list label[hidden]{display:none}.ct-picker-list input{width:auto;min-height:0;margin:0}.ct-picker-count{font-size:12px;color:var(--cad-muted);margin:8px 0}.ct-agency-row{display:grid;grid-template-columns:1fr 1fr 40px;gap:10px;align-items:end;margin-bottom:10px}.ct-agency-row button{height:40px;padding:0}.ct-dialog .dialog-actions{background:white}.ct-list-card .empty{padding:36px;text-align:center}
@media(max-width:1100px){.ct-main-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.ct-head{align-items:stretch;flex-direction:column}.ct-main-grid,.ct-pickers{grid-template-columns:1fr}.ct-body{padding:16px}.ct-section-title{flex-wrap:wrap}}
.ct-picker-list label{flex-direction:row;text-align:left;justify-content:flex-start;font-weight:400}.ct-picker-list label input{flex:0 0 auto}.ct-picker-list label span{min-width:0}.ct-picker-list label[hidden]{display:none}

#commission-panel .action-icon,#repasse-panel .action-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#ct-new{display:inline-flex;gap:8px;align-items:center;justify-content:center}

#commission-panel>.eyebrow,#repasse-panel>.eyebrow{color:var(--cad-primary);font-size:13px;letter-spacing:.06em}

/* A tabela de repasse usa os mesmos controles e dimensões da tabela de comissão. */
#repasse-panel .page-heading{margin-bottom:24px}
#repasse-panel .page-heading h1{margin:4px 0 6px}
#repasse-panel .page-heading p{color:var(--cad-muted);margin:0}
#repasse-panel .page-heading .primary{display:inline-flex;align-items:center;justify-content:center;gap:8px}
#repasse-panel .list-card{border:1px solid var(--cad-card-border);border-radius:14px;background:#fff;overflow:hidden}
#repasse-panel .list-toolbar{padding:16px 20px;border-bottom:1px solid var(--cad-divider)}
#repasse-panel .list-card .search{display:flex;flex-direction:row;align-items:center;gap:9px;flex:1;min-width:160px;max-width:320px;padding:0 12px;border:1px solid #cfd8e5;border-radius:9px;background:#fff;color:var(--cad-muted)}
#repasse-panel .list-card .search input{width:auto;flex:1;border:0;outline:0;box-shadow:none;background:transparent;padding:10px 0;min-height:38px;font-size:13px;border-radius:0;color:var(--cad-text)}
#repasse-panel .list-card .search:focus-within{border-color:#5575d8;box-shadow:0 0 0 2px #5575d81f}
#repasse-panel .list-card .search{font-size:0}
#repasse-panel .list-card .search::before{content:"";width:11px;height:11px;border:1.7px solid #71829a;border-radius:50%;display:block;flex:0 0 auto;position:relative}
#repasse-panel .list-card .search::after{content:"";width:6px;height:1.7px;background:#71829a;transform:rotate(45deg);display:block;flex:0 0 auto;margin-left:-10px;margin-top:10px}
#repasse-panel .register-opportunity-row{min-height:76px}
#repasse-panel .register-row-actions button{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;width:auto;height:auto;border:1px solid #d2dbe7;border-radius:8px;background:#fff;color:#52627a;font-size:13px;cursor:pointer}
#repasse-panel .register-row-actions button:hover{background:#f2f5f9}
#repasse-panel .list-pagination{padding:14px 20px}
#repasse-panel .ct-picker-list label{font-weight:400}

/* Lançamentos manuais de produtores compartilham a lista financeira. */
#producer-launches-panel{width:100%}
.producer-launch-form{display:grid;grid-template-columns:1.4fr 1fr .8fr .8fr;gap:12px}.producer-launch-form label{display:flex;flex-direction:column;gap:6px;color:var(--cad-text);font-size:13px}.producer-launch-form input,.producer-launch-form select{min-height:40px;box-sizing:border-box;padding:9px 10px;border:1px solid var(--cad-field-border);border-radius:8px;background:#fff;color:var(--cad-text);font-size:14px}.producer-launch-form .full{grid-column:1/-1}.producer-credit{color:#16754b}.producer-debit{color:#c53d47}.producer-launch-dialog .select2-container{width:100%!important}.producer-launch-dialog .select2-selection--single{min-height:40px;border-color:var(--cad-field-border);border-radius:8px}.producer-launch-dialog .select2-selection__rendered{line-height:38px}.producer-launch-dialog .select2-selection__arrow{height:38px}
.producer-launch-closed{background:#fafbfc}.producer-launch-closed .register-row-actions button:disabled{cursor:not-allowed;opacity:.42;background:#f1f4f7;color:#7c8ba1;border-color:#dce3eb}
.bank-account-form{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:12px}.bank-account-form label{display:flex;flex-direction:column;gap:6px;color:var(--cad-text);font-size:13px}.bank-account-form input{min-height:40px;box-sizing:border-box;padding:9px 10px;border:1px solid var(--cad-field-border);border-radius:8px;background:#fff;color:var(--cad-text);font-size:14px}.bank-account-form .full{grid-column:auto}@media(max-width:600px){.bank-account-form{grid-template-columns:1fr}.bank-account-form .full{grid-column:auto}}
.bank-account-dialog{width:min(640px,calc(100vw - 32px))}.financial-category-dialog{width:min(720px,calc(100vw - 32px))}.financial-category-form{display:grid;grid-template-columns:180px minmax(0,1fr) 160px;gap:12px}.financial-category-form label{display:flex;flex-direction:column;gap:6px;color:var(--cad-text);font-size:13px}.financial-category-form .field-help{margin:2px 0 0;color:var(--cad-muted);font-size:12px;line-height:1.35}@media(max-width:700px){.financial-category-form{grid-template-columns:1fr}.bank-account-dialog,.financial-category-dialog{width:calc(100vw - 24px)}}
.client-supplier-dialog{width:min(680px,calc(100vw - 32px))}.client-supplier-form{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px}.client-supplier-form label{display:flex;flex-direction:column;gap:6px;color:var(--cad-text);font-size:13px}@media(max-width:700px){.client-supplier-dialog{width:calc(100vw - 24px)}.client-supplier-form{grid-template-columns:1fr}}
/* Financial entries use the shared registration identity and responsive grids. */
.payment-dialog{width:min(940px,calc(100vw - 32px))}.payment-confirm-dialog{width:min(620px,calc(100vw - 32px))}.payment-documents-dialog{width:min(1040px,calc(100vw - 32px))}
.payment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.payment-wide{grid-column:1/-1}.payment-person{min-width:0}
:is(.payment-dialog,.payment-confirm-dialog,.payment-documents-dialog) label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;color:var(--cad-text)}
.payment-section{border-top:1px solid var(--cad-divider);margin-top:16px;padding-top:14px}.payment-section summary{cursor:pointer;font-weight:600;margin-bottom:12px;color:var(--cad-heading)}
.list-card .payment-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;width:100%;gap:10px}.payment-filters .search{width:auto;min-width:0;max-width:none}.payment-filters>label:not(.search){display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}.payment-filters input[type=date],.payment-filters>select,.payment-filters>button{width:100%;min-height:38px}.payment-filters input[type=date]{padding:8px;border:1px solid var(--cad-field-border);border-radius:8px;font:inherit}
.payment-status{display:inline-block;padding:4px 8px;border-radius:6px;background:var(--cad-blue-soft);color:var(--cad-blue);font-weight:600;font-size:12px}.payment-status.is-paid{background:var(--cad-teal-soft);color:var(--cad-teal)}.payment-status.is-overdue{background:var(--cad-danger-soft);color:var(--cad-danger)}
.payment-type-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 16px}.payment-type-cards button{display:flex;min-height:84px;align-items:center;gap:11px;padding:14px;border:1px solid var(--cad-field-border);border-radius:12px;background:#fff;color:var(--cad-heading);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.payment-type-cards button>span:last-child{display:flex;min-width:0;flex-direction:column;gap:4px}.payment-type-cards button b{font-size:14px;line-height:1.15}.payment-type-cards button small{color:var(--cad-muted);font-size:12px;line-height:1.25}.payment-type-icon{display:inline-flex;width:38px;height:38px;flex:0 0 38px;align-items:center;justify-content:center;border-radius:10px}.payment-type-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.payment-type-cards button:hover{box-shadow:0 4px 13px #123b5d14;transform:translateY(-1px)}.payment-type-cards button[aria-pressed=true]{box-shadow:inset 3px 0 0 currentColor}.payment-type-cards button[data-tone=todos]{background:#f3f6fb;color:#45627f;border-color:#d6e0ec}.payment-type-cards button[data-tone=todos] .payment-type-icon{background:#e2eaf4}.payment-type-cards button[data-tone="1"]{background:#ecf8f4;color:#147568;border-color:#c9ebdf}.payment-type-cards button[data-tone="1"] .payment-type-icon{background:#d5f1e6}.payment-type-cards button[data-tone="2"]{background:#fff4e7;color:#a85d08;border-color:#f5ddbc}.payment-type-cards button[data-tone="2"] .payment-type-icon{background:#ffe6c5}.payment-type-cards button[data-tone="3"]{background:#fff0f1;color:#b13d4b;border-color:#f2cdd2}.payment-type-cards button[data-tone="3"] .payment-type-icon{background:#ffdcdf}.payment-type-cards button[data-tone="4"]{background:#f2efff;color:#6651ad;border-color:#ddd5fb}.payment-type-cards button[data-tone="4"] .payment-type-icon{background:#e3ddff}.payment-type-cards button[data-tone="5"]{background:#eef5ff;color:#2563a8;border-color:#d2e2f7}.payment-type-cards button[data-tone="5"] .payment-type-icon{background:#dceaff}.payment-type-cards button[aria-pressed=true]{border-color:currentColor}.payment-type-cards button[aria-pressed=true] small{color:currentColor}
#payments-panel .action-icon,:is(.payment-dialog,.payment-confirm-dialog,.payment-documents-dialog) .action-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#payments-panel .register-row-actions{flex-wrap:wrap;max-width:260px}#payments-panel .register-row-actions button:disabled{opacity:.4;cursor:not-allowed}.payment-confirm-dialog .dialog-actions .primary{min-width:100px}
@media(max-width:900px){.list-card .payment-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.payment-fields{grid-template-columns:1fr}.payment-person,.payment-wide{grid-column:auto}.payment-dialog .dialog-actions{flex-wrap:wrap}#payments-panel .register-row-actions{max-width:125px}.payment-type-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.payment-type-cards button{min-height:72px;padding:12px}}@media(max-width:500px){.list-card .payment-filters{grid-template-columns:1fr 1fr}.payment-filters .search{grid-column:1/-1}}
@media(max-width:760px){.producer-launch-form{grid-template-columns:1fr 1fr}.producer-launch-form .full{grid-column:1/-1}}@media(max-width:500px){.producer-launch-form{grid-template-columns:1fr}}
