/* CertCore archive action layout; scoped to archive selection tools and deletion dialogs. */
body [data-page="archive"] [data-archive-draft-tools].cc-archive-toolbar-v2{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:12px 14px!important;min-width:0!important;background:#f8faff!important;align-items:stretch!important}
body [data-page="archive"] .cc-archive-toolbar-v2 [hidden]{display:none!important}
body [data-page="archive"] .cc-archive-selection-main{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px 16px!important;min-width:0}
body [data-page="archive"] .cc-archive-selection-summary,body [data-page="archive"] .cc-archive-selection-actions,body [data-page="archive"] .cc-archive-selection-secondary{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-width:0}
body [data-page="archive"] .cc-archive-selection-summary .cc-archive-select-page{display:inline-flex!important;align-items:center!important;gap:8px!important;margin:0!important;white-space:nowrap;font-size:12px!important;font-weight:650!important;color:#334155!important}
body [data-page="archive"] .cc-archive-selection-summary input{width:16px!important;height:16px!important;margin:0!important;accent-color:#2563eb}
body [data-page="archive"] .cc-archive-selection-summary [data-archive-draft-selected]{display:inline-flex!important;padding:5px 9px!important;border-radius:7px!important;background:#eaf1ff!important;color:#1d4ed8!important;line-height:1.25!important;font-size:11px!important;font-weight:700!important;white-space:nowrap;margin:0!important}
body [data-page="archive"] .cc-archive-toolbar-v2 button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px!important;height:34px!important;padding:0 11px!important;margin:0!important;border-radius:8px!important;font-size:11px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap;box-sizing:border-box;flex:0 0 auto}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-delete-selected]{color:#b91c1c!important;border:1px solid #fecaca!important;background:#fff1f2!important}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-delete-selected]:hover:not(:disabled){background:#ffe4e6!important;border-color:#fda4af!important}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-stop-delete]{color:#92400e!important;border:1px solid #fcd34d!important;background:#fffbeb!important}
body [data-page="archive"] .cc-archive-toolbar-v2 button:disabled{opacity:.48!important;cursor:not-allowed!important}
body [data-page="archive"] .cc-archive-selection-secondary{border-top:1px solid #e8edf5;padding-top:9px;gap:8px 10px!important}
body [data-page="archive"] .cc-archive-selection-secondary [data-archive-command="drafts-only"],body [data-page="archive"] .cc-archive-selection-secondary [data-archive-command="publish-selected"]{min-height:30px!important;height:30px!important;font-size:10px!important}
body [data-page="archive"] .cc-archive-selection-secondary [data-archive-draft-result]{display:block!important;min-width:0!important;flex:1 1 240px!important;margin:0 0 0 2px!important;color:#64748b!important;font-size:11px!important;font-weight:450!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere}
body [data-page="archive"] .cc-archive-selection-secondary [data-state="success"]{color:#047857!important}
body [data-page="archive"] .cc-archive-selection-secondary [data-state="error"]{color:#b91c1c!important}
body [data-page="archive"] .cc-archive-selection-secondary [data-state="warning"]{color:#92400e!important}
body [data-page="archive"] .cc-archive-selection-secondary [data-state="busy"]{color:#1d4ed8!important}
body .cc-archive-modal.cc-delete-dialog{position:fixed!important;inset:0!important;z-index:10000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:rgba(15,23,42,.44)!important;backdrop-filter:blur(4px);box-sizing:border-box;overflow:auto!important}
body .cc-delete-dialog .cc-delete-card{position:relative!important;transform:none!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:580px!important;max-height:calc(100dvh - 40px)!important;display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;border:1px solid #e2e8f0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 24px 80px rgba(15,23,42,.22)!important;overflow:hidden!important;color:#334155!important;text-align:left!important}
body .cc-delete-dialog .cc-delete-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:17px 20px!important;min-height:0!important;flex-shrink:0;border-bottom:1px solid #edf1f6!important}
body .cc-delete-dialog .cc-delete-heading{display:flex;align-items:center;gap:11px;min-width:0}
body .cc-delete-dialog .cc-delete-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#fff1f2;color:#dc2626;font-size:15px}
body .cc-delete-dialog .cc-delete-heading small{display:block!important;margin:0 0 3px!important;font-size:10px!important;line-height:1.25!important;color:#94a3b8!important;font-weight:600!important}
body .cc-delete-dialog .cc-delete-heading h3{margin:0!important;padding:0!important;color:#172033!important;font-size:17px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:-.2px!important}
body .cc-delete-dialog .cc-archive-close{display:flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;flex:0 0 30px;border:1px solid #e2e8f0!important;border-radius:8px!important;background:#fff!important;color:#64748b!important;font-size:20px!important;font-weight:400!important;line-height:1!important;box-shadow:none!important}
body .cc-delete-dialog .cc-delete-body{display:flex!important;flex-direction:column!important;gap:14px!important;padding:18px 20px!important;min-height:0;overflow:auto!important;font-size:12px!important;line-height:1.5!important}
body .cc-delete-dialog .cc-delete-body p{margin:0!important;font-size:12px!important;line-height:1.55!important;color:#64748b!important}
body .cc-delete-dialog .cc-delete-notice{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #ffe0e3;border-radius:10px;background:#fff7f8}
body .cc-delete-dialog .cc-delete-notice>i{margin-top:3px;color:#e11d48;font-size:14px;flex:0 0 14px}
body .cc-delete-dialog .cc-delete-notice b{display:block;font-size:12px!important;font-weight:700;color:#9f1239;margin-bottom:3px}
body .cc-delete-dialog .cc-delete-notice p{font-size:11px!important;color:#80515c!important}
body .cc-delete-dialog .cc-delete-list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:-8px}
body .cc-delete-dialog .cc-delete-list-heading b{font-size:11px!important;color:#475569!important;font-weight:700!important}
body .cc-delete-dialog .cc-delete-list-heading>span{font-size:10px!important;color:#64748b!important}
body .cc-delete-dialog .cc-delete-list{max-height:190px;min-height:0;overflow:auto;border:1px solid #e5eaf2;border-radius:10px;background:#fff;flex-shrink:0}
body .cc-delete-dialog .cc-delete-document{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #edf1f6}
body .cc-delete-dialog .cc-delete-document:last-child{border-bottom:0}
body .cc-delete-dialog .cc-delete-document>div{min-width:0;overflow-wrap:anywhere}
body .cc-delete-dialog .cc-delete-document b{display:block!important;font-size:11px!important;font-weight:750!important;color:#334155!important}
body .cc-delete-dialog .cc-delete-document>div>span{display:block!important;font-size:12px!important;font-weight:550!important;color:#475569!important;margin-top:1px!important}
body .cc-delete-dialog .cc-delete-document small{display:block!important;font-size:10px!important;font-weight:400!important;color:#94a3b8!important;margin-top:2px!important;line-height:1.35!important}
body .cc-delete-dialog .cc-delete-status{display:inline-flex;flex-shrink:0;align-items:center;padding:3px 7px;border-radius:6px;background:#f1f5f9;color:#64748b;font-size:9px!important;font-weight:650;white-space:nowrap}
body .cc-delete-dialog .cc-delete-more{padding:8px 12px;font-size:10px;color:#64748b;background:#f8fafc}
body .cc-delete-dialog .cc-delete-process-note{font-size:10px!important;line-height:1.5!important;color:#94a3b8!important}
body .cc-delete-dialog .cc-delete-confirm-label{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;color:#475569!important}
body .cc-delete-dialog .cc-delete-confirm-label>span{display:block!important;font-size:12px!important;line-height:1.6!important}
body .cc-delete-dialog .cc-delete-confirm-label code{display:inline!important;padding:3px 7px;border:1px solid #e2e8f0;border-radius:5px;background:#f8fafc;font-size:11px!important;font-weight:750!important;color:#172033!important;white-space:normal;overflow-wrap:anywhere}
body .cc-delete-dialog .cc-delete-confirm-label input{display:block!important;width:100%!important;min-width:0!important;height:39px!important;padding:0 11px!important;border:1px solid #cbd5e1!important;border-radius:8px!important;background:#fff!important;color:#172033!important;font-size:13px!important;font-weight:500!important;box-sizing:border-box!important;outline:none!important;box-shadow:none!important}
body .cc-delete-dialog .cc-delete-confirm-label input::placeholder{color:#a5afbe;font-weight:400}
body .cc-delete-dialog .cc-delete-confirm-label input:focus{border-color:#e77d8d!important;box-shadow:0 0 0 3px #fff1f2!important}
body .cc-delete-dialog .cc-delete-footer{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;padding:13px 20px!important;border-top:1px solid #edf1f6!important;background:#fbfcfe!important;flex-shrink:0}
body .cc-delete-dialog .cc-delete-footer button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:35px!important;height:35px!important;padding:0 14px!important;border:1px solid #dce3ee!important;border-radius:8px!important;background:#fff!important;color:#475569!important;font-size:11px!important;font-weight:650!important;line-height:1.2!important;box-shadow:none!important}
body .cc-delete-dialog .cc-delete-footer [data-bulk-confirm],body .cc-delete-dialog .cc-delete-footer [data-delete-confirm]{border-color:#dc2626!important;background:#dc2626!important;color:#fff!important}
body .cc-delete-dialog .cc-delete-footer button:disabled{opacity:.4!important;cursor:not-allowed!important}
body .cc-delete-dialog .cc-delete-footer [data-bulk-confirm]:hover:not(:disabled),body .cc-delete-dialog .cc-delete-footer [data-delete-confirm]:hover:not(:disabled){background:#b91c1c!important;border-color:#b91c1c!important}
@media(max-width:680px){body [data-page="archive"] .cc-archive-selection-main{align-items:stretch!important}body [data-page="archive"] .cc-archive-selection-actions{width:100%}body [data-page="archive"] .cc-archive-selection-actions button{flex:1 1 auto}body .cc-archive-modal.cc-delete-dialog{padding:12px!important}body .cc-delete-dialog .cc-delete-card{max-height:calc(100dvh - 24px)!important;border-radius:14px!important}body .cc-delete-dialog .cc-delete-head{padding:14px 16px!important}body .cc-delete-dialog .cc-delete-body{padding:14px 16px!important;gap:12px!important}body .cc-delete-dialog .cc-delete-heading h3{font-size:15px!important}body .cc-delete-dialog .cc-delete-footer{padding:12px 16px!important}}

/* Compact archive toolbar: draft actions share the main selection row. */
body [data-page="archive"] [data-archive-draft-tools].cc-archive-toolbar-v2{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 10px!important;padding:10px 14px!important}
body [data-page="archive"] .cc-archive-toolbar-v2 .cc-archive-selection-main,body [data-page="archive"] .cc-archive-toolbar-v2 .cc-archive-selection-secondary{display:contents!important;border:0!important;padding:0!important}
body [data-page="archive"] .cc-archive-toolbar-v2 .cc-archive-selection-summary{order:0;flex:0 0 auto}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-command="drafts-only"]{order:1;height:34px!important;min-height:34px!important;font-size:11px!important}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-command="publish-selected"]{order:2;height:34px!important;min-height:34px!important;font-size:11px!important}
body [data-page="archive"] .cc-archive-toolbar-v2 .cc-archive-selection-actions{order:3;margin-left:auto!important;flex:0 0 auto}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-draft-result]{order:4;flex:1 0 100%!important;margin:0!important;padding-top:2px!important}
body [data-page="archive"] .cc-archive-toolbar-v2 [data-archive-draft-result][data-state="idle"]{display:none!important}
@media(max-width:680px){body [data-page="archive"] .cc-archive-toolbar-v2 .cc-archive-selection-actions{flex:1 1 100%;margin-left:0!important}}
body [data-page="archive"] .cc-archive-toolbar-v2.cc-archive-draft-busy [data-archive-draft-result][data-state="idle"]{display:block!important;color:#1d4ed8!important}
