#page-revenue-sharing {
  background: #fff;
  color: #182230;
  border: 1px solid #e7ebf0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(16,24,40,.035);
  font-size: 14px;
  line-height: 1.5;
}

#page-revenue-sharing .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}

#page-revenue-sharing .section-title h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.7px;
  margin: 8px 0;
  color: #101828;
}

#page-revenue-sharing .section-title p {
  color: #667085;
  font-size: 14px;
  margin: 0;
}

#page-revenue-sharing .eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
}

#page-revenue-sharing .rs-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: #f7f8fa;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  width: fit-content;
  margin: 0 0 20px;
}

#page-revenue-sharing .btn {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #dce2e9;
  border-radius: 9px;
  padding: 10px 16px;
  line-height: 1.3;
  transition: background .15s, border-color .15s, box-shadow .15s;
  min-height: 38px;
  box-shadow: none;
}

#page-revenue-sharing .btn.ghost {
  background: #fff;
  color: #344054;
}

#page-revenue-sharing .btn.ghost:hover {
  background: #f8fafc;
  border-color: #98a2b3;
}

#page-revenue-sharing .btn.red {
  background: #ed1c24;
  color: #fff;
  border-color: #ed1c24;
}

#page-revenue-sharing .btn.red:hover {
  background: #cd1920;
  border-color: #cd1920;
}

#page-revenue-sharing .rs-tabs .btn {
  min-width: 96px;
  border: 0;
  background: transparent;
  color: #667085;
  padding: 10px 18px;
}

#page-revenue-sharing .rs-tabs .btn.red {
  background: #fff;
  color: #c81820;
  box-shadow: 0 1px 4px rgba(16,24,40,.09);
}

#page-revenue-sharing button:focus-visible,
#page-revenue-sharing input:focus-visible,
#page-revenue-sharing select:focus-visible {
  outline: 3px solid #fda4a8;
  outline-offset: 3px;
}

#page-revenue-sharing button:disabled {
  opacity: .55;
  cursor: wait;
}

#page-revenue-sharing [data-rs-message] {
  color: #667085;
  margin: 12px 0;
  font-size: 13px;
  min-height: 20px;
  overflow-wrap: anywhere;
}

#page-revenue-sharing [data-rs-editor] {
  background: #fff;
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  margin: 0 0 28px;
}

#page-revenue-sharing [data-rs-editor] h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 22px;
  color: #101828;
}

#page-revenue-sharing [data-rs-editor] p {
  color: #667085;
  font-size: 13px;
  margin: 0;
}

#page-revenue-sharing .rs-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

#page-revenue-sharing label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}

#page-revenue-sharing input,
#page-revenue-sharing select {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(16,24,40,.025);
}

#page-revenue-sharing input:hover,
#page-revenue-sharing select:hover {
  border-color: #98a2b3;
}

#page-revenue-sharing .rs-table {
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  max-height: 640px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #fff;
}

#page-revenue-sharing table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  font-size: 13px;
  background: #fff;
  color: #344054;
  margin: 0;
}

#page-revenue-sharing caption {
  text-align: left;
  background: #fff;
  padding: 19px 20px;
  border-bottom: 1px solid #eaecf0;
  color: #101828;
}

#page-revenue-sharing caption span {
  font-size: 15px;
  font-weight: 650;
}

#page-revenue-sharing caption small {
  display: inline-block;
  margin-left: 12px;
  color: #667085;
  background: #f2f4f7;
  border-radius: 20px;
  font-size: 11px;
  padding: 3px 9px;
  font-weight: 500;
}

#page-revenue-sharing thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #667085;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .35px;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid #eaecf0;
  text-align: left;
}

#page-revenue-sharing tbody td {
  background: #fff;
  padding: 17px 20px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

#page-revenue-sharing tbody tr:last-child td {
  border-bottom: 0;
}

#page-revenue-sharing tbody tr:hover td {
  background: #fcfcfd;
}

#page-revenue-sharing tbody td:first-child {
  color: #101828;
  font-weight: 600;
}

