:root{font-family:Inter,"Noto Sans Thai",system-ui,-apple-system,sans-serif;color:#172033;background:#f4f7fb;font-synthesis:none;--purple:#7c3aed;--purple-dark:#5b21b6;--line:#dce4ef;--muted:#6b7890;--green:#059669;--red:#dc2626;--amber:#d97706;--blue:#2563eb}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f4f7fb}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}[hidden]{display:none!important}
.login-view{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);padding:34px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 22px 65px rgba(31,41,55,.12)}
.brand-mark{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#8b5cf6,#9333ea);color:#fff;font-weight:900}.brand-mark.small{width:38px;height:38px;border-radius:11px;font-size:13px}.eyebrow{margin:16px 0 4px;color:var(--purple);font-size:11px;font-weight:900;letter-spacing:.14em}.login-card h1{margin:4px 0 6px;font-size:28px}.muted{margin:0;color:var(--muted);font-size:13px}.login-card label{display:grid;gap:7px;margin-top:20px;font-size:13px;font-weight:800}.login-card input,.filters input,.filters select,textarea{width:100%;border:1px solid #cfd9e8;border-radius:11px;background:#fff;padding:11px 13px;outline:none}.login-card input:focus,.filters input:focus,.filters select:focus,textarea:focus{border-color:#a78bfa;box-shadow:0 0 0 3px #ede9fe}.form-error{min-height:20px;margin:8px 0;color:var(--red);font-size:12px}
.primary,.secondary,.danger,.warning,.success{border:0;border-radius:10px;padding:10px 16px;font-weight:800}.primary{background:linear-gradient(135deg,var(--purple),#a855f7);color:#fff}.secondary{border:1px solid var(--line);background:#fff;color:#344158}.danger{background:#fee2e2;color:#b91c1c}.warning{background:#fff7ed;color:#c2410c}.success{background:#d1fae5;color:#047857}.full{width:100%}
.app-view{min-height:100vh;display:grid;grid-template-columns:210px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:20px 14px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fff}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 6px 22px}.sidebar-brand span:last-child{display:grid;font-size:14px}.sidebar-brand small{color:var(--muted);font-size:10px}.sidebar nav{display:grid;gap:6px}.nav-item,.logout-button{border:0;border-radius:11px;padding:12px;text-align:left;background:transparent;color:#4b5870;font-weight:800}.nav-item.active{background:#f1eaff;color:var(--purple-dark)}.logout-button{margin-top:auto;border:1px solid #fecaca;color:#b91c1c;background:#fff}
.content{min-width:0;padding:25px 30px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.page-heading h1{margin:0 0 2px;font-size:24px}.page-heading p{margin:0;color:var(--muted);font-size:13px}.filters{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(130px,.55fr)) auto;gap:10px;padding:14px;margin-bottom:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.filters input,.filters select{min-height:42px}.table-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(29,41,57,.05)}.table-wrap{overflow:auto;max-height:calc(100vh - 235px)}table{width:100%;min-width:920px;border-collapse:collapse;table-layout:fixed}th,td{padding:11px 9px;border-bottom:1px solid #e6ecf4;text-align:center;vertical-align:middle;font-size:12px}th:last-child,td:last-child{width:58px}th{position:sticky;top:0;z-index:2;background:#f7f9fc;color:#536177;font-size:11px;font-weight:900}tbody tr:hover{background:#faf8ff}td.member-cell b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.money{font-weight:900}.money-breakdown{display:grid;gap:2px}.money-breakdown strong,.money-breakdown small{display:block;white-space:nowrap}.money-breakdown small{font-size:10px;font-weight:800}.matched-amount{color:var(--green)}.remaining-amount{color:var(--amber)}.badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border:1px solid;border-radius:99px;font-size:11px;font-weight:900;white-space:nowrap}.badge.deposit,.badge.success,.badge.p2p{border-color:#86efac;background:#ecfdf5;color:#047857}.badge.withdraw,.badge.rejected{border-color:#fda4af;background:#fff1f2;color:#be123c}.badge.pending,.badge.website{border-color:#fcd34d;background:#fffbeb;color:#a16207}.badge.review{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.badge.neutral{border-color:#cbd5e1;background:#f8fafc;color:#475569}.detail-button{width:32px;height:32px;display:inline-grid;place-items:center;border:1px solid #d8ccf4;border-radius:9px;padding:0;background:#faf7ff;color:var(--purple-dark);cursor:pointer}.detail-button:hover{border-color:#a78bfa;background:#f1eaff}.detail-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.empty-state{padding:48px;text-align:center;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px;background:#fbfcfe;font-size:12px}
.page-heading-actions{display:flex;align-items:center;gap:9px}
.modal{position:fixed;inset:0;z-index:50}.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(3px)}.modal-panel{position:relative;width:min(1120px,calc(100% - 28px));max-height:calc(100vh - 28px);margin:14px auto;display:flex;flex-direction:column;overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 24px 90px rgba(0,0,0,.28)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:19px 22px;border-bottom:1px solid var(--line)}.modal-header .eyebrow{margin:0 0 3px}.modal-header h2{margin:0;font-size:21px}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:22px}.modal-body{padding:18px 22px;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:13px 22px;border-top:1px solid var(--line);background:#fafbfe}.detail-section{margin-bottom:16px}.detail-section:last-child{margin-bottom:0}.section-title{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:15px}.section-number{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#ede9fe;color:var(--purple-dark);font-size:11px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.summary-item,.info-panel{border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:10px 12px}.summary-item small,.info-label{display:block;margin-bottom:4px;color:var(--muted);font-size:10px}.summary-item strong{display:block;overflow-wrap:anywhere;font-size:13px}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:10px}.key-value{display:grid;grid-template-columns:120px 1fr;gap:8px;padding:6px 0;border-bottom:1px dashed #e2e8f0;font-size:12px}.key-value:last-child{border:0}.key-value span:first-child{color:var(--muted)}.key-value span:last-child{font-weight:700;overflow-wrap:anywhere}.slip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,260px));gap:10px}.slip-card{border:1px solid var(--line);border-radius:12px;padding:9px}.slip-card img{width:100%;height:220px;object-fit:contain;border-radius:8px;background:#eef2f7}.slip-card p{margin:7px 0 0;font-size:11px;color:var(--muted)}.timeline{display:grid;gap:0}.timeline-item{position:relative;padding:0 0 13px 23px;border-left:2px solid #ddd6fe;margin-left:6px}.timeline-item:last-child{padding-bottom:0}.timeline-item:before{content:"";position:absolute;left:-6px;top:2px;width:10px;height:10px;border-radius:50%;background:var(--purple)}.timeline-item b{display:block;font-size:12px}.timeline-item span{font-size:11px;color:var(--muted)}.notice{padding:11px 12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:12px}.error-text{color:var(--red)}.loading{padding:60px;text-align:center;color:var(--muted)}.toast{position:fixed;left:50%;top:50%;z-index:220;width:min(430px,calc(100% - 32px));padding:18px 22px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:#172033;color:#fff;box-shadow:0 24px 80px rgba(15,23,42,.48);font-size:14px;font-weight:800;line-height:1.55;text-align:center;transform:translate(-50%,-50%);animation:toast-pop .18s ease-out}@keyframes toast-pop{from{opacity:0;transform:translate(-50%,-46%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:980px){.app-view{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;align-items:center;padding:10px 14px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-brand{padding:0;margin-right:12px}.sidebar-brand span:last-child{display:none}.sidebar nav{flex:1}.nav-item{padding:10px}.logout-button{margin:0}.content{padding:18px}.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}.summary-grid{grid-template-columns:repeat(2,1fr)}.table-wrap{max-height:none}}
@media(max-width:620px){.content{padding:12px}.page-heading{align-items:flex-start}.page-heading p{display:none}.filters{grid-template-columns:1fr}.filters input{grid-column:auto}.summary-grid,.two-column{grid-template-columns:1fr}.modal-panel{width:100%;height:100%;max-height:none;margin:0;border-radius:0}.modal-body{padding:14px}.key-value{grid-template-columns:105px 1fr}.sidebar-brand{display:none}}

/* Compact order table */
#orders-page table{min-width:1000px}#orders-page th,#orders-page td{padding:9px 6px}#orders-page th:nth-child(1),#orders-page td:nth-child(1){width:13%}#orders-page th:nth-child(2),#orders-page td:nth-child(2){width:8%}#orders-page th:nth-child(3),#orders-page td:nth-child(3){width:22%}#orders-page th:nth-child(4),#orders-page td:nth-child(4){width:9%}#orders-page th:nth-child(5),#orders-page td:nth-child(5){width:17%}#orders-page th:nth-child(6),#orders-page td:nth-child(6){width:7%}#orders-page th:nth-child(7),#orders-page td:nth-child(7){width:13%}#orders-page th:nth-child(8),#orders-page td:nth-child(8){width:11%}.member-cell{white-space:nowrap}.member-cell span{font-weight:900}.copy-icon{display:inline-grid;place-items:center;width:25px;height:25px;margin-left:5px;padding:0;border:1px solid #d8ccf4;border-radius:7px;background:#faf7ff;color:var(--purple-dark);font-size:13px;line-height:1;vertical-align:middle}.copy-icon:hover{background:#ede9fe}

/* Simplified order detail */
.summary-grid.compact{grid-template-columns:repeat(3,1fr)}.summary-user{display:flex!important;align-items:center;gap:4px}.match-route-list{display:grid;gap:12px}.account-route{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:stretch;gap:8px;padding-bottom:26px}.account-route.single{grid-template-columns:minmax(0,1fr)}.account-card{min-width:0;overflow:hidden;border:1px solid #cfe6dc;border-radius:14px;background:linear-gradient(180deg,#f5fffa,#fff);padding:13px 15px}.account-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #dcebe5;color:#067a55;font-size:12px;font-weight:900}.party-user{display:flex;align-items:center;min-width:0;color:#172033;font-size:13px}.member-id{display:block;margin-top:7px;color:var(--muted)}.bank-name{margin-top:12px;font-size:14px;font-weight:900}.account-name{margin-top:4px;color:#475569;font-size:12px}.account-number{margin-top:10px;padding:8px 10px;border-radius:9px;background:#172033;color:#fff;font-size:15px;font-weight:900;letter-spacing:.4px;text-align:center}.route-arrow{display:grid;place-items:center;color:var(--purple);font-size:27px;font-weight:900}.match-meta{position:absolute;right:0;bottom:0;left:0;color:#64748b;font-size:11px;text-align:center}.slip-grid{grid-template-columns:repeat(auto-fit,minmax(210px,250px))}.slip-owner{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}.slip-owner b{font-size:12px}.slip-owner span{color:var(--muted);font-size:9px;text-align:right}.slip-image-button{position:relative;width:100%;padding:0;overflow:hidden;border:0;border-radius:9px;background:#eef2f7;cursor:zoom-in}.slip-image-button img{display:block;height:210px}.slip-image-button span{position:absolute;right:8px;bottom:8px;padding:4px 7px;border-radius:6px;background:rgba(15,23,42,.82);color:#fff;font-size:10px}.slip-actions{display:flex;gap:7px;margin-top:9px}.slip-actions button{flex:1}.ledger-list{display:grid;gap:7px}.ledger-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;font-size:12px}.event-disclosure{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff}.event-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;font-size:14px;font-weight:900;list-style:none}.event-disclosure>summary::-webkit-details-marker{display:none}.event-disclosure>summary>span:first-child{display:flex;align-items:center;gap:8px}.disclosure-hint{color:var(--purple-dark);font-size:11px}.event-disclosure[open] .disclosure-hint{font-size:0}.event-disclosure[open] .disclosure-hint:after{content:"พับเก็บ";font-size:11px}.event-content{padding:2px 16px 16px}.slip-lightbox{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:rgba(2,6,23,.88);backdrop-filter:blur(5px)}.slip-lightbox img{display:block;max-width:min(900px,94vw);max-height:92vh;border-radius:12px;background:#fff;box-shadow:0 20px 80px rgba(0,0,0,.45)}.lightbox-close{position:fixed;top:18px;right:22px;width:42px;height:42px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(15,23,42,.72);color:#fff;font-size:28px}

.matched-deposits{margin-top:13px;overflow:hidden;border:1px solid #fecdd3;border-radius:14px;background:#fffafb}.matched-deposits>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #ffe4e6;background:#fff1f2}.matched-deposits>header>div{display:flex;align-items:center;gap:9px}.matched-deposits>header b{color:#9f1239;font-size:13px}.matched-deposits>header span{padding:3px 7px;border-radius:99px;color:#9f1239;background:#ffe4e6;font-size:10px;font-weight:900}.matched-deposits>header>strong{color:#047857;font-size:13px;white-space:nowrap}.matched-table-wrap{overflow:auto}.matched-deposit-table{width:100%;min-width:790px;table-layout:fixed}.matched-deposit-table col.match-col-index{width:5%}.matched-deposit-table col.match-col-time{width:16%}.matched-deposit-table col.match-col-user{width:22%}.matched-deposit-table col.match-col-sender{width:25%}.matched-deposit-table col.match-col-amount{width:12%}.matched-deposit-table col.match-col-slip{width:9%}.matched-deposit-table col.match-col-status{width:11%}.matched-deposit-table th,.matched-deposit-table td{position:static;width:auto!important;padding:9px 8px;border-bottom:1px solid #ffe4e6;background:#fffafb;font-size:11px;text-align:center;vertical-align:middle}.matched-deposit-table th{color:#9f1239;background:#fff1f2}.matched-deposit-table td:nth-child(4)>b,.matched-deposit-table td:nth-child(4)>small{display:block;overflow-wrap:anywhere}.matched-deposit-table td:nth-child(4)>small{margin-top:3px;color:var(--muted);font-size:9px}.matched-user{display:inline-flex;align-items:center;justify-content:center;font-weight:900;white-space:nowrap}.matched-money{color:#047857;font-weight:900;white-space:nowrap}.matched-slip{display:inline-grid;gap:3px;place-items:center;padding:3px;border:1px solid #fecdd3;border-radius:7px;color:#9f1239;background:#fff;cursor:zoom-in}.matched-slip img{width:42px;height:50px;object-fit:cover;border-radius:4px}.matched-slip span{font-size:8px;font-weight:900}

.withdraw-settlement{padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}.withdraw-settlement .section-title{margin-bottom:11px}.settlement-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.settlement-card{position:relative;display:grid;gap:4px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}.settlement-card small{color:var(--muted);font-size:10px}.settlement-card strong{font-size:15px}.settlement-card span{position:absolute;right:10px;top:10px;padding:2px 6px;border-radius:99px;font-size:9px;font-weight:900}.settlement-card.success{border-color:#a7f3d0;background:#ecfdf5}.settlement-card.success strong,.settlement-card.success span{color:#047857}.settlement-card.success span{background:#d1fae5}.settlement-card.pending{border-color:#fde68a;background:#fffbeb}.settlement-card.pending strong,.settlement-card.pending span{color:#a16207}.settlement-card.pending span{background:#fef3c7}

@media(max-width:760px){.summary-grid.compact{grid-template-columns:repeat(2,1fr)}.account-route{grid-template-columns:1fr;padding-bottom:28px}.route-arrow{height:28px;transform:rotate(90deg)}.modal-actions{flex-wrap:wrap}.modal-actions>*{flex:1 1 45%;text-align:center}.matched-deposits>header{align-items:flex-start}.matched-deposits>header>div{align-items:flex-start;flex-direction:column;gap:4px}.settlement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.status-countdown{margin-left:5px;padding-left:6px;border-left:1px solid currentColor;font-size:10px;font-variant-numeric:tabular-nums}

.api-response{margin:10px 0 0;max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;padding:10px;border-radius:10px;background:#f8fafc;border:1px solid #dbe3ee;color:#334155;font-size:11px;line-height:1.45;text-align:left}


/* P2P short / over payment — admin detail */
.p2p-payment-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.p2p-payment-summary>div{
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
}
.p2p-payment-summary small{
  display:block;
  color:#6b7280;
  font-size:12px;
  margin-bottom:4px;
}
.p2p-payment-summary strong{font-size:16px;color:#111827}
.p2p-payment-summary .short{
  border-color:#f6d28b;
  background:#fffaf0;
}
.p2p-payment-summary .short strong{color:#b45309}
.p2p-payment-summary .over{
  border-color:#f2a3aa;
  background:#fff6f7;
}
.p2p-payment-summary .over strong{color:#c81e32}
.slip-card.verified_partial{
  border-color:#f6d28b;
  background:#fffdf7;
}
.slip-card.overpaid_review{
  border-color:#f2a3aa;
  background:#fff8f9;
}
.slip-money{
  margin:6px 0 0;
  color:#374151;
}
.slip-money b{color:#111827}
@media(max-width:760px){
  .p2p-payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Audit V1 — white admin theme */
.audit-heading{margin-bottom:14px}.audit-toolbar{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(320px,1fr) auto;gap:12px;align-items:end;padding:15px;margin-bottom:12px;border:1px solid var(--line);border-radius:15px;background:#fff}.audit-toolbar label{display:grid;gap:6px}.audit-toolbar label>span{color:#56647a;font-size:11px;font-weight:900}.audit-toolbar select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cfd9e8;border-radius:10px;background:#fff;color:#172033;outline:none}.audit-toolbar select:focus{border-color:#a78bfa;box-shadow:0 0 0 3px #ede9fe}.audit-export-actions{display:flex;gap:8px}.audit-shift-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px;padding:12px;border:1px solid #dbe3ee;border-radius:14px;background:#fff}.audit-shift-info>div{min-width:0;padding:8px 10px;border-radius:10px;background:#f8fafc}.audit-shift-info span{display:block;margin-bottom:3px;color:var(--muted);font-size:10px}.audit-shift-info b{display:block;overflow-wrap:anywhere;font-size:12px}.audit-shift-info .closed{color:#047857}.audit-shift-info .current{color:#a16207}.audit-message{margin-bottom:12px;padding:11px 13px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-size:12px}.audit-message.error{border-color:#fecaca;background:#fff1f2;color:#b91c1c}.audit-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.audit-stat{position:relative;min-width:0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(29,41,57,.035)}.audit-stat span{display:block;color:#5c697d;font-size:11px;font-weight:800}.audit-stat strong{display:block;margin:5px 0 3px;font-size:19px;overflow-wrap:anywhere}.audit-stat small{color:var(--muted);font-size:10px}.audit-stat.credit{border-top:3px solid #10b981}.audit-stat.credit strong,.audit-stat.match-in strong{color:#047857}.audit-stat.debit{border-top:3px solid #ef4444}.audit-stat.debit strong,.audit-stat.match-out strong{color:#b91c1c}.audit-stat.refund{border-top:3px solid #0ea5e9}.audit-stat.refund strong{color:#0369a1}.audit-stat.net{border-top:3px solid #7c3aed}.audit-stat.net strong{color:#5b21b6}.audit-stat.match-in{border-top:3px solid #86efac}.audit-stat.match-out{border-top:3px solid #fda4af}.audit-stat.count{border-top:3px solid #94a3b8}.audit-stat.issues{border-top:3px solid #f59e0b}.audit-stat.issues strong{color:#b45309}.audit-card{margin-bottom:14px}.audit-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid var(--line);background:#fff}.audit-card-head h2{margin:0 0 2px;font-size:15px}.audit-card-head p{margin:0;color:var(--muted);font-size:11px}.audit-count-badge{padding:4px 9px;border-radius:99px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:900;white-space:nowrap}.danger-badge{background:#fff1f2;color:#be123c}.audit-table-wrap{max-height:440px}.audit-table{min-width:1280px;table-layout:auto}.audit-table th,.audit-table td{padding:9px 8px;font-size:11px}.audit-table th{background:#f8fafc}.ledger-table th:nth-child(1){min-width:135px}.ledger-table th:nth-child(2){min-width:120px}.ledger-table th:nth-child(3){min-width:170px}.ledger-table th:nth-child(4){min-width:110px}.ledger-table th:nth-child(5){min-width:210px}.ledger-table th:nth-child(6){min-width:100px}.ledger-table th:nth-child(7){min-width:260px}.ledger-table th:nth-child(8){min-width:140px}.audit-type{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:900;white-space:nowrap}.audit-type.credit{background:#ecfdf5;color:#047857}.audit-type.debit{background:#fff1f2;color:#be123c}.audit-type.refund{background:#eff6ff;color:#1d4ed8}.audit-user{display:grid;gap:2px;text-align:left}.audit-user b{font-size:11px;white-space:nowrap}.audit-user small{color:var(--muted);font-size:9px;overflow-wrap:anywhere}.audit-signed{font-weight:900;white-space:nowrap}.audit-signed.positive{color:#047857}.audit-signed.negative{color:#be123c}.audit-peer-list{display:grid;gap:5px;text-align:left}.audit-peer-list span{display:grid;gap:1px;padding:5px 7px;border-radius:7px;background:#f8fafc}.audit-peer-list small{color:var(--muted);font-size:9px}.audit-remark{max-width:320px;text-align:left;white-space:normal;overflow-wrap:anywhere;color:#334155}.audit-ids{display:grid;gap:4px;justify-items:center}.audit-ids button{padding:3px 6px;border:1px solid #ddd6fe;border-radius:6px;background:#faf7ff;color:#5b21b6;font-size:9px;font-weight:900}.audit-ids small{color:var(--muted);font-size:8px}.match-audit-table{min-width:1160px}.match-audit-table th:nth-child(1){min-width:140px}.match-audit-table th:nth-child(3),.match-audit-table th:nth-child(4){min-width:180px}.audit-slip-money{display:grid;gap:2px}.audit-slip-money b{font-size:11px}.audit-slip-money small{color:var(--muted);font-size:9px}.audit-slip-money .over-text{color:#be123c;font-weight:900}.audit-payment{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:900;white-space:nowrap}.audit-payment.exact{background:#ecfdf5;color:#047857}.audit-payment.multi{background:#eff6ff;color:#1d4ed8}.audit-payment.over{background:#fff1f2;color:#be123c}.audit-checks{display:flex;gap:5px;justify-content:center}.audit-checks span{padding:3px 6px;border-radius:6px;font-size:9px;font-weight:900}.audit-checks .ok{background:#ecfdf5;color:#047857}.audit-checks .bad{background:#fff1f2;color:#be123c}.issue-card{border-color:#fed7aa}.issue-card .audit-card-head{background:#fffaf5}.issue-table{min-width:900px}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#334155}
@media(max-width:1100px){.audit-toolbar{grid-template-columns:1fr 1.4fr}.audit-export-actions{grid-column:1/-1;justify-content:flex-end}.audit-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-shift-info{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.sidebar nav{display:flex;gap:4px}.nav-item{font-size:11px}.audit-toolbar{grid-template-columns:1fr}.audit-export-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}.audit-shift-info,.audit-summary-grid{grid-template-columns:1fr}.audit-card-head{align-items:flex-start}.audit-card-head p{display:none}}
.audit-result-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:14px 16px;border:1px solid;border-radius:14px;background:#fff}.audit-result-banner[hidden]{display:none}.audit-result-banner strong{display:block;margin-bottom:4px;font-size:14px}.audit-result-banner p{margin:0;font-size:11px;line-height:1.5}.audit-result-banner>span{font-size:10px;font-weight:800;text-align:right}.audit-result-banner.passed{border-color:#a7f3d0;background:#f0fdf4;color:#065f46}.audit-result-banner.has-issues{border-color:#fecaca;background:#fff1f2;color:#991b1b}.partner-wrap{max-height:300px}.partner-table{min-width:760px}.partner-table th:nth-child(1){min-width:160px}.partner-table th:nth-child(2),.partner-table th:nth-child(3),.partner-table th:nth-child(4){min-width:170px}.partner-name{display:grid;gap:2px;text-align:left}.partner-name b{font-size:12px}.partner-name small{color:var(--muted);font-size:9px}.audit-signed.neutral{color:#475569}.audit-remark{display:grid;gap:4px}.audit-remark b{font-size:10px;line-height:1.45;color:#1f2937}.audit-remark small{display:block;padding-top:3px;border-top:1px dashed #e2e8f0;color:#94a3b8;font-size:8px;line-height:1.35}.audit-direction{display:grid;gap:2px;justify-items:start}.audit-direction b{font-size:11px;white-space:nowrap}.audit-direction small{color:var(--muted);font-size:9px}.partial-badge{display:inline-flex;margin-top:2px;padding:3px 6px;border-radius:99px;background:#fff7ed;color:#c2410c;font-size:8px;font-weight:900}.match-audit-table{min-width:1280px}.match-audit-table th:nth-child(3){min-width:150px}.match-audit-table th:nth-child(4),.match-audit-table th:nth-child(5){min-width:180px}
@media(max-width:620px){.audit-result-banner{align-items:flex-start;flex-direction:column}.audit-result-banner>span{text-align:left}}

/* Audit V1.2: อ่านเส้นทางเครดิต Cross-brand แบบภาษาคน Audit */
.audit-summary-simple{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Audit Risk V1: คัดกรอง settlement ราย Order */
.audit-stat.errors{border-top:3px solid #ef4444}.audit-stat.errors strong{color:#b91c1c}
.audit-stat.risks{border-top:3px solid #f59e0b}.audit-stat.risks strong{color:#b45309}
.audit-result-banner.has-errors{border-color:#fecaca;background:#fff1f2;color:#991b1b}
.audit-result-banner.has-risk{border-color:#fde68a;background:#fffbeb;color:#92400e}
.issue-table{min-width:1320px}.issue-table th:nth-child(1){min-width:105px}.issue-table th:nth-child(2){min-width:135px}.issue-table th:nth-child(3){min-width:180px}.issue-table th:nth-child(4),.issue-table th:nth-child(5),.issue-table th:nth-child(6){min-width:110px}.issue-table th:nth-child(7){min-width:390px}.issue-table th:nth-child(8){min-width:145px}
.audit-issue-row.actual-error{background:#fff7f7}.audit-issue-row.risk{background:#fffdf5}
.audit-risk-level{display:inline-flex;padding:5px 8px;border-radius:99px;font-size:9px;font-weight:900;white-space:nowrap}.audit-risk-level.error{background:#fee2e2;color:#b91c1c}.audit-risk-level.risk{background:#fef3c7;color:#a16207}
.issue-table .error-text{display:grid;gap:4px;max-width:520px;white-space:normal;line-height:1.45}.issue-table .error-text small{color:#94a3b8;font-size:8px}.issue-table .over-text{color:#b91c1c;font-weight:900}
.audit-explain{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:11px;line-height:1.5}
.audit-explain[hidden]{display:none}.audit-explain b{white-space:nowrap}.audit-explain span{color:#334155}
.audit-flow-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}.audit-flow-grid[hidden]{display:none}
.flow-card{overflow:hidden}.flow-card.outbound{border-top:3px solid #ef4444}.flow-card.inbound{border-top:3px solid #10b981}
.flow-total{font-size:18px;white-space:nowrap}.flow-card.outbound .flow-total{color:#be123c}.flow-card.inbound .flow-total{color:#047857}
.flow-list{display:grid}.flow-row{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(100px,1fr) minmax(120px,.7fr);gap:12px;align-items:center;padding:12px 14px;border-top:1px solid #eef2f7}.flow-row:first-child{border-top:0}
.flow-route{display:grid;gap:2px}.flow-route b{font-size:12px}.flow-route small,.flow-money small{color:var(--muted);font-size:9px}
.flow-bar{height:8px;border-radius:99px;background:#eef2f7;overflow:hidden}.flow-bar i{display:block;height:100%;border-radius:99px;background:currentColor;min-width:4px}.outbound .flow-bar{color:#ef4444}.inbound .flow-bar{color:#10b981}
.flow-money{display:grid;gap:2px;text-align:right}.flow-money b{font-size:12px}.outbound .flow-money b{color:#be123c}.inbound .flow-money b{color:#047857}
.audit-technical{margin:0 0 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.audit-technical[hidden]{display:none}.audit-technical summary{cursor:pointer;padding:11px 14px;font-size:11px;font-weight:900;color:#475569}.audit-technical[open] summary{border-bottom:1px solid #e2e8f0}.audit-technical-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px}.audit-technical-grid div{display:grid;gap:3px;padding:10px;border-radius:9px;background:#f8fafc}.audit-technical-grid span{color:var(--muted);font-size:9px}.audit-technical-grid b{font-size:12px}
@media(max-width:1100px){.audit-summary-simple{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-flow-grid{grid-template-columns:1fr}.audit-technical-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.audit-summary-simple{grid-template-columns:1fr}.audit-explain{display:grid}.flow-row{grid-template-columns:1fr}.flow-money{text-align:left}.audit-technical-grid{grid-template-columns:1fr}}

.audit-credit-settlement-card{border-top:3px solid #7c3aed}.audit-credit-settlement-table{width:100%;min-width:980px;border-collapse:collapse}.audit-credit-settlement-table th,.audit-credit-settlement-table td{padding:11px 10px;border-bottom:1px solid #edf1f6;text-align:left;font-size:11px}.audit-credit-settlement-table th{background:#f8fafc;color:#526176;font-size:10px}.audit-credit-settlement-table td.money{font-weight:900;white-space:nowrap}.audit-credit-settlement-table td.remaining{color:#b45309;font-size:13px}.audit-credit-settlement-table tr.settled td.remaining{color:#047857}.audit-credit-route{display:grid;gap:2px}.audit-credit-route b{font-size:12px}.audit-credit-route small{color:var(--muted);font-size:9px}.audit-settlement-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:900}.audit-settlement-status.outstanding{background:#fff7ed;color:#c2410c}.audit-settlement-status.partial{background:#fffbeb;color:#a16207}.audit-settlement-status.settled,.audit-settlement-status.netted{background:#ecfdf5;color:#047857}.audit-settlement-action{display:flex;align-items:center;gap:7px}.audit-settlement-history{border-top:1px solid var(--line)}.audit-settlement-history summary{cursor:pointer;padding:12px 15px;color:#475569;font-size:11px;font-weight:900}.audit-settlement-history table{width:100%;min-width:760px;border-collapse:collapse}.audit-settlement-history th,.audit-settlement-history td{padding:9px 12px;border-top:1px solid #edf1f6;text-align:left;font-size:10px}.audit-settlement-modal{z-index:100}.audit-settlement-panel{width:min(760px,calc(100% - 28px))}.audit-settlement-form-body{display:grid;gap:14px;padding:18px 22px;overflow:auto}.audit-settlement-form-body label{display:grid;gap:7px;color:#475569;font-size:11px;font-weight:900}.audit-settlement-form-body label>strong{min-height:44px;padding:12px;border:1px solid #ddd6fe;border-radius:10px;background:#faf7ff;color:#5b21b6;font-size:13px}.audit-settlement-form-body select,.audit-settlement-form-body input,.audit-settlement-form-body textarea{width:100%;border:1px solid #cfd9e8;border-radius:10px;background:#fff;padding:11px 12px;outline:none}.audit-settlement-form-body textarea{min-height:92px;resize:vertical}.audit-settlement-form-body select:focus,.audit-settlement-form-body input:focus,.audit-settlement-form-body textarea:focus{border-color:#a78bfa;box-shadow:0 0 0 3px #ede9fe}.audit-settlement-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px;border:1px solid #dbe3ee;border-radius:12px;background:#f8fafc}.audit-settlement-preview div{display:grid;gap:4px}.audit-settlement-preview span{color:var(--muted);font-size:9px}.audit-settlement-preview b{font-size:16px}.audit-settlement-preview div:last-child b{color:#047857}.audit-settlement-warning{display:flex;gap:9px;padding:11px 12px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;color:#92400e;font-size:10px;line-height:1.5}.audit-settlement-warning b{white-space:nowrap}@media(max-width:620px){.audit-settlement-panel{width:100%}.audit-settlement-preview{grid-template-columns:1fr}.audit-settlement-form-body{padding:14px}}
.audit-credit-settlement-table{min-width:680px;table-layout:fixed}.audit-credit-settlement-table th,.audit-credit-settlement-table td{padding:7px 5px;font-size:9px;vertical-align:middle;overflow-wrap:anywhere}.audit-credit-settlement-table th{font-size:8px;line-height:1.25}.audit-credit-settlement-table th:nth-child(1),.audit-credit-settlement-table th:nth-child(2){width:14%}.audit-credit-settlement-table th:nth-child(3),.audit-credit-settlement-table th:nth-child(4),.audit-credit-settlement-table th:nth-child(5),.audit-credit-settlement-table th:nth-child(6){width:12%}.audit-credit-settlement-table th:nth-child(7){width:24%}.audit-credit-route{gap:1px}.audit-credit-route b{font-size:10px}.audit-credit-route small{font-size:7px}.audit-credit-settlement-table td.remaining{font-size:10px}.audit-settlement-action{gap:4px;flex-wrap:wrap}.audit-settlement-action .small-action{padding:5px 7px;font-size:8px;white-space:nowrap}.audit-settlement-status{padding:3px 6px;font-size:7px;white-space:nowrap}
.audit-credit-settlement-table{min-width:660px}.audit-credit-settlement-table th,.audit-credit-settlement-table td{padding:7px 3px;font-size:11px}.audit-credit-settlement-table th{font-size:10px}.audit-credit-route b{font-size:12px}.audit-credit-route small{font-size:9px}.audit-credit-settlement-table td.remaining{font-size:12px}.audit-settlement-action{gap:3px}.audit-settlement-action .small-action{padding:5px 6px;font-size:9px}.audit-settlement-status{padding:3px 5px;font-size:9px}.audit-settlement-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.audit-settlement-history-panel{width:min(900px,calc(100% - 28px))}.audit-settlement-history{overflow:auto;border-top:0}.audit-settlement-history table{min-width:700px}@media(max-width:760px){.audit-credit-settlement-table{min-width:620px}.audit-credit-settlement-table th,.audit-credit-settlement-table td{padding-left:2px;padding-right:2px;font-size:10px}.audit-credit-route b{font-size:11px}.audit-credit-route small{font-size:8px}.audit-settlement-history-panel{width:100%;height:100%;max-height:none;margin:0;border-radius:0}}

/* Member management + RBAC */
.nav-item[hidden]{display:none!important}
.role-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.role-guide article{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:5px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.role-guide article b{font-size:15px;color:#111827}.role-guide article span{font-size:12px;line-height:1.55;color:#6b7280}
.members-card{margin-top:0}.members-table th,.members-table td{text-align:center;vertical-align:middle}.members-table th:first-child,.members-table td:first-child{min-width:220px}.members-table th:last-child,.members-table td:last-child{min-width:190px}.member-admin-name{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;text-align:center}.member-admin-name b{color:#111827}.member-admin-name small{font-size:11px;color:#7c3aed}
.role-badge{display:inline-flex;flex-direction:column;gap:1px;padding:6px 9px;border:1px solid #e5e7eb;border-radius:9px;background:#f9fafb;min-width:112px}
.role-badge b{font-size:12px}.role-badge small{font-size:10px;color:#6b7280}
.role-badge.general{background:#f9fafb}.role-badge.audit{background:#eff6ff;border-color:#bfdbfe}.role-badge.admin{background:#f5f3ff;border-color:#ddd6fe}
.status-dot{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.status-dot:before{content:"";width:8px;height:8px;border-radius:50%}.status-dot.active{color:#15803d}.status-dot.active:before{background:#22c55e}.status-dot.inactive{color:#9ca3af}.status-dot.inactive:before{background:#d1d5db}
.member-actions{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.small-action{padding:7px 10px;font-size:12px;white-space:nowrap}
.member-modal-panel{max-width:520px}.password-modal-panel{max-width:480px}.member-form{padding:20px 22px 22px;display:flex;flex-direction:column;gap:15px}
.member-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#374151}.member-form input,.member-form select{width:100%;border:1px solid #d1d5db;border-radius:9px;padding:10px 11px;background:#fff;color:#111827;font:inherit;outline:none}.member-form input:focus,.member-form select:focus{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.08)}
.member-form label small{font-size:11px;font-weight:400;color:#6b7280}.member-switch{flex-direction:row!important;align-items:center;gap:9px!important;background:#f9fafb;border:1px solid #e5e7eb;border-radius:9px;padding:11px}.member-switch input{width:auto!important;margin:0}.member-form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:3px}.member-warning{font-size:12px;line-height:1.5;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:10px 12px;margin:0}
@media(max-width:900px){.role-guide{grid-template-columns:1fr}.members-table th:first-child,.members-table td:first-child{min-width:180px}.members-table th:last-child,.members-table td:last-child{min-width:170px}.member-actions{flex-direction:column;align-items:stretch}}

/* System settings V1 */
.system-settings-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.04);overflow:hidden}
.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #eef2f7}.settings-card-head h2{margin:0;font-size:16px;color:#0f172a}.settings-card-head p{margin:5px 0 0;font-size:11px;color:#64748b}.settings-admin-only{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#f5f3ff;color:#6d28d9;font-size:10px;font-weight:900;white-space:nowrap}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 20px}.settings-toggle-row,.settings-field,.settings-fixed-rule{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:15px 16px}.settings-toggle-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-toggle-row>div,.settings-field,.settings-fixed-rule{display:flex;flex-direction:column;gap:5px}.settings-toggle-row b,.settings-field>span,.settings-fixed-rule>span{font-size:12px;font-weight:900;color:#0f172a}.settings-toggle-row small,.settings-field small,.settings-fixed-rule small{font-size:10px;line-height:1.5;color:#64748b}.settings-fixed-rule b{font-size:18px;color:#0f766e}.settings-input-unit{display:flex;align-items:center;overflow:hidden;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.settings-input-unit input{flex:1;min-width:0;height:44px;border:0;padding:0 12px;background:transparent;color:#111827;font:inherit;font-size:16px;font-weight:800;outline:0}.settings-input-unit b{align-self:stretch;display:flex;align-items:center;padding:0 13px;border-left:1px solid #e2e8f0;background:#f8fafc;color:#475569;font-size:11px;white-space:nowrap}
.settings-switch{position:relative;display:inline-flex;width:52px;height:29px;flex:0 0 52px}.settings-switch input{position:absolute;opacity:0;pointer-events:none}.settings-switch i{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;transition:.18s}.settings-switch i:after{content:"";position:absolute;top:4px;left:4px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.25);transition:.18s}.settings-switch input:checked+i{background:#22c55e}.settings-switch input:checked+i:after{transform:translateX(23px)}
.settings-note{display:flex;gap:10px;align-items:flex-start;margin:0 20px 14px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a}.settings-note b{font-size:11px;white-space:nowrap}.settings-note span{font-size:10px;line-height:1.55}.settings-meta{padding:0 20px;color:#64748b;font-size:10px}.system-settings-card>.form-error{padding:0 20px;margin:8px 0 0}.settings-actions{display:flex;justify-content:flex-end;padding:16px 20px 20px}.settings-actions button{min-width:160px}
@media(max-width:760px){.settings-card-head{align-items:stretch;flex-direction:column}.settings-admin-only{align-self:flex-start}.settings-grid{grid-template-columns:1fr}.settings-toggle-row{grid-column:auto}.settings-note{flex-direction:column}.settings-actions button{width:100%}}

/* Website settings */
.website-settings-card{overflow:visible;background:#f7f9fc;border-color:#dbe4f0;box-shadow:0 12px 35px rgba(15,23,42,.06)}
.website-settings-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;color:#fff;background:linear-gradient(125deg,#172554,#312e81 55%,#6d28d9);border-radius:14px 14px 0 0}.website-settings-hero h2{margin:4px 0 3px;font-size:19px}.website-settings-hero p{margin:0;color:#ddd6fe;font-size:11px}.website-settings-kicker{font-size:9px;font-weight:900;letter-spacing:.16em;color:#c4b5fd}.website-settings-hero .settings-admin-only{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.2)}
.website-brand-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:16px 20px 10px;background:#fff}.website-brand-tabs button{min-height:47px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;color:#64748b;font-size:12px;font-weight:900;cursor:pointer;transition:.18s}.website-brand-tabs button:hover{border-color:#a78bfa;color:#6d28d9}.website-brand-tabs button.active{border-color:#7c3aed;color:#fff;background:linear-gradient(135deg,#7c3aed,#4f46e5);box-shadow:0 7px 18px rgba(109,40,217,.22)}
.website-source-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 20px 15px;padding:14px 16px;border:1px solid #bbf7d0;border-radius:13px;background:#f0fdf4}.website-source-state{display:flex;align-items:center;gap:11px}.website-source-state>span{width:12px;height:12px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12)}.website-source-state b{display:block;color:#14532d;font-size:12px}.website-source-state small{display:block;margin-top:3px;color:#4d7c5a;font-size:9px}.website-source-toggle{display:flex;align-items:center;gap:12px;color:#166534;font-size:10px;font-weight:900}.website-settings-card:not(.is-main-site) .website-source-card{border-color:#c4b5fd;background:#f5f3ff}.website-settings-card:not(.is-main-site) .website-source-state>span{background:#7c3aed;box-shadow:0 0 0 5px rgba(124,58,237,.12)}.website-settings-card:not(.is-main-site) .website-source-state b{color:#4c1d95}.website-settings-card:not(.is-main-site) .website-source-state small,.website-settings-card:not(.is-main-site) .website-source-toggle{color:#6d28d9}
.website-section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 20px 14px;background:#fff;border-bottom:1px solid #e7edf5}.website-section-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:9px 12px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;color:#64748b;text-align:left;cursor:pointer}.website-section-tabs button>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#eef2ff;color:#6366f1;font-size:14px}.website-section-tabs b,.website-section-tabs small{display:block}.website-section-tabs b{font-size:11px}.website-section-tabs small{margin-top:2px;font-size:8px;font-weight:600;color:#94a3b8}.website-section-tabs button.active{border-color:#a78bfa;background:#faf5ff;color:#6d28d9;box-shadow:0 0 0 2px rgba(124,58,237,.06)}
.website-settings-panel{padding:20px;background:#fff}.website-settings-panel[hidden]{display:none}.website-settings-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.website-settings-section-head h3{margin:0;color:#0f172a;font-size:14px}.website-settings-section-head p{margin:4px 0 0;color:#64748b;font-size:10px}.website-section-badge{padding:6px 9px;border-radius:999px;background:#eef2ff;color:#6366f1;font-size:9px;font-weight:900}.website-contact-head{margin-top:22px;padding-top:19px;border-top:1px solid #eef2f7}
.website-assets-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.website-asset-card{display:grid;gap:10px;padding:13px;border:1px solid #dce4ef;border-radius:13px;background:#f8fafc}.website-asset-card header b,.website-asset-card header small{display:block}.website-asset-card header b{font-size:11px;color:#172033}.website-asset-card header small{margin-top:3px;color:#ef4444;font-size:9px}.website-asset-preview{display:grid;height:108px;place-items:center;overflow:hidden;border:1px dashed #bdc9d9;border-radius:10px;background:#fff}.website-asset-preview img{width:100%;height:100%;object-fit:contain}.website-asset-preview.square img{width:78px;height:78px}.website-asset-preview span{color:#94a3b8;font-size:9px}.website-asset-actions{display:grid;grid-template-columns:1fr auto;gap:7px}.website-asset-actions label,.website-asset-actions button{display:grid;min-height:34px;place-items:center;margin:0;padding:0 11px;cursor:pointer}.website-asset-actions input{display:none}
.website-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.website-form-grid .website-wide{grid-column:1/-1}.website-inline-toggle{display:flex;align-items:center;gap:10px;color:#475569;font-size:10px;font-weight:900}
.website-popup-layout{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px}.website-editor-card{overflow:hidden;border:1px solid #d8e1ec;border-radius:13px;background:#fff}.website-editor-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:9px;border-bottom:1px solid #e5eaf1;background:#f8fafc}.website-editor-toolbar button,.website-editor-toolbar label,.website-editor-toolbar select{display:grid;min-width:32px;height:31px;place-items:center;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#344256;font:inherit;font-size:10px;cursor:pointer}.website-editor-toolbar select{display:block;min-width:100px;padding:0 7px}.website-editor-toolbar .website-editor-link-input{height:31px;min-width:220px;flex:1;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#344256;padding:0 9px;font:inherit;font-size:10px}.website-editor-toolbar label{position:relative}.website-editor-toolbar label>input[type=file]{display:none}.website-editor-color input{position:absolute;inset:0;opacity:0;cursor:pointer}.website-editor-icons{display:flex;align-items:center;gap:5px;padding:7px 10px;border-bottom:1px solid #edf1f6;background:#fff}.website-editor-icons span{margin-right:3px;color:#64748b;font-size:9px}.website-editor-icons button{width:29px;height:27px;border:0;border-radius:7px;background:#f1f5f9;cursor:pointer}.website-popup-editor{min-height:330px;max-height:620px;overflow:auto;padding:16px;color:#172033;font-size:13px;line-height:1.65;outline:0}.website-popup-editor:empty:before{content:attr(data-placeholder);color:#94a3b8}.website-popup-editor img,.website-popup-editor video{display:block;max-width:100%;height:auto;margin:12px auto;border-radius:10px}.website-popup-help{height:max-content;padding:14px;border:1px solid #ddd6fe;border-radius:12px;background:#faf5ff}.website-popup-help>b{display:block;margin-bottom:10px;color:#5b21b6;font-size:11px}.website-popup-help div{padding:8px 0;border-bottom:1px solid #ede9fe}.website-popup-help span,.website-popup-help strong{display:block}.website-popup-help span{color:#7c3aed;font-size:8px}.website-popup-help strong{margin-top:2px;color:#3b0764;font-size:11px}.website-popup-help p{margin:11px 0 0;color:#6b7280;font-size:9px;line-height:1.6}
.website-slide-custom-link{display:grid;gap:5px;margin-top:5px}.website-slide-custom-link[hidden]{display:none}.website-slide-custom-link small{color:#64748b;font-size:8px;line-height:1.4}.website-slide-custom-link select{margin-top:1px}
.website-slide-settings-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px;padding:12px 14px;border:1px solid #dbeafe;border-radius:11px;background:#eff6ff}.website-slide-settings-bar label{display:flex;align-items:center;gap:9px}.website-slide-settings-bar span,.website-slide-settings-bar b,.website-slide-settings-bar small{display:block}.website-slide-settings-bar span,.website-slide-settings-bar b{font-size:10px}.website-slide-settings-bar small{margin-top:2px;color:#64748b;font-size:8px}.website-slide-settings-bar select{height:36px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;padding:0 9px;font:inherit;font-size:10px;font-weight:800}.website-slides-list{display:grid;gap:11px}.website-slide-row{display:grid;grid-template-columns:34px 150px minmax(120px,.7fr) minmax(175px,1fr) 90px auto;align-items:center;gap:10px;padding:11px;border:1px solid #dce4ef;border-radius:13px;background:#f8fafc}.website-slide-order{display:grid;gap:5px}.website-slide-order button{width:31px;height:27px;padding:0}.website-slide-image{display:grid;place-items:center;width:150px;height:62px;overflow:hidden;border:1px dashed #aebdce;border-radius:9px;background:#fff;cursor:pointer}.website-slide-image img{width:100%;height:100%;object-fit:cover}.website-slide-image span{padding:4px;color:#64748b;font-size:8px;text-align:center}.website-slide-image input{display:none}.website-slide-field{display:grid;gap:4px}.website-slide-field>span{color:#64748b;font-size:8px;font-weight:800}.website-slide-row input,.website-slide-row select{width:100%;height:37px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:0 8px;font:inherit;font-size:10px}.website-slide-link-custom[hidden]{display:none}.website-slide-row .danger{height:37px;padding:0 10px;border-color:#fecaca;color:#b91c1c;background:#fff}.website-slides-empty{display:grid;padding:34px;place-items:center;border:1px dashed #bdc9d9;border-radius:12px;color:#64748b;text-align:center}.website-slides-empty>span{font-size:26px;color:#a78bfa}.website-slides-empty b{margin-top:5px;font-size:11px}.website-slides-empty small{margin-top:3px;font-size:9px}
.website-settings-card.is-main-site [data-website-panel]{opacity:1}.website-uploading{opacity:.6;pointer-events:none}.website-settings-card>.settings-note{margin-top:16px}.website-settings-card>.settings-actions{position:sticky;bottom:0;z-index:4;border-top:1px solid #e2e8f0;background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}
@media(max-width:1050px){.website-assets-grid{grid-template-columns:1fr}.website-popup-layout{grid-template-columns:1fr}.website-popup-help{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.website-popup-help>b{grid-column:1/-1}.website-popup-help p{margin:0}.website-slide-row{grid-template-columns:34px 140px 1fr 1fr}.website-slide-row>*:nth-child(n+5){grid-column:auto}.website-slide-row .danger{grid-column:4}}
@media(max-width:680px){.website-settings-hero,.website-source-card,.website-settings-section-head,.website-slide-settings-bar{align-items:stretch;flex-direction:column}.website-brand-tabs{grid-template-columns:repeat(2,1fr)}.website-section-tabs{grid-template-columns:1fr}.website-section-tabs button{justify-content:flex-start}.website-form-grid{grid-template-columns:1fr}.website-form-grid .website-wide{grid-column:auto}.website-popup-help{grid-template-columns:1fr}.website-slide-row{grid-template-columns:34px 110px 1fr}.website-slide-row>*:nth-child(n+4){grid-column:2/-1}.website-slide-row .danger{grid-column:2/-1}.website-slide-image{width:110px;height:52px}}

/* P2P success dashboard */
.dashboard-filter-card{display:grid;grid-template-columns:auto minmax(430px,1fr);align-items:end;gap:12px 18px;margin-bottom:14px;padding:14px 16px;border:1px solid var(--line);border-radius:15px;background:#fff}
.dashboard-filter-card>small{grid-column:1/-1;color:#64748b;font-size:10px;line-height:1.5}.dashboard-presets{display:flex;gap:7px;flex-wrap:wrap}.dashboard-preset{min-height:40px;padding:0 13px;border:1px solid #d7e0ec;border-radius:10px;background:#f8fafc;color:#475569;font-size:11px;font-weight:900}.dashboard-preset.active{border-color:#a78bfa;background:#f1eaff;color:#6d28d9;box-shadow:0 0 0 2px rgba(124,58,237,.05)}
.dashboard-range-form{display:grid;grid-template-columns:minmax(145px,1fr) auto minmax(145px,1fr) auto;gap:9px;align-items:end}.dashboard-range-form label{display:grid;gap:5px}.dashboard-range-form label span{font-size:10px;font-weight:900;color:#475569}.dashboard-range-form input{width:100%;min-height:40px;border:1px solid #cfd9e8;border-radius:10px;padding:8px 10px;background:#fff;color:#172033;outline:0}.dashboard-range-form input:focus{border-color:#a78bfa;box-shadow:0 0 0 3px #ede9fe}.dashboard-range-separator{align-self:center;padding-top:16px;color:#94a3b8;font-size:11px;font-weight:800}
.dashboard-message{margin:0 0 12px;padding:11px 13px;border:1px solid #fde68a;border-radius:11px;background:#fffbeb;color:#92400e;font-size:11px;font-weight:700}.dashboard-period-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding:11px 14px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff}.dashboard-period-bar div{display:flex;align-items:center;gap:8px}.dashboard-period-bar span,.dashboard-period-bar small{color:#64748b;font-size:10px}.dashboard-period-bar strong{color:#1e40af;font-size:12px}
.dashboard-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.dashboard-stat{position:relative;overflow:hidden;min-height:126px;padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.035)}.dashboard-stat:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#94a3b8}.dashboard-stat.deposit:before{background:#10b981}.dashboard-stat.withdraw:before{background:#ef4444}.dashboard-stat.orders:before{background:#3b82f6}.dashboard-stat.split:before{background:#f59e0b}.dashboard-stat span{display:block;color:#64748b;font-size:10px;font-weight:800}.dashboard-stat strong{display:block;margin:12px 0 5px;color:#0f172a;font-size:22px;line-height:1.15}.dashboard-stat small{display:block;color:#64748b;font-size:10px;line-height:1.4}.dashboard-stat.deposit strong,.dashboard-stat.deposit small{color:#047857}.dashboard-stat.withdraw strong,.dashboard-stat.withdraw small{color:#be123c}
.dashboard-rule-note{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;padding:12px 14px;border:1px solid #c4b5fd;border-radius:12px;background:#f5f3ff;color:#4c1d95;font-size:11px;line-height:1.55}.dashboard-rule-note b{white-space:nowrap}.dashboard-rule-note span{color:#475569}
.dashboard-table-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid #eef2f7}.dashboard-table-head h2{margin:0;font-size:15px}.dashboard-table-head p{margin:4px 0 0;color:#64748b;font-size:10px}.dashboard-channel-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.dashboard-channel-tabs button{min-height:36px;padding:0 13px;border:1px solid #d7e0ec;border-radius:10px;background:#f8fafc;color:#64748b;font:inherit;font-size:10px;font-weight:900;cursor:pointer}.dashboard-channel-tabs button.active{border-color:#7c3aed;background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;box-shadow:0 5px 12px rgba(124,58,237,.2)}.dashboard-table-card .table-wrap{max-height:none}.dashboard-table{min-width:920px;table-layout:auto}.dashboard-table th:last-child,.dashboard-table td:last-child{width:auto}.dashboard-brand{display:inline-flex;min-width:92px;justify-content:center;padding:6px 9px;border-radius:8px;background:#f1eaff;color:#6d28d9;font-size:11px}.dashboard-deposit-value{color:#047857}.dashboard-withdraw-value{color:#be123c}.dashboard-unavailable{color:#a16207;background:#fffbeb;font-size:11px}.dashboard-cell-label{display:block;margin-top:2px;color:#64748b;font-size:9px;font-weight:600}
@media(max-width:1100px){.dashboard-filter-card{grid-template-columns:1fr}.dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filter-card>small{grid-column:auto}}
@media(max-width:680px){.dashboard-range-form{grid-template-columns:1fr 1fr}.dashboard-range-separator{display:none}.dashboard-range-form button{grid-column:1/-1}.dashboard-summary-grid{grid-template-columns:1fr}.dashboard-period-bar,.dashboard-rule-note,.dashboard-table-head{align-items:flex-start;flex-direction:column}.dashboard-presets{display:grid;grid-template-columns:repeat(3,1fr)}.dashboard-preset{padding:0 7px}.dashboard-channel-tabs{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-channel-tabs button{padding:0 7px}}

/* Admin credit/refund approval popup */
.approval-modal{z-index:100;display:grid;place-items:center;padding:18px}
.approval-modal-panel{width:min(520px,100%);max-height:calc(100vh - 36px);margin:0;border-radius:20px}
.approval-modal-header{display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:start;gap:13px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#f8fffc,#fff)}
.approval-modal-header .eyebrow{margin:0 0 3px;color:#047857}.approval-modal-header h2{margin:0 0 3px;font-size:21px}.approval-modal-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#d1fae5;color:#047857;font-size:25px;font-weight:900}
.approval-modal-body{display:grid;gap:13px;padding:18px 22px;overflow:auto}.approval-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.approval-summary>div{padding:12px 14px;border:1px solid #dce4ef;border-radius:12px;background:#f8fafc}.approval-summary small{display:block;margin-bottom:5px;color:var(--muted);font-size:10px}.approval-summary strong{display:block;overflow-wrap:anywhere;font-size:16px}.approval-summary>div:last-child{border-color:#a7f3d0;background:#ecfdf5}.approval-summary>div:last-child strong{color:#047857;font-size:20px}
.approval-warning{padding:12px 13px;border:1px solid #fcd34d;border-radius:11px;background:#fffbeb;color:#92400e;font-size:12px;line-height:1.55}.approval-warning b{display:block;margin-bottom:2px;color:#78350f}
.approval-flow{display:grid;gap:7px}.approval-flow>div{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:9px;color:#475569;font-size:11px}.approval-flow span{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#ede9fe;color:#6d28d9;font-size:10px;font-weight:900}
.approval-check-row{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;cursor:pointer}.approval-check-row input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#059669}.approval-check-row span{color:#334155;font-size:12px;font-weight:800;line-height:1.45}
.approval-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid var(--line);background:#fafbfe}.approval-modal-actions button{min-width:126px}.approval-modal-actions .success:not(:disabled){background:#059669;color:#fff}
@media(max-width:620px){.approval-modal{padding:12px}.approval-modal-panel{width:100%;height:auto;max-height:calc(100vh - 24px);border-radius:18px}.approval-modal-header{grid-template-columns:42px minmax(0,1fr) 34px;padding:17px}.approval-modal-icon{width:42px;height:42px}.approval-modal-body{padding:15px 17px}.approval-summary{grid-template-columns:1fr}.approval-modal-actions{padding:13px 17px}.approval-modal-actions button{min-width:0;flex:1}}

/* Complete main-site withdrawal from Board */
.main-payout-section{border-color:#bfdbfe;background:#f8fbff}.payout-help{margin:-3px 0 12px;color:#475569;font-size:11px;line-height:1.55}.main-payout-list{display:grid;gap:11px}.main-payout-card{display:grid;gap:10px;padding:14px;border:1px solid #dbe4f0;border-radius:13px;background:#fff}.main-payout-card.pending{border-color:#fde68a}.main-payout-card.review{border-color:#fdba74;background:#fffaf5}.main-payout-card.success{border-color:#a7f3d0;background:#f6fffb}.main-payout-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.main-payout-card>header div{display:grid;gap:3px}.main-payout-card>header small,.main-payout-card>small{color:#64748b;font-size:10px}.main-payout-card>header b{font-size:13px;color:#334155}.main-payout-card>header strong{color:#0f172a;font-size:18px}.payout-state{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.payout-state small{color:#64748b;font-size:10px}.main-payout-card>button{justify-self:start}.main-payout-live{display:grid;gap:11px}.payout-recipient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.payout-recipient-grid>div{display:grid;gap:4px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.payout-recipient-grid small{color:#64748b;font-size:9px}.payout-recipient-grid b{overflow-wrap:anywhere;color:#1e293b;font-size:12px}.payout-recipient-grid .payout-amount{color:#b91c1c;font-size:17px}.payout-account-field{display:grid;gap:6px;color:#334155;font-size:11px;font-weight:900}.payout-account-field select{width:100%;min-height:43px;border:1px solid #93c5fd;border-radius:10px;padding:8px 10px;background:#fff;color:#0f172a;font:inherit;font-size:11px;outline:none}.payout-account-field select:focus{box-shadow:0 0 0 3px #dbeafe}.payout-transfer-warning,.payout-provider-box{display:grid;gap:4px;padding:11px 12px;border:1px solid #fcd34d;border-radius:10px;background:#fffbeb;color:#92400e;font-size:10px;line-height:1.5}.payout-transfer-warning b,.payout-provider-box b{font-size:11px}.payout-provider-box.success{border-color:#a7f3d0;background:#ecfdf5;color:#047857}.payout-provider-box.error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.payout-provider-box button{justify-self:start;margin-top:5px}.payout-complete-button{justify-self:start}
@media(max-width:620px){.payout-recipient-grid{grid-template-columns:1fr}.main-payout-card>header{align-items:flex-start;flex-direction:column}.main-payout-card>button,.payout-complete-button,.payout-provider-box button{width:100%}}

/* Slip without QR — manual review */
.slip-card.manual_review{border-color:#fcd34d;background:#fffbeb}.slip-card.manual_review>p{color:#92400e;font-weight:800}.slip-card.manual_review .slip-actions{display:grid;grid-template-columns:1fr}.slip-card.manual_review .slip-actions button{width:100%}
.settings-field>input,.settings-field>select{height:44px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:0 12px;color:#111827;font:inherit;font-size:14px;font-weight:700;outline:0}
.gateway-settings-modal{z-index:90}.gateway-settings-panel{width:min(920px,calc(100% - 28px))}.gateway-settings-form{min-height:0;overflow:auto}.gateway-settings-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);background:#f8fafc}.gateway-brand-picker{display:grid;gap:6px}.gateway-brand-picker>span{font-size:11px;font-weight:900}.gateway-brand-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.gateway-brand-tab{position:relative;min-width:105px;height:42px;padding:0 25px 0 15px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font:inherit;cursor:pointer}.gateway-brand-tab b{font-size:12px}.gateway-brand-tab.active{border-color:#7c3aed;background:#7c3aed;color:#fff;box-shadow:0 5px 14px rgba(124,58,237,.18)}.gateway-brand-tab i{position:absolute;top:50%;right:10px;width:8px;height:8px;padding:0;transform:translateY(-50%);border-radius:50%;background:#cbd5e1}.gateway-brand-tab i.gateway-tab-loading{background:#f59e0b;animation:gateway-pulse 1s infinite}.gateway-brand-tab i.gateway-tab-ready{background:#22c55e}.gateway-brand-tab i.gateway-tab-error{background:#ef4444}@keyframes gateway-pulse{50%{opacity:.35}}.gateway-master-section{padding:14px 20px 0}.gateway-master-toggle{grid-column:auto}.gateway-section{display:grid;gap:12px;padding:14px 20px 18px;border-bottom:1px solid var(--line)}.gateway-section>.settings-toggle-row{grid-column:auto}.gateway-provider-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.gateway-provider-head h3{margin:0;font-size:14px}.gateway-provider-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.gateway-provider-head>span{color:var(--muted);font-size:10px;white-space:nowrap}.gateway-provider-message{padding:9px 11px;border-radius:9px;font-size:11px;font-weight:800}.gateway-provider-message.success{border:1px solid #a7f3d0;background:#ecfdf5;color:#047857}.gateway-provider-message.warning{border:1px solid #fde68a;background:#fffbeb;color:#a16207}.gateway-provider-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gateway-provider-options.is-disabled{opacity:.62}.gateway-provider-card{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:66px;padding:10px 12px;border:1px solid #dce4ef;border-radius:11px;background:#fff}.gateway-provider-card.is-open{border-color:#a7f3d0;background:#f0fdf4}.gateway-provider-card.is-closed{background:#f8fafc}.gateway-provider-check{display:grid;place-items:center}.gateway-provider-check input{width:18px;height:18px;accent-color:#16a34a}.gateway-provider-check i{display:grid;place-items:center;min-width:26px;height:22px;border-radius:6px;background:#e0e7ff;color:#3730a3;font-size:9px;font-style:normal;font-weight:900}.gateway-provider-name{min-width:0}.gateway-provider-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.gateway-provider-name small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.gateway-provider-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:9px;font-weight:900;white-space:nowrap}.gateway-provider-status.open{background:#dcfce7;color:#047857}.gateway-provider-status.closed{background:#fee2e2;color:#b91c1c}.gateway-provider-status.unknown{background:#e2e8f0;color:#475569}.gateway-provider-empty{grid-column:1/-1;padding:24px;border:1px dashed #cbd5e1;border-radius:10px;text-align:center;color:var(--muted);font-size:11px}.gateway-routing-note{color:#475569;font-size:10px;line-height:1.55}.gateway-amount-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gateway-settings-form>.form-error{padding:0 20px;margin:12px 0 0}.gateway-settings-form>.modal-actions{position:sticky;bottom:0;z-index:2}.gateway-settings-form>.modal-actions button{min-width:140px}
@media(max-width:760px){.page-heading-actions{align-items:stretch;flex-direction:column}.gateway-settings-panel{width:100%;height:100%;max-height:none;margin:0;border-radius:0}.gateway-settings-toolbar{align-items:stretch;flex-direction:column}.gateway-brand-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gateway-brand-tab{width:100%;min-width:0}.gateway-provider-head{flex-direction:column}.gateway-provider-options,.gateway-amount-grid{grid-template-columns:1fr}.gateway-provider-card{grid-template-columns:28px minmax(0,1fr)}.gateway-provider-status{grid-column:2;justify-self:start}.gateway-settings-form>.modal-actions{flex-wrap:nowrap}.gateway-settings-form>.modal-actions button{min-width:0}}
.gateway-deposit-limit{margin-top:10px}.gateway-choice-heading,.gateway-choice-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(110px,.65fr) minmax(105px,.55fr) minmax(105px,.55fr) minmax(105px,.55fr);align-items:center;gap:9px}.gateway-choice-heading{padding:0 12px;color:#64748b;font-size:10px}.gateway-choice-heading b:not(:first-child){text-align:center}.gateway-provider-options{display:grid;grid-template-columns:1fr;gap:8px}.gateway-choice-row{min-height:78px;padding:10px 12px;border:1px solid #dce4ef;border-radius:11px;background:#fff}.gateway-status-detail{display:grid;justify-items:center;gap:4px}.gateway-status-detail small{color:#64748b;font-size:8px}.gateway-range-input{display:grid;gap:4px}.gateway-range-input span{display:none}.gateway-range-input input{width:100%;min-width:0;height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 8px;text-align:right;font:inherit;font-size:12px;font-weight:800;color:#0f172a}.gateway-range-input input:disabled{background:#f1f5f9;color:#94a3b8}.gateway-use-checkbox{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;font-weight:900}.gateway-use-checkbox input{width:18px;height:18px;accent-color:#16a34a}.gateway-use-checkbox.is-closed{opacity:.72}
@media(max-width:760px){.gateway-choice-heading{display:none}.gateway-choice-row{grid-template-columns:minmax(120px,1fr) minmax(90px,.7fr);gap:8px}.gateway-provider-name{grid-column:1}.gateway-status-detail{grid-column:2}.gateway-range-input{grid-column:auto}.gateway-range-input span{display:block;color:#64748b;font-size:8px}.gateway-use-checkbox{grid-column:1/-1;justify-content:flex-start}.gateway-use-checkbox span{display:inline}}

/* Audit V1.4 — สรุปยอดรายเว็บแบบอ่านง่ายและไม่ล้นจอ */
#audit-page{font-size:14px}
#audit-page .audit-heading{margin-bottom:10px}
#audit-page .audit-heading h1{font-size:23px}
#audit-page .audit-heading p{font-size:14px;line-height:1.5}
#audit-page .audit-toolbar{grid-template-columns:minmax(170px,.45fr) minmax(280px,1fr) auto;gap:8px;padding:12px;margin-bottom:9px}
#audit-page .audit-toolbar label{gap:5px}
#audit-page .audit-toolbar label>span{font-size:14px}
#audit-page .audit-toolbar select,#audit-page .audit-export-actions button,#audit-page #audit-refresh-button{font-size:14px}
#audit-page .audit-shift-info{gap:7px;margin-bottom:9px;padding:9px}
#audit-page .audit-shift-info>div{padding:8px 10px}
#audit-page .audit-shift-info span{font-size:12px}
#audit-page .audit-shift-info b{font-size:14px;line-height:1.4}
#audit-page .audit-result-banner{margin-bottom:9px;padding:11px 13px}
#audit-page .audit-result-banner strong{font-size:16px}
#audit-page .audit-result-banner p,#audit-page .audit-result-banner>span{font-size:13px}
#audit-page .audit-summary-grid{gap:8px;margin-bottom:9px}
#audit-page .audit-stat{min-height:108px;padding:13px}
#audit-page .audit-stat span{font-size:14px;line-height:1.4}
#audit-page .audit-stat strong{margin:7px 0 4px;font-size:25px}
#audit-page .audit-stat small{font-size:12px;line-height:1.4}
#audit-page .audit-stat.audit-receivable{border-top:4px solid #10b981}
#audit-page .audit-stat.audit-receivable strong{color:#047857}
#audit-page .audit-stat.audit-payable{border-top:4px solid #ef4444}
#audit-page .audit-stat.audit-payable strong{color:#b91c1c}
#audit-page .audit-card{margin-bottom:10px}
#audit-page .audit-card-head{gap:10px;padding:12px 14px}
#audit-page .audit-card-head h2{font-size:18px}
#audit-page .audit-card-head p{font-size:13px;line-height:1.45}
#audit-page .audit-count-badge{font-size:13px;padding:6px 10px}
#audit-page .small-action{font-size:13px;padding:8px 11px}
.audit-credit-settlement-card{border-top:4px solid #7c3aed}
.audit-balance-guide{display:flex;flex-wrap:wrap;gap:7px;padding:10px 14px;border-bottom:1px solid #e9edf3;background:#fafbff}
.audit-balance-guide span{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:8px;font-size:13px;font-weight:800}
.audit-balance-guide .receive{background:#ecfdf5;color:#047857}.audit-balance-guide .pay{background:#fff1f2;color:#be123c}.audit-balance-guide .done{background:#f1f5f9;color:#475569}
.audit-credit-settlement-table{width:100%;min-width:0;display:block}
.audit-balance-head,.audit-balance-row{display:grid;grid-template-columns:minmax(130px,1.15fr) minmax(105px,.9fr) minmax(105px,.9fr) minmax(140px,1.1fr) minmax(155px,1.15fr);align-items:center;gap:8px}
.audit-balance-head{padding:9px 14px;background:#f8fafc;color:#526176;border-bottom:1px solid #e5eaf1}
.audit-balance-head b{font-size:13px}.audit-balance-head b:not(:first-child){text-align:center}
.audit-balance-list{display:grid}
.audit-balance-row{padding:12px 14px;border-bottom:1px solid #edf1f6;background:#fff}
.audit-balance-row:last-child{border-bottom:0}.audit-balance-row.settled{background:#f8fffb}
.audit-balance-row .audit-credit-route{display:grid;gap:3px}
.audit-balance-row .audit-credit-route b{font-size:16px;color:#172033}
.audit-balance-row .audit-credit-route small{font-size:12px;line-height:1.35;color:#64748b}
.audit-balance-money{display:grid;gap:2px;text-align:center}.audit-balance-money span{display:none;font-size:12px;color:#64748b}
.audit-balance-money b{font-size:18px;white-space:nowrap}.audit-balance-money.receive b{color:#047857}.audit-balance-money.pay b{color:#be123c}
.audit-balance-progress{display:grid;gap:4px;text-align:center}.audit-balance-progress span{font-size:13px;color:#475569;white-space:nowrap}
.audit-balance-row .audit-settlement-action{justify-content:center;gap:7px;flex-wrap:wrap}
.audit-balance-row .audit-settlement-status{padding:6px 9px;font-size:13px}
.audit-settlement-panel{width:min(650px,calc(100% - 28px))}
.audit-settlement-form-body{gap:10px;padding:15px 18px}
.audit-settlement-form-body label{gap:5px;font-size:14px}
.audit-settlement-form-body label>strong{min-height:42px;padding:10px 12px;font-size:16px}
.audit-settlement-form-body select,.audit-settlement-form-body input,.audit-settlement-form-body textarea{padding:10px 12px;font-size:15px}
.audit-settlement-form-body textarea{min-height:74px}
.audit-settlement-preview{padding:11px}.audit-settlement-preview span{font-size:13px}.audit-settlement-preview b{font-size:19px}
.audit-settlement-warning{font-size:13px}
.audit-settlement-history table{min-width:720px}.audit-settlement-history th,.audit-settlement-history td{padding:11px 12px;font-size:13px}
.audit-settlement-history th{font-size:14px}
@media(max-width:1100px){#audit-page .audit-toolbar{grid-template-columns:1fr 1.4fr}.audit-balance-head,.audit-balance-row{grid-template-columns:minmax(120px,1.1fr) repeat(2,minmax(100px,.9fr)) minmax(125px,1fr) minmax(140px,1.1fr)}}
@media(max-width:760px){#audit-page .audit-heading{align-items:flex-start;flex-direction:column}#audit-page .audit-toolbar{grid-template-columns:1fr}#audit-page .audit-export-actions{grid-column:auto}.audit-balance-head{display:none}.audit-balance-row{grid-template-columns:1fr 1fr;gap:10px;padding:14px}.audit-balance-row .audit-credit-route,.audit-balance-row .audit-settlement-action{grid-column:1/-1}.audit-balance-money span{display:block}.audit-balance-progress{text-align:left}.audit-balance-row .audit-settlement-action{justify-content:flex-start}.audit-settlement-panel{width:100%}.audit-settlement-form-body{padding:14px}}

/* Audit V4.14.3: ยอดสะสมต่อเนื่องและเคลียร์จากบล็อกสองฝั่ง */
#audit-page .audit-toolbar{grid-template-columns:minmax(220px,1fr) auto}
#audit-page .audit-flow-grid{margin-bottom:10px}
#audit-page .flow-card .audit-card-head h2{font-size:17px;line-height:1.35}
#audit-page .flow-card .audit-card-head p{font-size:13px}
#audit-page .flow-total{font-size:23px}
#audit-page .audit-flow-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#audit-page .flow-row{grid-template-columns:minmax(150px,1fr) minmax(75px,.6fr) minmax(155px,.95fr) minmax(105px,.65fr);gap:9px;padding:11px 14px}
#audit-page .flow-route b{font-size:15px}
#audit-page .flow-route small,#audit-page .flow-money small{font-size:12px;line-height:1.35}
#audit-page .flow-money b{font-size:18px}
#audit-page .flow-action{display:flex;justify-content:flex-end;align-items:center}
.dashboard-shift-status{display:grid;gap:3px;min-width:180px;text-align:left}.dashboard-shift-status b{font-size:12px}.dashboard-shift-status b.closed{color:#047857}.dashboard-shift-status b.current{color:#b45309}.dashboard-shift-status small{font-size:10px;color:#64748b;line-height:1.35}
@media(max-width:760px){#audit-page .audit-toolbar{grid-template-columns:1fr}#audit-page .flow-row{grid-template-columns:1fr}#audit-page .flow-money{text-align:left}#audit-page .flow-action{justify-content:flex-start}}

/* Audit V4.14.4: ปรับตามพื้นที่จริงเมื่อซูมเบราว์เซอร์ */
#audit-page .audit-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#audit-page .flow-card{min-width:0;container-type:inline-size}
#audit-page .flow-card .audit-card-head>div{min-width:0}
#audit-page .flow-row{grid-template-columns:minmax(112px,1.15fr) minmax(48px,.65fr) minmax(90px,1fr) minmax(78px,auto);gap:6px;padding:10px}
#audit-page .flow-route,#audit-page .flow-bar,#audit-page .flow-money,#audit-page .flow-action{min-width:0}
#audit-page .flow-route b,#audit-page .flow-money small{overflow-wrap:anywhere}
#audit-page .flow-action .small-action,#audit-page .flow-action .audit-settlement-status{max-width:100%;padding:7px 8px;font-size:12px;text-align:center;white-space:normal}
@container(max-width:460px){
  #audit-page .flow-card .audit-card-head{align-items:flex-start;flex-wrap:wrap}
  #audit-page .flow-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"route money" "bar action";column-gap:10px;row-gap:7px;padding:10px 12px}
  #audit-page .flow-route{grid-area:route}
  #audit-page .flow-bar{grid-area:bar}
  #audit-page .flow-money{grid-area:money}
  #audit-page .flow-action{grid-area:action}
}
@media(max-width:1100px){#audit-page .audit-flow-grid{grid-template-columns:1fr}}
@media(max-width:620px){#audit-page .flow-row{grid-template-columns:1fr;grid-template-areas:"route" "money" "bar" "action"}#audit-page .flow-action .small-action{width:100%}}
.audit-issues-ok{padding:18px;border-top:1px solid #d1fae5;background:#f0fdf4;color:#047857;font-size:14px;font-weight:900;text-align:center}
.issue-table .audit-open-order{width:100%;min-width:128px;padding:8px 10px;white-space:normal;line-height:1.3}

/* Order table V4.14.7: แยกประเภท ช่องทาง และสถานะปลายทาง */
#orders-page table{width:100%;min-width:820px;table-layout:fixed}
#orders-page th,#orders-page td{padding:8px 3px}
#orders-page th:nth-child(1),#orders-page td:nth-child(1){width:14%}
#orders-page th:nth-child(2),#orders-page td:nth-child(2){width:9%}
#orders-page th:nth-child(3),#orders-page td:nth-child(3){width:20%}
#orders-page th:nth-child(4),#orders-page td:nth-child(4){width:20%}
#orders-page th:nth-child(5),#orders-page td:nth-child(5){width:11%}
#orders-page th:nth-child(6),#orders-page td:nth-child(6){width:5%}
#orders-page th:nth-child(7),#orders-page td:nth-child(7){width:16%}
#orders-page th:nth-child(8),#orders-page td:nth-child(8){width:5%}
.order-type,.order-status{display:grid;justify-items:start;gap:5px;min-width:0}
.order-type small,.order-status small{color:#64748b;font-size:10px;font-weight:800;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.order-status .badge{max-width:100%;white-space:normal;text-align:center;line-height:1.3}
.timeline-order-note{margin:0 0 10px;color:#64748b;font-size:11px;font-weight:800}
.timeline-actor{display:inline-block;margin-top:4px;padding:2px 7px;border-radius:999px;background:#ede9fe;color:var(--purple-dark);font-size:10px;font-weight:800}
.withdraw-settlement .settlement-card span{position:static;justify-self:start;line-height:1.3}
@media(max-width:860px){#orders-page table{min-width:760px}#orders-page th,#orders-page td{padding-left:2px;padding-right:2px}}
.order-type{width:100%;justify-items:center;text-align:center}
.order-type small{width:100%;text-align:center}
.order-status{width:100%;justify-items:center;text-align:center}
.order-status small{width:100%;text-align:center}
#orders-page th:nth-child(7),#orders-page td:nth-child(7),#orders-page th:nth-child(8),#orders-page td:nth-child(8){text-align:center}

/* Audit V4.15.4: รับทราบรายการผิดปกติ พับตาราง และกรองตามวันที่ */
#audit-page .audit-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#audit-page .audit-acknowledged-toggle,#audit-page .audit-collapse-toggle{min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}
#audit-page .audit-collapsible-card.is-collapsed .audit-card-head{border-bottom:0}
#audit-page .audit-collapsible-content[hidden]{display:none}
#audit-page .audit-detail-date-filter{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.45fr) minmax(150px,.45fr) auto;align-items:end;gap:10px;margin-bottom:10px;padding:12px 14px;border:1px solid #dbe3ee;border-radius:14px;background:#fff}
#audit-page .audit-detail-date-filter[hidden]{display:none}
#audit-page .audit-detail-date-filter>div{display:grid;gap:3px;align-self:center}
#audit-page .audit-detail-date-filter>div b{font-size:14px;color:#172033}
#audit-page .audit-detail-date-filter>div span{font-size:11px;color:#64748b}
#audit-page .audit-detail-date-filter label{display:grid;gap:5px}
#audit-page .audit-detail-date-filter label>span{font-size:11px;font-weight:900;color:#56647a}
#audit-page .audit-detail-date-filter input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #cfd9e8;border-radius:10px;background:#fff;color:#172033;font:inherit;font-size:13px;outline:none}
#audit-page .audit-detail-date-filter input:focus{border-color:#a78bfa;box-shadow:0 0 0 3px #ede9fe}
#audit-page .audit-detail-date-filter button{min-height:40px}
#audit-page .issue-table{min-width:1480px}
#audit-page .issue-table th:nth-child(8){min-width:150px}
#audit-page .issue-table th:nth-child(9){min-width:155px}
#audit-page .audit-acknowledge-button{width:100%;min-width:120px;background:#059669;border-color:#059669}
#audit-page .audit-acknowledge-button:hover{background:#047857;border-color:#047857}
#audit-page .audit-acknowledged-panel{border-top:1px solid #dbe3ee;background:#f8fafc}
#audit-page .audit-acknowledged-panel[hidden]{display:none}
#audit-page .audit-acknowledged-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-bottom:1px solid #e2e8f0}
#audit-page .audit-acknowledged-heading b{font-size:14px;color:#334155}
#audit-page .audit-acknowledged-heading span{font-size:11px;color:#64748b;text-align:right}
#audit-page .audit-issue-row.acknowledged{background:#f8fafc;color:#64748b}
#audit-page .audit-acknowledgement-meta{display:grid;justify-items:center;gap:6px;min-width:135px}
#audit-page .audit-acknowledgement-meta small{font-size:10px;line-height:1.35;color:#64748b;white-space:normal}
@media(max-width:900px){
  #audit-page .audit-detail-date-filter{grid-template-columns:1fr 1fr}
  #audit-page .audit-detail-date-filter>div{grid-column:1/-1}
}
@media(max-width:620px){
  #audit-page .audit-card-head{flex-direction:column}
  #audit-page .audit-card-actions{width:100%;justify-content:space-between}
  #audit-page .audit-detail-date-filter{grid-template-columns:1fr}
  #audit-page .audit-detail-date-filter>div{grid-column:auto}
  #audit-page .audit-detail-date-filter button{width:100%}
  #audit-page .audit-acknowledged-heading{align-items:flex-start;flex-direction:column}
  #audit-page .audit-acknowledged-heading span{text-align:left}
}

/* Audit V4.15.8: สาเหตุแบบ Popup และตารางไม่ต้องเลื่อนแนวนอนบน Desktop */
#audit-page .issue-table{width:100%;min-width:0;table-layout:fixed}
#audit-page .issue-table th,#audit-page .issue-table td{min-width:0;padding:9px 5px;overflow-wrap:anywhere}
#audit-page .issue-table th:nth-child(1),#audit-page .issue-table td:nth-child(1){width:8%}
#audit-page .issue-table th:nth-child(2),#audit-page .issue-table td:nth-child(2){width:11%}
#audit-page .issue-table th:nth-child(3),#audit-page .issue-table td:nth-child(3){width:14%}
#audit-page .issue-table th:nth-child(4),#audit-page .issue-table td:nth-child(4),#audit-page .issue-table th:nth-child(5),#audit-page .issue-table td:nth-child(5),#audit-page .issue-table th:nth-child(6),#audit-page .issue-table td:nth-child(6){width:10%}
#audit-page .issue-table th:nth-child(7),#audit-page .issue-table td:nth-child(7){width:9%;text-align:center}
#audit-page .issue-table th:nth-child(8),#audit-page .issue-table td:nth-child(8){width:15%}
#audit-page .issue-table th:nth-child(9),#audit-page .issue-table td:nth-child(9){width:13%}
#audit-page .issue-table .audit-open-order,#audit-page .audit-acknowledge-button,#audit-page .audit-issue-reason-button{width:100%;min-width:0;padding:8px 5px;font-size:10px;white-space:normal}
#audit-page .audit-acknowledgement-meta{min-width:0}
.audit-issue-reason-modal{z-index:95}.audit-issue-reason-panel{width:min(680px,calc(100% - 28px))}.audit-issue-reason-body{display:grid;gap:13px}.audit-issue-reason-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.audit-issue-reason-summary>div,.audit-issue-reason-amounts>div{min-width:0;padding:11px 12px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}.audit-issue-reason-summary span,.audit-issue-reason-amounts span,.audit-issue-reason-message span,.audit-issue-reason-technical span{display:block;margin-bottom:5px;color:#64748b;font-size:10px;font-weight:900}.audit-issue-reason-summary b{display:block;overflow-wrap:anywhere;font-size:12px}.audit-issue-reason-summary b.error{color:#b91c1c}.audit-issue-reason-summary b.risk{color:#a16207}.audit-issue-reason-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.audit-issue-reason-amounts b{font-size:18px}.audit-issue-reason-amounts>div:last-child b{color:#b91c1c}.audit-issue-reason-message{padding:13px 14px;border:1px solid #fecaca;border-radius:11px;background:#fff7f7}.audit-issue-reason-message strong{display:block;color:#b91c1c;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.audit-issue-reason-technical{padding:11px 13px;border-radius:10px;background:#f1f5f9}.audit-issue-reason-technical code{display:block;white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){#audit-page .issue-table{min-width:860px}.audit-issue-reason-summary,.audit-issue-reason-amounts{grid-template-columns:1fr}.audit-issue-reason-panel{width:100%;height:100%;max-height:none;margin:0;border-radius:0}}
.deposit-amount-adjustment {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}
.deposit-amount-adjustment h4,
.deposit-amount-adjustment p { margin: 0; }
.deposit-amount-adjustment label { display: grid; gap: 5px; font-weight: 600; }
.deposit-amount-adjustment input { width: 100%; min-width: 0; box-sizing: border-box; }
.deposit-amount-adjustment button { justify-self: start; white-space: normal; }

/* v4177: light, fluid order details; slip evidence belongs to its matched row. */
#modal .modal-panel{width:calc(100vw - 40px);max-width:none;border-radius:22px;height:auto;max-height:calc(100dvh - 32px);margin:auto;color-scheme:light;background:#fff}
#modal-body{container-type:inline-size;overflow-x:hidden;padding:24px;min-width:0}
#modal .summary-grid.compact{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
#modal .summary-item,#modal .party-card{min-width:0;overflow-wrap:anywhere}
#modal .detail-section{margin-bottom:24px}
#modal .match-responsive{overflow:visible;background:#fffafb;border:1px solid #fecdd3;border-radius:16px;box-shadow:none;color:#26334b}
#modal .match-responsive>header{border-radius:15px 15px 0 0;flex-wrap:wrap;background:#fff1f4}
.match-responsive-head,.match-responsive-row{display:grid;grid-template-columns:28px minmax(85px,.8fr) minmax(0,1.5fr) minmax(0,1.4fr) minmax(86px,.8fr) minmax(55px,.6fr) minmax(80px,.85fr);align-items:center;gap:10px;padding:14px}
.match-responsive-head{color:#be345b;font-size:11px;font-weight:700;background:#fff4f6}
.match-responsive-row{background:transparent;border-top:1px solid #ffe3ea;font-size:12px}
.match-responsive-row:last-child{border-radius:0 0 15px 15px}
.match-responsive-head>div,.match-responsive-row>div{min-width:0;overflow-wrap:anywhere;text-align:center}
.match-responsive-row small{display:block;color:#7d899f;font-size:10px;margin-top:5px;white-space:normal}
.match-responsive-row .matched-money{white-space:normal;color:#059669;font-variant-numeric:tabular-nums}
.match-responsive-row .match-paid-excess{color:#b77916}
.match-responsive-row .badge{white-space:normal;max-width:100%;font-size:10px;line-height:1.5}
.matched-user-link{border:0;background:transparent;color:#36435d;padding:0;font-size:12px;line-height:1.6;font-weight:700;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.matched-user-link:hover{text-decoration:underline;color:#7c3aed}
.match-slip-cell{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.match-slip-cell .matched-slip{max-width:55px;background:white;box-shadow:none}
.match-slip-cell .matched-slip img{object-fit:contain;width:36px;height:48px}
.match-slip-cell .matched-slip span{color:#be345b}
.deposit-decision{background:#fff;border:1px solid #e6ddfa;border-radius:18px;padding:20px;margin:0 0 18px;display:grid;gap:16px;box-shadow:0 5px 20px #7251a008}
.decision-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.decision-head h4{font-size:17px;margin:0;color:#28344b}.decision-head p{margin:4px 0 0;color:#8792a6;font-size:12px}
.decision-verified{color:#078662;background:#ecfdf5;padding:6px 10px;border-radius:20px;font-size:11px}
.decision-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.decision-figures>div{background:#f8f9fc;border:1px solid #e9edf4;border-radius:12px;padding:16px}
.decision-figures small{display:block;color:#7d899f;margin-bottom:8px;font-size:12px}.decision-figures b{font-size:22px;color:#29354d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.decision-figures .decision-difference{background:#fff8ed;border-color:#fde8bb}.decision-difference b{color:#b77a1b}
.decision-capacity{background:#f1faf7;color:#078463;border-radius:10px;padding:12px 14px;display:flex;justify-content:space-between;gap:10px;font-size:12px;flex-wrap:wrap}
.decision-capacity.insufficient{background:#fff7eb;color:#ab741c}
.decision-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.decision-options button{padding:16px;border:1px solid #e1e5ef;background:#fff;border-radius:12px;color:#65718a;text-align:left;font-weight:500;white-space:normal;cursor:pointer}
.decision-options button strong{display:block;font-size:20px;margin-top:7px;color:#26334a}.decision-options button[aria-pressed=true]{border:2px solid #9270ec;background:#f8f5ff;padding:15px;color:#7245ce}.decision-options button:disabled{opacity:.45;cursor:not-allowed}
.decision-edit summary{cursor:pointer;font-weight:600;color:#7c4cce;font-size:13px}.decision-edit label{margin-top:12px}
.deposit-decision label{font-size:12px;line-height:1.7}.decision-reason,.decision-edit label{display:grid;gap:6px}
.deposit-decision input:not([type=checkbox]),#excess-credit-form input:not([type=checkbox]){width:100%;min-width:0;padding:11px 12px;border:1px solid #dde3ee;border-radius:9px;background:#fff;color:#26334b}
.decision-summary{background:#faf9fd;border-radius:12px;padding:14px;display:grid;gap:10px;font-size:12px;color:#78849a}.decision-summary>div{display:flex;justify-content:space-between;gap:12px}.decision-summary b{color:#3c4960;white-space:nowrap}
.decision-confirm{display:flex!important;align-items:flex-start;gap:9px;color:#69748b}.decision-confirm input[type=checkbox]{width:16px;height:16px;margin:2px 0 0;flex:none;accent-color:#865ce0}
.deposit-decision>button{justify-self:end;padding:12px 20px;border-radius:10px}
.detail-excess{background:#f7f5fe;border:1px solid #e9dffa;border-radius:14px;padding:18px;margin:18px 0;color:#43506a}.detail-excess h3{font-size:14px;margin:0 0 12px}.detail-excess>div{display:grid;gap:8px;padding:10px 0;font-size:12px;overflow-wrap:anywhere}.detail-excess button{justify-self:start;margin-top:5px}
#excess-page{color:#35425c;max-width:1600px;margin:0 auto}.excess-total-card{background:#f5f0ff;border:1px solid #e4d9fb;padding:16px 22px;border-radius:14px;display:grid;gap:6px}.excess-total-card small{font-size:12px;color:#8c76b1}.excess-total-card strong{font-size:26px;color:#7549c9;font-variant-numeric:tabular-nums}
.excess-tabs{display:flex;gap:8px;border-bottom:1px solid #e9e5f3;margin:24px 0 16px}.excess-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;padding:12px 18px;color:#8a93a4;font-weight:600;cursor:pointer}.excess-tabs button.active{border-color:#8c61df;color:#7b4bd0}
.excess-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:0 0 20px}.excess-filter label{display:grid;gap:6px;color:#7d889a;font-size:12px}.excess-filter input,.excess-filter select{background:#fff;border:1px solid #dde3ee;border-radius:9px;padding:11px;color:#35425c}.excess-filter label:nth-child(2){flex:1;min-width:170px}
.excess-row{display:grid;grid-template-columns:minmax(0,1.8fr) repeat(3,minmax(110px,1fr)) minmax(130px,1.1fr);gap:16px;align-items:center;background:#fff;border:1px solid #e6e9f2;border-radius:14px;padding:20px;margin-bottom:12px}.excess-row>div{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.excess-row small{color:#8994a6;font-size:11px;line-height:1.7}.excess-row b{color:#7c4fcc;font-size:18px;font-variant-numeric:tabular-nums}.excess-row button{font-size:12px;white-space:normal}.excess-row .excess-order-link{border:0;background:transparent;color:#8959d3;text-align:left;padding:0;justify-self:start;cursor:pointer}.excess-history{grid-column:1/-1;border-top:1px solid #f0edf6;padding-top:12px;font-size:12px;color:#7d899c}.excess-history summary{cursor:pointer}.excess-history p{line-height:1.8;overflow-wrap:anywhere}
.excess-pagination{display:flex;align-items:center;gap:10px;margin:20px 0;color:#8a95a8;font-size:12px}.excess-pagination>span{margin-right:auto}
#excess-credit-dialog{width:min(490px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid #e7e1f3;border-radius:20px;padding:24px;color:#344057;background:#fff;box-shadow:0 24px 100px #20163540}#excess-credit-dialog::backdrop{background:#27203975;backdrop-filter:blur(3px)}
#excess-credit-form{display:grid;gap:16px}#excess-credit-form header{display:flex;align-items:start;justify-content:space-between;gap:12px}#excess-credit-form h2{font-size:20px;margin:0}#excess-credit-form label{display:grid;gap:6px;font-size:12px}#excess-credit-form .muted{font-size:12px;line-height:1.8;margin:0}
@container(max-width:740px){.match-responsive-head{display:none}.match-responsive-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:16px}.match-responsive-row>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left}.match-responsive-row>div::before{content:attr(data-label);font-size:10px;font-weight:500;color:#b48091}.match-responsive-row>div:first-child{grid-column:1/-1;flex-direction:row;align-items:center}.match-responsive-row .match-slip-cell{flex-direction:row;align-items:flex-start;flex-wrap:wrap}.match-slip-cell::before{width:100%}.match-responsive-row .matched-money{white-space:normal}.decision-figures b{font-size:18px}.decision-figures>div{padding:12px}}
@container(max-width:420px){.decision-figures{gap:6px}.decision-figures b{font-size:16px}.decision-figures>div{padding:9px}.decision-options button{padding:12px}.decision-options button[aria-pressed=true]{padding:11px}.decision-options button strong{font-size:18px}.deposit-decision{padding:14px}.decision-summary>div{flex-wrap:wrap;gap:4px}.match-responsive-row{grid-template-columns:minmax(0,1fr)}.match-responsive-row>div{grid-column:1}.deposit-decision>button{width:100%}}
@media(max-width:1000px){.excess-row{grid-template-columns:repeat(2,minmax(0,1fr))}.excess-row>div:first-child{grid-column:1/-1}}
@media(max-width:600px){#modal .modal-panel{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}#modal-body{padding:14px}#modal .summary-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.excess-row{padding:15px}.excess-total-card strong{font-size:22px}.excess-tabs button{padding:10px}.excess-pagination{flex-wrap:wrap}}

/* v4178: complete order detail layout, for waiting and completed orders too. */
#modal .modal-header{padding:24px 28px 20px;background:#fff;border-bottom:1px solid #e7ebf2;align-items:flex-start}
#modal #modal-title{font-size:26px;line-height:1.4;font-weight:700;color:#263248;margin:4px 0 7px}
#modal #modal-subtitle{font-size:12px;color:#8590a4;overflow-wrap:anywhere}
#modal .modal-actions{padding:16px 28px;background:#fcfdff;gap:10px}
#modal .modal-actions button,#modal .modal-actions label{border-radius:9px;padding:11px 16px;font-size:13px}
#modal-body{padding:22px 28px;container-type:inline-size}
.od-layout{color:#2d3b52;min-width:0;font-size:14px;line-height:1.6}
.od-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.od-identity b{font-size:15px;font-weight:600;overflow-wrap:anywhere}.od-identity>span{font-size:12px;color:#8a94a6}
.od-status-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px}.od-state{display:inline-flex;background:#f0f3ff;color:#5370b8;border-radius:24px;padding:6px 12px;font-size:12px}.od-state.complete{background:#ecf9f2;color:#18855b}.od-timer{font-size:12px;color:#7e8aa0}.od-timer b{margin-left:8px;color:#7453bc;font-size:17px;font-variant-numeric:tabular-nums}
.od-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;border-bottom:1px solid #e8edf4;padding-bottom:22px;margin-bottom:0}.od-totals small,.od-deposit-totals small{display:block;color:#8a94a6;font-size:12px}.od-totals strong,.od-deposit-totals strong{display:block;font-size:27px;font-weight:600;margin-top:6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.od-totals .green strong{color:#148663}.od-totals .purple strong,.od-deposit-totals .purple strong{color:#8057cf}
#modal .od-layout .account-route{padding:0;gap:14px;margin:0;position:static;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}
#modal .od-layout .account-route.single{grid-template-columns:minmax(0,1fr)}
#modal .od-layout .account-card{border:1px solid #e6eaf1;background:#fcfdff;border-radius:12px;padding:16px;color:#34425b;min-width:0;box-shadow:none}
#modal .od-layout .account-card-head{padding:0 0 10px;border-bottom:1px solid #ecf0f5;gap:8px;color:#8992a4;flex-wrap:wrap}
#modal .od-layout .account-card-head .party-user{color:#6c5b91;font-size:11px;overflow-wrap:anywhere}
#modal .od-layout .bank-name{font-size:13px;font-weight:600;margin-top:12px}#modal .od-layout .account-name{color:#8793a5;font-size:12px;margin-top:3px}
#modal .od-layout .account-number{background:transparent;color:#324058;border:0;border-radius:0;padding:3px 0;margin:0;font-size:18px;font-weight:600;text-align:left;letter-spacing:.02em;overflow-wrap:anywhere}
#modal .od-layout .match-meta{position:static;grid-column:1/-1;transform:none;padding:0;margin:0;color:#97a0b0;font-size:11px;text-align:center}
#modal .od-withdraw-bank{margin:0;padding:18px 0}
#modal .od-withdraw-bank .match-meta{display:none}
.od-received{padding:14px 16px;border-radius:10px;background:#f7f9fc;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#7b869a;font-size:12px}.od-received strong{font-size:20px;color:#374c69;font-variant-numeric:tabular-nums}
.od-tabs{display:flex;gap:24px;margin:24px 0 16px;border-bottom:1px solid #e7ecf4}.od-tabs button{color:#8b95a6;font-size:13px;background:transparent;border:0;border-bottom:2px solid transparent;padding:0 0 11px;border-radius:0;cursor:pointer}.od-tabs button[aria-selected=true]{color:#8153d0;border-bottom-color:#9060e4;font-weight:600}
.od-accounting{border:1px solid #e9edf5;border-radius:11px;padding:14px 16px;margin-top:18px;background:#fff}.od-accounting>summary{color:#7d8aa0;font-size:12px;font-weight:500;cursor:pointer}.od-accounting .ledger-list{margin-top:14px}.od-accounting .withdraw-settlement{margin:14px 0 0;border:0;padding:0;background:#fff}.od-accounting .section-title{display:none}
.od-empty{padding:32px 18px;text-align:center;color:#9aa3b3;font-size:13px}
.od-deposit-grid{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(0,2fr);border:1px solid #e6eaf2;border-radius:14px;overflow:hidden;margin-bottom:18px}
.od-evidence{background:#fafbfe;border-right:1px solid #e8edf4;padding:22px;min-width:0}.od-evidence h3{font-size:13px;color:#7b899e;margin:0 0 15px;font-weight:500}.od-evidence>.muted{padding:45px 10px;border:1px dashed #dce2ed;border-radius:10px;text-align:center;background:#fff}
#modal .od-evidence .slip-grid{grid-template-columns:minmax(0,1fr);gap:16px}#modal .od-evidence .slip-card{background:#fff;border:1px solid #e4e9f2;box-shadow:none;border-radius:11px;min-width:0}#modal .od-evidence .slip-owner{display:none}#modal .od-evidence .slip-card img{max-height:250px;object-fit:contain;background:#fff}#modal .od-evidence .slip-card button{white-space:normal;max-width:100%}
.od-deposit-content{padding:24px;min-width:0}.od-deposit-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-bottom:1px solid #e9edf4;padding-bottom:24px;margin-bottom:24px}.od-bank-heading{color:#8490a3;font-size:12px;margin-bottom:12px}
#modal .od-deposit-content .deposit-decision{padding:0;border:0;border-radius:0;box-shadow:none;margin:0 0 26px;gap:18px}
#modal .od-deposit-content .decision-head{display:none}#modal .od-deposit-content .decision-figures{padding-bottom:20px;border-bottom:1px solid #e7ecf2;gap:14px}
#modal .od-deposit-content .decision-figures>div{padding:0;border:0;border-radius:0;background:#fff}#modal .od-deposit-content .decision-figures b{font-size:26px;font-weight:600}#modal .od-deposit-content .decision-difference b{color:#b78127}
#modal .od-layout .match-responsive{margin-top:0}#modal .od-layout .match-responsive-head,#modal .od-layout .match-responsive-row{font-size:12px;padding:14px}
#modal .od-layout .detail-section{margin-top:18px}#modal .od-layout .section-number{display:none}
@container(max-width:760px){.od-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.od-totals strong{font-size:24px}.od-deposit-grid{grid-template-columns:minmax(0,1fr)}.od-evidence{border-right:0;border-bottom:1px solid #e8edf4;padding:16px}#modal .od-evidence .slip-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.od-evidence>.muted{padding:18px;margin:0}.od-deposit-content{padding:18px}.od-deposit-totals strong{font-size:23px}#modal .od-layout .account-route{grid-template-columns:1fr}#modal .od-layout .route-arrow{height:20px;transform:rotate(90deg)}#modal .od-deposit-content .decision-figures b{font-size:23px}}
@container(max-width:440px){.od-deposit-totals strong{font-size:18px}.od-deposit-totals small{font-size:10px}.od-deposit-totals{gap:9px}.od-received{align-items:flex-start;flex-direction:column;gap:3px}.od-identity{align-items:flex-start;flex-direction:column}.od-tabs{gap:18px}#modal .od-deposit-content .decision-figures b{font-size:18px}}
@media(max-width:600px){#modal .modal-header{padding:18px}#modal #modal-title{font-size:23px}#modal-body{padding:16px}#modal .modal-actions{padding:13px 16px}.excess-tabs{flex-wrap:wrap}}

.od-state.cancelled{background:#fff0f1;color:#bc4d62}.od-state.review{background:#fff7e8;color:#a97a29}

/* v4179: brand count drilldown */
.dashboard-count-link{font:inherit;font-weight:800;min-width:36px;min-height:32px;padding:4px 9px;border:1px solid transparent;border-radius:8px;background:transparent;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;cursor:pointer}
.dashboard-count-link:hover{background:#f1eaff;border-color:#ddd6fe}.dashboard-count-link:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}
.dashboard-items-modal{z-index:49}.dashboard-items-modal .modal-panel{width:min(1400px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:16px auto}.dashboard-items-modal .modal-header h2{font-size:20px}.dashboard-items-modal .modal-header p{margin-bottom:0}
.dashboard-items-note{margin:0;padding:12px 22px;background:#faf7ff;color:#6b5b87;font-size:12px;line-height:1.6}.dashboard-items-note:empty{display:none}
.dashboard-items-modal .modal-body{padding:0 20px 16px;min-height:120px;overscroll-behavior:contain}
.dashboard-items-table{background:#fff;border:1px solid #ede4f6;border-radius:12px;margin-top:14px;overflow:clip}
.dashboard-item-head,.dashboard-item-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,1.8fr) minmax(70px,.8fr) minmax(95px,1fr) minmax(95px,1.1fr) minmax(100px,1fr);gap:12px;align-items:center;padding:14px}
.dashboard-item-head{background:#f8f4ff;color:#7c6595;font-size:11px;font-weight:700}.dashboard-item-row{border-top:1px solid #eee9f4;font-size:12px}.dashboard-item-row:hover{background:#fcfaff}.dashboard-item-row>div{min-width:0;overflow-wrap:anywhere}.dashboard-item-row small{display:block;margin-top:4px;font-size:10px;color:#7b879a}.dashboard-item-status{font-size:11px;color:#475569}.dashboard-item-actions{display:grid;gap:6px}.dashboard-item-actions .secondary{font-size:11px;padding:8px 6px}.dashboard-counterpart{border:0;background:transparent;color:#7c3aed;font:inherit;font-size:11px;cursor:pointer;padding:5px}.dashboard-items-footer{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid #ece6f4;background:#fbfaff;font-size:12px}.dashboard-items-footer button:disabled{opacity:.45;cursor:default}
@media(max-width:850px){.dashboard-item-head{display:none}.dashboard-item-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.dashboard-item-row [data-label]:before{content:attr(data-label);display:block;color:#7b879a;font-size:10px;margin-bottom:4px}.dashboard-item-actions{align-self:end}.dashboard-items-modal .modal-header{padding:16px}.dashboard-items-modal .modal-body{padding:0 12px 12px}.dashboard-items-note{padding:10px 16px}}
@media(max-width:420px){.dashboard-items-modal .modal-panel{width:calc(100% - 16px);margin:8px auto;max-height:calc(100dvh - 16px)}.dashboard-items-footer{gap:8px}.dashboard-items-footer [data-items-page]{order:-1;width:100%;text-align:center}}

/* v4181: white detail cards with a colored edge, shared by deposits and withdrawals. */
#modal .od-totals,#modal .od-deposit-totals,#modal .od-deposit-content .decision-figures{gap:14px;border-bottom:0;padding-bottom:0}
#modal .od-totals{margin-bottom:4px}
#modal .od-totals>div,#modal .od-deposit-totals>div,#modal .od-deposit-content .decision-figures>div{--od-accent:#3b82f6;min-width:0;min-height:104px;padding:16px 18px;border:1px solid #e0e7f0;border-left:4px solid var(--od-accent);border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(30,50,80,.06),0 1px 2px rgba(30,50,80,.03)}
#modal .od-totals>div:nth-child(2),#modal .od-deposit-totals>div:nth-child(2),#modal .od-deposit-content .decision-figures>div:nth-child(2){--od-accent:#10b981}
#modal .od-totals>div:nth-child(3),#modal .od-deposit-content .decision-figures>div:nth-child(3){--od-accent:#f59e0b}
#modal .od-totals>div:nth-child(4),#modal .od-deposit-totals>div:nth-child(3){--od-accent:#8b5cf6}
#modal .od-totals small,#modal .od-deposit-totals small,#modal .od-deposit-content .decision-figures small{color:#68788f;font-size:12px;line-height:1.6}
#modal .od-totals strong,#modal .od-deposit-totals strong,#modal .od-deposit-content .decision-figures b{font-size:clamp(20px,2.5cqi,27px);font-weight:700;line-height:1.4;margin-top:8px;overflow-wrap:anywhere}
#modal .od-layout .account-card{padding:18px 20px;border:1px solid #dce6ef;border-left:4px solid #10b981;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(30,50,80,.06),0 1px 2px rgba(30,50,80,.03)}
#modal .od-layout .account-route .account-card~.account-card,#modal .od-withdraw-bank .account-card{border-left-color:#3b82f6}
#modal .od-layout .account-card-head{align-items:flex-start;color:#68788f;border-bottom:1px solid #e7edf4;padding-bottom:12px}
#modal .od-layout .account-card-head .party-user{font-size:12px;color:#596886;font-weight:600;max-width:100%;overflow-wrap:anywhere}
#modal .od-layout .bank-name{font-size:14px;color:#334155;margin-top:13px}#modal .od-layout .account-name{font-size:12px;color:#68788f}
#modal .od-layout .account-number{font-size:20px;font-weight:700;margin-top:6px;background:transparent;text-align:left}
#modal .od-received{padding:15px 18px;border:1px solid #e0e7f0;border-left:4px solid #10b981;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(30,50,80,.05);color:#68788f}
#modal .od-deposit-grid{border-color:#dce5ef;background:#fff;box-shadow:0 4px 16px rgba(30,50,80,.05)}
#modal .od-evidence{background:#fff}
@container(max-width:540px){#modal .od-deposit-totals,#modal .od-deposit-content .decision-figures{grid-template-columns:minmax(0,1fr)}#modal .od-totals>div,#modal .od-deposit-totals>div,#modal .od-deposit-content .decision-figures>div{padding:13px 14px;min-height:88px}#modal .od-layout .account-card{padding:15px 16px}#modal .od-layout .account-card-head{flex-direction:column;gap:6px}}

#modal .modal-panel{border:1px solid #dbe3ef;background:#fff;box-shadow:0 22px 70px rgba(15,23,42,.22),0 3px 12px rgba(30,50,80,.08)}
#modal .od-accounting{border-color:#dfe7f1;background:#fff;box-shadow:0 3px 12px rgba(30,50,80,.04)}

#manual-slip-dialog{width:min(900px,calc(100vw - 28px));max-height:90vh;overflow:auto;border:1px solid #e0e6f0;border-radius:16px;padding:22px;color:#26344d;background:#fff;box-shadow:0 24px 80px #17244040}#manual-slip-dialog::backdrop{background:#17243b90}#manual-slip-dialog header,#manual-slip-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px}#manual-slip-dialog h2{margin:0 0 8px;font-size:20px}#manual-slip-dialog small{color:#8793a5;font-size:11px}.manual-slip-content{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:22px;margin-top:18px}.manual-slip-content img{max-width:100%;max-height:480px;object-fit:contain;border:1px solid #e7edf5;border-radius:10px}.manual-slip-content a{display:flex;justify-content:center;align-items:flex-start}#manual-slip-dialog label{display:grid;gap:6px;margin:12px 0;font-size:12px;font-weight:600}#manual-slip-dialog input:not([type=checkbox]),#manual-slip-dialog textarea{width:100%;padding:10px;border:1px solid #dbe3ef;border-radius:8px;font:inherit}#manual-slip-dialog textarea{min-height:75px}#manual-slip-dialog .manual-slip-check{display:flex;align-items:flex-start;gap:8px;line-height:1.6}#manual-slip-dialog p{font-size:12px;line-height:1.6}#manual-slip-dialog footer{justify-content:flex-end;border-top:1px solid #e7edf5;padding-top:15px}#manual-slip-dialog button{border:1px solid #dbe3ef;border-radius:8px;padding:10px 14px;background:#fff;color:#475569;font:inherit;cursor:pointer}#manual-slip-dialog button.success{background:#059669;border-color:#059669;color:white}#manual-slip-dialog button:disabled{opacity:.5;cursor:wait}@media(max-width:600px){.manual-slip-content{grid-template-columns:1fr}.manual-slip-content img{max-height:280px}#manual-slip-dialog{padding:16px}}
