/* Workflow and operations: approvals, global search, the public verify page, settings branding, jobs and backups. Prefix: wf- */
.wf-head{display:flex;gap:12px;align-items:center}
.wf-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.wf-ico{width:42px;height:42px;border-radius:6px;background:#eef6ff;color:var(--brand-primary);display:grid;place-items:center;font-size:20px;flex:none}
.wf-note{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--brand-primary);background:#f6f9fc;font-size:13px;overflow-wrap:anywhere}
.wf-note b{display:block;font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:3px}
.wf-kv th{width:32%;background:#f6f9fc;vertical-align:top;white-space:normal}
.wf-hr{border:0;border-top:1px solid var(--line2,#e0e7ed);margin:14px 0}
.wf-people{list-style:none;margin:0;padding:0}
.wf-people li{display:flex;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid #eef2f6}.wf-people li:last-child{border-bottom:0}
.wf-people b{display:block;font-size:13px}.wf-people small{color:var(--muted);font-size:11.5px}
.wf-wrap{white-space:normal;overflow-wrap:anywhere;word-break:break-all}
.wf-pre{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;margin:8px 0 0}
.wf-kbd,.wf-search kbd{border:1px solid #9fb2c6;border-radius:3px;padding:0 6px;font:11px var(--fb,inherit);background:#fff;color:#2f4559}

/* Top-bar search box and its dropdown */
.wf-search{position:relative;height:34px;border:1px solid var(--brand-navy-edge);background:var(--brand-navy-3);border-radius:4px;padding:0 8px 0 10px;display:flex;align-items:center;gap:8px;width:340px;margin:0}
.wf-search>i{color:#9fc3e8;font-size:14px}
.wf-search input{flex:1;background:transparent;border:0;outline:0;color:#fff;font:12px var(--fb,inherit);min-width:0;height:100%}
.wf-search input::placeholder{color:#a9c3dd}
.wf-search input::-webkit-search-cancel-button{display:none}
.wf-search kbd{background:var(--brand-navy);color:#bcd2e8;border-color:#547393}
.wf-drop{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:#fff;border:1px solid var(--line,#cbd7e2);border-radius:4px;box-shadow:0 8px 24px rgba(6,26,54,.18);max-height:420px;overflow:auto;z-index:70;min-width:300px}
.wf-drop .grp{padding:7px 12px 3px;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.wf-drop a{display:flex;gap:9px;align-items:flex-start;padding:7px 12px;color:var(--text,#1d3650);font-size:12.5px}
.wf-drop a i{color:var(--brand-primary);margin-top:2px}
.wf-drop a span{min-width:0}.wf-drop a b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-drop a small{display:block;color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-drop a:hover,.wf-drop a.hl{background:#e6f2ff}
.wf-drop a.all{border-top:1px solid #e0e7ed}
.wf-drop .none{padding:10px 12px;color:var(--muted);font-size:12.5px}
.wf-search-btn{display:none}
@media (max-width:1180px){.wf-search{width:260px}}
@media (max-width:900px){.wf-search{display:none}.wf-search-btn{display:inline-flex}}

/* Search results page */
.wf-bigsearch{flex:1;min-width:0}
.ct-filters input.wf-bigsearch{min-width:0;width:100%;max-width:560px;font-size:14px;min-height:38px}
.wf-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;align-items:start}
.wf-results>*{min-width:0}
.wf-hits{list-style:none;margin:0;padding:0}
.wf-hits a{display:flex;gap:10px;padding:9px 12px;border-bottom:1px solid #eef2f6;color:var(--text,#1d3650)}
.wf-hits li:last-child a{border-bottom:0}
.wf-hits a:hover{background:#f5faff}
.wf-hits i{color:var(--brand-primary);margin-top:2px}
.wf-hits div{min-width:0}.wf-hits b{display:block;font-size:13px;overflow-wrap:anywhere}.wf-hits small{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}

/* Public verify page */
.wf-verify{max-width:760px;display:flex;flex-direction:column;gap:14px}
.wf-verify-form{display:flex;gap:8px}
.wf-verify-form .ct-input{flex:1;min-width:0;font-size:15px;letter-spacing:.04em;text-transform:uppercase}
.wf-answer{display:flex;gap:16px;align-items:center;padding:18px 20px;border-radius:6px;border:1px solid}
.wf-answer>i{font-size:34px;flex:none}
.wf-answer h2{margin:0 0 4px;font-size:20px}.wf-answer p{margin:0}
.wf-answer.ok{background:#e9f7f0;border-color:#9fd8bd;color:#0f5e3f}
.wf-answer.bad{background:#fdeeee;border-color:#f0b4b4;color:#8a1f1f}

/* Settings: branding and integrations */
.wf-colours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wf-colour{display:flex;align-items:center;gap:8px}
.wf-colour input[type=color]{width:52px;height:36px;padding:2px;border:1px solid #c9d4df;border-radius:4px;background:#fff;cursor:pointer}
.wf-logos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wf-logos>*{min-width:0}
.wf-logos input[type=file]{max-width:100%}
.wf-logo{height:70px;border:1px solid #dfe6ee;border-radius:4px;display:grid;place-items:center;background:#fff;padding:8px;margin-bottom:6px}
.wf-logo.dark{background:var(--brand-navy)}
.wf-logo img{max-height:100%;max-width:100%;object-fit:contain}
.wf-preview{border:1px solid #dfe6ee;border-radius:6px;overflow:hidden}
.wf-preview .bar{background:var(--n);color:#fff;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.wf-preview .bar b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-preview .bar span{width:40px;height:6px;border-radius:3px;background:var(--a)}
.wf-preview .body{padding:14px 12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.wf-preview .body p{margin:0;font-size:13px}.wf-preview .body a{color:var(--p);font-weight:700}
.wf-preview .chip{background:var(--a);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px}
.wf-preview .btn{background:var(--p);color:#fff;font-weight:700;font-size:12px;padding:7px 14px;border-radius:4px}
.wf-events{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}

/* Scheduled jobs switch */
.wf-switch{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;cursor:pointer;font:700 12px var(--fb,inherit);color:#6b7a8a;padding:0}
.wf-switch span{width:34px;height:18px;border-radius:9px;background:#c9d4df;position:relative;transition:background .15s}
.wf-switch span:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .15s}
.wf-switch.on{color:#0f6e48}.wf-switch.on span{background:#18ae73}.wf-switch.on span:after{left:18px}

@media (max-width:760px){
    .wf-colours,.wf-logos{grid-template-columns:1fr}
    .wf-verify-form{flex-direction:column}
    .wf-answer{align-items:flex-start;padding:14px}
    .wf-results{grid-template-columns:1fr}
}