#page-revenue-sharing tbody td .btn {
  font-size: 12px;
  padding: 7px 11px;
  min-height: 32px;
}

#page-revenue-sharing tbody td[colspan] {
  text-align: center;
  color: #98a2b3;
  font-weight: 400;
  padding: 52px 20px;
}

#page-revenue-sharing .rs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  border: 1px solid #e4e7ec;
  background: #f9fafb;
  color: #475467;
}

#page-revenue-sharing .rs-badge:before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

#page-revenue-sharing .rs-badge-active,
#page-revenue-sharing .rs-badge-paid {
  background: #ecfdf3;
  color: #027a48;
  border-color: #d1fadf;
}

#page-revenue-sharing .rs-badge-pending {
  background: #fffaeb;
  color: #b54708;
  border-color: #fef0c7;
}

#page-revenue-sharing .rs-badge-cancelled {
  background: #fff1f3;
  color: #c01048;
  border-color: #ffe4e8;
}

#page-revenue-sharing[data-rs-view="devices"] tbody td:first-child {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

#page-revenue-sharing[data-rs-view="pricing"] th:nth-child(n+2):nth-child(-n+5),
#page-revenue-sharing[data-rs-view="pricing"] td:nth-child(n+2):nth-child(-n+5),
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(n+4):nth-child(-n+7),
#page-revenue-sharing[data-rs-view="orders"] td:nth-child(n+4):nth-child(-n+7) {
  text-align: right;
}

#page-revenue-sharing input[readonly] {
  background: #f8fafc;
  color: #667085;
  border-color: #e4e7ec;
  cursor: default;
}

#page-revenue-sharing a.btn {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

#page-revenue-sharing .rs-settings-fields {
  margin-top: 24px;
}

#page-revenue-sharing .rs-wide {
  grid-column: 1 / -1;
  margin: 16px 0;
}

#page-revenue-sharing textarea {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px;
  font: 12px ui-monospace, monospace;
  resize: vertical;
  color: #344054;
}

#page-revenue-sharing .rs-check {
  flex-direction: row;
  align-items: center;
  margin: 5px 0;
}

#page-revenue-sharing .rs-check input {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

#page-revenue-sharing .rs-settings-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: #98a2b3;
  font-size: 12px;
}

#page-revenue-sharing [data-faspay-settings] > p {
  margin: 12px 0;
  line-height: 1.7;
  max-width: 850px;
}

#page-revenue-sharing .rs-field-hint {
  font-size: 11px;
  font-weight: 400;
  color: #98a2b3;
  line-height: 1.5;
}

#page-revenue-sharing [data-rs-rupiah] {
  font-variant-numeric: tabular-nums;
}

.rs-device-qr {
  border: 0;
  border-radius: 20px;
  padding: 28px;
  width: min(420px, calc(100vw - 48px));
  box-sizing: border-box;
  background: #fff;
  color: #17212b;
  text-align: center;
  box-shadow: 0 24px 80px #0003;
}

.rs-device-qr::backdrop {
  background: #14202d99;
}

.rs-device-qr h2 {
  margin: 0 0 12px;
}

.rs-device-qr canvas {
  display: block;
  width: 100%;
  max-width: 294px;
  height: auto;
  margin: 16px auto;
}

.rs-device-qr a {
  display: block;
  overflow-wrap: anywhere;
  color: #16794c;
  font-size: 13px;
}

.rs-device-qr p {
  font-size: 14px;
  color: #596779;
}

.rs-device-qr button {
  padding: 10px 16px;
  border: 1px solid #d9e2df;
  border-radius: 10px;
  background: #f4f8f6;
  cursor: pointer;
}

@media (max-width: 760px) {
  #page-revenue-sharing { padding: 18px; border-radius: 14px; }
  #page-revenue-sharing .section-title { align-items: flex-start; flex-wrap: wrap; }
  #page-revenue-sharing .section-title h1 { font-size: 24px; }
  #page-revenue-sharing [data-rs-editor] { padding: 18px; }
  #page-revenue-sharing .rs-fields { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #page-revenue-sharing thead th,
  #page-revenue-sharing tbody td { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #page-revenue-sharing .btn { transition: none; }
}


