/* AHEC Operations workspace. Keep every rule scoped to this page so portal,
   calendar and evidence styles do not leak into unrelated screens. */
.ahec-workspace .ahec-operations-view{--op-ink:#102b43;--op-muted:#5d6f80;--op-line:#dde5ec;--op-gold:#c9a030;--op-gold-soft:#f7f1df;width:100%;max-width:1360px;margin:0 auto;min-width:0;color:var(--op-ink)}
.ahec-workspace .ahec-operations-hero{position:relative;overflow:hidden;margin:0 0 22px;padding:clamp(22px,3.5vw,36px);border:1px solid #244a64;border-radius:22px;background:radial-gradient(circle at 92% 0,rgba(222,190,111,.2),transparent 30%),linear-gradient(125deg,#102b43,#20455d);color:#fff;box-shadow:0 14px 34px rgba(16,43,67,.14)}
.ahec-workspace .ahec-operations-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px}
.ahec-workspace .ahec-operations-back{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid rgba(255,255,255,.24);border-radius:10px;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.ahec-workspace .ahec-operations-back:hover{background:rgba(255,255,255,.1)}
.ahec-workspace .ahec-operations-hero>.ahec-eyebrow{color:#e4c47b}
.ahec-workspace .ahec-operations-hero h1{margin:6px 0;color:#fff;font:750 clamp(28px,4vw,40px)/1.1 system-ui,-apple-system,"Segoe UI",sans-serif}
.ahec-workspace .ahec-operations-hero p{max-width:68ch;margin:8px 0 0;color:#d2e0ea;font-size:14px;line-height:1.65}
.ahec-workspace .ahec-operations-hero .ahec-operations-institution{margin-top:14px;color:#fff;font-size:17px;font-weight:700}
.ahec-workspace .ahec-operations-hero .ahec-state{background:#dcf3e7;color:#19533c}
.ahec-workspace .ahec-portal-operations{display:block;width:100%;max-width:none;min-width:0;margin:0;color:var(--op-ink)}

/* Navigation is always available as links, including when JavaScript is off. */
.ahec-workspace .partner-portal.ahec-portal-operations>.portal-nav{position:sticky;top:66px;z-index:3;display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;min-width:0;margin:0 0 18px;padding:7px;overflow-x:auto;border:1px solid var(--op-line);border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 7px 20px rgba(16,43,67,.07);scrollbar-width:thin;-webkit-overflow-scrolling:touch;grid-column:auto;grid-row:auto}
.ahec-workspace .partner-portal.ahec-portal-operations.enhanced>.portal-nav{display:flex}
.ahec-workspace .ahec-portal-operations .pnav-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid transparent;border-radius:10px;background:transparent;color:#4a5e70;font:650 13px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:center;white-space:nowrap;text-decoration:none;cursor:pointer}
.ahec-workspace .ahec-portal-operations .pnav-btn:hover{border-color:#e8d9a6;background:#fbf8ef;color:var(--op-ink)}
.ahec-workspace .ahec-portal-operations .pnav-btn.active{border-color:#d9c17e;background:var(--op-gold-soft);color:var(--op-ink);box-shadow:inset 0 -2px var(--op-gold)}
.ahec-workspace .ahec-portal-operations .pnav-btn:focus-visible{outline:3px solid #e1b84a;outline-offset:2px}
.ahec-workspace .ahec-portal-operations .pnav-btn .ahec-workspace-icon{width:17px;height:17px;margin:0;flex:none;color:currentColor}
.ahec-workspace .ahec-portal-operations>.ahec-operations-picker{display:none!important}

/* Panels and section hierarchy */
.ahec-workspace .partner-portal.ahec-portal-operations>.portal-panel{display:none;grid-column:auto;grid-row:auto;min-width:0;margin:0;padding:clamp(18px,3vw,30px);border:1px solid var(--op-line);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(16,43,67,.055)}
.ahec-workspace .partner-portal.ahec-portal-operations>.portal-panel.active{display:block}
.ahec-workspace .ahec-portal-operations .ops-section{min-width:0}
.ahec-workspace .ahec-portal-operations .ops-section+.ops-section{margin-top:28px;padding-top:25px;border-top:1px solid var(--op-line)}
.ahec-workspace .ahec-portal-operations .ops-section>h3,.ahec-workspace .ahec-portal-operations .panel-header h3{margin:0 0 15px;color:var(--op-ink);font:700 clamp(19px,2.1vw,24px)/1.25 system-ui,-apple-system,"Segoe UI",sans-serif}
.ahec-workspace .ahec-portal-operations .panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.ahec-workspace .ahec-portal-operations .panel-header h3{margin:0}
.ahec-workspace .ahec-portal-operations .ops-lede{margin:0 0 18px;color:var(--op-muted);font-size:14px;line-height:1.65}
.ahec-workspace .ahec-portal-operations .portal-welcome{margin:0 0 20px}
.ahec-workspace .ahec-portal-operations .portal-welcome h2{margin:0 0 10px;color:var(--op-ink);font:700 clamp(22px,2.6vw,29px)/1.2 system-ui,sans-serif;overflow-wrap:anywhere}
.ahec-workspace .ahec-portal-operations .candidate-id-bar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--op-line);border-radius:11px;background:#f7f9fb;font-size:13px}
.ahec-workspace .ahec-portal-operations .portal-stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
.ahec-workspace .ahec-portal-operations .portal-stat{display:flex;min-width:0;flex-direction:column;gap:5px;padding:17px;border:1px solid var(--op-line);border-radius:14px;background:linear-gradient(150deg,#fff,#f5f8fb)}
.ahec-workspace .ahec-portal-operations .portal-stat .num{color:var(--op-ink);font:750 clamp(25px,3vw,31px)/1 system-ui,sans-serif}
.ahec-workspace .ahec-portal-operations .portal-stat .lbl{color:var(--op-muted);font-size:12px;line-height:1.4}
.ahec-workspace .ahec-portal-operations .portal-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.ahec-workspace .ahec-portal-operations .quick-action-card{display:flex;align-items:center;gap:12px;min-width:0;padding:15px;border:1px solid var(--op-line);border-radius:14px;background:#fff;color:var(--op-ink);text-decoration:none;font-weight:650;transition:border-color .15s,box-shadow .15s,transform .15s}
.ahec-workspace .ahec-portal-operations .quick-action-card:hover{transform:translateY(-1px);border-color:#d9c17e;box-shadow:0 8px 20px rgba(16,43,67,.09)}
.ahec-workspace .ahec-portal-operations .qa-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;background:var(--op-gold-soft);font-size:19px}

/* Centre status */
.ahec-workspace .ahec-portal-operations .ops-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.ahec-workspace .ahec-portal-operations .ops-section-heading h3{margin:4px 0 0;color:var(--op-ink);font-size:clamp(19px,2.1vw,24px);line-height:1.25}
.ahec-workspace .ahec-portal-operations .ops-kicker{color:#806522;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.ahec-workspace .ahec-portal-operations .ops-status-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;padding:18px;border:1px solid #d8e7df;border-radius:14px;background:linear-gradient(135deg,#f6fbf8,#fff)}
.ahec-workspace .ahec-portal-operations .ops-status-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#dcf3e7;color:#19533c;font-size:20px;font-weight:800}
.ahec-workspace .ahec-portal-operations .ops-status-card strong{color:var(--op-ink)}
.ahec-workspace .ahec-portal-operations .ops-status-card p{margin:6px 0 0;color:var(--op-muted);font-size:13.5px;line-height:1.6}
.ahec-workspace .ahec-portal-operations .ops-status-card .ops-status-programmes{color:#314d62}

/* Tables: theme overrides stay outside the scroll wrapper. */
.ahec-workspace .ahec-portal-operations .table-wrap{width:100%;max-width:100%;margin:0 0 5px;overflow-x:auto;border:1px solid var(--op-line);border-radius:12px;-webkit-overflow-scrolling:touch}
.ahec-workspace .ahec-portal-operations .ops-section table,.ahec-workspace .ahec-portal-operations .ops-section table.ahec-table{display:table;width:100%;min-width:560px;margin:0;border:0;border-collapse:collapse;overflow:visible;font-size:13.5px}
.ahec-workspace .ahec-portal-operations .ops-section table.detail-table{min-width:0}
.ahec-workspace .ahec-portal-operations .ahec-table thead{display:table-header-group}
.ahec-workspace .ahec-portal-operations .ahec-table tbody{display:table-row-group}
.ahec-workspace .ahec-portal-operations .ahec-table tr{display:table-row}
.ahec-workspace .ahec-portal-operations .ahec-table th,.ahec-workspace .ahec-portal-operations .ahec-table td{display:table-cell;padding:12px 14px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:middle;overflow-wrap:normal;word-break:normal}
.ahec-workspace .ahec-portal-operations .ahec-table th{background:#f5f8fb;color:#51657a;font:700 10.5px/1.35 system-ui,sans-serif;letter-spacing:.065em;text-transform:uppercase;white-space:nowrap}
.ahec-workspace .ahec-portal-operations .ahec-table tbody tr:last-child td{border-bottom:0}
.ahec-workspace .ahec-portal-operations .ahec-table tbody tr:hover td{background:#fafcfd}
.ahec-workspace .ahec-portal-operations .ahec-table td code{padding:2px 6px;border-radius:5px;background:#eef3f7;font-size:11.5px;white-space:nowrap}
.ahec-workspace .ahec-portal-operations .detail-table td:first-child{width:34%;color:var(--op-muted);font-weight:600}
.ahec-workspace .ahec-portal-operations .badge{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border-radius:99px;font-size:11px;font-weight:700;line-height:1.35;white-space:normal}

/* Credit cards, notices and actions */
.ahec-workspace .ahec-portal-operations .ops-credit-card{margin:0 0 18px;padding:clamp(15px,2.5vw,22px);border:1px solid var(--op-line);border-radius:16px;background:#fff}
.ahec-workspace .ahec-portal-operations .ops-credit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.ahec-workspace .ahec-portal-operations .ops-credit-head h4{margin:6px 0 0;color:var(--op-ink);font-size:17px}
.ahec-workspace .ahec-portal-operations .ops-code{display:inline-block;padding:3px 8px;border-radius:6px;background:#132642;color:#fff;font:700 10.5px/1.4 system-ui,sans-serif;letter-spacing:.04em}
.ahec-workspace .ahec-portal-operations .ops-meter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:13px;border-radius:12px;background:#f5f8fb}
.ahec-workspace .ahec-portal-operations .ops-meter dt{color:var(--op-muted);font-size:11px}
.ahec-workspace .ahec-portal-operations .ops-meter dd{margin:3px 0 0;color:var(--op-ink);font:750 23px/1.1 system-ui,sans-serif}
.ahec-workspace .ahec-portal-operations .is-used{color:#a83b13!important}
.ahec-workspace .ahec-portal-operations .is-left{color:#087650!important;font-weight:700}
.ahec-workspace .ahec-portal-operations .ahec-notice-box{padding:16px 18px;border:1px dashed #cfd9e1;border-radius:12px;background:#f8fafb;color:var(--op-muted);line-height:1.6}
.ahec-workspace .ahec-portal-operations .ahec-notice-box p{margin:0}
.ahec-workspace .ahec-portal-operations .btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1.5px solid transparent;border-radius:9px;font:650 12.5px/1.3 system-ui,sans-serif;text-align:center;text-decoration:none;cursor:pointer}
.ahec-workspace .ahec-portal-operations .btn-navy{background:#132642;color:#fff}
.ahec-workspace .ahec-portal-operations .btn-navy:hover{background:#0b1a30;color:#fff}
.ahec-workspace .ahec-portal-operations .btn-outline-navy{border-color:#132642;background:transparent;color:#132642}
.ahec-workspace .ahec-portal-operations .btn-outline-gold{border-color:var(--op-gold);background:transparent;color:#70530d}
.ahec-workspace .ahec-portal-operations .btn-outline-gold:hover{background:var(--op-gold-soft)}
.ahec-workspace .ahec-portal-operations ul{margin:0;padding-left:0;list-style:none}
.ahec-workspace .ahec-portal-operations ul>li{padding:11px 0;border-bottom:1px solid #edf1f5;line-height:1.55}
.ahec-workspace .ahec-portal-operations .activity-date{display:inline-block;margin-right:8px;color:#725914;font-size:12px;font-weight:700}
.ahec-workspace .ahec-portal-operations a{overflow-wrap:anywhere}

@media(max-width:1000px){.ahec-workspace .ahec-portal-operations .portal-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.ahec-workspace .partner-portal.ahec-portal-operations>.portal-nav{top:0}.ahec-workspace .ahec-operations-hero{border-radius:17px}.ahec-workspace .ahec-portal-operations .portal-stats-row{gap:9px}.ahec-workspace .ahec-portal-operations .portal-stat{padding:14px}.ahec-workspace .ahec-portal-operations .portal-quick-actions{grid-template-columns:1fr}}
@media(max-width:560px){.ahec-workspace .ahec-operations-hero{padding:19px}.ahec-workspace .ahec-operations-hero-top{align-items:flex-start;margin-bottom:17px}.ahec-workspace .ahec-portal-operations>.portal-nav{margin-bottom:12px;padding:5px}.ahec-workspace .ahec-portal-operations .pnav-btn{min-height:42px;padding:9px 11px;font-size:12px}.ahec-workspace .partner-portal.ahec-portal-operations>.portal-panel{padding:15px;border-radius:14px}.ahec-workspace .ahec-portal-operations .portal-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ahec-workspace .ahec-portal-operations .portal-stat .num{font-size:25px}.ahec-workspace .ahec-portal-operations .ops-status-card{grid-template-columns:34px minmax(0,1fr);gap:10px;padding:13px}.ahec-workspace .ahec-portal-operations .ops-status-mark{width:32px;height:32px;font-size:16px}.ahec-workspace .ahec-portal-operations .ops-meter{gap:6px;padding:10px}.ahec-workspace .ahec-portal-operations .ops-meter dd{font-size:19px}.ahec-workspace .ahec-portal-operations .ahec-table th,.ahec-workspace .ahec-portal-operations .ahec-table td{padding:10px 11px}}
@media(prefers-reduced-motion:reduce){.ahec-workspace .ahec-portal-operations *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
