/* RODH-IT School Manager — admin UI */
:root{--rodh-brand:#582D8D;--rodh-brand2:#31499E}
#wpbody-content .rodh-head{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;
  background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2));color:#fff;padding:16px 20px;border-radius:14px;margin:18px 20px 0 0}
.rodh-head-l{display:flex;align-items:center;gap:12px}
.rodh-head h1{color:#fff;margin:0;font-size:21px;line-height:1.2}
.rodh-head span{font-size:12.5px;opacity:.85}
.rodh-logo{max-height:38px;background:#fff;border-radius:8px;padding:3px}
.rodh-head .button{border:0}
.rodh-wrap{margin:16px 20px 40px 0;max-width:1400px}
.rodh-card{background:#fff;border:1px solid #e3e1ee;border-radius:14px;padding:18px;margin-bottom:16px}
.rodh-card h2{margin-top:0;font-size:17px}
.rodh-2col{display:grid;gap:16px}
@media(min-width:1100px){.rodh-2col{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rodh-grid2,.rodh-grid3{display:grid;gap:0 16px}
@media(min-width:700px){.rodh-grid2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:900px){.rodh-grid3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.rodh-f{display:flex;flex-direction:column;gap:5px;margin:0 0 14px}
.rodh-f label{font-weight:600;font-size:13px}
.rodh-f label em{color:#c00;font-style:normal}
.rodh-f input,.rodh-f select,.rodh-f textarea{width:100%;border-radius:9px;border:1px solid #d5d2e4;padding:7px 10px}
.rodh-hint{font-size:11.8px;color:#6b6880;font-style:normal}
.rodh-media{display:flex;gap:6px}
.rodh-stats{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
@media(min-width:900px){.rodh-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.rodh-stat{background:#fff;border:1px solid #e3e1ee;border-radius:12px;padding:14px}
.rodh-stat span{display:block;font-size:12.5px;color:#6b6880}
.rodh-stat b{font-size:22px;color:var(--rodh-brand)}
.rodh-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;align-items:center}
.rodh-filters select,.rodh-filters input{border-radius:9px;border:1px solid #d5d2e4;padding:6px 10px}
.rodh-exports{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 12px;font-size:12.5px;color:#6b6880}
.rodh-table td,.widefat td{vertical-align:middle}
.rodh-acts{white-space:nowrap}
.rodh-danger{color:#a4262c!important;border-color:#e3b3b5!important}
.rodh-pill{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:999px}
.rodh-pill.ok{background:#e3f5ec;color:#116b43}
.rodh-pill.bad{background:#fbe6e6;color:#a4262c}
.rodh-pill.warn{background:#fdf3d8;color:#8a6200}
.rodh-bars{display:flex;align-items:flex-end;gap:10px;height:170px;padding:12px;background:#f6f5fb;border-radius:12px}
.rodh-bars div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}
.rodh-bars i{width:100%;background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2));border-radius:6px 6px 3px 3px}
.rodh-bars span{font-size:11px;color:#6b6880}
.rodh-bars em{font-size:10.5px;color:#9a97ab;font-style:normal}
.rodh-quick{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.rodh-quick-i{background:#f6f5fb;border:1px solid #e3e1ee;border-radius:10px;padding:10px 12px;text-decoration:none;font-weight:600;font-size:13px}
.rodh-att label{margin-right:10px;font-size:12.5px}
.rodh-att .rodh-sP{color:#116b43}.rodh-att .rodh-sA{color:#a4262c}.rodh-att .rodh-sL{color:#8a6200}
.rodh-mark{width:90px}
.rodh-idgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin-bottom:18px}
.rodh-idcard{background:#fff;border:1px solid #ddd;border-radius:12px;overflow:hidden}
.rodh-idcard .t{background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2));color:#fff;text-align:center;padding:8px;font-size:12px;font-weight:700}
.rodh-idcard .b{display:flex;gap:10px;padding:12px;align-items:center}
.rodh-idcard .qr{width:64px;height:64px;flex:0 0 auto}
.rodh-idcard .i{font-size:11.5px;line-height:1.55}
.rodh-idcard .i b{display:block;font-size:13.5px}
.rodh-idcard .f{border-top:1px dashed #ddd;padding:6px;font-size:10.5px;text-align:center;color:#777}
.rodh-modal{display:none;position:fixed;inset:0;background:rgba(20,12,40,.55);z-index:9999;align-items:center;justify-content:center;padding:16px}
.rodh-modal.open{display:flex}
.rodh-modal-box{background:#fff;border-radius:14px;padding:20px;max-width:640px;width:100%;max-height:88vh;overflow:auto}
.rodh-strong{font-weight:700;font-size:15px}
.rodh-permrow{border:1px solid #eee;border-radius:10px;padding:12px;margin-bottom:10px}
.rodh-permrow h4{margin:0 0 8px}
.rodh-permrow h4 span{font-weight:400;color:#777;font-size:12px}
.rodh-caps{display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));margin-bottom:10px;font-size:12.6px}
.rodh-check{list-style:none;margin:0;padding:0}
.rodh-check li{padding:7px 0;border-bottom:1px solid #f0eff5;font-size:13.5px}
.rodh-check li.ok{color:#116b43}.rodh-check li.bad{color:#a4262c}
.rodh-items input{width:100%}
.rodh-classes input{width:100%}
@media(max-width:782px){.rodh-wrap,.rodh-head{margin-right:10px}.rodh-quick{grid-template-columns:1fr}}

/* ---- v1.1: switcher, demo bar, responsive tables ---- */
.rodh-switcher{display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#fff;border:1px solid #e3e1ee;border-left:4px solid var(--rodh-brand);border-radius:10px;padding:8px 12px;margin:14px 20px 0 0;font-size:13px}
.rodh-switcher span{color:#6b6880;margin-right:4px}
.rodh-switcher a{text-decoration:none;padding:4px 12px;border-radius:999px;background:#f2f0f9;color:#4a4560}
.rodh-switcher a.on{background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2));color:#fff}
.rodh-demo-bar{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;background:linear-gradient(135deg,#b3261e,#7a1c17);color:#fff;border-radius:10px;padding:10px 14px;margin:14px 20px 0 0}
.rodh-demo-bar b{background:rgba(255,255,255,.18);padding:3px 12px;border-radius:999px;font-size:12.5px;letter-spacing:.5px}
.rodh-demo-bar span{font-size:13px;opacity:.95}
.rodh-demo-bar a{margin-left:auto;background:#fff;color:#7a1c17;padding:6px 14px;border-radius:9px;font-weight:700;text-decoration:none;font-size:13px}
.rodh-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.rodh-scroll table{min-width:620px}
.rodh-details{margin-top:6px}
.rodh-details summary{cursor:pointer;font-size:12.5px;color:var(--rodh-brand)}
.rodh-details form{background:#f8f7fc;border:1px solid #e3e1ee;border-radius:10px;padding:12px;margin-top:8px;max-width:420px}
.rodh-copy{width:100%;font-family:monospace;font-size:11.5px;padding:7px 9px;border-radius:8px;border:1px solid #d5d2e4;background:#fff}
@media(max-width:782px){
	.rodh-head{flex-direction:column;align-items:flex-start}
	.rodh-head-r{display:flex;flex-wrap:wrap;gap:6px}
	.rodh-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
	.rodh-grid2,.rodh-grid3{grid-template-columns:1fr}
	.rodh-filters{flex-direction:column;align-items:stretch}
	.rodh-filters select,.rodh-filters input,.rodh-filters .button{width:100%}
	.rodh-acts{display:flex;flex-wrap:wrap;gap:4px}
	.rodh-switcher,.rodh-demo-bar{margin-right:10px}
	.rodh-idgrid{grid-template-columns:1fr}
}
@media(max-width:480px){.rodh-stats{grid-template-columns:1fr}.rodh-bars{height:140px}}
.rodh-planedit{background:#f8f7fc;border:1px solid #e3e1ee;border-radius:12px;padding:14px}
.rodh-planedit textarea{width:100%}

/* design picker */
.rodh-designs{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.rodh-design{background:#fff;border:1px solid #e3e1ee;border-radius:14px;padding:14px}
.rodh-design.on{border-color:var(--rodh-brand);box-shadow:0 10px 26px rgba(88,45,141,.14)}
.rodh-design h3{margin:12px 0 4px;font-size:15.5px}
.rodh-design p{margin:0 0 8px;font-size:13px;color:#5d5675}
.rodh-thumb{height:104px;border-radius:10px;background:#f2f0f9;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:5px;padding:12px}
.rodh-thumb span{display:block;border-radius:4px;background:#d8d3e9}
.rodh-thumb .b1{height:14px;width:62%}
.rodh-thumb .b2{height:8px;width:82%}
.rodh-thumb .b3{height:26px;width:46%;background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2))}
.rodh-thumb .b4{height:22px;width:100%;margin-top:auto;background:#e6e2f2}
.rodh-thumb.t2,.rodh-thumb.t10{align-items:center;text-align:center}
.rodh-thumb.t3{background:linear-gradient(140deg,#1a1230,#2b1c52)}
.rodh-thumb.t3 span{background:rgba(255,255,255,.28)}
.rodh-thumb.t4{background:#fff;border:1px solid #eee}
.rodh-thumb.t5{background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2))}
.rodh-thumb.t5 span{background:rgba(255,255,255,.35)}
.rodh-thumb.t5 .b3{background:#fff}
.rodh-thumb.t6 .b3{width:70px;height:56px;border-radius:12px;align-self:flex-end;margin-top:-30px}
.rodh-thumb.t7{background:#eef3ff}
.rodh-thumb.t7 .b3{background:linear-gradient(135deg,#1e3a8a,#2563eb)}
.rodh-thumb.t8{background:#fdf6ec}
.rodh-thumb.t8 .b3{background:linear-gradient(135deg,#8a4b1f,#b3733a)}
.rodh-thumb.t9 .b4{width:40%;margin-left:auto;height:60px;margin-top:-40px}
.rodh-thumb.t10 .b4{background:linear-gradient(135deg,var(--rodh-brand),var(--rodh-brand2))}

.rodh-pmlist{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.rodh-pmrow{background:#f8f7fc;border:1px solid #e3e1ee;border-radius:12px;padding:14px}
.rodh-pmprev{margin-bottom:10px;min-height:38px;display:flex;align-items:center}
.rodh-pmon{display:inline-flex;gap:6px;align-items:center;font-size:13px;font-weight:600}
.rodh-paylogo{display:inline-block;border-radius:8px;object-fit:contain}
.rodh-paylogo.md{height:34px;max-width:92px}
.rodh-paylogo.chip{display:inline-flex;align-items:center;justify-content:center;background:var(--pc);color:#fff;font-weight:800}
.rodh-paylogo.chip.md{width:46px;height:34px;font-size:14px}
.rodh-ccolors{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.rodh-ccolors label{display:flex;align-items:center;gap:6px;background:#f6f5fb;border:1px solid #e3e1ee;border-radius:10px;padding:6px 10px;font-size:13px}

.rodh-json{width:100%;font-family:ui-monospace,monospace;font-size:12.5px;line-height:1.55}
.rodh-wa{display:inline-flex;align-items:center;gap:6px;background:#1a9e52;color:#fff;border-radius:9px;padding:5px 11px;font-size:12.6px;font-weight:600;text-decoration:none}
.rodh-seclist{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-bottom:14px}
.rodh-secrow{display:flex;align-items:center;gap:9px;background:#f8f7fc;border:1px solid #e3e1ee;border-radius:10px;padding:9px 12px;font-size:13.5px}
.rodh-secrow span{flex:1}
.rodh-secrow input[type=number]{width:62px}
.rodh-walist{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-top:10px}
.rodh-warow{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8f7fc;border:1px solid #e3e1ee;border-radius:10px;padding:8px 12px;font-size:13.5px}