/* Form Revenue Sharing lebih ringkas, termasuk pengaturan dan channel. */
#page-revenue-sharing [data-rs-editor] {
  padding: 18px;
  margin-bottom: 18px;
}

#page-revenue-sharing [data-rs-editor] h3 { margin-bottom: 14px; }
#page-revenue-sharing .rs-fields {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}

#page-revenue-sharing label { gap: 5px; }
#page-revenue-sharing input:not([type="checkbox"]),
#page-revenue-sharing select {
  height: 34px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 13px;
}

#page-revenue-sharing .rs-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

#page-revenue-sharing input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: #15803d;
  cursor: pointer;
}

#page-revenue-sharing .rs-check-on { display: none; color: #15803d; }
#page-revenue-sharing .rs-check-off { color: #b42318; }
#page-revenue-sharing .rs-check input:checked ~ .rs-check-on { display: inline; }
#page-revenue-sharing .rs-check input:checked ~ .rs-check-off { display: none; }
#page-revenue-sharing .btn.rs-enable {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

#page-revenue-sharing .btn.rs-disable {
  color: #b42318;
  background: #fee4e2;
  border: 1px solid #fda29b;
}

#page-revenue-sharing .btn.rs-enable:hover { background: #bbf7d0; }
#page-revenue-sharing .btn.rs-disable:hover { background: #fecaca; }
#page-revenue-sharing .rs-tabs { gap: 8px; margin-bottom: 18px; }
#page-revenue-sharing .rs-tabs .btn { padding: 8px 12px; font-size: 13px; }
#page-revenue-sharing .rs-table th,
#page-revenue-sharing .rs-table td { padding: 10px 12px; }

@media (max-width: 600px) {
  #page-revenue-sharing .rs-fields { grid-template-columns: minmax(0, 1fr); }
}

