/* Head Office System Test Centre and governed Settings workspace. */
body.ops-tailwind .system-control-page{display:grid;gap:20px}
body.ops-tailwind .system-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.ops-tailwind .system-control-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
body.ops-tailwind .system-setting-section{border:1px solid var(--ja-border,var(--px-border));border-radius:16px;background:var(--ja-surface,var(--px-card));overflow:hidden;box-shadow:var(--ja-shadow-sm,var(--px-shadow-sm))}
body.ops-tailwind .system-setting-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 18px;border-bottom:1px solid var(--ja-border,var(--px-border));background:var(--ja-surface,var(--px-card))}
body.ops-tailwind .system-setting-section>header h2{margin:0;font-size:16px}
body.ops-tailwind .system-setting-section>header p{margin:4px 0 0;font-size:12px}
body.ops-tailwind .system-setting-body{display:grid;gap:12px;padding:16px 18px}
body.ops-tailwind .system-toggle-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--ja-border,var(--px-border))}
body.ops-tailwind .system-toggle-row:last-child{border-bottom:0}
body.ops-tailwind .system-toggle-copy{min-width:0}
body.ops-tailwind .system-toggle-copy strong{display:block;color:var(--ja-text,var(--px-foreground));font-size:13px}
body.ops-tailwind .system-toggle-copy small{display:block;margin-top:3px;color:var(--ja-muted,var(--px-muted-foreground));font-size:11px;line-height:1.45}
body.ops-tailwind .system-switch{position:relative;flex:0 0 42px;width:42px;height:24px}
body.ops-tailwind .system-switch input{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;opacity:0;cursor:pointer}
body.ops-tailwind .system-switch span{display:block;width:42px;height:24px;border-radius:999px;background:var(--ja-surface-muted,var(--px-muted));box-shadow:inset 0 0 0 1px var(--ja-border-strong,var(--px-border));transition:.16s ease}
body.ops-tailwind .system-switch span::after{content:"";display:block;width:18px;height:18px;margin:3px;border-radius:999px;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.28);transition:.16s ease}
body.ops-tailwind .system-switch input:checked+span{background:var(--ja-blue,var(--px-primary));box-shadow:none}
body.ops-tailwind .system-switch input:checked+span::after{transform:translateX(18px)}
body.ops-tailwind .system-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.ops-tailwind .system-policy-list{display:grid;gap:10px}
body.ops-tailwind .system-policy-item{display:flex;gap:12px;padding:13px 14px;border:1px solid var(--ja-border,var(--px-border));border-radius:12px;background:var(--ja-surface-subtle,var(--px-muted))}
body.ops-tailwind .system-policy-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:var(--ja-blue-soft,var(--px-accent));color:var(--ja-blue,var(--px-primary));font-weight:900}
body.ops-tailwind .system-policy-item strong{display:block;font-size:12px}
body.ops-tailwind .system-policy-item small{display:block;margin-top:3px;font-size:11px;line-height:1.45}
body.ops-tailwind .service-test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.ops-tailwind .service-test-card{display:flex;min-width:0;min-height:220px;flex-direction:column;padding:17px;border:1px solid var(--ja-border,var(--px-border));border-radius:15px;background:var(--ja-surface,var(--px-card));box-shadow:var(--ja-shadow-sm,var(--px-shadow-sm))}
body.ops-tailwind .service-test-card[data-status="passed"]{border-top:4px solid var(--ja-green,#16a34a)}
body.ops-tailwind .service-test-card[data-status="warning"]{border-top:4px solid var(--ja-amber,#d97706)}
body.ops-tailwind .service-test-card[data-status="failed"]{border-top:4px solid var(--ja-red,#dc2626)}
body.ops-tailwind .service-test-card[data-status="not-run"]{border-top:4px solid var(--ja-border-strong,var(--px-border))}
body.ops-tailwind .service-test-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
body.ops-tailwind .service-test-heading h3{margin:0;font-size:14px}
body.ops-tailwind .service-test-category{display:block;margin-top:3px;color:var(--ja-muted,var(--px-muted-foreground));font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body.ops-tailwind .service-test-description{margin:12px 0 0;font-size:12px;line-height:1.55}
body.ops-tailwind .service-test-result{margin-top:13px;padding:11px 12px;border-radius:10px;background:var(--ja-surface-subtle,var(--px-muted));font-size:11px;line-height:1.45}
body.ops-tailwind .service-test-result strong{display:block;margin-bottom:3px;font-size:11px}
body.ops-tailwind .service-test-actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:14px}
body.ops-tailwind .service-test-meta{margin-left:auto;color:var(--ja-muted,var(--px-muted-foreground));font-size:10px;text-align:right}
body.ops-tailwind .system-mode-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--ja-border,var(--px-border));border-radius:14px;background:var(--ja-surface,var(--px-card))}
body.ops-tailwind .system-mode-banner[data-mode="read_only"]{border-color:color-mix(in srgb,var(--ja-amber,#d97706) 35%,var(--ja-border));background:var(--ja-amber-soft,#fffbeb)}
body.ops-tailwind .system-mode-banner[data-mode="maintenance"]{border-color:color-mix(in srgb,var(--ja-red,#dc2626) 35%,var(--ja-border));background:var(--ja-red-soft,#fef2f2)}
body.ops-tailwind .system-change-list{display:grid;gap:0}
body.ops-tailwind .system-change-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,.65fr) minmax(140px,.65fr);gap:14px;padding:12px 0;border-bottom:1px solid var(--ja-border,var(--px-border));font-size:11px}
body.ops-tailwind .system-change-row:last-child{border-bottom:0}
body.ops-tailwind .system-change-row strong{overflow-wrap:anywhere}
@media(max-width:1180px){body.ops-tailwind .service-test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.ops-tailwind .system-control-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){body.ops-tailwind .system-control-grid,body.ops-tailwind .system-control-grid.three,body.ops-tailwind .service-test-grid,body.ops-tailwind .system-field-grid{grid-template-columns:1fr}body.ops-tailwind .system-mode-banner{align-items:flex-start;flex-direction:column}body.ops-tailwind .system-change-row{grid-template-columns:1fr;gap:4px}}
