@import url('/reference/src/modules/beneficiaries.css');
.beneficiaries-module{min-width:0;max-width:100%;--beneficiary-soft:color-mix(in srgb,var(--brand) 5%,var(--surface,#fff))}
.beneficiaries-module .card{min-width:0}.beneficiaries-module .page-head{gap:20px}.beneficiaries-module .page-head>div:first-child{min-width:0}.beneficiaries-module .page-head h1{overflow-wrap:anywhere}
.beneficiary-search-main{display:grid;grid-template-columns:minmax(200px,2fr) minmax(150px,1fr) minmax(170px,1fr) auto;gap:16px;align-items:end}
.beneficiary-search-main .field,.beneficiary-filter-grid .field,.beneficiary-inline-form .field{min-width:0;margin:0}.beneficiary-search-buttons{display:flex;gap:8px;align-items:center}.beneficiary-search-buttons .btn{min-height:44px}
.beneficiary-advanced{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.beneficiary-advanced>summary{display:flex;align-items:center;gap:9px;cursor:pointer;color:var(--muted);font-size:12px;font-weight:650;list-style:none;min-height:28px}.beneficiary-advanced>summary::-webkit-details-marker{display:none}.beneficiary-advanced>summary svg:last-child{margin-left:auto;transition:transform .15s ease}.beneficiary-advanced[open]>summary svg:last-child{transform:rotate(90deg)}.beneficiary-advanced>summary:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:5px}.beneficiary-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 16px;padding-top:22px}
.beneficiary-stats{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0}.beneficiary-stats>div{flex:1 1 180px;min-width:0;display:grid;align-content:start;gap:8px;padding:18px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}.beneficiary-stats span{font-size:12px;color:var(--muted)}.beneficiary-stats strong{font-size:27px;line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.beneficiary-stats small{font-size:11px;color:var(--muted);line-height:1.5}.card>.beneficiary-stats{margin-top:0}.card>.beneficiary-stats>div{background:var(--beneficiary-soft);box-shadow:none}
.beneficiary-table{min-width:0;max-width:100%}.beneficiary-table .table-scroll{margin-inline:0;width:100%;border:1px solid var(--line);border-radius:12px}.beneficiary-table table{width:100%}.beneficiary-table th{font-size:10px;color:var(--muted);background:var(--beneficiary-soft);white-space:nowrap;padding:14px}.beneficiary-table td{vertical-align:top;font-size:12px;line-height:1.5;padding:16px 14px}.beneficiary-table td strong{font-weight:650;line-height:1.5;display:block;max-width:300px}.beneficiary-table td small{display:block;margin-top:5px;font-size:10px;color:var(--muted);line-height:1.5}.beneficiary-table td:last-child{white-space:nowrap}.beneficiary-table .btn{min-height:34px;padding:8px 10px;font-size:11px}.beneficiary-table .badge{font-size:inherit;white-space:normal;line-height:1.35}.beneficiary-table tr:last-child td{border-bottom:0}.beneficiary-results td:first-child,.beneficiary-results td:nth-child(2){min-width:160px}.beneficiary-results td:nth-child(4){white-space:nowrap}.beneficiary-results td:nth-child(3){min-width:130px}
.beneficiary-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}.beneficiary-pagination>span{font-size:12px;color:var(--muted)}.beneficiary-pagination nav{display:flex;gap:8px}.beneficiary-pagination .btn{min-height:36px;font-size:11px}
.beneficiary-identity{display:flex;align-items:center;gap:15px;padding:20px 23px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);margin-bottom:22px}.beneficiary-avatar{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:15px;background:var(--brand-soft);color:var(--brand)}.beneficiary-identity>div:nth-child(2){display:grid;min-width:0;gap:6px}.beneficiary-identity strong{font-size:15px;overflow-wrap:anywhere}.beneficiary-identity span{font-size:11px;color:var(--muted)}.beneficiary-identity-status{margin-left:auto;display:grid;justify-items:end;gap:8px;flex:none}.beneficiary-identity-status .badge{font-size:11px}
.beneficiary-tabs{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;padding:4px 2px 13px;margin-bottom:20px;scrollbar-width:thin;border-bottom:1px solid var(--line)}.beneficiary-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:10px 14px;border-radius:10px;white-space:nowrap;text-decoration:none;font-size:12px;font-weight:600;color:var(--muted)}.beneficiary-tabs a.active{color:var(--brand);background:var(--brand-soft)}.beneficiary-tabs a:focus-visible{outline:2px solid var(--brand);outline-offset:0}
.beneficiary-section-actions{justify-content:flex-end;margin-bottom:20px}.beneficiary-address{margin:0;line-height:1.8;color:var(--ink);font-size:13px;overflow-wrap:anywhere}.beneficiaries-module .summary dd{overflow-wrap:anywhere}.beneficiary-record-notes{font-size:12px;max-width:440px;white-space:pre-wrap;line-height:1.65;margin:7px 0 0;color:var(--muted)}.beneficiary-note{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 20px}.beneficiary-inline-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.beneficiary-inline-form>.field{flex:1 1 160px}.beneficiary-inline-form>.btn{min-height:44px}
.beneficiary-timeline{list-style:none;margin:0;padding:0;display:grid;gap:0}.beneficiary-timeline li{display:flex;gap:16px;position:relative;padding:0 0 26px}.beneficiary-timeline li:not(:last-child):before{content:'';position:absolute;top:34px;bottom:0;left:17px;width:1px;background:var(--line)}.beneficiary-timeline-mark{width:35px;height:35px;display:grid;place-items:center;flex:none;border-radius:50%;color:var(--brand);background:var(--brand-soft)}.beneficiary-timeline article{flex:1;min-width:0;padding:6px 0}.beneficiary-timeline .between{gap:10px;flex-wrap:wrap}.beneficiary-timeline strong{font-size:13px}.beneficiary-timeline time,.beneficiary-timeline small{font-size:11px;color:var(--muted)}.beneficiary-timeline article>p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 8px}.beneficiary-timeline article>p.small{font-size:12px}.beneficiary-timeline li:last-child{padding-bottom:0}
.beneficiary-coverage-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px}.beneficiary-coverage-heading>div{display:flex;align-items:center;gap:12px}.beneficiary-coverage-heading svg{color:var(--brand);flex:none}.beneficiary-coverage-heading strong{font-size:14px}.beneficiary-evidence{display:inline-flex;align-items:center;gap:6px;font-size:11px;margin:10px 12px 0 0;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.beneficiary-modal-form h3{font-size:14px;margin:0;color:var(--ink)}.beneficiary-modal-form .form-grid{gap:17px}.beneficiary-modal-form .field{min-width:0}.beneficiary-modal-form .form-grid input{min-width:0;max-width:100%}.beneficiary-modal-form .beneficiary-advanced .form-grid{padding-top:10px}.beneficiary-modal-form .beneficiary-note{margin-top:0}.beneficiary-modal-form .modal-footer{margin-top:24px}.beneficiary-related-options{border:0;padding:0;margin:14px 0;display:grid;gap:9px;max-height:320px;overflow-y:auto}.beneficiary-related-options legend{font-size:12px;color:var(--muted);margin-bottom:10px}.beneficiary-related-options label{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:11px;padding:14px;cursor:pointer}.beneficiary-related-options label:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}.beneficiary-related-options label>span:not(.badge){display:grid;gap:5px;flex:1;min-width:0}.beneficiary-related-options strong{font-size:12px;overflow-wrap:anywhere}.beneficiary-related-options small{font-size:10px;color:var(--muted)}.beneficiary-related-options input{accent-color:var(--brand);width:17px;height:17px;flex:none}.beneficiary-related-options .badge{font-size:10px}
@media(hover:hover) and (pointer:fine){.beneficiary-tabs a:hover{background:var(--beneficiary-soft);color:var(--brand)}.beneficiary-table tbody tr:hover{background:var(--beneficiary-soft)}}
@media(max-width:1180px){.beneficiary-search-main{grid-template-columns:repeat(2,minmax(0,1fr))}.beneficiary-search-buttons{justify-content:flex-end}.beneficiary-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.beneficiary-results table{min-width:900px}}
@media(max-width:740px){.beneficiary-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.beneficiary-search-main{grid-template-columns:1fr}.beneficiary-search-buttons{justify-content:stretch}.beneficiary-search-buttons .btn{flex:1;justify-content:center}.beneficiary-stats{gap:10px}.beneficiary-stats>div{padding:15px;flex:1 1 130px}.beneficiary-stats strong{font-size:24px}.beneficiary-identity{display:grid;grid-template-columns:42px minmax(0,1fr);padding:16px;gap:12px;align-items:center}.beneficiary-avatar{width:42px;height:42px;border-radius:12px}.beneficiary-identity>div:nth-child(2){min-width:0}.beneficiary-identity-status{grid-column:1/-1;margin-left:0;justify-items:start;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.beneficiary-identity strong{font-size:13px;word-break:normal;overflow-wrap:break-word}.beneficiary-tabs{margin-inline:-4px;padding-inline:4px}.beneficiary-tabs a{padding:9px 12px;font-size:11px}.beneficiary-section-actions{justify-content:flex-start;flex-wrap:wrap}.beneficiary-section-actions .btn{white-space:normal}.beneficiary-inline-form>.btn{width:100%;justify-content:center}.beneficiary-table .table-scroll{border:0;overflow:visible;background:none}.beneficiary-table table,.beneficiary-table tbody{display:block;min-width:0!important;width:100%}.beneficiary-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.beneficiary-table tbody{display:grid;gap:14px}.beneficiary-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:13px;padding:8px 14px;background:var(--surface,#fff);min-width:0}.beneficiary-table td{display:flex;flex-direction:column;align-items:flex-start;min-width:0!important;white-space:normal!important;border:0;padding:10px 7px;overflow-wrap:anywhere;max-width:100%}.beneficiary-table td:before{content:attr(data-label);font-size:10px;font-weight:500;color:var(--muted);margin-bottom:7px;line-height:1.4}.beneficiary-table td:first-child,.beneficiary-table td:last-child{grid-column:1/-1}.beneficiary-table td:last-child .actions{flex-wrap:wrap}.beneficiary-table td:last-child:before{display:none}.beneficiary-table td strong{max-width:100%;font-size:12px}.beneficiary-table td small{font-size:10px;margin-top:4px}.beneficiary-table td .badge{font-size:inherit}.beneficiary-table .btn{min-height:38px;padding:9px 12px}.beneficiary-results td:nth-child(2){grid-column:1/-1}.beneficiary-pagination{align-items:flex-start;flex-direction:column;gap:14px}.beneficiary-pagination nav{width:100%;justify-content:space-between}.beneficiary-coverage-heading{align-items:flex-start;flex-direction:column}.beneficiary-related-options label{flex-wrap:wrap}.beneficiary-related-options .badge{margin-left:29px}.beneficiary-modal-form .modal-footer{flex-wrap:wrap}}
@media(max-width:420px){.beneficiary-filter-grid{grid-template-columns:1fr}.beneficiary-table tr{padding-inline:9px}.beneficiary-timeline li{gap:11px}.beneficiary-timeline time{width:100%}.beneficiary-stats>div{flex-basis:100%}.beneficiary-modal-form .modal-footer>.btn{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){.beneficiary-advanced>summary svg:last-child{transition:none}}
.beneficiary-administrative{margin-top:0;padding-top:0;border-top:0}

/* Live composition mirrors the approved reference, using production theme surfaces. */
.beneficiaries-module.bf-module{--bf-surface:var(--surface,#fff);--bf-soft:var(--beneficiary-soft);max-width:1440px}.beneficiaries-module .bf-contract-group,.beneficiaries-module .bf-people-table th,.beneficiaries-module .bf-document-card{background:var(--bf-surface)}.beneficiaries-module .bf-contract-icon{background:var(--bf-surface);border-color:var(--line)}.beneficiaries-module .bf-search-card{margin-bottom:24px}.beneficiaries-module .bf-list-card{padding:0;overflow:visible}.beneficiaries-module .bf-contract-group{overflow:visible}.beneficiaries-module .bf-group-header{border-radius:14px 14px 0 0}.beneficiaries-module .bf-people-table{border:0;margin:0}.beneficiaries-module .bf-people-table .action-menu-icon{width:34px;height:34px}.beneficiaries-module .bf-people-table .action-menu{display:inline-flex}.beneficiaries-module .bf-list-foot{margin:0}.beneficiaries-module .bf-detail-body .summary{gap:18px}.beneficiaries-module .bf-detail-body>.card{margin-top:0}.beneficiaries-module .bf-detail-body .card.margin-top{margin-top:18px}.beneficiaries-module .bf-people-table td:first-child{min-width:0}.beneficiaries-module .bf-main-filters .field{margin:0}.beneficiaries-module .bf-group-header .bf-person-count{display:inline}.beneficiaries-module .beneficiary-table .table-actions{width:1%;text-align:right;white-space:nowrap}.beneficiaries-module .bf-detail-body .beneficiary-stats{margin-top:0}.beneficiaries-module .bf-section-nav{top:100px}.beneficiaries-module .bf-context-tags>.btn{white-space:nowrap}
@media(max-width:760px){.beneficiaries-module .bf-person-count{display:none!important}.beneficiaries-module .bf-group-summary{justify-content:space-between}.beneficiaries-module .bf-people-table td.table-actions{grid-column:2;grid-row:1;text-align:right;width:auto}.beneficiaries-module .bf-people-table td:first-child{grid-column:1;grid-row:1}.beneficiaries-module .bf-people-table td:first-child .avatar{display:none}.beneficiaries-module .bf-people-table tr{grid-template-columns:minmax(0,1fr) auto}.beneficiaries-module .bf-people-table td[data-label]{grid-column:1/-1}.beneficiaries-module .bf-people-table td[data-label="Situação cadastral"]{grid-column:1/-1}.beneficiaries-module .beneficiary-table .table-actions{width:auto;text-align:left}.beneficiaries-module .bf-list-foot{padding:16px}.beneficiaries-module .bf-context-tags{flex-wrap:wrap}.beneficiaries-module .bf-people-table .bf-person-cell span:not(.avatar){overflow-wrap:anywhere}}
html[data-theme="dark"] .beneficiaries-module :is(.bf-search-title,.bf-filter-toggle,.bf-contract-icon,.bf-document-icon,.bf-administrative>summary,.bf-scope-tabs a.active,.bf-section-nav a.active){color:color-mix(in srgb,var(--brand) 45%,#fff)}
html[data-theme="dark"] .beneficiaries-module .bf-scope-tabs a.active{border-color:color-mix(in srgb,var(--brand) 45%,#fff)}
html[data-theme="dark"] .beneficiaries-module .bf-section-nav a.active{border-color:var(--line)}

/* Approved 09 November contract/person composition, with live theme surfaces. */
.beneficiaries-module.bf-review-v2 .bf-contract-overview{position:static;min-width:0}
.beneficiaries-module.bf-review-v2 .bf-overview-identity,.beneficiaries-module.bf-review-v2 .bf-overview-identity>div,.beneficiaries-module.bf-review-v2 .bf-contract-facts>div{min-width:0}
.beneficiaries-module.bf-review-v2 .bf-contract-facts dd,.beneficiaries-module.bf-review-v2 .bf-overview-identity h1,.beneficiaries-module.bf-review-v2 .bf-option-copy strong{overflow-wrap:anywhere}
.beneficiaries-module.bf-review-v2 .bf-people-picker,.beneficiaries-module.bf-review-v2 .bf-person-options{min-width:0;max-width:100%}
.beneficiaries-module.bf-review-v2 .bf-contract-facts{background:var(--bf-soft)}
.beneficiaries-module.bf-review-v2 .bf-person-option{background:var(--bf-surface)}
.beneficiaries-module.bf-review-v2 .bf-person-option.selected{background:var(--bf-soft)}
.beneficiaries-module .beneficiary-administrative h3{font-size:13px;margin:0 0 15px;color:var(--ink)}
.beneficiaries-module .bf-panel-toolbar>.btn{flex:none;font-size:11px}
.beneficiaries-module .bf-selected-person .avatar{width:34px;height:34px;flex:none;border-radius:10px}
.beneficiaries-module .bf-person-copy{min-width:0}
html[data-theme="dark"] .beneficiaries-module.bf-review-v2 :is(.bf-overview-eyebrow,.bf-content-context){color:color-mix(in srgb,var(--brand) 45%,#fff)}
@media(max-width:760px){.beneficiaries-module.bf-review-v2 .bf-contract-overview{position:static}.beneficiaries-module.bf-review-v2 .bf-contract-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.beneficiaries-module.bf-review-v2 .bf-content-heading>.btn{max-width:100%;white-space:normal}.beneficiaries-module .bf-panel-toolbar>.btn{white-space:normal}}