#page-revenue-sharing .rs-badge-inactive {
  background: #fee4e2;
  color: #b42318;
  border-color: #fda29b;
}
/* Ringkasan order tetap muat; rincian panjang ditempatkan di popup. */
#page-revenue-sharing[data-rs-view="orders"] .rs-table{overflow-x:hidden}
#page-revenue-sharing[data-rs-view="orders"] table{table-layout:fixed;white-space:normal;width:100%}
#page-revenue-sharing[data-rs-view="orders"] th,#page-revenue-sharing[data-rs-view="orders"] td{overflow-wrap:anywhere;white-space:normal;text-align:left!important;vertical-align:middle;padding:14px}
#page-revenue-sharing[data-rs-view="orders"] th:first-child{width:32%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(2){width:22%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(3){width:16%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(4){width:13%}
#page-revenue-sharing .rs-cell-note{display:block;font-size:11px;color:#667085;margin-top:6px;line-height:1.5}
#page-revenue-sharing .rs-detail-button{font-size:11px;white-space:normal}
[data-rs-message]:not(:empty){padding:12px 15px;border:1px solid #dfe7f0;background:#f8fafc;color:#475467;border-radius:12px;font-size:12px;line-height:1.6}
@media(max-width:640px){#page-revenue-sharing[data-rs-view="orders"] th,#page-revenue-sharing[data-rs-view="orders"] td{font-size:11px;padding:10px 6px}#page-revenue-sharing[data-rs-view="orders"] .btn{padding:7px;font-size:10px}#page-revenue-sharing[data-rs-view="orders"] th:first-child{width:30%}#page-revenue-sharing[data-rs-view="orders"] th:nth-child(2){width:20%}}
/* Ukuran tabel dan tombol konsisten untuk seluruh menu Revenue Sharing. */
#page-revenue-sharing .rs-table{max-height:none}
#page-revenue-sharing .btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;box-sizing:border-box;padding:7px 11px;font-size:11px;line-height:18px;border-radius:8px;gap:5px;width:auto;vertical-align:middle}
#page-revenue-sharing .rs-settings-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#page-revenue-sharing .rs-settings-actions .btn{height:36px;min-height:36px;padding:8px 12px;font-size:11px;line-height:18px;flex:none;width:auto}
#page-revenue-sharing td .btn{min-height:30px;padding:5px 8px;font-size:10px;line-height:18px}
#page-revenue-sharing[data-rs-view="orders"] th,#page-revenue-sharing[data-rs-view="orders"] td{font-size:11px;line-height:1.35;padding:10px 8px}
#page-revenue-sharing[data-rs-view="orders"] th:first-child{width:20%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(2){width:17%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(3){width:14%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(4){width:13%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(5){width:12%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(6){width:10%}
#page-revenue-sharing[data-rs-view="orders"] .rs-cell-note{font-size:10px;margin-top:4px;line-height:1.35}
#page-revenue-sharing[data-rs-view="orders"] .ui-pill{font-size:9px;padding:4px 7px}
#page-revenue-sharing[data-rs-view="orders"] td:last-child .btn{display:flex;width:100%;margin:3px 0}
@media(max-width:640px){#page-revenue-sharing[data-rs-view="orders"] th,#page-revenue-sharing[data-rs-view="orders"] td{font-size:9px;padding:8px 4px}#page-revenue-sharing[data-rs-view="orders"] .rs-cell-note{font-size:8px}#page-revenue-sharing[data-rs-view="orders"] td .btn{font-size:9px;padding:5px 3px}#page-revenue-sharing[data-rs-view="orders"] .ui-pill{font-size:8px;padding:3px 5px}}
#page-revenue-sharing [data-rs-editor]:empty{display:none}
#page-revenue-sharing .table-toolbar label{font-size:10px;gap:5px;min-width:100px}
#page-revenue-sharing .table-toolbar input,#page-revenue-sharing .table-toolbar select{height:36px;font-size:11px;padding:7px 10px}
#page-revenue-sharing .table-toolbar .table-search{min-width:180px}
@media(max-width:600px){#page-revenue-sharing .table-toolbar label{min-width:0}#page-revenue-sharing .table-toolbar .table-search{min-width:0}}
#page-revenue-sharing[data-rs-view="orders"] .ui-pill{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#page-revenue-sharing[data-rs-view="orders"] .ui-pill::before{display:none}
#page-revenue-sharing[data-rs-view="orders"] th:first-child{width:18%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(2){width:16%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(3){width:12%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(4){width:13%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(5){width:11%}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(6){width:10%}
#page-revenue-sharing[data-rs-view="orders"] .rs-order-actions{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}
#page-revenue-sharing[data-rs-view="orders"] td:last-child .rs-order-actions .btn{display:inline-flex;width:auto;margin:0;white-space:nowrap;flex:1;min-width:0;padding:5px 6px}
@media(max-width:640px){#page-revenue-sharing[data-rs-view="orders"] .rs-order-actions{gap:3px}#page-revenue-sharing[data-rs-view="orders"] td:last-child .rs-order-actions .btn{padding:5px 2px;font-size:8px}}

#page-revenue-sharing .rs-invoice-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap}
#page-revenue-sharing .rs-invoice-actions .btn{display:inline-flex;flex:none;width:auto;margin:0;white-space:nowrap}

/* Order monitoring: keep counts readable on smaller admin screens. */
#page-revenue-sharing[data-rs-view="orders"] .rs-table{overflow-x:auto}
#page-revenue-sharing[data-rs-view="orders"] table{min-width:1320px;table-layout:auto}
#page-revenue-sharing[data-rs-view="orders"] th,#page-revenue-sharing[data-rs-view="orders"] td{width:auto}
#page-revenue-sharing[data-rs-view="orders"] th:nth-child(n+7):nth-child(-n+9),
#page-revenue-sharing[data-rs-view="orders"] td:nth-child(n+7):nth-child(-n+9){min-width:90px;text-align:center!important}
#page-revenue-sharing[data-rs-view="orders"] td:nth-child(10){min-width:145px}
[data-play-form] .ui-input-label{margin:14px 0}
[data-play-error]{color:#b42318}

#page-revenue-sharing[data-rs-view="orders"] th:nth-child(-n+4){width:auto}
