/* C.C.M.S. audit forms: operational form, template designer and readable references. */
.af-sheet{background:#fff;border:1px solid #d7e3eb;border-radius:16px;padding:28px;margin:20px 0;box-shadow:0 8px 28px #17334c08;color:#173047;min-width:0}.af-sheet-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;border-bottom:2px solid #008379;padding-bottom:18px}.af-sheet h2{font-size:1.55rem;margin:5px 0 9px;line-height:1.3}.af-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#007c76;margin:0;text-transform:uppercase}.af-clock{background:#edf6f6;border:1px solid #cfe4e4;padding:12px 16px;border-radius:10px;min-width:180px}.af-clock span,.af-clock small{display:block;font-size:11px;line-height:1.5}.af-clock strong{font-size:25px;font-variant-numeric:tabular-nums;display:block;letter-spacing:.03em}.af-clock small{color:#607487}.af-template-meta{color:#607487;font-size:12px;margin:12px 0}.af-instructions{white-space:pre-wrap;font-size:13px;line-height:1.65;padding:14px 16px;background:#f5f9fb;border-radius:9px;margin:14px 0;color:#425f72}.af-header-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin:15px 0}.af-sheet label,.af-designer label,.af-designer-save label{display:flex;flex-direction:column;gap:7px;font-size:13px;line-height:1.5;font-weight:650;min-width:0}.af-sheet input:not([type=checkbox]):not([type=radio]),.af-sheet textarea,.af-sheet select,.af-designer input:not([type=checkbox]):not([type=radio]),.af-designer textarea,.af-designer select,.af-designer-save textarea{width:100%;box-sizing:border-box;border:1px solid #bdcfdc;border-radius:7px;padding:10px 11px;font:inherit;color:#173047;background:#fff;min-height:42px}.af-sheet textarea,.af-designer textarea,.af-designer-save textarea{min-height:75px;resize:vertical}.af-sheet input:disabled,.af-sheet textarea:disabled,.af-sheet select:disabled{color:#324e63;background:#f4f7f9;opacity:1}.af-legend{display:flex;gap:10px 18px;flex-wrap:wrap;padding:13px 0;font-size:12px;color:#50697b}.af-legend strong{color:#173047;margin-right:4px}.af-table-wrap{width:100%;overflow:auto;border:1px solid #d6e2eb;border-radius:10px}.af-review-table{border-collapse:collapse;width:100%;table-layout:fixed}.af-review-table thead{background:#19334b;color:white}.af-review-table th,.af-review-table td{padding:14px 12px;border-bottom:1px solid #dde7ed;vertical-align:top;text-align:left;line-height:1.55;font-size:13px}.af-review-table thead th{font-size:12px}.af-review-table thead th:first-child{width:58px}.af-review-table thead th:last-child{width:42%}.af-code{background:#f4f8fa;color:#3b576c;font-size:12px!important}.af-review-table tr:last-child td,.af-review-table tr:last-child th{border-bottom:0}.af-section th{color:#087c78;background:#eaf4f4;text-transform:uppercase;font-size:11px!important;letter-spacing:.06em;padding:9px 12px}.af-required{color:#a43243}.af-options{display:flex;flex-wrap:wrap;gap:6px}.af-sheet label.af-choice{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;padding:8px 9px;border:1px solid #ccdae5;border-radius:6px;cursor:pointer;min-height:42px;font-size:12px;font-weight:650;background:#fff}.af-choice input{appearance:none;width:17px!important;height:17px!important;min-width:17px;border:1.5px solid #7893a7;border-radius:3px;padding:0!important;margin:0!important;background:#fff;display:grid;place-content:center}.af-choice input:checked{background:#007e79;border-color:#007e79}.af-choice input:checked:after{content:'\2713';font-size:13px;color:white;font-weight:800}.af-choice:has(input:checked){border-color:#008379;background:#eaf8f5}.af-choice:has(input:focus-visible){outline:2px solid #008379;outline-offset:2px}.af-comment{margin-top:10px;font-size:12px}.af-comment summary{cursor:pointer;color:#41667f;margin-bottom:6px}.af-comment textarea{font-size:13px}.af-references{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.af-reference{display:inline!important;border:0!important;background:transparent!important;color:#087e85!important;text-decoration:underline!important;padding:2px 0!important;margin:0!important;font-size:12px!important;font-weight:500!important;min-height:0!important;line-height:1.5!important;text-align:left;cursor:pointer}.af-help{font-size:12px!important;color:#5a7285;line-height:1.6}.af-log{padding-top:20px}.af-log h2{font-size:16px}.af-log-rows fieldset{border:1px solid #d6e2eb;border-radius:9px;padding:10px 14px;margin:12px 0;min-width:0}.af-log-rows legend{font-weight:700;font-size:12px;padding:0 6px}.af-form-actions{position:sticky;bottom:12px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #d5e2eb;box-shadow:0 4px 20px #17334c12;border-radius:10px;padding:14px;margin-top:20px;z-index:2}.af-form-actions span{font-size:11px;color:#637c8d;margin-left:auto}.af-error{color:#a52339;white-space:pre-wrap;font-size:13px;line-height:1.6}.af-template-choices{display:grid;gap:10px;margin:18px 0}.af-template-choices label{display:flex;flex-direction:row;align-items:center;gap:12px;padding:16px;border:1px solid #ccdee5;border-radius:9px;cursor:pointer}.af-template-choices input{width:20px;min-width:20px;height:20px}.af-template-choices strong,.af-template-choices small{display:block}.af-template-choices small{font-weight:400;color:#597487;margin-top:4px}.af-template-choices label:has(input:checked){background:#ebf8f5;border-color:#008379}.af-reference-dialog{width:min(640px,calc(100vw - 36px));max-height:85svh;padding:0;border:1px solid #cddde5;border-radius:12px;color:#173047}.af-reference-dialog::backdrop{background:#102b42a6}.af-reference-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px;border-bottom:1px solid #d8e4eb}.af-reference-dialog h2{font-size:16px;margin:0}.af-reference-dialog header button{width:36px;height:36px;border:0;border-radius:7px;background:#edf3f7;font-size:24px;cursor:pointer}.af-reference-copy{padding:18px 22px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px;line-height:1.7}.af-wide{width:min(1160px,calc(100vw - 32px))!important;max-width:1160px!important}.af-wide .modal-body{padding:22px}.af-designer-tabs,.af-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.af-designer-tabs{border-bottom:1px solid #d8e4eb;padding-bottom:16px}.af-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.af-library article{border:1px solid #d2e1e9;border-radius:10px;padding:18px;background:#fff}.af-chip{font-size:11px;background:#edf5f7;padding:5px 8px;border-radius:5px;color:#456176}.af-library h3{margin:13px 0 8px}.af-library p{font-size:12px;color:#5c7386}.af-designer>section,.af-designer>details{border:1px solid #d5e2e9;padding:18px;border-radius:10px;margin:16px 0;background:white}.af-designer summary{font-size:14px;font-weight:750;cursor:pointer;color:#173047;line-height:1.6}.af-designer summary span{margin-left:8px;color:#5f7b8f;font-size:12px}.af-design-row,.af-option-row{border-bottom:1px solid #e2eaf0;padding:12px 0}.af-option-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(160px,2fr) auto;gap:10px;align-items:center}.af-option-row .af-row-actions{grid-column:1/-1}.af-row-actions{display:flex;gap:7px;margin:10px 0}.af-row-actions button{font:inherit;font-size:11px;padding:5px 9px;min-height:30px;color:#496779;background:#eef4f7;border:1px solid #d4e0e7;border-radius:5px;cursor:pointer}.af-question-editor{border:1px solid #d9e5eb;border-radius:8px;padding:14px;margin:12px 0;background:#fbfdfe}.af-reference-editor{border-left:3px solid #0b8c86;padding:12px 16px;margin:12px 0;background:#f1f8f8}.af-designer label.af-check{display:flex;flex-direction:row;gap:9px;align-items:flex-start;font-weight:500}.af-check input{width:17px;min-width:17px;height:17px;margin:2px 0 0}.af-designer-save{border-top:1px solid #d4e1e9;padding-top:18px;margin-top:20px}.af-designer h3{font-size:15px;margin:0 0 10px}.af-designer h4{font-size:13px;margin:18px 0 8px}@media(max-width:720px){.af-sheet{padding:16px}.af-sheet-head{flex-direction:column;gap:14px}.af-clock{width:100%;box-sizing:border-box}.af-header-grid,.af-library{grid-template-columns:1fr}.af-review-table,.af-review-table tbody,.af-review-table tr,.af-review-table td,.af-review-table th{display:block;width:auto!important}.af-review-table thead{display:none}.af-review-table tr{border-bottom:1px solid #d7e4ec;padding:8px}.af-review-table th.af-code{display:inline-block!important;padding:4px 8px;border-radius:4px;border:0}.af-review-table td{padding:9px 6px;border:0}.af-section th{padding:9px}.af-options{gap:8px}.af-option-row{grid-template-columns:1fr}.af-form-actions{bottom:6px;padding:10px}.af-form-actions button{flex:1}.af-form-actions span{width:100%;margin:0}.af-wide .modal-body{padding:14px}.af-designer>section,.af-designer>details{padding:13px}}
