/* custom-software: page rules only; shared rules live in svc-base.css */

/* ===== Custom web app (cx-) page, 14 Nov: every window is a screen of "Sejuk Portal" ===== */
.cxdb{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-height:0;flex:1 1 auto}
.cxco{display:flex;flex-direction:column;gap:5px;padding:6px;border-radius:10px;background:#f7f8fb;min-width:0}
.cxco>small{display:flex;align-items:center;gap:5px;font-size:9.5px;font-weight:800;color:#334155;padding:1px 2px 2px;white-space:nowrap}
.cxco>small .crav{width:18px;height:18px}.cxco>small em{font-style:normal;font-size:9px;padding:0 6px;border-radius:99px;background:#fef3c7;color:#92400e}
.cxj{position:relative;display:grid;gap:1px;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #e6eaf1;box-shadow:0 1px 2px rgba(16,24,40,.04);min-width:0;flex:1 1 0;max-height:58px;align-content:center}
.cxj b{font-size:9px;color:#1f5bff}.cxj span{font-size:10.5px;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cxj small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cxj.cxnew{border-color:#fcd34d;background:#fffbeb;flex:0 0 auto;height:52px}
.cxj.cxsl{background:transparent;border:1.5px dashed #cbd5e1;box-shadow:none;place-items:center;flex:0 0 auto;height:52px}.cxsl small{font-weight:700;color:#94a3b8}
.cxft{text-align:center}
.ertm .igtr .cxam{background:#fef3c7;color:#92400e}
@media (prefers-reduced-motion:no-preference){.cxbk .nqch .nqk{animation:cxsel 8s steps(1) infinite}.cxdb .cxsl{animation:cxslt 9s steps(1) infinite}}
@keyframes cxsel{0%,39%{background:#fff;border-color:#e6eaf1;color:#475569}40%,100%{background:#1f5bff;border-color:#1f5bff;color:#fff}}
@keyframes cxslt{0%,51%{opacity:1}52%,90%{opacity:0}91%,100%{opacity:1}}
.cxbk,.cxex{justify-content:space-between;overflow:hidden}
/* screen map */
.cxsm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr) auto;gap:8px;min-height:0}
.cxsc{display:flex;flex-direction:column;gap:5px;padding:7px;border-radius:10px;background:#fbfcfe radial-gradient(#e3e8f1 1px,transparent 1.2px) 0 0/14px 14px;border:1px solid #eef1f5;min-width:0}
.cxsc>small{font-size:9px;font-weight:800;color:var(--muted)}
.cxsc>span,.cxtr>span{display:flex;align-items:center;height:28px;flex:none;padding:0 9px;border-radius:7px;background:#fff;border:1px solid #e6eaf1;font-size:10px;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;box-sizing:border-box}
.cxsc>.cxsl2{border:1.5px dashed #cbd5e1;color:#94a3b8;justify-content:center;background:transparent}
.cxtr{grid-column:1/3;display:flex;align-items:center;gap:6px}.cxtr>small{font-size:9px;font-weight:800;color:var(--muted)}
.cxtr>span{width:110px;border-color:#cddbff;color:#1f5bff;position:relative}.cxtr>span.g{color:#94a3b8;border-color:#e6eaf1;width:auto}
.cxmf{display:grid;justify-items:end;align-self:center}.cxmf b{font-size:11px;color:#0f172a}.cxmf small{font-size:9px;color:var(--muted)}
@media (prefers-reduced-motion:no-preference){.pjd:not([hidden]) .cxsl2{animation:cxslt 9s steps(1) infinite}}
/* designs */
.cxds{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:hidden;min-height:0}
.cxth{display:flex;flex-direction:column;gap:6px;min-width:0}
.cxtf{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;padding:12px 14px;border-radius:10px;background:#f7f8fb;border:1px solid #eef1f5;min-height:0}
.cxtf .nqsk{gap:6px;padding:10px;border-radius:8px;background:#fff;box-shadow:0 2px 6px rgba(16,24,40,.06)}
.cxtf .nqch>span{padding:2px 7px;font-size:8.5px}
.cxtl{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none}.cxtl b{font-size:10.5px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cxtl .nqb{padding:4px 9px;font-size:9.5px}
.cxpk .cxtf{border-color:#9bb5ff;box-shadow:inset 0 0 0 1px #9bb5ff}
/* UI kit */
.cxkit{justify-content:space-between}.cxkl{font-size:9px;font-weight:800;color:var(--muted)}
.cxsw{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.cxsw i{height:26px;border-radius:7px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)}
.nqb.cxp{background:#0e7490}.nqb.cxd{background:#e2e8f0;color:#94a3b8}
.cxin{box-shadow:0 0 0 3px #ecfeff;border-color:#67e8f9}
@media (max-width:640px){.cxdb{grid-template-columns:repeat(2,minmax(0,1fr))}.cxdb>.cxco:nth-child(4){display:none}
.cxsm{grid-template-columns:repeat(2,minmax(0,1fr))}.cxsm>.cxsc:nth-child(2){display:none}.cxmf{grid-column:1/3;justify-items:start}
.cxds{grid-template-columns:repeat(2,minmax(0,1fr))}.cxds>.cxth:nth-child(3){display:none}}
/* cx marker 14nov */
.cxtl{min-height:26px}
.cxsc>span{text-overflow:ellipsis}@media (max-width:360px){.cxsc>span{font-size:9px;padding:0 6px}}
/* role switcher (replaces role tiles) */
.cxrs{gap:8px}
.cxrt{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:9px;background:#f1f5f9;flex:none}
.cxrt>span{text-align:center;font-size:10px;font-weight:700;color:#64748b;padding:6px 4px;border-radius:7px}
.cxrt>span.on{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(16,24,40,.1)}
.cxrt>span.nqk{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(16,24,40,.1)}
@media (prefers-reduced-motion:no-preference){.cxrt>span.on{animation:cxro 8s steps(1) infinite}.cxrt>span.nqk{animation:cxrk 8s steps(1) infinite}}
@keyframes cxro{0%,50%{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(16,24,40,.1)}51%,100%{background:transparent;color:#64748b;box-shadow:none}}
@keyframes cxrk{0%,50%{background:transparent;color:#64748b;box-shadow:none}51%,100%{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(16,24,40,.1)}}
.cxrp{flex:1 1 auto;display:flex;flex-direction:column;gap:5px;padding:9px;border-radius:10px;border:1px solid #eef1f5;background:#fbfcfe;min-height:0}
.cxrp>small{font-size:9px;font-weight:800;color:var(--muted)}
.cxrl{display:grid!important;flex:1 1 auto}.cxrl>span{display:grid;align-content:start;gap:5px}
.cxrl p{display:flex;align-items:center;gap:8px;margin:0!important;padding:5px 7px!important;border-radius:8px;background:#fff;border:1px solid #eef1f5;font-size:10.5px!important}
.cxrl p b{font-size:10.5px;color:#0f172a}.cxrl p.x{opacity:.5}.cxrl .nqi{width:22px;height:22px}.cxrl .nqi svg{width:11px;height:11px}
/* jobs calendar heatmap */
.cxhm{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;min-height:0}
.cxhg{display:flex;flex-direction:column;gap:6px;min-height:0}.cxhg>small,.cxar>small{font-size:9px;font-weight:800;color:var(--muted)}
.cxcal{flex:1 1 auto;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:1fr;gap:4px}
.cxcal i{position:relative;border-radius:6px;background:#eef2f8;min-height:22px}
.cxcal i u{position:absolute;left:4px;top:3px;text-decoration:none;font-size:8.5px;font-weight:700;color:#64748b}
.cxcal .l1{background:#dbe5ff}.cxcal .l2{background:#9bb5ff}.cxcal .l3{background:#4d7dff}.cxcal .l4{background:#1f5bff}
.cxcal .l3 u,.cxcal .l4 u{color:#fff}
.cxlg{display:flex;align-items:center;gap:4px;justify-content:flex-end}.cxlg small{font-size:8.5px;color:var(--muted)}.cxlg i{width:12px;height:12px;border-radius:3px}
.cxlg .l1{background:#dbe5ff}.cxlg .l2{background:#9bb5ff}.cxlg .l3{background:#4d7dff}.cxlg .l4{background:#1f5bff}
.cxar{display:flex;flex-direction:column;gap:6px;min-height:0}
@media (prefers-reduced-motion:no-preference){.cxcal i{animation:igem 8s ease infinite}.cxcal i:nth-child(2n){animation-delay:.15s}.cxcal i:nth-child(3n){animation-delay:.3s}}
@media (max-width:640px){.cxhm{grid-template-columns:minmax(0,1fr)}.cxcal i{min-height:18px}}
/* browser prototype with hotspot */
.cxpr .nqbw{flex:1 1 auto}
.cxpv{display:flex;flex-direction:column;gap:8px;padding:12px;justify-content:center}
.cxps{display:flex;gap:5px}.cxps span{flex:1;text-align:center;font-size:10px;font-weight:700;padding:6px 0;border-radius:7px;border:1px solid #e6eaf1;color:#475569}
.cxps span.on{background:#0e7490;border-color:#0e7490;color:#fff}
.cxhs{position:relative;align-self:flex-end;font-size:10px;font-weight:800;padding:7px 18px;border-radius:8px;background:#0e7490;color:#fff;box-shadow:0 0 0 3px #fff,0 0 0 5px #1f5bff}
@media (prefers-reduced-motion:no-preference){.cxhs{animation:cxhs 1.6s ease-in-out infinite}}
@keyframes cxhs{0%,100%{box-shadow:0 0 0 3px #fff,0 0 0 5px rgba(31,91,255,.9)}50%{box-shadow:0 0 0 3px #fff,0 0 0 8px rgba(31,91,255,.25)}}
/* dark:auto (tools/build_dark.py) */
@keyframes cxsel-dk{0%,39%{background:#131824;border-color:#374762;color:#c6cdd8}40%,100%{background:#1f5bff;border-color:#1f5bff;color:#fff}}
@keyframes cxro-dk{0%,50%{background:#131824;color:#d5ddf0;box-shadow:0 1px 3px rgba(16,24,40,.1)}51%,100%{background:transparent;color:#a3abb8;box-shadow:none}}
@keyframes cxrk-dk{0%,50%{background:transparent;color:#a3abb8;box-shadow:none}51%,100%{background:#131824;color:#d5ddf0;box-shadow:0 1px 3px rgba(16,24,40,.1)}}
@media (prefers-reduced-motion:no-preference){:where(:root[data-theme="dark"]) .cxbk .nqch .nqk{animation:cxsel-dk 8s steps(1) infinite}:where(:root[data-theme="dark"]) .cxrt>span.on{animation:cxro-dk 8s steps(1) infinite}:where(:root[data-theme="dark"]) .cxrt>span.nqk{animation:cxrk-dk 8s steps(1) infinite}}
:where(:root[data-theme="dark"]) .cxco{background:#1d243a}:where(:root[data-theme="dark"]) .cxco>small{color:#c6cdd8}:where(:root[data-theme="dark"]) .cxco>small em{background:#433a14;color:#f3a97d}:where(:root[data-theme="dark"]) .cxj{background:#131824;border:1px solid #374762}:where(:root[data-theme="dark"]) .cxj b{color:#7b9bf4}:where(:root[data-theme="dark"]) .cxj span{color:#d5ddf0}:where(:root[data-theme="dark"]) .cxj.cxnew{border-color:#736126;background:#433a14}:where(:root[data-theme="dark"]) .cxj.cxsl{border:1.5px dashed #384b61}:where(:root[data-theme="dark"]) .ertm .igtr .cxam{background:#433a14;color:#f3a97d}:where(:root[data-theme="dark"]) .cxsc{background:#131824 radial-gradient(#1d273a 1px,transparent 1.2px) 0 0/14px 14px;border:1px solid #394a60}:where(:root[data-theme="dark"]) .cxsc>span,:where(:root[data-theme="dark"]) .cxtr>span{background:#131824;border:1px solid #374762;color:#d5ddf0}:where(:root[data-theme="dark"]) .cxsc>.cxsl2{border:1.5px dashed #384b61}:where(:root[data-theme="dark"]) .cxtr>span{border-color:#263c73;color:#7b9bf4}:where(:root[data-theme="dark"]) .cxtr>span.g{border-color:#374762}:where(:root[data-theme="dark"]) .cxmf b{color:#d5ddf0}:where(:root[data-theme="dark"]) .cxtf{background:#1d243a;border:1px solid #394a60}:where(:root[data-theme="dark"]) .cxtf .nqsk{background:#131824}:where(:root[data-theme="dark"]) .cxtl b{color:#d5ddf0}:where(:root[data-theme="dark"]) .nqb.cxd{background:#1e2939}:where(:root[data-theme="dark"]) .cxin{border-color:#266a73}:where(:root[data-theme="dark"]) .cxrt{background:#1a2b3d}:where(:root[data-theme="dark"]) .cxrt>span{color:#a3abb8}:where(:root[data-theme="dark"]) .cxrt>span.on{background:#131824;color:#d5ddf0}:where(:root[data-theme="dark"]) .cxrt>span.nqk{background:#131824;color:#d5ddf0}:where(:root[data-theme="dark"]) .cxrp{border:1px solid #394a60;background:#131824}:where(:root[data-theme="dark"]) .cxrl p{background:#131824;border:1px solid #394a60}:where(:root[data-theme="dark"]) .cxrl p b{color:#d5ddf0}:where(:root[data-theme="dark"]) .cxcal i{background:#19283d}:where(:root[data-theme="dark"]) .cxcal i u{color:#a3abb8}:where(:root[data-theme="dark"]) .cxcal .l1{background:#142143}:where(:root[data-theme="dark"]) .cxlg .l1{background:#142143}:where(:root[data-theme="dark"]) .cxps span{border:1px solid #374762;color:#c6cdd8}
/* /dark:auto */
