/* Round 11: tabbed /admin. Same staging look (theme.css .sac-transaction: Josefin, #30304f ink, #922c5e accent,
   #f88b62 buttons); this file only adds the tab bar, chips, collapsed forms and row actions. */
.sac-transaction .admin-tabs{position:sticky;top:var(--sac-admin-tabs-top,0px);z-index:19;display:flex;gap:4px;margin:0 -20px 28px;padding:10px 20px 0;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sac-transaction .admin-tabs::-webkit-scrollbar{display:none}
.sac-transaction .admin-tabs [role=tab]{flex:0 0 auto;min-height:46px;padding:10px 14px 12px;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--muted);font:600 14px/1.2 SACJosefin,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.sac-transaction .admin-tabs [role=tab]:hover{background:#f6f0f4;color:var(--ink)}
.sac-transaction .admin-tabs [role=tab][aria-selected=true]{color:#922c5e;border-bottom-color:#922c5e}
.sac-transaction .admin-tabs [role=tab]:active{transform:none}
.sac-transaction .admin-panel:focus{outline:none}
.sac-transaction .admin-panel>.codes-panel:first-child{margin-top:0}
.sac-transaction .admin-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-12px 0 16px}
.sac-transaction .admin-chips .chip{min-height:36px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);font-size:13px}
.sac-transaction .admin-chips .chip:hover{background:#f6f0f4}
.sac-transaction .admin-chips .chip[aria-pressed=true]{background:#922c5e;border-color:#922c5e;color:#fff}
.sac-transaction .panel-toggle{margin:4px 0 18px}
.sac-transaction .panel-toggle.open{background:#f6f0f4}
.sac-transaction .panel-forms{margin-bottom:24px}
.sac-transaction #organizer-forms form+form{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.sac-transaction .price-rows{margin:8px 0 12px}
.sac-transaction .price-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
.sac-transaction .price-row p{margin:0}
.sac-transaction .price-row .status{margin-left:2px}
.sac-transaction .row-actions{display:flex;flex-wrap:wrap;gap:8px}
.sac-transaction .row-actions button{min-height:40px;padding:8px 14px;font-size:14px}
.sac-transaction .price-row .cancel-confirm{flex-basis:100%}
.sac-transaction #price-list p{border-bottom:0;padding:0}
.sac-transaction .pay-metrics small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
.sac-transaction .pay-env{flex:0 0 auto!important;min-width:180px}
.sac-transaction .pay-table td button{min-height:40px;padding:8px 12px;font-size:13px;white-space:nowrap}
.sac-transaction .pay-table td,.sac-transaction .pay-table th{padding:14px 10px;vertical-align:top}
.sac-transaction .pay-table td small{white-space:normal;overflow-wrap:anywhere;max-width:230px}
.sac-transaction .pay-table td small[role=status]{max-width:200px}
.sac-transaction .status.pay-pending,.sac-transaction .status.pay-creating{background:#fff3e8;color:#7a3b12}
.sac-transaction .status.pay-failed,.sac-transaction .status.pay-expired,.sac-transaction .status.pay-abandoned{background:#f3eef0;color:#655f71}
.sac-transaction .status.pay-review{background:#fde8ea;color:#8a1f2d}
@media(max-width:600px){
  .sac-transaction .admin-tabs{margin:0 -20px 20px;padding:6px 12px 0;gap:0}
  .sac-transaction .admin-tabs [role=tab]{padding:10px 10px 12px;font-size:13px;letter-spacing:.03em}
  .sac-transaction .pay-env{flex-basis:100%!important}
  .sac-transaction .row-actions{width:100%}
  .sac-transaction .row-actions button{flex:1}
}

/* Round 14: the site header is the same component as on /register (sac-register/site-nav.css): on desktop it
   scrolls away, on phones it is sticky. The tab bar is its own white sticky strip, full width, under it. */
/* full-bleed white + bottom line drawn with spread shadows (shadows never widen the page) clipped to the strip height */
.sac-transaction .admin-tabs-strip{position:sticky;top:var(--sac-admin-tabs-top,0px);z-index:19;margin:0 0 28px;background:#fff;box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax)}
.sac-transaction .admin-tabs-strip::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line);box-shadow:0 0 0 100vmax var(--line);clip-path:inset(0 -100vmax);pointer-events:none}
.sac-transaction .admin-tabs-strip .admin-tabs{position:relative;top:auto;margin:0;padding:10px 0 0;background:transparent;border-bottom:0}
/* scroll hint when tabs do not fit: fade on the hidden side(s) + a chevron on the right */
.sac-transaction .admin-tabs-strip[data-more-right] .admin-tabs{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent)}
.sac-transaction .admin-tabs-strip[data-more-left] .admin-tabs{-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px);mask-image:linear-gradient(90deg,transparent,#000 40px)}
.sac-transaction .admin-tabs-strip[data-more-left][data-more-right] .admin-tabs{-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 56px),transparent)}
.sac-transaction .admin-tabs-strip[data-more-right]::after{content:"›";position:absolute;right:-4px;top:50%;transform:translateY(-45%);font:600 26px/1 SACJosefin,system-ui,sans-serif;color:#922c5e;pointer-events:none}
html:has(body.sac-transaction .sac-site-nav){scroll-padding-top:76px}
@media(max-width:767.98px){html:has(body.sac-transaction .sac-site-nav){scroll-padding-top:170px}}
@media(max-width:600px){
  .sac-transaction .admin-tabs-strip{margin:0 0 20px}
  .sac-transaction .admin-tabs-strip .admin-tabs{padding:6px 0 0}
}

/* Round 14: phones (under 700px): every registration / payment row is a stacked card of 'label: value' lines,
   long ids wrap inside the card, action buttons are full width. Desktop tables are unchanged. */
@media(max-width:700px){
  .sac-transaction #admin-page .table-wrap{overflow:visible;background:transparent;border:0;border-radius:0}
  .sac-transaction #admin-page .table-wrap table,.sac-transaction #admin-page .table-wrap tbody,.sac-transaction #admin-page .table-wrap tr,.sac-transaction #admin-page .table-wrap td{display:block;width:100%}
  .sac-transaction #admin-page .table-wrap table{white-space:normal}
  .sac-transaction #admin-page .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .sac-transaction #admin-page .table-wrap tr{margin:0 0 12px;padding:4px 14px;background:#fff;border:1px solid var(--line);border-radius:10px}
  .sac-transaction #admin-page .table-wrap td,.sac-transaction #admin-page .pay-table td{position:relative;min-height:38px;padding:10px 0 10px 104px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}
  .sac-transaction #admin-page .table-wrap td::before{content:attr(data-label);position:absolute;left:0;top:12px;width:94px;font-size:10px;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .sac-transaction #admin-page .table-wrap td[data-label=""],.sac-transaction #admin-page .table-wrap td:last-child{padding-left:0}
  .sac-transaction #admin-page .table-wrap td[data-label=""]::before,.sac-transaction #admin-page .table-wrap td:last-child::before{display:none}
  .sac-transaction #admin-page .table-wrap tr>td:last-child{border-bottom:0}
  .sac-transaction #admin-page .table-wrap td small,.sac-transaction #admin-page .pay-table td small,.sac-transaction #admin-page .pay-table td small[role=status]{max-width:none;white-space:normal;overflow-wrap:anywhere}
  .sac-transaction #admin-page .table-wrap td button,.sac-transaction #admin-page .pay-table td button{display:block;width:100%;margin-top:8px;white-space:normal}
  .sac-transaction #admin-page .table-wrap td .cancel-confirm{width:100%}
  /* Codes: same card language */
  .sac-transaction .code-list article{margin:0 0 12px;padding:12px 14px;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px}
  .sac-transaction .code-list article>p{margin:0;width:100%}
  .sac-transaction .code-list .code-sep{display:none}
  .sac-transaction .code-list .code-part{position:relative;display:block;padding:5px 0 5px 104px;overflow-wrap:anywhere}
  .sac-transaction .code-list .code-part::before{content:attr(data-label);position:absolute;left:0;top:7px;width:94px;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .sac-transaction .code-list article button{width:100%}
}
/* Desktop admin tables fit the page: long ticket ids/emails wrap instead of widening columns (Rain 17 Nov) */
@media(min-width:701px){
  .sac-transaction #admin-page .table-wrap{overflow-x:auto}
  .sac-transaction #admin-page .table-wrap table{white-space:normal}
  .sac-transaction #admin-page .table-wrap td{vertical-align:top}
  .sac-transaction #admin-page .table-wrap td small{white-space:normal;overflow-wrap:anywhere;max-width:340px}
  .sac-transaction #admin-page .table-wrap td small.checkin-line{max-width:250px}
  .sac-transaction #admin-page .table-wrap td code{overflow-wrap:anywhere;white-space:normal}
  .sac-transaction #admin-page .table-wrap td button{white-space:nowrap}
}

/* Rain 17 Nov: clean ticket lines (no long SAC27-T code) + T-shirt totals */
.sac-transaction #admin-page .ticket-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;color:var(--ink)}
.sac-transaction #admin-page .ticket-line .tl-no{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.sac-transaction #admin-page .ticket-line .tl-size{display:inline-block;min-width:26px;padding:1px 7px;border-radius:999px;background:#f6f0f4;color:#8d2c59;font-weight:600;font-size:11px;text-align:center}
.sac-transaction #admin-page .ticket-line .tl-note{font-size:11px;color:var(--muted)}
.sac-transaction #admin-page .shirt-totals{margin:10px 0 4px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}
.sac-transaction #admin-page .shirt-title{margin:0 0 6px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sac-transaction #admin-page .shirt-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0}
.sac-transaction #admin-page .shirt-label{min-width:150px;font-size:13px;font-weight:600;color:#3c234b}
.sac-transaction #admin-page .shirt-pill{padding:3px 10px;border-radius:999px;background:#f6f0f4;color:#3c234b;font-size:13px}
.sac-transaction #admin-page .shirt-pill b{color:#8d2c59;margin-right:2px}
@media(max-width:700px){.sac-transaction #admin-page .shirt-label{min-width:0;width:100%}}
/* Taufik 18 Nov: on /admin show only the admin menu (tabs); hide the public site menu, keep the logo */
body.sac-admin-mode .sac-nav-desk nav,body.sac-admin-mode header.md\:hidden nav,body.sac-admin-mode #sac-menu-toggle,body.sac-admin-mode #sac-mobile-menu{display:none!important}
/* ===== Round 18 (PMI team mockup): one white top bar (logo + admin tabs + Sign out), slim heading with the
   scanner link, a 4-column stat card, a 'Find an attendee' card (search, chips, T-shirt row) and a table card whose
   rows are separate white row cards. Phones: tabs = scrollable pill row, each registration = one card.
   Palette: plum #8d2c59, ink #3c234b, orange #ea7750, soft pink #f6f0f4. Frontend only. ===== */
body.sac-admin-mode .sac-site-nav,body.sac-admin-mode .sac-nav-spacer{display:none!important}
body.sac-admin-mode{--r18-line:#eadfe6;--r18-shadow:0 10px 30px #3c234b0f}
.sac-transaction.sac-admin-mode #admin-page{max-width:1320px;margin:0 auto;padding:16px 28px 72px}
#admin-page:has(#dashboard[hidden]) .admin-tabs-strip,#admin-page:has(#dashboard[hidden]) .admin-scanner,.sac-transaction #admin-page .admin-tabs-strip[hidden],.sac-transaction #admin-page .admin-scanner[hidden],.sac-transaction #admin-page .admin-signout[hidden]{display:none!important}
/* top bar */
.sac-transaction .admin-topbar{position:sticky;top:12px;z-index:30;display:flex;align-items:center;gap:20px;min-height:68px;padding:10px 14px 10px 20px;background:#fff;border:1px solid var(--r18-line,#eadfe6);border-radius:18px;box-shadow:var(--r18-shadow)}
.sac-transaction .admin-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;color:#3c234b;text-decoration:none;font:600 13px/1.25 SACJosefin,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
.sac-transaction .admin-brand img{width:28px;height:auto;display:block}
.sac-transaction .admin-brand span{white-space:nowrap}
.sac-transaction .admin-topbar .admin-tabs-strip{position:relative;top:auto;z-index:auto;flex:1 1 auto;min-width:0;margin:0;padding:0 0 0 20px;background:none;box-shadow:none;clip-path:none;border-left:1px solid var(--r18-line,#eadfe6)}
.sac-transaction .admin-topbar .admin-tabs-strip::before{display:none}
.sac-transaction .admin-topbar .admin-tabs-strip .admin-tabs{position:relative;top:auto;margin:0;padding:2px 0;gap:4px;background:none;border:0}
.sac-transaction .admin-topbar .admin-tabs [role=tab]{position:relative;min-height:40px;padding:10px 14px;border:0;border-radius:10px;background:transparent;color:#3c234b;font:600 13px/1.2 SACJosefin,system-ui,sans-serif;letter-spacing:.1em}
.sac-transaction .admin-topbar .admin-tabs [role=tab]:hover{background:#f6f0f4;color:#8d2c59}
.sac-transaction .admin-topbar .admin-tabs [role=tab][aria-selected=true]{background:#f6f0f4;color:#8d2c59}
.sac-transaction .admin-topbar .admin-tabs [role=tab][aria-selected=true]::after{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:2px;border-radius:2px;background:#8d2c59}
.sac-transaction .admin-topbar .admin-tabs-strip[data-more-right]::after{right:2px}
.sac-transaction .admin-topbar .admin-signout{flex:0 0 auto;margin-left:auto;min-height:40px;padding:8px 18px;border:1px solid #8d2c59;border-radius:10px;background:#fff;color:#8d2c59;font:600 14px/1.2 SACJosefin,system-ui,sans-serif}
.sac-transaction .admin-topbar .admin-signout:hover{background:#f6f0f4;color:#8d2c59}
/* heading */
.sac-transaction #admin-page .admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:28px 4px 16px;padding:0}
.sac-transaction #admin-page .admin-heading .eyebrow{display:block;font-size:11px;letter-spacing:.17em;color:#69566b}
.sac-transaction #admin-page .admin-heading h1{margin:6px 0 0;font:600 30px/1.2 SACJosefin,system-ui,sans-serif;letter-spacing:0;color:#8d2c59}
.sac-transaction #admin-page .admin-scanner{flex:0 0 auto;margin-bottom:4px;color:#8d2c59;font-weight:600;font-size:15px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.sac-transaction #admin-page .admin-scanner:hover{color:#ea7750}
/* cards */
.sac-transaction #admin-page .admin-card,.sac-transaction #admin-page #login-form,.sac-transaction #admin-page .codes-panel,.sac-transaction #admin-page>.attendee-account{background:#fff;border:1px solid var(--r18-line,#eadfe6);border-radius:18px;box-shadow:var(--r18-shadow)}
.sac-transaction #admin-page .admin-card{margin:0 0 16px;padding:20px 22px}
.sac-transaction #admin-page .admin-panel>.codes-panel,.sac-transaction #admin-page .admin-panel .codes-panel{margin:0 0 16px}
/* stat card */
.sac-transaction #admin-page .metrics{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:0 0 16px;padding:0;background:#fff;border:1px solid var(--r18-line,#eadfe6);border-radius:18px;box-shadow:var(--r18-shadow);overflow:hidden}
.sac-transaction #admin-page .metrics>div{margin:0;padding:18px 24px;background:none;border:0;border-left:1px solid var(--r18-line,#eadfe6);border-radius:0;min-width:0}
.sac-transaction #admin-page .metrics>div:first-child{border-left:0}
.sac-transaction #admin-page .metrics span{display:block;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#69566b}
.sac-transaction #admin-page .metrics strong{display:block;margin-top:8px;font:600 34px/1.1 SACJosefin,system-ui,sans-serif;color:#8d2c59}
.sac-transaction #admin-page .shirt-compact{display:none}
/* find card */
.sac-transaction #admin-page .find-card .toolbar{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:10px;margin:0;padding:0;background:none;border:0}
.sac-transaction #admin-page .find-card .toolbar label{flex:1 1 auto;min-width:0;margin:0;font-weight:600;font-size:15px;color:#3c234b}
.sac-transaction #admin-page .find-card .toolbar label.pay-env{flex:0 0 200px!important;min-width:0}
.sac-transaction #admin-page .find-card .toolbar input,.sac-transaction #admin-page .find-card .toolbar select{display:block;width:100%;min-height:46px;margin-top:8px;border-color:#d8cdd5;border-radius:10px;font-weight:400}
.sac-transaction #admin-page .find-card .toolbar button{flex:0 0 auto;min-height:46px;padding:10px 18px;border-radius:10px;font-size:14px}
.sac-transaction #admin-page .secondary{background:#fff;border:1px solid #c9b6c3;color:#3c234b}
.sac-transaction #admin-page .secondary:hover{background:#f6f0f4}
.sac-transaction #admin-page .admin-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.sac-transaction #admin-page .admin-chips .chip{min-height:34px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid #d8cdd5;color:#3c234b;font-size:13px;font-weight:600}
.sac-transaction #admin-page .admin-chips .chip:hover{background:#f6f0f4}
.sac-transaction #admin-page .admin-chips .chip[aria-pressed=true]{background:#8d2c59;border-color:#8d2c59;color:#fff}
.sac-transaction #admin-page .find-card>p.muted{margin:12px 0 0;font-size:13px}
.sac-transaction #admin-page .find-card>p:empty{display:none}
/* T-shirt sizes: one compact row, Paid | Awaiting payment */
.sac-transaction #admin-page .shirt-totals{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 18px;margin:14px 0 0;padding:10px 16px;background:#faf7f9;border:1px solid var(--r18-line,#eadfe6);border-radius:12px}
.sac-transaction #admin-page .shirt-title{margin:0;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#69566b}
.sac-transaction #admin-page .shirt-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;margin:0}
.sac-transaction #admin-page .shirt-label{min-width:0;margin-right:8px;font-size:13px;font-weight:600;color:#3c234b}
.sac-transaction #admin-page .shirt-pill{padding:0;background:none;border-radius:0;font-size:13px;color:#3c234b}
.sac-transaction #admin-page .shirt-pill+.shirt-pill::before{content:"·";margin:0 6px 0 2px;color:#a99aa5}
.sac-transaction #admin-page .shirt-pill b{margin-right:3px;color:#8d2c59}
.sac-transaction #admin-page .shirt-sep{align-self:stretch;width:1px;min-height:20px;background:#ddd0d8}
/* table card: header on a soft bg, every row its own white rounded card */
.sac-transaction #admin-page .table-card>p.muted{margin:0 0 10px;font-size:13px;line-height:1.5;color:#655f71}
.sac-transaction #admin-page .table-card .table-wrap{background:transparent;border:0;border-radius:0;box-shadow:none}
.sac-transaction #admin-page .table-card table{width:100%;border-collapse:separate;border-spacing:0 8px;margin:-8px 0 0;background:transparent}
.sac-transaction #admin-page .table-card thead th{padding:11px 14px;background:#f6f0f4;border:0;color:#69566b;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;text-align:left;white-space:nowrap}
.sac-transaction #admin-page .table-card thead th:first-child{border-radius:10px 0 0 10px}
.sac-transaction #admin-page .table-card thead th:last-child{border-radius:0 10px 10px 0}
.sac-transaction #admin-page .table-card tbody td{padding:14px;background:#fff;border:0;border-top:1px solid var(--r18-line,#eadfe6);border-bottom:1px solid var(--r18-line,#eadfe6);font-size:14px;color:#3c234b;vertical-align:top}
.sac-transaction #admin-page .table-card tbody td:first-child{border-left:1px solid var(--r18-line,#eadfe6);border-radius:12px 0 0 12px}
.sac-transaction #admin-page .table-card tbody td:last-child,.sac-transaction #admin-page .table-card tbody td.review-cell{border-right:1px solid var(--r18-line,#eadfe6);border-radius:0 12px 12px 0}
.sac-transaction #admin-page .table-card tbody td.empty-cell{border-right:1px solid var(--r18-line,#eadfe6);border-radius:12px;color:#655f71}
.sac-transaction #admin-page .table-card tbody tr:hover td{background:#fffafd}
.sac-transaction #admin-page .reg-table td.m-top{display:none}
.sac-transaction #admin-page .reg-table thead th:first-child{width:118px}
.sac-transaction #admin-page .reg-table thead th.checkin-head{width:210px}
.sac-transaction #admin-page .customer-no-cell{font-weight:700;color:#3c234b;white-space:normal}
@media(min-width:701px){.sac-transaction #admin-page .customer-no-cell{max-width:130px}.sac-transaction #admin-page .pay-table td:nth-child(2){min-width:170px}.sac-transaction #admin-page .pay-table td:nth-child(2) small{overflow-wrap:anywhere}}
.sac-transaction #admin-page .ref-cell{font-weight:700;white-space:nowrap}
.sac-transaction #admin-page .ticket-cell{white-space:nowrap}
/* check-in */
.sac-transaction #admin-page .checkin-line{display:block;margin:0 0 8px;font-size:13px;line-height:1.35;color:#3c234b}
.sac-transaction #admin-page .checkin-line:last-child{margin-bottom:0}
.sac-transaction #admin-page .ci-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#b9b1b8;vertical-align:1px}
.sac-transaction #admin-page .checkin-line.in .ci-dot{background:#22a06b;box-shadow:0 0 0 3px #22a06b22}
.sac-transaction #admin-page .ci-main{font-weight:600}
.sac-transaction #admin-page .checkin-line.out .ci-main{font-weight:400;color:#655f71}
.sac-transaction #admin-page .ci-when{display:block;padding-left:15px;font-size:11px;color:#655f71}
/* attendee */
.sac-transaction #admin-page .att-head{font-weight:700;color:#3c234b;overflow-wrap:anywhere}
.sac-transaction #admin-page .att-extra{display:none}
.sac-transaction #admin-page .att-email{font-weight:600;color:#655f71}
.sac-transaction #admin-page .att-email::before{content:" · ";color:#a99aa5}
.sac-transaction #admin-page .attendee-cell .ticket-line{margin-top:5px;gap:0;font-size:12px;color:#655f71}
.sac-transaction #admin-page .attendee-cell .ticket-line .tl-no{font-size:12px;color:#8d2c59;font-weight:600}
.sac-transaction #admin-page .attendee-cell .ticket-line .tl-no+.tl-name::before{content:" · ";color:#a99aa5;white-space:pre}
.sac-transaction #admin-page .attendee-cell .ticket-line .tl-size{min-width:0;margin-left:4px;padding:0;background:none;border-radius:0;color:#655f71;font-size:12px;font-weight:600}
.sac-transaction #admin-page .attendee-cell .ticket-line .tl-size::before{content:"("}
.sac-transaction #admin-page .attendee-cell .ticket-line .tl-size::after{content:")"}
.sac-transaction #admin-page .attendee-cell .ticket-line .tl-note{margin-left:8px;padding:1px 8px;border-radius:999px;background:#f6f0f4;color:#8d2c59;font-size:11px}
/* status pills */
.sac-transaction #admin-page .status{display:inline-block;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;background:#f6f0f4;color:#3c234b}
.sac-transaction #admin-page .status.confirmed{background:#dff5e8;color:#1f7a4d}
.sac-transaction #admin-page .status.awaiting_payment{background:#fde7ef;color:#8d2c59}
.sac-transaction #admin-page .status.payment_review{background:#fff0e3;color:#b4531f}
.sac-transaction #admin-page .status.cancelled{background:#efecee;color:#6b6470}
.sac-transaction #admin-page .status.pay-pending,.sac-transaction #admin-page .status.pay-creating{background:#fff0e3;color:#b4531f}
.sac-transaction #admin-page .status.pay-failed,.sac-transaction #admin-page .status.pay-expired,.sac-transaction #admin-page .status.pay-abandoned{background:#efecee;color:#6b6470}
.sac-transaction #admin-page .status.pay-review{background:#fff0e3;color:#b4531f}
/* review */
.sac-transaction #admin-page .review-note{display:block;max-width:220px;font-size:12px;line-height:1.4;color:#655f71;white-space:normal}
.sac-transaction #admin-page .table-card td button,.sac-transaction #admin-page .table-card td .secondary{min-height:36px;margin-top:8px;padding:6px 16px;border:1px solid #8d2c59;border-radius:10px;background:#fff;color:#8d2c59;font-size:13px;font-weight:600}
.sac-transaction #admin-page .table-card td button:hover{background:#f6f0f4}
.sac-transaction #admin-page .table-card td .cancel-confirm{margin-top:8px;max-width:280px;white-space:normal}
.sac-transaction #admin-page .table-card td .cancel-confirm p{margin:0 0 8px;font-size:13px}
.sac-transaction #admin-page .table-card td .cancel-confirm input{width:100%;min-height:40px;margin:0 0 8px;font-size:14px}
.sac-transaction #admin-page .table-card td .cancel-confirm button{margin:0 6px 0 0}
.sac-transaction #admin-page .table-card td .cancel-confirm button:not(.secondary){background:#8d2c59;color:#fff}
/* Payments tab: same cards */
.sac-transaction #admin-page .pay-metrics small{margin-top:4px;font-size:12px;color:#655f71}
.sac-transaction #admin-page .pay-table td small{display:block;margin-top:3px;font-size:12px;color:#655f71}
/* Codes / Prices / Organizers: same white cards */
.sac-transaction #admin-page .codes-panel{padding:24px 26px}
.sac-transaction #admin-page .codes-panel h2{margin:6px 0 8px;font-size:24px;color:#3c234b}
.sac-transaction #admin-page .codes-panel .panel-toggle{border-radius:10px}
.sac-transaction #admin-page .code-list article{border:1px solid var(--r18-line,#eadfe6);border-radius:12px;background:#fff}
.sac-transaction #admin-page .price-row{border-bottom-color:var(--r18-line,#eadfe6)}
.sac-transaction #admin-page #login-form,.sac-transaction #admin-page>.attendee-account{max-width:560px;margin:0 0 16px;padding:24px 28px}
.sac-transaction #admin-page #login-form h2{margin-top:0}
@media(min-width:701px) and (max-width:1180px){
  .sac-transaction .admin-brand span{white-space:normal;max-width:130px;font-size:11px}
  .sac-transaction .admin-topbar{gap:14px}
  .sac-transaction .admin-topbar .admin-tabs-strip{padding-left:14px}
  .sac-transaction .admin-topbar .admin-tabs [role=tab]{padding:10px 10px;font-size:12px;letter-spacing:.06em}
  .sac-transaction .admin-topbar .admin-tabs [role=tab][aria-selected=true]::after{left:10px;right:10px}
}
/* phones */
@media(max-width:700px){
  .sac-transaction.sac-admin-mode #admin-page{padding:10px 12px 56px}
  .sac-transaction .admin-topbar{top:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:0;padding:10px 10px 10px 12px;border-radius:16px}
  .sac-transaction .admin-brand{min-width:0;gap:9px;font-size:10.5px;letter-spacing:.11em}
  .sac-transaction .admin-brand img{width:22px}
  .sac-transaction .admin-brand span{white-space:normal;line-height:1.3}
  .sac-transaction .admin-topbar .admin-signout{min-height:36px;padding:6px 14px;font-size:13px}
  .sac-transaction .admin-topbar .admin-tabs-strip{order:3;grid-column:1/-1;padding:0;border-left:0}
  .sac-transaction .admin-topbar .admin-tabs-strip .admin-tabs{gap:6px;padding:0}
  .sac-transaction .admin-topbar .admin-tabs [role=tab]{min-height:36px;padding:8px 14px;border-radius:999px;background:#f6f0f4;color:#3c234b;font-size:12px;letter-spacing:.08em}
  .sac-transaction .admin-topbar .admin-tabs [role=tab][aria-selected=true]{background:#8d2c59;color:#fff}
  .sac-transaction .admin-topbar .admin-tabs [role=tab][aria-selected=true]::after{display:none}
  .sac-transaction .admin-topbar .admin-tabs-strip[data-more-right]::after{right:-2px;font-size:22px}
  .sac-transaction #admin-page .admin-heading{align-items:flex-end;gap:10px;margin:18px 2px 12px}
  .sac-transaction #admin-page .admin-heading .eyebrow{font-size:9.5px;letter-spacing:.14em}
  .sac-transaction #admin-page .admin-heading h1{font-size:21px}
  .sac-transaction #admin-page .admin-scanner{font-size:13px;margin-bottom:2px}
  .sac-transaction #admin-page .metrics{margin-bottom:8px;border-radius:14px}
  .sac-transaction #admin-page .metrics>div{padding:10px 8px}
  .sac-transaction #admin-page .metrics span{font-size:8.5px;letter-spacing:.06em;line-height:1.3;min-height:22px}
  .sac-transaction #admin-page .metrics strong{margin-top:4px;font-size:22px}
  .sac-transaction #admin-page .pay-metrics small{font-size:10px}
  .sac-transaction #admin-page .shirt-compact{display:block;margin:0 4px 12px;font-size:12px;line-height:1.5;color:#3c234b}
  .sac-transaction #admin-page .shirt-compact b{margin-right:2px;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#69566b}
  .sac-transaction #admin-page .find-card .shirt-totals{display:none}
  .sac-transaction #admin-page .admin-card{padding:14px;border-radius:14px;margin-bottom:12px}
  .sac-transaction #admin-page .find-card .toolbar{gap:6px}
  .sac-transaction #admin-page .find-card .toolbar label{font-size:13px}
  .sac-transaction #admin-page .find-card .toolbar input{min-height:40px;padding:8px 10px;font-size:15px}
  .sac-transaction #admin-page .find-card .toolbar button{min-height:40px;padding:6px 10px;font-size:12.5px;flex:0 0 auto;width:auto}
  .sac-transaction #admin-page .find-card .toolbar:has(.pay-env){flex-wrap:wrap}
  .sac-transaction #admin-page .find-card .toolbar:has(.pay-env) label:first-child{flex:1 0 100%}
  .sac-transaction #admin-page .find-card .toolbar label.pay-env{flex:1 1 auto!important}
  .sac-transaction #admin-page .admin-chips{flex-wrap:nowrap;overflow-x:auto;margin:12px -14px 0;padding:0 14px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .sac-transaction #admin-page .admin-chips::-webkit-scrollbar{display:none}
  .sac-transaction #admin-page .admin-chips .chip{flex:0 0 auto;min-height:32px;padding:5px 12px;font-size:12px;white-space:nowrap}
  .sac-transaction #admin-page .table-card{padding:12px 10px}
  .sac-transaction #admin-page .table-card>p.muted{margin:0 4px 6px;font-size:12px}
  .sac-transaction #admin-page .table-card table{margin:0;border-spacing:0}
  /* registration cards (grid; cells keep their order for screen readers) */
  .sac-transaction #admin-page .table-wrap .reg-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"top top status" "att att att" "ref tkt tkt" "rev rev rev";gap:0 6px;width:auto;margin:0 0 10px;padding:12px 14px;background:#fff;border:1px solid var(--r18-line,#eadfe6);border-radius:14px;box-shadow:0 4px 14px #3c234b0a}
  .sac-transaction #admin-page .table-wrap .reg-table td{display:block;width:auto;min-height:0;padding:0;background:none;border:0;border-radius:0;font-size:13px;overflow-wrap:anywhere}
  .sac-transaction #admin-page .table-wrap .reg-table td::before{display:none}
  .sac-transaction #admin-page .table-card .reg-table tbody td,.sac-transaction #admin-page .table-card .reg-table tbody td:first-child,.sac-transaction #admin-page .table-card .reg-table tbody td:last-child,.sac-transaction #admin-page .table-card .reg-table tbody td.review-cell,.sac-transaction #admin-page .table-card .reg-table tbody tr:hover td{border:0;border-radius:0;background:none}
  .sac-transaction #admin-page .table-wrap .reg-table td.customer-no-cell,.sac-transaction #admin-page .table-wrap .reg-table td.checkin-cell{display:none}
  .sac-transaction #admin-page .table-wrap .reg-table td.m-top{display:flex;flex-direction:column;gap:2px;grid-area:top;align-self:center;font-size:11.5px;line-height:1.35;color:#655f71}
  .sac-transaction #admin-page .table-wrap .reg-table .m-line.in{color:#1f7a4d;font-weight:600}
  .sac-transaction #admin-page .table-wrap .reg-table td.status-cell{grid-area:status;justify-self:end;align-self:start}
  .sac-transaction #admin-page .table-wrap .reg-table td.status-cell .status{font-size:11px;padding:4px 10px}
  .sac-transaction #admin-page .table-wrap .reg-table td.attendee-cell{grid-area:att;margin-top:8px}
  .sac-transaction #admin-page .table-wrap .reg-table .att-extra{display:inline}
  .sac-transaction #admin-page .table-wrap .reg-table .att-email{display:block;font-weight:400;font-size:13px}
  .sac-transaction #admin-page .table-wrap .reg-table .att-email::before{display:none}
  .sac-transaction #admin-page .table-wrap .reg-table td.ref-cell{grid-area:ref;margin-top:8px;font-size:12px;font-weight:600;white-space:normal}
  .sac-transaction #admin-page .table-wrap .reg-table td.ref-cell::before{display:inline;position:static;content:"Ref: ";width:auto;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;color:#655f71}
  .sac-transaction #admin-page .table-wrap .reg-table td.ticket-cell{grid-area:tkt;margin-top:8px;font-size:12px;color:#655f71;white-space:normal}
  .sac-transaction #admin-page .table-wrap .reg-table td.ticket-cell::before{display:inline;position:static;content:"· ";width:auto;font-size:12px;letter-spacing:0;text-transform:none;color:#a99aa5}
  .sac-transaction #admin-page .table-wrap .reg-table td.review-cell{grid-area:rev;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px}
  .sac-transaction #admin-page .table-card .reg-table tbody td.review-cell{border-top:1px solid #f0e6ec}
  .sac-transaction #admin-page .table-wrap .reg-table td.review-cell .review-note{max-width:none;flex:1 1 0}
  .sac-transaction #admin-page .table-wrap .reg-table td.review-cell>button{display:inline-block;width:auto;margin:0;min-height:34px;padding:5px 16px}
  .sac-transaction #admin-page .table-wrap .reg-table td.review-cell .cancel-confirm{flex:1 0 100%;max-width:none}
  .sac-transaction #admin-page .table-wrap .reg-table td.review-cell .cancel-confirm button{display:inline-block;width:auto;margin:0 6px 0 0}
  .sac-transaction #admin-page .table-wrap .reg-table td.empty-cell{grid-column:1/-1}
  /* Payments cards keep 'label: value' lines, in the new card look */
  .sac-transaction #admin-page .table-wrap .pay-table tr{border-color:var(--r18-line,#eadfe6);border-radius:14px;box-shadow:0 4px 14px #3c234b0a}
  .sac-transaction #admin-page .table-card .pay-table tbody td{padding:10px 0 10px 104px;background:none;border:0;border-bottom:1px solid #f0e6ec;border-radius:0;font-size:13px}
  .sac-transaction #admin-page .table-card .pay-table tbody td:last-child,.sac-transaction #admin-page .table-card .pay-table tbody td[colspan]{padding-left:0;border-bottom:0}
  .sac-transaction #admin-page .table-card .pay-table tbody tr:hover td{background:none}
  .sac-transaction #admin-page .table-card .pay-table tbody td button{width:100%;margin-top:4px}
  .sac-transaction #admin-page .codes-panel{padding:18px 16px;border-radius:14px}
}

/* Round 18b (PMI mockup): desktop registration rows. Attendee first line = bold 'Name · email' on ONE line (ellipsis
   + title attribute on very long values); fixed column widths give Attendee the room, so 1280 and 1440 fit with no
   side scroll. 701-1180px keeps the auto table and lets that line wrap. */
@media(min-width:1181px){
  .sac-transaction #admin-page .reg-table{table-layout:fixed}
  .sac-transaction #admin-page .reg-table thead th:nth-child(1){width:118px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(2){width:190px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(4){width:166px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(5){width:120px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(6){width:156px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(7){width:146px}
  .sac-transaction #admin-page .reg-table .ref-cell{font-size:14px}
  .sac-transaction #admin-page .reg-table .ticket-cell{white-space:normal}
  .sac-transaction #admin-page .reg-table .att-head{display:flex;align-items:baseline;min-width:0;white-space:nowrap;overflow-wrap:normal}
  .sac-transaction #admin-page .reg-table .att-name{flex:0 0 auto;max-width:62%;overflow:hidden;text-overflow:ellipsis}
  .sac-transaction #admin-page .reg-table .att-email{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .sac-transaction #admin-page .reg-table .att-email::before{white-space:pre}
  .sac-transaction #admin-page .reg-table .status{white-space:normal}
}
/* 960-1180px (1024 laptops/iPad landscape): same fixed columns, smaller; headers, reference and pills may wrap. */
@media(min-width:960px) and (max-width:1180px){
  .sac-transaction #admin-page .reg-table{table-layout:fixed}
  .sac-transaction #admin-page .reg-table thead th{white-space:normal}
  .sac-transaction #admin-page .reg-table thead th:nth-child(1){width:84px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(2){width:124px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(4){width:128px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(5){width:96px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(6){width:124px}
  .sac-transaction #admin-page .reg-table thead th:nth-child(7){width:116px}
  .sac-transaction #admin-page .reg-table .ref-cell{font-size:13px;white-space:normal;overflow-wrap:anywhere}
  .sac-transaction #admin-page .reg-table .ticket-cell,.sac-transaction #admin-page .reg-table .status{white-space:normal}
}
/* Round 18b: organizer sign-in 'Remember me' checkbox (checked by default). */
.sac-transaction #admin-page #login-form .remember-me{display:flex;align-items:center;gap:10px;margin:4px 0 20px;font-size:14px;font-weight:500;color:#3c234b;cursor:pointer}
.sac-transaction #admin-page #login-form .remember-me input{flex:0 0 auto;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:#8d2c59}

/* Round 22 (Taufik): Sponsorship tab. The preview uses the home page row rules: a 1504:438 box (the old banner), logos in
   its lower 268/438, all the same height, bottom-aligned, side by side; on phones they wrap at 256px. */
.sponsor-preview-card{margin:14px 0 18px;padding:16px 18px 6px;border:1px solid var(--r18-line,#eadfe6);border-radius:16px;background:#fff}
.sponsor-preview-label{margin:0 0 4px;font-size:10px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:rgb(87 56 102/.8)}
.sponsor-stage{position:relative;width:min(100%,380px);aspect-ratio:1504/438;margin:0 auto 14px}
.sponsor-stage[hidden]{display:none}
.sponsor-stage .sponsor-row{position:absolute;left:0;right:0;bottom:0;top:38.8128%;display:flex;justify-content:center;align-items:flex-end}
.sponsor-row .sponsor-item{display:block;height:100%;flex:0 1 auto;min-width:0}
.sponsor-row img{display:block;height:100%;width:auto;max-width:100%;object-fit:contain;object-position:bottom}
.sponsor-stage--phone{width:256px;aspect-ratio:auto}
.sponsor-stage--phone .sponsor-row{position:static;flex-wrap:wrap;padding-top:28.94px}
.sponsor-stage--phone .sponsor-item{height:45.62px;flex:none;max-width:100%}
.sponsor-line{flex-wrap:nowrap;justify-content:flex-start}
.sponsor-line>p{flex:1 1 auto;min-width:0}
.sponsor-line>p strong{display:block;color:#3c234b}
.sponsor-line>p small{display:block;margin:2px 0 4px;color:#4b516a;overflow-wrap:anywhere}
.sponsor-line .row-actions{flex:none}
.sponsor-thumb{flex:none;display:flex;align-items:flex-end;justify-content:center;width:104px;height:48px;padding:5px;border:1px solid var(--r18-line,#eadfe6);border-radius:10px;background:#fff;font-size:11px;color:#8a7f8f}
.sponsor-thumb img{display:block;max-width:100%;max-height:100%;object-fit:contain}
#sponsor-form input[type=file]{padding:8px;background:#fff}
@media (max-width:700px){.sponsor-line{flex-wrap:wrap}.sponsor-line .row-actions{flex-basis:100%}}

/* Members → Member code (PMISAC2027 attempts). */
.member-code-title{margin-top:1.6rem}
.member-code-table tr.member-code-rejected td:nth-child(3){color:#be123c;font-weight:600}

/* Member price (30 Nov 2026): numbers tried more than once are highlighted; small action buttons wrap. */
.member-price-panel{margin-top:1.5rem}.member-price-panel h3{margin:1.1rem 0 .4rem;font-size:14px}
.member-price-panel #mp-search{min-width:16rem;max-width:100%}
.mp-table tr.mp-multi td{background:#fff7ed}.mp-table td button.small{margin:0 .3rem .3rem 0;padding:.3rem .6rem;font-size:11px}
.mp-table td{white-space:normal;vertical-align:top}
/* PMI member list (30 Nov 2026): same look as Member price */
.member-list-panel h3{margin:1.1rem 0 .4rem;font-size:14px}.member-list-panel #ml-search{min-width:16rem;max-width:100%}.member-list-panel .toolbar button{white-space:nowrap}
.member-list-panel #ml-chips{margin:.2rem 0 .6rem}.member-list-panel #ml-summary{margin:.6rem 0 .2rem;font-weight:600;color:#3c234b}
.ml-table tr.ml-disabled td{background:#f6f0f4;color:#655f71}.ml-table tr.ml-holding td:nth-child(5){color:#9a5b00}.ml-table tr.ml-used td:nth-child(5){color:#8d2c59;font-weight:600}
/* PMI member list Remove (30 Nov 2026): same small secondary button; blocked = not-allowed + tooltip */
.ml-table .ml-remove-wrap{display:inline-block;cursor:not-allowed}.ml-table td button.ml-remove:disabled{cursor:not-allowed;pointer-events:none}
@media(max-width:700px){.sac-transaction #admin-page .ml-table .ml-remove-wrap{display:block;width:100%}.ml-table .ml-remove-wrap::after{content:attr(title);display:block;margin-top:4px;font-size:11px;color:#655f71;white-space:normal}}

/* 30 Nov 2026 (Rain): Midtrans-style Payments view (time, order ID, channel, status chips, totals, Sync, Needs attention) */
.sac-transaction #admin-page .pay-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.sac-transaction #admin-page .pay-channels{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 2px 14px;font-size:13px;color:#3c234b}
.sac-transaction #admin-page .pay-channels>b{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#69566b;margin-right:2px}
.sac-transaction #admin-page .pay-channel-pill{display:inline-block;padding:4px 10px;border:1px solid var(--r18-line,#eadfe6);border-radius:999px;background:#fff;white-space:nowrap}
.sac-transaction #admin-page .pay-channel-pill b{margin-right:4px;color:#3c234b}
.sac-transaction #admin-page .pay-review-pill{background:#fff0e3;border-color:#f3d2b5;color:#b4531f}
.sac-transaction #admin-page .find-card .toolbar.pay-filters{display:grid;grid-template-columns:minmax(200px,1.7fr) repeat(6,minmax(0,1fr));align-items:end;gap:10px}
.sac-transaction #admin-page .find-card .toolbar.pay-filters label{margin:0;min-width:0!important}
.sac-transaction #admin-page .find-card .toolbar.pay-filters input,.sac-transaction #admin-page .find-card .toolbar.pay-filters select{box-sizing:border-box;height:46px;min-height:46px;margin-top:6px}
.sac-transaction #admin-page .find-card .toolbar.pay-filters input,.sac-transaction #admin-page .find-card .toolbar.pay-filters select{width:100%}
.sac-transaction #admin-page .find-card .toolbar.pay-actions{margin-top:10px;justify-content:flex-start;gap:8px}
.sac-transaction #admin-page #pay-sync{background:#8d2c59;color:#fff;border-color:#8d2c59}
.sac-transaction #admin-page #pay-sync:disabled{opacity:.55}
.sac-transaction #admin-page .pay-sync-note:empty{display:none}
.sac-transaction #admin-page .pay-sync-note{font-weight:600;color:#3c234b}
.sac-transaction #admin-page .pay-fees a{color:#8d2c59;font-weight:600}
.sac-transaction #admin-page .pay-attention{border:1px solid #f3c7a8;background:#fffaf5}
.sac-transaction #admin-page .pay-attention h3{margin:0 0 8px;font-size:16px;color:#b4531f}
.sac-transaction #admin-page .pay-attention ul{margin:0;padding:0;list-style:none}
.sac-transaction #admin-page .pay-attention li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 0;border-top:1px solid #f6dfcd;font-size:13px}
.sac-transaction #admin-page .pay-attention li:first-child{border-top:0}
.sac-transaction #admin-page .pay-attention li span{flex:1 1 260px}
.sac-transaction #admin-page .pay-attention li code{font-size:12px;overflow-wrap:anywhere}
.sac-transaction #admin-page .pay-attention li button{min-height:32px;padding:4px 12px;font-size:12.5px}
.sac-transaction #admin-page .status.mt-ok{background:#dff5e8;color:#1f7a4d}
.sac-transaction #admin-page .status.mt-wait{background:#fff0e3;color:#b4531f}
.sac-transaction #admin-page .status.mt-off{background:#efecee;color:#6b6470}
.sac-transaction #admin-page .status.mt-alert{background:#fde8ea;color:#8a1f2d}
.sac-transaction #admin-page .pay-amount-cell{font-variant-numeric:tabular-nums;white-space:nowrap}
.sac-transaction #admin-page .pay-amount-cell.paid{color:#1f7a4d;font-weight:600}
.sac-transaction #admin-page .pay-order-cell code{font-size:12px;overflow-wrap:anywhere;white-space:normal}
@media(min-width:701px){
  .sac-transaction #admin-page .pay-table{table-layout:fixed;width:100%}
  .sac-transaction #admin-page .pay-table td,.sac-transaction #admin-page .pay-table th{white-space:normal;overflow-wrap:break-word;padding:12px 8px}
  .sac-transaction #admin-page .pay-table td code,.sac-transaction #admin-page .pay-table td small{overflow-wrap:anywhere}
  .sac-transaction #admin-page .pay-table td:nth-child(2){min-width:0}
  .sac-transaction #admin-page .pay-table th:nth-child(1){width:10%}
  .sac-transaction #admin-page .pay-table th:nth-child(2){width:14%}
  .sac-transaction #admin-page .pay-table th:nth-child(3){width:11%}
  .sac-transaction #admin-page .pay-table th:nth-child(4){width:15%}
  .sac-transaction #admin-page .pay-table th:nth-child(5){width:10%}
  .sac-transaction #admin-page .pay-table th:nth-child(6){width:9%}
  .sac-transaction #admin-page .pay-table th:nth-child(7){width:11%}
  .sac-transaction #admin-page .pay-table th:nth-child(8){width:12%}
  .sac-transaction #admin-page .pay-table th:nth-child(9){width:8%}
  .sac-transaction #admin-page .pay-table td small{max-width:none}
  .sac-transaction #admin-page .pay-table .status{white-space:nowrap}
  .sac-transaction #admin-page .pay-table td.pay-action-cell button{width:100%;padding:6px 8px}
  .sac-transaction #admin-page .pay-table td.pay-amount-cell{white-space:nowrap;overflow-wrap:normal}
  .sac-transaction #admin-page .pay-table td.pay-amount-cell small{white-space:normal}
}
@media(min-width:701px) and (max-width:1180px){
  .sac-transaction #admin-page .find-card .toolbar.pay-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sac-transaction #admin-page .find-card .toolbar.pay-filters label.pay-search{grid-column:span 2}
  .sac-transaction #admin-page .pay-table td,.sac-transaction #admin-page .pay-table th{padding:10px 5px;font-size:13px}
  .sac-transaction #admin-page .pay-table th{font-size:11px;letter-spacing:.06em}
  .sac-transaction #admin-page .pay-table td small{font-size:11.5px}
  .sac-transaction #admin-page .pay-table .status{padding:4px 8px;font-size:11px}
  .sac-transaction #admin-page .pay-table th:nth-child(1){width:11%}
  .sac-transaction #admin-page .pay-table th:nth-child(2){width:13%}
  .sac-transaction #admin-page .pay-table th:nth-child(4){width:13%}
  .sac-transaction #admin-page .pay-table th:nth-child(5){width:10%}
  .sac-transaction #admin-page .pay-table th:nth-child(9){width:10%}
  .sac-transaction #admin-page .pay-table td.pay-action-cell button{padding:6px 4px;font-size:12px;min-height:34px}
}
@media(max-width:700px){
  .sac-transaction #admin-page .pay-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sac-transaction #admin-page .find-card .toolbar.pay-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .sac-transaction #admin-page .find-card .toolbar.pay-filters label.pay-search{grid-column:1/-1;min-width:0}
  .sac-transaction #admin-page .find-card .toolbar.pay-filters label.pay-env{min-width:0}
  .sac-transaction #admin-page .find-card .toolbar.pay-filters select,.sac-transaction #admin-page .find-card .toolbar.pay-filters input{min-height:40px;font-size:14px}
  .sac-transaction #admin-page .find-card .toolbar.pay-actions{display:grid;grid-template-columns:1fr 1fr}
  .sac-transaction #admin-page .find-card .toolbar.pay-actions #pay-sync{grid-column:1/-1}
  .sac-transaction #admin-page .find-card .toolbar.pay-actions button{width:100%}
  .sac-transaction #admin-page .pay-channels{font-size:12px}
  .sac-transaction #admin-page .pay-amount-cell{white-space:normal}
}

/* 30 Nov 2026: Print for the event (Registrations tab): sign-in sheet + T-shirt sizes. */
.sac-transaction #admin-page .find-card.print-card{display:grid;gap:12px}
.sac-transaction #admin-page .print-card .print-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.sac-transaction #admin-page .print-card .print-title{margin:0;font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#922c5e}
.sac-transaction #admin-page .print-card .print-hint{margin:0;font-size:13px}
.sac-transaction #admin-page .find-card.print-card .toolbar{flex-wrap:wrap}
.sac-transaction #admin-page .find-card.print-card .toolbar label.print-type{flex:0 1 240px}
.sac-transaction #admin-page .print-card .print-result{margin:0;min-height:1.2em;font-size:13px}
@media(max-width:700px){.sac-transaction #admin-page .find-card.print-card .toolbar label.print-type,.sac-transaction #admin-page .find-card.print-card .toolbar button{flex:1 1 100%}}
/* 30 Nov 2026 (Rain): Payments → Midtrans Balance card (paid in, est. fees, transfers to bank, est. balance) */
.sac-transaction #admin-page .bal-card{margin:0 0 16px}
.sac-transaction #admin-page .bal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.sac-transaction #admin-page .bal-head h2{margin:6px 0 12px}
.sac-transaction #admin-page .bal-dash{color:#8d2c59;font-weight:600;font-size:13px;white-space:nowrap;margin-top:4px}
.sac-transaction #admin-page .bal-metrics{grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));box-shadow:none;margin-bottom:12px}
.sac-transaction #admin-page .bal-metrics strong{font-size:30px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sac-transaction #admin-page .bal-metrics small{display:block;margin-top:4px;font-size:12px;color:#69566b}
.sac-transaction #admin-page .bal-metrics .bal-left{background:#fbf3f7}
.sac-transaction #admin-page .bal-metrics .bal-left strong{color:#1f7a4d}
.sac-transaction #admin-page .bal-last{margin:0 2px 6px;font-weight:600;color:#3c234b;font-size:15px}
.sac-transaction #admin-page .bal-note,.sac-transaction #admin-page .bal-check,.sac-transaction #admin-page .bal-channels{margin:0 2px 6px;font-size:13px}
.sac-transaction #admin-page .bal-check:empty,.sac-transaction #admin-page .bal-channels:empty,.sac-transaction #admin-page .bal-result:empty{display:none}
.sac-transaction #admin-page .bal-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px;justify-content:flex-start}
.sac-transaction #admin-page .bal-actions .panel-toggle{margin:0}
.sac-transaction #admin-page .bal-form{margin:12px 0 8px;padding:16px;border:1px solid var(--r18-line,#eadfe6);border-radius:14px;background:#fdfafc}
.sac-transaction #admin-page .bal-form .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 12px}
.sac-transaction #admin-page .bal-form .fields .wide{grid-column:1/-1}
.sac-transaction #admin-page .bal-form .row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.sac-transaction #admin-page .bal-result{margin:10px 2px 0;font-weight:600;color:#1f7a4d}
.sac-transaction #admin-page .bal-card h3{margin:18px 0 8px;font-size:16px;color:#3c234b}
.sac-transaction #admin-page .bal-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.sac-transaction #admin-page .bal-table tr.bal-void td{color:#8a8290}
.sac-transaction #admin-page .bal-table tr.bal-void td.bal-amount{text-decoration:line-through;font-weight:400}
.sac-transaction #admin-page .bal-table tr.bal-void td.bal-amount small{text-decoration:none;display:inline-block;color:#8a1f2d;font-weight:600}
.sac-transaction #admin-page .bal-preview{margin-top:12px}
.sac-transaction #admin-page .bal-preview-sum{font-weight:600;color:#3c234b;margin:0 0 6px}
.sac-transaction #admin-page .bal-table tr.bal-p-new td:last-child{color:#1f7a4d;font-weight:600}
.sac-transaction #admin-page .bal-table tr.bal-p-recorded td,.sac-transaction #admin-page .bal-table tr.bal-p-duplicate td,.sac-transaction #admin-page .bal-table tr.bal-p-voided td{color:#8a8290}
.sac-transaction #admin-page .bal-table tr.bal-p-failed td:last-child,.sac-transaction #admin-page .bal-table tr.bal-p-invalid td:last-child{color:#8a1f2d}
.sac-transaction #admin-page .bal-fee-table input[type=number]{width:100%;max-width:140px;box-sizing:border-box;min-height:38px}
.sac-transaction #admin-page .bal-fee-table input[type=checkbox]{width:20px;height:20px}
.sac-transaction #admin-page .bal-log{margin-top:14px}
.sac-transaction #admin-page .bal-log summary{cursor:pointer;font-weight:600;color:#3c234b;font-size:14px}
@media(max-width:1180px){
  .sac-transaction #admin-page .bal-metrics strong{font-size:24px}
}
@media(max-width:700px){
  .sac-transaction #admin-page .bal-head h2{margin-bottom:8px}
  .sac-transaction #admin-page .bal-dash{font-size:12px}
  .sac-transaction #admin-page .bal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sac-transaction #admin-page .bal-metrics>div:nth-child(3){border-left:0}
  .sac-transaction #admin-page .bal-metrics>div:nth-child(n+3){border-top:1px solid var(--r18-line,#eadfe6)}
  .sac-transaction #admin-page .bal-metrics strong{font-size:19px}
  .sac-transaction #admin-page .bal-metrics small{font-size:10.5px}
  .sac-transaction #admin-page .bal-last{font-size:14px}
  .sac-transaction #admin-page .bal-actions .panel-toggle{flex:1 1 auto}
  .sac-transaction #admin-page .bal-form{padding:12px}
  .sac-transaction #admin-page .bal-fee-table input[type=number]{max-width:none}
}
/* 30 Nov 2026: Payments ticket-email state + Resend confirmation */
.sac-transaction #admin-page .pay-table td small.pay-email{font-weight:600}
.sac-transaction #admin-page .pay-table td small.pay-email-sent{color:#1f7a4d}
.sac-transaction #admin-page .pay-table td small.pay-email-failed{color:#b42318}
.sac-transaction #admin-page .pay-table td small.pay-email-pending{color:#8a5a00}
.sac-transaction #admin-page .pay-table td button.pay-resend{display:block;margin-top:6px;white-space:normal;text-align:center;line-height:1.25;overflow-wrap:normal;word-break:normal;font-size:12px;letter-spacing:0;padding-left:4px;padding-right:4px}
@media(min-width:701px){.sac-transaction #admin-page .pay-table th:nth-child(4){width:13%}.sac-transaction #admin-page .pay-table th:nth-child(9){width:10%}}
@media(min-width:701px) and (max-width:1180px){.sac-transaction #admin-page .pay-table th:nth-child(1){width:10%}.sac-transaction #admin-page .pay-table th:nth-child(4){width:12%}.sac-transaction #admin-page .pay-table th:nth-child(9){width:12%}}
