/* MINIONS FC — Control Center: professional minimal theme (v0.19.0)
 * Loads after mfc-modern.css and mfc-v3.css and only touches .mfc-control (the front-end Control Center).
 * Light, flat, one accent colour (#2563eb). To roll back to the old dark look, remove the 'mfc-cc-min' style from includes/widgets.php.
 */
html body .mfc-control{--cc-bg:#f6f7f9;--cc-panel:#fff;--cc-panel2:#fff;--cc-line:#e5e7eb;--cc-text:#111827;--cc-muted:#6b7280;--cc-gold:#2563eb;--cc-green:#15803d;--cc-red:#dc2626;--m-accent:#2563eb;--m-accent-d:#1d4ed8;
  color-scheme:light;max-width:1180px;margin:14px auto;padding:clamp(12px,2vw,22px);background:#f6f7f9;color:#111827;border:1px solid #e5e7eb;border-radius:14px;box-shadow:none;
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif}
html body .mfc-control:after{display:none}

/* top bar */
html body .mfc-control .mfc-cc-top{padding:0 0 14px;margin:0 0 16px;border-bottom:1px solid #e5e7eb}
html body .mfc-control .mfc-cc-top:after{display:none}
html body .mfc-control .mfc-cc-kicker{font-size:11px;font-weight:600;letter-spacing:.08em;color:#6b7280;text-transform:uppercase}
html body .mfc-control .mfc-cc-title h2{margin:2px 0 0;font-size:22px;font-weight:650;letter-spacing:-.01em;color:#111827;text-transform:none}
html body .mfc-control .mfc-cc-who{gap:10px;color:#374151}
html body .mfc-control .mfc-cc-who strong{color:#111827;font-weight:600}
html body .mfc-control .mfc-cc-avatar{width:32px;height:32px;border-radius:50%;border:1px solid #e5e7eb}
html body .mfc-control .mfc-cc-who>a{min-height:32px;padding:6px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#374151;font-size:13px;font-weight:500;text-decoration:none}
html body .mfc-control .mfc-cc-who>a:hover{border-color:#cbd5e1;background:#f9fafb;color:#111827}

/* navigation */
html body .mfc-control .mfc-cc-layout{grid-template-columns:208px minmax(0,1fr);gap:16px}
html body .mfc-control .mfc-cc-nav{top:16px;padding:6px;gap:2px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.admin-bar html body .mfc-control .mfc-cc-nav{top:48px}
html body .mfc-control .mfc-cc-tab{padding:9px 12px;border-radius:8px;background:transparent;color:#4b5563;font-size:13.5px;font-weight:500;letter-spacing:0;text-transform:none;box-shadow:none;transform:none;transition:background .15s,color .15s}
html body .mfc-control .mfc-cc-tab:before{display:none}
html body .mfc-control .mfc-cc-tab:hover{background:#f3f4f6;color:#111827;transform:none}
html body .mfc-control .mfc-cc-tab.is-active{background:#eff6ff;color:#1d4ed8;font-weight:600;box-shadow:inset 3px 0 0 #2563eb}
html body .mfc-control .mfc-cc-ico{display:none}
html body .mfc-control .mfc-cc-lbl{overflow:visible;text-overflow:clip}
html body .mfc-control .mfc-cc-count{min-width:20px;padding:1px 7px;border-radius:99px;background:#e5e7eb;color:#374151;font-size:11px;font-weight:600}
html body .mfc-control .mfc-cc-tab.is-active .mfc-cc-count{background:#dbeafe;color:#1d4ed8}

/* cards & type */
html body .mfc-control .mfc-grid{gap:14px}
html body .mfc-control .mfc-card{padding:clamp(14px,2vw,22px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:none;animation:none;transform:none}
html body .mfc-control .mfc-card:before{display:none}
html body .mfc-control .mfc-card:hover{border-color:#e5e7eb;box-shadow:none;transform:none}
html body .mfc-control .mfc-cc-content>*{animation:none}
html body .mfc-control h3{margin:0 0 6px;font-size:17px;font-weight:650;letter-spacing:-.005em;text-transform:none;color:#111827}
html body .mfc-control h4,html body .mfc-control .mfc-cc-sub{margin:22px 0 8px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#6b7280}
html body .mfc-control h5.mfc-step{margin:24px 0 2px;padding-top:16px;border-top:1px solid #eef0f3;font-size:13.5px;font-weight:650;color:#111827}
html body .mfc-control p,html body .mfc-control .mfc-sub{color:#6b7280;font-size:13px;margin:0 0 10px}
html body .mfc-control .mfc-hint{margin:4px 0 8px;font-size:12.5px;color:#6b7280}
html body .mfc-control a{color:inherit}
html body .mfc-control label{margin:13px 0 5px;font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;color:#374151}

/* fields */
html body .mfc-control input,html body .mfc-control select,html body .mfc-control textarea{min-height:40px;padding:8px 11px;font-size:14px;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:none}
html body .mfc-control input::placeholder{color:#9ca3af}
html body .mfc-control option{background:#fff;color:#111827}
html body .mfc-control input:focus,html body .mfc-control select:focus,html body .mfc-control textarea:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
html body .mfc-control input[type=checkbox],html body .mfc-control input[type=radio]{accent-color:#2563eb}
html body .mfc-control input[type=file]{padding:7px 9px;background:#f9fafb}
html body .mfc-control .mfc-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
html body .mfc-control .mfc-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
html body .mfc-control .mfc-cols>div{min-width:0}

/* buttons */
html body .mfc-control button,html body .mfc-control .mfc-result-open{margin-top:16px;padding:9px 18px;min-height:40px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-size:13.5px;font-weight:600;letter-spacing:0;text-transform:none;box-shadow:none;filter:none;transform:none}
html body .mfc-control button:hover,html body .mfc-control .mfc-result-open:hover{background:#1d4ed8;color:#fff;filter:none;transform:none}
html body .mfc-control button:active{transform:none;background:#1e40af}
html body .mfc-control button[style*="#dc2626"]{background:#fff!important;color:#b91c1c!important;border:1px solid #fecaca;margin-top:0;padding:7px 13px;min-height:34px}
html body .mfc-control button[style*="#dc2626"]:hover{background:#fef2f2!important}
html body .mfc-control .mfc-result-open{margin:0;background:#fff;color:#111827;border:1px solid #d1d5db}
html body .mfc-control .mfc-result-open:hover{background:#f3f4f6;color:#111827}
html body .mfc-control button.is-busy{opacity:.6}
html body .mfc-control .mfc-seg{display:flex;flex-wrap:wrap;gap:2px;width:max-content;max-width:100%;margin:10px 0 6px;padding:3px;background:#f3f4f6;border-radius:10px}
html body .mfc-control .mfc-seg button{margin:0;min-height:0;padding:7px 15px;background:transparent;color:#4b5563;border-radius:8px;font-weight:600}
html body .mfc-control .mfc-seg button:hover{background:rgba(255,255,255,.6);color:#111827}
html body .mfc-control .mfc-seg button.is-on{background:#fff;color:#111827;box-shadow:0 1px 2px rgba(0,0,0,.1)}

/* tables */
html body .mfc-control .mfc-tablewrap{margin-top:10px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control table{background:transparent;color:#111827;font-size:13px}
html body .mfc-control th{padding:10px 14px;background:#f9fafb;color:#6b7280;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid #e5e7eb}
html body .mfc-control td{padding:10px 14px;color:#111827;border-bottom:1px solid #f1f5f9;white-space:normal}
html body .mfc-control tbody tr:nth-child(even) td{background:transparent}
html body .mfc-control tbody tr:hover td{background:#f9fafb}
html body .mfc-control td input[type=number]{width:60px!important;min-height:34px}
html body .mfc-control td button{margin-top:0;padding:6px 12px;min-height:34px}
html body .mfc-control a[style*="#4338ca"]{color:#2563eb!important}
html body .mfc-control nav[aria-label*="pages"] a{background:#fff!important;color:#374151!important;border:1px solid #d1d5db!important;border-radius:8px!important}
html body .mfc-control nav[aria-label*="pages"] a[style*="background:#4338ca"]{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
html body .mfc-control nav[aria-label*="pages"] span{color:#6b7280!important}
html body .mfc-control .mfc-roles-table th,html body .mfc-control .mfc-roles-table td{border-bottom:1px solid #f1f5f9}

/* overview */
html body .mfc-control .mfc-cc-stats{gap:10px}
html body .mfc-control .mfc-cc-stats>*{padding:14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;clip-path:none;color:#111827;box-shadow:none;transform:none}
html body .mfc-control .mfc-cc-stats>*:hover{transform:none;border-color:#cbd5e1}
html body .mfc-control .mfc-cc-stats strong{font-size:26px;font-weight:650;color:#111827}
html body .mfc-control .mfc-cc-stats span{margin-top:4px;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#6b7280}
html body .mfc-control .mfc-cc-stats .is-alert{background:#fef2f2;border-color:#fecaca}
html body .mfc-control .mfc-cc-stats .is-alert strong{color:#b91c1c}
html body .mfc-control .mfc-cc-actions{gap:8px}
html body .mfc-control .mfc-cc-actions a{padding:11px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;color:#111827;font-weight:500;text-decoration:none;transform:none}
html body .mfc-control .mfc-cc-actions a b{display:none}
html body .mfc-control .mfc-cc-actions a:hover{background:#f9fafb;border-color:#cbd5e1;transform:none}
html body .mfc-control .mfc-cc-list li{padding:10px 12px;background:#fff;border:1px solid #eef0f3;border-radius:8px}
html body .mfc-control .mfc-cc-list li span{color:#111827;font-weight:600}
html body .mfc-control .mfc-cc-list li em{color:#6b7280;font-size:11px;letter-spacing:0}
html body .mfc-control .mfc-cc-list li b{color:#2563eb}
html body .mfc-control .mfc-cc-list small{color:#6b7280}
html body .mfc-control .mfc-cc-list .is-empty{color:#6b7280}

/* notices */
html body .mfc-control .mfc-notice{padding:10px 13px;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;border-radius:8px;font-weight:500}
html body .mfc-control .mfc-cc-toast{padding:12px 16px;border-radius:10px;background:#111827;color:#fff;font-weight:500;font-size:13.5px;letter-spacing:0;box-shadow:0 10px 30px rgba(0,0,0,.18)}
html body .mfc-control .mfc-cc-toast.is-error{background:#b91c1c;color:#fff}
html body .mfc-control.is-saving:after{display:block;height:2px;background:linear-gradient(90deg,transparent,#2563eb,transparent)}

/* player picker + search boxes (text is always dark) */
html body .mfc-control .mfc-picker{padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-pick-search,html body .mfc-control .mfc-tbl-search{background:#fff;border:1px solid #d1d5db;border-radius:8px}
html body .mfc-control .mfc-pick-search:focus-within,html body .mfc-control .mfc-tbl-search:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
html body .mfc-control .mfc-pick-search span,html body .mfc-control .mfc-tbl-search span{color:#6b7280}
html body .mfc-control .mfc-pick-search input,html body .mfc-control .mfc-tbl-search input,html body .mfc-control input.mfc-pick-q,html body .mfc-control input.mfc-tbl-q{color:#000!important;-webkit-text-fill-color:#000;caret-color:#000;background:transparent!important}
html body .mfc-control .mfc-pick-search input::placeholder,html body .mfc-control .mfc-tbl-search input::placeholder{color:#6b7280;-webkit-text-fill-color:#6b7280}
html body .mfc-control .mfc-pick-bar button{margin:0!important;min-height:36px;padding:7px 12px!important;background:#fff!important;color:#374151!important;border:1px solid #d1d5db!important;border-radius:8px!important;font-weight:600}
html body .mfc-control .mfc-pick-bar button:hover{background:#f3f4f6!important}
html body .mfc-control .mfc-pick-bar button[aria-pressed="true"]{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
html body .mfc-control .mfc-pick-count{color:#6b7280}
html body .mfc-control .mfc-pick-count strong{color:#2563eb}
html body .mfc-control .mfc-pick-row{background:#fff;border:1px solid #e5e7eb;border-radius:8px}
html body .mfc-control .mfc-pick-row:hover{border-color:#cbd5e1}
html body .mfc-control .mfc-pick-row.is-on{background:#eff6ff;border-color:#2563eb}
html body .mfc-control .mfc-pick-name strong{color:#111827}
html body .mfc-control .mfc-pick-name small{color:#6b7280}
html body .mfc-control .mfc-pick-row select,html body .mfc-control .mfc-pick-seed{min-height:32px;color:#111827}
html body .mfc-control .mfc-pick-none,html body .mfc-control .mfc-pick-empty{background:#fffbeb;color:#92400e;border:1px solid #fde68a}

/* builders */
html body .mfc-control .mfc-plan,html body .mfc-control .mfc-ucl-summary,html body .mfc-control .mfc-ko-summary{margin:12px 0;padding:10px 12px;background:#eff6ff;color:#1e3a8a;border:1px solid #dbeafe;border-radius:8px;font-size:13px}
html body .mfc-control .mfc-ucl-card{margin-top:14px;padding:14px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-ucl-head strong{color:#111827}
html body .mfc-control .mfc-ucl-head a{color:#2563eb;font-size:13px;text-decoration:none}
html body .mfc-control .mfc-ucl-stage{background:#f3f4f6;color:#374151;font-weight:600}
html body .mfc-control .mfc-ucl-champion{color:#111827}
html body .mfc-control .mfc-ucl-next,html body .mfc-control .mfc-ucl-tie{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-ko-h{border-top:1px solid #eef0f3}
html body .mfc-control .mfc-ko-inline{margin:10px 0;font-weight:500;color:#374151}
html body .mfc-control .mfc-ko-rounds{background:#fff;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-ko-round{background:#fff;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-ko-round>summary span{background:#f3f4f6;color:#374151}
html body .mfc-control .mfc-ko-ties li{background:#f9fafb;color:#111827}
html body .mfc-control .mfc-ko-add{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-ko-ties button,html body .mfc-control .mfc-ko-del button{background:#fff!important;color:#b91c1c!important;border:1px solid #fecaca!important}
html body .mfc-control details.mfc-mt>summary{background:#f3f4f6;color:#374151;font-weight:600}
html body .mfc-control details.mfc-mt[open]>summary{background:#111827;color:#fff}
html body .mfc-control .mfc-mt-body{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px}
html body .mfc-control .mfc-mt-form label{color:#374151}
html body .mfc-control .mfc-mt-form button.is-danger{background:#fff!important;color:#b91c1c!important;border:1px solid #fecaca!important}
html body .mfc-control .mfc-grp-members{margin:8px 0;padding:10px 12px;background:#f9fafb;border:1px solid #eef0f3;border-radius:8px}
html body .mfc-control .mfc-grp-members p{margin:2px 0;font-size:12.5px;color:#374151}
html body .mfc-control .mfc-grp-members strong{display:inline-block;min-width:68px;color:#111827}
html body .mfc-control [hidden]{display:none!important}

/* responsive */
@media(max-width:900px){
  html body .mfc-control .mfc-cc-layout{grid-template-columns:minmax(0,1fr);gap:12px}
  html body .mfc-control .mfc-cc-nav{position:sticky;top:56px;z-index:30;flex-direction:row;overflow-x:auto;gap:4px;padding:5px;border-radius:10px;scrollbar-width:none}
  body.admin-bar html body .mfc-control .mfc-cc-nav{top:102px}
  html body .mfc-control .mfc-cc-tab{flex:0 0 auto;padding:9px 13px;white-space:nowrap}
  html body .mfc-control .mfc-cc-tab.is-active{box-shadow:inset 0 -2px 0 #2563eb}
  html body .mfc-control .mfc-cc-who>a{display:none}
}
@media(max-width:640px){
  html body .mfc-control{margin:6px;padding:10px;border-radius:12px}
  html body .mfc-control .mfc-cols,html body .mfc-control .mfc-cols-3{grid-template-columns:minmax(0,1fr)}
  html body .mfc-control .mfc-cc-stats{grid-template-columns:repeat(2,1fr)}
  html body .mfc-control .mfc-cc-actions{grid-template-columns:1fr 1fr}
  html body .mfc-control button{width:100%}
  html body .mfc-control .mfc-seg{width:100%}
  html body .mfc-control .mfc-seg button{width:auto;flex:1 1 auto}
  html body .mfc-control input,html body .mfc-control select,html body .mfc-control textarea{font-size:16px}
}

/* v0.19.0 — picker / table search layout (the generic ".mfc-control label{display:block}" rule made these stack) */
html body .mfc-control label.mfc-pick-search,html body .mfc-control label.mfc-tbl-search{display:flex;align-items:center;gap:8px;margin:0;padding:0 10px;font-weight:400}
html body .mfc-control label.mfc-tbl-search{max-width:420px;margin:10px 0}
html body .mfc-control .mfc-pick-search input,html body .mfc-control .mfc-tbl-search input{min-height:36px;padding:6px 2px!important;border:0!important;box-shadow:none!important;flex:1;min-width:0}
html body .mfc-control label.mfc-pick-main{display:flex;align-items:center;gap:10px;margin:0;font-weight:400;min-width:0}
html body .mfc-control .mfc-pick-main input[type="checkbox"]{width:16px!important;height:16px;min-height:0!important;padding:0;flex:0 0 auto;accent-color:#2563eb}
html body .mfc-control .mfc-pick-main img,html body .mfc-control .mfc-pick-main .avatar{width:32px;height:32px;border-radius:50%;flex:0 0 auto;object-fit:cover}
html body .mfc-control .mfc-pick-row select{width:auto;min-width:110px;min-height:32px;padding:4px 8px}
