/* Display-only: scoped to the late-policy modal. */
#late-deduction-modal .late-deduction-modal-card{width:min(1180px,97vw);max-height:94vh;padding:24px}
#flexible-late-form{font-size:13px;color:#252a32}
#flexible-late-form h3{font-size:15px;margin:0}
#flexible-late-form .notice{font-size:13px;line-height:1.6;padding:12px 14px;border:1px solid #e6e8ed;border-radius:9px;background:#f8f9fb;margin:14px 0 20px}
#flexible-late-form label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#424954;min-width:0}
#flexible-late-form input:not([type=checkbox]),#flexible-late-form select{width:100%;min-height:39px;border:1px solid #d6dbe3;border-radius:7px;padding:9px 10px;font:inherit;background:#fff;color:#202630}
#flexible-late-form input:focus,#flexible-late-form select:focus{outline:2px solid #f2cece;outline-offset:1px;border-color:#a92424}
#flexible-late-form .form-grid{gap:16px}
#flexible-late-form small,#flexible-late-form .muted,#flexible-late-form .flex-section-help{font-size:12px;font-weight:400;line-height:1.6;color:#69717d}
#flexible-late-form .flex-section-help{margin:0 0 12px}
#flexible-late-form .late-bracket-toolbar{margin:24px 0 8px;align-items:center}
#flexible-late-form .flex-policy-checkbox{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:500;line-height:1.5}
#flexible-late-form .flex-policy-checkbox input[type=checkbox]{width:17px;height:17px;min-height:17px;margin:0;padding:0;flex:0 0 17px;accent-color:#b71c1c}
#flexible-late-form .flex-policy-schedules{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:16px 0 10px}
#flexible-late-form .flex-policy-schedules>strong{font-size:12px}
#flexible-late-form .flex-policy-advanced{border:1px solid #e1e5eb;border-radius:9px;background:#fafbfc;margin:18px 0;padding:0 16px}
#flexible-late-form .flex-policy-advanced>summary{padding:15px 0;font-weight:650;cursor:pointer;font-size:13px}
#flexible-late-form .flex-policy-advanced[open]>summary{margin-bottom:4px}
#flexible-late-form .flex-policy-group{border:1px solid #dee3ea;border-radius:10px;margin:9px 0;background:#fff;overflow:hidden}
#flexible-late-form .flex-policy-group>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;padding:15px 17px;cursor:pointer;background:#fafbfc}
#flexible-late-form .flex-policy-group>summary::-webkit-details-marker{display:none}
#flexible-late-form .flex-policy-group>summary strong{display:block;font-size:13px;line-height:1.4}
#flexible-late-form .flex-policy-group>summary small{display:block;margin-top:3px}
#flexible-late-form .flex-group-state{display:flex;gap:12px;align-items:center;color:#687282;font-size:12px;white-space:nowrap}
#flexible-late-form .flex-group-state>span{font-size:20px;transition:transform .15s}
#flexible-late-form .flex-policy-group[open] .flex-group-state>span{transform:rotate(180deg)}
#flexible-late-form .flex-policy-group-body{padding:18px;border-top:1px solid #e4e8ee}
#flexible-late-form .flex-policy-members{display:grid;gap:14px;margin-top:17px;padding:16px;background:#f8fafc;border-radius:8px}
#flexible-late-form .flex-policy-members select{min-height:160px;padding:6px}
#flexible-late-form .flex-policy-members option{padding:5px 7px;font-size:12px;line-height:1.5}
#flexible-late-form .flex-group-footer{display:flex;justify-content:flex-end;margin-top:16px}
#flexible-late-form .mini-button{padding:7px 10px;font-size:11px;white-space:nowrap}
#flexible-late-form .flex-policy-table{width:100%;min-width:810px;border-collapse:separate;border-spacing:0;border:1px solid #dfe4eb;border-radius:9px;overflow:hidden}
#flexible-late-form .flex-policy-table th{background:#f4f6f9;color:#525e6d;font-size:11px;line-height:1.5;padding:12px 10px;text-align:left;border-bottom:1px solid #dfe4eb;min-width:145px}
#flexible-late-form .flex-policy-table th:first-child,#flexible-late-form .flex-policy-table th:nth-child(2){min-width:85px;width:85px}
#flexible-late-form .flex-policy-table th:last-child{min-width:83px;width:83px}
#flexible-late-form .flex-policy-table td{vertical-align:top;padding:12px 9px;border-bottom:1px solid #edf0f4}
#flexible-late-form .flex-policy-table tr:last-child td{border-bottom:0}
#flexible-late-form .flex-policy-table tr:nth-child(even) td{background:#fcfcfd}
#flexible-late-form .flex-policy-table input,#flexible-late-form .flex-policy-table select{font-size:12px;min-height:36px;padding:8px}
#flexible-late-form .flex-rule-value{display:flex;align-items:center;gap:7px;margin-top:7px}
#flexible-late-form .flex-rule-value>span{font-size:11px;color:#6f7781;min-width:25px}
#flexible-late-form .flex-rule-note{display:block;margin-top:7px;font-size:11px;min-height:0}
#flexible-late-form .flex-rule-note:empty{display:none}
#flexible-late-form .flex-preview-panel{padding:18px;margin-top:24px;border:1px solid #e0e5ec;border-radius:10px;background:#f8fafc}
#flexible-late-form .flex-preview-panel h3{margin-bottom:16px}
#flexible-late-form #flex-preview{margin-top:14px}
#flexible-late-form #flex-preview-result{line-height:1.6;margin:12px 0 0;font-size:13px}
#flexible-late-form .flex-policy-actions{margin-top:20px;padding:15px 0 4px;border-top:1px solid #e5e8ed;gap:10px}
#flexible-late-form .hidden{display:none!important}
#flexible-late-form .flex-visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:700px){#late-deduction-modal .late-deduction-modal-card{padding:16px}#flexible-late-form .form-grid{grid-template-columns:1fr}#flexible-late-form .late-bracket-toolbar{align-items:flex-start;gap:8px}#flexible-late-form .flex-policy-group>summary{padding:13px}#flexible-late-form .flex-policy-group-body{padding:14px}#flexible-late-form .flex-group-state{font-size:11px;gap:6px}#flexible-late-form .flex-preview-panel{padding:14px}}

#flexible-late-form .flex-member-list{max-height:250px;overflow-y:auto;border:1px solid #d6dbe3;border-radius:8px;background:#fff}
#flexible-late-form .flex-member-row{padding:11px 12px;cursor:pointer;border-bottom:1px solid #edf0f4;align-items:flex-start}
#flexible-late-form .flex-member-row:last-child{border-bottom:0}
#flexible-late-form .flex-member-row:has(input:checked){background:#fff3f1}
#flexible-late-form .flex-member-row[hidden]{display:none!important}
#flexible-late-form .flex-member-row strong,#flexible-late-form .flex-member-row small{display:block;line-height:1.5}
#flexible-late-form .flex-member-row:focus-within{outline:2px solid #b71c1c;outline-offset:-2px}
#flexible-late-form [data-member-count]{font-size:12px;color:#475569}
