/* AI Fix Bulk admin styles */
/* ===== Page wrapper ===== */
.mirolabs-alt-wrap{ margin: 10px 20px 20px 0; }
.mirolabs-alt-wrap *{ box-sizing: border-box; }

/* =========================
   HERO (SS STYLE)
   ========================= */
.af-hero{
  margin: 0 0 18px;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f3f4f6 0%, #eef2f7 100%);
  border: 1px solid #d6d9de;
  border-left: 6px solid #f59e0b;
  box-shadow: 0 8px 20px rgba(15,23,42,0.07);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.af-hero-pill{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.af-hero-pill-inner{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.af-hero-pill-inner img{ width:112%; height:112%; object-fit:contain; display:block; }
.af-hero-pill-fallback{
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 12px;
  color: #111827;
}
.af-hero-main{ min-width: 0; }
.af-hero-title-row{
  display:flex; align-items:center; gap:8px;
  flex-wrap:wrap; margin-bottom:2px;
}
.af-hero-title{
  margin:0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.af-hero-tag{
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  color: #374151;
  font-weight: 600;
}
.af-hero-tag.alt{
  background: rgba(238,242,255,0.70);
  border-color: rgba(199,210,254,0.95);
  color: #1e3a8a;
}
.af-hero-sub{
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #374151;
  line-height: 1.5;
}
.af-hero-chips{
  display:flex; flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.af-chip, .af-chip-pill{
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(214,217,222,0.95);
  background: rgba(255,255,255,0.55);
  color: #111827;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 400;
}
.af-chip-pro{
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(214,217,222,0.95);
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: #111827;
}
.af-chip-pro::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,0.18);
}
.af-chip-sub{ color: #374151; font-weight: 400; font-size: 12px; }
.af-chip-pro strong{ font-weight: 600; color:#111827; }
.af-chip-alt{ background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); }
.af-chip-alt::before{ background:#f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.af-chip-scan{ background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.18); }
.af-chip-scan::before{ background:#2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.16); }
.af-chip-safe{ background: rgba(22,163,74,0.10); border-color: rgba(22,163,74,0.20); }
.af-chip-safe::before{ background:#16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.16); }

/* right tip box */
.af-hero-metrics{
  justify-self: end;
  align-self: stretch;
  min-width: 260px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(214,217,222,0.95);
  border-radius: 12px;
  padding: 10px 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  position: relative;
  overflow: hidden;
}
.af-hero-metrics::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height: 2px;
  background: linear-gradient(90deg, rgba(245,158,11,0.8), rgba(37,99,235,0.55));
  opacity: .9;
}
.af-tip-title{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #111827;
}
.af-tip-title strong{ font-weight: 600; }
.af-tip-ico{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.22);
  font-size: 14px;
  line-height: 1;
}
.af-tip-sub{
  font-size: 12px;
  font-weight: 400;
  color: #374151;
  line-height: 1.35;
}
.af-tip-hl{
  display:inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.22);
  color: #7c4a03;
  font-weight: 600;
}

/* ========================= Cards ========================= */
.af-card{
  background:#fff;
  border-radius:16px;
  border:1px solid #e5e7eb;
  padding:18px 20px;
  margin-bottom:16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.af-card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.af-card-title{ font-size:15px; font-weight:600; color:#111827; }
.af-card-sub{ font-size:12px; font-weight:400; color:#374151; }
.af-card-header-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.af-form-grid{
  display:grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap:14px 24px;
}
@media (max-width: 900px){
  .af-hero{ grid-template-columns: 52px 1fr; }
  .af-hero-metrics{ grid-column: 1 / -1; min-width:0; }
  .af-form-grid{ grid-template-columns: minmax(0,1fr); }
}

.af-field{ display:flex; flex-direction:column; gap:5px; font-size:13px; }
.af-label{ font-weight:600; color:#111827; }
.af-label small{ font-weight:400; color:#374151; margin-left:4px; }

.af-input, .af-select{
  width:100%;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #d1d5db;
  font-size:13px;
  color:#111827;
  background:#fff;
}
.af-input:focus, .af-select:focus{
  outline:none;
  border-color:#D8B15A;
  box-shadow: 0 0 0 1px rgba(216,177,90,0.35);
}

/* SS STYLE buttons — brand gold #D8B15A, hover #C49A4A */
.mirolabs-alt-wrap .button{
  border-radius:999px !important;
  padding:6px 14px !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
}
.mirolabs-alt-wrap .button.button-primary{
  background:#D8B15A !important;
  border-color:#D8B15A !important;
  color:#111827 !important;
  box-shadow:0 8px 18px rgba(216,177,90,0.25) !important;
}
.mirolabs-alt-wrap .button.button-primary:hover,
.mirolabs-alt-wrap .button.button-primary:focus{
  background:#C49A4A !important;
  border-color:#C49A4A !important;
  color:#111827 !important;
}

.af-toolbar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; }
.af-toolbar-status{ font-size:12px; color:#374151; }

/* help boxes */
.af-help{
  border-radius:12px;
  padding:10px 12px;
  border:1px solid rgba(214,217,222,0.95);
  font-size:12px;
  line-height:1.4;
}
.af-help b{ font-weight:600; }
.af-help-blue{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.18);
  color:#0b2a6f;
}
.af-help-orange{
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.22);
  color:#7c4a03;
}

/* table */
.mirolabs-alt-wrap table.af-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#fff;
}
.mirolabs-alt-wrap table.af-table thead{ background:#f3f4f6; }
.mirolabs-alt-wrap table.af-table thead th{
  padding:8px 10px;
  font-size:12px;
  font-weight:600;
  color:#374151;
  border-bottom:1px solid #e5e7eb;
}
.mirolabs-alt-wrap table.af-table tbody td{
  padding:7px 10px;
  font-size:13px;
  color:#111827;
  border-bottom:1px solid #edf2f7;
  vertical-align:top;
}
.mirolabs-alt-wrap table.af-table tbody tr:nth-child(even) td{ background:#fafafa; }

/* status badges */
.af-status-badge{
  display:inline-flex;
  align-items:center;
  padding:2px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}
.af-status-critical{ background:#fee2e2; color:#b91c1c; }
.af-status-needs-fix{ background:#fff7e6; color:#92400e; }
.af-status-good{ background:#e6f6f0; color:#047857; }
.af-status-none{ background:#e5e7eb; color:#374151; }

/* post cell */
.mirolabs-bulk-post-main strong a{ text-decoration:none; }
.mirolabs-bulk-post-main span{ display:block; }
.mirolabs-bulk-post-main span.slug{ color:#374151; font-size:12px; }
.mirolabs-bulk-post-main span.desc{ color:#374151; font-size:12px; margin-top:2px; }

/* counters */
.bulk-title-counter, .bulk-desc-counter{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#374151;
}

/* Pagination */
.af-pagerbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.af-pagerbar-left{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.af-pagerpill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(214,217,222,0.95);
  background: rgba(255,255,255,0.75);
  color: #111827;
}
.af-pagerpill strong{ font-weight:600; }
.af-pagerpill-muted{
  color:#374151;
  background:#f9fafb;
  border-color:#e5e7eb;
}
.af-pagerbar-right{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.af-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: rgba(255,255,255,0.85);
  color: #111827;
  text-decoration:none;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.af-page:hover{
  transform: translateY(-1px);
  border-color: rgba(216,177,90,0.5);
  background: rgba(216,177,90,0.08);
}
.af-current{
  border-color: #D8B15A !important;
  background: rgba(216,177,90,0.15) !important;
  color: #111827 !important;
}
