/* ADEN V16 · audit-template workspace refinement. Preserves original brand and form APIs. */
.v16-icon{display:inline-block;width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.v16-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.v4-tabs a{gap:7px}.v4-tabs .v16-icon{width:15px;height:15px;opacity:.78}.v4-tabs a.is-active .v16-icon{opacity:1}
.v16-template-page,.v16-template-editor{--v16-accent:#ed4f18;--v16-ink:#192b47;--v16-muted:#738299;--v16-line:#e9edf2;color:var(--v16-ink)}
.v16-heading-line,.v16-editor-titlebar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:15px}
.v16-heading-name{display:flex;gap:13px;align-items:center;min-width:0}
.v16-icon-tile,.v16-section-icon,.v16-stat-icon{display:grid;place-items:center;flex:none;background:#fff0e9;color:#eb4f18;border-radius:13px}
.v16-icon-tile{width:46px;height:46px}.v16-icon-tile .v16-icon{width:23px;height:23px}
.v16-heading-name h2{margin:2px 0;font-size:clamp(17px,2vw,21px);font-weight:850;letter-spacing:-.035em;line-height:1.23}
.v16-heading-name p,.v16-form-heading p{margin:4px 0 0;color:var(--v16-muted);font-size:11px;line-height:1.55}
.v16-overline{font-size:10px;font-weight:850;color:#ec541c;letter-spacing:.09em}
.v16-primary-action{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:0;background:#ed4f18!important;color:white!important;box-shadow:0 6px 14px #e94b1820;transition:box-shadow .18s,transform .18s,background-color .18s!important}
.v16-primary-action:hover{background:#d9420f!important;box-shadow:0 9px 20px #df481e30;transform:translateY(-1px)}
.v16-template-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 13px}
.v16-summary-stat{display:flex;align-items:center;gap:11px;padding:13px 16px;border:1px solid var(--v16-line);border-radius:15px;background:white;box-shadow:0 6px 19px #24395407;animation:v16-in .35s both}
.v16-stat-icon{height:38px;width:38px}.v16-stat-green{background:#e8f8ef;color:#178450}.v16-stat-blue{background:#edf4ff;color:#3879ba}
.v16-summary-stat strong,.v16-summary-stat small{display:block}.v16-summary-stat strong{font-size:20px;line-height:1.2;letter-spacing:-.035em}.v16-summary-stat small{font-size:10px;color:#7c8a9d;margin-top:3px}
.v16-template-panel{padding:16px 17px;margin:0;border:1px solid var(--v16-line);border-radius:18px;box-shadow:0 8px 26px #2238510a}
.v16-template-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding-bottom:13px;border-bottom:1px solid #edf0f4}
.v16-search-control,.v16-area-control{display:flex;flex-direction:column;gap:6px;min-width:0}.v16-search-control{flex:1 1 310px}.v16-area-control{flex:0 1 250px}
.v16-field-caption{font-size:10px;color:#687991;font-weight:780}
.v16-input-wrap{position:relative;display:flex;align-items:center}.v16-input-wrap .v16-icon{position:absolute;left:12px;color:#a0acc0;width:17px;height:17px;pointer-events:none}
.v16-template-filters input,.v16-template-filters select{width:100%;min-height:43px;padding:10px 12px;border:1px solid #dfe7f0;border-radius:11px;background:#fff;color:#20344f;font-size:12px;outline:0;transition:box-shadow .16s,border-color .16s}
.v16-input-wrap input{padding-left:39px}.v16-template-filters input:focus,.v16-template-filters select:focus{border-color:#ec815b;box-shadow:0 0 0 3px #ed4f1814}
.v16-view-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #e4e8ef;border-radius:12px;background:#f8f9fb;min-height:43px}
.v16-view-switch button{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:#6e7d94;padding:8px 12px;border-radius:9px;cursor:pointer;font-size:11px;font-weight:760;transition:background .18s,color .18s,box-shadow .18s}
.v16-view-switch button.is-active{background:#fff0e9;color:#dd4a19;box-shadow:0 2px 6px #2239530a}
.v16-results-bar{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 4px 10px;font-size:11px;color:#8290a4}
.v16-text-button{display:inline-flex;gap:5px;align-items:center;border:0;background:none;color:#e5511a;font-size:11px;font-weight:750;cursor:pointer}.v16-text-button .v16-icon{width:13px;height:13px;transform:rotate(180deg)}
.v16-template-table th{background:#f8fafc;color:#738299;font-size:10px;border:0;padding:12px}
.v16-template-table td{padding:12px;border-bottom:1px solid #f0f2f5;vertical-align:middle;font-size:11px}.v16-template-table tbody tr{transition:background .17s}.v16-template-table tbody tr:hover{background:#fffbf9}
.v16-title-cell{display:flex;align-items:center;gap:10px;min-width:190px}.v16-row-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:11px;background:#fff0e9;color:#ec4e19}
.v16-title-cell strong{display:block;font-size:12px;line-height:1.42;color:#1a2a43;margin-top:2px}.v16-point-code{font-size:10px;font-weight:810;letter-spacing:.03em;color:#e65320}
.v16-area-label{font-weight:670;color:#64758e;white-space:normal}.v16-dept-text{color:#60738d;font-weight:670;overflow-wrap:anywhere;max-width:200px;display:block}
.v16-check-count{display:inline-flex;align-items:center;gap:6px;color:#697c94;font-size:11px;font-weight:780;white-space:nowrap}.v16-check-count .v16-icon{width:15px;height:15px;color:#97a5b7}
.v16-state-pill{display:inline-flex;align-items:center;gap:6px;background:#f2f4f7;color:#788397;font-size:10px;font-weight:810;border-radius:9px;padding:7px 9px;white-space:nowrap}.v16-state-pill span{width:6px;height:6px;border-radius:50%;background:currentColor}.v16-state-pill.is-active{background:#e9f8ee;color:#168352}.v16-state-pill.is-inactive{background:#f4f5f6;color:#7a8799}
.v16-open-action{display:inline-flex;gap:6px;align-items:center;justify-content:center;text-decoration:none;color:#e64b15;font-weight:790;font-size:11px;white-space:nowrap;padding:8px;border-radius:9px;transition:color .15s,background .15s,transform .15s}.v16-open-action .v16-icon{width:14px;height:14px}.v16-open-action:hover{color:#d54214;background:#fff0e9;transform:translateX(2px)}
.v16-template-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:4px 0 6px}
.v16-template-cards[hidden],.v16-template-list[hidden],.v16-empty-state[hidden]{display:none!important}
.v16-audit-card{display:flex;flex-direction:column;min-width:0;gap:10px;padding:16px;border:1px solid #e7ebf0;border-radius:15px;background:#fff;box-shadow:0 4px 16px #263b5508;animation:v16-in .24s ease both;transition:border-color .18s,box-shadow .18s,transform .18s}
.v16-audit-card:hover{border-color:#ffc2a9;box-shadow:0 11px 26px #263b5511;transform:translateY(-2px)}
.v16-card-top{display:flex;align-items:center;gap:9px}.v16-card-top .v16-state-pill{margin-left:auto}.v16-card-top .v16-row-icon{width:31px;height:31px}
.v16-audit-card h3{font-size:14px;line-height:1.4;margin:0;letter-spacing:-.012em}.v16-card-area{font-size:11px;color:#8795a6;margin:-6px 0 0}
.v16-card-depts{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:auto 0 0;min-height:25px}.v16-card-depts span{display:inline-flex;padding:5px 7px;border-radius:7px;background:#f6f7f9;color:#566781;font-size:9px;font-weight:800}
.v16-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #edf0f3;padding-top:10px;margin-top:3px}
.v16-empty-state{display:flex;align-items:center;flex-direction:column;gap:7px;padding:45px 15px;text-align:center}.v16-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#fff2eb;color:#e54b17}.v16-empty-state b{font-size:14px}.v16-empty-state span{font-size:11px;color:#7e8b9c}.v16-empty-state button{background:none;border:0;color:#e65321;font-weight:780;margin-top:5px;cursor:pointer}
.v16-template-note{display:flex;align-items:center;gap:9px;color:#7a899a;font-size:11px;line-height:1.6;padding:12px 5px}.v16-template-note .v16-icon{color:#e65320;width:15px;height:15px}
/* Editor */
.v16-editor-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.v16-return-link{display:inline-flex;align-items:center;gap:7px;color:#e64a19;font-size:11px;font-weight:790}.v16-return-link .v16-icon{width:15px;height:15px;transform:rotate(180deg)}
.v16-small-note{display:inline-flex;align-items:center;gap:6px;color:#8a96a4;font-size:10px}.v16-small-note .v16-icon{width:14px;height:14px;color:#e35621}
.v16-editor-titlebar{margin-bottom:14px}.v16-editor-title-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.v16-jump-link{display:inline-flex;align-items:center;gap:6px;padding:8px 9px;border:1px solid #e7ebf1;border-radius:10px;font-size:11px;font-weight:750;color:#61738a;white-space:nowrap}.v16-jump-link:hover{color:#e84b18;background:#fff8f4;border-color:#f9d2bc}
.v16-jump-link .v16-icon{width:15px;height:15px}
.v16-editor-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:14px;align-items:start}
.v16-editor-panel{padding:21px 22px;border-radius:17px;border:1px solid #e8edf2;box-shadow:0 6px 23px #2439520a;min-width:0}
.v16-form-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}.v16-form-heading h3{font-size:13px;font-weight:850;letter-spacing:-.01em;margin:0;color:#1c2c44}.v16-form-heading p{font-size:10px}
.v16-section-icon{width:36px;height:36px;border-radius:10px}.v16-section-icon.is-blue{background:#eaf4ff;color:#317dbb}.v16-section-icon.is-purple{background:#f2edff;color:#795aa7}.v16-section-icon.is-green{background:#eaf8ef;color:#218756}
.v16-form-divider{height:1px;background:#edf0f4;margin:17px 0}
.v16-editor-panel.v4-editor label:not(.v16-switch){margin-bottom:13px;font-size:11px;color:#344c68;font-weight:770}
.v16-editor-panel.v4-editor label small{font-size:10px;color:#9aa5b1;font-weight:530;line-height:1.5}
.v16-editor-panel.v4-editor input:not([type=checkbox]),.v16-editor-panel.v4-editor textarea,.v16-editor-panel.v4-editor select{font-size:12px;border-color:#dfe6ef;border-radius:10px;min-height:41px;background:#fff;padding:11px 12px;transition:border-color .18s,box-shadow .18s}
.v16-editor-panel.v4-editor input:not([type=checkbox]):focus,.v16-editor-panel.v4-editor textarea:focus{border-color:#f18a66;box-shadow:0 0 0 3px #ed4f1818}
.v16-editor-panel.v4-editor :disabled{background-color:#f8fafc!important;color:#53667e;cursor:default}
.v16-department-field{border:1px solid #e8edf3;border-radius:12px;background:#fcfdff;padding:14px}.v16-department-field legend{font-size:11px;color:#40546d}
.v16-count-pill{display:inline-flex;align-items:center;padding:4px 7px;border-radius:9px;color:#e04d18;background:#fff0e9;font-size:10px;font-weight:810;white-space:nowrap;margin-left:7px}
.v16-department-options{gap:8px}.v16-department-options label{position:relative;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;border:1px solid #e6eaf0!important;background:#fff!important;margin:0!important;padding:8px 11px!important;border-radius:10px!important;font-size:10px!important;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.v16-department-options label:has(input:checked){background:#fff1e9!important;color:#e0521e!important;border-color:#f6c3aa!important}
.v16-department-options label:hover:not(:has(:disabled)){transform:translateY(-1px);border-color:#efad90!important}
.v16-department-options label .v16-icon{display:none;width:12px;height:12px}.v16-department-options label:has(input:checked) .v16-icon{display:inline-block}
.v16-department-options input{width:14px;height:14px;margin:0;accent-color:#ed4f18}
.v16-activation-row{display:flex;align-items:center;gap:10px;background:#f9fbfa;border:1px solid #e8eeea;border-radius:12px;padding:12px 13px}.v16-activation-row>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.v16-activation-row strong{font-size:12px}.v16-activation-row small{font-size:10px;color:#8290a2}
.v16-editor-panel .v16-switch{position:relative;display:block;flex:none;width:40px;height:23px;margin:0!important;cursor:pointer}.v16-switch input{position:absolute;opacity:0;width:100%;height:100%;z-index:1;cursor:pointer}.v16-switch-track{display:block;width:40px;height:23px;background:#cfd7df;border-radius:100px;position:relative;transition:background .2s}.v16-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .2s}.v16-switch input:checked+.v16-switch-track{background:#e9521a}.v16-switch input:checked+.v16-switch-track::after{transform:translateX(17px)}.v16-switch input:focus-visible+.v16-switch-track{outline:2px solid #e9521a;outline-offset:3px}
.v16-save-bar{justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:18px;padding-top:18px}.v16-save-hint{display:inline-flex;align-items:center;gap:6px;margin-right:auto;color:#8a98a9;font-size:10px;line-height:1.45}.v16-save-hint .v16-icon{width:14px;height:14px}
.v16-checks-panel{scroll-margin-top:80px}.v16-checks-heading{padding-bottom:13px;border-bottom:1px solid #eef0f3;margin-bottom:13px}
.v16-subcheck-stack{display:flex;flex-direction:column;gap:12px}.v16-subcheck-card{border:1px solid #e7ebf0;border-radius:13px;padding:13px 14px;background:#fff;transition:border-color .18s,box-shadow .18s;animation:v16-in .3s both}.v16-subcheck-card:hover{border-color:#f5c8b4;box-shadow:0 5px 14px #2b40510b}
.v16-check-heading{display:flex;gap:9px;align-items:center;margin-bottom:12px}.v16-check-number{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:10px;background:#fff1e9;color:#e84f19;font-size:11px;font-weight:850}.v16-check-heading>div{flex:1;min-width:0}.v16-check-heading strong{display:block;font-size:11px}.v16-check-heading small{display:block;font-size:10px;color:#8c99a8;margin-top:3px}.v16-check-heading>.v16-icon{color:#c5cdd6}
.v16-subcheck-form label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:730;color:#465975;margin-bottom:10px}.v16-subcheck-form input,.v16-subcheck-form textarea{width:100%;border:1px solid #dfe7ef;border-radius:9px;background:white;padding:9px 11px;font-size:11px;resize:vertical;outline:0}.v16-subcheck-form input:focus,.v16-subcheck-form textarea:focus{border-color:#ef956d;box-shadow:0 0 0 3px #ed4f1814}
.v16-check-action-line{display:flex;justify-content:flex-end;gap:7px}.v16-check-action-line .btn{display:inline-flex;align-items:center;gap:6px;font-size:11px}.v16-check-action-line .v16-icon{width:14px;height:14px}
.v16-remove-form{display:flex;justify-content:flex-end;border-top:1px solid #f0f2f4;margin-top:10px;padding-top:10px}.v16-remove-form button{display:inline-flex;gap:6px;align-items:center;font-size:10px;font-weight:760;background:transparent;color:#bd5b40;border:0;padding:5px;cursor:pointer}.v16-remove-form .v16-icon{width:13px;height:13px}.v16-remove-form button:hover{color:#c6321a}
.v16-add-check{border:1px dashed #f0ad8c;background:#fff9f6;border-radius:13px;margin-top:13px;overflow:hidden}.v16-add-check summary{cursor:pointer;display:flex;align-items:center;gap:10px;padding:13px 14px;list-style:none}.v16-add-check summary::-webkit-details-marker{display:none}.v16-add-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:10px;background:#fff0e6;color:#e65320}.v16-add-check summary>span:nth-child(2){flex:1}.v16-add-check summary strong,.v16-add-check summary small{display:block}.v16-add-check summary strong{font-size:11px}.v16-add-check summary small{font-size:10px;color:#8290a0;margin-top:3px}.v16-detail-chevron{transition:transform .18s}.v16-add-check[open] .v16-detail-chevron{transform:rotate(90deg)}
.v16-add-check-form{display:flex;flex-direction:column;gap:10px;border-top:1px dashed #f2d9cc;padding:13px}.v16-add-check-form label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#46617d;font-weight:750}.v16-add-check-form input,.v16-add-check-form textarea{width:100%;background:white;border:1px solid #e1e6ee;border-radius:9px;padding:10px;outline:0;font-size:11px}.v16-add-check-form button{align-self:flex-end;display:inline-flex;gap:6px;align-items:center}
.v16-create-template>.v16-editor-panel{max-width:1050px}
@keyframes v16-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1120px){.v16-template-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.v16-editor-grid{grid-template-columns:minmax(0,1fr)}.v16-editor-titlebar{flex-wrap:wrap}}
@media(max-width:810px){.v16-template-table{min-width:700px}.v16-view-switch{margin-left:0}.v16-template-filters{align-items:stretch}.v16-area-control{flex:1 1 160px}.v16-view-switch{align-self:end}.v16-editor-panel{padding:16px}}
@media(max-width:650px){.v16-heading-line{align-items:flex-start;flex-wrap:wrap}.v16-heading-name{gap:9px}.v16-icon-tile{width:38px;height:38px}.v16-template-summary{gap:6px}.v16-summary-stat{padding:9px;gap:6px;border-radius:12px}.v16-stat-icon{width:30px;height:30px}.v16-summary-stat strong{font-size:17px}.v16-summary-stat small{font-size:9px}.v16-template-panel{padding:12px}.v16-template-filters .v16-search-control{flex-basis:100%}.v16-template-cards{grid-template-columns:1fr}.v16-template-table{min-width:680px}.v16-editor-titlebar{align-items:start}.v16-editor-title-actions{width:100%;justify-content:flex-start}.v16-editor-panel{padding:14px}.v16-save-hint{flex-basis:100%}.v16-form-heading h3{font-size:12px}.v16-small-note{max-width:165px;text-align:right}.v16-card-depts{min-height:0}}
@media(prefers-reduced-motion:reduce){.v16-template-page *, .v16-template-editor *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Preserve native hidden semantics when items use flex/grid display. */
.v16-template-page [data-v16-item][hidden]{display:none!important}
