/* SPMB Online (LANGKAH 11) — dipakai halaman publik dan portal admin */
.spmb-wrap { padding: 46px 0 70px; }
.spmb-wrap > .container > .section-head h1 { font: 800 32px/1.2 Manrope, sans-serif; margin: 7px 0; }
.spmb-wrap > .container > .section-head p { color: var(--muted); max-width: 700px; margin: 0; }
.spmb-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.spmb-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 5px 20px rgba(20,50,90,.035); }
.spmb-form-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; padding: 10px 13px; border: 1px solid; border-radius: 11px; font-size: 12px; }
.spmb-form-status > span:first-child { font-weight: 800; }
.spmb-form-status > span:last-child { text-align: right; }
.spmb-form-status.is-open { border-color: #cfe5d4; background: #f0f8f2; color: #245c39; }
.spmb-form-status.is-closed { border-color: #f0d89c; background: #fff9e9; color: #76550f; }
.spmb-card h2 { font: 800 22px Manrope, sans-serif; margin: 0 0 4px; }
.spmb-card > p.lead { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.spmb-card h3 { font: 700 13px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .6px; color: #5b6d84; margin: 24px 0 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.spmb-card h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 18px; }
.spmb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.spmb-fields .field { margin: 12px 0 0; }
.spmb-fields .full { grid-column: 1 / -1; }
.spmb-fields small { color: var(--muted); font-weight: 500; }
.spmb-fields .field-error, .field-error { display: block; color: var(--red); font-size: 12px; margin-top: 5px; }
.spmb-aksi { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.spmb-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.spmb-info { background: linear-gradient(135deg, #071d3b, #145cb9); color: #fff; border-radius: 18px; padding: 24px; }
.spmb-info h3 { font: 800 16px Manrope, sans-serif; margin: 0 0 10px; }
.spmb-info ul { margin: 0; padding-left: 18px; color: #d4e3f6; font-size: 13px; line-height: 1.75; }
.spmb-info .btn { margin-top: 14px; }
.spmb-help-phone { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.spmb-alert { border-radius: 12px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 16px; }
.spmb-alert.err { background: #fde8ea; border: 1px solid #eb9aa1; color: #a6212c; }
.spmb-alert.warn { background: #fff4dc; border: 1px solid #f0d089; color: #7a5410; }
.spmb-alert ul { margin: 6px 0 0 18px; padding: 0; }
.spmb-sukses { text-align: center; max-width: 560px; margin: 0 auto; }
.spmb-nomor { display: inline-block; font: 800 28px Manrope, sans-serif; letter-spacing: 1.5px; background: var(--sky); color: var(--blue); border-radius: 14px; padding: 12px 22px; margin: 14px 0; }
.spmb-hasil dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 14px 0 0; font-size: 14px; }
.spmb-hasil dt { color: var(--muted); }
.spmb-hasil dd { margin: 0; font-weight: 600; }
.spmb-status { display: inline-block; padding: 5px 12px; border-radius: 18px; font-weight: 800; font-size: 12px; background: #eaf7f1; color: var(--green); }
.spmb-status.warn { background: #fff4dc; color: #a87312; }
.spmb-status.red { background: #fff0f1; color: var(--red); }

/* admin */
.spmb-kuota { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 17px 0; }
.spmb-kuota .kuota-item { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; }
.spmb-kuota .kuota-item b { font: 800 20px Manrope, sans-serif; }
.spmb-kuota .bar { height: 7px; border-radius: 6px; background: #edf1f5; margin-top: 8px; overflow: hidden; }
.spmb-kuota .bar i { display: block; height: 100%; background: linear-gradient(90deg, #50a5f7, #1769e0); }
.spmb-kuota .bar i.penuh { background: var(--red); }
.spmb-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.spmb-filter input, .spmb-filter select { border: 1px solid #d9e3ee; border-radius: 10px; padding: 10px 12px; background: #fff; }
.spmb-filter input[type=search] { flex: 1 1 220px; }
.spmb-tabel .th, .spmb-tabel .tr { grid-template-columns: 1fr 1.3fr .55fr .7fr .6fr; min-width: 760px; }
.spmb-tabel a.nama { font-weight: 700; color: var(--blue); }
.spmb-hal { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.spmb-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
.spmb-detail dl { display: grid; grid-template-columns: 170px 1fr; gap: 9px 14px; margin: 0; padding: 19px; font-size: 13.5px; }
.spmb-detail dt { color: var(--muted); }
.spmb-detail dd { margin: 0; font-weight: 600; word-break: break-word; }
.spmb-detail form .field { margin: 0 0 14px; }
.spmb-detail .panel-body .field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.spmb-detail .panel-body select, .spmb-detail .panel-body textarea { width: 100%; border: 1px solid #d9e3ee; border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; }
.spmb-detail .panel + .panel { margin-top: 16px; }
@media (max-width: 900px) {
  .spmb-grid, .spmb-detail { grid-template-columns: 1fr; }
  .spmb-side { position: static; }
  .spmb-kuota { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .spmb-wrap { padding: 30px 0 52px; }
  .spmb-wrap > .container > .section-head h1 { font-size: 27px; }
  .spmb-card { padding: 20px; }
  .spmb-form-status { align-items: flex-start; flex-direction: column; gap: 3px; }
  .spmb-form-status > span:last-child { text-align: left; }
  .spmb-fields { grid-template-columns: 1fr; }
  .spmb-aksi { flex-direction: column; }
  .spmb-aksi .btn { width: 100%; }
  .spmb-hasil dl, .spmb-detail dl { grid-template-columns: 1fr; gap: 2px; }
  .spmb-hasil dd, .spmb-detail dd { margin-bottom: 8px; }
}
.public-site .spmb-wrap { background: #f7faf7; }
.public-site .spmb-card { border-color: #e0eae2; }
.public-site .spmb-card h3 { color: #506b59; }
.public-site .spmb-info { background: linear-gradient(135deg, #123b2b, #176b43 72%, #258554); }
.public-site .spmb-info ul { color: #e0eee4; }
.public-site .spmb-info .btn { background: #fff; color: #176b43; box-shadow: none; }
.public-site .spmb-help-phone { color: #176b43; }
